:root{color:#21314b;background:#f5f2eb;font-family:ui-rounded,Trebuchet MS,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}button:focus-visible,canvas:focus-visible{outline-offset:3px;outline:3px solid #1b75d0}.shell{max-width:1040px;margin:auto;padding:22px 18px 60px}.top{justify-content:space-between;align-items:center;gap:16px;display:flex}.brand{font-size:22px;font-weight:900}.brand span{color:#e26841}.badge{background:#fff;border-radius:999px;padding:8px 14px;font-weight:700}.progress{background:#e2e0dc;border-radius:9px;height:10px;margin:18px 0 26px;overflow:hidden}.progress i{background:#40a68d;width:0;height:100%;transition:width .3s;display:block}.panel{background:#fff;border:1px solid #ebe7df;border-radius:24px;padding:26px;box-shadow:0 14px 40px #29354b12}.eyebrow{color:#b04c27;letter-spacing:.1em;text-transform:uppercase;font-size:13px;font-weight:900}h1{margin:7px 0 8px;font-size:clamp(27px,4vw,42px);line-height:1.12}p{line-height:1.5}.hint{color:#5b6577;margin:0 0 18px}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0;display:flex}.palette{flex-wrap:wrap;gap:7px;display:flex}.swatch{border:3px solid #fff;border-radius:50%;width:42px;height:42px;box-shadow:0 0 0 1px #bdc4cb}.swatch[aria-pressed=true]{transform:scale(1.06);box-shadow:0 0 0 3px #25324c}.soft,.primary{border:0;border-radius:14px;padding:12px 18px;font-weight:800}.soft{color:#293955;background:#eef2f4}.primary{color:#fff;background:#2446ae;min-width:130px}.primary:hover{background:#1c388c}.play{color:#60440c;background:#fff0cc;border:1px solid #e6ca80;border-radius:14px;padding:12px 18px;font-weight:800}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0;display:grid}.choice{text-align:center;background:#fff;border:2px solid #dce1e6;border-radius:18px;padding:12px}.choice.canvas-choice{padding:8px}.choice canvas{touch-action:none;cursor:crosshair;width:100%;height:auto;display:block}.choice.selected{background:#f3f5ff;border-color:#4866cf}.choice .label{margin:8px 0 2px;font-weight:850}.choice svg{width:100%;max-height:130px}.answer-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:18px 0;display:grid}.answer{text-align:center;background:#fff;border:2px solid #dce1e6;border-radius:15px;min-height:56px;padding:16px;font-weight:800}.answer.selected{background:#eef2ff;border-color:#476ad7}.footer{border-top:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:14px;margin-top:24px;padding-top:19px;display:flex}.feedback{min-height:24px;font-weight:800}.feedback.ok{color:#14745b}.feedback.no{color:#b33b2f}.reference{margin-top:20px}.reference summary{cursor:pointer;font-weight:700}.reference img{border:1px solid #ddd;max-width:100%;height:auto;margin:12px auto;display:block}.done{text-align:center;padding:45px 10px}.done .star{font-size:70px}.sequence{flex-wrap:wrap;gap:9px;display:flex}.sequence button{min-width:84px}.small{color:#6b7280;font-size:13px}.painting-note{color:#5c6573;margin:8px 0;font-size:13px}@media (width<=620px){.panel{padding:18px}.choices{gap:9px}.choice .label{font-size:13px}.top{align-items:start}.brand{font-size:18px}}.choices{grid-template-columns:minmax(0,360px) 48px minmax(0,360px);justify-content:center;align-items:center;gap:14px;margin:28px 0 12px}.choice.canvas-choice{border:1px solid #d8dfe5;border-radius:16px;padding:0;overflow:hidden;box-shadow:0 8px 20px #25344b0b}.art-stage{background:#fff;min-height:0;padding:12px 12px 0}.choice canvas{max-width:100%;margin:0 auto}.art-meta{background:#f7f9fb;border-top:1px solid #edf0f2;justify-content:space-between;align-items:center;gap:8px;padding:10px 16px 14px;display:flex}.art-meta .label{margin:0;font-size:17px}.art-meta .soft{white-space:nowrap;min-height:42px;padding:8px 12px}.or{color:#485970;background:#eaf0f4;border-radius:50%;place-items:center;width:48px;height:48px;font-size:16px;font-weight:900;display:grid}.toolbar{margin:22px 0 10px}.painting-note{text-align:center;margin:14px 0 0}.choice.canvas-choice:hover{border-color:#9bb1c6}.color-reference{margin-top:18px}.color-reference summary{cursor:pointer;color:#485970;font-weight:700}.color-reference div{flex-wrap:wrap;justify-content:center;gap:24px;margin-top:10px;display:flex}.color-reference img{object-fit:contain;width:150px;height:150px}@media (width<=700px){.choices{grid-template-columns:minmax(0,380px);gap:10px}.or{justify-self:center}.art-stage{padding:10px 10px 0}.choice canvas{width:min(100%,280px);max-height:none}.art-meta .label{font-size:16px}.painting-note{text-align:left}}@media (width<=420px){.palette{gap:5px}.swatch{width:38px;height:38px}.choices{margin-top:20px}.choice canvas{width:min(100%,230px)}}.icon-button{border-radius:12px;place-items:center;width:48px;min-width:48px;height:48px;padding:0;display:inline-grid}.icon-button svg{stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:24px;height:24px;display:block}.compact-tools{gap:12px;margin:22px 0 8px}.compact-tools .palette{margin-right:4px}.icon-button[aria-pressed=true]{background:#dce8ff;box-shadow:inset 0 0 0 2px #2446ae}.art-meta .icon-button{width:42px;min-width:42px;height:42px;padding:0}.art-meta .icon-button svg{width:22px;height:22px}.panel h1{margin-top:0;margin-bottom:16px}.art-stage{position:relative}.footer .primary{margin-left:auto}.primary:disabled{opacity:.38;cursor:not-allowed}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.status-layer{pointer-events:none;opacity:0;place-items:center;display:grid;position:absolute;inset:0}.status-layer svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;border-radius:50%;width:62px;height:62px;padding:14px;box-shadow:0 6px 16px #0002}.correct .status-layer{opacity:1;background:#3ecb7150;animation:.3s ease-out result-in}.wrong .status-layer{opacity:1;background:#ed525250;animation:.3s ease-out result-in}.correct .status-layer svg{background:#229c52}.wrong .status-layer svg{background:#d43b3b}@keyframes result-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.correct .status-layer,.wrong .status-layer{animation:none}}.panel{position:relative}.back-button{padding:12px 16px}.back-button:disabled{opacity:.4;cursor:default}.correct .status-layer svg path,.answer-result.correct svg path{stroke-dasharray:28;stroke-dashoffset:28px;animation:.82s ease-out .16s forwards draw-check}@keyframes draw-check{to{stroke-dashoffset:0}}.answer{position:relative;overflow:hidden}.answer-result{background:#3ecb7138;place-items:center;animation:.3s ease-out result-in;display:grid;position:absolute;inset:0}.answer-result.wrong{background:#ed525238}.answer-result svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;background:#d43b3b;border-radius:50%;width:42px;height:42px;padding:9px}.answer-result.correct svg{background:#229c52}.confetti-rain{pointer-events:none;z-index:10;border-radius:24px;position:absolute;inset:0;overflow:hidden}.confetti-rain i{opacity:0;width:9px;height:15px;animation:confetti-fall var(--duration) ease-in var(--delay) forwards;border-radius:2px;position:absolute;top:-20px}@keyframes confetti-fall{0%{opacity:1;transform:translateY(-10px)rotate(0)}85%{opacity:1}to{opacity:0;transform:translate3d(var(--drift),var(--fall),0) rotate(var(--rotation))}}@media (prefers-reduced-motion:reduce){.correct .status-layer svg path,.answer-result.correct svg path{stroke-dashoffset:0;animation:none}.confetti-rain{display:none}}.art-actions{gap:6px;display:flex}.color-dialog{background:#fff;border:0;border-radius:24px;max-width:min(92vw,520px);max-height:92vh;padding:18px;box-shadow:0 18px 60px #0004}.color-dialog::backdrop{background:#142039ad}.color-dialog .dialog-top{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.color-dialog .dialog-top strong{font-size:22px}.color-dialog img{object-fit:contain;width:min(78vw,430px);max-height:70vh;display:block}.color-dialog .icon-button{font-size:27px}.order-toolbar{align-items:center;gap:20px;margin:18px 0 8px;display:flex}.order-play{align-items:center;gap:10px;min-height:48px;display:flex}.order-play svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.order-play.playing{color:#2446ae;background:#e4eefc;border-color:#7795d8}.order-dots{gap:8px;margin-left:auto;display:flex}.order-dots i{background:#d6dce7;border-radius:50%;width:10px;height:10px}.order-dots i.current{background:#2446ae}.number-bank{z-index:5;background:#fff;border-radius:14px;justify-content:center;gap:14px;margin:0 0 14px;padding:12px 8px;display:flex;position:sticky;top:8px}.number-token,.number-ghost{color:#fff;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#2446ae;border:2px solid #2446ae;border-radius:12px;place-items:center;width:58px;height:58px;font-size:30px;font-weight:900;display:grid}.number-token.assigned{color:#2446ae;background:#e8edf8;border-style:dashed}.number-token.picked{outline-offset:3px;outline:3px solid #e8a725}.number-token:disabled{cursor:default;opacity:.55}.number-ghost{z-index:1000;pointer-events:none;cursor:grabbing;position:fixed;transform:translate(-50%,-50%);box-shadow:0 8px 20px #21314b30}.order-grid{border:1px solid #bcc7d5;border-radius:12px;overflow:hidden}.order-row{grid-template-columns:repeat(4,minmax(0,1fr));display:grid;position:relative}.order-cell{background:#fff;border:1px solid #dbe1e8;flex-direction:column;justify-content:flex-end;align-items:center;min-height:168px;padding:38px 8px 10px;display:flex;position:relative}.order-cell img{object-fit:contain;-webkit-user-select:none;user-select:none;width:100%;height:94px;display:block}.order-label{margin-top:5px;font-size:14px;font-weight:800}.order-slot{color:#2446ae;touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;border:2px dashed #7c8ca0;border-radius:9px;width:44px;height:44px;font-size:27px;font-weight:900;position:absolute;top:10px;left:10px}.order-slot.filled{cursor:grab;background:#e8edf8;border-style:solid;border-color:#2446ae}.order-slot:disabled{cursor:default;color:#4c5e76;border-color:#c4ccd7}.order-cell.drop-target{background:#fff0cc;box-shadow:inset 0 0 0 3px #2446ae}.order-result{pointer-events:none;position:absolute;top:12px;right:10px}.order-result svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;border-radius:50%;width:32px;height:32px;padding:6px}.order-correct{background:#effaf3}.order-correct .order-result svg{background:#229c52}.order-wrong{background:#fff0ef}.order-wrong .order-result svg{background:#d43b3b}.order-correct .order-result path{stroke-dasharray:28;stroke-dashoffset:28px;animation:.82s ease-out .16s forwards draw-check}@media (width<=600px){.order-row{grid-template-columns:repeat(2,minmax(0,1fr))}.order-cell{min-height:170px}.order-cell img{height:96px}.number-token{width:54px;height:54px}.number-bank{gap:12px}.order-label{font-size:14px}}@media (prefers-reduced-motion:reduce){.order-correct .order-result path{stroke-dashoffset:0;animation:none}}.pitch-heading{align-items:center;gap:16px;margin:26px 0 16px;display:flex}.pitch-heading h2{margin:0;font-size:22px;font-weight:800}.pitch-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.pitch-card{background:#fff;border:1px solid #d8dfe5;border-radius:16px;padding:12px 10px 48px;position:relative}.pitch-card-top{justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px;display:flex}.pitch-number{color:#596a81;padding:0 6px;font-size:22px;font-weight:900}.pitch-play{place-items:center;min-width:48px;min-height:48px;padding:12px;display:grid}.pitch-play svg,.pitch-choice svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.pitch-play.playing{color:#fff;background:#2446ae;border-color:#2446ae}.pitch-choices{gap:9px;display:grid}.pitch-choice{color:#21314b;background:#fff;border:2px solid #dce1e6;border-radius:11px;justify-content:flex-start;align-items:center;gap:10px;min-height:50px;padding:10px 8px;font-size:15px;font-weight:800;display:flex}.pitch-choice[aria-pressed=true]{color:#2446ae;background:#e9efff;border-color:#2446ae}.pitch-choice:disabled{cursor:default;opacity:1}.pitch-result{width:32px;height:32px;position:absolute;bottom:10px;left:calc(50% - 16px)}.pitch-result svg{fill:none;stroke:#fff;stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;border-radius:50%;width:32px;height:32px;padding:6px}.pitch-correct{background:#effaf3;border-color:#7cc99a}.pitch-correct .pitch-result svg{background:#229c52}.pitch-correct .pitch-result path{stroke-dasharray:28;stroke-dashoffset:28px;animation:.82s ease-out .16s forwards draw-check}.pitch-wrong{background:#fff0ef;border-color:#e59d97}.pitch-wrong .pitch-result svg{background:#d43b3b}.pitch-error{color:#b33b2f;font-weight:800}.top-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}#fullscreen{color:#21314b;background:#fff}#fullscreen:hover{background:#e8edf8}:root:fullscreen{background:#f5f2eb;overflow:auto}.screen-expanded .shell{max-width:none;min-height:100dvh;padding-bottom:24px}:root:fullscreen .shell{max-width:none;min-height:100dvh;padding-bottom:24px}.screen-expanded .panel{min-height:calc(100dvh - 148px)}:root:fullscreen .panel{min-height:calc(100dvh - 148px)}@media (width<=420px){.top-actions{gap:6px}.top-actions .badge{padding:8px 10px}.top-actions .icon-button{width:44px;min-width:44px;height:44px}.top .brand{max-width:160px}}@media (width<=760px){.pitch-grid{grid-template-columns:1fr;gap:12px}.pitch-card{align-items:center;gap:12px;padding:14px 12px;display:flex}.pitch-card-top{gap:6px;margin:0}.pitch-number{padding:0;font-size:18px}.pitch-choices{flex:1;gap:8px;display:flex}.pitch-choice{flex-direction:column;flex:1;justify-content:center;gap:5px;min-height:64px;padding:7px 4px;font-size:13px}.pitch-play{min-width:44px;min-height:44px;padding:10px}.pitch-result{inset:-9px 7px auto auto}.pitch-result:empty{display:none}.pitch-heading{margin:20px 0 14px}.pitch-heading h2{font-size:20px}}@media (prefers-reduced-motion:reduce){.pitch-correct .pitch-result path{stroke-dashoffset:0;animation:none}}
