:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d12;
  color: #f3f5f7;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(52, 211, 153, .17), transparent 32rem),
    #0b0d12;
}

main { width: min(1180px, 94vw); margin: 0 auto; padding: 34px 0 48px; }

header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brandLogo { display: inline-block; position: relative; width: 64px; height: 64px; flex: 0 0 auto; border: 3px solid #55d9bc; border-radius: 16px; background: #101b26; box-shadow: inset 0 -6px 0 #1b3945; }
.brandEye { position: absolute; width: 58%; height: 36%; top: 30%; left: 21%; border: 2px solid #55d9bc; border-radius: 70% 20% 70% 20%; transform: rotate(45deg); }
.brandEye::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #40c8ff; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.brandFocus { position: absolute; width: 18%; height: 18%; top: 10%; right: 10%; border-top: 2px solid #40c8ff; border-right: 2px solid #40c8ff; border-radius: 0 3px 0 0; }
.brandDomain { color: #55d9bc; font-size: .55em; font-weight: 500; }
.brandTagline { margin: 5px 0 0; max-width: 420px; color: #bdcbd3; font-size: .88rem; line-height: 1.5; }
.guideBrand { display: inline-flex; align-items: center; gap: 10px; }
.guideBrand .brandLogo { width: 40px; height: 40px; border-radius: 10px; }
.guideBrand .brandEye::after { width: 6px; height: 6px; }
@media (max-width: 480px) { .brand { gap: 10px; }.brand h1 { font-size: 1.8rem; }.brandLogo { width: 48px; height: 48px; }.brandTagline { max-width: 260px; font-size: .8rem; } }
.accountBar { display: flex; justify-content: flex-end; gap: 16px; font-size: .9rem; }
.accountBar a { color: #7fdcff; text-decoration: none; }
.accountBar a:hover { text-decoration: underline; }
h1 { margin: 0; font-size: 2.35rem; }
.eyebrow { margin: 0; color: #53e6a6; font: 700 .72rem/1.4 ui-monospace, monospace; letter-spacing: .13em; }
.subtitle, .note { color: #aeb7c4; margin: 0; }
.badge { padding: 8px 12px; border: 1px solid #303744; border-radius: 999px; color: #d7dde5; white-space: nowrap; }

.viewer {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  border: 1px solid #29303b;
  border-radius: 16px;
  background: #050607;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

#source { display: none; }
#output { display: block; width: 100%; height: 100%; object-fit: contain; }
#emptyState { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: #cbd2db; }
#emptyState span { color: #7f8997; }

/* ------------------------------------------------------------ game */
.gameBar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 4px; }
button.play {
  padding: 12px 22px; border: 0; border-radius: 12px; font-weight: 800; font-size: 1.05rem; color: #07121a;
  background: linear-gradient(135deg, #40c8ff, #46e08f); box-shadow: 0 8px 28px rgba(64, 200, 255, .28);
}
button.play.stop { background: #2a313c; color: #eef1f4; box-shadow: none; }
.player { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #303744; border-radius: 999px; background: #11151b; color: #d7dde5; font-weight: 700; font-size: .9rem; }
.chip .mini { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: #262d38; overflow: hidden; }
.chip .mini b { display: block; height: 100%; background: linear-gradient(90deg, #40c8ff, #46e08f); }

.gameHud { position: absolute; inset: 0; pointer-events: none; font-family: ui-sans-serif, system-ui, sans-serif; }
/* Kept faint so that the keyboard behind it stays visible. */
.hudTop { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; opacity: .55; }
.hudScore, .hudCombo, .hudTime { padding: 4px 10px; border-radius: 10px; background: rgba(5, 10, 18, .3); }
.hudScore span { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #8b95a3; }
.hudScore strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #ffe066; }
.hudCombo { text-align: center; min-width: 64px; }
.hudCombo strong { display: block; font-size: 1.15rem; color: #7fdcff; transition: transform .15s; }
.hudCombo strong[data-level="2"] { color: #46e08f; }
.hudCombo strong[data-level="3"] { color: #ffe066; }
.hudCombo strong[data-level="4"] { color: #ff9f43; }
.hudCombo strong[data-level="5"] { color: #ff5ad8; text-shadow: 0 0 14px rgba(255, 90, 216, .8); }
.hudCombo span { font-size: .62rem; color: #aeb7c4; }
.hudProgress { flex: 1 1 auto; max-width: 420px; margin: 0 auto; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hudProgress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #40c8ff, #46e08f); transition: width .2s; }
.hudTime { font: 700 .9rem ui-monospace, monospace; color: #d7dde5; }
.hudText {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: 78%;
  padding: 10px 18px; border-radius: 14px; background: rgba(5, 10, 18, .78); backdrop-filter: blur(6px);
  font: 700 clamp(1.1rem, 2.6vw, 2rem)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; color: #6f7986;
}
.hudText .current { color: #07121a; background: #40c8ff; border-radius: 5px; box-shadow: 0 0 16px rgba(64, 200, 255, .7); }
.hudText .correct { color: #46e08f; }
.hudText .pending { color: #d7dde5; }
.hudText .unverified { color: #c9ced6; }
.hudText .wrong-finger, .hudText .wrong-key { color: #ff6b6b; text-decoration: underline wavy #ff6b6b; }
.hudFingers { position: absolute; right: 14px; bottom: 14px; width: min(220px, 24%); padding: 8px; border-radius: 14px; background: rgba(5, 10, 18, .72); }
.hudFingers svg { display: block; width: 100%; }
.hudFingers .palm { fill: #1b2129; }
.hudFingers .finger { fill: #2e3642; transition: fill .12s; }
.hudFingers .finger.target { fill: #40c8ff; filter: drop-shadow(0 0 5px #40c8ff); }
.hudFingers .finger.good { fill: #46e08f; }
.hudFingers .finger.bad { fill: #ff5a5a; }
.hudFingers .handLabel { fill: #5c6673; font: 700 14px ui-sans-serif, system-ui; text-anchor: middle; }
.hudToast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font: 900 clamp(2rem, 7vw, 5rem)/1 ui-sans-serif, system-ui, sans-serif; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.hudToast.show { animation: toast .9s ease-out forwards; }
.hudToast.count { color: #7fdcff; }
.hudToast.go { color: #46e08f; }
.hudToast.combo { color: #ffe066; }
.hudToast.lost { color: #ff6b6b; font-size: clamp(1.4rem, 4vw, 2.6rem); }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

.gameScreen { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: rgba(5, 8, 12, .62); backdrop-filter: blur(3px); }
.gameCard { width: min(760px, 100%); padding: 22px 26px; border: 1px solid #2c3440; border-radius: 18px; background: rgba(15, 19, 25, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center; position: relative; }
.gameCard h2 { margin: 0 0 6px; font-size: 1.8rem; letter-spacing: -.02em; }
.gameCard h3 { margin: 14px 0 6px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8b95a3; }
.gameCard .hint { color: #aeb7c4; margin: 4px 0 12px; }
.gameCard .hint.small { font-size: .82rem; color: #7f8997; margin: 10px 0 0; }
.soundTest { padding: 3px 9px; margin-left: 4px; border-radius: 7px; font-size: .8rem; }
.menuCard { width: min(1060px, 100%); text-align: left; padding: 16px 20px; }
.menuCard h2 { font-size: 1.5rem; margin-bottom: 2px; }
.menuHead { text-align: center; margin-bottom: 10px; }
.menuHead .hint { margin-bottom: 0; }
.menuLayout { display: grid; grid-template-columns: minmax(250px, 310px) 1fr; gap: 20px; align-items: start; }
.menuLayout > section > h3 { margin: 0 0 6px; }
.menuCard .hint.small { margin-top: 8px; }
.todayPanel { display: grid; gap: 10px; }
.levelGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.levelCard { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 14px; position: relative;
  background: #171c24; border: 1px solid #2c3440; color: #eef1f4; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.levelCard:hover:not(.locked) { border-color: #40c8ff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(64, 200, 255, .14); }
.levelCard:focus-visible, .leaderboardRow:focus-visible { outline: 2px solid #7fdcff; outline-offset: 2px; }
.levelCard.locked { opacity: .5; }
.levelCard.locked:hover { opacity: .7; }
.levelCard small { color: #8b95a3; }
.levelCard.next { border-color: #40c8ff; box-shadow: 0 0 0 1px rgba(64, 200, 255, .35), 0 8px 26px rgba(64, 200, 255, .16); }
/* The call to action makes each card read as a button. */
.cta { margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: #40c8ff; color: #07121a; font-weight: 800; font-size: .82rem; }
.levelCard:not(.modeCard):not(.next):not(:hover) .cta:not(.unlockCta) { background: #24303c; color: #cfe6f2; }
.cardFoot { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; }
.cardFoot .cta { margin: 0 0 0 auto; }
.levelCard small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.unlockCta { background: #3a3120; color: #ffd27a; }
.cardTag { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #ffd23f; color: #1a1400;
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nextTag { background: #40c8ff; color: #07121a; }
.modeCard { border-color: #34503d; background: linear-gradient(135deg, rgba(70, 224, 143, .12), rgba(64, 200, 255, .07)); }
.modeCard .cta, .modeCard:hover .cta { background: #46e08f; color: #062014; }
.modeCard.locked .cta { display: none; }
.modeCard kbd { font-size: .8rem; }
.dailyCard { padding: 16px; border-color: #46e08f; }
.dailyCard strong { font-size: 1.15rem; }
.dailyCard.fresh { box-shadow: 0 0 0 1px rgba(70, 224, 143, .35), 0 10px 30px rgba(70, 224, 143, .16); }
.dailyCard:not(.fresh) .cardTag { background: #2c3440; color: #aeb7c4; }
.leaderboardRow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid #5a4b1f; background: rgba(255, 210, 63, .08); color: #ffe9a0; font-weight: 700; text-align: left; cursor: pointer; }
.leaderboardRow:hover { border-color: #ffd23f; }
.leaderboardRow small { color: #c9b27a; font-weight: 500; }
@media (max-width: 900px) {
  .menuLayout { grid-template-columns: 1fr; }
  .levelGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.levelNumber { font: 800 .8rem ui-monospace, monospace; color: #40c8ff; }
.levelCard .best { font-size: .78rem; color: #aeb7c4; }
.stars i, .bigStars i { font-style: normal; color: #39414d; }
.stars i.on { color: #ffd23f; }
.bigStars { font-size: 3.2rem; letter-spacing: .1em; }
.bigStars i.on { color: #ffd23f; display: inline-block; animation: starPop .5s ease-out backwards; text-shadow: 0 0 18px rgba(255, 210, 63, .6); }
@keyframes starPop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); } }
.bigScore { font: 900 3rem/1.1 ui-sans-serif, system-ui; color: #ffe066; font-variant-numeric: tabular-nums; }
.perfect { color: #ff5ad8; font-weight: 800; margin: 2px 0; }
.ribbon { position: absolute; top: 14px; right: -8px; padding: 6px 14px; background: #ff5ad8; color: #fff; font-weight: 800; border-radius: 6px 0 0 6px; box-shadow: 0 6px 18px rgba(255, 90, 216, .4); }
.statGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.statGrid div { padding: 10px; border-radius: 12px; background: #171c24; }
.statGrid strong { display: block; font-size: 1.5rem; }
.statGrid span { font-size: .74rem; color: #8b95a3; }
.fingerRows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; text-align: left; }
.fingerRow { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 8px; font-size: .85rem; color: #c4cbd4; }
.fingerRow b { font-weight: 600; color: #8b95a3; text-align: right; }
.bar { height: 8px; border-radius: 4px; background: #262d38; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #40c8ff, #46e08f); }
.bar i.good { background: #46e08f; }
.bar i.fair { background: #ffd23f; }
.bar i.weak { background: #ff6b6b; }
.missed { margin: 12px 0 0; color: #d7dde5; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid #3a4352; border-bottom-width: 3px; border-radius: 6px; background: #1b2129; font: 700 .85em ui-monospace, monospace; color: #eef1f4; }
.xpLine { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 14px; font-size: .85rem; color: #c4cbd4; }
.unlock { color: #46e08f; font-weight: 800; margin: 10px 0 0; }
.actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.actions kbd { margin-left: 6px; font-size: .75em; }

details.debug { display: flex; flex-wrap: wrap; gap: 10px 14px; color: #c4cbd4; }
details.debug summary { cursor: pointer; color: #8b95a3; }
details.debug[open] { display: flex; }
details.debug[open] summary { width: 100%; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0; }
.advanced { margin-top: 22px; border-top: 1px solid #29303b; padding-top: 12px; }
.advanced > summary { color: #aeb7c4; cursor: pointer; font-size: .9rem; }
.advancedControls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0; }
button, .fileButton {
  appearance: none;
  border: 1px solid #343c48;
  border-radius: 9px;
  background: #171b22;
  color: #eef1f4;
  padding: 10px 15px;
  font: inherit;
  cursor: pointer;
}
button.primary { background: #36d58e; border-color: #36d58e; color: #07120d; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .42; }
.fileButton input { display: none; }
.check, .slider, .select { display: flex; align-items: center; gap: 8px; color: #c4cbd4; }
.select select { background: #171b22; color: #eef1f4; border: 1px solid #343c48; border-radius: 7px; padding: 6px 8px; font: inherit; }
.timing { margin: 10px 0 0; color: #818b98; font: .82rem/1.4 ui-monospace, monospace; }
code { color: #d7dde5; }
.slider { margin-left: auto; }
.slider input { width: 150px; accent-color: #43dd98; }
.slider output { min-width: 3ch; color: #fff; font-variant-numeric: tabular-nums; }

.metrics { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.metrics div { padding: 14px 16px; border: 1px solid #272e38; border-radius: 11px; background: #11151b; }
.metrics span { display: block; margin-bottom: 5px; color: #818b98; font-size: .77rem; text-transform: uppercase; letter-spacing: .07em; }
.metrics strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.status { margin: 16px 0 6px; color: #d7dde5; }
.status.error { color: #ff8f8f; }
.note { font-size: .87rem; line-height: 1.55; }
@media (max-width: 600px) { h1 { font-size: 2rem; } .accountBar { width: 100%; justify-content: flex-start; } }

@media (max-width: 700px) {
  main { width: 96vw; padding-top: 20px; }
  header { align-items: start; flex-direction: column; }
  .viewer { min-height: 250px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .slider { width: 100%; margin-left: 0; }
}

/* Onboarding */
.helpNav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.helpNav a, .helpNav button { color: #d9e7ef; font-size: .9rem; text-decoration: none; padding: 8px 10px; border: 1px solid #354250; border-radius: 6px; background: #151c23; }
.helpNav a:hover, .helpNav button:hover { border-color: #55d9bc; color: #fff; }
.tourDialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; border: 1px solid #40505d; border-radius: 8px; background: #10171e; color: #f3f5f7; box-shadow: 0 24px 90px #000b; }
.tourDialog::backdrop { background: #02070cba; }
.tourCamera { position: relative; aspect-ratio: 16 / 9; margin-bottom: 18px; background: #050607; border: 1px solid #40505d; overflow: hidden; }
.tourCamera canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.tourTrackingStatus { color: #bdcbd3; font-size: .85rem; line-height: 1.5; min-height: 1.5em; }
.tourCameraState { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: #050607; color: #d7dde5; text-align: center; }
.tourCameraState[hidden] { display: none; }
.tourCameraState button { border-radius: 6px; }
.tourHeader, .tourActions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tourProgress { color: #71dcb8; font-size: .8rem; font-weight: 700; }
.tourClose { width: 34px; height: 34px; padding: 0; font-size: 1.5rem; line-height: 1; }
.tourMeter { height: 4px; margin: 14px 0 22px; background: #303c46; border-radius: 2px; overflow: hidden; }
.tourMeter span { display: block; height: 100%; background: #55d9bc; transition: width .2s; }
.tourDialog h2 { margin: 0 0 10px; font-size: 1.45rem; }
.tourCopy { margin: 0 0 18px; color: #bdcbd3; line-height: 1.55; }
.tourExercise { min-height: 120px; }
.tourPrompt { margin: 0 0 10px; font-weight: 700; }
.tourChoices { display: grid; gap: 8px; }
.tourChoices button { text-align: left; border-radius: 6px; }
.tourChoices button.selected { border-color: #55d9bc; background: #16392f; }
.tourKeys { display: flex; gap: 14px; justify-content: center; }
.tourKeys [data-key] { width: min(42%, 160px); aspect-ratio: 1.5; display: grid; justify-items: center; align-content: center; gap: 6px; border: 1px solid #40505d; border-radius: 6px; }
.tourKeys [data-key].expected { border-color: #40c8ff; box-shadow: inset 0 0 0 1px #40c8ff; }
.tourKeys [data-key].done { border-color: #55d9bc; background: #16392f; }
.tourExercise [data-skip-fingers] { display: block; margin: 12px auto 0; font-size: .85rem; }
.tourKeys kbd { font-size: 1.8rem; min-width: 2em; }
.tourKeys small { color: #b8c8d2; }
.tourSample { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.tourSample span { min-width: 92px; padding: 8px 10px; border-radius: 6px; font: 700 1.3rem ui-monospace, monospace; }
.tourSample small { display: block; margin-top: 3px; font: 500 .7rem ui-sans-serif, system-ui; }
.tourSampleTarget { background: #245f7a; }.tourSampleCorrect { background: #1b694d; }.tourSamplePending { background: #36414b; }
.tourFinish { padding: 16px; border-left: 3px solid #55d9bc; background: #18252c; color: #c9d8df; line-height: 1.5; }
.tourFeedback { min-height: 1.5em; color: #87e4c6; font-size: .9rem; }
.tourActions { justify-content: flex-end; margin-top: 8px; }
.tourActions .primary { min-width: 145px; }
@media (max-width: 600px) { .tourDialog { padding: 16px; } .tourCamera { margin-bottom: 14px; } }

.guidePage { width: min(960px, calc(100% - 32px)); }
.guideHeader { border-bottom: 1px solid #2c3943; padding-bottom: 16px; }
.guideBrand { font-size: 1.1rem; font-weight: 800; color: #f3f5f7; text-decoration: none; }
.guideTourLink { background: #36d58e !important; border-color: #36d58e !important; color: #07120d !important; font-weight: 700; }
.guideIntro { max-width: 700px; padding: 36px 0 22px; }
.guideIntro h1 { margin: 8px 0 16px; }
.guideIntro > p:last-child { color: #bbc8d1; line-height: 1.6; font-size: 1.05rem; }
.guideSection { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid #2c3943; }
.guideSectionHead { display: flex; align-items: baseline; gap: 13px; }
.guideSectionHead span { color: #55d9bc; font: 700 .8rem ui-monospace, monospace; }
.guideSectionHead h2 { font-size: 1.1rem; margin: 0; }
.guideSectionBody p { margin: 0 0 16px; color: #bdcbd3; line-height: 1.6; }
.guideSectionBody strong { color: #f3f5f7; }
.guideView { padding: 16px; margin: 16px 0; border: 1px solid #315865; border-radius: 6px; background: #11242b; }
.guideViewLabel { color: #75d8cc; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.guideBoard { display: grid; gap: 5px; margin: 15px auto 10px; width: min(100%, 430px); padding: 12px; border: 1px solid #45616d; border-radius: 6px; background: #1d3039; text-align: center; font: 700 .9rem ui-monospace, monospace; white-space: nowrap; }
.guideBoard span { color: #c1d1d9; }.guideBoard b { color: #07120d; background: #55d9bc; padding: 2px 4px; border-radius: 3px; }
.guideHands { display: flex; justify-content: space-around; color: #88adbc; font-size: .8rem; }
.guideKeyPair { display: flex; gap: 12px; margin: 18px 0; }
.guideKeyPair div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #394853; border-radius: 6px; }
.guideKeyPair kbd { font-size: 1.5rem; }.guideKeyPair span { color: #b8c8d2; font-size: .85rem; }
.guideLegend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-bottom: 16px; }
.guideLegend > div { position: relative; padding-left: 24px; }
.guideLegend p { margin: 4px 0 0; font-size: .88rem; }
.guideSwatch { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 3px; }
.guideSwatch.target { background: #40c8ff; }.guideSwatch.correct { background: #46e08f; }.guideSwatch.uncertain { background: #c9ced6; }.guideSwatch.wrong { background: #ff6b6b; }
.guideActions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.guideActions a { color: #85dbf3; text-decoration: none; padding: 8px 10px; }
@media (max-width: 700px) { .helpNav { margin-left: 0; }.guideSection { grid-template-columns: 1fr; gap: 12px; }.guideIntro { padding-top: 24px; }.guideLegend { grid-template-columns: 1fr; }.guideBoard { font-size: .68rem; } }

/* Subscription prompt */
.paywallDialog p { color: #bdcbd3; line-height: 1.55; }
.paywallPlans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.paywallPlan { display: grid; gap: 4px; padding: 14px; border: 1px solid #40505d; border-radius: 6px; background: #151c23; }
.paywallPlan span { color: #b8c8d2; font-size: .85rem; }
.paywallPlan strong { font-size: 1.4rem; }
.paywallNote { font-size: .9rem; }
.paywallActions { justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.paywallActions .button { padding: 8px 14px; border: 1px solid #354250; border-radius: 6px; background: #151c23; color: #d9e7ef; text-decoration: none; }
.paywallActions .button.primary { border-color: #55d9bc; background: #16392f; color: #f3f5f7; }

/* Finger check reminder during a round */
.hudCheck { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(580px, 88%);
  display: grid; gap: 4px; padding: 10px 16px; border: 1px solid #ffb84d; border-radius: 12px; background: rgba(40, 26, 4, .88);
  color: #ffe2b0; font: .88rem/1.4 ui-sans-serif, system-ui, sans-serif; text-align: center; }
.hudCheck[hidden] { display: none; }
.hudCheck strong { color: #ffd27a; font-size: 1rem; }
.checkNote { margin: 10px auto; max-width: 460px; padding: 8px 12px; border: 1px solid #ffb84d; border-radius: 8px; background: #2a1c05; color: #ffe2b0; font-size: .9rem; }
@media (max-width: 600px) { .hudCheck { top: 46px; font-size: .78rem; padding: 8px 10px; } }

/* Why presses were not checked (results screen) */
.unverifiedWhy { margin: 10px auto 0; max-width: 480px; text-align: left; font-size: .88rem; color: #c9ced6; }
.unverifiedWhy h3 { margin: 0 0 4px; font-size: .9rem; }
.unverifiedWhy ul { margin: 0; padding-left: 18px; }
.unverifiedWhy span { color: #8b95a3; }

/* Leaderboard */
.leaderboardTabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.leaderboardTabs button { border-radius: 999px; font-size: .85rem; padding: 6px 12px; }
.leaderboardTabs button[aria-selected="true"] { border-color: #55d9bc; background: #16392f; }
.leaderboardBody { min-height: 140px; }
.leaderboardList { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.leaderboardList li { display: grid; grid-template-columns: 2.5em 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; background: #151c23; }
.leaderboardList li:nth-child(-n+3) span:first-child { color: #ffe066; font-weight: 700; }
.leaderboardList li.you { outline: 1px solid #55d9bc; background: #16392f; }
.leaderboardList strong { font-variant-numeric: tabular-nums; }
.leaderboardEmpty { color: #bdcbd3; margin: 12px 0 0; }
.leaderboardNote { margin: 14px 0 0; color: #7f8997; font-size: .8rem; }
