:root {
  --navy: #071f3d;
  --navy-2: #0b2e54;
  --blue: #1597e5;
  --blue-bright: #38bdf8;
  --ice: #e8f6ff;
  --ink: #0a2540;
  --muted: #658096;
  --line: rgba(13, 63, 101, .13);
  --white: #fff;
  --danger: #f05b70;
  --success: #19c7a1;
  --shadow: 0 30px 80px rgba(5, 35, 67, .15);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f4faff; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden; background: radial-gradient(circle at 8% 12%, rgba(56, 189, 248, .12), transparent 28rem), linear-gradient(140deg, #f8fcff 0%, #eef8ff 52%, #fff 100%); -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { touch-action: manipulation; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .55; }
.ambient--one { width: 18rem; height: 18rem; right: -7rem; top: 16%; border: 1px solid rgba(21,151,229,.14); box-shadow: 0 0 0 3rem rgba(21,151,229,.03), 0 0 0 7rem rgba(21,151,229,.02); }
.ambient--two { width: 12rem; height: 12rem; left: -5rem; bottom: 5%; background: rgba(56,189,248,.06); }
.app-shell { position: relative; width: min(1440px, 100%); min-height: 100vh; margin: auto; padding: 0 clamp(1rem, 4vw, 4.5rem); display: grid; grid-template-rows: auto 1fr auto; }
.brand-bar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); font-size: 1.42rem; font-weight: 850; letter-spacing: .13em; }
.wordmark__mark { width: 28px; height: 28px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; transform: skew(-10deg); }
.wordmark__mark i { background: var(--blue); border-radius: 1px; }
.wordmark__mark i:nth-child(1) { height: 72%; align-self: end; }
.wordmark__mark i:nth-child(2) { height: 100%; }
.wordmark__mark i:nth-child(3) { height: 55%; align-self: start; }
.brand-bar__right { display: flex; align-items: center; gap: 18px; }
.prototype-badge { display: inline-flex; gap: 8px; align-items: center; color: #577287; font-weight: 650; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.prototype-badge span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(25,199,161,.12); }
.icon-button { width: 42px; height: 42px; padding: 10px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); background: rgba(255,255,255,.72); cursor: pointer; }
.icon-button svg { width: 100%; height: 100%; fill: currentColor; }
.icon-button .sound-off { display: none; }
.icon-button[aria-pressed="true"] .sound-on { display: none; }
.icon-button[aria-pressed="true"] .sound-off { display: block; }
.screen { display: none; min-height: calc(100vh - 154px); padding: clamp(2.3rem, 6vh, 5.2rem) 0; animation: screenIn .55s cubic-bezier(.2,.8,.2,1); }
.screen.is-active { display: grid; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
.screen--start { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.eyebrow { margin: 0 0 1.1rem; display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.eyebrow > span { width: 26px; height: 2px; background: var(--blue); }
h1, h2 { margin: 0; color: var(--navy); letter-spacing: -.055em; line-height: .96; }
h1 { font-size: clamp(3.25rem, 6vw, 6.6rem); font-weight: 760; }
h1 span, h2 span { color: var(--blue); }
.lede { max-width: 640px; margin: 1.65rem 0 2rem; color: #557087; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.65; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 2rem; }
.rule { display: flex; gap: 10px; align-items: center; min-width: 0; }
.rule__icon { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .76rem; }
.rule__icon--hit { color: #087abf; background: #e1f4ff; }
.rule__icon--miss { color: #d33c55; background: #ffedf0; }
.rule__icon--streak { color: #6c4ccf; background: #f0eaff; }
.rule b, .rule small { display: block; white-space: nowrap; }
.rule b { font-size: .78rem; }
.rule small { margin-top: 3px; color: #7890a2; font-size: .66rem; }
.primary-button, .secondary-button { border: 0; border-radius: 14px; height: 58px; padding: 0 24px; font-weight: 760; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-width: 218px; color: #fff; background: linear-gradient(135deg, #128ad3, #24aae9); box-shadow: 0 16px 34px rgba(21,151,229,.25); transition: transform .18s, box-shadow .18s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 19px 42px rgba(21,151,229,.34); }
.primary-button:active { transform: translateY(1px) scale(.99); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input-note { margin: .8rem 0 0 1.2rem; color: #8aa0b1; font-size: .7rem; }
.start-visual { position: relative; min-height: 540px; display: grid; place-items: center; }
.plate { position: relative; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(231,244,252,.96)); border: 1px solid rgba(49,120,163,.2); box-shadow: var(--shadow), inset 0 0 0 7px rgba(255,255,255,.7); }
.plate--decorative { width: min(500px, 88%); aspect-ratio: 1.12; padding: 2.4rem; border-radius: 42px; transform: perspective(850px) rotateX(54deg) rotateZ(-20deg); }
.plate__label { height: 26px; display: flex; align-items: flex-start; justify-content: space-between; color: #6d8799; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.decorative-grid, .well-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 22px); }
.decor-well, .well { aspect-ratio: 1; border-radius: 50%; }
.decor-well { position: relative; background: radial-gradient(circle at 38% 34%, #f9fdff 0 8%, #d8eaf5 38%, #bad4e3 64%, #eef8fd 68%); box-shadow: inset 0 6px 14px rgba(18,72,110,.2), 0 2px 1px #fff; }
.decor-well.active { background: radial-gradient(circle at 38% 34%, #baf0ff 0 7%, #32b9ef 31%, #0c86d1 63%, #dff7ff 68%); box-shadow: inset 0 8px 16px rgba(3,61,103,.3), 0 0 34px rgba(37,180,238,.55); }
.pipette { position: absolute; z-index: 3; right: 8%; top: -2%; width: 76px; filter: drop-shadow(12px 18px 18px rgba(2,31,59,.2)); transform: rotate(14deg); }
.pipette__plunger { width: 48px; height: 44px; margin: auto; border-radius: 14px 14px 6px 6px; background: var(--navy); }
.pipette__body { height: 190px; border-radius: 24px 24px 12px 12px; display: grid; place-items: center; background: linear-gradient(90deg, #0a81c6, #25aee9 55%, #0b7dbd); border: 4px solid #fff; }
.pipette__body span { color: #fff; font-size: .63rem; font-weight: 900; letter-spacing: .12em; transform: rotate(90deg); }
.pipette__collar { width: 64px; height: 30px; margin: -2px auto 0; background: #fff; border-radius: 5px 5px 14px 14px; }
.pipette__shaft { width: 17px; height: 170px; margin: -2px auto; background: linear-gradient(90deg,#ccdce5,#fff,#b9d0dd); clip-path: polygon(12% 0,88% 0,58% 100%,42% 100%); }
.pipette__drop { width: 13px; height: 19px; margin: -2px auto; border-radius: 50% 50% 55% 45%; transform: rotate(45deg); background: #18a8ec; box-shadow: 0 0 18px rgba(24,168,236,.55); }
.precision-tag { position: absolute; z-index: 4; left: 0; bottom: 8%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 12px 35px rgba(6,43,75,.12); backdrop-filter: blur(12px); }
.precision-tag > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 1.3rem; }
.precision-tag b, .precision-tag small { display: block; }
.precision-tag b { font-size: .78rem; }.precision-tag small { color: var(--muted); font-size: .66rem; }
.screen--game { align-content: start; }
.game-topline { display: grid; grid-template-columns: 190px 1fr 150px; align-items: center; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.stat__label { display: block; margin-bottom: 2px; color: #71899a; font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .14em; }
.stat strong { color: var(--navy); font-variant-numeric: tabular-nums; font-size: 2rem; line-height: 1; }
.stat strong small { margin-left: 2px; font-size: .9rem; color: #7e96a8; }
.stat--score { text-align: right; }
.timer-track { width: 100%; height: 4px; margin-top: 9px; overflow: hidden; background: #dceaf2; border-radius: 4px; }
.timer-track i { display: block; width: 100%; height: 100%; background: var(--blue); transform-origin: left; }
.game-prompt { justify-self: center; display: flex; align-items: center; gap: 10px; color: #5d778b; font-size: .8rem; font-weight: 680; }
.game-layout { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(440px, 1.45fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(2.5rem, 5vh, 4.5rem) 0 1rem; }
.game-side h2, .results-main h2 { font-size: clamp(2.8rem, 4.2vw, 5.4rem); }
.streak-card { position: relative; margin-top: 2rem; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.streak-card > div:first-child { display: flex; align-items: end; justify-content: space-between; color: #6e8799; font-size: .76rem; }
.streak-card > div:first-child strong { color: var(--navy); font-size: 2rem; line-height: .9; }
.multiplier { position: absolute; right: 14px; top: -16px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 850; background: linear-gradient(135deg,#7962ef,#a677ed); box-shadow: 0 10px 22px rgba(116,91,226,.26); transform: scale(.78); transition: transform .2s; }
.multiplier.is-hot { transform: scale(1); }
.streak-track { height: 6px; margin: 14px 0 8px; border-radius: 6px; overflow: hidden; background: #dfebf2; }
.streak-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--blue),#826bf0); transition: width .2s; }
.streak-card small { color: #839aaa; font-size: .68rem; }
.accuracy-row { display: flex; justify-content: space-between; margin-top: 1rem; padding: 0 4px; color: #71899a; font-size: .8rem; }.accuracy-row strong { color: var(--navy); }
.plate--game { width: min(68vh, 650px); max-width: 100%; aspect-ratio: 1.08; justify-self: center; border-radius: clamp(24px, 3vw, 46px); padding: clamp(24px, 4vw, 46px); user-select: none; }
.well-grid { gap: clamp(10px, 2vh, 22px); }
.well { position: relative; border: 0; cursor: pointer; background: radial-gradient(circle at 38% 32%, #f8fdff 0 9%, #dcebf3 35%, #b7cfdd 62%, #f8fcff 68%); box-shadow: inset 0 clamp(4px,1vh,10px) clamp(9px,2vh,18px) rgba(20,76,112,.18), 0 2px 2px #fff; transition: transform .12s, filter .12s, background .14s; }
.well::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }
.well:hover { filter: brightness(1.02); }
.well:active { transform: scale(.91); }
.well.is-active { background: radial-gradient(circle at 35% 30%, #c3f3ff 0 7%, #42c8f6 30%, #0789d3 61%, #d9f5ff 68%); box-shadow: inset 0 9px 18px rgba(4,64,105,.28), 0 0 0 5px rgba(39,182,239,.1), 0 0 38px rgba(39,182,239,.58); animation: wellPulse .62s ease-in-out infinite alternate; }
.well.is-hit { background: radial-gradient(circle,#a6ffe9,#17c7a0 62%,#dafcf4 68%); }
.well.is-wrong { background: radial-gradient(circle,#ffd8de,#ee5c73 62%,#ffedf0 68%); animation: wrongShake .22s ease; }
@keyframes wellPulse { to { transform: scale(1.055); box-shadow: inset 0 9px 18px rgba(4,64,105,.24),0 0 0 9px rgba(39,182,239,.08),0 0 48px rgba(39,182,239,.7); } }
@keyframes wrongShake { 30% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }
.feedback-bubble { position: absolute; left: 50%; top: 50%; z-index: 5; opacity: 0; transform: translate(-50%,-50%) scale(.8); padding: 9px 14px; border-radius: 999px; color: #fff; background: var(--navy); font-weight: 850; pointer-events: none; }
.feedback-bubble.show { animation: feedback .48s ease-out; }
@keyframes feedback { 0% { opacity: 0; transform: translate(-50%,-40%) scale(.75); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-105%) scale(1); } }
.screen--results { grid-template-columns: minmax(0, 1fr) minmax(360px, .65fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: center; }
.result-message { color: #668095; font-size: 1rem; }
.score-hero { margin: 2rem 0 1.3rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-hero > span, .score-hero > small { display: block; color: #7890a2; text-transform: uppercase; letter-spacing: .13em; font-size: .65rem; font-weight: 780; }
.score-hero strong { display: block; color: var(--navy); font-size: clamp(4rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.score-hero small { display: inline-block; margin-top: 12px; padding: 7px 10px; border-radius: 20px; color: #087e68; background: #e1faf4; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 1.8rem; }
.result-stats div { padding: 0 1rem; border-right: 1px solid var(--line); }.result-stats div:first-child { padding-left: 0; }.result-stats div:last-child { border: 0; }
.result-stats span, .result-stats strong { display: block; }.result-stats span { color: #7790a2; font-size: .7rem; }.result-stats strong { margin-top: 4px; color: var(--navy); font-size: 1.25rem; }
.result-actions { display: flex; gap: .75rem; }.secondary-button { color: var(--navy); background: transparent; border: 1px solid var(--line); }
.leaderboard-card { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.leaderboard-card__head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.leaderboard-card__head p { margin: 0; color: var(--blue); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }.leaderboard-card__head h3 { margin: 4px 0 0; color: var(--navy); font-size: 1.4rem; }.leaderboard-card__head > span { padding: 6px 9px; border-radius: 20px; color: #657f92; background: #edf5fa; font-size: .6rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard { list-style: none; padding: 0; margin: .8rem 0 1rem; counter-reset: rank; }
.leaderboard li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(13,63,101,.08); color: var(--navy); font-size: .82rem; }.leaderboard li::before { counter-increment: rank; content: counter(rank, decimal-leading-zero); color: #8ca0af; font-size: .65rem; }.leaderboard li strong { letter-spacing: .08em; }.leaderboard li span { font-variant-numeric: tabular-nums; font-weight: 800; }.leaderboard li.is-current { margin: 0 -8px; padding: 0 8px; border-radius: 10px; background: #e8f7ff; }
.score-form { padding-top: .2rem; }.score-form label { display: block; margin-bottom: 7px; color: #687f91; font-size: .7rem; font-weight: 750; }.score-form > div { display: flex; gap: 8px; }.score-form input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; text-transform: uppercase; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--navy); background: #fff; font-weight: 800; letter-spacing: .12em; }.score-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,151,229,.12); }.score-form button { border: 0; border-radius: 10px; padding: 0 18px; color: #fff; background: var(--navy); font-weight: 750; cursor: pointer; }.score-form small { display: block; margin-top: 7px; color: #8ba0af; font-size: .62rem; line-height: 1.4; }.text-button { margin-top: 12px; padding: 0; border: 0; color: #7890a2; background: transparent; text-decoration: underline; font-size: .65rem; cursor: pointer; }
footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #8298a8; font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; }
.countdown-overlay { position: fixed; z-index: 20; inset: 0; display: none; place-items: center; color: #fff; background: rgba(4,24,47,.78); backdrop-filter: blur(8px); }
.countdown-overlay.is-active { display: grid; }.countdown-overlay span { width: min(34vw, 260px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(21,151,229,.25); font-size: clamp(6rem,16vw,12rem); font-weight: 800; animation: countPop .85s ease-in-out; }
@keyframes countPop { from { transform: scale(.7); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(.9); opacity: .8; } }

@media (max-width: 900px) {
  .brand-bar { height: 72px; }.screen { min-height: calc(100vh - 124px); }
  .screen--start { grid-template-columns: 1fr; padding-top: 3rem; }.start-copy { max-width: 680px; }.start-visual { display: none; }
  .game-topline { grid-template-columns: 1fr 1fr; }.game-prompt { display: none; }.game-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.8rem; }.game-side { display: grid; grid-template-columns: 1fr 180px; align-items: end; gap: 1rem; }.game-side .eyebrow, .game-side .accuracy-row { display: none; }.game-side h2 { font-size: 2.5rem; }.streak-card { margin: 0; }
  .plate--game { width: min(62vh, 620px); }
  .screen--results { grid-template-columns: 1fr; align-content: start; }.results-main { max-width: 720px; }.leaderboard-card { width: min(650px,100%); }
}
@media (max-width: 600px) {
  .app-shell { padding: 0 16px; }.prototype-badge { display: none; }.brand-bar__right { gap: 8px; }
  .screen { padding: 2rem 0; }.screen--start { align-content: start; }.eyebrow { font-size: .68rem; } h1 { font-size: clamp(3.2rem,15vw,4.8rem); }.lede { margin: 1.25rem 0 1.5rem; font-size: .96rem; }
  .rules { grid-template-columns: 1fr; gap: .7rem; }.rule__icon { width: 40px; height: 40px; flex-basis: 40px; }.rule b { font-size: .8rem; }.rule small { font-size: .68rem; }.primary-button { width: 100%; }.input-note { text-align: center; margin-left: 0; }
  .game-topline { gap: 1rem; padding-bottom: 1rem; }.stat strong { font-size: 1.6rem; }.game-layout { padding-top: 1.2rem; }.game-side { grid-template-columns: 1fr auto; align-items: center; }.game-side h2 { font-size: 1.7rem; }.streak-card { min-width: 132px; padding: 12px; }.streak-card > div:first-child strong { font-size: 1.4rem; }.multiplier { width: 40px; height: 40px; top: -11px; font-size: .8rem; }.streak-track { margin: 9px 0 5px; }.streak-card small { font-size: .57rem; }
  .plate--game { width: 100%; padding: 22px; border-radius: 26px; }.plate__label { height: 20px; font-size: .48rem; }.well-grid { gap: 11px; }
  .screen--results { gap: 1.8rem; }.results-main h2 { font-size: 3.4rem; }.score-hero { margin: 1.4rem 0 1rem; }.score-hero strong { font-size: 5rem; }.result-actions { flex-direction: column; }.secondary-button { width: 100%; }.leaderboard-card { border-radius: 22px; }.result-stats div { padding: 0 .7rem; }.result-stats span { font-size: .62rem; }.result-stats strong { font-size: 1.08rem; }
  footer { min-height: 52px; }.app-shell footer span:first-child { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) { .screen { padding: 2rem 0; }.game-layout { padding: 2rem 0 0; }.plate--game { width: min(61vh,570px); }.start-visual { min-height: 450px; }.plate--decorative { width: 430px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* Precision-instrument visual system */
:root {
  --navy: #06182b;
  --navy-2: #092942;
  --blue: #00a9e8;
  --blue-bright: #53d4ff;
  --ice: #dff8ff;
  --ink: #e8f7ff;
  --muted: #82a7bb;
  --line: rgba(129, 202, 231, .2);
  --white: #f7fcff;
  --shadow: 0 34px 90px rgba(0, 5, 14, .38);
}

html { background: #020c16; }
body {
  color: var(--ink);
  background:
    linear-gradient(rgba(62, 156, 197, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 156, 197, .035) 1px, transparent 1px),
    radial-gradient(circle at 72% 42%, rgba(0, 169, 232, .13), transparent 30rem),
    linear-gradient(145deg, #061522 0%, #03101c 55%, #071a29 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, rgba(63,203,255,.06) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, rgba(63,203,255,.04) 50%, transparent 50.2%); }
.ambient--one { border-color: rgba(83,212,255,.16); box-shadow: 0 0 0 3rem rgba(0,169,232,.025),0 0 0 7rem rgba(0,169,232,.02); }
.ambient--two { background: rgba(0,169,232,.08); }
.app-shell { isolation: isolate; }
.brand-bar { border-color: var(--line); }
.wordmark { color: #fff; }
.wordmark__mark i { background: linear-gradient(#55d4ff,#008ed4); box-shadow: 0 0 12px rgba(0,169,232,.28); }
.brand-bar__right { gap: 12px; }
.instrument-readout { display: flex; align-items: center; gap: 1px; overflow: hidden; border: 1px solid rgba(118,193,221,.18); border-radius: 6px; background: #03111d; box-shadow: inset 0 1px 8px rgba(0,0,0,.55); }
.instrument-readout span { padding: 7px 10px; border-right: 1px solid rgba(118,193,221,.13); color: #b9d5e3; font: 650 .58rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.instrument-readout span:last-child { border: 0; }.instrument-readout b { color: #4d7890; font-weight: 700; }.instrument-readout .instrument-ready { color: #72f3c1; }
.instrument-ready i, .deck-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #35df9d; box-shadow: 0 0 9px #35df9d; }
.prototype-badge { color: #6d94a9; }.icon-button { color: #c8e3ef; border-color: var(--line); background: #071c2c; box-shadow: inset 0 1px rgba(255,255,255,.04); }
.screen { position: relative; }
.screen::before { content: "GILSON // PRECISION LIQUID HANDLING"; position: absolute; left: 0; top: 18px; color: rgba(120,181,205,.22); font: 600 .52rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.eyebrow { color: #55d4ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.eyebrow > span { background: #22c2f3; box-shadow: 0 0 10px rgba(34,194,243,.55); }
h1,h2 { color: #f4fbff; text-shadow: 0 8px 32px rgba(0,0,0,.25); }
h1 span,h2 span { color: #31bcef; }
.lede { color: #92afbf; }
.rules { gap: .5rem; }
.rule { position: relative; min-height: 74px; padding: 11px; border: 1px solid rgba(113,185,212,.16); border-radius: 8px; background: linear-gradient(145deg, rgba(12,42,61,.82), rgba(5,24,37,.82)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.rule::before { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(255,255,255,.025); border-radius: 5px; }
.rule__icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rule__icon--hit { color: #77e2ff; background: #07334a; border: 1px solid #0b5c7d; }.rule__icon--miss { color: #ff8fa1; background: #3a1820; border: 1px solid #642631; }.rule__icon--streak { color: #c0a9ff; background: #261f4b; border: 1px solid #493a83; }
.rule b { color: #dfedf3; }.rule small { color: #688da1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.primary-button { border: 1px solid rgba(88,217,255,.5); border-radius: 7px; color: #00131e; background: linear-gradient(180deg,#4ad4ff,#00a3df); box-shadow: 0 0 0 3px rgba(0,169,232,.08),0 18px 38px rgba(0,118,177,.26),inset 0 1px rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.secondary-button { border-radius: 7px; color: #c9dfe9; border-color: var(--line); }
.input-note { color: #607f91; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }.input-note span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #35df9d; box-shadow: 0 0 8px #35df9d; }
.start-visual::before { content: "PIPETMAN® // SINGLE CHANNEL"; position: absolute; right: 1%; top: 9%; color: #587b8e; font: 650 .55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; writing-mode: vertical-rl; }
.plate { background: linear-gradient(145deg,#dce7eb,#95aeb9 45%,#d9e5e9 65%,#728d99); border: 1px solid #e9f2f4; box-shadow: 0 35px 75px rgba(0,4,12,.5),inset 0 0 0 7px rgba(255,255,255,.3),inset 0 -9px 16px rgba(23,52,67,.25); }
.plate::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(18,58,75,.22); border-radius: inherit; pointer-events: none; }
.plate__label { color: #173f51; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-shadow: 0 1px rgba(255,255,255,.45); }
.decor-well,.well { background: radial-gradient(circle at 38% 32%,#eff9fb 0 7%,#a8c3cd 34%,#617d89 61%,#dce9ed 67%,#6c8994 72%); box-shadow: inset 0 9px 18px rgba(10,32,44,.42),0 2px 1px rgba(255,255,255,.65),0 0 0 1px rgba(28,61,74,.5); }
.decor-well.active,.well.is-active { background: radial-gradient(circle at 35% 30%,#d2fbff 0 6%,#46d9ff 27%,#0094d4 56%,#bdeeff 65%,#2e6f8e 71%); box-shadow: inset 0 9px 18px rgba(0,42,67,.5),0 0 0 4px rgba(54,211,255,.17),0 0 42px rgba(0,181,240,.78); }
.deck-status { position: absolute; left: clamp(24px,4vw,46px); right: clamp(24px,4vw,46px); bottom: 15px; display: flex; justify-content: space-between; color: #21495b; font: 700 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.deck-status i { width: 5px; height: 5px; margin-right: 5px; background: #079467; box-shadow: 0 0 5px #079467; }
.pipette__plunger { background: linear-gradient(90deg,#071526,#2a4051,#061321); border: 1px solid #5d7382; }
.pipette__body { background: linear-gradient(90deg,#066ca8,#23b9e9 50%,#075986); border-color: #a8bdc7; box-shadow: inset -8px 0 14px rgba(0,32,57,.25); }
.pipette__collar { background: linear-gradient(#dfe8eb,#8298a2); border: 1px solid #edf5f6; }.pipette__shaft { background: linear-gradient(90deg,#748b95,#eef5f6,#617985); }
.precision-tag { border-radius: 7px; color: #cde4ee; background: rgba(3,20,32,.94); border-color: rgba(100,194,228,.28); box-shadow: 0 12px 35px rgba(0,5,12,.36),inset 0 1px rgba(255,255,255,.04); }.precision-tag > span { border-radius: 4px; color: #00141e; background: #45d1fa; font: 800 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }.precision-tag small { color: #63879b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.game-topline { border-color: var(--line); }.stat__label { color: #62879a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.stat strong { color: #eaf9ff; }.stat strong small { color: #5c8296; }.timer-track { background: #102e40; }.timer-track i { background: #31c6f4; box-shadow: 0 0 10px #24bce9; }
.game-prompt { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: #92b2c2; background: #061827; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.streak-card { border-radius: 7px; color: #bfd9e5; background: linear-gradient(145deg,rgba(13,43,62,.92),rgba(4,22,35,.92)); border-color: rgba(99,178,209,.2); box-shadow: inset 0 1px rgba(255,255,255,.035); }.streak-card > div:first-child { color: #7397aa; }.streak-card > div:first-child strong { color: #e8f7ff; }.multiplier { border-radius: 6px; background: linear-gradient(145deg,#7355e5,#4532a8); }.streak-track { background: #102f40; }.accuracy-row { color: #64889b; }.accuracy-row strong { color: #cce6f1; }
.plate--game { border-radius: clamp(16px,2vw,26px); }
.plate--game .well::before { content: attr(data-coordinate); position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%,-50%); color: rgba(17,52,67,.48); font: 800 clamp(.42rem,.7vw,.62rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.plate--game .well.is-active::before { color: rgba(227,251,255,.85); text-shadow: 0 0 7px rgba(255,255,255,.7); }
.feedback-bubble { border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.result-message { color: #83a5b6; }.score-hero { border-color: var(--line); }.score-hero strong { color: #effbff; }.score-hero > span,.score-hero > small { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }.result-stats div { border-color: var(--line); }.result-stats span { color: #668b9e; }.result-stats strong { color: #e7f7ff; }
.leaderboard-card { border-radius: 10px; background: linear-gradient(145deg,rgba(12,41,59,.96),rgba(4,20,31,.96)); border: 1px solid rgba(99,181,214,.22); box-shadow: var(--shadow),inset 0 1px rgba(255,255,255,.04); }.leaderboard-card__head { border-color: var(--line); }.leaderboard-card__head h3 { color: #e8f7ff; }.leaderboard-card__head > span { color: #7ea2b4; background: #0c2a3c; border-radius: 4px; }.leaderboard li { color: #deeff6; border-color: rgba(91,168,198,.12); }.leaderboard li::before { color: #537a8e; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }.leaderboard li.is-current { background: #0d3a52; }.score-form label { color: #769aad; }.score-form input { color: #ddf4ff; background: #041725; border-color: var(--line); }.score-form button { color: #00141e; background: #39c8f4; border-radius: 5px; }.text-button { color: #6f94a6; }
footer { border-color: var(--line); color: #4f7183; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }

@media (max-width: 900px) { .instrument-readout { display: none; } }
@media (max-width: 600px) {
  body { background-size: 24px 24px,24px 24px,auto,auto; }
  .screen::before { top: 9px; }
  .rule { min-height: 60px; }
  .plate--game { padding-bottom: 30px; }
  .deck-status { left: 22px; right: 22px; bottom: 11px; font-size: .42rem; }
}

/* Reference-led Gilson instrument redesign */
:root {
  --navy: #0a3157;
  --navy-2: #123f68;
  --blue: #10aee6;
  --blue-bright: #29c8f4;
  --ice: #e9f6fc;
  --ink: #0b3155;
  --muted: #66809a;
  --line: rgba(28, 74, 111, .16);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 66, 96, .15);
}

html { background: #edf3f7; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(96,178,220,.13), transparent 25rem),
    linear-gradient(135deg,#f8fbfd 0%,#eaf1f6 55%,#f7fafc 100%);
  background-size: auto;
}
body::before { background: linear-gradient(90deg,transparent 49.8%,rgba(54,111,150,.025) 50%,transparent 50.2%); }
.ambient--one { border-color: rgba(18,146,207,.1); box-shadow: 0 0 0 3rem rgba(18,146,207,.02),0 0 0 7rem rgba(18,146,207,.012); }
.ambient--two { background: rgba(18,146,207,.05); }
.brand-bar { height: 88px; border-color: rgba(28,74,111,.15); }
.wordmark { gap: 0; }
.wordmark img { width: clamp(190px,18vw,260px); height: auto; display: block; filter: brightness(0) saturate(100%) invert(14%) sepia(28%) saturate(2084%) hue-rotate(169deg) brightness(93%) contrast(101%); }
.brand-signature { color: #5e7894; font-size: .67rem; font-weight: 720; text-transform: uppercase; letter-spacing: .28em; }
.prototype-badge { color: #6e859a; }.prototype-badge span { background: #10aee6; box-shadow: 0 0 0 5px rgba(16,174,230,.1); }
.icon-button { color: var(--navy); border-color: rgba(30,80,118,.14); background: rgba(255,255,255,.76); box-shadow: 0 6px 20px rgba(25,69,102,.08); }
.screen { min-height: calc(100vh - 150px); }
.screen::before { content: none; }
.eyebrow { color: #1c77ae; font-family: inherit; }.eyebrow > span { background: #159ed6; box-shadow: none; }
h1,h2 { color: #0a3157; text-shadow: none; }
h1 span,h2 span { color: #118fc9; }
.lede { color: #60798f; }
.rules { gap: .7rem; }
.rule { min-height: 68px; padding: 10px; border: 1px solid rgba(31,80,117,.12); border-radius: 12px; background: rgba(255,255,255,.62); box-shadow: 0 8px 24px rgba(44,82,111,.06),inset 0 1px #fff; }
.rule::before { display: none; }
.rule__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 10px; font-family: inherit; }
.rule__icon--hit { color: #087eaf; background: #ddf4fc; border: 1px solid #bce4f4; }.rule__icon--miss { color: #c84a5f; background: #fcebee; border: 1px solid #f3cbd2; }.rule__icon--streak { color: #0b6f9c; background: #e4f3fa; border: 1px solid #c7e4f0; }
.rule b { color: #173d5d; }.rule small { color: #7a90a3; font-family: inherit; }
.primary-button { border: 1px solid #0798d2; border-radius: 10px; color: #fff; background: linear-gradient(180deg,#19b8eb,#078fc8); box-shadow: 0 13px 28px rgba(7,143,200,.22),inset 0 1px rgba(255,255,255,.35); font-size: .76rem; }
.secondary-button { border-radius: 10px; color: #17405e; border-color: rgba(28,74,111,.18); background: rgba(255,255,255,.45); }
.input-note { color: #758b9e; font-family: inherit; letter-spacing: .04em; }.input-note span { background: #28b781; box-shadow: none; }
.start-visual::before { color: #8299aa; font-family: inherit; }
.plate {
  background:
    linear-gradient(145deg,rgba(255,255,255,.95),rgba(208,220,228,.95) 52%,rgba(247,250,252,.95));
  border: 1px solid #bacbd5;
  box-shadow: 0 30px 70px rgba(34,70,96,.18),inset 0 0 0 6px rgba(255,255,255,.52),inset 0 -9px 18px rgba(75,103,120,.12);
}
.plate::before { border-color: rgba(41,79,100,.18); }
.plate__label { color: #173f61; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; text-shadow: 0 1px #fff; }
.deck-status { color: #41637a; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }.deck-status i { background: #118ac3; box-shadow: none; }
.decor-well,.well {
  background:
    radial-gradient(circle at 38% 28%,rgba(255,255,255,.9) 0 5%,transparent 17%),
    radial-gradient(circle at 50% 60%,#e8f0f4 0 34%,#c5d3dc 50%,#91a9b7 58%,#edf4f7 64%,#afc0ca 70%,#f7fafb 73%);
  box-shadow: inset 0 9px 18px rgba(43,73,92,.2),0 2px 2px rgba(255,255,255,.9),0 0 0 1px rgba(82,113,132,.34);
}
.decor-well.active,.well.is-active {
  background:
    radial-gradient(ellipse at 44% 45%,rgba(216,250,255,.9) 0 8%,transparent 23%),
    linear-gradient(to top,#079de0 0 44%,#45cef4 45%,rgba(206,246,255,.82) 48%,transparent 50%),
    radial-gradient(circle at 50% 60%,#e9f5f9 0 34%,#bdd2dc 50%,#79a4b8 58%,#e4f3f7 64%,#9eb7c3 70%,#f7fafb 73%);
  box-shadow: inset 0 7px 17px rgba(7,93,138,.24),0 0 0 3px rgba(15,174,230,.13),0 6px 16px rgba(16,174,230,.16);
}
.pipette { filter: drop-shadow(12px 18px 18px rgba(30,67,94,.16)); }.pipette__plunger { background: linear-gradient(90deg,#163652,#4d6a80,#102e49); border-color: #7890a1; }.pipette__body { background: linear-gradient(90deg,#0788c5,#27bde9 50%,#0679b1); border-color: #e5edf1; }.pipette__collar { background: linear-gradient(#fff,#bac8cf); border-color: #fff; }.pipette__shaft { background: linear-gradient(90deg,#b4c3ca,#fff,#9bafb9); }
.precision-tag { border-radius: 10px; color: #173d5d; background: rgba(255,255,255,.92); border-color: rgba(31,79,115,.12); box-shadow: 0 12px 35px rgba(37,75,103,.12); }.precision-tag > span { border-radius: 7px; color: #fff; background: #149ed7; font-family: inherit; }.precision-tag small { color: #7e93a3; font-family: inherit; }

.screen--game { padding-top: clamp(1.3rem,3vh,2.6rem); align-content: start; }
.instrument-hud {
  width: min(960px,100%); min-height: 148px; margin: 0 auto; padding: 22px 30px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; align-items: center;
  border: 1px solid #315979; border-radius: 24px;
  background: linear-gradient(135deg,#153f65,#082b4d 70%,#0d3659);
  box-shadow: 0 18px 40px rgba(20,58,88,.2),inset 0 1px rgba(255,255,255,.12);
}
.instrument-hud .stat { position: relative; min-height: 94px; padding: 4px 38px; display: flex; flex-direction: column; justify-content: center; }
.instrument-hud .stat:first-child { padding-left: 10px; }.instrument-hud .stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 5px; bottom: 5px; width: 1px; background: rgba(204,231,246,.32); }
.instrument-hud .stat__label { color: #c3d7e5; font-family: inherit; font-size: .8rem; letter-spacing: .19em; }
.instrument-hud .stat strong { color: #fff; font-size: clamp(2.55rem,4vw,4rem); font-weight: 720; letter-spacing: .02em; }.instrument-hud .stat strong small { color: #b8cedd; font-size: 1.4rem; font-weight: 500; }
.instrument-hud .stat--score { text-align: left; }.instrument-hud .stat--streak { padding-right: 8px; }.instrument-hud .stat--streak strong { display: flex; align-items: baseline; gap: 6px; }.instrument-hud .stat--streak em { position: absolute; right: 6px; bottom: 16px; color: #64ccef; font-size: .72rem; font-weight: 800; font-style: normal; letter-spacing: .08em; }
.timer-track { width: 100%; max-width: 300px; height: 10px; margin-top: 10px; background: #375b7a; border-radius: 10px; }.timer-track i { background: linear-gradient(90deg,#13b7e8,#3bc9f0); box-shadow: none; border-radius: inherit; }
.speed-strip { width: min(860px,92%); min-height: 68px; margin: 10px auto 0; display: flex; align-items: center; justify-content: center; gap: 25px; color: #173f65; text-transform: uppercase; font-weight: 780; letter-spacing: .2em; }
.speed-gauge { position: relative; width: 48px; height: 26px; overflow: hidden; border-radius: 50% 50% 0 0; border: 5px solid #168cc3; border-bottom: 0; }.speed-gauge::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 19px; border-radius: 5px; background: #164e78; transform-origin: 50% 100%; transform: rotate(42deg); }.speed-gauge i { position: absolute; left: 50%; bottom: -3px; width: 10px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: #164e78; }
.speed-segments { display: grid; grid-template-columns: repeat(7,28px); gap: 5px; }.speed-segments i { height: 16px; border-radius: 3px; transform: skew(-12deg); background: #d8e3ea; transition: background .12s; }.speed-segments i.is-active { background: linear-gradient(180deg,#39c9ef,#098fca); }
.game-layout { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 0 1rem; }
.plate--game {
  width: min(60vh,650px); max-width: min(100%,650px); aspect-ratio: 1.02; padding: 82px 38px 32px 64px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 24px 24px,#526977 0 3px,#dfe8ed 4px 8px,transparent 9px),
    radial-gradient(circle at calc(100% - 24px) 24px,#526977 0 3px,#dfe8ed 4px 8px,transparent 9px),
    radial-gradient(circle at 24px calc(100% - 24px),#526977 0 3px,#dfe8ed 4px 8px,transparent 9px),
    radial-gradient(circle at calc(100% - 24px) calc(100% - 24px),#526977 0 3px,#dfe8ed 4px 8px,transparent 9px),
    linear-gradient(145deg,#f8fafb,#d2dee5 50%,#f2f6f8);
  box-shadow: 0 25px 55px rgba(40,76,102,.2),inset 0 0 0 7px rgba(255,255,255,.48),inset 0 -12px 20px rgba(59,88,106,.1);
}
.plate--game::before { inset: 13px; border-radius: 25px; border-color: rgba(39,78,100,.2); }
.plate--game .plate__label { position: absolute; left: 44px; right: 42px; top: 32px; height: auto; align-items: center; font-size: .62rem; }.plate--game .plate__label span:last-child { padding: 7px 10px; border: 1px solid #9db4c2; border-radius: 8px; background: rgba(255,255,255,.45); }.plate--game .plate__label i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #0c93ce; }
.column-labels { position: absolute; left: 64px; right: 38px; top: 58px; display: grid; grid-template-columns: repeat(4,1fr); text-align: center; color: #284d68; font-weight: 750; font-size: .78rem; }
.row-labels { position: absolute; left: 24px; top: 82px; bottom: 32px; display: grid; grid-template-rows: repeat(4,1fr); align-items: center; color: #284d68; font-weight: 750; font-size: .78rem; }
.well-grid { height: 100%; gap: clamp(10px,1.6vh,18px); }
.well { border: 0; }
.well::after { inset: 8%; border: 1px solid rgba(255,255,255,.65); box-shadow: inset 0 0 0 2px rgba(76,110,129,.08),inset 0 5px 10px rgba(66,94,111,.08); }
.plate--game .well::before { display: none; }
.well.is-active { animation: wellLiquid .52s ease-in-out infinite alternate; }
.well.is-active::after { border-color: rgba(203,247,255,.9); box-shadow: inset 0 0 0 2px rgba(0,130,192,.15),inset 0 -10px 18px rgba(0,98,153,.2); }
.well.is-hit { background: radial-gradient(circle at 50% 55%,#b8f4e5 0 36%,#45c8a4 58%,#e5faf4 67%,#a8c9bf 72%); }
.well.is-wrong { background: radial-gradient(circle at 50% 55%,#fde5e8 0 36%,#e88b99 58%,#fbf0f2 67%,#c8a7ae 72%); }
@keyframes wellLiquid { to { transform: scale(1.025); filter: saturate(1.08); } }
.game-hidden-data { display: flex; justify-content: center; gap: 28px; color: #6d8497; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }.game-hidden-data span { white-space: nowrap; }.game-hidden-data strong { color: #183f5e; }.game-hidden-data .streak-track { display: none; }
.feedback-bubble { border-radius: 8px; font-family: inherit; }

.screen--results { color: #173d5d; }
.result-message { color: #687f93; }.score-hero { border-color: var(--line); }.score-hero strong { color: #0a3157; }.score-hero > span,.score-hero > small { font-family: inherit; }.result-stats div { border-color: var(--line); }.result-stats span { color: #73899b; }.result-stats strong { color: #113956; }
.leaderboard-card { border-radius: 22px; background: rgba(255,255,255,.82); border: 1px solid rgba(31,80,117,.12); box-shadow: var(--shadow); }.leaderboard-card__head { border-color: var(--line); }.leaderboard-card__head h3 { color: #0a3157; }.leaderboard-card__head > span { color: #617b90; background: #eaf2f6; border-radius: 20px; }.leaderboard li { color: #153d5b; border-color: rgba(31,80,117,.1); }.leaderboard li::before { color: #7d91a1; font-family: inherit; }.leaderboard li.is-current { background: #e4f5fc; }.score-form label { color: #678095; }.score-form input { color: #173d5d; background: #fff; border-color: var(--line); }.score-form button { color: #fff; background: #0c88c2; border-radius: 8px; }.text-button { color: #688298; }
footer { border-color: var(--line); color: #788d9e; font-family: inherit; }
.countdown-overlay { background: rgba(8,42,70,.72); }.countdown-overlay span { background: rgba(20,165,218,.3); }

@media (max-width: 900px) {
  .brand-signature { display: none; }
  .screen--game { min-height: calc(100vh - 124px); }
  .instrument-hud { min-height: 116px; border-radius: 18px; padding: 14px 18px; }
  .instrument-hud .stat { min-height: 76px; padding: 2px 22px; }.instrument-hud .stat:first-child { padding-left: 4px; }
  .instrument-hud .stat strong { font-size: 2.45rem; }.instrument-hud .stat strong small { font-size: 1rem; }
  .speed-strip { min-height: 52px; margin-top: 4px; }
  .plate--game { width: min(61vh,620px); }
}
@media (max-width: 600px) {
  body { background-size: auto; }
  .brand-bar { height: 68px; }.wordmark img { width: 170px; }
  .screen--game { padding: 12px 0 8px; }
  .instrument-hud { min-height: 92px; padding: 9px 10px; border-radius: 16px; }
  .instrument-hud .stat { min-height: 68px; padding: 0 12px; }.instrument-hud .stat:first-child { padding-left: 2px; }
  .instrument-hud .stat__label { font-size: .56rem; letter-spacing: .15em; }
  .instrument-hud .stat strong { font-size: 1.8rem; }.instrument-hud .stat strong small { font-size: .72rem; }.instrument-hud .stat--streak em { right: 0; bottom: 6px; font-size: .52rem; }
  .timer-track { height: 6px; margin-top: 6px; }
  .speed-strip { width: 100%; min-height: 44px; margin: 2px 0; gap: 11px; font-size: .62rem; letter-spacing: .12em; }
  .speed-gauge { width: 33px; height: 19px; border-width: 4px; border-bottom: 0; }.speed-gauge::before { height: 13px; }
  .speed-segments { grid-template-columns: repeat(7,12px); gap: 3px; }.speed-segments i { height: 10px; border-radius: 2px; }
  .game-layout { gap: 6px; }
  .plate--game { width: min(100%,430px); padding: 68px 26px 24px 48px; border-radius: 24px; }
  .plate--game::before { inset: 10px; border-radius: 17px; }
  .plate--game .plate__label { left: 30px; right: 28px; top: 26px; font-size: .46rem; }.plate--game .plate__label span:last-child { padding: 5px 6px; border-radius: 5px; }
  .column-labels { left: 48px; right: 26px; top: 51px; font-size: .62rem; }.row-labels { left: 17px; top: 68px; bottom: 24px; font-size: .62rem; }
  .well-grid { gap: 9px; }
  .game-hidden-data { gap: 12px; font-size: .48rem; }
  .screen--start .primary-button { margin-top: 2px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .instrument-hud { min-height: 112px; padding: 12px 25px; }.instrument-hud .stat { min-height: 78px; }.instrument-hud .stat strong { font-size: 2.6rem; }
  .speed-strip { min-height: 46px; }.plate--game { width: min(55vh,560px); }
}

/* Opening screen: immediate exhibition challenge */
.screen--start {
  grid-template-columns: minmax(0,.92fr) minmax(360px,1.08fr);
  grid-template-areas: "copy visual" "action visual";
  grid-template-rows: auto auto;
  gap: 0 clamp(2.5rem,7vw,7.5rem);
  align-content: center;
  align-items: end;
  padding: clamp(2rem,5vh,4rem) 0;
}
.start-copy { grid-area: copy; align-self: end; }
.start-copy h1 { font-size: clamp(3.35rem,5vw,5.6rem); line-height: .96; }
.start-copy h1 span { color: #119bd3; }
.start-copy .lede { max-width: 600px; margin: 1.45rem 0 1.7rem; font-size: clamp(1rem,1.2vw,1.15rem); line-height: 1.58; }
.start-action { grid-area: action; align-self: start; }
.start-action .primary-button { min-width: 230px; }
.start-visual { grid-area: visual; min-height: 0; height: auto; display: grid; place-items: center; align-self: center; }
.start-visual::before { content: none; }
.plate--decorative {
  width: min(520px,94%); aspect-ratio: 1.06; padding: 52px 42px 38px;
  border-radius: 34px;
  transform: perspective(1000px) rotateX(18deg) rotateZ(-3deg);
  transition: transform .4s ease;
}
.plate--decorative:hover { transform: perspective(1000px) rotateX(13deg) rotateZ(-1deg); }
.plate--decorative .plate__label { position: absolute; top: 27px; left: 40px; right: 40px; height: auto; align-items: center; font-size: .58rem; }
.plate--decorative .plate__label span:last-child { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #a7bdc9; border-radius: 6px; background: rgba(255,255,255,.45); }
.plate--decorative .plate__label span:last-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0b98d3; }
.plate--decorative .decorative-grid { height: 100%; gap: clamp(10px,1.5vw,18px); }
.plate--decorative .decor-well { transition: background .18s ease,box-shadow .18s ease,transform .18s ease; }
.plate--decorative .decor-well.active { transform: scale(1.025); }

@media (max-width: 900px) {
  .screen--start {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "action";
    grid-template-rows: auto auto auto;
    gap: 1.1rem;
    align-content: center;
    padding: 1.5rem 0;
  }
  .start-copy { max-width: 680px; }
  .start-action { width: min(520px,100%); justify-self: center; }
  .start-action .primary-button { width: 100%; }
  .start-visual { display: grid; width: 100%; }
  .plate--decorative { width: min(390px,75vw); }
}
@media (max-width: 600px) {
  .screen--start { min-height: calc(100vh - 120px); gap: .75rem; padding: .85rem 0 .7rem; }
  .start-copy h1 { font-size: clamp(2.45rem,10.5vw,3.25rem); line-height: .98; }
  .start-copy .lede { margin: .75rem 0 0; font-size: .88rem; line-height: 1.45; }
  .plate--decorative {
    width: min(275px,71vw); aspect-ratio: 1.06; padding: 38px 25px 22px;
    border-radius: 23px; transform: perspective(800px) rotateX(11deg) rotateZ(-2deg);
  }
  .plate--decorative:hover { transform: perspective(800px) rotateX(11deg) rotateZ(-2deg); }
  .plate--decorative .plate__label { top: 20px; left: 25px; right: 25px; font-size: .37rem; }
  .plate--decorative .plate__label span:last-child { padding: 3px 5px; border-radius: 4px; }
  .plate--decorative .plate__label span:last-child::before { width: 4px; height: 4px; }
  .plate--decorative .decorative-grid { gap: 7px; }
  .start-action .primary-button { height: 54px; }
}
@media (max-height: 700px) and (max-width: 600px) {
  .screen--start { align-content: start; gap: .5rem; padding-top: .65rem; }
  .start-copy h1 { font-size: 2.3rem; }
  .start-copy .lede { font-size: .8rem; }
  .plate--decorative { width: 230px; }
  .start-action .primary-button { height: 50px; }
}

/* Results screen: result-first, restrained and brand-led */
.screen--results {
  grid-template-columns: minmax(0,1fr) minmax(340px,.72fr);
  gap: clamp(2.5rem,6vw,6rem);
  align-items: center;
  padding: clamp(2rem,4vh,3.5rem) 0;
}
.results-main .eyebrow { margin-bottom: .7rem; color: #2479a7; text-transform: none; letter-spacing: .08em; }
.results-main h2 { font-size: clamp(2.1rem,3.3vw,3.6rem); line-height: 1; letter-spacing: -.035em; color: #0a3157; }
.result-message { margin: .6rem 0 0; color: #647d91; font-size: .95rem; }
.score-hero { margin: 1.35rem 0 .9rem; padding: 1rem 0 1.1rem; border-color: rgba(28,74,111,.18); }
.score-hero > span { color: #71879a; font-size: .62rem; letter-spacing: .12em; }
.score-hero strong { margin-top: .2rem; font-size: clamp(5.8rem,9vw,8.6rem); line-height: .82; color: #0a3157; }
.score-hero small { margin-top: .8rem; padding: 0; border-radius: 0; color: #627b8f; background: transparent; font-size: .7rem; font-weight: 650; text-transform: none; letter-spacing: .02em; }
.result-stats { margin-bottom: 1.25rem; padding-bottom: 1.15rem; border-bottom: 1px solid rgba(28,74,111,.14); }
.result-stats div { padding: 0 1.2rem; }.result-stats div:first-child { padding-left: 0; }.result-stats span { color: #75899a; font-size: .68rem; }.result-stats strong { margin-top: .3rem; color: #123b59; font-size: 1.45rem; }
.result-actions { align-items: center; }
.screen--results .secondary-button { height: auto; min-height: 44px; padding: 0 12px; border: 0; color: #456a83; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; }
.brand-signoff { max-width: 480px; margin: 1.8rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(28,74,111,.14); color: #456a84; font-size: .82rem; line-height: 1.5; }
.leaderboard-card { padding: 1.6rem 0 1.6rem 2rem; border: 0; border-left: 1px solid rgba(28,74,111,.16); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.leaderboard-card__head { padding-bottom: .8rem; }.leaderboard-card__head p { text-transform: none; letter-spacing: .06em; }.leaderboard-card__head > span { padding: 0; border-radius: 0; background: transparent; text-transform: none; letter-spacing: .02em; }
.leaderboard li { min-height: 40px; }.score-form { padding-top: 0; }.score-form small { color: #7c91a1; }

@media (max-width: 900px) {
  .screen--results { grid-template-columns: 1fr; gap: 1.6rem; align-content: start; }
  .results-main { max-width: 680px; }
  .leaderboard-card { width: min(680px,100%); padding: 1.4rem 0 0; border-left: 0; border-top: 1px solid rgba(28,74,111,.16); }
}
@media (max-width: 600px) {
  .screen--results { gap: 1.2rem; padding: 1.15rem 0 1.4rem; }
  .results-main h2 { font-size: 2.15rem; }
  .result-message { margin-top: .35rem; font-size: .86rem; }
  .score-hero { margin: .9rem 0 .7rem; padding: .8rem 0 .85rem; }
  .score-hero strong { font-size: 5.4rem; }
  .score-hero small { margin-top: .55rem; }
  .result-stats { margin-bottom: .9rem; padding-bottom: .9rem; }.result-stats div { padding: 0 .8rem; }.result-stats span { font-size: .61rem; }.result-stats strong { font-size: 1.18rem; }
  .result-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }.result-actions .primary-button { width: auto; min-width: 0; height: 52px; }.screen--results .secondary-button { width: auto; }
  .brand-signoff { margin-top: 1rem; padding-top: .85rem; font-size: .74rem; }
  .leaderboard-card { padding-top: 1.1rem; }
}

/* Simplified results and dedicated leaderboard */
.screen--results {
  grid-template-columns: minmax(0,560px);
  justify-content: center;
  align-content: center;
  padding: clamp(1.5rem,4vh,3rem) 0;
}
.results-main { width: 100%; max-width: 560px; text-align: center; }
.screen--results .score-hero { margin: 0 0 1.2rem; padding: 0 0 1.25rem; border-top: 0; }
.screen--results .score-hero > span { color: #4e7088; font-size: .76rem; font-weight: 760; letter-spacing: .15em; }
.screen--results .score-hero strong { margin: .5rem 0 0; font-size: clamp(7rem,14vw,10rem); line-height: .78; }
.screen--results .score-hero small { min-height: 1.1em; margin-top: 1rem; color: #247aa7; font-size: .84rem; font-weight: 720; }
.screen--results .score-hero small[hidden] { display: block; visibility: hidden; }
.screen--results .result-stats { margin: 0 0 1.3rem; padding: 0; border-bottom: 0; }
.screen--results .result-stats div { padding: .25rem 1rem; }.screen--results .result-stats span { font-size: .68rem; }.screen--results .result-stats strong { font-size: 1.55rem; }
.screen--results .result-actions { justify-content: center; margin-top: .2rem; }
.screen--results .result-actions .primary-button { min-width: 225px; }
.screen--results .brand-signoff { max-width: none; margin: 1.5rem 0 0; padding-top: 1rem; text-align: center; font-size: .74rem; }

.screen--leaderboard { grid-template-columns: minmax(0,680px); justify-content: center; align-content: center; padding: clamp(1.5rem,4vh,3rem) 0; }
.leaderboard-view { width: 100%; }
.leaderboard-view .leaderboard-card__head { padding-bottom: .8rem; }
.leaderboard-view .leaderboard-card__head h2 { margin: .2rem 0 0; font-size: clamp(2.2rem,4vw,3.5rem); line-height: 1; }
.leaderboard-note { max-width: 560px; margin: .8rem 0 1rem; color: #6d8395; font-size: .74rem; line-height: 1.5; }
.leaderboard-view .leaderboard { margin: 0 0 1rem; border-top: 1px solid rgba(28,74,111,.14); }
.leaderboard-view .leaderboard li { min-height: 48px; grid-template-columns: 34px 1fr auto; }
.leaderboard-name { display: flex; align-items: center; gap: .7rem; }.leaderboard-name small { padding: 3px 6px; border: 1px solid rgba(28,74,111,.14); border-radius: 4px; color: #6d8496; font-size: .54rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.leaderboard li.is-current .leaderboard-name small { color: #087eaf; border-color: #8acfe9; background: #e6f7fc; }
.leaderboard-view .score-form { max-width: 520px; }
.leaderboard-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(28,74,111,.14); }.leaderboard-actions .secondary-button { color: #456a83; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .screen--results { min-height: calc(100vh - 120px); align-content: center; padding: .8rem 0 1rem; }
  .screen--results .score-hero { margin-bottom: .8rem; padding-bottom: .9rem; }
  .screen--results .score-hero strong { font-size: min(27vw,7.6rem); }
  .screen--results .score-hero small { margin-top: .7rem; font-size: .76rem; }
  .screen--results .result-stats { margin-bottom: .9rem; }.screen--results .result-stats div { padding: .15rem .7rem; }.screen--results .result-stats strong { font-size: 1.25rem; }
  .screen--results .result-actions { display: grid; grid-template-columns: 1fr; gap: .25rem; }.screen--results .result-actions .primary-button { width: 100%; height: 52px; }.screen--results .result-actions .secondary-button { min-height: 38px; }
  .screen--results .brand-signoff { margin-top: .75rem; padding-top: .75rem; }
  .screen--leaderboard { align-content: start; padding: 1rem 0 1.5rem; }
  .leaderboard-view .leaderboard-card__head h2 { font-size: 2.25rem; }.leaderboard-note { margin: .6rem 0 .8rem; font-size: .68rem; }
  .leaderboard-view .leaderboard li { min-height: 43px; }.leaderboard-actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }.leaderboard-actions .primary-button { width: 100%; }.leaderboard-actions .secondary-button { width: 100%; }
}

/* Contained bird's-eye plates and small-device fit */
.plate--game,
.plate--decorative {
  aspect-ratio: auto;
  overflow: hidden;
}
.plate--game .well-grid,
.plate--decorative .decorative-grid {
  height: auto;
  aspect-ratio: 1;
}
.plate--decorative,
.plate--decorative:hover {
  transform: none;
}

@media (max-width: 430px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .brand-bar { height: 64px; }
  .screen--game { min-height: calc(100svh - 106px); padding: 8px 0 5px; }
  .instrument-hud { min-height: 86px; padding: 7px 8px; border-radius: 14px; }
  .instrument-hud .stat { min-height: 64px; padding: 0 10px; }
  .instrument-hud .stat strong { font-size: clamp(1.55rem,8vw,1.9rem); }
  .speed-strip { min-height: 40px; margin: 0; gap: 8px; font-size: .58rem; }
  .speed-segments { grid-template-columns: repeat(7,10px); gap: 2px; }
  .plate--game { width: min(100%,390px); padding: 62px 22px 20px 42px; }
  .plate--game .plate__label { left: 27px; right: 24px; top: 23px; }
  .column-labels { left: 42px; right: 22px; top: 47px; }
  .row-labels { left: 15px; top: 62px; bottom: 20px; }
  .well-grid { gap: 8px; }
  .game-hidden-data { gap: 8px; font-size: .42rem; }
  footer { min-height: 42px; }
  .plate--decorative { width: min(260px,70vw); padding: 36px 23px 20px; }
}

@media (max-height: 760px) and (max-width: 430px) {
  .brand-bar { height: 58px; }
  .screen--game { min-height: calc(100svh - 96px); }
  .instrument-hud { min-height: 78px; }
  .instrument-hud .stat { min-height: 58px; }
  .speed-strip { min-height: 34px; }
  .plate--game { width: min(82vw,330px); padding: 56px 20px 18px 38px; }
  .plate--game .plate__label { top: 20px; left: 24px; right: 22px; }
  .column-labels { left: 38px; right: 20px; top: 42px; }
  .row-labels { left: 13px; top: 56px; bottom: 18px; }
}

/* Roomier mobile gameplay */
@media (max-width: 430px) and (min-height: 761px) {
  .app-shell { padding-left: 10px; padding-right: 10px; }
  .screen--game { padding-top: 13px; padding-bottom: 7px; }
  .instrument-hud {
    min-height: 94px;
    margin-bottom: 10px;
    padding: 9px 10px;
    border-radius: 16px;
  }
  .instrument-hud .stat { min-height: 68px; padding: 0 11px; }
  .instrument-hud .stat strong { font-size: clamp(1.8rem,8.5vw,2.1rem); }
  .instrument-hud .stat strong small { font-size: .78rem; }
  .speed-strip {
    min-height: 43px;
    margin: 0 0 11px;
    gap: 10px;
    font-size: .62rem;
  }
  .speed-gauge { width: 36px; height: 21px; }
  .speed-segments { grid-template-columns: repeat(7,12px); gap: 3px; }
  .speed-segments i { height: 11px; }
  .game-layout { gap: 10px; }
  .plate--game {
    width: 100%;
    max-width: 410px;
    padding: 66px 18px 22px 39px;
    border-radius: 26px;
  }
  .plate--game::before { inset: 9px; border-radius: 19px; }
  .plate--game .plate__label { left: 26px; right: 22px; top: 24px; font-size: .48rem; }
  .plate--game .plate__label span:last-child { padding: 6px 7px; }
  .column-labels { left: 39px; right: 18px; top: 49px; font-size: .66rem; }
  .row-labels { left: 14px; top: 66px; bottom: 22px; font-size: .66rem; }
  .well-grid { gap: 10px; }
  .game-hidden-data { gap: 12px; margin-top: 2px; font-size: .46rem; }
}

/* Use the full phone height for a less compressed game */
@media (max-width: 430px) and (min-height: 761px) {
  .screen--game { padding-top: 26px; padding-bottom: 7px; }
  .instrument-hud {
    min-height: 102px;
    margin-bottom: 18px;
    padding: 12px 10px;
  }
  .instrument-hud .stat { min-height: 74px; }
  .instrument-hud .stat strong { font-size: clamp(1.95rem,9vw,2.2rem); }
  .speed-strip {
    min-height: 48px;
    margin: 0 0 18px;
    gap: 12px;
    font-size: .66rem;
  }
  .speed-gauge { width: 39px; height: 23px; }
  .speed-segments { grid-template-columns: repeat(7,13px); gap: 3px; }
  .speed-segments i { height: 12px; }
  .game-layout { gap: 14px; }
  .plate--game {
    padding: 74px 16px 30px 38px;
    border-radius: 27px;
  }
  .plate--game .plate__label { left: 25px; right: 20px; top: 27px; font-size: .5rem; }
  .plate--game .plate__label span:last-child { padding: 7px 8px; }
  .column-labels { left: 38px; right: 16px; top: 55px; font-size: .7rem; }
  .row-labels { left: 13px; top: 74px; bottom: 30px; font-size: .7rem; }
  .well-grid { gap: 11px; }
  .game-hidden-data { margin-top: 4px; font-size: .48rem; }
}

/* Precise vertical refinement: scoreboard position intentionally unchanged */
.plate--game .plate__label span { white-space: nowrap; }
.plate--game .plate__label span:last-child { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 430px) and (min-height: 761px) {
  .instrument-hud { margin-bottom: 28px; }
  .speed-strip { margin: 0 0 28px; }
  .plate--game {
    padding-top: 96px;
    padding-bottom: 36px;
  }
  .plate--game .plate__label {
    top: 28px;
    gap: 8px;
  }
  .plate--game .plate__label span:first-child { font-size: .47rem; }
  .plate--game .plate__label span:last-child {
    min-width: 108px;
    padding: 6px 7px;
    font-size: .43rem;
    text-align: center;
  }
  .column-labels { top: 68px; }
  .row-labels { top: 96px; bottom: 36px; }
  .game-hidden-data { margin-top: 5px; }
}
