:root {
  --bg: #050816;
  --bg-deep: #02040c;
  --panel: #0d1430;
  --panel-2: #111b3c;
  --panel-3: #17234a;
  --text: #f7f9ff;
  --text-soft: #cbd3eb;
  --muted: #929dbc;
  --cyan: #4de6ff;
  --cyan-bright: #a4f5ff;
  --violet: #8e66ff;
  --gold: #ffc857;
  --green: #3ddc97;
  --red: #ff6b7a;
  --focus: #fff36b;
  --line: rgba(126, 151, 216, 0.2);
  --cyan-line: rgba(77, 230, 255, 0.3);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --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(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 82% 22%, rgba(142, 102, 255, 0.17), transparent 29rem),
    radial-gradient(circle at 8% -8%, rgba(77, 230, 255, 0.14), transparent 32rem),
    linear-gradient(145deg, #09102b 0%, var(--bg) 55%, var(--bg-deep) 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible + label,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(77, 230, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 230, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(77, 230, 255, 0.028) 50%, transparent);
  background-size: 44% 100%;
  animation: scan 16s linear infinite;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 11px 16px;
  color: #051116;
  background: var(--focus);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--cyan-line);
}

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

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: inset 0 0 18px rgba(77, 230, 255, 0.08), 0 0 22px rgba(77, 230, 255, 0.12);
}

.brand-mark::before {
  position: absolute;
  top: 6px;
  left: 11px;
  width: 12px;
  height: 9px;
  content: "";
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: rotate(-45deg);
}

.brand-mark::after {
  position: absolute;
  top: 18px;
  left: 11px;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(-45deg);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 0.86rem;
  letter-spacing: 0.13em;
}

.brand-copy small,
.topbar-status,
.eyebrow,
.question-kicker,
.question-source,
.ladder-label,
.result-kicker,
.mobile-progress {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-status {
  padding-right: 15px;
  border-right: 1px solid var(--line);
}

.text-button,
.secondary-button,
.walk-button,
.ladder-toggle {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
}

.text-button:hover,
.secondary-button:hover:not(:disabled),
.walk-button:hover:not(:disabled),
.ladder-toggle:hover {
  border-color: rgba(77, 230, 255, 0.54);
  color: var(--text);
  background: rgba(77, 230, 255, 0.055);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--cyan);
  color: #021114;
  background: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 42px rgba(77, 230, 255, 0.18);
}

.primary-button:hover:not(:disabled) {
  background: var(--cyan-bright);
}

.primary-button:disabled {
  opacity: 0.42;
}

.button-arrow {
  margin-left: 34px;
  font-family: var(--mono);
  font-size: 1.05rem;
}

/* Welcome */
.welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 82px);
  min-height: calc(100dvh - 82px);
  padding: 52px 0 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--cyan);
}

.eyebrow::before {
  width: 31px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.welcome h1,
.result-card h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.welcome h1 span,
.result-card h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: 0 0 38px rgba(77, 230, 255, 0.17);
}

.welcome-lede {
  max-width: 650px;
  margin: 27px 0 32px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 23px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-specs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.game-specs b {
  color: var(--gold);
  font-size: 0.93rem;
}

.vault-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 43px 32px 34px;
  border: 1px solid rgba(142, 102, 255, 0.61);
  background: linear-gradient(160deg, rgba(17, 27, 66, 0.97), rgba(5, 8, 28, 0.96));
  box-shadow: var(--shadow);
}

.vault-card::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid rgba(77, 230, 255, 0.11);
  pointer-events: none;
}

.vault-orbit {
  position: relative;
  display: grid;
  width: 225px;
  height: 225px;
  margin: 0 auto 23px;
  place-items: center;
}

.vault-orbit::before,
.vault-orbit::after,
.vault-orbit span {
  position: absolute;
  content: "";
  border: 1px solid rgba(77, 230, 255, 0.5);
  transform: rotate(45deg);
}

.vault-orbit::before {
  width: 160px;
  height: 160px;
}

.vault-orbit::after {
  width: 108px;
  height: 108px;
  border-color: rgba(255, 200, 87, 0.75);
}

.vault-orbit span:nth-child(1) {
  width: 215px;
  height: 215px;
  border-color: rgba(142, 102, 255, 0.62);
  animation: orbit 22s linear infinite;
}

.vault-orbit span:nth-child(2) {
  width: 62px;
  height: 62px;
  background: rgba(77, 230, 255, 0.06);
  box-shadow: 0 0 40px rgba(77, 230, 255, 0.23);
}

.vault-orbit span:nth-child(3) {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px var(--gold);
  transform: none;
}

.vault-label,
.vault-value,
.topic-pills {
  position: relative;
}

.vault-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.vault-value {
  display: block;
  margin: 8px 0 30px;
  color: var(--gold);
  font-size: clamp(2.7rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
  text-align: center;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.topic-pills span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--cyan-bright);
  background: rgba(77, 230, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

/* Game */
.game-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
  padding: 26px 0 46px;
}

.stage {
  min-width: 0;
}

.mobile-progress {
  display: none;
}

.question-panel {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(77, 230, 255, 0.26);
  background: linear-gradient(155deg, rgba(17, 27, 60, 0.96), rgba(8, 13, 36, 0.98));
  box-shadow: var(--shadow);
}

.question-panel::before {
  position: absolute;
  top: -1px;
  left: 24px;
  width: 90px;
  height: 2px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(77, 230, 255, 0.75);
}

.question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.question-kicker {
  margin: 0;
  color: var(--cyan);
}

.question-value {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.03rem;
  font-weight: 900;
}

.question-title {
  max-width: 860px;
  min-height: 2.7em;
  margin: 0 0 29px;
  font-size: clamp(1.42rem, 2.7vw, 2.05rem);
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.answer-set {
  padding: 0;
  margin: 0;
  border: 0;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-option {
  position: relative;
  min-width: 0;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-label {
  position: relative;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 18px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(7, 12, 34, 0.77);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-label::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: transparent;
}

.answer-letter {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(77, 230, 255, 0.38);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 900;
}

.answer-text {
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.36;
}

.answer-state {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-option:not(.is-disabled) .answer-label:hover {
  border-color: rgba(77, 230, 255, 0.52);
  background: rgba(77, 230, 255, 0.055);
  transform: translateY(-1px);
}

.answer-option.is-selected .answer-label {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(255, 200, 87, 0.09);
}

.answer-option.is-selected .answer-label::after {
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}

.answer-option.is-selected .answer-letter {
  border-color: var(--gold);
  color: #241a02;
  background: var(--gold);
}

.answer-option.is-locked .answer-label {
  animation: locked 760ms ease-in-out infinite alternate;
}

.answer-option.is-correct .answer-label {
  border-color: var(--green);
  color: var(--text);
  background: rgba(61, 220, 151, 0.1);
}

.answer-option.is-correct .answer-label::after {
  background: var(--green);
}

.answer-option.is-correct .answer-letter {
  border-color: var(--green);
  color: #041811;
  background: var(--green);
}

.answer-option.is-wrong .answer-label {
  border-color: var(--red);
  color: var(--text);
  background: rgba(255, 107, 122, 0.1);
}

.answer-option.is-wrong .answer-label::after {
  background: var(--red);
}

.answer-option.is-wrong .answer-letter {
  border-color: var(--red);
  color: #200409;
  background: var(--red);
}

.answer-option.is-eliminated .answer-label {
  opacity: 0.35;
  border-style: dashed;
}

.answer-option.is-disabled .answer-label {
  cursor: default;
}

.game-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.lifeline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lifeline {
  display: grid;
  grid-template-columns: 32px auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 6px 13px 6px 8px;
  border: 1px solid rgba(142, 102, 255, 0.42);
  color: var(--text-soft);
  background: rgba(142, 102, 255, 0.055);
  text-align: left;
}

.lifeline-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(77, 230, 255, 0.34);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 900;
}

.lifeline-name {
  display: grid;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.lifeline-name small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifeline:hover:not(:disabled) {
  border-color: var(--violet);
  background: rgba(142, 102, 255, 0.12);
}

.lifeline.is-used {
  opacity: 0.4;
  text-decoration: line-through;
}

.decision-group {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.lock-button {
  min-width: 148px;
}

.question-source {
  margin: 20px 0 0;
  color: #7380a5;
  letter-spacing: 0.08em;
  text-transform: none;
}

.feedback-panel,
.lifeline-result {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 25, 0.7);
}

.feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.feedback-panel.is-correct {
  border-color: rgba(61, 220, 151, 0.42);
}

.feedback-panel.is-wrong {
  border-color: rgba(255, 107, 122, 0.42);
}

.feedback-copy h2,
.lifeline-result h2 {
  margin: 0 0 7px;
  font-size: 1.08rem;
}

.feedback-copy h2 {
  color: var(--green);
}

.feedback-panel.is-wrong .feedback-copy h2 {
  color: var(--red);
}

.feedback-copy p,
.lifeline-result p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lifeline-result {
  position: relative;
  border-color: rgba(142, 102, 255, 0.44);
}

.lifeline-result h2 {
  color: var(--cyan);
}

.dismiss-result {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
}

.poll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  align-items: end;
  height: 150px;
  margin-top: 18px;
}

.poll-column {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  height: 100%;
  color: var(--text-soft);
  text-align: center;
}

.poll-track {
  position: relative;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.05);
}

.poll-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 2px;
  background: linear-gradient(var(--cyan), var(--violet));
}

.poll-percent {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.poll-letter {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
}

/* Ladder */
.ladder-panel {
  position: sticky;
  top: 18px;
  padding: 22px 19px;
  border: 1px solid rgba(142, 102, 255, 0.4);
  background: linear-gradient(160deg, rgba(17, 27, 60, 0.96), rgba(5, 8, 27, 0.98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.29);
}

.ladder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 5px 16px;
  border-bottom: 1px solid var(--line);
}

.ladder-head h2 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}

.ladder-label {
  color: var(--cyan);
  font-size: 0.54rem;
}

.prize-ladder {
  display: grid;
  gap: 2px;
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
}

.prize-ladder li {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 2px 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.prize-ladder li > span {
  color: #647093;
}

.prize-ladder li > b {
  font-size: 0.75rem;
  text-align: right;
}

.prize-ladder li > small {
  color: var(--gold);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.prize-ladder li.is-cleared {
  color: var(--green);
}

.prize-ladder li.is-milestone:not(.is-current) {
  color: var(--gold);
}

.prize-ladder li.is-current {
  position: relative;
  color: #041116;
  background: var(--cyan);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(77, 230, 255, 0.17);
}

.prize-ladder li.is-current > span,
.prize-ladder li.is-current > small {
  color: #17434a;
}

.ladder-note {
  margin: 14px 5px 0;
  color: #6f7b9e;
  font-family: var(--mono);
  font-size: 0.54rem;
  line-height: 1.55;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow-y: auto;
  padding: 24px;
  place-items: center;
  background: rgba(1, 3, 12, 0.84);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  animation: fade-in 160ms ease-out;
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(29px, 5vw, 46px);
  border: 1px solid rgba(77, 230, 255, 0.37);
  background: linear-gradient(155deg, var(--panel-2), #070c22);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 1.3rem;
}

.modal-card .eyebrow {
  margin-bottom: 14px;
  font-size: 0.58rem;
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: -0.04em;
}

.modal-intro {
  margin: 0 0 24px;
  color: var(--text-soft);
  line-height: 1.62;
}

.rules-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  line-height: 1.5;
}

.rules-list b {
  color: var(--cyan);
  font-family: var(--mono);
}

.rules-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.mobile-ladder-backdrop {
  display: none;
}

/* Results */
.result-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 82px);
  min-height: calc(100dvh - 82px);
  padding: 54px 0 72px;
}

.result-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
}

.result-card h1 {
  font-size: clamp(3.2rem, 6.8vw, 6rem);
}

.result-message {
  max-width: 650px;
  margin: 26px 0 31px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.68;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.payout-card {
  position: relative;
  padding: 34px 30px;
  border: 1px solid rgba(255, 200, 87, 0.52);
  background: linear-gradient(160deg, rgba(36, 29, 19, 0.95), rgba(8, 12, 30, 0.98));
  box-shadow: var(--shadow);
}

.payout-card::before {
  position: absolute;
  top: 9px;
  right: 9px;
  bottom: 9px;
  left: 9px;
  content: "";
  border: 1px solid rgba(255, 200, 87, 0.13);
}

.payout-card > * {
  position: relative;
}

.payout-card > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payout-card strong {
  display: block;
  margin: 8px 0 25px;
  color: var(--gold);
  font-size: clamp(3rem, 5vw, 4.35rem);
  letter-spacing: -0.07em;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 200, 87, 0.19);
}

.result-stat {
  display: grid;
  gap: 4px;
}

.result-stat small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-stat b {
  font-size: 1.05rem;
}

.noscript-card {
  width: min(600px, calc(100% - 40px));
  margin: 80px auto;
  padding: 30px;
  border: 1px solid var(--cyan-line);
  background: var(--panel);
}

@keyframes orbit {
  to { transform: rotate(405deg); }
}

@keyframes scan {
  from { background-position: -80% 0; }
  to { background-position: 180% 0; }
}

@keyframes locked {
  from { box-shadow: inset 0 0 0 rgba(255, 200, 87, 0); }
  to { box-shadow: inset 0 0 28px rgba(255, 200, 87, 0.16); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .welcome-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .welcome-grid {
    padding-top: 66px;
  }

  .vault-card {
    min-height: auto;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .ladder-panel {
    display: none;
  }

  .mobile-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-progress strong {
    color: var(--gold);
    font-size: 0.7rem;
  }

  .mobile-ladder-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    overflow-y: auto;
    padding: 20px;
    place-items: center;
    background: rgba(1, 3, 12, 0.86);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
  }

  .mobile-ladder-backdrop .ladder-panel {
    position: relative;
    top: auto;
    display: block;
    width: min(420px, 100%);
  }

  .mobile-ladder-close {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--panel);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1240px);
  }

  .topbar {
    min-height: 72px;
  }

  .brand-copy strong {
    font-size: 0.72rem;
  }

  .brand-copy small,
  .topbar-status {
    display: none;
  }

  .text-button {
    padding: 0 12px;
  }

  .welcome-grid,
  .result-grid {
    min-height: calc(100dvh - 72px);
    padding: 45px 0 50px;
  }

  .welcome h1,
  .result-card h1 {
    font-size: clamp(3.15rem, 17vw, 5rem);
  }

  .vault-card {
    padding: 35px 23px 29px;
  }

  .vault-orbit {
    width: 200px;
    height: 200px;
  }

  .vault-orbit span:nth-child(1) {
    width: 190px;
    height: 190px;
  }

  .game-layout {
    padding-top: 16px;
  }

  .question-panel {
    padding: 26px 18px 21px;
  }

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

  .answer-label {
    min-height: 66px;
  }

  .game-controls,
  .feedback-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .lifeline-group,
  .decision-group {
    width: 100%;
  }

  .lifeline {
    flex: 1 1 calc(33.33% - 6px);
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 88px;
    padding: 8px 5px;
    text-align: center;
  }

  .lifeline-name small {
    display: none;
  }

  .decision-group > * {
    flex: 1 1 0;
  }

  .feedback-panel {
    display: grid;
    gap: 16px;
  }

  .feedback-panel .primary-button {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark::before,
  .brand-mark::after {
    left: 9px;
  }

  .hero-actions > *,
  .result-actions > * {
    width: 100%;
  }

  .button-arrow {
    margin-left: auto;
  }

  .game-specs {
    display: grid;
  }

  .question-header {
    display: grid;
  }

  .question-value {
    justify-self: start;
  }

  .answer-label {
    grid-template-columns: 39px minmax(0, 1fr);
  }

  .answer-state {
    grid-column: 2;
  }

  .decision-group {
    flex-direction: column-reverse;
  }

  .poll-grid {
    gap: 7px;
  }
}

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