:root {
 --play-cyan: #55d5ee;
 /* Existing SafeAreaViewportAdapter reads these browser-owned window insets. */
 --polarity-safe-left: env(safe-area-inset-left, 0px);
 --polarity-safe-top: env(safe-area-inset-top, 0px);
 --polarity-safe-right: env(safe-area-inset-right, 0px);
 --polarity-safe-bottom: env(safe-area-inset-bottom, 0px);
}
.play-main { padding-top: 52px; padding-bottom: 90px; }
.play-intro { text-align: center; max-width: 700px; margin: 0 auto 38px; }
.back-link { display: inline-block; margin-bottom: 30px; font-size: 12px; color: #aeb5bc; border-bottom: 1px solid #525a61; padding-bottom: 5px; }
.play-intro .kicker { justify-content: center; }
.play-intro h1 { margin: 16px 0; font-size: clamp(50px, 8vw, 90px); letter-spacing: -.065em; }
.play-word-accent { color: var(--orange); }
.play-intro p { max-width: 520px; margin: 0 auto 22px; line-height: 1.7; color: var(--sub); font-size: 15px; }
.play-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.play-meta span { padding: 7px 11px; border: 1px solid #47494d; border-radius: 30px; font-size: 11px; color: #c4cbd0; }
.play-section { max-width: 1050px; margin: 0 auto; }
.play-stage { width: min(100%, 550px); margin: 0 auto; border: 1px solid #343940; border-radius: 16px; background: #11151d; overflow: hidden; box-shadow: 0 20px 75px #0006; }
.play-screen { min-height: min(75vh, 830px); max-height: 900px; aspect-ratio: 9 / 18.5; width: 100%; position: relative; overflow: hidden; background: radial-gradient(ellipse at 55% 65%, #202936 0%, #121a26 44%, #0a0e15 85%); }
.play-screen canvas { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -3px; }
.play-screen canvas[hidden] { display: none; }
.play-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 26px; text-align: center; background: radial-gradient(ellipse at 45% 45%, #1d28383c, transparent 76%); }
.play-cover[hidden] { display: none; }
.play-cover-orb { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 32% 42%, #3de8f4 0, #0073a1 22%, #111923 43%, #161419 58%, #b34214 74%, #ff7517 92%); box-shadow: -25px 0 52px #00bddd2c, 28px 0 52px #fb6d1b35; margin-bottom: 44px; }
.play-cover-kicker { letter-spacing: .2em; text-transform: uppercase; font-size: 10px; color: #b7c3cf; }
.play-cover h2 { font-size: clamp(32px, 6vw, 46px); letter-spacing: -.045em; margin: 0 0 22px; }
#play-status { font-size: 14px; color: #c3ccd3; max-width: 360px; line-height: 1.7; }
.play-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 20px; }
.play-button:disabled { cursor: not-allowed; filter: grayscale(.8); }
.play-button[hidden] { display: none; }
.play-feedback-link { color: #d4a481; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.play-progress { width: min(280px, 80%); height: 7px; border-radius: 8px; overflow: hidden; margin-top: 23px; background: #38404e; }
.play-progress[hidden] { display: none; }
.play-progress > span { width: 0; height: 100%; display: block; background: linear-gradient(90deg, #10b4db, #fe7c1c); }
.play-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 11px; color: #929ca6; }
.play-toolbar-button { padding: 8px 11px; border-radius: 5px; background: #252a31; color: #f1f3f3; border: 1px solid #454d55; cursor: pointer; font: inherit; }
.play-toolbar-button:disabled { color: #69727c; cursor: not-allowed; }
.play-notes { margin: 52px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.play-note { border-top: 1px solid #414448; padding-top: 22px; }
.play-note h2 { font-size: 19px; margin-bottom: 12px; letter-spacing: -.025em; }
.play-note p { color: #aeb3ba; font-size: 13px; line-height: 1.8; }
.play-note a { color: #f0bc92; border-bottom: 1px solid #94633f; }
@media (max-width: 700px) {
 .play-main { padding-top: 35px; padding-bottom: 64px; }
 .play-intro { margin-bottom: 27px; }
 .play-intro h1 { font-size: clamp(43px, 11.8vw, 68px); }
 .play-screen { max-height: 82dvh; min-height: 520px; }
 .play-notes { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
}
@media (max-width: 390px) { .play-cover { padding: 18px; } .play-screen { min-height: 460px; } }
