:root {
  --ink: #f5f6ff;
  --ink-soft: #c7cce4;
  --muted: #8d98be;
  --muted-deep: #7885aa;
  --navy: #040719;
  --navy-2: #070b24;
  --panel: #0b112e;
  --panel-2: #101940;
  --cyan: #3df2ff;
  --cyan-soft: #8cf7ff;
  --violet: #8c52ff;
  --violet-soft: #ae8cff;
  --gold: #ffc857;
  --green: #43f0a4;
  --red: #ff5e75;
  --line: rgba(111, 137, 211, 0.18);
  --line-cyan: rgba(61, 242, 255, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  color-scheme: dark;
  background: var(--navy);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 84% 32%, rgba(92, 62, 235, 0.2), transparent 30rem),
    radial-gradient(circle at 7% -8%, rgba(61, 242, 255, 0.13), transparent 33rem),
    linear-gradient(145deg, #080c27 0%, #040719 62%, #02030c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(61, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 242, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

button, summary { font: inherit; }
button { color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
button:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }

[hidden] { display: none !important; }

#app { min-height: 100vh; }

.site-header,
.game-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid var(--line-cyan);
}

.game-brand { display: flex; align-items: center; gap: 13px; }
.game-brand > span:last-child { display: grid; gap: 3px; }
.game-brand strong { font-size: 0.86rem; letter-spacing: 0.11em; }
.game-brand small { color: var(--muted); font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.13em; }

.brand-lock {
  position: relative;
  display: block;
  width: 35px;
  height: 35px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: inset 0 0 20px rgba(61, 242, 255, 0.08), 0 0 18px rgba(61, 242, 255, 0.1);
}
.brand-lock::before {
  position: absolute;
  width: 12px;
  height: 10px;
  left: 10px;
  top: 4px;
  content: "";
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  transform: rotate(-45deg);
}
.brand-lock span {
  position: absolute;
  width: 10px;
  height: 12px;
  left: 11px;
  top: 16px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(-45deg);
}

.header-link,
.walk-button,
.secondary-action,
.danger-action {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
}
.header-link:hover,
.walk-button:hover:not(:disabled),
.secondary-action:hover { border-color: rgba(61, 242, 255, 0.45); color: var(--ink); background: rgba(61, 242, 255, 0.05); }

.eyebrow,
.welcome-footer,
.modal-kicker,
.system-chip,
.question-counter span,
.question-meta,
.ladder-heading,
.ladder-note,
.payout-panel > span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--cyan); }
.eyebrow > span { width: 30px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 270px;
  min-height: 58px;
  padding: 0 20px 0 23px;
  border: 1px solid var(--cyan);
  color: #021114;
  background: var(--cyan);
  font-weight: 850;
  box-shadow: 0 13px 46px rgba(61, 242, 255, 0.19);
}
.primary-action:hover { background: var(--cyan-soft); }
.primary-action--small { min-height: 52px; margin-top: 26px; }

/* Welcome */
.welcome-shell,
.result-shell {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: clamp(52px, 8vw, 118px);
  align-items: center;
  min-height: calc(100vh - 136px);
  padding: 60px 0 72px;
}

.welcome-copy { max-width: 730px; }
.welcome-copy .eyebrow { margin-bottom: 22px; }
.welcome-copy h1,
.result-card h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 6.55rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 950;
}
.welcome-copy h1 em,
.result-card h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: 0 0 38px rgba(61, 242, 255, 0.17);
}
.welcome-lede {
  max-width: 620px;
  margin: 28px 0 33px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}
.game-specs { display: flex; align-items: center; gap: 15px; margin-top: 23px; color: var(--muted); font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.06em; }
.game-specs span { display: inline-flex; align-items: baseline; gap: 6px; }
.game-specs b { color: var(--gold); font-size: 1rem; }
.game-specs i { width: 3px; height: 3px; border-radius: 50%; background: var(--violet-soft); }

.welcome-vault {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 48px 34px 36px;
  border: 1px solid rgba(140, 82, 255, 0.6);
  background: linear-gradient(160deg, rgba(18, 24, 66, 0.95), rgba(5, 8, 29, 0.94));
  box-shadow: var(--shadow);
}
.welcome-vault::before { position: absolute; inset: 8px; content: ""; border: 1px solid rgba(61, 242, 255, 0.11); pointer-events: none; }
.vault-rings { position: relative; display: grid; width: 224px; height: 224px; margin: 0 auto 22px; place-items: center; }
.vault-rings::before,
.vault-rings::after,
.vault-rings span { position: absolute; content: ""; border: 1px solid rgba(61, 242, 255, 0.48); transform: rotate(45deg); }
.vault-rings::before { width: 154px; height: 154px; }
.vault-rings::after { width: 108px; height: 108px; border-color: rgba(255, 200, 87, 0.7); }
.vault-rings span:nth-child(1) { width: 210px; height: 210px; border-color: rgba(140, 82, 255, 0.53); animation: turn 20s linear infinite; }
.vault-rings span:nth-child(2) { width: 62px; height: 62px; background: rgba(61, 242, 255, 0.06); box-shadow: 0 0 38px rgba(61, 242, 255, 0.21); }
.vault-rings span:nth-child(3) { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); transform: none; }
.welcome-vault > p { position: relative; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.16em; text-align: center; }
.welcome-vault > strong { position: relative; display: block; margin: 9px 0 30px; color: var(--gold); font-size: clamp(2.5rem, 4vw, 3.3rem); letter-spacing: -0.05em; text-align: center; }
.topic-stream { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.topic-stream span { padding: 8px 10px; border: 1px solid var(--line); color: var(--cyan-soft); font-family: var(--mono); font-size: 0.61rem; letter-spacing: 0.1em; background: rgba(61, 242, 255, 0.04); }

.welcome-footer { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; min-height: 55px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted-deep); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow-y: auto;
  padding: 24px;
  place-items: center;
  background: rgba(1, 3, 13, 0.83);
  backdrop-filter: blur(14px);
  animation: fadeIn 180ms ease-out;
}
.modal-card {
  position: relative;
  width: min(590px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(29px, 5vw, 48px);
  border: 1px solid rgba(61, 242, 255, 0.32);
  background: linear-gradient(155deg, #111941, #070b22 72%);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.7);
  animation: liftIn 220ms ease-out;
}
.modal-card::before { position: absolute; inset: 8px; content: ""; border: 1px solid rgba(140, 82, 255, 0.17); pointer-events: none; }
.modal-close { position: absolute; z-index: 2; width: 44px; height: 44px; top: 14px; right: 14px; border: 0; color: var(--muted); background: transparent; font-size: 1.7rem; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-kicker { margin: 0 0 10px; color: var(--cyan); }
.modal-card h2 { position: relative; margin: 0 0 26px; font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -0.04em; }

.rules-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.rules-list li > b { color: var(--gold); font-family: var(--mono); font-size: 0.75rem; }
.rules-list li > span { display: grid; gap: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.rules-list strong { color: var(--ink); font-size: 0.94rem; }

/* Game */
.game-shell { width: min(1440px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding-bottom: 42px; }
.game-header { min-height: 76px; }
.run-status { display: flex; align-items: center; gap: 10px; }
.run-status > span { display: grid; min-width: 100px; gap: 2px; padding: 0 15px; border-right: 1px solid var(--line); }
.run-status small { color: var(--muted-deep); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; }
.run-status b { color: var(--gold); font-size: 0.88rem; }
.walk-button { margin-left: 6px; }
.walk-button:disabled { opacity: 0.35; }

.progress-line { position: relative; z-index: 3; overflow: hidden; height: 2px; background: rgba(255, 255, 255, 0.04); }
.progress-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width 450ms ease; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 26px; }
.question-column { min-width: 0; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; margin-bottom: 20px; }
.question-counter { display: flex; align-items: baseline; gap: 10px; }
.question-counter span { color: var(--muted-deep); }
.question-counter strong { color: var(--ink); font-size: 1.35rem; letter-spacing: -0.02em; }
.question-counter i { color: var(--muted-deep); font-size: 0.75rem; font-style: normal; font-weight: 500; }

.lifelines { display: flex; gap: 7px; }
.lifelines button { display: grid; min-width: 86px; min-height: 50px; place-content: center; gap: 2px; border: 1px solid rgba(61, 242, 255, 0.25); color: var(--cyan); background: rgba(61, 242, 255, 0.04); text-align: center; }
.lifelines button:hover:not(:disabled) { border-color: var(--cyan); background: rgba(61, 242, 255, 0.1); box-shadow: inset 0 0 22px rgba(61, 242, 255, 0.08); }
.lifelines b { font-size: 0.76rem; letter-spacing: 0.07em; }
.lifelines span { color: var(--muted); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em; }
.lifelines .is-used { border-color: var(--line); opacity: 0.36; filter: grayscale(1); }

.question-panel { position: relative; overflow: hidden; min-height: 240px; border: 1px solid rgba(140, 82, 255, 0.42); background: linear-gradient(146deg, rgba(16, 24, 63, 0.97), rgba(7, 11, 33, 0.97)); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.23); }
.question-panel::after { position: absolute; width: 230px; height: 230px; top: -150px; right: -90px; content: ""; border: 1px solid rgba(61, 242, 255, 0.16); transform: rotate(45deg); box-shadow: 0 0 0 28px rgba(140, 82, 255, 0.025), 0 0 0 54px rgba(61, 242, 255, 0.018); }
.question-meta { position: relative; z-index: 1; display: flex; align-items: center; min-height: 43px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--muted); }
.question-meta span:first-child { color: var(--cyan); }
.question-meta i { width: 3px; height: 3px; margin: 0 11px; border-radius: 50%; background: var(--gold); }
.question-meta b { margin-left: auto; color: var(--gold); font-size: 0.76rem; }
.question-copy { position: relative; z-index: 1; display: grid; min-height: 196px; padding: clamp(27px, 4vw, 48px); align-content: center; }
.question-copy > p { margin: 0 0 13px; color: var(--muted-deep); font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.13em; }
.question-copy h1 { max-width: 980px; margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.35rem); line-height: 1.25; letter-spacing: -0.034em; }

.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.answer-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 78px; padding: 12px 15px; border: 1px solid var(--line); color: var(--ink-soft); background: rgba(8, 13, 38, 0.86); text-align: left; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.answer-card:hover:not(:disabled) { border-color: rgba(61, 242, 255, 0.55); background: rgba(61, 242, 255, 0.055); transform: translateY(-1px); }
.answer-letter { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(61, 242, 255, 0.3); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); color: var(--cyan); font-family: var(--mono); font-size: 0.75rem; font-weight: 800; line-height: 38px; text-align: center; }
.answer-text { font-size: clamp(0.82rem, 1.2vw, 0.96rem); line-height: 1.4; }
.answer-state { min-width: 56px; color: var(--cyan); font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em; text-align: right; }
.answer-card.is-selected { border-color: var(--gold); color: var(--ink); background: linear-gradient(100deg, rgba(255, 200, 87, 0.12), rgba(140, 82, 255, 0.07)); box-shadow: inset 3px 0 var(--gold); }
.answer-card.is-selected .answer-letter { border-color: var(--gold); color: #071022; background: var(--gold); }
.answer-card.is-selected .answer-state { color: var(--gold); }
.answer-card.is-correct { border-color: var(--green); color: var(--ink); background: rgba(67, 240, 164, 0.1); box-shadow: inset 3px 0 var(--green); }
.answer-card.is-correct .answer-letter { border-color: var(--green); color: #04170f; background: var(--green); }
.answer-card.is-correct .answer-state { color: var(--green); }
.answer-card.is-wrong { border-color: var(--red); background: rgba(255, 94, 117, 0.1); box-shadow: inset 3px 0 var(--red); }
.answer-card.is-wrong .answer-letter { border-color: var(--red); color: #20040a; background: var(--red); }
.answer-card.is-wrong .answer-state { color: var(--red); }
.answer-card.is-eliminated { border-style: dashed; opacity: 0.52; }
.answer-card:disabled:not(.is-correct):not(.is-wrong) { cursor: default; }

.lock-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; margin-top: 10px; padding: 0 0 0 4px; }
.lock-row p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.lock-button,
.next-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 182px; min-height: 48px; padding: 0 15px 0 18px; border: 1px solid var(--cyan); color: #021114; background: var(--cyan); font-weight: 800; }
.lock-button:hover:not(:disabled), .next-button:hover { background: var(--cyan-soft); }
.lock-button:disabled { border-color: var(--line); color: var(--muted-deep); background: rgba(255, 255, 255, 0.025); opacity: 0.55; }

.insight-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 126px; margin-top: 12px; padding: 18px 20px; border: 1px solid rgba(67, 240, 164, 0.4); background: rgba(67, 240, 164, 0.055); animation: liftIn 220ms ease-out; }
.insight-panel.is-wrong { border-color: rgba(255, 94, 117, 0.42); background: rgba(255, 94, 117, 0.05); }
.insight-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--green); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); color: var(--green); font-size: 1.25rem; }
.is-wrong .insight-mark { border-color: var(--red); color: var(--red); }
.insight-panel > div:nth-child(2) > p:first-child { margin: 0 0 4px; color: var(--green); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.13em; }
.insight-panel.is-wrong > div:nth-child(2) > p:first-child { color: var(--red); }
.insight-panel h2 { margin: 0; font-size: 1.1rem; }
.insight-copy { max-width: 730px; margin: 7px 0 3px; color: var(--ink-soft); font-size: 0.79rem; line-height: 1.5; }
.insight-panel small { color: var(--muted-deep); font-family: var(--mono); font-size: 0.55rem; }
.next-button { min-width: 170px; }

.ladder-panel { position: sticky; top: 18px; overflow: hidden; border: 1px solid var(--line); background: rgba(8, 12, 34, 0.86); box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2); }
.ladder-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ladder-heading b { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 0.57rem; }
.ladder-heading b::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.prize-ladder { display: grid; gap: 2px; margin: 0; padding: 12px; list-style: none; }
.prize-ladder li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; min-height: 30px; padding: 0 9px; border-left: 2px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 0.66rem; }
.prize-ladder li > span { color: var(--muted-deep); }
.prize-ladder li > b { justify-self: end; font-size: 0.71rem; }
.prize-ladder li > small { margin-left: 8px; color: var(--gold); font-size: 0.47rem; }
.prize-ladder li.is-milestone { border-left-color: rgba(255, 200, 87, 0.5); color: var(--gold); }
.prize-ladder li.is-cleared { color: var(--green); opacity: 0.82; }
.prize-ladder li.is-current { border-left-color: var(--cyan); color: #031116; background: linear-gradient(90deg, var(--cyan), #8af8ff); box-shadow: 0 0 23px rgba(61, 242, 255, 0.16); }
.prize-ladder li.is-current > span, .prize-ladder li.is-current > small { color: #155563; }
.ladder-note { display: flex; gap: 8px; align-items: center; min-height: 42px; margin: 0; padding: 0 14px; border-top: 1px solid var(--line); color: var(--muted-deep); font-size: 0.48rem; line-height: 1.4; }
.ladder-note span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mobile-ladder { display: none; }

/* Lifeline modals */
.poll-chart { display: grid; gap: 14px; margin-top: 30px; }
.poll-chart > div { display: grid; grid-template-columns: 30px 1fr 42px; gap: 11px; align-items: center; }
.poll-chart span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-cyan); color: var(--cyan); font-family: var(--mono); font-size: 0.69rem; }
.poll-chart i { overflow: hidden; height: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.poll-chart i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 13px rgba(61, 242, 255, 0.4); animation: growBar 700ms ease-out; }
.poll-chart strong { color: var(--ink-soft); font-family: var(--mono); font-size: 0.72rem; text-align: right; }
.poll-chart .is-zero { opacity: 0.75; }
.modal-footnote { margin: 27px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.lifeline-modal blockquote { position: relative; margin: 24px 0 28px; padding: 25px 27px; border-left: 2px solid var(--cyan); color: var(--ink); background: rgba(61, 242, 255, 0.05); font-size: 1.12rem; line-height: 1.65; }
.analyst-signoff { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin: 0; }
.analyst-signoff span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--violet-soft); color: var(--violet-soft); font-family: var(--mono); font-size: 0.7rem; }
.analyst-signoff b { font-size: 0.78rem; }
.analyst-signoff small { color: var(--muted); font-size: 0.66rem; }
.walk-copy { color: var(--ink-soft); line-height: 1.65; }
.walk-copy strong { color: var(--gold); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 27px; }
.danger-action { border-color: rgba(255, 94, 117, 0.55); color: #fff; background: rgba(255, 94, 117, 0.11); }
.danger-action:hover { border-color: var(--red); background: rgba(255, 94, 117, 0.2); }

/* Results */
.system-chip { padding: 8px 11px; border: 1px solid var(--line); color: var(--green); }
.result-card { position: relative; overflow: hidden; display: grid; width: min(880px, 100%); min-height: calc(100vh - 122px); margin: 0 auto; padding: clamp(54px, 8vw, 94px) 0 70px; align-content: center; justify-items: center; text-align: center; }
.result-card .eyebrow { margin-bottom: 20px; }
.result-card .result-copy { max-width: 600px; margin: 26px auto; color: var(--ink-soft); line-height: 1.7; }
.result-rings { position: absolute; z-index: -1; display: grid; width: 560px; height: 560px; top: 45%; left: 50%; place-items: center; opacity: 0.17; transform: translate(-50%, -50%); }
.result-rings::before, .result-rings::after, .result-rings span { position: absolute; content: ""; border: 1px solid var(--violet); transform: rotate(45deg); }
.result-rings::before { width: 420px; height: 420px; }
.result-rings::after { width: 320px; height: 320px; border-color: var(--cyan); }
.result-rings span:first-child { width: 520px; height: 520px; animation: turn 28s linear infinite; }
.result-rings span:last-child { width: 190px; height: 190px; border-color: var(--gold); }
.payout-panel { display: grid; min-width: min(410px, 100%); margin: 2px auto 28px; padding: 18px 28px; border: 1px solid rgba(255, 200, 87, 0.43); background: rgba(255, 200, 87, 0.055); }
.payout-panel > span { color: var(--muted); }
.payout-panel > strong { margin: 5px 0; color: var(--gold); font-size: clamp(2.3rem, 6vw, 3.7rem); letter-spacing: -0.05em; }
.payout-panel > small { color: var(--muted); font-family: var(--mono); font-size: 0.64rem; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.sr-live { position: fixed; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes turn { to { transform: rotate(405deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes liftIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes growBar { from { width: 0; } }

@media (max-width: 1040px) {
  .game-layout { grid-template-columns: minmax(0, 1fr) 236px; gap: 24px; }
  .answer-card { grid-template-columns: 38px minmax(0, 1fr); }
  .answer-state { grid-column: 2; min-width: 0; text-align: left; }
  .insight-panel { grid-template-columns: 46px minmax(0, 1fr); }
  .next-button { grid-column: 2; justify-self: start; margin-top: 3px; }
}

@media (max-width: 820px) {
  .welcome-shell, .result-shell, .game-shell { width: min(100% - 32px, 680px); }
  .welcome-grid { grid-template-columns: 1fr; gap: 52px; padding-top: 50px; padding-bottom: 110px; }
  .welcome-vault { min-height: 450px; }
  .welcome-footer { gap: 18px; }
  .welcome-footer span:last-child { display: none; }
  .game-layout { grid-template-columns: 1fr; }
  .ladder-panel { display: none; }
  .mobile-ladder { display: block; margin: 0 0 12px; border: 1px solid var(--line); background: rgba(8, 12, 34, 0.82); }
  .mobile-ladder summary { display: flex; justify-content: space-between; min-height: 48px; padding: 0 15px; align-items: center; color: var(--muted); font-size: 0.73rem; list-style: none; }
  .mobile-ladder summary::-webkit-details-marker { display: none; }
  .mobile-ladder summary::before { content: "+"; margin-right: 9px; color: var(--cyan); font-family: var(--mono); }
  .mobile-ladder[open] summary::before { content: "−"; }
  .mobile-ladder summary b { margin-left: auto; color: var(--gold); }
  .prize-ladder--compact { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .prize-ladder--compact li { grid-template-columns: 24px 1fr; }
  .prize-ladder--compact li small { display: none; }
  .run-status > span:first-child { display: none; }
}

@media (max-width: 640px) {
  .site-header, .game-header { min-height: 70px; }
  .game-brand strong { font-size: 0.73rem; }
  .game-brand small { display: none; }
  .brand-lock { width: 31px; height: 31px; }
  .brand-lock::before { left: 8px; top: 3px; }
  .brand-lock span { left: 9px; top: 14px; }
  .welcome-copy h1, .result-card h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .welcome-lede { margin-top: 23px; }
  .primary-action { width: 100%; }
  .game-specs { flex-wrap: wrap; gap: 9px 12px; }
  .game-toolbar { align-items: flex-end; }
  .lifelines button { min-width: 66px; min-height: 48px; }
  .run-status > span { min-width: auto; padding: 0 10px; }
  .walk-button { padding: 0 11px; font-size: 0.72rem; }
  .question-meta { flex-wrap: wrap; min-height: 51px; gap: 5px; padding: 9px 16px; line-height: 1.4; }
  .question-meta i { margin: 0 5px; }
  .question-meta b { width: 100%; margin-left: 0; }
  .question-copy { min-height: 180px; padding: 26px 20px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-card { min-height: 70px; }
  .lock-row { display: grid; gap: 12px; padding: 16px 0; }
  .lock-button { width: 100%; }
  .insight-panel { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 17px 15px; }
  .insight-mark { width: 34px; height: 34px; }
  .next-button { width: 100%; }
  .prize-ladder--compact { grid-template-columns: repeat(2, 1fr); }
  .modal-backdrop { padding: 12px; }
  .modal-card { max-height: calc(100vh - 24px); }
  .modal-actions, .result-actions { display: grid; width: 100%; }
  .modal-actions button, .result-actions button { width: 100%; }
  .payout-panel { min-width: 100%; }
  .system-chip { display: none; }
}

@media (max-width: 390px) {
  .game-shell { width: calc(100% - 22px); }
  .game-header { flex-wrap: wrap; gap: 9px; min-height: auto; padding: 10px 0; }
  .game-header .game-brand { width: 100%; justify-content: center; min-height: 38px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .run-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 8px; }
  .run-status > span { border-right: 0; }
  .walk-button { margin-left: 0; }
  .lifelines { gap: 4px; }
  .lifelines button { min-width: 61px; padding: 0 4px; }
  .question-counter strong { font-size: 1.1rem; }
  .run-status small { font-size: 0.47rem; }
  .run-status b { font-size: 0.76rem; }
  .answer-card { grid-template-columns: 34px minmax(0, 1fr); padding: 11px; }
  .answer-letter { width: 32px; height: 32px; line-height: 32px; }
}

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

@media (forced-colors: active) {
  button, .question-panel, .ladder-panel, .modal-card, .answer-card { forced-color-adjust: auto; }
  .answer-card.is-selected, .answer-card.is-correct, .answer-card.is-wrong { border-width: 3px; }
}
