/* Canopy Climb — styles. The review games' chrome (Science Tug of War's, renamed) in jungle colors: deep green,
   gold for the main action, raised things on a solid darker bottom edge. Readability floor for a Chromebook at
   arm's length or a projector: body 16px+, HUD 18px+, answers 18px+, the prompt 22-24px, tap targets 48px+. The
   match fits a 1366x768 window (about 1366x650 inside the browser) with no scrolling: the scene (whole-number pixel
   scale) fills the screen, the HUD sits over its top, the controls over its bottom, and the question panel slides
   up over the lower third. */
:root {
  --clb-page: #0b1a14;
  --clb-panel: #14281e;
  --clb-raised: #1f3b2c;
  --clb-raised-hover: #284a37;
  --clb-edge: #06100b;
  --clb-line: #2f5440;
  --clb-ink: #f2f5fc;
  --clb-muted: #b6cfc0;
  --clb-gold: #ffc53d;
  --clb-gold-edge: #b9820c;
  --clb-gold-ink: #1d1400;
  --clb-good: #3ddc97;
  --clb-good-bg: #10392c;
  --clb-bad: #ff8a8a;
  --clb-bad-bg: #401a22;
  --clb-me: #ffd34d;         /* YOU accent (always paired with a label or a shape) */
  --clb-them: #7fd3ff;       /* the other climber */
  --clb-focus: #7cc4ff;
  --clb-font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --clb-mono: 'DM Mono', ui-monospace, monospace;
}

.clb-body { margin: 0; color: var(--clb-ink); background: var(--clb-page); min-height: 100vh; font-size: 16px; line-height: 1.45; }
.clb-app { font-family: var(--clb-font); color: var(--clb-ink); background: var(--clb-page); padding: 20px 16px 40px; }
.clb-app *, .clb-app *::before, .clb-app *::after { box-sizing: border-box; }
.clb-app button, .clb-app input, .clb-app select { font: inherit; }
.clb-app button { cursor: pointer; }
.clb-app :where(button, a, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--clb-focus); outline-offset: 3px; }
.clb-app h1, .clb-app h2 { font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.clb-app h1 { font-size: 40px; line-height: 1.1; }
.clb-app h2 { font-size: 26px; }
.clb-app [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.clb-app kbd { padding: 0 6px; font: 500 14px/1.4 var(--clb-mono); color: inherit; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-bottom-width: 2px; border-radius: 6px; }
.clb-kicker { margin: 0 0 4px; color: var(--clb-muted); font-family: var(--clb-mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.clb-lede { font-size: 18px; color: var(--clb-muted); margin: 0 0 16px; }
.clb-hint { color: var(--clb-muted); margin: 4px 0 12px; }
.clb-msg { min-height: 1.45em; margin: 10px 0 0; color: var(--clb-gold); font-weight: 600; }
.clb-msg.is-bad { color: var(--clb-bad); }
.clb-card { background: var(--clb-panel); border: 2px solid var(--clb-line); border-radius: 14px; padding: 22px; }

/* While a match is on screen the game owns the viewport. */
body.clb-playing { overflow: hidden; }
body.clb-playing .tlg-header, body.clb-playing .tlg-footer, body.clb-playing .tlg-skip, body.clb-playing .tlg-overlay { display: none; }

.clb-screen { display: none; max-width: 1180px; margin: 0 auto; }
.clb-screen.is-active { display: block; }

/* ---- buttons ---------------------------------------------------------------------------------- */
.clb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 18px; color: var(--clb-ink); background: var(--clb-raised); box-shadow: 0 3px 0 var(--clb-edge); transition: transform .06s, box-shadow .06s, background .12s; }
.clb-btn:hover:not(:disabled) { background: var(--clb-raised-hover); }
.clb-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--clb-edge); }
.clb-btn:disabled { opacity: .55; cursor: not-allowed; }
.clb-btn-go { color: var(--clb-gold-ink); background: var(--clb-gold); box-shadow: 0 3px 0 var(--clb-gold-edge); }
.clb-btn-go:hover:not(:disabled) { background: #ffd162; }
.clb-btn-quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--clb-line); }
.clb-btn-quiet:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.clb-btn-bad { background: #8f2a35; box-shadow: 0 3px 0 #4d141b; }
.clb-btn-small { min-height: 40px; padding: 0 12px; font-size: 16px; }
.clb-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 18px; }

/* ---- title ------------------------------------------------------------------------------------ */
.clb-title-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .clb-title-grid { grid-template-columns: 1fr; } }
.clb-me { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 18px; background: rgba(0, 0, 0, .18); border-radius: 12px; }
.clb-me-av { width: 64px; height: 64px; flex: none; }
.clb-me-av canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.clb-me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.clb-me-label { color: var(--clb-muted); font-size: 15px; }
.clb-me-name { font-size: 22px; overflow-wrap: anywhere; }
.clb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .clb-modes { grid-template-columns: 1fr; } }
.clb-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; text-align: left; color: var(--clb-ink);
  background: var(--clb-raised); border: 0; border-radius: 12px; box-shadow: 0 3px 0 var(--clb-edge); min-height: 96px; }
button.clb-mode:hover:not(:disabled) { background: var(--clb-raised-hover); }
button.clb-mode:disabled { opacity: .6; cursor: not-allowed; }
.clb-mode-main { background: var(--clb-gold); color: var(--clb-gold-ink); box-shadow: 0 3px 0 var(--clb-gold-edge); }
button.clb-mode-main:hover:not(:disabled) { background: #ffd162; }
.clb-mode-title { font-size: 22px; font-weight: 800; }
.clb-mode-sub { font-size: 16px; opacity: .9; }
.clb-mode-row { display: flex; gap: 8px; margin-top: 6px; }
.clb-mode-row .clb-btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
.clb-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.clb-toggle { min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--clb-ink); background: transparent; border: 2px solid var(--clb-line); font-size: 16px; }
.clb-toggle strong { color: var(--clb-gold); }
.clb-how { margin-top: 16px; color: var(--clb-muted); }
.clb-how summary { cursor: pointer; color: var(--clb-ink); font-weight: 700; min-height: 32px; }
.clb-how ul { margin: 8px 0 0; padding-left: 20px; }
.clb-how li { margin: 4px 0; }

/* Lab Rating board (rows from games/shared/leaderboard.js; .lb-games is ours). */
.clb-board h2 { margin-bottom: 2px; }
.clb-lb-head { display: grid; grid-template-columns: 44px 1fr 70px 60px; gap: 8px; padding: 0 8px 6px; color: var(--clb-muted); font-size: 14px; border-bottom: 1px solid var(--clb-line); }
.clb-lb-head span:nth-child(n+3) { text-align: right; }
.clb-lb-body { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; min-height: 60px; }
.clb-lb-body .lb-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .16); font-size: 16px; }
.clb-lb-body .lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clb-lb-body .lb-pts { display: flex; gap: 8px; font-family: var(--clb-mono); }
.clb-lb-body .lb-rating { min-width: 56px; text-align: right; color: var(--clb-gold); font-weight: 600; }
.clb-lb-body .lb-games { min-width: 44px; text-align: right; color: var(--clb-muted); }
.clb-lb-you { margin: 10px 0 0; color: var(--clb-muted); }

/* ---- setup screens ---------------------------------------------------------------------------- */
.clb-narrow { max-width: 620px; margin: 0 auto; }
.clb-center { text-align: center; }
.clb-center .clb-actions { justify-content: center; }
.clb-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-weight: 600; border: 0; padding: 0; }
.clb-field select, .clb-field input { min-height: 48px; padding: 0 12px; color: var(--clb-ink); background: var(--clb-page); border: 2px solid var(--clb-line); border-radius: 10px; font-size: 18px; font-weight: 400; }
.clb-skill { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.clb-skill legend { width: 100%; margin-bottom: 6px; }
.clb-skill label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--clb-raised); border-radius: 10px; font-weight: 600; cursor: pointer; }
.clb-skill input { width: 20px; height: 20px; accent-color: var(--clb-gold); }
.clb-code-input { font-family: var(--clb-mono); font-size: 32px !important; letter-spacing: .2em; text-transform: uppercase; text-align: center; min-height: 64px !important; }
.clb-code { font-family: var(--clb-mono); color: var(--clb-gold); letter-spacing: .12em; font-size: 34px; }
.clb-big { font-size: 24px; font-weight: 700; margin: 8px 0; }
.clb-spinner { width: 56px; height: 56px; margin: 16px auto; border-radius: 50%; border: 6px solid var(--clb-line); border-top-color: var(--clb-gold); animation: clb-spin 1s linear infinite; }
@keyframes clb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .clb-spinner { animation-duration: 3s; } }

/* ---- lobby ------------------------------------------------------------------------------------ */
.clb-lobby { max-width: 900px; margin: 0 auto; }
.clb-lobby-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.clb-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 560px) { .clb-seats { grid-template-columns: 1fr; } }
.clb-seat-box { padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 2px solid var(--clb-line); }
.clb-seat { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 52px; }
.clb-seat-av { width: 48px; height: 48px; flex: none; }
.clb-seat-av canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.clb-seat-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.clb-seat-name small { display: block; font-weight: 400; color: var(--clb-muted); font-size: 14px; }
.clb-seat-empty { color: var(--clb-muted); font-style: italic; }
.clb-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .clb-settings { grid-template-columns: 1fr; } }

/* Practice spans both columns on the title. */
.clb-mode-wide { grid-column: 1 / -1; min-height: 72px; }

/* ---- match ------------------------------------------------------------------------------------ */
.clb-screen.clb-game { position: fixed; inset: 0; z-index: 50; max-width: none; margin: 0; background: #0d2a24; }
.clb-screen.clb-game.is-active { display: block; }
.clb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.clb-canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; touch-action: manipulation; }
.clb-overlays { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.clb-overlays > span { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.clb-tag { translate: -50% -100%; padding: 1px 8px; border-radius: 6px; font: 700 14px/1.4 var(--clb-mono); letter-spacing: .06em;
  background: rgba(6, 16, 11, .85); color: var(--clb-ink); border: 1px solid rgba(255, 255, 255, .3); }
.clb-tag.is-you { background: #fff; color: #0b1a14; border-color: #fff; }
.clb-tag.is-ghost { color: var(--clb-them); border-color: rgba(127, 211, 255, .5); }
.clb-edge { translate: -50% 0; padding: 1px 8px; border-radius: 6px; font: 700 16px/1.4 var(--clb-mono); color: var(--clb-them); background: rgba(6, 16, 11, .88); border: 1px solid rgba(127, 211, 255, .6); }
.clb-edge:not(.is-top) { translate: -50% -100%; }
.clb-edge.is-you { color: var(--clb-me); border-color: var(--clb-me); }
.clb-layer { translate: 0 -100%; padding: 1px 8px; border-radius: 6px; font: 700 16px/1.4 var(--clb-font); letter-spacing: .06em; text-transform: uppercase; color: var(--clb-ink); background: rgba(6, 16, 11, .62); }
.clb-pop { translate: -50% -100%; font: 800 22px/1 var(--clb-font); letter-spacing: .03em; text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, .6); }
.clb-pop.is-caught { color: var(--clb-gold); }
.clb-pop.is-tired { color: #e3e9f0; }

.clb-hud { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 8px 16px 18px; pointer-events: none;
  background: linear-gradient(rgba(6, 16, 11, .85), rgba(6, 16, 11, 0)); }
.clb-hud-side { display: flex; flex-direction: column; gap: 0; font-size: 20px; font-weight: 700; min-width: 0; }
.clb-hud-them { align-items: flex-end; text-align: right; }
.clb-hud-who { font-family: var(--clb-mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.clb-hud-me .clb-hud-who { color: var(--clb-me); }
.clb-hud-them .clb-hud-who { color: var(--clb-them); }
.clb-hud-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.clb-hud-name small { font-weight: 500; color: var(--clb-gold); font-family: var(--clb-mono); font-size: 16px; margin-left: 6px; }
.clb-hud-row { font: 600 18px var(--clb-mono); color: var(--clb-ink); }
.clb-hud-mid { text-align: center; }
.clb-timer { font: 700 36px/1 var(--clb-mono); color: var(--clb-ink); padding: 6px 14px; background: rgba(0, 0, 0, .45); border-radius: 10px; min-width: 120px; }
.clb-timer.is-low { color: var(--clb-gold); }
.clb-rows { margin-top: 4px; font-size: 17px; color: var(--clb-ink); min-height: 1.4em; text-shadow: 0 1px 2px #000; }

/* Stamina (10 leaf icons: dim = spent), streak, SUPER READY: under my name. */
.clb-meter { position: absolute; left: 16px; top: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.clb-stamina { display: flex; gap: 3px; padding: 6px 8px; border-radius: 10px; background: rgba(6, 16, 11, .7); }
.clb-leaf { width: 20px; height: 14px; border-radius: 0 12px 0 12px; background: #4fbf3f; box-shadow: inset 0 -3px 0 #2e8a2a; }
.clb-leaf.is-spent { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.clb-stamina { align-items: center; }
.clb-stamina-n { margin-left: 6px; min-width: 2ch; font: 700 18px/1 var(--clb-mono); color: var(--clb-ink); }
.clb-stamina.is-empty { box-shadow: 0 0 0 2px var(--clb-bad); }
.clb-stamina.is-empty .clb-stamina-n { color: var(--clb-bad); }
.clb-dots i { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 50%; border: 2px solid var(--clb-gold); vertical-align: -1px; }
.clb-dots i.is-on { background: var(--clb-gold); }
.clb-hud-layer { color: var(--clb-good); font-family: var(--clb-font); font-size: 17px; }
.clb-streak { padding: 2px 10px; border-radius: 8px; background: rgba(6, 16, 11, .7); font: 600 16px var(--clb-mono); color: var(--clb-gold); min-height: 0; }
.clb-streak:empty { display: none; }
.clb-super { padding: 4px 12px; border-radius: 8px; font: 800 20px/1.3 var(--clb-font); letter-spacing: .04em; color: var(--clb-gold-ink); background: var(--clb-gold); box-shadow: 0 3px 0 var(--clb-gold-edge); animation: clb-pulse 1s ease-in-out infinite; }
.clb-super kbd { font-size: 13px; }
@keyframes clb-pulse { 50% { transform: scale(1.06); } }
.clb-banner { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 10px; font: 800 26px/1.3 var(--clb-font); letter-spacing: .04em; color: #22070a; background: #ff8a8a; box-shadow: 0 3px 0 #8f2a35; pointer-events: none; white-space: nowrap; }
.clb-banner.is-good { color: var(--clb-gold-ink); background: var(--clb-gold); box-shadow: 0 3px 0 var(--clb-gold-edge); }

/* Controls: Answer + Super bottom right (keyboard players); on touch screens also run buttons bottom left and a big
   JUMP bottom right (all 56px+). */
.clb-controls { position: absolute; right: 16px; bottom: 60px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 170px; }
.clb-ctl { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 12px; color: var(--clb-ink); background: rgba(31, 59, 44, .92);
  box-shadow: 0 3px 0 var(--clb-edge); font: 800 20px/1 var(--clb-font); touch-action: none; user-select: none; -webkit-user-select: none; }
.clb-ctl kbd { font-size: 12px; padding: 0 4px; }
.clb-ctl span { line-height: 1; }
.clb-ctl.is-on { background: #fff; color: #0b1a14; }
.clb-ctl:disabled { opacity: .45; cursor: not-allowed; }
.clb-ctl-jump { display: none; background: var(--clb-gold); color: var(--clb-gold-ink); box-shadow: 0 3px 0 var(--clb-gold-edge); min-height: 76px; font-size: 24px; }
.clb-ctl-ask { background: #2f7fd1; box-shadow: 0 3px 0 #164a80; }
.clb-ctl-ask.is-empty:not(:disabled) { outline: 3px solid var(--clb-gold); outline-offset: 2px; animation: clb-pulse 1.2s ease-in-out infinite; }
.clb-ctl-ask.is-pulse { animation: clb-pulse .35s ease-in-out 4; }
.clb-ctl-ask.is-waiting { opacity: .75; }
.clb-ctl-super:not(:disabled) { background: #ffb000; color: #241500; box-shadow: 0 3px 0 #8a5c00; }
.clb-pad { position: absolute; left: 16px; bottom: 60px; display: none; gap: 10px; }
.clb-ctl-move { width: 76px; min-height: 76px; font-size: 30px; }
body.clb-touch .clb-pad { display: flex; }
body.clb-touch .clb-ctl-jump { display: flex; }
body.clb-touch .clb-aimtext { display: none; }
body.clb-touch .clb-feedback { bottom: 150px; }
body.clb-touch .clb-quit { left: auto; right: 200px; }
@media (prefers-reduced-motion: reduce) { .clb-ctl-ask.is-empty:not(:disabled), .clb-ctl-ask.is-pulse { animation: none; } }
.clb-aimtext { position: absolute; right: 16px; bottom: 22px; margin: 0; font-size: 16px; color: var(--clb-ink); text-shadow: 0 1px 2px #000; text-align: right; max-width: 560px; pointer-events: none; }
.clb-aimtext kbd { font-size: 13px; }
.clb-quit { position: absolute; left: 16px; bottom: 12px; min-height: 40px; padding: 0 14px; border-radius: 8px; color: var(--clb-muted); background: rgba(6, 16, 11, .75); border: 1px solid var(--clb-line); font-size: 15px; }
.clb-quit:hover { color: var(--clb-ink); }
.clb-feedback { position: absolute; left: 16px; bottom: 60px; margin: 0; max-width: min(560px, 60vw); padding: 0; font-size: 18px; font-weight: 700; text-shadow: 0 1px 2px #000; pointer-events: none; }
.clb-feedback.is-good { color: var(--clb-good); }
.clb-feedback.is-bad { color: #ffd0d0; padding: 8px 12px; border-radius: 10px; background: var(--clb-bad-bg); border: 2px solid var(--clb-bad); text-shadow: none; }
.clb-afk { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); margin: 0; color: #fff; background: #8f2a35; border-radius: 8px; padding: 2px 12px; font-weight: 700; pointer-events: none; }
.clb-afk:empty { display: none; }

/* Question panel: slides up over the lower third. */
.clb-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px 16px; background: rgba(20, 40, 30, .97); border-top: 3px solid var(--clb-line);
  transform: translateY(105%); transition: transform .18s ease-out; max-height: 46%; overflow: auto; }
.clb-panel.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .clb-panel { transition: none; } }
.clb-q-meta { display: flex; gap: 14px; align-items: center; min-height: 24px; color: var(--clb-muted); font-family: var(--clb-mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.clb-q-timer { margin-left: auto; color: var(--clb-gold); }
.clb-prompt { margin: 4px 0 10px; font-size: 24px; font-weight: 600; line-height: 1.3; max-width: 1100px; }
.clb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 1100px; }
.clb-options.is-tf { max-width: 640px; }
.clb-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; text-align: left; font-size: 19px; color: var(--clb-ink); background: var(--clb-raised); border: 0; border-radius: 10px; box-shadow: 0 3px 0 var(--clb-edge); line-height: 1.25; }
.clb-opt:hover:not(:disabled) { background: var(--clb-raised-hover); }
.clb-opt:disabled { cursor: default; }
.clb-opt kbd { flex: none; }
.clb-panel.is-locked .clb-opt, .clb-panel.is-locked .clb-typed { opacity: .55; }
.clb-typed { display: flex; gap: 10px; max-width: 760px; }
.clb-input { flex: 1; min-height: 52px; padding: 0 14px; font-size: 20px; color: var(--clb-ink); background: var(--clb-page); border: 2px solid var(--clb-line); border-radius: 10px; }

.clb-intro { pointer-events: none; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; background: rgba(6, 16, 11, .88); }
.clb-intro-side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 200px; }
.clb-intro-avs canvas { image-rendering: pixelated; }
.clb-intro-name { font-size: 24px; font-weight: 800; text-align: center; }
.clb-intro-rating { font: 600 20px var(--clb-mono); color: var(--clb-gold); }
.clb-intro-who { font: 700 15px var(--clb-mono); letter-spacing: .1em; }
#intro-me .clb-intro-who { color: var(--clb-me); }
#intro-them .clb-intro-who { color: var(--clb-them); }
.clb-vs { font: 900 56px var(--clb-font); color: var(--clb-gold); }
.clb-go { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 96px var(--clb-font); color: var(--clb-gold); background: rgba(6, 16, 11, .6); text-shadow: 0 6px 0 var(--clb-gold-edge); }

.clb-results { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(6, 16, 11, .55); padding: 16px; overflow-y: auto; }
.clb-results-card { width: min(580px, 100%); text-align: center; margin: auto 0; }
.clb-results-card > h2 { font-size: 40px; }
.clb-res-how { font-size: 20px; color: var(--clb-muted); margin: 0 0 12px; }
.clb-res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.clb-res-stats div { padding: 10px 6px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.clb-res-stats dt { color: var(--clb-muted); font-size: 15px; }
.clb-res-stats dd { margin: 0; font: 700 24px var(--clb-mono); }
.clb-res-stats dd.is-word { font: 700 18px/1.35 var(--clb-font); }
.clb-res-reward { font-size: 18px; margin: 14px 0 0; min-height: 1.4em; }
.clb-res-reward strong { color: var(--clb-gold); }
.clb-results .clb-actions { justify-content: center; }

.clb-dialog { max-width: 460px; padding: 22px; color: var(--clb-ink); background: var(--clb-panel); border: 2px solid var(--clb-line); border-radius: 14px; font-family: var(--clb-font); }
.clb-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.clb-dialog h2 { margin-top: 0; }

/* Short windows (a Chromebook at 1366x768 with the browser bar): a little tighter. */
@media (max-height: 700px) {
  .clb-prompt { font-size: 22px; margin-bottom: 8px; }
  .clb-opt { min-height: 48px; font-size: 18px; }
  .clb-timer { font-size: 30px; }
  .clb-controls { bottom: 56px; }
  .clb-meter { top: 90px; }
}
@media (max-width: 760px) {
  .clb-options { grid-template-columns: 1fr; }
  .clb-intro { flex-direction: column; gap: 12px; }
  .clb-controls { right: 8px; width: 140px; }
  .clb-pad { left: 8px; }
  .clb-res-stats { grid-template-columns: repeat(2, 1fr); }
}
