:root {
  color-scheme: light;
  --ink: #181b21;
  --muted: #737b88;
  --blue: #0664ee;
  --line: #e2e6ec;
  --page: #f8f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0664ee75; outline-offset: 5px; }
input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
button, a { transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease; }
h1, h2, p { margin: 0; }
h1 { font-weight: 600; letter-spacing: -.065em; line-height: 1.04; }
h1 span { color: var(--blue); }
h2 { font-weight: 600; letter-spacing: -.025em; }
input { min-width: 0; }
[hidden] { display: none !important; }
.header { width: min(100%, 1680px); margin: auto; height: 100px; display: flex; align-items: center; padding: 0 clamp(24px, 4.8vw, 84px); gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { display: block; width: 130px; height: auto; }
.brand-divider { width: 1px; height: 27px; background: #d3d8e0; }
.event-wordmark { font-size: 16px; letter-spacing: .12em; font-weight: 600; }
.event-wordmark > span { display: block; font-size: 7px; letter-spacing: .14em; color: #858b95; margin-top: 5px; font-weight: 500; }
.header nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2.8vw, 46px); font-size: 13px; font-weight: 500; color: #7b828e; }
.header nav a:hover, .header nav a.active { color: var(--ink); }
.header .nav-screen { display: flex; gap: 9px; align-items: center; padding: 11px 15px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: #3d4654; font-size: 12px; }
.nav-screen svg { width: 16px; height: 16px; }
.nav-screen svg:last-child:not(:first-child) { width: 13px; height: 13px; margin-left: 5px; }
.header .nav-screen:hover { border-color: #afbac8; background: white; }
.home-main, .setup-layout, .leaderboard-layout, .result-layout { max-width: 1680px; margin: auto; padding-left: clamp(24px, 4.8vw, 84px); padding-right: clamp(24px, 4.8vw, 84px); }
.home-hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(36px, 5vw, 88px); padding-top: 34px; padding-bottom: 60px; }
.hero-copy { padding: 22px 0; }
.eyebrow { font-size: 10px; letter-spacing: .19em; font-weight: 600; line-height: 1.8; color: #768293; }
.hero-copy .eyebrow { color: var(--blue); margin-bottom: 29px; }
.blue-dot { display: inline-block; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.hero-copy h1 { font-size: clamp(60px, 6.3vw, 103px); }
.hero-copy h1 span { white-space: nowrap; }
.hero-description { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--muted); margin-top: 28px; letter-spacing: -.015em; }
.round-facts { display: flex; gap: 23px; margin-top: 25px; font-size: 12px; color: #697382; }
.round-facts span { display: flex; gap: 8px; align-items: center; }
.round-facts svg { width: 16px; height: 16px; color: #8a95a6; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-size: 14px; letter-spacing: -.015em; font-weight: 550; padding: 15px 24px; }
.button-primary { background: #1b1e24; color: white; }
.button-primary:hover { background: var(--blue); }
.button-secondary { background: white; border-color: var(--line); }
.button-secondary:hover { background: #eef3fb; border-color: #bfcfe4; }
.button-small { min-height: 44px; padding: 10px 17px; background: #1b1e24; color: white; gap: 12px; font-size: 12px; }
.hero-cta { min-width: 209px; margin-top: 31px; gap: 66px; }
.no-signup { color: #9299a5; font-size: 11px; margin-top: 13px; }
.hero-board-link { margin-top: 37px; display: flex; gap: 15px; align-items: center; }
.mini-trophy { height: 39px; width: 39px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: #7b8ca4; }
.mini-trophy svg { width: 17px; height: 17px; }
.hero-board-link strong { font-size: 11px; display: block; font-weight: 500; color: #707987; margin-bottom: 5px; }
.hero-board-link a { color: #2a3443; font-size: 11px; }
.hero-board-link a svg { width: 14px; height: 14px; margin-left: 13px; }
.hero-art { position: relative; height: clamp(540px, 43vw, 680px); border: 1px solid #e0e7ef; border-radius: 16px; background: #7dd3fc; overflow: hidden; isolation: isolate; }
.hero-art canvas, .tv-arena canvas, .game-arena canvas, .result-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-topline { position: absolute; top: 24px; left: 27px; right: 27px; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 600; letter-spacing: .13em; color: #57708d; }
.art-topline b { margin-left: 9px; color: #a0afc1; font-weight: 500; }
.hero-art .art-topline, .tv-arena .art-topline { color: #164665; }
.hero-art .art-topline b { color: #376b8a; }
.hero-art .art-caption, .tv-arena .art-caption { color: #164665; background: #ffffffc7; border-radius: 7px; padding: 9px 12px; bottom: 17px; left: 18px; right: 18px; }
.hero-art .coordinate { color: #46738d; }
.art-tag { display: none; }
.live-label { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: .1em; font-weight: 600; }
.live-label i { height: 5px; width: 5px; border-radius: 50%; background: var(--blue); display: inline-block; }
.art-caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; display: flex; justify-content: space-between; color: #637991; font-size: 8px; letter-spacing: .13em; line-height: 1.7; font-weight: 500; }
.coordinate { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #8fa0b3; text-align: right; }
.art-tag { position: absolute; z-index: 3; bottom: 27%; right: -1px; padding: 12px 17px; background: #fff; box-shadow: 0 4px 15px #1c416e07; font-size: 9px; color: #6481a2; border: 1px solid #e2e8f0; border-radius: 6px 0 0 6px; }
.how-to { display: grid; grid-template-columns: .85fr 1fr 1.1fr 1fr; gap: 24px; padding: 31px 0 40px; border-top: 1px solid var(--line); }
.how-to-label { font-size: 9px; line-height: 1.8; letter-spacing: .16em; color: #929aa6; }
.how-to article { display: flex; gap: 15px; align-items: flex-start; }
.step-number { font-size: 10px; color: #8b9cb1; padding-top: 3px; font-family: ui-monospace, monospace; }
.how-to h2 { font-size: 13px; margin-bottom: 8px; font-weight: 550; }
.how-to p { color: #818a98; font-size: 11px; line-height: 1.7; }
.footer { max-width: 1680px; padding: 21px clamp(24px, 4.8vw, 84px) 25px; margin: 0 auto; display: flex; gap: 25px; align-items: center; font-size: 10px; color: #969eaa; }
.footer > a { margin-left: auto; }
.footer > a svg { width: 12px; height: 12px; margin-left: 4px; }
.connection { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; color: #8a95a3; white-space: nowrap; }
.connection i { height: 4px; width: 4px; background: #51a48e; border-radius: 50%; flex-shrink: 0; }
.connection.disconnected i { background: #e3a451; }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 8px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 9px; }
.icon-button:hover { background: #eaf0f8; }
.icon-button svg { width: 18px; height: 18px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: none; border: none; padding: 10px 0; color: #687587; font-size: 12px; }
.text-button:hover { color: var(--blue); }
.text-button svg { width: 16px; height: 16px; }
#toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 12px); opacity: 0; padding: 14px 20px; border-radius: 10px; background: #202834; color: white; font-size: 12px; line-height: 1.6; max-width: min(90vw, 500px); width: max-content; z-index: 30; pointer-events: none; box-shadow: 0 8px 30px #11224418; transition: opacity .25s ease, transform .25s ease; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
/* Play: a viewport-sized surface, with controls outside the canvas. */
.is-playing, .is-tv { overflow: hidden; }
.is-playing #app, .is-tv #app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.is-playing .header { flex: 0 0 84px; height: 84px; }
.header-game-title { margin-left: auto; font-size: 11px; letter-spacing: .14em; color: #4f5f73; }
.header-game-title > span { font-size: 9px; color: #929dab; margin-left: 8px; }
.header-tools { display: flex; gap: 8px; margin-left: 15px; }
.game-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: clamp(28px, 4vw, 60px); padding: 10px clamp(24px, 4.8vw, 84px) 28px; width: min(100%, 1520px); margin: auto; }
.game-arena { min-height: 0; border-radius: 16px; border: 1px solid #dce5f0; overflow: hidden; position: relative; touch-action: manipulation; background: #edf3fa; user-select: none; cursor: pointer; }
.arena-top { position: absolute; left: 25px; right: 25px; top: 24px; z-index: 2; display: flex; justify-content: space-between; color: #627c98; pointer-events: none; }
.arena-floor { font-size: 9px; letter-spacing: .1em; }
.arena-floor b { margin-left: 5px; }
.arena-instruction { pointer-events: none; position: absolute; bottom: 25px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: #6a809c; font-size: 11px; }
.arena-instruction svg { width: 15px; height: 15px; }
.game-sidebar { padding: 25px 0 12px; display: flex; flex-direction: column; }
.game-side-heading .eyebrow { font-size: 9px; letter-spacing: .15em; margin-bottom: 18px; }
.game-side-heading h1 { font-size: clamp(36px, 3.5vw, 54px); letter-spacing: -.055em; }
.time-stat { margin-top: auto; padding-top: 30px; }
.time-stat > span, .game-stats span, .streak-stat > span { font-size: 9px; font-weight: 500; letter-spacing: .13em; color: #8c96a5; }
.time-stat > strong { font-size: 74px; line-height: 1; font-weight: 500; letter-spacing: -.06em; display: block; margin: 11px 0 18px; font-variant-numeric: tabular-nums; }
.time-stat > strong > span { font-size: 26px; color: #a6afbd; margin-left: 5px; }
.time-stat .time-low { color: #d56c51; }
.time-track { height: 3px; width: 100%; background: #e0e5ed; border-radius: 8px; overflow: hidden; }
.time-track > div { background: var(--blue); height: 100%; border-radius: 8px; transform-origin: left center; transition: transform .15s linear; }
.game-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.game-stats strong { display: block; font-size: 36px; font-weight: 500; letter-spacing: -.055em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.streak-stat { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.streak-stat > span { display: flex; align-items: center; gap: 9px; }
.streak-stat svg { width: 14px; height: 14px; color: var(--blue); }
.streak-stat strong { font-size: 16px; color: var(--blue); font-weight: 500; }
.game-tip { color: #8490a0; font-size: 11px; line-height: 1.8; padding: 20px 0; }
.drop-button { width: 100%; gap: 12px; min-height: 56px; user-select: none; }
.drop-button svg { width: 16px; height: 16px; }
kbd { margin-left: auto; font: 8px ui-monospace, monospace; color: #9da8b6; padding: 4px 6px; border: 1px solid #576273; border-radius: 3px; }
.spectator-status { font-size: 9px; color: #8592a4; margin-top: 17px; display: flex; gap: 7px; justify-content: center; align-items: center; }
.spectator-status svg { width: 12px; height: 12px; }
.spectator-status.is-connected { color: #5b8e81; }
.game-sidebar > .connection { justify-content: center; margin-top: 10px; font-size: 8px; }
.countdown, .tv-countdown { position: absolute; top: 35%; left: 0; right: 0; text-align: center; z-index: 4; font-size: clamp(90px, 12vw, 170px); color: var(--blue); letter-spacing: -.08em; font-weight: 500; pointer-events: none; }
.countdown { opacity: 0; transition: opacity .18s ease; }
.countdown.is-visible { opacity: 1; }
.pause-overlay { position: absolute; inset: 0; z-index: 5; background: #edf3fae8; cursor: default; display: grid; place-items: center; padding: 24px; }
.pause-card { text-align: center; }
.pause-card h2 { font-size: 52px; line-height: 1.1; margin: 20px 0; letter-spacing: -.055em; }
.pause-card p { color: #7c8b9e; font-size: 13px; margin-bottom: 24px; }
.pause-card .button { min-width: 215px; display: flex; }
.pause-card .text-button { margin-top: 12px; }
/* Results and optional contact capture. */
.result-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); padding-top: 38px; padding-bottom: 50px; align-items: start; }
.result-art { height: 650px; max-height: 77vh; border-radius: 15px; border: 1px solid #dfe7ef; overflow: hidden; position: sticky; top: 30px; }
.result-art-caption { position: absolute; bottom: 30px; left: 30px; z-index: 2; font-size: 10px; letter-spacing: .02em; line-height: 1.8; color: #7d91a8; }
.result-copy { padding-top: 15px; max-width: 530px; }
.result-copy h1 { font-size: clamp(36px, 3.8vw, 64px); margin-top: 18px; max-width: 500px; }
.result-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; padding: 28px 0; margin: 7px 0 24px; border-bottom: 1px solid var(--line); gap: 15px; }
.result-stats strong { font-size: 40px; font-weight: 500; letter-spacing: -.05em; display: block; }
.result-stats > div:first-child strong { color: var(--blue); }
.result-stats span { font-size: 8px; letter-spacing: .12em; margin-top: 9px; display: block; color: #8e9aaa; }
.form-intro h2 { font-size: 19px; margin-bottom: 7px; }
.form-intro p { font-size: 12px; color: #8c96a5; line-height: 1.7; margin-bottom: 23px; }
.field-label { font-size: 11px; font-weight: 500; display: block; margin-bottom: 9px; }
.field-label > span { float: right; color: #9aa3af; font-weight: 400; font-size: 10px; }
input:not([type="checkbox"]) { width: 100%; background: #fff; border: 1px solid #dce2eb; border-radius: 8px; padding: 14px 15px; font-size: 13px; color: #374355; min-height: 48px; }
input::placeholder { color: #a4aebb; }
.contact-details { margin: 19px 0; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.contact-details summary { cursor: pointer; list-style: none; font-size: 11px; color: #7a8799; line-height: 1.6; }
.contact-details summary::-webkit-details-marker { display: none; }
.contact-details summary span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--blue); margin-top: 6px; }
.contact-details summary svg { width: 12px; height: 12px; transition: transform .2s ease; }
.contact-details[open] summary svg { transform: rotate(90deg); }
.optional-fields { margin-top: 22px; }
.optional-fields > input { margin-bottom: 16px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 10px; line-height: 1.6; color: #8e99a9; }
input[type="checkbox"] { flex: 0 0 auto; accent-color: var(--blue); width: 15px; height: 15px; margin: 1px 0 0; }
.form-error { color: #bb564a; font-size: 11px; line-height: 1.5; margin-bottom: 12px; }
#score-form > .button { width: 100%; justify-content: space-between; }
.result-links { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.result-links a { color: #8b98a9; font-size: 11px; }
.result-links a svg { width: 14px; height: 14px; margin-left: 5px; }
.practice-note { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
/* Real scores only. Empty is an invitation, not a fabricated leaderboard. */
.leaderboard-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(50px, 8vw, 130px); min-height: calc(100dvh - 170px); padding-top: 90px; padding-bottom: 80px; }
.leaderboard-intro h1 { font-size: clamp(58px, 6vw, 90px); margin: 27px 0; }
.leaderboard-intro > p { font-size: 16px; color: #8791a1; line-height: 1.8; margin-bottom: 27px; }
.board-summary { display: flex; gap: 52px; margin-top: 55px; }
.board-summary strong { display: block; font-size: 34px; letter-spacing: -.06em; font-weight: 500; }
.board-summary span { display: block; font-size: 8px; letter-spacing: .1em; color: #9ba5b4; margin-top: 10px; }
.leaderboard-panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 29px; align-self: start; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 25px; }
.board-heading h2 { font-size: 20px; }
.board-heading > svg { color: #8e9fb5; width: 19px; height: 19px; }
.board-columns { display: flex; justify-content: space-between; color: #a0a9b6; font-size: 8px; letter-spacing: .13em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.board-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #edf0f5; padding: 17px 0; animation: row-in .3s ease both; }
.rank { width: 16px; font: 10px ui-monospace, monospace; color: #98a5b7; flex-shrink: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #e9f0fc; color: #6984b2; flex-shrink: 0; }
.avatar-1 { background: #f2eee5; color: #9b907a; }.avatar-2 { background: #e9efeb; color: #819889; }.avatar-3 { background: #f0edf4; color: #9b89b0; }
.board-name { font-size: 12px; font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.board-name small { font-size: 9px; color: #9ba5b5; display: block; margin-top: 5px; font-weight: 400; }
.board-row > strong { font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.board-row.highlight { background: #f0f5ff; }
.board-fineprint { padding-top: 22px; font-size: 10px; color: #a0a9b8; line-height: 1.6; }
.board-fineprint b { font-weight: 500; }
.empty-board { padding: 70px 16px; display: flex; flex-direction: column; gap: 11px; align-items: center; text-align: center; }
.empty-board svg { width: 27px; height: 27px; color: #b7c6da; margin-bottom: 8px; }
.empty-board strong { font-size: 15px; font-weight: 500; color: #79889d; }
.empty-board span { font-size: 11px; line-height: 1.6; color: #9ba7b7; }
/* Broadcast display: render state locally, never stream pixels. */
.header-tv { max-width: none; width: 100%; padding-left: 42px; padding-right: 42px; flex: 0 0 100px; }
.tv-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: .74fr 1.5fr .85fr; gap: clamp(24px, 3vw, 58px); padding: 20px 42px; }
.tv-intro { display: flex; flex-direction: column; padding-top: 22px; }
.tv-intro .eyebrow { font-size: clamp(8px, .6vw, 11px); }
.tv-intro h1 { font-size: clamp(36px, 4.3vw, 88px); margin-top: 26px; letter-spacing: -.055em; line-height: 1.06; }
.tv-player { margin-top: auto; padding-top: 28px; }
.tv-player > span { font-size: 8px; letter-spacing: .18em; color: #929eaf; }
.tv-player strong { display: block; font-size: clamp(17px, 1.3vw, 26px); letter-spacing: -.04em; font-weight: 500; margin-top: 12px; }
.tv-player p { margin-top: 9px; color: #919dab; font-size: 11px; line-height: 1.7; }
.tv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px 0 25px; margin-top: 15px; }
.tv-stats strong { font-size: clamp(28px, 3vw, 62px); letter-spacing: -.06em; font-weight: 500; display: block; color: var(--blue); }
.tv-stats span { font-size: 8px; color: #929ead; letter-spacing: .13em; margin-top: 7px; display: block; }
.tv-time { display: flex; align-items: center; gap: 15px; padding-bottom: 4px; }
.tv-time > span { font: 11px ui-monospace, monospace; color: #7c8ca2; width: 25px; }
.tv-arena { position: relative; overflow: hidden; border-radius: 15px; border: 1px solid #dce5ef; min-height: 0; }
.tv-leaderboard { display: flex; flex-direction: column; padding-top: 24px; min-height: 0; }
.tv-leaderboard [data-board] { overflow: auto; scrollbar-width: none; }
.tv-leaderboard .board-row { gap: 12px; padding: clamp(10px, 1.25vw, 24px) 0; }
.tv-leaderboard .board-name { font-size: clamp(11px, .85vw, 17px); }
.tv-leaderboard .board-name small { font-size: clamp(8px, .6vw, 12px); }
.tv-join { padding-top: 25px; margin-top: auto; }
.tv-join .eyebrow { font-size: 8px; letter-spacing: .15em; }
.tv-join p { font-size: clamp(18px, 1.55vw, 30px); line-height: 1.4; letter-spacing: -.035em; color: #7a8ba1; margin-top: 13px; }
.room-badge { display: inline-flex; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; margin-top: 20px; font-size: 8px; color: #94a1b2; letter-spacing: .1em; }
.room-badge b { color: #6d7f98; font-weight: 500; }
.tv-footer { display: flex; align-items: center; gap: 30px; padding: 13px 42px 25px; font-size: 9px; color: #a0a9b5; }
.tv-footer > .connection { margin-left: auto; }
.tv-footer a svg { width: 11px; height: 11px; }
.tv-end-label { position: absolute; z-index: 3; bottom: 70px; left: 26px; right: 26px; background: #fffefaeb; border: 1px solid #fff; border-radius: 10px; padding: 22px; }
.tv-end-label > span { font-size: 8px; letter-spacing: .18em; color: #7b90ab; }
.tv-end-label > strong { font-size: clamp(22px, 2.5vw, 42px); letter-spacing: -.05em; display: block; font-weight: 500; margin-top: 12px; color: #3474c7; }
/* Local event operations. */
.setup-layout { padding-top: 55px; padding-bottom: 40px; }
.setup-layout > h1 { font-size: clamp(42px, 5vw, 72px); margin: 20px 0; }
.setup-lead { font-size: 16px; line-height: 1.8; color: #8591a2; }
.setup-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 45px; }
.setup-cards article { padding: 28px; background: white; border-radius: 12px; border: 1px solid var(--line); }
.setup-number { font: 9px ui-monospace, monospace; color: #8499b4; }
.setup-cards h2 { font-size: 21px; margin-top: 24px; }
.setup-cards p { font-size: 12px; color: #8d99aa; line-height: 1.9; margin: 15px 0 22px; }
.setup-cards code { display: block; font-size: 12px; color: #637d9e; background: #f0f5fc; border-radius: 6px; padding: 15px; margin-bottom: 17px; }
.setup-cards .field-label { font-size: 10px; color: #8897aa; }
.copy-field { display: flex; align-items: center; gap: 7px; }
.copy-field > input { padding: 12px; min-height: 43px; font-size: 10px; font-family: ui-monospace, monospace; }
.copy-field .icon-button { min-width: 43px; min-height: 43px; }
.copy-field .icon-button svg { width: 15px; height: 15px; }
.setup-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 45px 0; }
.setup-bottom h2 { font-size: 22px; }
.setup-bottom p, .setup-bottom li { font-size: 12px; line-height: 1.8; color: #8c98a9; }
.setup-bottom p { margin-top: 15px; }
.setup-bottom form { margin-top: 20px; max-width: 350px; }
.setup-bottom ul { padding-left: 15px; margin-top: 17px; }
.setup-bottom li { padding: 4px 0; }
.setup-bottom small { display: block; font-size: 9px; color: #9aa7b7; line-height: 1.7; }
.setup-comparison { border-top: 1px solid var(--line); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.setup-comparison h2 { margin-top: 10px; font-size: 22px; }
.setup-comparison p { margin-top: 9px; font-size: 12px; color: #8c99aa; }
@keyframes row-in { from { opacity: .5; } to { opacity: 1; } }
@media (min-width: 1900px) {
  .tv-layout { padding-left: 65px; padding-right: 65px; gap: 70px; }
  .tv-intro, .tv-leaderboard { padding-top: 40px; }
  .tv-player p { font-size: 15px; }
  .tv-player > span, .tv-stats span { font-size: 11px; }
  .tv-join .eyebrow { font-size: 11px; }
  .tv-leaderboard .board-heading h2 { font-size: 28px; }
  .tv-leaderboard .avatar { width: 45px; height: 45px; font-size: 16px; }
  .tv-leaderboard .board-row > strong { font-size: 22px; }
}
@media (max-width: 1100px) {
  .header { height: 88px; gap: 18px; }
  .header nav { gap: 23px; }
  .event-wordmark > span { display: none; }
  .home-hero { gap: 35px; padding-top: 20px; }
  .hero-art { height: 560px; }
  .hero-copy h1 { font-size: 68px; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .16em; }
  .hero-description { font-size: 15px; }
  .how-to { grid-template-columns: repeat(3, 1fr); }
  .how-to-label { display: none; }
  .art-tag { max-width: 170px; line-height: 1.6; }
  .hero-board-link { gap: 10px; }
  .hero-board-link strong { font-size: 10px; }
  .header-game-title > span { display: none; }
  .setup-cards { gap: 14px; }
  .setup-cards article { padding: 22px; }
  .setup-cards h2 { font-size: 18px; }
  .setup-bottom { gap: 45px; }
  .tv-layout { padding: 10px 26px; gap: 22px; grid-template-columns: .8fr 1.3fr .88fr; }
  .header-tv { padding: 0 26px; }
  .tv-leaderboard .board-row { gap: 8px; }
  .tv-leaderboard .avatar { display: none; }
  .tv-intro h1 { font-size: 42px; }
  .tv-leaderboard .empty-board { padding: 40px 0; }
  .tv-leaderboard .empty-board strong { font-size: 12px; }
  .tv-leaderboard .board-heading h2 { font-size: 18px; }
  .tv-arena .art-topline { left: 15px; right: 15px; font-size: 7px; }
  .tv-arena .art-topline .live-label { font-size: 6px; }
  .tv-join p { font-size: 19px; }
}
@media (max-width: 800px) {
  .header { height: 80px; padding: 0 25px; gap: 16px; }
  .brand img { width: 108px; }
  .event-wordmark { font-size: 12px; }
  .header nav { gap: 20px; font-size: 12px; }
  .header .nav-screen { font-size: 0; padding: 9px; gap: 0; }
  .header .nav-screen svg:last-child:not(:first-child) { display: none; }
  .header .nav-screen svg { width: 18px; height: 18px; }
  .home-main, .setup-layout, .leaderboard-layout, .result-layout { padding-left: 25px; padding-right: 25px; }
  .home-hero { gap: 25px; grid-template-columns: 1fr 1fr; padding-bottom: 35px; }
  .hero-copy h1 { font-size: 55px; }
  .hero-copy .eyebrow { font-size: 7px; letter-spacing: .12em; margin-bottom: 22px; }
  .hero-description { font-size: 13px; line-height: 1.8; margin-top: 23px; }
  .round-facts { gap: 15px; font-size: 9px; flex-wrap: wrap; margin-top: 18px; }
  .hero-cta { min-width: 180px; margin-top: 25px; }
  .hero-art { height: 490px; }
  .hero-art .art-topline { left: 16px; right: 16px; font-size: 8px; }
  .hero-art .art-topline .live-label { display: none; }
  .art-tag { display: none; }
  .hero-art .art-caption { left: 17px; right: 17px; font-size: 7px; }
  .hero-board-link { margin-top: 29px; }
  .hero-board-link strong { line-height: 1.5; }
  .no-signup { font-size: 9px; }
  .how-to { gap: 15px; padding-bottom: 22px; }
  .how-to article { gap: 9px; }
  .how-to h2 { font-size: 11px; }
  .how-to p { font-size: 10px; }
  .footer { padding-left: 25px; padding-right: 25px; font-size: 9px; flex-wrap: wrap; gap: 15px; }
  .footer .connection { font-size: 8px; }
  .game-layout { display: grid; grid-template-columns: 1fr; grid-template-rows: 76px minmax(0, 1fr) 56px 16px; padding: 0 22px max(16px, env(safe-area-inset-bottom)); gap: 12px; }
  .is-playing .header { flex-basis: 76px; height: 76px; padding-left: 22px; padding-right: 22px; }
  .header-game-title { display: none; }
  .header-tools { margin-left: auto; }
  .game-sidebar { display: contents; }
  .game-side-heading, .game-tip, .streak-stat { display: none; }
  .game-arena { grid-row: 2; }
  .time-stat { margin: 0; padding: 7px 0 0; grid-row: 1; grid-column: 1; width: 28%; }
  .time-stat > span, .game-stats span { font-size: 8px; }
  .time-stat > strong { font-size: 34px; margin: 5px 0 7px; line-height: 1; }
  .time-stat > strong > span { font-size: 16px; }
  .time-track { height: 2px; }
  .game-stats { margin: 0 0 0 37%; padding-top: 7px; grid-row: 1; grid-column: 1; gap: 22px; }
  .game-stats strong { font-size: 34px; margin-top: 5px; line-height: 1; }
  .drop-button { grid-row: 3; min-height: 56px; justify-content: center; gap: 20px; }
  .drop-button kbd { display: none; }
  .spectator-status { display: none; }
  .game-sidebar > .connection { grid-row: 4; margin: 0; }
  .arena-instruction { font-size: 10px; bottom: 19px; }
  .arena-top { left: 20px; right: 20px; top: 20px; }
  .result-layout { gap: 30px; padding-top: 25px; }
  .result-art { max-height: 75vh; height: 600px; }
  .result-copy { padding-top: 4px; }
  .result-copy > .eyebrow { font-size: 8px; }
  .result-copy h1 { font-size: 36px; }
  .result-stats strong { font-size: 28px; }
  .result-stats span { font-size: 6px; }
  .result-links a { font-size: 9px; }
  .leaderboard-layout { gap: 35px; padding-top: 50px; }
  .leaderboard-intro h1 { font-size: 56px; }
  .leaderboard-intro > p { font-size: 13px; }
  .leaderboard-panel { padding: 20px; }
  .leaderboard-panel .avatar { display: none; }
  .board-heading h2 { font-size: 17px; }
  .board-summary { gap: 30px; }
  .board-summary span { font-size: 7px; }
  .setup-cards { grid-template-columns: 1fr; }
  .setup-cards article { display: grid; grid-template-columns: 1fr; }
  .setup-cards p { max-width: 500px; }
  .setup-cards h2 { margin-top: 18px; font-size: 21px; }
  .setup-cards .copy-field { max-width: 400px; }
  .setup-bottom { grid-template-columns: 1fr; gap: 35px; }
  .tv-layout { grid-template-columns: .75fr 1.4fr; }
  .tv-leaderboard { display: none; }
  .tv-intro h1 { font-size: 48px; }
}
@media (max-width: 580px) {
  .header { padding: 0 21px; height: 77px; gap: 13px; }
  .header nav { gap: 15px; }
  .header nav > a:first-child { display: none; }
  .event-wordmark { display: none; }
  .brand-divider { display: none; }
  .brand img { width: 109px; }
  .header nav > a:nth-child(2) { font-size: 11px; }
  .home-main, .setup-layout, .leaderboard-layout, .result-layout { padding-left: 21px; padding-right: 21px; }
  .home-hero { grid-template-columns: 1fr; padding-top: 25px; gap: 29px; padding-bottom: 28px; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .17em; margin-bottom: 25px; }
  .hero-copy h1 { font-size: clamp(55px, 14.5vw, 82px); line-height: 1.04; }
  .hero-description { font-size: 14px; margin-top: 23px; line-height: 1.7; }
  .round-facts { font-size: 10px; gap: 23px; margin-top: 22px; }
  .hero-cta { width: 100%; min-height: 54px; margin-top: 25px; justify-content: space-between; }
  .no-signup { text-align: center; font-size: 10px; }
  .hero-board-link { display: none; }
  .hero-art { height: 370px; border-radius: 12px; }
  .hero-art .art-topline { top: 19px; left: 19px; right: 19px; }
  .hero-art .art-topline .live-label { display: flex; font-size: 7px; }
  .hero-art .art-caption { bottom: 20px; left: 20px; right: 20px; }
  .how-to { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  .how-to article { gap: 18px; }
  .how-to h2 { font-size: 13px; margin-bottom: 5px; }
  .how-to p { font-size: 11px; }
  .footer { padding: 21px; gap: 15px; border-top: 1px solid var(--line); }
  .footer > span:first-child { width: 100%; }
  .footer > a { margin-left: 0; }
  .footer > .connection { margin-left: auto; }
  .is-playing .header { height: 70px; flex-basis: 70px; }
  .is-playing .header .brand img { width: 101px; }
  .header-tools .icon-button { min-height: 37px; min-width: 37px; padding: 8px; }
  .game-layout { grid-template-rows: 70px minmax(0, 1fr) 53px 14px; padding: 0 15px max(12px, env(safe-area-inset-bottom)); gap: 10px; }
  .time-stat > span, .game-stats span { font-size: 7px; letter-spacing: .08em; }
  .time-stat > strong, .game-stats strong { font-size: 32px; }
  .drop-button { min-height: 53px; }
  .game-arena { border-radius: 12px; }
  .game-stats { gap: 15px; }
  .arena-top { top: 16px; left: 17px; right: 17px; }
  .arena-top .live-label { font-size: 7px; }
  .arena-floor { font-size: 8px; }
  .arena-instruction { font-size: 9px; bottom: 15px; }
  .countdown { top: 31%; font-size: 110px; }
  .pause-card h2 { font-size: 38px; margin: 16px 0; }
  .pause-card p { font-size: 11px; margin-bottom: 20px; }
  .pause-card .eyebrow { font-size: 8px; }
  .pause-card .button { min-height: 46px; font-size: 12px; padding: 12px 20px; }
  .result-layout { display: flex; flex-direction: column-reverse; gap: 28px; padding-top: 30px; }
  .result-copy { max-width: none; width: 100%; }
  .result-copy h1 { font-size: 43px; margin-top: 17px; }
  .result-stats { padding: 25px 0; }
  .result-stats strong { font-size: 34px; }
  .result-stats span { font-size: 7px; }
  .result-art { width: 100%; height: 390px; position: relative; top: auto; max-height: none; }
  .result-art-caption { font-size: 9px; bottom: 22px; left: 22px; }
  .form-intro h2 { font-size: 20px; }
  .form-intro p { font-size: 11px; }
  .result-links a { font-size: 11px; }
  .field-label { font-size: 12px; }
  .contact-details summary { font-size: 11px; }
  .contact-details summary span { margin-top: 7px; display: flex; }
  .leaderboard-layout { display: block; padding-top: 32px; padding-bottom: 35px; }
  .leaderboard-intro > .eyebrow { font-size: 8px; }
  .leaderboard-intro h1 { font-size: 64px; margin-top: 23px; }
  .leaderboard-intro > p { font-size: 14px; }
  .leaderboard-intro > .button { width: 100%; justify-content: space-between; }
  .board-summary { margin: 27px 0; gap: 45px; }
  .board-summary strong { font-size: 28px; }
  .board-summary span { margin-top: 7px; }
  .leaderboard-panel .avatar { display: grid; }
  .leaderboard-panel { padding: 22px; }
  .board-heading h2 { font-size: 19px; }
  .board-row { gap: 11px; }
  .board-name { font-size: 12px; }
  .setup-layout { padding-top: 28px; }
  .setup-layout > .eyebrow { font-size: 7px; }
  .setup-layout > h1 { font-size: 44px; }
  .setup-lead { font-size: 13px; }
  .setup-cards { margin-top: 30px; }
  .setup-comparison { flex-direction: column; align-items: flex-start; gap: 20px; }
  .setup-comparison .button { width: 100%; justify-content: space-between; }
  .is-tv { overflow: auto; }
  .is-tv #app { height: auto; min-height: 100dvh; }
  .header-tv { flex-basis: 77px; }
  .tv-layout { display: flex; flex-direction: column; padding: 15px 21px 24px; }
  .tv-intro { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .tv-intro > .eyebrow { grid-column: span 2; font-size: 7px; }
  .tv-intro h1 { font-size: 39px; margin-top: 0; }
  .tv-player { margin-top: 0; padding-top: 0; }
  .tv-player strong { font-size: 16px; margin-top: 7px; }
  .tv-player p { font-size: 10px; }
  .tv-stats { padding: 5px 0 13px; margin: 0; }
  .tv-stats strong { font-size: 32px; }
  .tv-time { align-self: center; }
  .tv-arena { height: 470px; flex: none; }
  .tv-leaderboard { display: flex; }
  .tv-leaderboard .avatar { display: grid; }
  .tv-join { display: none; }
  .tv-footer { padding: 5px 21px 24px; flex-wrap: wrap; gap: 12px; }
  .tv-footer .connection { margin-left: 0; }
}
@media (max-height: 650px) and (min-width: 801px) {
  .is-playing .header { flex-basis: 65px; height: 65px; }
  .game-sidebar { padding-top: 9px; }
  .game-side-heading h1 { font-size: 32px; }
  .game-side-heading .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .time-stat { padding-top: 14px; }
  .time-stat > strong { font-size: 50px; margin: 7px 0 10px; }
  .game-stats { margin: 14px 0; }
  .game-stats strong { font-size: 25px; margin-top: 6px; }
  .streak-stat { padding: 11px 0; }
  .game-tip { padding: 13px 0; font-size: 10px; }
  .game-sidebar > .connection { display: none; }
  .spectator-status { margin-top: 10px; }
  .drop-button { min-height: 47px; }
  .game-layout { padding-bottom: 17px; }
  .tv-intro h1 { margin-top: 15px; font-size: 40px; }
  .tv-intro { padding-top: 5px; }
  .tv-player { padding-top: 12px; }
  .tv-player p { font-size: 9px; }
  .tv-stats { padding: 13px 0; }
  .tv-stats strong { font-size: 34px; }
  .tv-join { display: none; }
  .is-tv .header { height: 75px; flex-basis: 75px; }
}
@media (orientation: landscape) and (max-height: 550px) and (max-width: 800px) {
  .is-playing .header { height: 56px; flex-basis: 56px; }
  .game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 180px; grid-template-rows: 1fr; gap: 22px; padding: 0 20px 13px; }
  .game-arena { grid-column: 1; grid-row: 1; }
  .game-sidebar { display: flex; padding-top: 0; }
  .time-stat { width: auto; padding-top: 0; }
  .game-stats { margin: 15px 0; padding-top: 0; }
  .game-stats strong { font-size: 26px; }
  .drop-button { margin-top: auto; min-height: 47px; }
  .game-sidebar > .connection { margin-top: 13px; }
  .arena-instruction { font-size: 8px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Location selection: tiny code-drawn swatches; no four-image thumbnail download. */
.location-picker { padding: 0; border: 0; margin: 25px 0 0; min-width: 0; }
.nav-play { border: 0; display: inline-flex; align-items: center; gap: 17px; background: #202a36; color: white; padding: 11px 17px; min-height: 40px; font-size: 11px; border-radius: 7px; }
.nav-play:hover { background: #0664ee; }.nav-play svg { width: 14px; height: 14px; }
.registration-layout { width: min(1200px, 100%); margin: 0 auto; padding: 65px clamp(24px, 5vw, 70px) 70px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.registration-copy { padding-top: 23px; }
.registration-copy h1 { font-size: clamp(45px, 5.2vw, 71px); margin-top: 27px; }
.registration-copy > p { color: #7c8798; font-size: 15px; line-height: 1.9; margin-top: 27px; max-width: 390px; }
.registration-benefits { display: flex; flex-direction: column; gap: 17px; margin-top: 31px; }
.registration-benefits > span { display: flex; align-items: center; gap: 12px; color: #6c7d93; font-size: 12px; }
.registration-benefits svg { color: #608ec7; width: 17px; height: 17px; }
.registration-location { border-top: 1px solid var(--line); display: flex; gap: 13px; align-items: center; padding-top: 23px; margin-top: 39px; max-width: 390px; }
.registration-location .location-swatch { width: 31px; height: 31px; border-radius: 7px; }
.registration-location strong { display: block; color: #4f6684; font-size: 13px; font-weight: 550; }
.registration-location small { color: #93a0b1; font-size: 9px; display: block; margin-top: 5px; line-height: 1.6; }
.registration-location a { margin-left: auto; color: #8a9aaf; font-size: 10px; white-space: nowrap; }.registration-location a svg { width: 13px; height: 13px; margin-left: 4px; }
.registration-card { border: 1px solid #e1e6ee; border-radius: 15px; background: white; padding: 32px; box-shadow: 0 10px 40px #21365a05; }
.registration-card .form-intro .eyebrow { font-size: 8px; }
.registration-card .form-intro h2 { font-size: 28px; margin: 13px 0 10px; }
.registration-card .form-intro p { line-height: 1.8; font-size: 12px; margin-bottom: 27px; }
.registration-card .field-label { margin-top: 18px; }.registration-card .field-label:first-child { margin-top: 0; }
.registration-card input:not([type="checkbox"]) { background: #f9fafc; font-size: 16px; }
.registration-card .consent { margin-top: 17px; font-size: 11px; line-height: 1.8; color: #6d798b; }.registration-card .event-consent { margin-top: 24px; }
.registration-card .consent em { color: #a2acba; font-style: normal; }
.registration-note { color: #a1aaba; font-size: 9px; line-height: 1.8; margin: 16px 0 10px; }
.registration-card form > .button { width: 100%; justify-content: space-between; margin-top: 7px; }
.registration-free { font-size: 9px; color: #9ba6b7; text-align: center; margin-top: 13px; line-height: 1.7; }
.score-confirmation { display: flex; gap: 16px; align-items: center; margin: 26px 0; }
.score-confirmation .mini-trophy { width: 44px; height: 44px; flex-shrink: 0; }
.score-confirmation h2 { font-size: 18px; line-height: 1.4; }.score-confirmation p { color: #8b98aa; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.result-board-button { width: 100%; justify-content: space-between; }
@media (max-width: 800px) { .registration-layout { gap: 35px; padding-top: 35px; }.registration-card { padding: 25px; }.registration-copy h1 { font-size: 45px; }.registration-copy > p { font-size: 13px; }.registration-location small { font-size: 8px; } }
@media (max-width: 580px) {
  .header nav { gap: 16px; }.nav-play { padding: 10px 12px; font-size: 10px; min-height: 37px; gap: 9px; }
  .hero-copy .no-signup { max-width: 290px; margin-left: auto; margin-right: auto; line-height: 1.8; }
  .registration-layout { grid-template-columns: 1fr; padding: 23px 21px 35px; gap: 25px; }.registration-copy { padding-top: 5px; }
  .registration-copy h1 { font-size: 40px; margin-top: 13px; }.registration-copy h1 br { display: none; }
  .registration-copy > p { font-size: 12px; margin-top: 15px; max-width: none; line-height: 1.8; }.registration-benefits { display: none; }
  .registration-location { margin-top: 20px; padding-top: 16px; max-width: none; }.registration-card { padding: 25px 22px; }.registration-card .form-intro h2 { font-size: 27px; }
  .registration-card .consent { font-size: 11px; }.registration-card .field-label { font-size: 11px; }.registration-card .field-label > span { font-size: 9px; }
  .score-confirmation { align-items: flex-start; }.score-confirmation h2 { font-size: 17px; }.score-confirmation p { font-size: 11px; }
}
.location-picker legend { font-size: 8px; letter-spacing: .15em; font-weight: 550; color: #8a95a5; padding: 0; margin-bottom: 11px; }
.location-options { display: flex; flex-wrap: wrap; gap: 7px; }
.location-option { display: inline-flex; gap: 7px; align-items: center; background: #ffffff90; border: 1px solid #dee4ed; border-radius: 7px; padding: 9px 11px; font-size: 10px; color: #798495; min-height: 37px; }
.location-option:hover { border-color: #93b2d9; background: #fff; }
.location-option.selected { border-color: #6599dc; background: #eaf2ff; color: #285c9b; }
.location-swatch { height: 13px; width: 13px; border-radius: 3px; display: inline-block; border: 1px solid #44556618; }
.swatch-paris { background: linear-gradient(135deg, #bdc9d4, #e2d5bd); }
.swatch-london { background: linear-gradient(135deg, #b1c1ce, #8d6959); }
.swatch-new-york { background: linear-gradient(135deg, #233e6e, #b69c6b); }
.swatch-calgary { background: linear-gradient(135deg, #6b9fbd, #f3cd91); }
.location-picker p { margin-top: 9px; font-size: 10px; line-height: 1.7; color: #78879c; }
.location-picker p > span { color: #a0a8b4; }
.hero-copy .location-picker + .hero-cta { margin-top: 22px; }
[data-theme-city="new-york"] .art-topline, [data-theme-city="new-york"] .art-topline b { color: #e1e8f3; }

/* Gameplay is the whole viewport. HUD floats over it; no navbar/sidebar shrinkage. */
.is-playing .immersive-game { position: relative; display: block; width: 100%; max-width: none; height: 100vh; height: 100dvh; min-height: 0; padding: 0; margin: 0; flex: 1; }
.is-playing .immersive-game .game-arena { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; grid-area: auto; }
.play-toolbar { position: absolute; z-index: 3; top: max(22px, env(safe-area-inset-top)); left: max(26px, env(safe-area-inset-left)); right: max(26px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 23px; pointer-events: none; }
.play-toolbar > a, .play-toolbar button { pointer-events: auto; }
.play-brand { display: flex; align-items: center; }
.play-brand img { width: 105px; height: auto; display: block; }
.play-location { padding-left: 21px; border-left: 1px solid #4d627f30; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; }
.play-location > span { grid-column: 1 / -1; color: #566c82; font-size: 7px; letter-spacing: .12em; }
.play-location > strong { color: #2c455d; font-size: 20px; font-weight: 550; letter-spacing: -.035em; margin-top: 4px; }
.play-location > small { color: #6f7f8d; font-size: 9px; }
.play-toolbar .header-tools { margin-left: auto; gap: 8px; }
.play-toolbar .icon-button { min-width: 40px; min-height: 40px; color: #39536b; background: #f8fafbd6; border-color: #ffffffa0; box-shadow: 0 2px 14px #18334e09; }
.play-toolbar .icon-button:hover { background: #ffffff; }
.game-hud { position: absolute; z-index: 3; top: max(19px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: 402px; display: grid; grid-template-columns: 70px 1fr 76px; gap: 20px; align-items: center; padding: 14px 19px; background: #fafbfce3; border: 1px solid #ffffffc4; border-radius: 13px; box-shadow: 0 5px 30px #233e5b0b; pointer-events: none; }
.game-hud .time-stat { padding: 0; margin: 0; width: auto; grid-area: auto; }
.game-hud .time-stat > span, .game-hud .game-stats span, .game-hud .streak-stat > span { font-size: 6.5px; letter-spacing: .1em; color: #8192a5; white-space: nowrap; }
.game-hud .time-stat > strong { font-size: 30px; margin: 5px 0; line-height: 1; font-weight: 500; color: #2f465c; }
.game-hud .time-stat > strong > span { font-size: 14px; color: #91a0ad; }
.game-hud .time-stat > strong.time-low { color: #bd6953; }
.game-hud .time-track { height: 2px; }
.game-hud .game-stats { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin: 0; padding: 0; grid-area: auto; }
.game-hud .game-stats strong { font-size: 28px; line-height: 1; color: #2f465c; margin-top: 6px; }
.game-hud .streak-stat { display: block; padding: 0 0 0 14px; margin: 0; border: 0; border-left: 1px solid #d8e0e9; }
.game-hud .streak-stat > span { font-size: 6px; letter-spacing: .04em; }
.game-hud .streak-stat strong { display: block; margin-top: 7px; font-size: 26px; line-height: 1; color: #4d7a6a; }
.play-bottom { position: absolute; z-index: 3; bottom: max(17px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(330px, calc(100% - 38px)); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.play-bottom .drop-button { pointer-events: auto; min-height: 51px; margin: 0; width: 100%; color: white; background: #1c2a35ed; border: 1px solid #ffffff30; box-shadow: 0 4px 30px #1424351c; justify-content: center; gap: 25px; }
.play-bottom .drop-button:hover { background: #0e5fd1; }
.play-bottom .drop-button kbd { margin-left: 12px; }
.play-bottom .arena-instruction { position: static; color: #35506a; left: auto; right: auto; bottom: auto; font-size: 10px; line-height: 1.6; background: #fafbfcd9; border: 1px solid #ffffff69; border-radius: 20px; padding: 5px 12px; }
.play-network { display: flex; justify-content: center; align-items: center; gap: 14px; background: #fafbfcd9; border-radius: 20px; padding: 5px 11px; }
.play-network .spectator-status { display: flex; margin: 0; font-size: 8px; color: #607987; gap: 5px; }
.play-network .connection { font-size: 8px; color: #718197; margin: 0; }
.immersive-game .countdown { top: 39%; color: #f8fafb; text-shadow: 0 3px 25px #2d4b6c35; }
.immersive-game .pause-overlay { z-index: 6; background: #e9eef5ee; }
[data-theme-city="new-york"] .play-location { border-left-color: #c2cce936; }
[data-theme-city="new-york"] .play-location > span, [data-theme-city="new-york"] .play-location > strong { color: #e9eefb; }
[data-theme-city="new-york"] .play-location > small { color: #c3cee3; }
@media (max-width: 1100px) {
  .game-hud { top: 83px; width: 394px; }
}
@media (max-width: 580px) {
  .location-picker { margin-top: 22px; }
  .location-options { gap: 6px; }
  .location-option { padding: 8px 10px; font-size: 10px; }
  .location-picker legend { font-size: 7px; }
  .play-toolbar { top: max(15px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); gap: 12px; }
  .play-brand img { width: 78px; }
  .play-location { padding-left: 12px; column-gap: 0; }
  .play-location > span { font-size: 5px; letter-spacing: .07em; }
  .play-location > strong { font-size: 16px; margin-top: 3px; }
  .play-location > small { display: none; }
  .play-toolbar .header-tools { gap: 6px; }
  .play-toolbar .icon-button { min-width: 34px; min-height: 34px; padding: 8px; border-radius: 7px; }
  .play-toolbar .icon-button svg { height: 16px; width: 16px; }
  .play-toolbar .play-fullscreen { display: none; }
  .game-hud { top: max(69px, calc(env(safe-area-inset-top) + 54px)); width: min(348px, calc(100% - 32px)); padding: 10px 13px; gap: 14px; grid-template-columns: 58px 1fr 63px; border-radius: 11px; }
  .game-hud .game-stats { gap: 13px; }
  .game-hud .game-stats strong, .game-hud .time-stat > strong { font-size: 26px; }
  .game-hud .time-stat > span, .game-hud .game-stats span { font-size: 6px; letter-spacing: .06em; }
  .game-hud .streak-stat { padding-left: 10px; }
  .game-hud .streak-stat > span { font-size: 5px; }
  .game-hud .streak-stat strong { font-size: 23px; }
  .play-bottom { gap: 8px; bottom: max(13px, env(safe-area-inset-bottom)); }
  .play-bottom .drop-button { min-height: 49px; font-size: 13px; }
  .play-bottom .drop-button kbd { display: none; }
  .play-network .spectator-status { display: none; }
  .play-bottom .arena-instruction { font-size: 9px; padding: 4px 11px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .play-toolbar { top: 14px; left: max(17px, env(safe-area-inset-left)); right: max(17px, env(safe-area-inset-right)); }
  .play-brand img { width: 80px; }
  .play-location { display: none; }
  .play-toolbar .play-fullscreen { display: none; }
  .game-hud { top: 10px; width: 308px; padding: 9px 13px; gap: 12px; grid-template-columns: 55px 1fr 63px; }
  .game-hud .game-stats { gap: 13px; }
  .game-hud .game-stats strong, .game-hud .time-stat > strong { font-size: 23px; }
  .game-hud .streak-stat strong { font-size: 22px; }
  .game-hud .streak-stat { padding-left: 9px; }
  .game-hud .streak-stat > span { font-size: 5px; }
  .play-bottom { bottom: 10px; width: 225px; gap: 5px; }
  .play-bottom .drop-button { min-height: 41px; padding: 10px; font-size: 12px; }
  .play-bottom .arena-instruction, .play-network { display: none; }
}

/* The film is the permanent base layer. Only the live canvas layer fades. */
.is-tv { overflow: hidden; background: #000; }
.is-tv #app { display: block; height: 100vh; height: 100dvh; min-height: 0; }
.tv-display { position: fixed; inset: 0; overflow: hidden; background: #000; isolation: isolate; }
#tv-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; background: #000; }
#tv-video::-webkit-media-controls { display: none !important; }
#tv-spectator { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--page); opacity: 0; pointer-events: none; transition: opacity 800ms cubic-bezier(.4, 0, .2, 1); }
#tv-spectator[data-visible="true"] { opacity: 1; }
.tv-broadcast-brand { flex: 0 0 96px; display: flex; align-items: center; justify-content: space-between; padding: 20px 3.4vw; }
.tv-broadcast-brand img { width: clamp(110px, 8vw, 165px); height: auto; }
.tv-broadcast-brand > span { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .16em; color: #78889c; }
.tv-broadcast-brand i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
#tv-spectator .tv-layout { flex: 1; min-height: 0; padding: 8px 3.4vw 18px; }
#tv-spectator .tv-footer { justify-content: space-between; padding: 15px 3.4vw 23px; flex: 0 0 auto; }
.tv-join strong { display: inline-block; font-weight: 500; color: var(--blue); overflow-wrap: anywhere; }
#tv-fullscreen-hint { position: absolute; bottom: 18px; right: 20px; z-index: 4; display: flex; align-items: center; gap: 7px; border: 1px solid #ffffff30; background: #111b; color: #ffffffbf; border-radius: 6px; padding: 8px 11px; font-size: 10px; backdrop-filter: blur(10px); }
#tv-fullscreen-hint[hidden] { display: none; }
#tv-fullscreen-hint svg { width: 13px; height: 13px; }
.is-tv #toast { bottom: 18px; padding: 7px 12px; border-radius: 6px; background: #141a22e8; font-size: 11px; line-height: 1.4; box-shadow: none; }
@media (max-width: 700px) {
  .tv-broadcast-brand { flex-basis: 65px; padding: 14px 18px; }
  .tv-broadcast-brand > span { font-size: 7px; gap: 6px; }
  #tv-spectator .tv-layout { display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 0 18px 12px; gap: 16px; }
  #tv-spectator .tv-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 18px; }
  #tv-spectator .tv-intro > .eyebrow, #tv-spectator .tv-intro h1, #tv-spectator .tv-help, #tv-spectator #tv-help { display: none; }
  #tv-spectator .tv-player { padding: 0; margin: 0; }
  #tv-spectator .tv-player strong { font-size: 22px; }
  #tv-spectator .tv-stats { padding: 0; margin: 0; gap: 20px; }
  #tv-spectator .tv-stats strong { font-size: 28px; }
  #tv-spectator .tv-stats span { font-size: 6px; }
  #tv-spectator .tv-time { grid-column: 1 / -1; padding-top: 10px; }
  #tv-spectator .tv-arena { height: auto; min-height: 0; }
  #tv-spectator .tv-leaderboard { display: none; }
  #tv-spectator .tv-footer { padding: 5px 18px 15px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #tv-spectator { transition-duration: 150ms; }
}

/* Share the game without asking visitors to type an address on their phones. */
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hero-actions .hero-cta { margin: 0; min-width: 0; gap: 27px; }
.hero-qr { gap: 10px; background: transparent; font-size: 13px; padding-left: 18px; padding-right: 18px; }
.hero-qr svg { width: 19px; height: 19px; }
.qr-is-open { overflow: hidden; }
#join-qr { position: fixed; inset: 0; margin: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100vh; height: 100dvh; padding: clamp(22px, 3.4vmin, 46px); background: #f8f9fb; color: var(--ink); overflow: auto; }
#join-qr[open] { display: grid; place-items: center; }
#join-qr::backdrop { background: #f8f9fb; }
.qr-close { position: absolute; z-index: 1; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce2e9; border-radius: 50%; background: white; color: #536072; }
.qr-close:hover { background: #e9eef5; }
.qr-presentation { width: 100%; display: grid; justify-items: center; gap: clamp(8px, 1.25vh, 15px); text-align: center; }
.qr-brand { width: clamp(105px, 11vh, 146px); height: auto; margin-bottom: clamp(0px, 1vh, 12px); }
.qr-presentation > .eyebrow { font-size: clamp(8px, .9vh, 12px); color: #73839a; }
.qr-presentation h2 { font-size: clamp(27px, 4.1vh, 54px); line-height: 1.08; letter-spacing: -.045em; }
#join-qr-description { font-size: clamp(13px, 1.7vh, 21px); color: #748092; line-height: 1.5; }
#join-qr-code { display: block; width: min(52vh, 76vw, 900px); height: auto; aspect-ratio: 1; max-width: 100%; background: white; border-radius: 16px; box-shadow: 0 10px 45px #1d3d6610, 0 0 0 1px #e9edf2; }
.qr-address { display: flex; align-items: center; gap: 8px; font-size: clamp(18px, 2.3vh, 30px); font-weight: 550; letter-spacing: -.02em; color: #315c96; }
.qr-address svg { width: 17px; height: 17px; }
.qr-note { color: #8a94a3; font-size: clamp(10px, 1.2vh, 14px); }
.registration-round-notice { margin: 16px 0; padding: 12px 14px; border: 1px solid #d9e6f8; border-radius: 8px; background: #eef5ff; color: #456382; font-size: 12px; line-height: 1.6; }
#leave-round-dialog { width: min(430px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); padding: 28px; border: 1px solid #e3e9f1; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 20px 100px #10203933; }
#leave-round-dialog::backdrop { background: #0d1c2b8c; backdrop-filter: blur(4px); }
#leave-round-dialog h2 { font-size: 29px; margin-top: 14px; }
#leave-round-dialog p { font-size: 14px; color: #7a8492; line-height: 1.7; margin-top: 13px; }
.leave-round-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.leave-round-actions .button { font-size: 12px; padding: 12px 8px; min-height: 47px; }
@media (max-width: 700px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .hero-cta { justify-content: space-between; }
  .hero-qr { min-height: 48px; }
  .qr-brand { margin-bottom: 10px; }
}
@media (max-height: 600px) and (min-aspect-ratio: 6/5) {
  .qr-presentation { max-width: 1100px; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); column-gap: 5vw; row-gap: 10px; }
  .qr-presentation > :not(#join-qr-code) { grid-column: 1; }
  .qr-brand { grid-row: 1; margin-bottom: 4px; }
  .qr-presentation > .eyebrow { grid-row: 2; }
  .qr-presentation h2 { grid-row: 3; font-size: clamp(24px, 7vh, 38px); }
  #join-qr-description { grid-row: 4; }
  .qr-address { grid-row: 5; }
  .qr-note { grid-row: 6; }
  #join-qr-code { grid-column: 2; grid-row: 1 / span 6; width: min(78vh, 43vw); border-radius: 12px; }
}
