/* Full future information is visible before Start, wraps at320px and never mirrors the board. */
.schedule{padding:14px;margin-block:12px;border:1px solid #94e6db;background:#17324e;border-radius:22px;color:#f7fcff}
.schedule h2{font-size:1.05rem;margin:0 0 8px}.schedule p{font-size:1rem;line-height:1.55;margin:0 0 12px}
#future-trays{display:grid;gap:8px}.future-tray{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border:1px solid #6589ab;border-radius:12px}.future-tray.current{outline:2px solid #ffd14a}
.future-tray strong{min-width:64px;font-size:1rem}.future-piece{width:56px;height:42px;display:flex;justify-content:center;align-items:center}.future-piece svg{max-width:52px;max-height:38px}
.future-piece.consumed{opacity:.6;border-bottom:2px solid #b4d8e6}.exit-panel button{min-height:52px;max-width:100%;white-space:normal}
.board-viewport{overflow:auto;max-inline-size:100%;padding:4px;overscroll-behavior:contain}#zoom-board{margin-block:0 8px;min-height:48px;max-width:100%;white-space:normal}.board-shell.zoomed{min-inline-size:392px}.board-shell.zoomed #board-buttons,.board-shell.zoomed #board-buttons button{touch-action:pan-x pan-y}
body{background:radial-gradient(ellipse at 10% 0,#4c20a077,transparent 65%),radial-gradient(ellipse at 95% 40%,#087f9944,transparent 70%),linear-gradient(#111735,#163b75 55%,#082a45)}.harbour{min-height:224px;background-color:#346bff;border-color:#9ceffc;box-shadow:0 12px 30px #17355e55}.harbour .scene-copy{background:linear-gradient(120deg,#172a4ada,#172a4a20);border-radius:24px}.hero{z-index:2;bottom:10px}.wordmark{color:#c6faff;text-shadow:0 2px 14px #38bcff66}.board-shell{background:#172a4a;border-color:#c0f8ff}.piece{background:linear-gradient(140deg,#346bff,#172a4a);border-color:#b9f8ee}.stage-screen{background:linear-gradient(130deg,#346bff,#172a4a);border-color:#9af3f0}
#city-lights{position:absolute;inset-inline-start:20px;bottom:25px;display:flex;align-items:end;gap:12px}.facade{display:grid;grid-template-columns:repeat(3,12px);gap:5px;padding:12px 9px 8px;background:linear-gradient(#ffb6c3,#ff657a);border:2px solid #ffd7e2;border-radius:12px 12px 2px 2px;box-shadow:4px 5px #17355e70}.facade:nth-child(2){padding-top:22px;background:linear-gradient(#76edda,#19c7b4)}.facade i{display:block;width:12px;height:15px;border:1px solid #a4c6df;border-radius:4px 4px 1px 1px;background:#172a4a}.facade.lit i{background:#ffd14a;border-color:#fff6b0;box-shadow:0 0 10px #ffe391}.facade.lit{border-color:#fff2b1}
#contact-layer{position:absolute;inset:12px;pointer-events:none;direction:ltr}.seat-glint{position:absolute;width:12.5%;height:12.5%;border:2px solid #fff6b1;border-radius:8px;box-shadow:inset 0 0 6px #fff6b180;pointer-events:none}.celebrating .hero{animation-duration:var(--win-ms,800ms)}.result-card{background:radial-gradient(circle at top,#346bff,#172a4a 65%)}
@media(max-width:359px){#city-lights{inset-inline-start:14px;gap:7px}.facade{grid-template-columns:repeat(3,10px);padding-inline:7px}.facade i{width:10px}.scene-copy{max-width:68%}}
#result-hero{width:104px;height:123px;object-fit:contain;filter:drop-shadow(0 7px 8px #ffd14a33)}.celebrating #result-hero{animation:hero-cheer var(--win-ms,800ms) ease-out}.result-card h2{font-size:1.65rem}.result-actions button{white-space:normal}

button{background:linear-gradient(145deg,#335adb,#253574);border-color:#8acfff}.result-actions button:first-child{background:linear-gradient(140deg,#067d86,#174fa8);border-color:#83f0eb}.schedule{background:linear-gradient(140deg,#173c64,#182248)}.seat-glint{background:linear-gradient(135deg,#ffffff44,transparent 55%)}

/* Mobile play successor: one fixed viewport, one tray strip and a dominant board. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-stage=play],body[data-stage=play]{height:100%;overflow:hidden;overscroll-behavior:none}
body[data-stage=play]{--board-size:min(78vw,calc(100dvh - 254px),430px)}
body[data-stage=play] .scene{height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:44px 36px minmax(0,1fr);gap:4px;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
body[data-stage=play] .eyebrow{display:none}
body[data-stage=play] .topbar{min-height:44px}
body[data-stage=play] .topbar button{min-height:44px;height:44px;padding:.25rem .62rem;border-radius:22px}
body[data-stage=play] .wordmark{font-size:1.35rem}
body[data-stage=play] .harbour{min-height:36px;height:36px;margin:0;border-radius:18px;overflow:hidden}
body[data-stage=play] .harbour .scene-copy{padding:2px 8px;max-width:72%;background:linear-gradient(90deg,#172a4aee,#172a4a33)}
body[data-stage=play] .harbour h1{font-size:.92rem;line-height:1.1;margin:0}
body[data-stage=play] .harbour .scene-copy p{font-size:.68rem;line-height:1.15;margin:1px 0}
body[data-stage=play] .hero{width:48px;bottom:-3px;inset-inline-end:8px}
body[data-stage=play] #city-lights{transform:scale(.38);transform-origin:bottom left;bottom:2px;inset-inline-start:8px;opacity:.75}
body[data-stage=play] .light-gauge{bottom:5px;inset-inline-start:58px;gap:4px}
body[data-stage=play] .light-gauge i{width:9px;height:13px;border-width:1px}
body[data-stage=play] .play{min-height:0;overflow:hidden;display:grid;grid-template-rows:24px var(--board-size) 24px 54px 44px;gap:3px;align-content:start;justify-items:center}
body[data-stage=play] .hud{width:var(--board-size);height:24px;margin:0;align-items:center}
body[data-stage=play] .hud p{font-size:.72rem;gap:5px}
body[data-stage=play] .hud strong{font-size:.96rem}
body[data-stage=play] .board-viewport{width:var(--board-size);height:var(--board-size);padding:1px;overflow:visible}
body[data-stage=play] .board-shell{width:100%;height:100%;border-radius:18px;box-shadow:0 8px 24px #03132699,0 0 24px #40dcd329}
body[data-stage=play] #canvas-mount canvas{border-radius:18px}
body[data-stage=play] .status{width:var(--board-size);min-height:24px;height:24px;overflow:hidden;margin:0;font-size:.72rem;line-height:1.25;text-align:center;color:#f3fbff}
.tray-strip{width:min(100%,460px);height:54px;margin:0}
.tray{height:54px;display:flex;gap:4px;direction:ltr}
.future-tray{position:relative;min-width:0;height:54px;display:flex;flex:1 1 0;flex-wrap:nowrap;align-items:center;justify-content:center;gap:2px;padding:8px 3px 2px;border:1px solid #6589ab;border-radius:13px;background:#16284d;overflow:hidden;transition:flex .18s ease,border-color .18s ease,box-shadow .18s ease}
.future-tray.current{flex:2.35 1 0;outline:0;border-color:#ffe287;box-shadow:0 0 0 2px #ffd14a,0 0 18px #ffd14a55;background:linear-gradient(140deg,#244d86,#173357)}
.future-tray strong{position:absolute;top:0;inset-inline-start:5px;min-width:0;font-size:.62rem;line-height:1;color:#cce8ff}
.future-piece{width:17px;height:27px;display:flex;align-items:center;justify-content:center;opacity:.78}
.future-piece svg{width:24px;max-width:24px;max-height:25px}
.future-piece.consumed{opacity:.24;border:0;filter:saturate(.2)}
.future-tray .piece{flex:1 1 44px;min-width:44px;min-height:44px;height:44px;padding:2px;border-radius:12px;touch-action:none}
.future-tray .piece svg{width:38px;height:34px;max-width:100%}
.thumbbar{width:min(100%,460px);height:44px;display:flex;flex-wrap:nowrap;justify-content:center;gap:4px;margin:0}
.thumbbar button[data-icon],#help-close[data-icon]{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;border-radius:50%;font-size:1.22rem;line-height:1}
#help[data-icon]{font-weight:900;color:#17254b;background:#ffe287;border-color:#fff4b7}
#mute-quick[aria-pressed=true],#motion-quick[aria-pressed=true]{background:#17223e;color:#a9bbd8;box-shadow:inset 0 0 0 2px #7183a6}
.help-panel{position:fixed;inset:0;z-index:22;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));background:#07142de8;overflow:auto}
.help-card{position:relative;width:min(100%,460px);margin:auto;padding:22px 18px;border:1px solid #8cebe4;border-radius:24px;background:linear-gradient(145deg,#213f72,#142748);box-shadow:0 22px 70px #020a1b}
.help-card h2{margin:0 52px 8px;font-size:1.35rem;color:#fff0b8}.help-card p{margin:.45rem 0;color:#edf7ff;line-height:1.5}.help-card #help-close{position:absolute;top:10px;inset-inline-end:10px}.help-card .settings-options{padding:8px 0}.help-card #save-status{font-size:.82rem;color:#bcebe4}
.line-glow{position:absolute;display:block;pointer-events:none;border-radius:8px;background:linear-gradient(90deg,#fff6b155,#fff6b1,#79fff4,#fff6b155);box-shadow:0 0 16px #fff6b1,0 0 28px #55eddf;mix-blend-mode:screen}
.line-glow.row{left:0;width:100%;height:12.5%}.line-glow.column{top:0;width:12.5%;height:100%;background:linear-gradient(#fff6b155,#fff6b1,#79fff4,#fff6b155)}
@media(max-height:520px){body[data-stage=play] .harbour .scene-copy p{display:none}.tray-strip,.tray,.future-tray{height:54px}.future-tray .piece{height:44px;min-height:44px}.play{gap:3px}}

/* Review successor: measure the rendered usable field area, not one square width. */
body[data-stage=play]{--field-width:min(calc(100vw - 16px),620px);--field-height:min(calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),76dvh)}
body[data-stage=play] .scene{height:100dvh;display:block;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
body[data-stage=play] .topbar,body[data-stage=play] .harbour{display:none}
body[data-stage=play] .play{position:relative;height:100%;display:grid;grid-template-rows:var(--field-height) 62px 44px;gap:3px;align-content:center;justify-items:center;overflow:hidden}
body[data-stage=play] .board-viewport{position:relative;width:var(--field-width);height:var(--field-height);padding:0;overflow:hidden;border-radius:12px}
body[data-stage=play] .board-shell{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:12px}
body[data-stage=play] #canvas-mount,body[data-stage=play] #canvas-mount canvas{width:100%;height:100%;border-radius:12px}
body[data-stage=play] #board-buttons,body[data-stage=play] #contact-layer{inset:0}
.tray-strip{position:relative;width:min(100%,460px);height:62px;margin:0}
.play-readout{height:16px;display:flex;align-items:center;gap:6px;color:#eefaff;overflow:hidden}
body[data-stage=play] .hud{position:static;transform:none;flex:0 0 116px;width:116px;height:16px;margin:0;padding:0 4px;align-items:center;border:0;border-radius:7px;background:#0c2747}
body[data-stage=play] .hud p{font-size:.58rem;gap:2px}body[data-stage=play] .hud strong{font-size:.68rem}
.board-status{min-width:0;flex:1;height:16px;overflow:hidden}
body[data-stage=play] .board-status .status{width:100%;height:16px;min-height:0;margin:0;padding:0 3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.58rem;line-height:16px;text-align:start;color:#e7f7ff}
body[data-stage=play] .tray{height:46px}
body[data-stage=play] .future-tray{height:46px;padding:1px 3px}
body[data-stage=play] .future-tray strong{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.board-float{position:static;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#10294f}
.help-card #help-language{width:100%;margin-top:10px}
@media(max-width:400px){body[data-stage=play] #mute-quick,body[data-stage=play] #motion-quick{display:none}}
@media(max-height:520px){body[data-stage=play] .play{grid-template-rows:var(--field-height) 62px 44px;gap:3px}.tray-strip{height:62px}.tray,.future-tray{height:46px}.future-tray .piece{height:44px;min-height:44px}}
