/* The crystal-blue scene is game art, not a second platform chrome theme. */
#play { position:fixed; inset:0; background:#050c1c; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
#play .dodge-scene { position:relative; height:100%; height:100dvh; max-height:100%; aspect-ratio:9/16; max-width:100%; margin:auto; background:#080f24 url('./background.webp') center/100% 100% no-repeat; color:#e9f3ff; font-family:var(--font-sans); container-type:size; }
#play button { color:inherit; border:1px solid #9b8448; background:#091226d9; border-radius:10px; min-width:42px; min-height:42px; padding:8px; }
#play button:active { transform:scale(.96); background:#253651; }
#play button:focus-visible { outline:3px solid #7bdefb; outline-offset:3px; }
#play .dodge-header { position:absolute; top:max(2.3%,env(safe-area-inset-top)); left:5%; right:5%; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #a48a4b; padding-top:1.5%; }
#play .dodge-header a { font-size:clamp(10px,2.4cqw,14px); color:#a8b7cb; text-decoration:none; }
#play h1 { color:#f3d47e; font-size:clamp(23px,6.4cqw,38px); margin:2px 0 0; line-height:1.2; text-shadow:0 2px 14px #f1c66738; }
#play .dodge-tools { display:flex; gap:7px; }
#play #sound { font-size:12px; }
#play #pause { font-weight:800; font-size:23px; }
#play .dodge-team { position:absolute; top:11%; left:5%; right:5%; height:5.8%; background:#080f23db; border:1px solid #9b8448; border-radius:8px; display:flex; justify-content:space-between; padding:1% 2%; gap:6px; }
#play .dodge-team > div { display:flex; align-items:center; gap:6px; }
#play .dodge-team img { width:9cqw; height:100%; object-fit:contain; }
#play .dodge-team strong { font-size:clamp(12px,3cqw,18px); }
#play .dodge-team small { display:block; font-size:clamp(9px,2.3cqw,13px); color:#a2afc7; }
#play #tier-icon { width:12cqw; }
#play .dodge-score { position:absolute; top:18%; left:5%; right:5%; display:flex; justify-content:space-between; }
#play .dodge-score > div:last-child { text-align:right; }
#play .dodge-score small { display:block; font-size:clamp(10px,2.5cqw,14px); color:#a2bddb; }
#play .dodge-score strong { display:block; font:bold clamp(24px,6.8cqw,40px)/1.1 var(--font-rounded),sans-serif; color:#ffe2a0; font-variant-numeric:tabular-nums; }
#play .dodge-meta { position:absolute; top:25.1%; left:6%; right:6%; display:flex; justify-content:space-between; font-size:clamp(12px,3cqw,18px); color:#f7d57a; }
#play #lives { color:#7de4ff; letter-spacing:4px; }
#play .dodge-field { position:absolute; left:4%; right:4%; top:28%; bottom:30%; }
#play canvas { width:100%; height:100%; display:block; }
#play .dodge-flag { position:absolute; top:4%; right:7%; border-left:2px solid #d8bc71; height:15%; pointer-events:none; }
#play .dodge-flag img { width:8cqw; height:8cqw; object-fit:contain; background:#091429af; }
#play #feedback { position:absolute; top:65%; left:10%; right:10%; text-align:center; color:#ffe2a0; font-weight:700; font-size:clamp(12px,3cqw,18px); pointer-events:none; text-shadow:0 2px 5px #000; background:#091426e6; border-radius:6px; padding:4px; }
#play #feedback:empty { display:none; }
#play .dodge-controls { position:absolute; top:75%; left:7%; right:7%; height:12%; display:flex; align-items:center; justify-content:space-between; }
#play .dodge-stick { color:#8ddcf5; font-size:clamp(12px,2.8cqw,16px); display:flex; align-items:center; gap:8px; }
#play #joystick { position:relative; width:24cqw; height:24cqw; min-width:84px; min-height:84px; border:2px solid #69c6e58c; border-radius:50%; background:radial-gradient(circle,#183456c7,#09172bd9); box-shadow:inset 0 0 0 7px #0b1a3066,0 0 22px #70d5ff14; touch-action:none; cursor:grab; -webkit-tap-highlight-color:transparent; }
#play #joystick:focus-visible { outline:3px solid #7bdefb; outline-offset:3px; }
#play #joystick.is-active { border-color:#a5e9ff; box-shadow:0 0 22px #70d5ff38; cursor:grabbing; }
#play #joystick svg { position:absolute; inset:9%; width:82%; height:82%; stroke:#9bdffb70; fill:none; stroke-width:1.6; pointer-events:none; }
#play #joystick-knob { position:absolute; left:50%; top:50%; width:43%; height:43%; border:1px solid #acecff; border-radius:50%; background:radial-gradient(circle at 35% 30%,#8adcf5,#346282 65%,#19304d); box-shadow:0 3px 10px #020819b0,inset 0 0 0 3px #8ddcf526; transform:translate(-50%,-50%) translate(var(--stick-x,0px),var(--stick-y,0px)); pointer-events:none; }
#play #flash { width:20cqw; height:20cqw; min-width:64px; min-height:64px; border-radius:50%; border:2px solid #e5c45e; box-shadow:inset 0 0 0 4px #0a132a, inset 0 0 0 5px #a88942,0 0 24px #d2ae3030; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:5px; }
#play #flash svg { width:9cqw; height:9cqw; fill:#f5d36b; }
#play #flash strong { font-size:clamp(14px,3.8cqw,21px); line-height:1; }
#play #flash small { color:#9cddf2; font-size:clamp(10px,2.5cqw,14px); margin-top:4px; }
#play #flash:disabled { opacity:.7; border-color:#566584; box-shadow:none; }
#play #flash:disabled svg { fill:#8390a8; }
#play .dodge-bottom { position:absolute; left:5%; right:5%; bottom:max(3%,env(safe-area-inset-bottom)); text-align:center; }
#play .dodge-bottom p { margin:0 0 5px; padding:8px 3px; border:1px solid #9b8448; border-radius:7px; background:#080f24d9; color:#f2d48a; font-size:clamp(11px,2.8cqw,16px); }
#play .dodge-bottom small { color:#92a2bc; font-size:clamp(9px,2.2cqw,12px); }
#play .dodge-progress { height:3px; margin-top:8px; background:#304160; }
#play #progress { display:block; background:#e6c369; height:100%; width:0; }
#play .dodge-overlay { position:absolute; inset:0; display:grid; place-items:center; background:#030a1b9c; z-index:2; text-align:center; padding:6%; }
#play .dodge-overlay > div { width:100%; padding:28px 14px; border-block:1px solid #bda463; background:linear-gradient(90deg,#0a142bc4,#101e37f0,#0a142bc4); }
#play .dodge-overlay h2 { color:#f9d984; margin:10px 0; font-size:clamp(20px,5.5cqw,32px); }
#play .dodge-overlay p { color:#cad8eb; font-size:clamp(13px,3cqw,18px); line-height:1.9; }
#play .dodge-overlay small { display:block; color:#b1c3dc; font-size:clamp(11px,2.7cqw,15px); }
#play .dodge-eyebrow { color:#91b7db; font-size:12px; }
#play .dodge-guide-arrow { display:block; font-size:60px; line-height:1.5; color:#9de9ff; }
#play #guide { pointer-events:none; }
#play #resume { display:block; margin:20px auto; padding:12px 38px; background:#e4c16b; color:#101b31; font-weight:700; }
@media(hover:hover) and (pointer:fine) { #play button:hover:not(:disabled) { filter:brightness(1.2); } }
@media(max-aspect-ratio:9/16) { #play .dodge-scene { width:100%; aspect-ratio:auto; } }
@media(prefers-reduced-motion:reduce) { #play button:active { transform:none; } }
