@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;
  --canvas: #101c2e;
  --surface: #19293e;
  --surface-raised: #21334a;
  --surface-hover: #2b4057;
  --text: #f4f7ef;
  --muted: #b3c0cf;
  --accent: #d8f863;
  --accent-hover: #e5ff88;
  --on-accent: #101c2e;
  --accent-surface: #263b32;
  --accent-line: #657b43;
  --line: #334358;
  --line-strong: #65788d;
  --danger: #ffadb4;
  --danger-surface: #462d3b;
  --qr-paper: #ffffff;
  --qr-ink: #101c2e;
  --shadow: #00000040;
  --shadow-deep: #00000070;
  --radius: 24px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' opacity='.22' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; }
::selection { color: var(--on-accent); background: var(--accent); }
.hidden, [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; }
.muted { color: var(--muted); }

.site-header { height: 112px; max-width: 1296px; margin: auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -1.2px; white-space: nowrap; }
.brand-mark { display: block; width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; background: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
.nav-links a, .nav-links button { transition: color .2s; }
.nav-links a:hover, .nav-links button:hover { color: var(--accent); }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); }
.language-button { min-width: 44px; min-height: 44px; border: 0; border-radius: 100px; padding: 7px 10px; background: transparent; font-size: 11px; font-weight: 750; }
.language-button.active, .nav-links .language-button.active:hover { background: var(--accent); color: var(--on-accent); }
.room-language { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); font-size: 11px; font-weight: 750; white-space: nowrap;  color: var(--accent); }
.language-note { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--accent); border: 1px solid var(--line); background: var(--surface); border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.live-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.live-pill:has(.status-dot)::before { display: none; }
#app { max-width: 1296px; margin: 0 auto; padding: 0 48px 28px; min-height: calc(100vh - 184px); }
.home { padding-top: 44px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 74px; align-items: center; min-height: 495px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 14px; }
.eyebrow, .section-label, .question-label, .room-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.9px; font-weight: 700; }
.eyebrow { margin-bottom: 23px; }
.eyebrow::before { content: ''; width: 17px; height: 1px; background: currentColor; }
.hero-title { font-size: clamp(76px, 8.7vw, 116px); line-height: .98; font-weight: 800; letter-spacing: -6px; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-tagline { margin-top: 19px; font-family: var(--display); font-size: 20px; line-height: 1.3; font-weight: 750; letter-spacing: -.5px; }
.hero-tagline + .hero-description { margin-top: 20px; }
.hero-description { margin-top: 26px; max-width: 380px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 15px 23px; border: 1px solid transparent; border-radius: 100px; font-size: 13px; line-height: 1.35; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 12px var(--shadow); }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 7px 20px var(--shadow); }
.button.secondary { border-color: var(--line-strong); background: transparent;  color: var(--text); }
.button.secondary:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--accent); }
.button.dark { background: var(--surface-raised); color: var(--text);  border-color: var(--line-strong); }
.button.dark:hover:not(:disabled) { background: var(--surface-hover); }
.button.lime { background: var(--accent); color: var(--on-accent); }
.button.lime:hover:not(:disabled) { background: var(--accent-hover); }
.button.small { min-height: 44px; padding: 10px 16px; font-size: 12px; }
.button:disabled { opacity: .45; box-shadow: none; }
.text-button, .back-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 0; padding: 8px 0; min-height: 44px; font-size: 13px; font-weight: 600; }
.text-button:hover, .back-button:hover { color: var(--accent); }
.back-button { color: var(--muted); margin-bottom: 18px; }
.hero-meta { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-meta strong { color: var(--text); font-weight: 650; }
.avatar-stack { display: inline-flex; padding-left: 0; flex-shrink: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--avatar-color, var(--accent)); color: var(--avatar-ink, var(--on-accent)); font-size: 12px; font-weight: 750; }
.avatar-stack .avatar { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--canvas); font-size: 10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.preview-board { position: relative; background: var(--surface-raised); color: var(--text); padding: 31px 30px 27px; border-radius: 25px; transform: rotate(2deg); box-shadow: 0 24px 50px -35px var(--shadow-deep), inset 0 0 0 1px var(--line-strong); margin: 17px 0 0; }
.board-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 29px; font-size: 10px; letter-spacing: 1.3px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.mini-dots { display: inline-flex; gap: 5px; }
.mini-dots i, .mini-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.mini-dots i:first-child, .mini-dots span:first-child { background: var(--accent); }
.search-preview { display: flex; align-items: center; gap: 11px; padding: 18px 17px; background: var(--canvas); color: var(--text); border-radius: 12px; font-weight: 650; font-size: 18px; letter-spacing: -.5px; box-shadow: inset 0 0 0 1px var(--line); }
.search-preview svg { color: var(--accent); width: 19px; height: 19px; }
.search-preview .cursor { height: 22px; border-right: 2px solid var(--accent); }
.preview-options { display: grid; gap: 9px; margin-top: 16px; }
.preview-option { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 500; background: var(--surface); }
.preview-option:nth-child(2) { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--shadow); transform: translateX(-8px); }
.option-letter { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 700; }
.preview-option:nth-child(2) .option-letter { border-color: var(--on-accent); background: transparent; }
.preview-option .option-check, .preview-option > svg:last-child { margin-left: auto; width: 17px; height: 17px; }
.preview-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 19px; color: var(--muted); font-size: 10px; }
.preview-note strong { font-weight: 600; color: var(--text); }
.floating-note { position: absolute; right: -24px; bottom: -21px; padding: 14px 19px; background: var(--surface-hover); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; transform: rotate(-7deg); box-shadow: 0 8px 22px var(--shadow); font-size: 11px; font-weight: 650; white-space: nowrap; }
.floating-note span { display: block; font-size: 9px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.home > .section-label { margin-top: 67px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-grid + .steps-grid { margin-top: 67px; }
.step-card { display: grid; grid-template-columns: 32px 1fr; column-gap: 15px; align-items: start; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--accent); }
.step-card h3 { font-size: 14px; font-weight: 750; letter-spacing: -.4px; margin-bottom: 6px; }
.step-card p { font-size: 11px; line-height: 1.7; max-width: 250px; color: var(--muted); }
.step-card > h3, .step-card > p { grid-column: 2; }
.step-card > .step-number { grid-column: 1; grid-row: 1 / span 2; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 18px auto 0; padding: 24px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.site-footer a:hover { color: var(--accent); }
.site-footer span:last-child { text-align: right; }

.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 32px; }
.create-panel, .join-panel { max-width: 570px; margin: 24px auto 60px; padding: 38px; box-shadow: 0 10px 50px -30px var(--shadow); }
.create-panel h1, .join-panel h1 { font-size: 35px; line-height: 1.12; font-weight: 800; letter-spacing: -1.7px; margin-bottom: 12px; }
.create-panel > p, .join-panel > p { color: var(--muted); line-height: 1.65; font-size: 14px; margin-bottom: 29px; }
.create-panel .eyebrow, .join-panel .eyebrow { margin-bottom: 14px; }
.create-panel .button, .join-panel form > .button { width: 100%; margin-top: 9px; }
.form-field { margin-bottom: 22px; }
.form-field label, .form-field > .label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
input, select { width: 100%; min-height: 51px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 15px; background: var(--canvas); color: var(--text); font-size: 14px; transition: border-color .15s, background .15s; }
input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus { border-color: var(--accent); background: var(--surface-raised); }
input[name='code'], input#roomCode, input#join-code { text-transform: uppercase; font-weight: 750; letter-spacing: 5px; }
select { cursor: pointer; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--canvas); border-radius: 13px; }
.segmented button { flex: 1; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); }
.segmented button.active, .segmented button[aria-pressed='true'] { color: var(--on-accent); background: var(--accent); box-shadow: 0 2px 4px var(--shadow); }
.form-note { display: block; color: var(--muted); margin-top: 9px; font-size: 11px; line-height: 1.65; }
.form-error { margin: 12px 0; padding: 12px 15px; font-size: 12px; line-height: 1.6; color: var(--danger); background: var(--danger-surface); border-radius: 10px; }
.screen-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; margin-bottom: 21px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-surface); color: var(--text); font-size: 12px; line-height: 1.5; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 28px; }
.room-main, .room-sidebar { min-width: 0; }
.room-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.room-heading h1 { margin-top: 8px; font-size: 45px; letter-spacing: -2px; line-height: 1.13; }
.room-heading p { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.room-code { display: block; font-family: var(--display); font-size: 39px; font-weight: 800; letter-spacing: 6px; color: var(--accent); margin: 10px 0; font-variant-numeric: tabular-nums; }
.qr-card { background: var(--surface-raised); color: var(--text); padding: 27px; border-radius: 24px; text-align: center; box-shadow: 0 14px 30px -22px var(--shadow-deep), inset 0 0 0 1px var(--line-strong); }
.qr-card .room-label { justify-content: center; color: var(--muted); }
.qr-card .room-code { color: var(--accent); font-size: 35px; letter-spacing: 6px; margin: 14px 0 19px; }
.qr-card h2 { font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.qr-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.qr-code { display: block; width: 194px; height: 194px; padding: 13px; margin: 18px auto; background: var(--qr-paper); border-radius: 14px;  color: var(--qr-ink);  color-scheme: light; }
.qr-card .qr-code p { color: var(--qr-ink); }
.qr-code svg, .qr-code canvas, .qr-code img { width: 100%; height: 100%; }
svg.qr-code { padding: 12px; }
.join-url { font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; color: var(--muted); margin-top: 14px; }
.copy-row { display: flex; gap: 8px; margin-top: 15px; }
.copy-row .button { width: 100%; }
.qr-card .button.secondary { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.qr-card .button.secondary:hover { background: var(--surface-hover); }
.players-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 19px; }
.player-chip { display: flex; align-items: center; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); min-width: 0; }
.player-chip .avatar { width: 39px; height: 39px; }
.player-info { min-width: 0; flex: 1; }
.player-name { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.player-status { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.status-dot.offline { background: var(--muted); }
.host-badge { display: inline-flex; align-items: center; padding: 4px 7px; color: var(--accent); background: var(--accent-surface); border-radius: 5px; font-size: 9px; font-weight: 700; }
.lobby-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.lobby-actions > p { max-width: 270px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-players { border: 1px dashed var(--line); padding: 35px 22px; border-radius: 17px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 19px; }
.rules-list { list-style: none; padding: 0; margin: 23px 0 0; display: grid; gap: 16px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.rules-list li { position: relative; padding-left: 23px; }
.rules-list li::before { content: '↗'; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.rules-list strong { color: var(--text); }
.room-sidebar > .panel { margin-top: 18px; padding: 23px; }
.room-sidebar > .panel h3 { font-size: 15px; letter-spacing: -.5px; }
.score-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.score-pill { padding: 6px 9px; border-radius: 6px; background: var(--surface-raised); color: var(--text); font-size: 10px; font-weight: 650; }
.score-pill:first-child { background: var(--accent); color: var(--on-accent); }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 31px; align-items: start; padding-top: 24px; }
.game-layout > * { min-width: 0; }
.game-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.round-info { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 650; }
.round-pips { display: flex; gap: 5px; }
.round-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.round-pip.done { background: var(--accent); }
.round-pip.active { width: 18px; border-radius: 8px; background: var(--accent); }
.category-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; background: var(--surface); color: var(--accent); border: 1px solid var(--line); font-size: 10px; font-weight: 600; border-radius: 7px; }
.question-panel { padding: 32px 33px; background: var(--surface-raised); border-radius: 22px; position: relative; overflow: hidden;  box-shadow: inset 0 0 0 1px var(--line-strong); }
.question-panel::after { content: '?'; position: absolute; right: 16px; bottom: -42px; font-family: var(--display); font-weight: 800; font-size: 190px; line-height: 1; color: rgb(216 248 99 / .06); transform: rotate(15deg); pointer-events: none; }
.question-label { color: var(--accent); font-size: 9px; letter-spacing: 1.8px; }
.question-title { position: relative; z-index: 1; font-size: clamp(29px, 3.3vw, 43px); font-weight: 750; letter-spacing: -1.5px; line-height: 1.22; margin-top: 16px; color: var(--text); }
.question-title em { font-style: normal; color: var(--accent); }
.question-subtitle { position: relative; z-index: 1; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 13px; }
.options-list { display: flex; flex-direction: column; gap: 10px; margin-top: 21px; }
.answer-card { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 15px; text-align: left; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); padding: 15px 17px; color: var(--text); min-height: 70px; position: relative; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.answer-card:not(:disabled):not(.locked):hover { border-color: var(--accent); background: var(--surface-raised); transform: translateX(3px); }
.answer-letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); background: var(--surface-raised); border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.answer-text { font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.answer-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 11px; }
.answer-rank { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: var(--accent); background: var(--accent-surface); font-size: 13px; font-weight: 750; }
.answer-points { min-width: 45px; color: var(--accent); font-size: 12px; font-weight: 750; text-align: right; white-space: nowrap; }
.answer-voters { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: -3px; }
.voter-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; background: var(--avatar-color, var(--accent)); color: var(--avatar-ink, var(--on-accent)); font-size: 9px; line-height: 1.3; font-weight: 600; }
.voter-tag .avatar { width: 16px; height: 16px; font-size: 7px; }
.vote-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.answer-card.selected { border-color: var(--accent); background: var(--accent-surface); box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 1px var(--accent); }
.answer-card.selected .answer-letter { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.answer-card.locked { cursor: default; }
.answer-card.pending { color: var(--muted); background: var(--surface); }
.answer-card.pending .answer-letter { background: var(--surface); color: var(--muted); }
.answer-card.revealed { background: var(--surface); border-color: var(--line-strong); }
.answer-card.revealed .answer-letter { color: var(--accent); background: var(--accent-surface); }
.answer-card.revealed.selected { border-color: var(--accent); }
.answer-card.winner { border-color: var(--accent); background: var(--accent-surface); }
.answer-card.winner .answer-rank { background: var(--accent); color: var(--on-accent); }
.answer-card.winner .answer-letter { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.answer-card.reveal-new { animation: reveal-in .42s cubic-bezier(.2,.65,.2,1) both; }
@keyframes reveal-in { from { transform: translateY(7px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }
.vote-status { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 2px 9px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.vote-status strong { color: var(--text); font-weight: 650; }
.progress-track { background: var(--line); border-radius: 10px; height: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; min-width: 0; transition: width .4s ease; }
.host-controls { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 23px; }
.host-controls > p { font-size: 11px; color: var(--muted); max-width: 270px; line-height: 1.6; }
.host-controls .button { min-width: 175px; }
.scoreboard { padding: 25px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.scoreboard-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; font-family: var(--display); font-size: 16px; font-weight: 750; letter-spacing: -.5px; }
.scoreboard-title span { font-family: var(--font); font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.scoreboard-row { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; }
.scoreboard-position { width: 14px; flex-shrink: 0; font-size: 10px; color: var(--muted); }
.scoreboard-row .avatar { width: 29px; height: 29px; font-size: 9px; }
.scoreboard-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.scoreboard-name small { display: block; font-weight: 400; font-size: 9px; color: var(--muted); margin-top: 3px; }
.scoreboard-score { font-family: var(--display); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.scoreboard-row:first-of-type .scoreboard-position { color: var(--accent); }
.score-delta { font-size: 9px; font-weight: 600; color: var(--accent); margin-left: 4px; }
.source-note { margin-top: 19px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.source-note strong { font-weight: 600; color: var(--muted); }
.result-banner { margin-top: 17px; padding: 17px 20px; border-radius: 13px; color: var(--text); background: var(--accent-surface); border: 1px solid var(--accent-line); font-size: 12px; line-height: 1.6; }
.result-banner strong { color: var(--accent); }
.result-banner h3 { font-size: 16px; margin-bottom: 5px; letter-spacing: -.5px; }
.waiting-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 14px 18px; color: var(--muted); background: var(--surface); border-radius: 12px; font-size: 12px; line-height: 1.6; }
.waiting-note::before { content: ''; display: block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.connection-status { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; line-height: 1.6; }
.connection-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.connection-status.offline { color: var(--danger); }
.connection-status.offline::before { background: var(--danger); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(440px, calc(100vw - 32px)); background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--text); border-radius: 12px; padding: 14px 21px; font-size: 12px; line-height: 1.55; box-shadow: 0 9px 34px var(--shadow); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; bottom: 15px; } to { opacity: 1; bottom: 26px; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; align-items: center; justify-items: center; overflow-y: auto; padding: 24px; background: var(--shadow-deep); backdrop-filter: blur(5px); }
.modal { width: 100%; max-width: 500px; padding: 30px; background: var(--surface); border-radius: 25px; box-shadow: 0 20px 90px var(--shadow);  border: 1px solid var(--line-strong); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.modal-brand-mark { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.modal-header h2 { font-size: 24px; letter-spacing: -1px; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.modal .form-error { color: var(--danger); }
.modal p + p { margin-top: 15px; }
.modal .button { margin-top: 23px; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--text); font-size: 20px; }
.icon-button:hover { background: var(--surface-hover); border-color: var(--accent); }
.mobile-join { display: none; }

.final-panel { max-width: 680px; margin: 23px auto 40px; text-align: center; padding: 35px; }
.final-panel .eyebrow { justify-content: center; margin-bottom: 17px; }
.trophy-mark { display: grid; place-items: center; width: 87px; height: 87px; margin: 0 auto 25px; background: var(--accent); border: 1px solid var(--accent-line); border-radius: 27px; font-size: 40px; transform: rotate(-7deg); box-shadow: 4px 5px 0 var(--shadow);  color: var(--on-accent);  border-color: var(--accent); }
.trophy-mark svg { width: 38px; height: 38px; }
.final-panel h1 { font-size: 42px; letter-spacing: -2px; line-height: 1.2; }
.winner-name { color: var(--accent); font-size: 51px; line-height: 1.12; font-weight: 800; letter-spacing: -2.4px; margin-top: 13px; overflow-wrap: anywhere; }
.winner-score { margin-top: 12px; color: var(--muted); font-size: 15px; }
.winner-score strong { color: var(--text); }
.podium { display: flex; gap: 12px; align-items: stretch; justify-content: center; margin-top: 30px; }
.podium-item { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 9px; padding: 22px 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); min-width: 0; font-size: 12px; }
.podium-item:first-child { background: var(--accent-surface); border-color: var(--accent-line); }
.podium-item .avatar { width: 45px; height: 45px; font-size: 15px; }
.podium-item strong { font-size: 13px; overflow-wrap: anywhere; }
.podium-item > span { color: var(--muted); font-size: 11px; }
.podium-item > .avatar { color: var(--avatar-ink, var(--on-accent)); }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.final-panel .scoreboard { margin-top: 28px; text-align: left; }
.error-page { max-width: 600px; margin: 70px auto; text-align: center; }
.error-page h1 { font-size: 38px; letter-spacing: -1.5px; }
.error-page p { margin-top: 20px; color: var(--muted); line-height: 1.7; }
.error-page .button { margin-top: 25px; }

/* Details shared by the live room, the search preview, and the invitation flow. */
.brand-question { color: var(--accent); }
.home .eyebrow::before { display: none; }
.home .eyebrow .status-dot { width: 6px; height: 6px; margin-right: 1px; }
.home > .section-label { justify-content: space-between; gap: 22px; font-size: 9px; letter-spacing: 1.35px; color: var(--muted); }
.home > .section-label > span:last-child { white-space: nowrap; color: var(--muted); letter-spacing: 1px; }
.home-source { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 40px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.home-source .status-dot { width: 4px; height: 4px; margin-right: 3px; background: var(--accent); }
.home-source strong { color: var(--muted); font-weight: 600; }
.step-card { position: relative; padding-right: 25px; }
.step-card h2 { font-size: 14px; letter-spacing: -.35px; font-weight: 750; margin-bottom: 7px; }
.step-symbol { position: absolute; top: -3px; right: 3px; font-family: var(--display); font-size: 23px; color: var(--muted); font-weight: 500; }
.preview-vote { font-size: 8px; font-weight: 750; margin-left: auto; white-space: nowrap; }
.search-preview > span:first-child { font-size: 25px; color: var(--accent); font-weight: 400; line-height: .5; transform: rotate(-15deg); }
.search-preview .cursor { color: var(--accent); font-weight: 400; border: 0; padding-left: 5px; }
.floating-note { font-family: var(--display); line-height: 1.55; padding-right: 45px; font-size: 12px; font-weight: 500; }
.floating-note strong { font-weight: 800; }
.floating-note > span { position: absolute; top: 13px; right: 13px; margin: 0; font-size: 25px; color: var(--accent); font-weight: 500; }
.modal-open { overflow: hidden; }
.modal { max-height: calc(100dvh - 48px); overflow-y: auto; }
.modal > h2 { font-size: 30px; letter-spacing: -1.4px; font-weight: 800; line-height: 1.18; }
.modal > .eyebrow { font-size: 9px; margin-bottom: 12px; }
.modal > h2 + p { margin-top: 12px; }
.modal > form { margin-top: 27px; }
.modal form > .button { width: 100%; margin-top: 20px; }
.modal .form-field:last-of-type { margin-bottom: 17px; }
.modal-header > span { color: var(--text); font-size: 13px; letter-spacing: -.4px; }
.modal-header > span strong { color: var(--text); font-weight: 750; }
.modal .qr-card { margin-top: 25px; }
.modal .qr-card .form-note { color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px; line-height: 1.5; font-weight: 550; min-height: 44px; }
.checkbox-label input { width: 17px; height: 17px; min-height: 17px; padding: 0; margin: 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-error:empty { display: none; }
.copy-input { margin-top: 20px; font-size: 13px; }
h1.room-heading { display: block; margin: 0; font-size: 49px; letter-spacing: -2.7px; line-height: 1.1; font-weight: 800; }
h1.room-heading em { color: var(--accent); font-style: normal; }
.room-main > .eyebrow { margin-bottom: 19px; }
.room-main > .hero-description { margin-top: 19px; margin-bottom: 30px; }
.room-main > .section-label { justify-content: space-between; font-size: 9px; letter-spacing: 1px; color: var(--muted); gap: 10px; }
.player-name small { color: var(--muted); font-size: 9px; font-weight: 500; }
.player-chip .vote-check { width: 20px; height: 20px; font-size: 10px; color: var(--accent); background: var(--accent-surface); }
.qr-card .eyebrow { justify-content: center; color: var(--accent); font-size: 9px; letter-spacing: 1.4px; }
.qr-card .eyebrow::before { display: none; }
.qr-card .copy-row { align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 5px 5px 5px 11px; gap: 5px; }
.qr-card .join-url { flex: 1; margin: 0; min-width: 0; color: var(--text); text-align: left; font-size: 9px; }
.qr-card .icon-button { background: var(--surface); border: none; border-radius: 8px; min-width: 44px; min-height: 44px; color: var(--text); font-size: 18px; }
.qr-card .icon-button:hover { background: var(--surface-hover); }
.qr-card .form-note { font-size: 9px; margin-top: 12px; color: var(--muted); }
.lobby-rules > p { margin-top: 10px; font-size: 11px; line-height: 1.75; }
.lobby-rules .text-button { margin-top: 12px; font-size: 11px; color: var(--accent); }
.score-pill { display: inline-flex; gap: 7px; align-items: center; }
.score-pill span { font-weight: 400; opacity: 1; }
.score-pill strong { font-weight: 750; }
.game-main > .round-info { margin-bottom: 18px; }
.game-main .question-panel > .category-pill { background: var(--surface); border-color: var(--line-strong); color: var(--muted); font-size: 9px; margin-bottom: 19px; }
.prompt-dots { color: var(--accent); letter-spacing: 1px; }
.answer-content { min-width: 0; display: flex; flex-direction: column; }
.answer-content .answer-voters { margin-top: 9px; }
.voter-tag { background: var(--avatar-color, var(--accent)); color: var(--avatar-ink, var(--on-accent)); }
.no-voters { font-size: 10px; color: var(--muted); font-weight: 400; }
.answer-arrow { color: var(--muted); font-size: 19px; }
.answer-card:hover .answer-arrow { color: var(--accent); }
.answer-card.revealed .answer-letter { font-size: 13px; font-weight: 750; }
.answer-card.winner .answer-letter { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.answer-points small { font-size: 8px; margin-left: 3px; font-weight: 500; color: var(--muted); }
.vote-action { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; }
.vote-action > .form-note { margin: 0; max-width: 280px; font-size: 11px; }
.vote-action > .button { flex-shrink: 0; }
.waiting-note:has(.status-dot)::before { display: none; }
.host-controls .text-button { margin-left: auto; font-size: 10px; color: var(--muted); min-height: 44px; }
.result-banner { display: flex; align-items: center; gap: 13px; }
.result-banner > span:first-child { font-size: 29px; color: var(--accent); }
.result-banner > div { flex: 1; min-width: 0; }
.result-banner p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.result-banner .button { font-size: 10px; min-height: 44px; padding: 12px 15px; }
.result-banner > .muted { font-size: 10px; max-width: 130px; text-align: right; color: var(--muted); }
.scoreboard-title h2 { font-size: 16px; font-weight: 750; letter-spacing: -.5px; }
.scoreboard-score small { font-family: var(--font); font-size: 8px; margin-left: 3px; font-weight: 400; color: var(--muted); }
.scoreboard-row.is-me .scoreboard-name { color: var(--accent); }
.scoreboard-name > small { display: inline-block; margin: 0 0 0 4px; color: var(--muted); }
.scoreboard-name .player-status { font-size: 8px; font-weight: 400; }
.scoreboard-name .player-status:empty { display: none; }
.scoreboard-bottom { padding-top: 20px; margin-top: 10px; border-top: 1px solid var(--line); }
.scoreboard-bottom .eyebrow { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 0; }
.scoreboard-bottom .eyebrow::before { display: none; }
.scoreboard-bottom .score-pills { gap: 5px; margin-top: 12px; }
.scoreboard-bottom .score-pill { padding: 5px 6px; font-size: 8px; gap: 4px; }
.connection-error { color: var(--danger); }
.connection-error::before { background: var(--danger); }
.final-panel .hero-description { margin: 18px auto 0; max-width: 370px; font-size: 13px; }
.final-panel .winner-score { font-family: var(--display); font-size: 54px; font-weight: 800; color: var(--text); line-height: 1; margin-top: 26px; }
.winner-score > span { display: block; font-family: var(--font); color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 2px; margin-top: 10px; }
.final-scoreboard { max-width: 460px; margin: 30px auto 0; }
.final-scoreboard .scoreboard { text-align: left; margin-top: 0; }
.final-scoreboard .scoreboard-bottom { display: none; }
.final-panel > .form-note { margin-top: 22px; font-size: 10px; }

/* The table stays compact while a shared round is in progress. */
.game-active .site-header { height: 74px; }
.game-active #app { min-height: calc(100vh - 142px); }
.game-active #app > .game-header { min-height: 44px; margin-bottom: 10px; gap: 12px; }
.game-active #app > .game-header .text-button { min-height: 44px; font-size: 11px; }
.game-active #app > .game-header .button { min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 11px; }
.game-active .game-layout { padding-top: 3px; gap: 27px; }
.game-active .game-main > .round-info { margin-bottom: 12px; }
.game-active .question-panel { padding: 20px 27px; }
.game-active .game-main .question-panel > .category-pill { position: absolute; top: 18px; right: 20px; margin: 0; padding: 5px 8px; font-size: 8px; }
.game-active .question-label { padding-right: 130px; font-size: 8px; line-height: 1.6; }
.game-active .question-title { margin-top: 12px; font-size: 34px; }
.game-active .question-subtitle { margin-top: 8px; font-size: 11px; }
.game-active .options-list { margin-top: 15px; gap: 8px; }
.game-active .answer-card { min-height: 58px; padding-top: 11px; padding-bottom: 11px; }
.game-active .answer-letter { width: 31px; height: 31px; }
.game-active .answer-text { font-size: 14px; }
.game-active .vote-status { padding-top: 13px; padding-bottom: 7px; }
.game-active .vote-action { margin-top: 15px; }
.game-active .vote-action .button { min-height: 45px; padding-top: 12px; padding-bottom: 12px; }
.game-active .waiting-note { margin-top: 15px; padding-top: 12px; padding-bottom: 12px; }
.game-active .host-controls { margin-top: 7px; }
.game-active .source-note { margin-top: 11px; }
.game-active .site-footer { margin-top: 7px; padding-top: 17px; padding-bottom: 20px; }

@media (min-width: 1450px) {
  .site-header { height: 132px; }
  .home { padding-top: 65px; }
  .hero-grid { min-height: 535px; }
  .home > .section-label { margin-top: 79px; }
  .site-footer { margin-top: 43px; }
}
@media (max-width: 1100px) {
  .site-header { padding: 0 36px; }
  #app { padding-left: 36px; padding-right: 36px; }
  .hero-grid { gap: 43px; }
  .hero-title { font-size: 88px; letter-spacing: -4.5px; }
  .preview-board { padding: 27px 24px 24px; }
  .search-preview { font-size: 15px; }
  .floating-note { right: -9px; }
  .site-footer { margin-left: 36px; margin-right: 36px; }
  .game-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 23px; }
  .scoreboard { padding: 21px; }
}
@media (max-width: 900px) {
  .site-header { height: 96px; }
  .home { padding-top: 31px; }
  .hero-grid { gap: 37px; grid-template-columns: 1fr 1fr; min-height: 450px; }
  .hero-title { font-size: 76px; letter-spacing: -4px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 48px; padding: 13px 18px; font-size: 11px; }
  .preview-board { padding: 23px 19px 23px; border-radius: 21px; }
  .board-topline { font-size: 8px; margin-bottom: 24px; }
  .search-preview { font-size: 14px; padding: 14px 13px; gap: 8px; }
  .search-preview svg { width: 16px; height: 16px; }
  .preview-option { font-size: 11px; gap: 9px; padding: 8px 10px; min-height: 41px; }
  .preview-note { font-size: 8px; }
  .floating-note { font-size: 10px; padding: 12px 14px; bottom: -25px; }
  .steps-grid { gap: 21px; }
  .step-card { grid-template-columns: 25px 1fr; column-gap: 10px; }
  .step-number { width: 25px; height: 25px; border-radius: 8px; font-size: 9px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 10px; }
  .nav-links { gap: 20px; font-size: 12px; }
  .live-pill { font-size: 8px; }
  .room-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
  .room-heading h1 { font-size: 36px; }
  .players-grid { grid-template-columns: 1fr; }
  .qr-card { padding: 23px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-layout > .room-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .game-layout .scoreboard { margin-top: 3px; }
  .game-layout .source-note { padding: 15px 0; }
  .question-title { font-size: 37px; }
  .question-panel { padding: 29px; }
  h1.room-heading { font-size: 39px; letter-spacing: -2px; }
}
@media (max-width: 700px) {
  .site-header { padding: 0 24px; }
  #app { padding-left: 24px; padding-right: 24px; }
  .nav-links { gap: 14px; }
  .nav-links > .live-pill { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding-bottom: 0; }
  .hero-title { font-size: 65px; max-width: 560px; }
  .hero-description { max-width: 360px; font-size: 14px; }
  .hero-actions .button { font-size: 12px; min-height: 51px; }
  .preview-board { width: calc(100% - 25px); max-width: 460px; justify-self: center; margin-top: 17px; padding: 25px; }
  .board-topline { font-size: 9px; }
  .search-preview { font-size: 16px; }
  .preview-option { font-size: 13px; min-height: 44px; }
  .preview-note { font-size: 10px; }
  .floating-note { right: -13px; }
  .home > .section-label { margin-top: 69px; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .step-card { grid-template-columns: 34px 1fr; column-gap: 15px; }
  .step-number { width: 32px; height: 32px; font-size: 11px; border-radius: 10px; }
  .step-card h3 { font-size: 14px; }
  .step-card p { font-size: 12px; max-width: 380px; }
  .site-footer { margin: 16px 24px 0; }
  .room-layout { grid-template-columns: 1fr; padding-top: 14px; }
  .room-heading { margin-bottom: 24px; }
  .room-heading h1 { font-size: 37px; }
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
  .room-sidebar > .panel { margin-top: 0; padding: 20px; }
  .qr-card { padding: 23px 15px; }
  .qr-code { width: 155px; height: 155px; }
  .qr-card .room-code { font-size: 28px; letter-spacing: 4px; }
  .room-main .lobby-actions { margin-bottom: 7px; }
  .mobile-join { display: block; }
  .step-card h2 { font-size: 14px; }
  .home-source { justify-content: flex-start; margin-top: 31px; }
}
@media (max-width: 600px) {
  .site-header { height: 83px; padding: 0 22px; gap: 15px; }
  .brand { font-size: 16px; gap: 8px; letter-spacing: -.9px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { font-size: 10px; gap: 12px; }
  .nav-links .text-button { font-size: 10px; gap: 4px; white-space: nowrap; }
  .language-button { min-width: 34px; min-height: 40px; padding: 7px; font-size: 10px; }
  .room-language { font-size: 10px; padding: 7px 10px; }
  #app { padding: 0 22px 24px; min-height: calc(100vh - 176px); }
  .home { padding-top: 28px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 20px; }
  .hero-title { font-size: 76px; letter-spacing: -4px; line-height: .98; }
  .hero-tagline { font-size: 17px; margin-top: 16px; }
  .hero-description { font-size: 13px; margin-top: 22px; line-height: 1.8; max-width: 330px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { min-height: 51px; padding: 14px 21px; }
  .hero-meta { margin-top: 22px; font-size: 10px; }
  .hero-grid { gap: 32px; }
  .preview-board { padding: 22px; border-radius: 22px; max-width: 370px; }
  .board-topline { margin-bottom: 23px; }
  .preview-options { gap: 8px; margin-top: 13px; }
  .preview-option { min-height: 41px; font-size: 12px; }
  .search-preview { font-size: 15px; padding: 16px 13px; }
  .preview-note { margin-top: 17px; font-size: 9px; }
  .floating-note { bottom: -22px; right: -13px; font-size: 10px; }
  .home > .section-label { margin-top: 63px; font-size: 9px; }
  .home > .section-label > span:first-child { max-width: 240px; }
  .home > .section-label > span:last-child { display: none; }
  .steps-grid { gap: 23px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding: 20px 0 24px; font-size: 9px; margin-left: 22px; margin-right: 22px; }
  .site-footer span:last-child { text-align: left; }
  .create-panel, .join-panel { padding: 25px 22px; border-radius: 20px; margin-top: 15px; margin-bottom: 30px; }
  .create-panel h1, .join-panel h1 { font-size: 31px; letter-spacing: -1.5px; }
  .create-panel > p, .join-panel > p { font-size: 13px; margin-bottom: 24px; }
  .back-button { margin-bottom: 11px; font-size: 12px; }
  .form-field { margin-bottom: 19px; }
  .form-field label { font-size: 11px; }
  input, select { font-size: 16px; }
  .input-row { gap: 12px; }
  .form-note { font-size: 10px; }
  .room-layout { padding-top: 15px; gap: 25px; }
  .room-heading { gap: 13px; }
  .room-heading h1 { font-size: 33px; letter-spacing: -1.5px; }
  h1.room-heading { font-size: 39px; letter-spacing: -2px; }
  .room-heading p { font-size: 12px; }
  .room-label { font-size: 9px; }
  .room-code { font-size: 32px; letter-spacing: 4px; }
  .players-grid { gap: 9px; }
  .player-chip { padding: 12px 10px; gap: 8px; border-radius: 12px; }
  .player-chip .avatar { width: 32px; height: 32px; font-size: 10px; }
  .player-name { font-size: 11px; }
  .player-status { font-size: 9px; }
  .host-badge { font-size: 8px; padding: 3px 5px; }
  .lobby-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .lobby-actions > p { max-width: none; text-align: center; font-size: 11px; }
  .room-sidebar { grid-template-columns: 1fr; }
  .room-sidebar > .panel { padding: 23px; }
  .qr-card { padding: 24px; }
  .qr-card .room-code { font-size: 37px; letter-spacing: 7px; }
  .qr-code { width: 175px; height: 175px; }
  .copy-row { max-width: 260px; margin-left: auto; margin-right: auto; }
  .screen-banner { padding: 11px 13px; font-size: 10px; flex-wrap: wrap; }
  .game-layout { padding-top: 12px; gap: 24px; }
  .game-header { gap: 10px; margin-bottom: 15px; }
  .round-info { font-size: 11px; gap: 10px; }
  .round-pips { gap: 4px; }
  .round-pip { width: 5px; height: 5px; }
  .round-pip.active { width: 13px; }
  .category-pill { font-size: 9px; padding: 6px 8px; }
  .question-panel { padding: 23px; border-radius: 17px; }
  .question-label { font-size: 8px; letter-spacing: 1.5px; }
  .question-title { font-size: 29px; letter-spacing: -1.1px; margin-top: 12px; line-height: 1.2; }
  .question-subtitle { font-size: 10px; margin-top: 11px; line-height: 1.6; }
  .question-panel::after { right: 8px; bottom: -35px; font-size: 150px; }
  .options-list { gap: 8px; margin-top: 15px; }
  .answer-card { min-height: 61px; padding: 12px 13px; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; border-radius: 12px; }
  .answer-letter { width: 30px; height: 30px; font-size: 10px; border-radius: 8px; }
  .answer-text { font-size: 13px; line-height: 1.4; }
  .answer-meta { gap: 6px; }
  .answer-rank { width: 28px; height: 28px; font-size: 11px; }
  .answer-points { min-width: 36px; font-size: 10px; }
  .answer-voters { gap: 4px; margin-top: -3px; }
  .voter-tag { font-size: 8px; padding: 3px 5px; }
  .vote-check { width: 20px; height: 20px; font-size: 10px; }
  .vote-status { font-size: 10px; padding-top: 15px; }
  .host-controls { margin-top: 19px; }
  .host-controls .button { flex: 1; min-width: 140px; font-size: 12px; }
  .host-controls > p { font-size: 10px; width: 100%; order: 2; text-align: center; max-width: none; }
  .waiting-note { font-size: 11px; padding: 12px 14px; margin-top: 17px; }
  .game-layout > aside, .game-layout > .room-sidebar { display: block; }
  .game-layout .scoreboard { padding: 21px; }
  .scoreboard-title { font-size: 14px; margin-bottom: 15px; }
  .scoreboard-row { padding: 11px 0; }
  .game-layout .source-note { padding: 0; margin-top: 14px; font-size: 9px; }
  .result-banner { padding: 13px 15px; font-size: 11px; border-radius: 11px; }
  .result-banner h3 { font-size: 14px; }
  .modal-backdrop { padding: 17px; }
  .modal { padding: 25px; border-radius: 21px; }
  .modal-header h2 { font-size: 21px; }
  .modal > h2 { font-size: 27px; letter-spacing: -1.2px; }
  .modal p { font-size: 12px; }
  .final-panel { padding: 21px 0; margin-top: 11px; }
  .trophy-mark { width: 73px; height: 73px; font-size: 32px; margin-bottom: 23px; border-radius: 22px; }
  .final-panel h1 { font-size: 32px; letter-spacing: -1.5px; }
  .winner-name { font-size: 43px; letter-spacing: -2px; }
  .vote-action { gap: 14px; align-items: stretch; flex-direction: column; margin-top: 18px; }
  .vote-action > .form-note { max-width: none; text-align: center; font-size: 10px; order: 2; }
  .vote-action > .button { width: 100%; font-size: 12px; min-height: 48px; }
  .game-main > .round-info { margin-bottom: 14px; font-size: 10px; }
  .game-main .question-panel > .category-pill { font-size: 8px; margin-bottom: 15px; }
  .answer-content .answer-voters { margin-top: 7px; }
  .answer-points small { font-size: 7px; }
  .no-voters { font-size: 9px; }
  .scoreboard-title h2 { font-size: 14px; }
  .result-banner { flex-wrap: wrap; gap: 10px; }
  .result-banner .button { width: 100%; margin-top: 4px; font-size: 11px; min-height: 45px; }
  .result-banner > .muted { width: 100%; max-width: none; text-align: left; padding-left: 35px; }
  .final-panel h1.winner-name { font-size: 36px; letter-spacing: -1.8px; }
  .final-panel .winner-score { font-size: 46px; }
  .winner-score { font-size: 13px; }
  .podium { gap: 8px; margin-top: 24px; }
  .podium-item { padding: 17px 8px; border-radius: 13px; }
  .podium-item .avatar { width: 38px; height: 38px; font-size: 13px; }
  .podium-item strong { font-size: 11px; }
  .podium-item > span { font-size: 9px; }
  .final-actions { flex-direction: column; }
  .final-actions .button { width: 100%; }
  .error-page { margin: 45px auto; }
  .error-page h1 { font-size: 32px; }
  .error-page p { font-size: 13px; }
  .game-active .site-header { height: 67px; }
  .game-active .site-header .brand { font-size: 16px; }
  .game-active .site-header .brand-mark { width: 30px; height: 30px; }
  .game-active .site-header .nav-links .text-button { font-size: 10px; }
  .game-active #app > .game-header { min-height: 44px; margin-bottom: 8px; gap: 8px; }
  .game-active #app > .game-header .text-button { font-size: 9px; gap: 5px; }
  .game-active #app > .game-header .connection-status { font-size: 8px; }
  .game-active #app > .game-header .button { min-height: 44px; font-size: 10px; padding: 8px 12px; }
  .game-active .game-layout { padding-top: 4px; gap: 23px; }
  .game-active .game-main > .round-info { margin-bottom: 12px; }
  .game-active .question-panel { padding: 19px 21px; }
  .game-active .game-main .question-panel > .category-pill { right: 15px; top: 15px; font-size: 7px; max-width: 120px; }
  .game-active .question-label { font-size: 7px; padding-right: 105px; letter-spacing: 1px; }
  .game-active .question-title { font-size: 27px; margin-top: 12px; }
  .game-active .question-subtitle { font-size: 10px; margin-top: 9px; }
  .game-active .answer-card { min-height: 57px; padding-top: 11px; padding-bottom: 11px; }
  .game-active .answer-letter { width: 30px; height: 30px; }
  .game-active .answer-text { font-size: 13px; }
  .game-active .vote-action { margin-top: 14px; gap: 8px; }
  .game-active .vote-action .button { min-height: 46px; }
  .game-active .vote-action > .form-note { font-size: 9px; }
}
@media (max-width: 365px) {
  .site-header { height: auto; min-height: 83px; padding: 14px 17px; flex-wrap: wrap; gap: 4px 12px; }
  .site-header .nav-links { flex: 1 1 100%; justify-content: space-between; }
  .game-active .site-header { height: auto; }
  #app { padding-left: 17px; padding-right: 17px; }
  .hero-title { font-size: 64px; letter-spacing: -3px; }
  .hero-actions .button { padding-left: 17px; padding-right: 17px; font-size: 11px; }
  .preview-board { padding: 18px; }
  .search-preview { font-size: 13px; }
  .preview-option { font-size: 11px; }
  .input-row { grid-template-columns: 1fr; gap: 0; }
  .players-grid { grid-template-columns: 1fr; }
  .answer-card { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .answer-letter { width: 26px; height: 28px; }
  .answer-text { font-size: 12px; }
  .question-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
