:root {
  color-scheme: dark;
  --bg: #080d1b;
  --bg-soft: #0d1426;
  --panel: #101a2f;
  --panel-2: #14213a;
  --line: rgba(186, 207, 255, .11);
  --line-strong: rgba(186, 207, 255, .18);
  --text: #f2f5ff;
  --muted: #a4b0c8;
  --dim: #77849f;
  --cyan: #69d9ff;
  --mint: #91f0c2;
  --pink: #ff6f91;
  --gold: #ffd36f;
  --shadow: 0 26px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
body::before { position: fixed; z-index: -1; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 82% 0%, rgba(56, 112, 163, .15), transparent 35%), radial-gradient(ellipse at 7% 30%, rgba(94, 64, 157, .1), transparent 30%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 10px; background: #fff; color: #07101c; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(186, 207, 255, .08); background: rgba(8, 13, 27, .88); backdrop-filter: blur(18px); }
.header-inner { width: min(1760px, calc(100% - 48px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { position: relative; display: inline-block; width: 35px; height: 31px; }
.brand-mark i { position: absolute; display: block; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); box-shadow: inset 2px 2px 4px rgba(255,255,255,.45), 0 4px 10px rgba(0,0,0,.24); }
.brand-mark i:nth-child(1) { left: 8px; top: 0; background: var(--cyan); }
.brand-mark i:nth-child(2) { left: 0; top: 14px; background: var(--pink); }
.brand-mark i:nth-child(3) { left: 17px; top: 14px; background: var(--gold); }
.brand-name { color: #f4f7ff; font-size: 18px; font-weight: 850; letter-spacing: -.055em; }
.brand-name span { color: var(--cyan); }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { min-height: 42px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; color: #bac5da; font-size: 13px; font-weight: 700; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(186, 207, 255, .1); }
.primary-nav a.nav-play { padding-inline: 17px; color: #06151b; border-color: transparent; background: linear-gradient(110deg, var(--cyan), var(--mint)); box-shadow: 0 8px 22px rgba(77, 202, 219, .16); }
.primary-nav a.nav-play:hover { color: #06151b; filter: brightness(1.06); }
.nav-play span { font-size: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.menu-toggle span:not(.visually-hidden) { display: block; width: 17px; height: 2px; margin: 4px auto; border-radius: 4px; background: #edf4ff; }
.site-shell { width: min(1760px, calc(100% - 48px)); margin: 0 auto; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; min-height: 410px; padding: 52px 38px 38px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero--home { min-height: 290px; margin: 12px 0 30px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(115deg, rgba(18,29,51,.78), rgba(12,20,37,.68)); }
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px rgba(145,240,194,.8); }
.hero h1, .hero h2, .page-hero h1 { margin: 0; font-size: clamp(38px, 5.7vw, 70px); line-height: .99; letter-spacing: -.065em; }
.hero h1 span, .hero h2 span, .page-hero h1 span { color: var(--cyan); }
.hero-description { max-width: 550px; margin: 23px 0 25px; color: #aeb9ce; font-size: 16px; line-height: 1.72; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 13px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 850; cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(105, 217, 255, .5); outline-offset: 3px; }
.button-primary { color: #07151d; background: linear-gradient(110deg, var(--cyan), var(--mint)); box-shadow: 0 11px 26px rgba(77, 202, 219, .16); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.055); border-color: var(--line-strong); }
.button-quiet { min-height: 40px; padding: 0 16px; color: var(--muted); background: transparent; }
.button-quiet:hover { color: #fff; background: rgba(255,255,255,.05); }
.hero-proof { display: flex; align-items: center; gap: 11px; margin-top: 23px; color: #8290aa; font-size: 11px; font-weight: 700; }
.proof-bubbles { display: inline-flex; align-items: center; padding-left: 4px; }
.proof-bubbles i { display: block; width: 12px; height: 12px; margin-left: -4px; border: 1.5px solid #11172a; border-radius: 50%; background: var(--pink); }
.proof-bubbles i:nth-child(2) { background: var(--gold); }
.proof-bubbles i:nth-child(3) { background: var(--cyan); }
.hero-art { position: relative; min-height: 300px; }
.art-glow { position: absolute; width: 370px; height: 290px; top: 50%; left: 52%; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(ellipse, rgba(63,168,197,.17), rgba(78,78,157,.1) 43%, transparent 70%); filter: blur(13px); }
.art-bubble { position: absolute; width: clamp(44px, 7vw, 88px); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.48); border-radius: 50%; box-shadow: inset -10px -12px 19px rgba(0,0,0,.18), inset 8px 7px 14px rgba(255,255,255,.42), 0 20px 44px rgba(0,0,0,.27); animation: float 6s ease-in-out infinite; }
.art-bubble::after { position: absolute; top: 17%; left: 21%; width: 22%; height: 12%; border-radius: 50%; content: ""; transform: rotate(-36deg); background: rgba(255,255,255,.67); filter: blur(1px); }
.art-bubble--pink { top: 20%; left: 15%; background: radial-gradient(circle at 35% 30%, #ffb0c1, #ff5d80 63%, #df365c); }
.art-bubble--blue { top: 9%; right: 23%; width: clamp(56px, 8vw, 102px); background: radial-gradient(circle at 35% 30%, #a4eeff, #4bc8ec 62%, #1883b1); animation-delay: -2s; }
.art-bubble--gold { right: 4%; top: 48%; width: clamp(42px, 6vw, 72px); background: radial-gradient(circle at 35% 30%, #fff0a5, #ffd064 60%, #d99129); animation-delay: -1s; }
.art-bubble--mint { left: 27%; bottom: 8%; width: clamp(53px, 8vw, 92px); background: radial-gradient(circle at 35% 30%, #c7ffdd, #6be4a5 62%, #279c76); animation-delay: -4s; }
.art-bubble--purple { left: 56%; bottom: 12%; width: clamp(39px, 6vw, 70px); background: radial-gradient(circle at 35% 30%, #e3c7ff, #a46be8 62%, #6339ae); animation-delay: -3s; }
.art-bubble--white { left: 52%; top: 39%; width: clamp(35px, 5vw, 54px); background: radial-gradient(circle at 35% 30%, #fff, #c6d7ff 60%, #7c92cd); animation-delay: -1.5s; }
.art-burst { position: absolute; top: 43%; left: 29%; transform: rotate(-12deg); color: #fff; font-size: clamp(20px, 3vw, 34px); font-weight: 950; letter-spacing: -.06em; text-shadow: 0 4px 22px rgba(95,218,255,.65); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-13px) rotate(4deg); } }

.play-section { padding: 20px 0 34px; }
.section-heading { margin-bottom: 18px; }
.section-heading--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h1, .section-heading h2, .panel-heading h3 { margin: 0; font-size: 30px; line-height: 1.12; letter-spacing: -.045em; }
.section-note { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: 12px; text-align: right; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
.game-column { min-width: 0; }
.game-frame, .panel { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(18,29,51,.97), rgba(12,20,37,.97)); box-shadow: 0 18px 48px rgba(0,0,0,.19); }
.game-frame { overflow: hidden; margin-inline: auto; border-color: rgba(116,173,235,.2); box-shadow: 0 30px 90px rgba(0,0,0,.38), 0 0 54px rgba(36,132,188,.09); }
.game-frame:fullscreen { width: 100vw; height: 100dvh; display: flex; flex-direction: column; border: 0; border-radius: 0; background: #080d1b; }
.game-frame:fullscreen .game-toolbar, .game-frame:fullscreen .game-statusbar { flex: 0 0 auto; }
.game-frame:fullscreen .canvas-wrap { display: grid; flex: 1 1 auto; min-height: 0; place-items: center; }
.game-frame:fullscreen #game { width: auto; height: 100%; max-width: 100%; max-height: 100%; }
body[data-game-layout="portrait"] .game-frame:fullscreen #game { width: min(100%, 50vh); height: auto; max-height: 100%; }
.game-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 22px; border-bottom: 1px solid rgba(186,207,255,.11); background: linear-gradient(100deg, rgba(28,43,72,.96), rgba(12,21,40,.96) 68%, rgba(35,31,70,.8)); }
.game-label { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; color: #d8e4f7; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.live-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(145,240,194,.65); }
.game-stats { display: flex; align-items: stretch; gap: 8px; margin-left: auto; }
.game-stats div { min-width: 86px; padding: 6px 12px; border: 1px solid rgba(186,207,255,.1); border-radius: 11px; background: rgba(5,12,25,.34); }
.game-stats span { display: block; color: var(--dim); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.game-stats strong { display: block; color: #f3f8ff; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.game-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.055); color: var(--cyan); font-size: 25px; line-height: 1; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.icon-button:hover { transform: rotate(-35deg); background: rgba(105,217,255,.11); }
.icon-button--screen:hover { transform: scale(1.04); border-color: rgba(105,217,255,.4); }
.icon-button--sound:hover { transform: scale(1.04); border-color: rgba(105,217,255,.4); }
.icon-button--sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button--sound .sound-off { display: none; }
.icon-button--sound[aria-pressed="false"] .sound-wave { display: none; }
.icon-button--sound[aria-pressed="false"] .sound-off { display: block; }
.canvas-wrap { position: relative; width: 100%; overflow: hidden; background: radial-gradient(ellipse at 50% 20%, #122949 0%, #0b1830 45%, #081121 100%); }
#game { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; touch-action: none; cursor: crosshair; }
body[data-game-layout="portrait"] #game { aspect-ratio: 4 / 5; }
.canvas-hint { position: absolute; top: 16px; right: 20px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(222,237,255,.72); background: rgba(6,13,27,.52); box-shadow: 0 8px 24px rgba(0,0,0,.16); font-size: 9px; font-weight: 850; letter-spacing: .14em; pointer-events: none; }
.canvas-hint span { padding-inline: 4px; color: var(--cyan); }
.game-statusbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 22px; border-top: 1px solid rgba(186,207,255,.09); background: rgba(5,10,20,.2); }
.game-statusbar p { margin: 0; color: var(--mint); font-size: 11px; font-weight: 700; }
.game-statusbar > span { color: var(--dim); font-size: 9px; text-align: right; }
.game-controls-note { padding: 12px 6px 0; color: var(--dim); font-size: 10px; text-align: center; }
.keycap { display: inline-block; padding: 3px 6px; margin: 0 3px; border: 1px solid var(--line-strong); border-radius: 5px; color: #bdc8dc; font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.game-sidebar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); align-items: stretch; gap: 16px; }
.panel { padding: 20px; }
.leaderboard-panel { padding: 24px 27px 18px; border-color: rgba(105,217,255,.17); background: linear-gradient(135deg, rgba(18,31,54,.98), rgba(12,20,38,.98)); }
.panel-heading, .leaderboard-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading .eyebrow, .leaderboard-table-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.panel-heading h3 { font-size: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 10px; font-weight: 850; white-space: nowrap; }
.text-link:hover { color: #b1efff; }
.filter-pills { display: flex; align-items: center; gap: 4px; padding: 4px; margin: 16px 0 10px; border: 1px solid rgba(186,207,255,.08); border-radius: 11px; background: rgba(4,10,22,.3); }
.filter-pill { min-height: 32px; flex: 1; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: var(--dim); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.filter-pill:hover { color: #fff; }
.filter-pill.is-selected { color: #dff8ff; background: rgba(105,217,255,.12); border-color: rgba(105,217,255,.16); }
.score-list { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.score-list li { min-height: 46px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.leaderboard-panel .score-list { grid-template-columns: 1fr; gap: 4px; }
.leaderboard-panel .score-list li { min-height: 56px; grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px 12px; border-bottom: 1px solid rgba(186,207,255,.075); }
.score-list li:not(.empty-state):hover { background: rgba(255,255,255,.035); }
.score-rank { color: var(--dim); font-size: 13px; font-weight: 850; text-align: center; }
.score-list li:nth-child(1) .score-rank { color: var(--gold); }
.score-list li:nth-child(2) .score-rank { color: #c1d4ee; }
.score-list li:nth-child(3) .score-rank { color: #dd9e75; }
.score-player-identity, .table-player-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.country-flag { width: 30px; height: 21px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; background: rgba(255,255,255,.04); object-fit: cover; box-shadow: 0 2px 7px rgba(0,0,0,.2); }
.score-player { overflow: hidden; color: #dce7f8; font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.score-value { color: var(--mint); font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }
.empty-state { display: block !important; padding: 18px 10px !important; color: var(--dim); font-size: 11px; text-align: center; }
.panel-footnote { min-height: 16px; margin: 10px 3px 0; color: var(--dim); font-size: 9px; }
.mini-guide { position: relative; overflow: hidden; padding: 18px; }
.guide-icon { position: absolute; top: 9px; right: 16px; color: rgba(105,217,255,.3); font-size: 39px; }
.mini-guide .eyebrow { margin: 0 0 7px; font-size: 9px; }
.mini-guide h3 { max-width: 190px; margin: 0 0 8px; font-size: 17px; letter-spacing: -.04em; }
.mini-guide p:not(.eyebrow) { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.65; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 25px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-strip article { padding: 3px 26px 5px; border-right: 1px solid var(--line); }
.feature-strip article:first-child { padding-left: 4px; }
.feature-strip article:last-child { border-right: 0; }
.feature-number { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.feature-strip h3 { margin: 9px 0 5px; font-size: 15px; letter-spacing: -.025em; }
.feature-strip p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 39px 5px 44px; }
.closing-cta .eyebrow { margin-bottom: 6px; }
.closing-cta h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; }

.content-page { min-height: 70vh; padding-bottom: 60px; }
.page-hero { padding: 63px 20px 38px; }
.page-hero--center { max-width: 760px; margin: 0 auto; text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--left { max-width: 780px; padding-left: 0; }
.page-hero h1 { font-size: clamp(41px, 6vw, 66px); }
.page-hero > p:not(.eyebrow) { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.page-hero--left > p:not(.eyebrow) { margin-left: 0; }
.page-hero .button { margin-top: 23px; }
.leaderboard-table-panel { padding: 24px; }
.leaderboard-table-heading { align-items: end; margin-bottom: 18px; }
.leaderboard-table-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.filter-pills--large { width: max-content; margin: 0; }
.filter-pills--large .filter-pill { min-width: 74px; padding: 0 12px; }
.table-scroll { overflow-x: auto; }
.score-table { width: 100%; border-collapse: collapse; text-align: left; }
.score-table th { padding: 15px 16px; border-bottom: 1px solid var(--line-strong); color: var(--dim); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.score-table td { padding: 15px 16px; border-bottom: 1px solid rgba(186,207,255,.065); color: #d7e1f2; font-size: 14px; }
.score-table tbody tr:hover { background: rgba(255,255,255,.025); }
.score-table .table-rank { width: 88px; color: var(--dim); font-weight: 850; }
.score-table tbody tr:nth-child(1) .table-rank { color: var(--gold); }
.score-table .table-name { font-weight: 750; }
.score-table .table-player-identity .country-flag { width: 28px; height: 20px; }
.score-table .table-score { color: var(--mint); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.score-table .empty-state { padding: 29px 10px !important; }
.center-action { display: flex; justify-content: center; padding-top: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.guide-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(18,29,51,.88), rgba(12,20,37,.88)); }
.guide-step { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(105,217,255,.2); border-radius: 12px; color: var(--cyan); background: rgba(105,217,255,.075); font-size: 11px; font-weight: 900; }
.guide-card h2 { margin: 1px 0 6px; font-size: 16px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.tips-panel { margin-top: 14px; padding: 26px; }
.tips-panel h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.04em; }
.tips-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px 24px; }
.tips-grid > div { display: flex; gap: 11px; align-items: start; }
.tips-grid > div > span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--mint); background: rgba(145,240,194,.1); font-weight: 900; }
.tips-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.tips-grid strong { color: #e8efff; }
.controls-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: center; margin-top: 14px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.controls-card .eyebrow { margin-bottom: 6px; }
.controls-card h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; }
.controls-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0; }
.controls-card dl > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.controls-card dt { color: var(--cyan); font-size: 10px; font-weight: 850; }
.controls-card dd { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.narrow-content { max-width: 900px; margin: 0 auto; }
.prose { padding: 28px clamp(22px, 5vw, 45px); }
.prose h2 { margin: 25px 0 8px; font-size: 18px; letter-spacing: -.03em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: #b1bed4; font-size: 12px; line-height: 1.85; }
.prose a:not(.text-link) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose .text-link { margin-top: 7px; }
.contact-card { display: flex; align-items: start; gap: 20px; padding: 29px; }
.contact-icon { display: grid; width: 49px; height: 49px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(105,217,255,.18); border-radius: 15px; color: var(--cyan); background: rgba(105,217,255,.08); font-size: 22px; }
.contact-card h2 { margin: 1px 0 8px; font-size: 21px; }
.contact-card p { max-width: 600px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.setup-note { padding: 12px 14px; border: 1px solid rgba(255,211,111,.17); border-radius: 11px; color: var(--gold) !important; background: rgba(255,211,111,.05); }
.setup-note code { color: #fff1be; }

.site-footer { border-top: 1px solid var(--line); background: rgba(3,7,16,.35); }
.footer-inner { width: min(1760px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(240px,1fr) auto; gap: 20px 40px; align-items: center; margin: 0 auto; padding: 25px 0 18px; }
.brand--footer .brand-mark { transform: scale(.82); transform-origin: left center; width: 30px; }
.brand--footer .brand-name { font-size: 15px; }
.footer-brand p { max-width: 350px; margin: 7px 0 0; color: var(--dim); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px 17px; }
.footer-links a { color: var(--muted); font-size: 10px; font-weight: 700; }
.footer-links a:hover { color: var(--cyan); }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 13px; border-top: 1px solid rgba(186,207,255,.06); color: var(--dim); font-size: 9px; }

.modal { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,7,15,.76); backdrop-filter: blur(10px); }
.result-card { position: relative; z-index: 1; width: min(470px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px; border: 1px solid rgba(186,207,255,.18); border-radius: 24px; background: linear-gradient(150deg, #172540, #0d1629 70%); box-shadow: 0 35px 110px rgba(0,0,0,.55); text-align: center; animation: rise-in .24s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 20px; cursor: pointer; }
.result-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(145,240,194,.25); border-radius: 17px; color: var(--mint); background: rgba(145,240,194,.09); font-size: 25px; }
.result-card .eyebrow { justify-content: center; margin-bottom: 6px; }
.result-card h2 { margin: 0; font-size: 29px; letter-spacing: -.05em; }
.result-score { margin: 14px 0 3px; color: var(--mint); }
.result-score strong { font-size: 47px; font-weight: 950; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.result-score span { margin-left: 8px; color: #c6d2e6; font-size: 12px; font-weight: 800; }
.result-meta { margin: 0 0 21px; color: var(--muted); font-size: 11px; }
.score-form { text-align: left; }
.score-form label { display: block; margin: 12px 0 7px; color: #d9e3f3; font-size: 12px; font-weight: 800; }
.form-row { display: flex; gap: 8px; }
.text-input { width: 100%; min-width: 0; height: 47px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: #fff; background: rgba(3,9,20,.65); outline: 0; font-size: 12px; }
.text-input::placeholder { color: #6e7b93; }
.form-row .button { flex: 0 0 auto; padding-inline: 14px; }
.form-row .button:disabled { cursor: wait; opacity: .58; transform: none; }
.form-status { min-height: 20px; margin: 9px 0 6px; color: var(--mint); font-size: 10px; }
.form-status.is-error { color: #ff9dac; }
.result-card > .button-quiet { margin-top: 1px; }

@media (max-width: 1050px) {
  .hero { padding-inline: 15px; }
  .game-label { display: none; }
}
@media (max-width: 820px) {
  .header-inner, .site-shell, .footer-inner { width: calc(100% - 32px); }
  .header-inner { height: 68px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 16px; left: 16px; display: none; padding: 9px; border: 1px solid var(--line-strong); border-radius: 15px; background: #0d172a; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; gap: 3px; }
  .primary-nav a { min-height: 42px; }
  .primary-nav a.nav-play { justify-content: center; margin-top: 4px; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(200px,.7fr); min-height: 350px; padding: 46px 0 30px; }
  .hero-art { min-height: 245px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-sidebar { grid-template-columns: minmax(0,1.35fr) minmax(240px,.9fr); }
  .game-label { display: flex; }
  .section-heading--row { align-items: start; }
  .section-heading h1, .section-heading h2 { font-size: 27px; }
  .feature-strip article { padding-inline: 18px; }
  .leaderboard-table-heading { align-items: start; flex-direction: column; }
  .filter-pills--large { width: 100%; }
}
@media (max-width: 560px) {
  .header-inner, .site-shell, .footer-inner { width: calc(100% - 20px); }
  .brand-name { font-size: 16px; }
  .hero { display: block; min-height: auto; padding: 39px 0 25px; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .hero-description { margin: 17px 0 19px; font-size: 13px; }
  .hero-art { position: absolute; z-index: -1; top: 13px; right: -55px; width: 205px; min-height: 220px; opacity: .4; }
  .hero-art .art-bubble--pink { left: 3%; }
  .hero-art .art-bubble--blue { right: 4%; }
  .hero-art .art-burst { left: 13%; }
  .hero-proof { font-size: 9px; }
  .play-section { padding-top: 29px; }
  .section-heading--row { display: block; }
  .section-note { margin: 8px 0 0; text-align: left; }
  .game-toolbar { min-height: 61px; gap: 6px; padding: 9px; }
  .game-label { display: none; }
  .game-stats { gap: 2px; }
  .game-stats div { min-width: 48px; padding: 4px 5px; border-radius: 8px; }
  .game-stats span { font-size: 7px; }
  .game-stats strong { font-size: 14px; }
  .game-actions { gap: 5px; }
  .icon-button { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
  .canvas-hint { top: 7px; right: 7px; padding: 5px 7px; font-size: 6px; }
  .game-statusbar { align-items: start; flex-direction: column; gap: 4px; padding: 9px 11px; }
  .game-statusbar > span { text-align: left; }
  .game-controls-note { font-size: 0; }
  .game-controls-note .keycap { font-size: 7px; }
  .game-sidebar { grid-template-columns: 1fr; }
  .leaderboard-panel { padding: 20px 15px 14px; }
  .feature-strip { grid-template-columns: 1fr; gap: 0; padding: 9px 0; }
  .feature-strip article, .feature-strip article:first-child { padding: 14px 5px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip article:last-child { border-bottom: 0; }
  .feature-strip h3 { margin-top: 5px; }
  .closing-cta { align-items: start; flex-direction: column; padding: 28px 3px 34px; }
  .closing-cta h2 { font-size: 22px; }
  .page-hero { padding: 43px 4px 28px; }
  .page-hero h1 { font-size: 43px; }
  .page-hero > p:not(.eyebrow) { font-size: 12px; }
  .leaderboard-table-panel { padding: 15px; }
  .filter-pills--large { gap: 2px; padding: 3px; }
  .filter-pills--large .filter-pill { min-width: 0; padding-inline: 6px; font-size: 8px; }
  .score-table { min-width: 500px; }
  .guide-grid, .tips-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 18px; }
  .tips-panel { padding: 20px; }
  .controls-card { grid-template-columns: 1fr; padding: 19px; }
  .controls-card dl { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .footer-links { justify-content: start; }
  .copyright { grid-column: 1; }
  .contact-card { flex-direction: column; padding: 23px; }
  .result-card { padding: 29px 21px 22px; }
  .form-row { flex-direction: column; }
  .form-row .button { width: 100%; }
}
@media (max-height: 700px) {
  .play-section { padding-top: 8px; padding-bottom: 16px; }
  .section-heading { margin-bottom: 9px; }
  .section-heading .eyebrow { margin-bottom: 4px; }
  .section-heading h1, .section-heading h2 { font-size: clamp(20px, 3vw, 27px); }
  .game-toolbar { min-height: 58px; padding-block: 7px; }
  .game-stats div { min-width: clamp(44px, 5vw, 72px); padding-block: 4px; }
  .game-stats strong { font-size: 16px; }
  .icon-button { width: clamp(32px, 3.5vw, 38px); height: clamp(32px, 3.5vw, 38px); }
  .game-statusbar { min-height: 38px; padding-block: 6px; }
  .game-controls-note { padding-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
