:root {
  color-scheme: dark;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --night: #050b22;
  --navy: #081538;
  --panel: rgba(10, 20, 54, .9);
  --cream: #fff7df;
  --ink: #f9f8f2;
  --muted: #b9c1db;
  --cyan: #44e5ee;
  --blue: #238ce8;
  --violet: #a679ff;
  --coral: #ff6e65;
  --gold: #ffd56b;
  --line: rgba(194, 220, 255, .2);
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); }
body { margin: 0; min-width: 320px; min-height: 100dvh; color: var(--ink); background: var(--night); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.junior-screen {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 16% 18%, rgba(27, 204, 224, .16), transparent 26%),
    radial-gradient(circle at 83% 30%, rgba(158, 89, 255, .2), transparent 31%),
    linear-gradient(165deg, #04091d 12%, #07163c 58%, #07102e);
}

.star-field,
.junior-screen::before,
.junior-screen::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; }
.star-field {
  opacity: .55;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(68,229,238,.9) 0 1px, transparent 1.6px);
  background-position: 0 0, 18px 27px;
  background-size: 67px 67px, 97px 97px;
  mask-image: linear-gradient(#000, rgba(0,0,0,.4));
}
.junior-screen::before { background: linear-gradient(124deg, transparent 32%, rgba(68,229,238,.055) 46%, rgba(166,121,255,.08) 53%, transparent 68%); transform: skewY(-8deg); }
.junior-screen::after { z-index: -1; background: radial-gradient(ellipse at 50% 105%, rgba(24, 126, 191, .21), transparent 50%); }

.aurora { position: fixed; z-index: -1; width: min(80vw, 900px); height: 230px; border-radius: 50%; filter: blur(48px); opacity: .18; transform: rotate(-18deg); pointer-events: none; }
.aurora-cyan { left: -22vw; top: 6vh; background: var(--cyan); }
.aurora-violet { right: -24vw; top: 32vh; background: var(--violet); transform: rotate(22deg); }

.junior-shell { width: min(100%, 760px); margin: auto; animation: enter .35s ease-out both; }
.junior-nav { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.junior-brand { width: fit-content; display: flex; align-items: center; gap: 9px; margin: 0; color: #fff; text-decoration: none; letter-spacing: .22em; font-size: 11px; font-weight: 900; }
.scores-button { min-height: 44px; padding: 8px 13px; border: 1px solid rgba(255,213,107,.45); border-radius: 999px; color: var(--cream); background: rgba(255,213,107,.1); font-size: 12px; font-weight: 850; cursor: pointer; }
.junior-brand b { color: #aab4d2; font-weight: 500; }
.brand-spark { color: var(--cyan); font-size: 20px; filter: drop-shadow(0 0 9px var(--cyan)); }
.session-note { margin: 12px 0 0; color: rgba(204,215,242,.58); text-align: center; font-size: 11px; }

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: clamp(25px, 5vw, 36px);
  background: linear-gradient(145deg, rgba(255,255,255,.075), transparent 35%), var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(24px) saturate(115%);
}
.panel::after { content: ""; position: absolute; z-index: -1; width: 280px; aspect-ratio: 1; right: -190px; top: -190px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.018), 0 0 0 84px rgba(255,255,255,.012); }
.compact { width: min(100%, 570px); margin-inline: auto; }

h1, h2, p { text-wrap: balance; }
h1 { margin: 8px 0 18px; font-size: clamp(42px, 10vw, 74px); line-height: .95; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--cyan); font-style: normal; text-shadow: 0 0 24px rgba(68,229,238,.3); }
h2 { margin: 8px 0 13px; font-size: clamp(34px, 7.7vw, 56px); line-height: .98; letter-spacing: -.055em; }
.lead { color: var(--muted); font-size: clamp(15px, 2.8vw, 18px); line-height: 1.55; }
.kicker { margin: 12px 0 5px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.mode-pill, .privacy-badge { width: fit-content; margin: 0 auto 16px; padding: 8px 13px; border: 1px solid rgba(166,121,255,.45); border-radius: 999px; color: #d9cdff; background: rgba(91,58,164,.25); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.mode-pill span { color: var(--coral); margin: 0 5px; }
.privacy-badge { color: #c9faff; border-color: rgba(68,229,238,.4); background: rgba(22,129,149,.2); }

.welcome-card { text-align: center; }
.welcome-card h1 { max-width: 650px; margin-inline: auto; }
.promise { color: var(--gold); font-weight: 750; font-size: clamp(17px, 3vw, 22px); }
.mascot { position: relative; width: 104px; aspect-ratio: 1; display: grid; place-items: center; margin: 6px auto 5px; border: 2px solid var(--cyan); border-radius: 34% 50% 45% 50%; color: var(--night); background: linear-gradient(145deg, var(--gold), #ffec9e); transform: rotate(8deg); box-shadow: 0 0 35px rgba(68,229,238,.27); }
.mascot::before { content: ""; position: absolute; width: 56%; height: 30%; top: 23%; border-radius: 999px; background: var(--navy); transform: rotate(-8deg); }
.mascot-eye { position: relative; z-index: 1; color: #fff; font-size: 31px; font-weight: 900; }
.mascot i { position: absolute; right: -9px; top: -10px; color: var(--cyan); font-style: normal; font-size: 25px; }
.welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px auto 24px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.feature-strip span { min-width: 0; display: grid; gap: 5px; padding: 15px 10px; color: #abb6d3; background: rgba(3,10,30,.72); font-size: 11px; line-height: 1.35; }
.feature-strip b { color: #fff; font-size: 13px; }

.button { width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid transparent; border-radius: 17px; color: #fff; font-weight: 850; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .17s ease, filter .17s ease, box-shadow .17s ease; }
.button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }
.button:active:not(:disabled) { transform: scale(.985); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button-coral { background: linear-gradient(135deg, #ff765f, #ec4f74); border-color: rgba(255,221,203,.45); box-shadow: 0 12px 34px rgba(238,82,105,.25); }
.button-cyan { color: #031c38; background: linear-gradient(135deg, #59f0e9, #23a9ed); border-color: rgba(218,255,255,.6); box-shadow: 0 12px 34px rgba(35,169,237,.23); }
.button-quiet { color: #d9e5ff; border-color: var(--line); background: rgba(255,255,255,.065); }
.text-button { margin: -8px 0 14px; padding: 8px 2px; border: 0; color: var(--cyan); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }

.setup-panel > h2, .setup-panel > .lead { text-align: center; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 25px 0 18px; }
.method-card { position: relative; min-height: 210px; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: rgba(3,10,31,.68); cursor: pointer; }
.method-card.selected { border: 2px solid var(--cyan); background: linear-gradient(145deg, rgba(68,229,238,.15), rgba(166,121,255,.09)); box-shadow: 0 0 0 4px rgba(68,229,238,.07), 0 18px 38px rgba(0,0,0,.2); }
.method-card strong { font-size: 20px; }
.method-card small { max-width: 210px; color: var(--muted); line-height: 1.4; }
.method-icon { font-size: 39px; }
.recommended { position: absolute; top: 10px; padding: 5px 8px; border-radius: 999px; color: #09213a; background: var(--gold); font-size: 9px; font-weight: 950; letter-spacing: .08em; }

.player-editor { display: grid; gap: 9px; margin: 22px 0; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
label > span, .entry-form label > span { display: block; margin: 0 2px 6px; color: #dfe5f6; font-size: 12px; font-weight: 750; }
.input { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid rgba(208,225,255,.22); border-radius: 14px; outline: 0; color: #fff; background: rgba(2,8,26,.72); font-size: 16px; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(68,229,238,.09); }
.code-input { text-transform: uppercase; letter-spacing: .25em; font-size: 24px; font-weight: 900; }
.row-controls { display: flex; gap: 5px; }
.row-controls button { width: 44px; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; color: #d9e3ff; background: rgba(255,255,255,.06); cursor: pointer; }
.row-controls button:disabled { opacity: .25; }
.split-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; }
.form-error { min-height: 20px; margin: 12px 0 0; color: #ffb5b7; text-align: center; font-weight: 700; }
.entry-form { display: grid; gap: 15px; margin-top: 25px; }

.private-panel, .role-panel, .ready-panel, .clue-panel, .result-panel { text-align: center; }
.safe-panel { text-align: center; }
.pass-icon { width: 92px; aspect-ratio: 1; display: grid; place-items: center; margin: 15px auto; border: 1px solid rgba(68,229,238,.45); border-radius: 50%; background: rgba(68,229,238,.09); font-size: 40px; box-shadow: 0 0 35px rgba(68,229,238,.14); }
.player-name { overflow-wrap: anywhere; color: var(--cream); }
.privacy-line { color: #9eacca; font-size: 12px; font-weight: 650; }
.safe-check { width: 78px; aspect-ratio: 1; display: grid; place-items: center; margin: 8px auto 17px; border: 2px solid var(--cyan); border-radius: 50%; color: var(--cyan); background: rgba(68,229,238,.08); font-size: 37px; }

.hold-button { position: relative; isolation: isolate; width: min(100%, 430px); min-height: 94px; display: grid; grid-template-columns: auto 1fr; place-items: center; gap: 14px; margin: 25px auto 15px; padding: 15px 23px; overflow: hidden; border: 2px solid var(--cyan); border-radius: 999px; color: #fff; background: rgba(8,26,65,.9); cursor: pointer; user-select: none; touch-action: none; }
.hold-button::before { content: ""; position: absolute; z-index: -1; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, rgba(68,229,238,.35), rgba(166,121,255,.38)); }
.hold-button.holding::before { animation: hold-fill .65s linear forwards; }
.hold-button > span:not(.hold-ring) { font-size: 28px; }
.hold-button strong { font-size: clamp(15px, 3vw, 19px); }
.hold-ring { position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: inherit; }

.role-panel { width: min(100%, 650px); margin-inline: auto; }
.role-panel h2 { font-size: clamp(42px, 10vw, 72px); }
.imposter-role h2 em { color: var(--coral); text-shadow: 0 0 25px rgba(255,110,101,.27); }
.imposter-mascot { position: relative; width: 90px; aspect-ratio: 1; display: grid; place-items: center; margin: 4px auto 14px; border-radius: 38% 52% 44% 50%; color: white; background: linear-gradient(145deg, #ffda77, #ff9d69); transform: rotate(7deg); }
.imposter-mascot b { position: relative; z-index: 1; width: 54px; padding: 5px; border-radius: 999px; background: var(--navy); font-size: 28px; }
.imposter-mascot span { position: absolute; right: -8px; top: -11px; color: var(--cyan); font-size: 25px; }
.role-copy { color: var(--gold); font-size: 18px; font-weight: 750; }
.secret-word-card { display: grid; gap: 7px; margin: 20px 0 13px; padding: clamp(20px, 5vw, 31px); border: 2px solid #f1d79c; border-radius: 24px; color: #122557; background: var(--cream); box-shadow: 0 15px 35px rgba(0,0,0,.26); }
.secret-word-card span { font-size: 52px; }
.secret-word-card strong { overflow-wrap: anywhere; font-size: clamp(38px, 9vw, 67px); line-height: .98; letter-spacing: -.045em; }
.category-card, .mission-card, .hint-card { margin: 13px 0; padding: 17px; border: 1px solid rgba(166,121,255,.5); border-radius: 19px; background: rgba(78,49,148,.2); }
.category-card { display: grid; gap: 6px; color: #15295c; border-color: #f1d79c; background: var(--cream); }
.category-card span, .mission-card span, .reveal-grid span { color: var(--violet); font-size: 10px; font-weight: 950; letter-spacing: .16em; }
.category-card strong { font-size: clamp(29px, 6vw, 43px); }
.mission-card { display: grid; gap: 8px; }
.mission-card span { color: var(--cyan); }
.mission-card strong { font-size: clamp(18px, 3.7vw, 24px); line-height: 1.35; }
.hint-card summary { min-height: 44px; display: grid; place-items: center; color: #d6ccff; font-weight: 800; cursor: pointer; }
.hint-card p { color: var(--gold); font-weight: 750; }
.hear-button { min-height: 48px; padding: 10px 18px; border: 1px solid rgba(68,229,238,.5); border-radius: 999px; color: #c8fbff; background: rgba(68,229,238,.1); font-weight: 800; cursor: pointer; }
.secret-exit { margin-top: 17px; }
.reminder-button { width: min(100%, 280px); min-height: 48px; margin: 0 auto 14px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #e8ecfa; background: rgba(255,255,255,.065); font-weight: 800; cursor: pointer; }
.reminder-button + .button { margin-top: 0; }
.reminder-panel { width: min(100%, 650px); margin-inline: auto; }
.reminder-hold { margin-bottom: 11px; }
.reminder-secret-slot { min-height: 0; }
.reminder-secret-card { display: grid; gap: 10px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.reminder-secret-card h2 { font-size: clamp(31px, 7vw, 48px); }
.reminder-secret-card .hint-card { display: grid; gap: 7px; }
.reminder-secret-card .hint-card span { color: var(--cyan); font-size: 10px; font-weight: 950; letter-spacing: .16em; }

.order-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 23px 0; }
.order-list span { min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #dce4f9; background: rgba(255,255,255,.055); font-size: 13px; font-weight: 750; }
.order-list b { width: 25px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #09213e; background: var(--cyan); }
.timer-toggle { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; text-align: left; background: rgba(255,255,255,.04); }
.timer-toggle input { width: 25px; height: 25px; grid-row: 1 / 3; accent-color: var(--cyan); }
.timer-toggle small { color: var(--muted); }
.round-line, .room-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #bac5e1; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.public-mission { margin: 25px 0; padding: clamp(22px, 5vw, 32px); border-color: var(--cyan); box-shadow: 0 0 28px rgba(68,229,238,.1); }
.timer { width: 92px; aspect-ratio: 1; display: grid; place-content: center; margin: 10px auto 18px; border: 3px solid var(--gold); border-radius: 50%; background: rgba(255,213,107,.08); }
.timer b { font-size: 30px; }
.timer span { color: var(--muted); font-size: 10px; }
.compact-order span.done { opacity: .48; }
.compact-order span.current { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(68,229,238,.08); }

.vote-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; margin: 23px 0; }
.vote-card { min-width: 0; min-height: 132px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 15px 8px; border: 1px solid var(--line); border-radius: 19px; color: #fff; background: rgba(4,12,36,.72); cursor: pointer; }
.vote-card > span { width: 47px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(68,229,238,.4); border-radius: 50%; color: #09213e; background: linear-gradient(145deg, var(--cyan), #7faaff); font-size: 20px; font-weight: 900; }
.vote-card strong { width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.vote-card small { color: var(--muted); }
.vote-card.selected { border: 2px solid var(--cyan); background: rgba(40,133,171,.2); box-shadow: 0 0 0 4px rgba(68,229,238,.07), 0 0 28px rgba(68,229,238,.14); }
.vote-card.selected small { color: var(--cyan); font-weight: 850; }

.confetti { color: var(--gold); letter-spacing: .35em; font-size: 23px; }
.reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 23px 0; }
.reveal-grid > div { min-width: 0; display: grid; gap: 8px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.05); }
.reveal-grid span { color: var(--cyan); }
.reveal-grid strong { overflow-wrap: anywhere; font-size: clamp(21px, 4.5vw, 31px); }
.reveal-grid i { font-style: normal; font-size: 31px; }
.winner-banner { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: center; padding: 16px; border: 1px solid rgba(255,213,107,.4); border-radius: 18px; text-align: left; background: rgba(255,213,107,.1); }
.winner-banner > span { grid-row: 1 / 3; font-size: 35px; }
.winner-banner small { color: var(--muted); }
.winner-banner.detectives { border-color: rgba(68,229,238,.5); background: rgba(68,229,238,.09); }
.score-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 14px 0; }
.score-strip span { display: flex; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); font-size: 12px; }
.score-strip b { color: var(--gold); }
.celebrate { color: var(--gold); font-size: 18px; font-weight: 850; }

.room-top { margin: -5px 0 23px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.room-top strong { padding: 6px 9px; border-radius: 9px; color: var(--night); background: var(--gold); font-size: 15px; letter-spacing: .14em; }
.room-code { width: min(100%, 330px); display: grid; gap: 5px; margin: 20px auto 12px; padding: 18px; border: 1px dashed var(--cyan); border-radius: 18px; text-align: center; background: rgba(68,229,238,.08); }
.room-code span { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.room-code strong { font-size: 42px; letter-spacing: .2em; padding-left: .2em; }
.lobby-panel { text-align: center; }
.lobby-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0; }
.lobby-list > span { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: rgba(255,255,255,.04); }
.lobby-list b { grid-row: 1 / 3; width: 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #08203d; background: var(--cyan); }
.lobby-list strong { overflow: hidden; text-overflow: ellipsis; }
.lobby-list small, .waiting { color: var(--muted); }
.ready-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 21px; }
.ready-dots span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: #aeb8d4; font-size: 12px; }
.ready-dots span.done { color: #b9fff5; border-color: rgba(68,229,238,.4); }

.tutorial-card, .stakes-card { display: grid; gap: 9px; margin: 20px 0; padding: 18px; border: 1px solid rgba(68,229,238,.42); border-radius: 18px; text-align: left; background: rgba(68,229,238,.08); }
.tutorial-card p { margin: 0; color: #f5f7ff; font-size: clamp(16px, 3vw, 19px); line-height: 1.5; }
.tutorial-card strong { color: var(--gold); font-size: 14px; line-height: 1.5; }
.cycle-rule { margin: 14px auto 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.stakes-card { text-align: center; border-color: rgba(255,213,107,.45); background: rgba(255,213,107,.09); }
.stakes-card span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.stakes-card strong { font-size: clamp(18px, 3.8vw, 24px); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0; }
.choice-card { min-height: 155px; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 20px; color: #fff; background: rgba(4,12,36,.72); cursor: pointer; }
.choice-card > span { font-size: 32px; }
.choice-card strong { font-size: 18px; }
.choice-card small { color: var(--muted); line-height: 1.35; }
.choice-card.selected { border: 2px solid var(--cyan); background: rgba(40,133,171,.2); box-shadow: 0 0 0 4px rgba(68,229,238,.07); }
.score-explanation { color: #dce5fa; font-size: 14px; line-height: 1.5; }
.score-strip span { align-items: center; }
.score-strip i { color: var(--cyan); font-style: normal; font-weight: 900; }
.score-strip small { color: var(--muted); }

.scores-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(1,5,18,.78); backdrop-filter: blur(10px); }
.scores-modal { width: min(100%, 540px); max-height: min(82dvh, 700px); overflow: auto; padding: 24px; border: 1px solid rgba(255,213,107,.35); border-radius: 25px; background: #0b1738; box-shadow: var(--shadow); }
.scores-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.scores-heading h2 { margin: 4px 0; font-size: clamp(32px, 7vw, 46px); }
.scores-heading button { width: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); font-size: 26px; cursor: pointer; }
.leaderboard-list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.leaderboard-list li { min-width: 0; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.045); }
.leaderboard-list li > b { color: var(--cyan); text-align: center; }
.leaderboard-list li > span { min-width: 0; display: grid; }
.leaderboard-list strong { overflow: hidden; text-overflow: ellipsis; }
.leaderboard-list small { color: var(--muted); }
.leaderboard-list em { color: var(--gold); font-style: normal; font-weight: 900; }
.leaderboard-list .is-me { border-style: dashed; border-color: var(--gold); }
.leaderboard-list .is-current { box-shadow: inset 4px 0 var(--cyan); }

.junior-toast { position: fixed; z-index: 20; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: min(calc(100% - 30px), 460px); transform: translateX(-50%); padding: 13px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; color: #fff; text-align: center; background: #152347; box-shadow: 0 15px 45px rgba(0,0,0,.4); font-weight: 750; }

@keyframes hold-fill { to { transform: scaleX(1); } }
@keyframes enter { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .junior-screen { place-items: start center; }
  .panel { padding: 21px 17px; border-radius: 25px; }
  .welcome-actions, .method-grid, .split-actions { grid-template-columns: 1fr; }
  .method-card { min-height: 168px; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip span { grid-template-columns: auto 1fr; text-align: left; }
  .feature-strip b { min-width: 115px; }
  .name-row { grid-template-columns: 1fr; }
  .row-controls { justify-content: flex-end; }
  .vote-grid { gap: 8px; }
  .vote-card { min-height: 116px; }
  .reveal-grid { grid-template-columns: 1fr; }
  .lobby-list { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .score-strip span { width: 100%; justify-content: space-between; }
  .scores-modal { padding: 20px 16px; }
}

@media (min-width: 820px) and (orientation: landscape) {
  .junior-shell { width: min(100%, 900px); }
  .panel { padding: 30px 42px; }
  .vote-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora { display: none; }
  .hold-button.holding::before { animation-duration: .65s !important; }
}
