:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #aeb9dc;
  --night: #05071c;
  --navy: #080b28;
  --blue: #142b70;
  --blue-2: #1e4fc4;
  --cyan: #47d8ff;
  --gold: #ffd85d;
  --orange: #ff8b31;
  --pink: #ff3e7d;
  --green: #65edb1;
  --red: #ff4d5f;
  --glass: rgba(14, 21, 65, 0.72);
  --line: rgba(151, 182, 255, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(43, 92, 220, 0.55), transparent 42%),
    radial-gradient(circle at 8% 72%, rgba(255, 62, 125, 0.16), transparent 30%),
    radial-gradient(circle at 92% 76%, rgba(71, 216, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #080b28 0%, #05071c 58%, #030412 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(71, 216, 255, 0.8);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: 8vh;
  left: -12vw;
  background: #315eff;
}

.ambient-two {
  right: -14vw;
  bottom: -10vh;
  background: #ff3d7f;
}

.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(71, 216, 255, 0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 53px;
  background-size: 92px 92px, 137px 137px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2.1vw, 30px);
}

.loading-screen {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
}

.loading-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.loading-mark {
  width: clamp(58px, 8vw, 82px);
  height: clamp(58px, 8vw, 82px);
  border-radius: 24%;
  box-shadow: 0 14px 38px rgba(255, 89, 97, 0.24);
}

.loading-logo,
.brand-wordmark {
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.loading-logo {
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  letter-spacing: -0.035em;
}

.loading-logo strong,
.brand-wordmark strong {
  display: inline;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.screen {
  min-height: calc(100vh - clamp(28px, 4.2vw, 60px));
  animation: screen-in 0.35s ease-out both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  box-shadow: 0 10px 34px rgba(255, 89, 97, 0.24);
}

.brand-wordmark {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.icon-button,
.ghost-button,
.secondary-button,
.primary-button,
.danger-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.icon-button:hover,
.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.icon-button:active,
.ghost-button:active,
.secondary-button:active,
.primary-button:active,
.danger-button:active {
  transform: translateY(0) scale(0.98);
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(15, 24, 71, 0.82);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.icon-button svg,
.mic-button svg,
.mode-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 130px);
}

.hero-copy {
  padding: clamp(12px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(71, 216, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 66, 152, 0.22);
  color: #bdefff;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero-title {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  display: inline;
  background: linear-gradient(135deg, #fff7c4 0%, var(--gold) 30%, var(--orange) 64%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 7px 24px rgba(255, 94, 87, 0.22));
}

.hero-title::after {
  content: '';
  display: block;
  width: clamp(120px, 16vw, 220px);
  height: 5px;
  margin: 18px 0 0 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink));
  box-shadow: 0 0 22px rgba(71, 216, 255, 0.3);
}

.hero-subtitle {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.library-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stat-chip,
.support-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(12, 18, 54, 0.72);
  border: 1px solid rgba(148, 173, 236, 0.17);
  color: #d7e0ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.stat-chip strong {
  color: var(--gold);
}

.mode-panel,
.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(149, 178, 255, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(29, 51, 125, 0.58), rgba(8, 11, 40, 0.88) 52%),
    rgba(8, 11, 40, 0.9);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.mode-panel::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
}

.mode-panel {
  padding: clamp(20px, 3vw, 30px);
}

.panel-heading {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.panel-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.mode-list {
  display: grid;
  gap: 12px;
}

.mode-card {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(151, 182, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32, 53, 124, 0.58), rgba(15, 21, 64, 0.72));
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(71, 216, 255, 0.52);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), 0 0 28px rgba(71, 216, 255, 0.08);
}

.mode-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 216, 93, 0.2), rgba(255, 139, 49, 0.08));
  border: 1px solid rgba(255, 216, 93, 0.28);
}

.mode-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.mode-arrow {
  color: var(--cyan);
  font-size: 1.5rem;
}

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(6, 10, 34, 0.54);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.support-note.good {
  border: 1px solid rgba(101, 237, 177, 0.22);
}

.support-note.warn {
  border: 1px solid rgba(255, 216, 93, 0.26);
}

.support-note strong {
  color: var(--ink);
}

.setup-layout,
.settings-layout,
.info-layout,
.result-layout {
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: clamp(12px, 4vh, 50px);
}

.back-row {
  margin-bottom: 18px;
}

.ghost-button,
.secondary-button,
.primary-button,
.danger-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.ghost-button {
  background: rgba(14, 21, 65, 0.62);
  border: 1px solid var(--line);
}

.secondary-button {
  background: linear-gradient(145deg, #1a2e70, #111a4c);
  border: 1px solid rgba(136, 170, 255, 0.28);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.primary-button {
  color: #221400;
  background: linear-gradient(135deg, #fff2a5, var(--gold) 35%, var(--orange));
  box-shadow: 0 12px 28px rgba(255, 138, 49, 0.24), inset 0 1px rgba(255, 255, 255, 0.65);
}

.danger-button {
  background: rgba(255, 77, 95, 0.13);
  border: 1px solid rgba(255, 77, 95, 0.4);
  color: #ffb4bd;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-row.center {
  justify-content: center;
}

.form-panel {
  padding: clamp(22px, 4vw, 42px);
}

.section-label {
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.screen-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.screen-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #dce5ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.text-input,
.select-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(151, 182, 255, 0.24);
  border-radius: 15px;
  background: rgba(5, 9, 31, 0.72);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.26);
}

.select-input option {
  background: #0c1238;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 8, 29, 0.7);
}

.segmented button {
  height: 43px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  background: linear-gradient(135deg, #254aaf, #173071);
  color: white;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(151, 182, 255, 0.14);
}

.mini-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.game-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: calc(100vh - clamp(28px, 4.2vw, 60px));
}

.score-ribbon {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.player-score {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid rgba(151, 182, 255, 0.2);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(21, 39, 99, 0.78), rgba(8, 12, 40, 0.86));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.07);
}

.player-score.active {
  border-color: rgba(255, 216, 93, 0.7);
  box-shadow: 0 0 30px rgba(255, 216, 93, 0.14), inset 0 1px rgba(255, 255, 255, 0.08);
}

.player-score.active::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.player-meta {
  min-width: 0;
}

.player-label {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-name {
  overflow: hidden;
  margin-top: 3px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-number {
  font-family: "Arial Black", Impact, sans-serif;
  color: var(--gold);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 216, 93, 0.2);
}

.round-pod {
  min-width: 218px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(71, 216, 255, 0.28);
  border-radius: 19px;
  background: linear-gradient(160deg, rgba(24, 82, 175, 0.68), rgba(7, 15, 52, 0.9));
  box-shadow: 0 0 35px rgba(71, 216, 255, 0.08), inset 0 1px rgba(255, 255, 255, 0.08);
}

.round-pod-copy {
  display: grid;
  justify-items: center;
}

.round-pod span {
  color: #b9c7ed;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.round-pod strong {
  margin-top: 3px;
  font-size: 1.15rem;
}

.main-turn-timer {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 3px solid rgba(71, 216, 255, 0.52);
  border-radius: 50%;
  background: rgba(3, 9, 34, 0.82);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.32), 0 0 18px rgba(71, 216, 255, 0.16);
  font-variant-numeric: tabular-nums;
}

.main-turn-timer b {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 0.9;
}

.main-turn-timer small {
  margin-top: 2px;
  color: var(--cyan);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-turn-timer.urgent {
  border-color: var(--red);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.32), 0 0 24px rgba(255, 77, 95, 0.34);
  animation: timer-pulse 0.75s ease-in-out infinite;
}

.main-turn-timer.urgent b,
.main-turn-timer.urgent small {
  color: #ff9aa6;
}

.board-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(10px, 1.8vw, 22px);
}

.board-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 7%, rgba(71, 216, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(13, 23, 69, 0.38), rgba(3, 5, 18, 0.16));
  border: 1px solid rgba(151, 182, 255, 0.12);
}

.game-board-wrap {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  padding: clamp(18px, 2.5vw, 31px);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 216, 93, 0.95), rgba(255, 139, 49, 0.82) 8%, rgba(30, 79, 196, 0.95) 10%, rgba(8, 19, 66, 0.98) 90%, rgba(255, 62, 125, 0.82) 92%, rgba(255, 216, 93, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), 0 0 60px rgba(35, 84, 204, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.bulb-frame {
  position: absolute;
  inset: 7px;
  border: 2px dotted rgba(255, 240, 158, 0.66);
  border-radius: 28px;
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(255, 216, 93, 0.55));
}

.question-marquee {
  position: relative;
  padding: clamp(15px, 2vw, 21px) clamp(17px, 3vw, 34px);
  border: 1px solid rgba(116, 174, 255, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(33, 82, 190, 0.95), rgba(11, 35, 111, 0.96)),
    #12347d;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.12), inset 0 -9px 24px rgba(0, 0, 0, 0.28), 0 12px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.question-category {
  margin-bottom: 6px;
  color: #b8d9ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.question-text {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.72rem);
  line-height: 1.25;
  font-weight: 900;
  text-wrap: balance;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.25vw, 14px);
  margin-top: 16px;
}

.answer-tile {
  position: relative;
  min-height: clamp(54px, 7.2vh, 74px);
  overflow: hidden;
  border: 2px solid rgba(117, 166, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, #183d94, #0d2a70 55%, #071d51);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.1), inset 0 -8px 18px rgba(0, 0, 0, 0.24), 0 8px 16px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
}

.answer-tile.revealed {
  animation: tile-flip 0.48s cubic-bezier(.2,.75,.2,1) both;
  border-color: rgba(255, 216, 93, 0.58);
  background: linear-gradient(180deg, #2c61d5, #173d9b 55%, #0e2c78);
}

.answer-tile.missed {
  opacity: 0.68;
  filter: saturate(0.6);
}

@keyframes tile-flip {
  0% { transform: rotateX(-90deg) scale(0.96); opacity: 0; }
  100% { transform: rotateX(0) scale(1); opacity: 1; }
}

.answer-face {
  min-height: inherit;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
}

.answer-rank {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 2px solid rgba(117, 166, 255, 0.25);
  color: #9ec8ff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.revealed .answer-rank {
  color: var(--gold);
}

.answer-copy {
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  font-weight: 900;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.025em;
}

.answer-points {
  min-width: 60px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-left: 2px solid rgba(117, 166, 255, 0.25);
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.35rem;
}

.answer-hidden {
  min-height: inherit;
  display: grid;
  place-items: center;
  color: #9bc6ff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.52rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.46);
}

.board-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
}

.strike-box {
  display: flex;
  gap: 8px;
}

.strike-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(62, 10, 24, 0.58);
  border: 1px solid rgba(255, 77, 95, 0.24);
  color: rgba(255, 255, 255, 0.16);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.6rem;
}

.strike-mark.on {
  color: #fff;
  background: linear-gradient(145deg, #ff3655, #a70d2e);
  border-color: #ff7b8e;
  box-shadow: 0 0 22px rgba(255, 54, 85, 0.45);
  animation: strike-in 0.42s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes strike-in {
  0% { transform: scale(2.1) rotate(-12deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.round-bank {
  min-width: 138px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 216, 93, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(91, 61, 7, 0.92), rgba(48, 30, 4, 0.96));
  text-align: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0 24px rgba(255, 216, 93, 0.1);
}

.round-bank span {
  display: block;
  color: #ffeeb0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.round-bank strong {
  display: block;
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.65rem;
}

.multiplier-badge {
  justify-self: end;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(7, 16, 54, 0.76);
  border: 1px solid rgba(71, 216, 255, 0.3);
  color: var(--cyan);
  font-weight: 900;
}

.answer-dock {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.55fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(151, 182, 255, 0.19);
  border-radius: 20px;
  background: rgba(7, 12, 40, 0.88);
  box-shadow: 0 17px 42px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.turn-message {
  min-width: 0;
  padding-left: 7px;
}

.turn-label {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.turn-copy {
  margin-top: 4px;
  color: #e9efff;
  font-size: 0.93rem;
  line-height: 1.35;
}

.answer-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.answer-input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(112, 160, 255, 0.32);
  border-radius: 14px;
  color: #fff;
  background: rgba(3, 8, 28, 0.88);
  box-shadow: inset 0 3px 11px rgba(0, 0, 0, 0.35);
}

.answer-input::placeholder {
  color: #7583ad;
}

.answer-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.mic-button {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 216, 93, 0.42);
  border-radius: 50%;
  color: #2b1900;
  background: linear-gradient(145deg, #fff0a3, var(--gold) 40%, var(--orange));
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 139, 49, 0.22), inset 0 1px rgba(255, 255, 255, 0.65);
}

.mic-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mic-button.listening {
  animation: mic-pulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 62, 125, 0.55), 0 0 32px rgba(255, 62, 125, 0.36);
  background: linear-gradient(145deg, #ff9fbd, var(--pink), #c41751);
  color: white;
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 62, 125, 0.42); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 62, 125, 0); }
}

.submit-answer {
  height: 54px;
  padding-inline: 18px;
}

.dock-actions {
  display: flex;
  gap: 8px;
}

.small-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 24, 69, 0.72);
  cursor: pointer;
}

.round-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 16, 0.72);
  backdrop-filter: blur(10px);
}

.overlay-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(255, 216, 93, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 216, 93, 0.18), transparent 40%),
    linear-gradient(160deg, rgba(29, 50, 116, 0.98), rgba(7, 10, 35, 0.99));
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58), 0 0 55px rgba(255, 216, 93, 0.1);
  text-align: center;
}

.overlay-kicker {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overlay-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.overlay-card p {
  margin: 0 auto 24px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.big-score {
  margin: 16px 0 24px;
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(3.7rem, 12vw, 7rem);
  line-height: 0.9;
  text-shadow: 0 0 34px rgba(255, 216, 93, 0.2);
}

.result-panel {
  padding: clamp(26px, 5vw, 50px);
  text-align: center;
}

.trophy-orb {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #2b1800;
  font-size: 3.2rem;
  background: radial-gradient(circle at 32% 28%, #fff9d2, var(--gold) 44%, var(--orange));
  box-shadow: 0 20px 50px rgba(255, 139, 49, 0.28), 0 0 60px rgba(255, 216, 93, 0.15);
}

.result-title {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.result-title span {
  color: var(--gold);
}

.result-subtitle {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.final-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(640px, 100%);
  margin: 28px auto;
}

.final-score-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 17, 53, 0.7);
}

.final-score-card.winner {
  border-color: rgba(255, 216, 93, 0.52);
  background: linear-gradient(145deg, rgba(94, 61, 7, 0.46), rgba(18, 23, 63, 0.8));
}

.final-score-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.final-score-card strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 2.4rem;
}

.fast-screen {
  min-height: calc(100vh - clamp(28px, 4.2vw, 60px));
  display: grid;
  align-content: center;
}

.fast-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.fast-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.fast-title {
  text-align: center;
}

.fast-title span {
  display: block;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fast-title strong {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fast-score-pod {
  justify-self: end;
  min-width: 130px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 216, 93, 0.34);
  border-radius: 15px;
  background: rgba(58, 39, 7, 0.66);
  text-align: center;
}

.fast-score-pod span {
  display: block;
  color: #ffeeb5;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fast-score-pod strong {
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.5rem;
}

.fast-panel {
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(106, 158, 255, 0.3);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(71, 216, 255, 0.15), transparent 42%),
    linear-gradient(155deg, rgba(26, 57, 138, 0.94), rgba(7, 12, 42, 0.98) 62%);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}

.timer-ring {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 8px solid rgba(71, 216, 255, 0.16);
  outline: 2px solid rgba(71, 216, 255, 0.38);
  background: radial-gradient(circle, rgba(12, 31, 92, 0.95), rgba(4, 9, 31, 0.98));
  box-shadow: 0 0 38px rgba(71, 216, 255, 0.16), inset 0 0 24px rgba(0, 0, 0, 0.28);
}

.timer-ring.urgent {
  border-color: rgba(255, 77, 95, 0.48);
  outline-color: rgba(255, 77, 95, 0.66);
  box-shadow: 0 0 38px rgba(255, 77, 95, 0.25);
  animation: timer-pulse 0.75s ease-in-out infinite;
}

@keyframes timer-pulse {
  50% { transform: scale(1.05); }
}

.timer-value {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 2.5rem;
}

.fast-question-count {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.fast-question {
  max-width: 850px;
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 10px auto 25px;
  text-align: center;
  font-size: clamp(1.45rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.fast-entry {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  margin: 0 auto;
}

.fast-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(620px, 100%);
  margin: 22px auto 0;
}

.fast-dot {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.fast-dot.done {
  background: linear-gradient(90deg, var(--cyan), #5b84ff);
  box-shadow: 0 0 13px rgba(71, 216, 255, 0.35);
}

.fast-status {
  min-height: 24px;
  margin-top: 16px;
  color: #c6d5ff;
  text-align: center;
  font-size: 0.88rem;
}

.fast-intro {
  text-align: center;
}

.fast-intro-mark {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #231400;
  font-family: Impact, sans-serif;
  font-size: 2.5rem;
  background: linear-gradient(145deg, #fff5b9, var(--gold), var(--orange));
  box-shadow: 0 20px 50px rgba(255, 139, 49, 0.28), 0 0 60px rgba(255, 216, 93, 0.14);
}

.fast-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.fast-intro h1 span {
  color: var(--gold);
}

.fast-intro p {
  max-width: 650px;
  margin: 20px auto 26px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 26px;
}

.reveal-table {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.reveal-row {
  display: grid;
  grid-template-columns: 46px minmax(120px, 0.9fr) minmax(170px, 1.2fr) 64px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 165, 255, 0.22);
  border-radius: 13px;
  background: rgba(5, 11, 39, 0.68);
  animation: row-reveal 0.45s ease both;
}

.reveal-row:nth-child(2) { animation-delay: 0.08s; }
.reveal-row:nth-child(3) { animation-delay: 0.16s; }
.reveal-row:nth-child(4) { animation-delay: 0.24s; }
.reveal-row:nth-child(5) { animation-delay: 0.32s; }

@keyframes row-reveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal-index {
  color: #94baff;
  font-family: "Arial Black", Impact, sans-serif;
  text-align: center;
}

.reveal-spoken {
  overflow: hidden;
  color: #c5d0ef;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-match {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal-score {
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.4rem;
  text-align: right;
}

.score-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 182, 255, 0.18);
}

.score-summary-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-summary-copy strong {
  display: block;
  color: var(--gold);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 2.5rem;
}

.privacy-card {
  text-align: center;
}

.privacy-icon {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(71, 216, 255, 0.13);
  border: 1px solid rgba(71, 216, 255, 0.35);
  font-size: 2.3rem;
}

.settings-sections {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.settings-card,
.info-card {
  padding: 20px;
  border: 1px solid rgba(151, 182, 255, 0.16);
  border-radius: 17px;
  background: rgba(7, 13, 43, 0.6);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.setting-row + .setting-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(151, 182, 255, 0.12);
}

.setting-copy h3,
.info-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.setting-copy p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #202a53;
  border: 1px solid rgba(151, 182, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-track {
  background: linear-gradient(90deg, #1b8ebd, #315eff);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(24px);
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.info-card strong {
  color: var(--gold);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid rgba(151, 182, 255, 0.28);
  border-radius: 14px;
  background: rgba(7, 12, 39, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  color: #eef3ff;
  line-height: 1.45;
  animation: toast-in 0.28s ease both;
}

.toast.error {
  border-color: rgba(255, 77, 95, 0.48);
}

.toast.success {
  border-color: rgba(101, 237, 177, 0.42);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#confetti-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -30px;
  width: 11px;
  height: 18px;
  border-radius: 3px;
  animation: confetti-fall var(--duration) linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--drift), 110vh, 0) rotate(850deg); opacity: 0.95; }
}

.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;
}

.hidden {
  display: none !important;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-copy,
  .mode-panel {
    min-width: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .mode-panel {
    width: min(680px, 100%);
    margin: 0 auto 22px;
  }

  .answer-dock {
    grid-template-columns: 1fr;
  }

  .turn-message {
    padding: 0 4px;
  }

  .dock-actions {
    position: static;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.075em;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12vw, 4.6rem);
    letter-spacing: -0.06em;
  }

  .hero-title::after {
    height: 4px;
    margin-top: 13px;
  }

  .loading-brand {
    gap: 12px;
  }

  .loading-logo {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .form-grid,
  .final-scores {
    grid-template-columns: 1fr;
  }

  .score-ribbon {
    grid-template-columns: 1fr 1fr;
  }

  .round-pod {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 48px;
  }

  .player-score {
    min-height: 64px;
    padding: 10px 13px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .game-board-wrap {
    padding: 16px;
  }

  .answer-face {
    grid-template-columns: 44px 1fr auto;
  }

  .answer-rank {
    font-size: 1.1rem;
  }

  .answer-copy {
    font-size: 0.82rem;
    padding: 0 10px;
  }

  .answer-points {
    min-width: 48px;
    font-size: 1.12rem;
  }

  .board-footer {
    grid-template-columns: 1fr auto;
  }

  .multiplier-badge {
    display: none;
  }

  .strike-mark {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .answer-entry,
  .fast-entry {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .answer-entry .submit-answer,
  .fast-entry .submit-answer {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fast-entry .secondary-button {
    grid-column: 1 / -1;
  }

  .fast-header {
    grid-template-columns: auto 1fr auto;
  }

  .fast-title strong {
    font-size: 2rem;
  }

  .fast-score-pod {
    min-width: 90px;
  }

  .reveal-row {
    grid-template-columns: 34px 1fr 54px;
  }

  .reveal-spoken {
    display: none;
  }

  .form-footer,
  .score-summary {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .game-screen {
    gap: 9px;
  }

  .score-ribbon {
    min-height: 58px;
  }

  .player-score {
    min-height: 60px;
  }

  .board-stage {
    padding: 6px 14px;
  }

  .game-board-wrap {
    padding: 17px;
  }

  .question-marquee {
    padding-block: 12px;
  }

  .answer-tile {
    min-height: 49px;
  }

  .answer-dock {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
