:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #090d14; color: #edf2f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% 0, #172132 0, #090d14 55%); }
button { border: 1px solid #344257; border-radius: 9px; padding: .72rem .95rem; color: #edf2f8; background: #182232; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { border-color: #6da9f8; background: #20324a; }
button:disabled { cursor: not-allowed; opacity: .48; }
button.primary { border-color: #b78935; color: #fff5d6; background: linear-gradient(180deg, #76541d, #4f3615); }
button.primary:hover:not(:disabled) { border-color: #f0c86d; background: linear-gradient(180deg, #8b6726, #60431a); }
.toolbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid #263246; background: #0d131ddd; backdrop-filter: blur(14px); }
h1, h2, p { margin: 0; }.toolbar h1 { font-size: 1.3rem; }.eyebrow { margin-bottom: .2rem; color: #85baff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.sound-toggle { color: #c9d4e2; background: #111a27; }
main { padding: 1rem; }.validation { display: flex; align-items: center; justify-content: center; gap: .75rem; max-width: 1120px; margin: 0 auto 1rem; border: 1px solid; border-radius: 9px; padding: .7rem 1rem; font-size: .85rem; }
.setup-screen { display: grid; place-items: center; margin: 0 auto 1rem; padding: 1.2rem; border: 1px solid #594b35; border-radius: 12px; max-width: 680px; background: linear-gradient(135deg, #211b14ee, #101722ee); box-shadow: 0 18px 50px #0008; }.setup-screen[hidden] { display: none; }.setup-card { width: min(100%, 430px); }.setup-card h2 { margin: .15rem 0 1rem; font-family: Georgia, serif; font-size: 1.55rem; }.setup-card > label, .player-names label { display: grid; gap: .35rem; margin-top: .75rem; color: #c6b99e; font-size: .78rem; font-weight: 700; }.setup-card select, .setup-card input { width: 100%; border: 1px solid #4b4438; border-radius: 8px; padding: .68rem; color: #f4ecdb; background: #0d1219; font: inherit; }.setup-card > button { width: 100%; margin-top: 1rem; }
.resume-card { max-width: 34rem; }.resume-message { color: #c6b99e; line-height: 1.5; }.resume-details { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 1.2rem 0; }.resume-details dt { color: #9ba9bc; }.resume-details dd { margin: 0; font-weight: 700; }.resume-actions { display: flex; flex-wrap: wrap; gap: .75rem; }.resume-actions button { flex: 1; }
.validation.valid { border-color: #28684c; color: #a5e8c9; background: #10271f; }.validation.invalid { border-color: #8d3942; color: #ffc1c7; background: #32171b; }.validation ul { margin: .35rem 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1rem; max-width: 1500px; margin: 0 auto; }
.board { position: relative; overflow: hidden; width: 100%; line-height: 0; border: 1px solid #2a374b; border-radius: 12px; box-shadow: 0 18px 55px #0008; user-select: none; touch-action: none; }
.board img { display: block; width: 100%; height: auto; pointer-events: none; }.board svg { position: absolute; inset: 0; display: none; width: 100%; height: 100%; overflow: visible; }.board.debug-active #overlay, .board.destination-mode #overlay { display: block; }.board .player-overlay { z-index: 2; display: block; pointer-events: none; }.board #overlay { z-index: 3; }.board.destination-mode:not(.debug-active) .edges, .board.destination-mode:not(.debug-active) .nodes text, .board.destination-mode:not(.debug-active) .nodes circle, .board.destination-mode:not(.debug-active) .movement-start { opacity: 0; }
.question-panel { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(660px, 72%); padding: 1.2rem; border: 1px solid #b28b46; border-radius: 13px; color: #f2ead9; background: linear-gradient(145deg, #18150fef, #101824f5); box-shadow: 0 24px 80px #000d, inset 0 0 0 1px #ffffff12; line-height: 1.4; transform: translate(-50%, -50%); backdrop-filter: blur(9px); }.question-meta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: #c9b98f; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }.question-category { display: inline-flex; align-items: center; gap: .4rem; letter-spacing: 0; text-transform: none; }.question-category::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--category); box-shadow: 0 0 9px var(--category); }.question-player { margin-top: 1rem; color: #9ba9bc; font-size: .76rem; }.question-panel h2 { margin-top: .25rem; font-family: Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.35; }.question-kicker { color: #c9a95e; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.question-text { margin-top: .7rem; color: #c8d0dc; }.answer-box { margin-top: 1rem; padding: .8rem; border-left: 4px solid #d5b460; border-radius: 6px; background: #080d14aa; }.answer-box span { color: #9b8d6c; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.answer-box p { margin-top: .2rem; color: #fff4c9; font: 700 1rem/1.4 Georgia, serif; }.question-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; }.question-actions .question-button { grid-column: 1 / -1; min-height: 48px; }.result-button { min-height: 52px; font-size: 1rem; }.result-button.correct { border-color: #3c9469; background: #16482f; }.result-button.wrong { border-color: #a84c55; background: #551f25; }
.question-panel.finale-panel { border-color: #e0bd68; background: radial-gradient(circle at 50% 0, #41351cee, #111722f8 58%); }.finale-title { margin-bottom: .55rem; color: #f1cf78; font: 900 .76rem/1 Georgia, serif; letter-spacing: .2em; text-align: center; }.final-categories { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }.final-categories button { min-height: 50px; border-left: 7px solid var(--category); text-align: left; }.winner-wheel { display: grid; place-items: center; margin: .5rem auto; }.winner-wheel .status-wheel { width: 96px; height: 96px; animation: winner-pulse 1.4s ease-in-out infinite alternate; }.finale-panel .winner-text { color: #f3d68d; font: 700 1rem/1.4 Georgia, serif; text-align: center; }.finale-panel > #question-content > h2 { text-align: center; }
.board .winner-wheel .status-wheel { position: static; inset: auto; display: block; width: 96px; height: 96px; overflow: visible; }
.edge { stroke: #66d6ff; stroke-width: .18; vector-effect: non-scaling-stroke; opacity: .58; }.edge.active { stroke: #fff06a; stroke-width: .48; opacity: 1; }
.node { cursor: grab; outline: none; }.node:active { cursor: grabbing; }.node circle { fill: #07121dcc; stroke: #7ee3ff; stroke-width: .2; vector-effect: non-scaling-stroke; }.node text { fill: white; stroke: #06101a; stroke-width: .12; paint-order: stroke; text-anchor: middle; dominant-baseline: central; font-size: 1.15px; font-weight: 800; pointer-events: none; }
.node.neighbor circle { fill: #56b8ffd9; stroke: white; }.node.selected circle { fill: #ffcf45; stroke: white; stroke-width: .4; }.node.selected text { fill: #07101a; stroke: white; }
.movement-route { fill: none; stroke: #fff06a; stroke-width: .68; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px #000); pointer-events: none; }.movement-start { fill: #50e3a480; stroke: #c7ffe9; stroke-width: .45; vector-effect: non-scaling-stroke; pointer-events: none; }.movement-destination, .movement-destination.chosen { fill: rgba(0, 0, 0, .3); stroke: none; outline: none; filter: none; box-shadow: none; pointer-events: none; }
.player-piece { filter: none; pointer-events: none; }.piece-bottom-edge { stroke: #171510; stroke-width: 2.4; opacity: .94; filter: none; }.piece-side { stroke: #211f1a; stroke-width: 2.2; opacity: .94; filter: brightness(.72); }.piece-top-base { fill: #c5bdae; stroke: #26231e; stroke-width: 2.8; }.piece-segment { stroke: #403b33; stroke-width: 2.7; stroke-linejoin: round; filter: drop-shadow(0 1px .8px #0006); }.piece-bevel { fill: none; stroke: #ffffff70; stroke-width: .9; stroke-linejoin: round; transform: scale(.972); transform-origin: center; pointer-events: none; }.piece-inner-rim { fill: none; stroke: #241f19; stroke-width: 1.3; pointer-events: none; }.player-ring { stroke-width: 4.5; vector-effect: non-scaling-stroke; }.player-ring-shadow { stroke: #17140f; stroke-width: 6.5; opacity: .55; }.piece-top-shine { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .5; pointer-events: none; }.piece-ring-shade { fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; opacity: .3; }.piece-hub { fill: #a9a090; stroke: #302b24; stroke-width: 1.8; filter: drop-shadow(0 1px 1px #0008); }.piece-hub-inner { fill: #d8d0c1; stroke: #ffffff65; stroke-width: .8; }.piece-highlight { fill: #fff; opacity: .68; }.player-label { fill: #241f19; text-anchor: middle; dominant-baseline: middle; font: 900 7px/1 sans-serif; pointer-events: none; }.piece-segment.newly-awarded { transform-box: fill-box; transform-origin: center; animation: wedge-pop .42s cubic-bezier(.2,.85,.3,1); }
.sidebar { position: sticky; top: 92px; display: grid; gap: 1rem; }.panel { border: 1px solid #2a374b; border-radius: 12px; padding: 1rem; background: #111925ee; box-shadow: 0 12px 38px #0006; }.panel h2 { margin: .1rem 0 1rem; font-size: 1.45rem; }.empty-state { color: #9ba9bc; line-height: 1.55; }.node-info { min-height: 190px; }.node-info dl { display: grid; grid-template-columns: 85px 1fr; gap: .65rem; margin: 0; font-size: .83rem; line-height: 1.4; }.node-info dt { color: #8292a8; }.node-info dd { margin: 0; overflow-wrap: anywhere; }
.active-player { display: flex; align-items: center; gap: .75rem; }.active-player strong, .active-player span { display: block; }.active-player strong { font-family: Georgia, serif; font-size: 1.05rem; }.active-player div > span { margin-top: .2rem; color: #9ba9bc; font-size: .76rem; }.player-swatch { flex: 0 0 auto; width: 16px; height: 16px; border: 3px solid var(--player-color); border-radius: 50%; background: #d7d0c2; box-shadow: 0 0 10px color-mix(in srgb, var(--player-color), transparent 35%); }.die-area { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: .75rem; margin: 1rem 0; }.die { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border: 2px solid #d8bc7b; border-radius: 11px; color: #211b12; background: #efe3c5; box-shadow: inset 0 0 0 4px #f8edda, 0 6px 15px #0007; font: 800 1.7rem Georgia, serif; }.die.rolling { animation: dice-tumble .15s linear infinite alternate; }.turn-status { min-height: 1.3rem; color: #d3c39d; font-size: .83rem; }.player-list { display: grid; gap: .35rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #29364a; }.player-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .5rem; padding: .4rem; border-radius: 6px; color: #9ba9bc; font-size: .77rem; }.player-row.current { color: white; background: #243046; }.player-row small { color: #73849a; }.player-row span > small { display: block; margin-top: .12rem; }.all-wedges { color: #e2c477 !important; }.status-wheel { display: block; width: 32px; height: 32px; filter: drop-shadow(0 3px 3px #000b); }.force-roll-panel { display: grid; grid-template-columns: 1fr auto; gap: .55rem; align-items: end; }.force-roll-panel .eyebrow { grid-column: 1 / -1; }.force-roll-panel label { color: #9ba9bc; font-size: .75rem; }.force-roll-panel select { width: 100%; margin-top: .3rem; border: 1px solid #344257; border-radius: 7px; padding: .55rem; color: white; background: #0c121c; }
.deck-debug-panel dl { display: grid; grid-template-columns: 88px 1fr; gap: .4rem; margin: .7rem 0; font-size: .72rem; }.deck-debug-panel dt { color: #7f8ea3; }.deck-debug-panel dd { margin: 0; overflow-wrap: anywhere; }.deck-debug-panel label { color: #9ba9bc; font-size: .72rem; }.deck-debug-panel > div { display: grid; grid-template-columns: 1fr auto; gap: .45rem; margin-top: .35rem; }.deck-debug-panel input { min-width: 0; border: 1px solid #344257; border-radius: 7px; padding: .55rem; color: white; background: #0c121c; font: inherit; }
.wedge-debug-panel { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }.wedge-debug-panel .eyebrow { grid-column: 1 / -1; }.wedge-debug-panel label { align-self: end; color: #9ba9bc; font-size: .7rem; }.wedge-debug-panel select { min-width: 0; border: 1px solid #344257; border-radius: 7px; padding: .5rem; color: white; background: #0c121c; }.wedge-debug-panel #start-node-question { grid-column: 1 / -1; }
.wedge-debug-panel #give-all-wedges { grid-column: 1 / -1; }
.audio-debug-controls, #audio-debug-controls { display: grid; gap: .6rem; margin-top: .65rem; }.audio-debug-panel label { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; color: #c5cfdb; font-size: .74rem; }.audio-debug-panel output { color: #e4c477; }.audio-debug-panel input { grid-column: 1 / -1; width: 100%; min-height: 24px; accent-color: #b78935; }
.pawn-preview-panel #pawn-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: .7rem; }.pawn-preview-panel figure { display: grid; justify-items: center; gap: .35rem; margin: 0; padding: .6rem .25rem; border: 1px solid #334258; border-radius: 8px; background: #090e16; }.pawn-preview-panel .status-wheel { width: 88px; height: 97px; }.pawn-preview-panel figcaption { color: #c4cfdd; font-size: .68rem; font-weight: 750; }
.movement-panel label { display: block; margin: .75rem 0 .3rem; color: #9ba9bc; font-size: .75rem; font-weight: 700; }.movement-panel select { width: 100%; border: 1px solid #344257; border-radius: 8px; padding: .65rem; color: #edf2f8; background: #0c121c; font: inherit; }.movement-actions { display: grid; gap: .5rem; margin-top: .85rem; }.movement-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #29364a; font-size: .8rem; }.movement-summary { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }.movement-summary span { color: #91a2b8; }.route-path { padding: .7rem; border-radius: 7px; color: #ffe87b; background: #080d14; line-height: 1.55; overflow-wrap: anywhere; }.route-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; margin-top: .65rem; }.route-actions button { padding: .45rem; font-size: .7rem; }.route-actions span { color: #9ba9bc; text-align: center; font-size: .68rem; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 1.4rem; padding: .75rem 1rem; border-radius: 8px; background: #e9f3ff; color: #10233d; font-weight: 700; opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); pointer-events: none; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes dice-tumble { 0% { transform: translateY(0) rotate(-8deg) scale(.97); } 38% { transform: translateY(-4px) rotate(10deg) scale(1.03); } 72% { transform: translateY(-1px) rotate(-12deg) scale(.99); } 100% { transform: translateY(0) rotate(5deg) scale(1.01); } }
@keyframes winner-pulse { 0% { transform: scale(.94); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes wedge-pop { 0% { transform: scale(.88); opacity: .9; } 55% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pawn-lift { 0%, 100% { translate: 0 0; scale: 1; } 45% { translate: 0 -5px; scale: 1.035 .97; } }
@keyframes pawn-settle { 0% { translate: 0 -4px; scale: 1.04 .97; } 55% { translate: 0 2px; scale: .985 1.02; } 100% { translate: 0 0; scale: 1; } }
@keyframes panel-enter { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.99); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes panel-enter-strong { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.988); } 60% { opacity: 1; transform: translate(-50%, calc(-50% - 2px)) scale(1.012); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes answer-enter { 0% { opacity: 0; transform: translateY(8px) scale(.995); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes feedback-correct { 0% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(1.012); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes feedback-wrong { 0% { transform: translate(-50%, -50%) translateX(0) scale(1); } 35% { transform: translate(-50%, -50%) translateX(-4px) scale(1.004); } 70% { transform: translate(-50%, -50%) translateX(3px) scale(1); } 100% { transform: translate(-50%, -50%) translateX(0) scale(1); } }
@keyframes active-player-enter { 0% { opacity: .82; transform: translateY(6px) scale(.992); } 55% { opacity: 1; transform: translateY(0) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes current-player-enter { 0% { transform: scale(.992); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes status-enter { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes destination-picked { 0% { opacity: 1; transform: scale(1.035); } 55% { opacity: .92; transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
@keyframes category-enter { 0% { opacity: 0; transform: translateY(10px) scale(.99); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes category-picked { 0% { transform: scale(1); } 55% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes full-wheel-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes winner-panel-enter { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.985); } 35% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes winner-wheel-shell { 0% { transform: translateY(10px) scale(.9); } 45% { transform: translateY(-2px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
@keyframes winner-copy-enter { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes winner-segment-glow { 0% { opacity: .9; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) { .toolbar { align-items: flex-start; }.workspace { grid-template-columns: 1fr; }.sidebar { position: static; }.node text { font-size: 1.8px; } }
@media (max-width: 650px) { .toolbar { position: static; flex-direction: column; }.actions { justify-content: flex-start; }.actions button { font-size: .76rem; }.node text { font-size: 2.5px; }.node circle { r: 1.05; } main { padding: .5rem; } }
@media (max-width: 650px) { .question-panel { width: 88%; padding: .85rem; }.question-panel h2 { font-size: .9rem; }.question-actions { margin-top: .65rem; } }

/* Fase 9 — rustige bordspelpresentatie en responsive afwerking */
:root { --paper: #e9dfc7; --ink: #171b22; --brass: #b78a3d; --panel: #111925f2; --motion-fast: 170ms; --motion-normal: 250ms; --motion-emphasis: 520ms; --motion-winner: 920ms; --ease-standard: cubic-bezier(.16,.84,.32,1); --ease-panel: cubic-bezier(.2,.82,.24,1); --ease-settle: cubic-bezier(.18,1,.32,1); }
html { overflow-x: hidden; }
body { min-height: 100vh; background-color: #090d14; background-image: radial-gradient(circle at 18% 0, #25304455, transparent 32rem), linear-gradient(135deg, #ffffff04 25%, transparent 25% 75%, #ffffff03 75%); background-size: auto, 18px 18px; }
button, select, input { min-height: 44px; }
button:focus-visible, select:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline: 3px solid #f3cb72; outline-offset: 3px; }
.toolbar { min-height: 68px; padding: .7rem clamp(.8rem, 2vw, 1.5rem); border-bottom-color: #69563688; background: linear-gradient(180deg, #111925f5, #0b111bf0); }
.toolbar h1 { color: #f3ead8; font: 700 clamp(1.05rem, 1.5vw, 1.35rem)/1.1 Georgia, serif; letter-spacing: .065em; }
.toolbar .eyebrow { color: #bda46e; }
.developer-toggle { color: #9aa7b8; border-color: #2a3749; background: transparent; font-size: .78rem; }
.sound-toggle { font-size: .82rem; }
main { padding: .75rem; }
.loading-screen { display: grid; place-items: center; gap: .8rem; min-height: 55vh; color: #d8c9a8; }
.loading-screen[hidden] { display: none; }
.loading-mark { width: 34px; height: 34px; border: 3px solid #75684e; border-top-color: #e4c373; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.setup-screen { min-height: min(620px, calc(100vh - 100px)); margin: 0 auto; border-color: #7b6844; background: radial-gradient(circle at 25% 0, #3a3022cc, transparent 23rem), linear-gradient(145deg, #1c1a16f5, #111824fa); }
.setup-card { width: min(100%, 470px); padding: clamp(.25rem, 2vw, 1rem); }
.setup-card h2 { color: #f0e5ce; font-size: clamp(1.5rem, 3vw, 2rem); }
.setup-card .primary { font-size: 1rem; }
.resume-details { padding: .9rem; border: 1px solid #ffffff12; border-radius: 8px; background: #080d1470; }
.workspace { grid-template-columns: minmax(0, 1fr) 292px; gap: .75rem; max-width: 1780px; }
.board { justify-self: end; width: min(100%, calc((100vh - 94px) * 1.4997)); aspect-ratio: 7104 / 4737; border-color: #665638; box-shadow: 0 16px 45px #0009, 0 0 0 1px #bfa36b20; isolation: isolate; }
.board > img { width: 100%; height: 100%; object-fit: contain; }
.board::after { content: ""; position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0 12%, rgba(7, 11, 17, 0) 24%, rgba(7, 11, 17, .12) 62%, rgba(7, 11, 17, .18) 100%); transition: opacity var(--motion-normal) var(--ease-standard); }
.board.finale-focus::after { opacity: 1; }
.sidebar { top: 78px; gap: .65rem; }
.panel { padding: .8rem; border-color: #39465a; background: linear-gradient(145deg, #141e2bf2, #0f1621f5); box-shadow: 0 8px 24px #0005; }
.game-panel { border-color: #7e6740; }
.active-player { padding-bottom: .65rem; border-bottom: 1px solid #ffffff12; will-change: transform, opacity; }
.active-player.active-player-enter { animation: active-player-enter 300ms var(--ease-standard) both; }
.active-player strong { color: #fff1ce; font-size: 1rem; }
.die-area { grid-template-columns: 62px 1fr; margin: .7rem 0; }
.die { grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 3px; width: 62px; padding: 9px; will-change: transform; }
.die.rolling { animation: dice-tumble 170ms cubic-bezier(.3,.82,.35,1) infinite; }
.die.settling { animation: winner-pulse var(--motion-fast) var(--ease-settle) both; }
.pip { display: block; width: 8px; height: 8px; place-self: center; border-radius: 50%; background: transparent; }
.pip.visible { background: #241e17; box-shadow: inset 0 1px 1px #0008; }
#roll-die:not(:disabled) { box-shadow: 0 0 0 1px #d9b96633, 0 6px 15px #0005; }
.turn-status { min-height: 2.5rem; margin-top: .35rem; padding: .55rem .65rem; border-left: 3px solid #b98c3f; border-radius: 4px; color: #eadbb8; background: #080d1470; line-height: 1.45; will-change: transform, opacity; }
.turn-status.status-enter { animation: status-enter var(--motion-normal) var(--ease-standard) both; }
.player-list { grid-template-columns: 1fr 1fr; gap: .4rem; }
.player-row { grid-template-columns: 38px 1fr; min-width: 0; border: 1px solid transparent; padding: .45rem; will-change: transform, opacity; }
.player-row > small { grid-column: 2; }
.player-row.current { border-color: #b9914d; background: #3a3123aa; box-shadow: inset 3px 0 #e1bd70; }
.player-row.current.current-enter { animation: current-player-enter 300ms var(--ease-standard) both; }
.status-wheel { width: 36px; height: 38px; overflow: visible; pointer-events: none; will-change: transform; }
.status-wheel.full-wheel-pulse { transform-origin: center; animation: full-wheel-pulse var(--motion-emphasis) var(--ease-settle) both; }
.player-piece { shape-rendering: geometricPrecision; transform-box: fill-box; transform-origin: center; will-change: transform; }
.player-piece .piece-segment { stroke-width: 2.7; filter: none; }
.player-piece .piece-side, .player-piece .piece-hub { filter: none; }
.player-piece .player-ring { stroke-width: 3; }
.player-piece .player-ring-shadow { stroke-width: 4.5; opacity: .42; }
.player-piece .piece-top-shine, .player-piece .piece-highlight { display: none; }
.player-piece .piece-bevel { stroke: #ffffff35; transform-box: fill-box; transform-origin: center; }
.player-piece.moving { transform-box: fill-box; transform-origin: center; animation: pawn-lift .24s ease-in-out infinite; }
.player-piece.full-wheel-pulse .piece-visual { transform-box: fill-box; transform-origin: center; animation: full-wheel-pulse var(--motion-emphasis) var(--ease-settle) both; }
.movement-destination { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard); animation: destination-pulse 1600ms var(--ease-standard) infinite alternate; }
.movement-destination.chosen { animation: destination-picked var(--motion-fast) var(--ease-settle) both; }
.movement-destination.fading { animation: none; opacity: 0; transform: scale(.965); }
.board.destination-mode #overlay { cursor: default; }
.board.destination-mode .node { cursor: pointer; }
.board.destination-mode:not(.debug-active) .node:not(.legal-destination) { pointer-events: none; }
.board.destination-mode:not(.debug-active) .node.legal-destination circle { r: 3.25; pointer-events: all; }
.movement-destination-hitbox { fill: transparent; stroke: none; pointer-events: all; cursor: pointer; touch-action: none; }
.question-panel { width: min(700px, 82%); max-height: min(80vh, 620px); overflow-y: auto; padding: clamp(1rem, 2vw, 1.5rem); border-color: #c5a35d; background: linear-gradient(145deg, #1e1a13fa, #101824fc); box-shadow: 0 28px 90px #000e, inset 0 0 0 1px #ffffff13; opacity: 1; transform-origin: center; will-change: transform, opacity; }
.question-panel.panel-enter { animation: panel-enter var(--motion-normal) var(--ease-panel) both; }
.question-panel.panel-enter-strong { animation: panel-enter-strong calc(var(--motion-normal) + 50ms) var(--ease-panel) both; }
.question-panel.winner-enter { animation: winner-panel-enter var(--motion-winner) var(--ease-panel) both; }
.question-panel.feedback-correct { animation: feedback-correct var(--motion-normal) var(--ease-standard) both; }
.question-panel.feedback-wrong { animation: feedback-wrong var(--motion-normal) var(--ease-standard) both; }
.question-meta { padding-bottom: .65rem; border-bottom: 1px solid #ffffff18; }
.question-panel h2 { max-width: 60ch; margin: .65rem auto 0; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.5; }
.question-player { margin-top: .8rem; }
.answer-box { padding: 1rem; will-change: transform, opacity; }
.answer-box.answer-enter { animation: answer-enter 220ms var(--ease-standard) both; }
.answer-box span { color: #e2c77e; font-size: .72rem; }
.answer-box p { font-size: clamp(1rem, 1.5vw, 1.18rem); }
.question-actions button { min-height: 54px; }
.question-panel .result-button:disabled { opacity: .82; }
.result-button { font-size: 1.02rem; }
.result-button span { margin-right: .3rem; font-size: 1.15em; }
.final-categories button { min-height: 58px; padding: .8rem; }
.final-category-button { opacity: 1; transform: translateY(0) scale(1); transition: transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard); }
.question-panel.panel-enter-strong .final-category-button { animation: category-enter var(--motion-normal) var(--ease-panel) both; animation-delay: calc(var(--stagger-index) * 40ms); }
.final-category-button.is-picked { animation: category-picked var(--motion-fast) var(--ease-settle) both; }
.winner-wheel .status-wheel { animation: none; }
.question-panel.winner-enter .winner-wheel-shell { animation: winner-wheel-shell calc(var(--motion-winner) - 180ms) var(--ease-settle) both; }
.question-panel.winner-enter .winner-wheel .status-wheel { animation: winner-pulse calc(var(--motion-winner) - 180ms) var(--ease-settle) both; }
.question-panel.winner-enter .winner-wheel .piece-segment { transform-box: fill-box; transform-origin: center; animation: winner-segment-glow 360ms var(--ease-standard) 180ms both; }
.question-panel.winner-enter .winner-name { animation: winner-copy-enter 280ms var(--ease-standard) 220ms both; }
.question-panel.winner-enter .winner-text { animation: winner-copy-enter 280ms var(--ease-standard) 300ms both; }
.toast { max-width: min(92vw, 540px); border: 1px solid #e0bd68; color: #fff1c8; background: #29301f; text-align: center; }
.mobile-advice { display: none; margin: .5rem 1rem 1rem; color: #a9b3c1; font-size: .78rem; text-align: center; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes destination-pulse { 0% { opacity: .82; transform: scale(1); } 100% { opacity: 1; transform: scale(1.035); } }

@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (min-width: 600px) {
  html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  .toolbar { min-height: 48px; height: 48px; padding: .25rem .5rem; }
  .toolbar h1 { font-size: clamp(.78rem, 1.8vw, 1.05rem); }
  .toolbar .actions { flex-wrap: nowrap; }
  .toolbar .actions button { min-height: 38px; padding: .35rem .5rem; font-size: .7rem; }
  main { height: calc(100dvh - 48px); padding: .3rem; overflow: hidden; }
  .workspace { grid-template-columns: minmax(0, 1fr) clamp(176px, 24vw, 250px); align-items: start; gap: .35rem; width: 100%; height: 100%; max-width: none; }
  .board { justify-self: end; width: min(100%, calc((100dvh - 55px) * 1.4997)); max-height: calc(100dvh - 55px); }
  .sidebar { position: static; display: block; height: 100%; overflow: hidden; }
  .sidebar > .panel { margin-bottom: .5rem; }
  .game-panel { padding: .45rem; font-size: .82rem; }
  .game-panel .player-list { grid-template-columns: 1fr 1fr; }
  .die-area { grid-template-columns: 48px 1fr; gap: .4rem; margin: .35rem 0; }
  .die { width: 48px; padding: 7px; }
  .turn-status { min-height: 0; margin: .2rem 0; padding: .35rem; }
  .player-list { margin-top: .35rem; padding-top: .35rem; }
  .player-row { grid-template-columns: 32px 1fr; gap: .25rem; padding: .25rem; }
  .status-wheel { width: 30px; height: 32px; }
  .question-panel { position: absolute; max-height: 88%; box-shadow: 0 28px 90px #000e, inset 0 0 0 1px #ffffff13; }
  .mobile-advice { display: none; }
}

@media (hover: none) and (pointer: coarse) and (min-width: 600px) {
  html, body, button, select, input { touch-action: manipulation; }
  .board { touch-action: none; }
  .is-ipad .toolbar { height: calc(48px + env(safe-area-inset-top, 0px)); min-height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: calc(.25rem + env(safe-area-inset-top, 0px)); }
  .is-ipad .workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(176px, 22vw, 230px); gap: .5rem; }
  .is-ipad main { height: calc(100svh - 48px - env(safe-area-inset-top, 0px)); }
  .is-ipad .board { justify-self: end; width: min(100%, calc((100svh - 120px - env(safe-area-inset-top, 0px)) * 1.4997)); max-height: none; margin: 1rem 0 0; }
  .is-ipad .sidebar { position: static; width: auto; height: auto; margin-top: 1rem; overflow: visible; pointer-events: auto; }
  .is-ipad .sidebar .game-panel { border-color: #7e6740; background: linear-gradient(145deg, #141e2bf2, #0f1621f5); box-shadow: 0 8px 24px #0005; backdrop-filter: none; }
}
@media (max-width: 760px) {
  .toolbar { position: static; }
  .toolbar .eyebrow { display: none; }
  .actions { gap: .35rem; }
  .actions button { min-height: 42px; padding: .55rem .65rem; }
  main { padding: .25rem; }
  .workspace { grid-template-columns: minmax(0, 1fr) 176px; gap: .25rem; }
  .board { width: min(100%, calc((100dvh - 53px) * 1.4997)); }
  .game-panel .player-list { grid-template-columns: 1fr 1fr; }
  .question-panel { width: 92%; max-height: 92%; }
  .final-categories { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .toolbar h1 { font-size: .92rem; }
  .developer-toggle { font-size: 0; width: 44px; }
  .developer-toggle::after { content: "⚙"; font-size: 1rem; }
  .player-list, .game-panel .player-list { grid-template-columns: 1fr; }
  .question-actions { grid-template-columns: 1fr; }
  .question-actions button { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .loading-mark, .die.rolling, .die.settling, .movement-destination, .piece-segment.newly-awarded, .player-piece.moving, .player-piece.settling, .player-piece.full-wheel-pulse .piece-visual, .status-wheel.full-wheel-pulse, .question-panel.panel-enter, .question-panel.panel-enter-strong, .question-panel.winner-enter, .question-panel.feedback-correct, .question-panel.feedback-wrong, .answer-box.answer-enter, .active-player.active-player-enter, .player-row.current.current-enter, .turn-status.status-enter, .question-panel.winner-enter .winner-wheel-shell, .question-panel.winner-enter .winner-wheel .status-wheel, .question-panel.winner-enter .winner-wheel .piece-segment, .question-panel.winner-enter .winner-name, .question-panel.winner-enter .winner-text, .question-panel.panel-enter-strong .final-category-button, .final-category-button.is-picked { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .movement-destination { animation: none !important; }
  .board::after, .toast { transition: none; }
}
