.game-dialog{background:var(--card);border:3px solid var(--line);border-radius:1.6rem;box-shadow:0 1.5rem 5rem #0c182959;color:var(--navy);max-height:calc(100dvh - 1.5rem);max-width:30rem;overflow-y:auto;overscroll-behavior:contain;padding:1.6rem 1.8rem .8rem;width:calc(100% - 1.5rem)}.game-dialog::backdrop{background:var(--scrim);backdrop-filter:blur(5px)}body:has(.game-dialog[open]){overflow:hidden}.game-emblem{align-items:center;background:var(--info-bg);border:1px solid var(--info-border);border-radius:1.1rem;color:var(--info-text);display:flex;height:3.6rem;justify-content:center;margin:0 auto 1rem;transform:rotate(-6deg);width:3.6rem}.game-emblem svg{height:2.8rem;width:2.8rem}.game-dialog h2{font-size:clamp(1.5rem,5.8vw,1.85rem);letter-spacing:-.04em;line-height:1.15;margin:0 auto 1.6rem;max-width:19rem;text-align:center;outline:none}.game-question{font-size:1.15rem;line-height:1.4;margin:0 0 1rem;text-align:center}.game-answers{display:grid;gap:.65rem}.game-answer{align-items:center;background:var(--surface-input);border:2px solid var(--line);border-radius:.85rem;color:var(--navy);cursor:pointer;display:flex;gap:.8rem;min-height:3.6rem;padding:.65rem .85rem;text-align:left;width:100%}.game-answer:not([aria-disabled=true]):hover{background:var(--info-bg);border-color:var(--blue)}.game-answer:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.game-answer-letter{align-items:center;background:var(--surface-soft);border:1px solid var(--line);border-radius:.4rem;color:var(--muted);display:flex;flex:0 0 1.7rem;font-size:.75rem;font-weight:800;height:1.7rem;justify-content:center}.game-answer-label{flex:1;font-size:1.05rem;font-weight:750;overflow-wrap:anywhere}.game-answer-mark{flex:0 0 1.25rem;font-size:1.4rem;font-weight:900;text-align:center}.game-answer[aria-disabled=true]{cursor:default;transform:none}.game-answer.is-incorrect{background:var(--danger-bg);border-color:var(--danger-border);color:var(--danger-text)}.game-answer.is-incorrect .game-answer-label{text-decoration:line-through;text-decoration-thickness:2px}.game-answer.is-selected.is-incorrect{background:#b42318;border-color:#b42318;color:#fff;animation:game-wrong .28s ease-in-out}.game-answer.is-correct{background:#137344;border-color:#137344;color:#fff;animation:game-right .32s ease-out}.game-answer.is-selected .game-answer-letter{background:#ffffff29;border-color:#ffffff80;color:#fff}.game-feedback{align-items:center;display:flex;gap:.8rem;justify-content:center;min-height:5.6rem;padding:.75rem 0}.game-feedback strong,.game-feedback span>span{display:block}.game-feedback strong{font-size:1.15rem;line-height:1.5}.game-feedback span>span{color:var(--muted);font-size:.9rem}.game-feedback-icon{align-items:center;border:2px solid currentColor;border-radius:50%;display:flex;flex:0 0 2.6rem;font-size:1.5rem;font-weight:900;height:2.6rem;justify-content:center}.game-component-instruction{color:var(--muted);font-size:.9rem;margin:0 0 .8rem;text-align:center}.game-placement-board{aspect-ratio:4 / 3;background:var(--surface-soft);border:1px solid var(--line);border-radius:1rem;overflow:hidden;position:relative;width:100%}.game-placement-board-empty{background-image:linear-gradient(45deg,var(--line) 25%,transparent 25%),linear-gradient(-45deg,var(--line) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--line) 75%),linear-gradient(-45deg,transparent 75%,var(--line) 75%);background-position:0 0,0 .5rem,.5rem -.5rem,-.5rem 0;background-size:1rem 1rem}.game-placement-scene{height:100%;inset:0;object-fit:cover;position:absolute;width:100%}.game-placement-target{align-items:center;background:#ffffffe0;border:2px dashed var(--blue);border-radius:50%;color:var(--blue-dark);display:flex;height:clamp(2.8rem,12vw,4.2rem);justify-content:center;overflow:hidden;padding:.15rem;position:absolute;transform:translate(-50%,-50%);width:clamp(2.8rem,12vw,4.2rem);z-index:1}.game-placement-target:focus-visible,.game-piece:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.game-placement-target img,.game-piece img{height:100%;object-fit:cover;width:100%}.game-piece-tray{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:center;margin-top:.8rem}.game-piece{align-items:center;background:var(--surface-input);border:1px solid var(--line);border-radius:.7rem;display:inline-flex;gap:.45rem;min-height:3rem;padding:.35rem .6rem}.game-piece img{border-radius:50%;height:2.2rem;width:2.2rem}.game-piece.is-selected{background:var(--info-bg);border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}.game-matching-list{display:grid;gap:.65rem;max-height:min(55vh,29rem);overflow-y:auto}.game-matching-row{align-items:center;background:var(--surface-soft);border:1px solid var(--line);border-radius:.8rem;display:flex;gap:.75rem;min-height:4rem;padding:.4rem .65rem}.game-matching-row>img,.game-matching-placeholder{align-items:center;background:var(--info-bg);border-radius:.55rem;display:flex;flex:0 0 3.25rem;height:3.25rem;justify-content:center;object-fit:cover;width:3.25rem}.game-matching-placeholder{color:var(--info-text);font-size:1.4rem;font-weight:800}.game-matching-select{background:var(--surface-input);border:1px solid var(--line);border-radius:.55rem;color:var(--navy);flex:1;font:inherit;min-height:2.75rem;min-width:0;padding:.4rem}.game-matching-select.is-correct{border-color:#159455}.game-maze{background:var(--surface-soft);border:1px solid var(--line);border-radius:.7rem;display:block;max-height:65vh;max-width:100%;shape-rendering:crispEdges;touch-action:none;user-select:none;width:min(100%,40rem)}.game-maze rect{pointer-events:none}.game-maze-wall{fill:var(--navy)}.game-maze-floor{fill:var(--surface-soft)}.game-maze-start{fill:#73c991}.game-maze-exit{fill:#f3bf54}.game-maze rect.is-wall{fill:#b42318}.game-maze-path{fill:none;stroke:#e04838;stroke-linecap:round;stroke-linejoin:round;stroke-width:.28}.game-drawing-canvas{background:var(--surface-input);border:2px dashed var(--line);border-radius:.8rem;display:block;max-height:54vh;max-width:100%;touch-action:none;width:100%}.game-canvas-actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin:.85rem 0}.game-scaffold-feedback[data-result=incorrect]{color:var(--danger-text)}.game-scaffold-feedback[data-result=correct]{color:var(--success-text)}.game-content[data-result=incorrect] .game-feedback{color:var(--danger-text)}.game-content[data-result=correct] .game-feedback{color:var(--success-text)}.game-dialog:has([data-result=incorrect]){border-color:#d92d20}.game-dialog:has([data-result=correct]){border-color:#159455}@keyframes game-wrong{25%,75%{transform:translate(-5px)}50%{transform:translate(5px)}}@keyframes game-right{50%{transform:scale(1.025)}}@media(max-width:380px){.game-dialog{padding:1.25rem 1rem .4rem}.game-answer{gap:.6rem}}@media(max-height:650px){.game-emblem{display:none}.game-dialog{padding-top:1.2rem}.game-dialog h2{margin-bottom:1rem}}@media(prefers-reduced-motion:reduce){.game-answer{animation:none!important}}
