:root {
  --ink: #0a0b0b;
  --ink-soft: #171918;
  --paper: #efeee7;
  --paper-muted: #aaa99f;
  --line: #343734;
  --acid: #caff3d;
  --acid-dark: #11170a;
  --danger: #ff654f;
  --header-height: 84px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  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%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 3.5vw;
  border-bottom: 1px solid rgba(239, 238, 231, 0.16);
  background: rgba(10, 11, 11, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.brand.is-secret-unlocking .brand-mark {
  animation: secret-logo-unlock 420ms steps(2, end) infinite;
}

.brand-copy {
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(202, 255, 61, 0.11);
}

.app,
.view {
  min-height: 100svh;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(70px, 0.16fr) minmax(390px, 0.9fr) minmax(350px, 0.68fr);
  align-items: stretch;
  padding-top: var(--header-height);
  overflow: hidden;
}

.intro::before {
  position: absolute;
  right: -2vw;
  bottom: -13vw;
  width: 34vw;
  height: 34vw;
  border: 1px solid rgba(239, 238, 231, 0.12);
  border-radius: 50%;
  content: "";
}

.intro-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding: 4vw 2vw;
  border-right: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.intro-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 120px) clamp(28px, 5vw, 84px);
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(70px, 8.2vw, 146px);
  font-weight: 900;
  line-height: 0.77;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.intro h1 span {
  display: block;
  color: var(--acid);
}

.intro-text {
  max-width: 520px;
  margin: clamp(32px, 5vw, 62px) 0 32px;
  color: #c2c1b8;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.next-button {
  border: 0;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 340px);
  padding: 19px 20px;
  background: var(--acid);
  color: var(--acid-dark);
  transition: transform 180ms ease, background 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  background: #d6ff68;
}

.primary-button span {
  font-size: 21px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.system-message,
.selection-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.threshold-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 7vw 3vw 5vw;
  border-left: 1px solid var(--line);
  background: var(--ink-soft);
  animation: panel-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.threshold-kicker,
.threshold-note {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.threshold-kicker {
  color: var(--acid);
}

.threshold-art strong {
  display: block;
  margin: 18px 0 26px;
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(138px, 22vw, 400px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 2px var(--paper);
}

.threshold-note {
  max-width: 280px;
  color: var(--paper-muted);
  line-height: 1.7;
}

.edition-stamp {
  position: absolute;
  right: 3vw;
  bottom: 2vw;
  margin: 0;
  color: rgba(239, 238, 231, 0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.quiz {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) clamp(22px, 5vw, 76px) 52px;
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-label {
  margin-right: 18px;
  color: var(--acid);
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-stage {
  padding-top: clamp(32px, 4vw, 58px);
}

.question-stage.is-changing {
  animation: question-in 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-index {
  margin: 0 0 18px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.question-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.question-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.question-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(239, 238, 231, 0.08);
  pointer-events: none;
  content: "";
}

.question-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.question-panel {
  width: min(1080px, calc(100% - clamp(0px, 4vw, 80px)));
  margin: clamp(34px, 4.5vw, 64px) auto 0;
  min-width: 0;
}

.question-stage h2 {
  max-width: 1000px;
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.answer-option {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 18px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: color 170ms ease, background 170ms ease, transform 170ms ease;
}

.answer-option:hover {
  z-index: 1;
  background: #1b1e1b;
  transform: translateY(-2px);
}

.answer-option.is-selected {
  background: var(--acid);
  color: var(--acid-dark);
}

.answer-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.answer-copy {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 680;
  line-height: 1.4;
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.keyboard-hint {
  margin: 0;
  color: var(--paper-muted);
  font-size: 12px;
}

.next-button {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 16px 18px;
  background: var(--paper);
  color: var(--ink);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.next-button:hover:not(:disabled) {
  background: var(--acid);
  transform: translateX(3px);
}

.next-button:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.selection-message {
  text-align: right;
}

.result {
  position: relative;
  display: block;
  padding: calc(var(--header-height) + 56px) 24px 60px;
  overflow: hidden;
}

.result.is-pass {
  background: var(--acid);
  color: var(--acid-dark);
}

.result.is-fail {
  background: var(--ink);
}

.result-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: min(70vw, 900px);
  line-height: 0.75;
  -webkit-text-stroke: 1px rgba(10, 11, 11, 0.18);
  pointer-events: none;
}

.is-fail .result-watermark {
  -webkit-text-stroke-color: rgba(239, 238, 231, 0.08);
}

.result-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  animation: result-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result h2 {
  max-width: 690px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(70px, 11vw, 154px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.result-summary {
  max-width: 600px;
  margin: 32px 0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 760px;
}

.score-line strong {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.voucher {
  max-width: 760px;
  margin-top: 34px;
  padding: 24px;
  border: 2px solid var(--acid-dark);
  background: rgba(239, 238, 231, 0.22);
}

.voucher-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.voucher-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
}

.voucher code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
}

.voucher-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 17px 18px;
  background: var(--acid-dark);
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.voucher-link:hover {
  transform: translateY(-2px);
  background: var(--paper);
  color: var(--ink);
}

.voucher button,
.secondary-button {
  padding: 13px 17px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.voucher p {
  margin: 16px 0 0;
  font-size: 13px;
}

.result-secret {
  max-width: 760px;
  margin-top: 20px;
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--acid-dark);
}

.result-secret p {
  margin: 0 0 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-secret strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.15;
}

.result-secret span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.level-two-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: min(100%, 1040px);
  margin-top: clamp(42px, 6vw, 78px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 2px solid var(--acid-dark);
  border-bottom: 2px solid var(--acid-dark);
}

.level-two-entry p {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.level-two-entry h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(72px, 11vw, 150px);
  line-height: 0.76;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.level-two-entry > div > span {
  display: block;
  max-width: 570px;
  margin-top: 28px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
}

.level-two-entry-button {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 2px solid var(--acid-dark);
  background: var(--acid-dark);
  color: var(--acid);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.level-two-entry-button:hover {
  transform: translateY(-3px);
  background: transparent;
  color: var(--acid-dark);
}

body.level-two-mode {
  background: #030205;
}

body.level-two-mode .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.level-two {
  --level-cyan: #61fff6;
  --level-magenta: #e34fff;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #030205;
  color: #f6f5f0;
}

.level-two-cinema {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #030205;
}

.level-two-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  margin: 0;
  opacity: 0;
  filter: saturate(0.35) brightness(0.28) contrast(1.18);
  transform: scale(1.12);
}

.level-two-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.level-two-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 2, 5, 0.82) 0%, rgba(3, 2, 5, 0.14) 48%, rgba(3, 2, 5, 0.58) 100%),
    linear-gradient(0deg, rgba(3, 2, 5, 0.88) 0%, transparent 52%, rgba(3, 2, 5, 0.44) 100%);
}

.level-two-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.13;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(97, 255, 246, 0.13) 4px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.level-two-hud {
  position: absolute;
  inset: clamp(20px, 3vw, 42px) clamp(20px, 3.5vw, 54px) auto;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 245, 240, 0.38);
  opacity: 0;
  color: var(--level-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.level-two-hud > span:nth-child(2) {
  color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  line-height: 0.7;
  -webkit-text-stroke: 1px var(--level-cyan);
}

.level-two-hud button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid currentColor;
  background: rgba(3, 2, 5, 0.55);
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.level-two-title {
  position: absolute;
  bottom: clamp(28px, 5vw, 70px);
  left: clamp(20px, 4vw, 66px);
  z-index: 2;
  max-width: 58vw;
  pointer-events: none;
}

.level-two-title p,
.level-two-title span {
  display: block;
  margin: 0;
  opacity: 0;
  color: var(--level-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(18px);
}

.level-two-title h2 {
  margin: 6px 0 14px;
  opacity: 0;
  color: #f5f3ee;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(128px, 21vw, 350px);
  line-height: 0.68;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 0 48px rgba(97, 255, 246, 0.2);
  transform: translateY(34px);
}

.level-two-challenge {
  position: absolute;
  right: clamp(20px, 4vw, 66px);
  bottom: clamp(24px, 5vw, 70px);
  z-index: 7;
  width: min(420px, 38vw);
  max-height: calc(100svh - 130px);
  padding: clamp(24px, 3vw, 38px);
  overflow-y: auto;
  border-top: 3px solid var(--level-cyan);
  background: rgba(4, 3, 8, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateX(48px);
}

.level-two-challenge .bonus-terminal-head {
  color: var(--level-cyan);
}

.level-two-challenge .bonus-kicker {
  margin-top: 28px;
  color: var(--level-magenta);
}

.level-two-challenge h3 {
  margin: 0 0 16px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.level-two-challenge > p:not(.bonus-kicker, .bonus-status) {
  margin: 0;
  color: #cbc9d0;
  font-size: 14px;
  line-height: 1.55;
}

.level-two-sound {
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid rgba(246, 245, 240, 0.2);
  border-bottom: 1px solid rgba(246, 245, 240, 0.2);
}

.level-two-sound span {
  display: block;
  margin-bottom: 4px;
  color: var(--level-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.level-two-sound strong {
  font-size: 15px;
}

.level-two-challenge .level-sound-display {
  height: 54px;
  margin-top: 12px;
  border-color: rgba(97, 255, 246, 0.26);
}

.level-two-challenge .level-sound-display.is-playing span {
  background: var(--level-cyan);
}

.level-two-challenge .bonus-button {
  border-color: var(--level-cyan);
  background: var(--level-cyan);
  color: #030205;
}

.level-two-challenge .bonus-button:hover:not(:disabled) {
  color: var(--level-cyan);
}

.level-two-challenge .bonus-status {
  color: var(--level-cyan);
}

.is-entering .level-two-image {
  animation: level-image-in 3.4s 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-entering .level-two-hud {
  animation: level-copy-in 520ms 500ms ease-out forwards;
}

.is-entering .level-two-title p {
  animation: level-copy-in 700ms 1.45s ease-out forwards;
}

.is-entering .level-two-title h2 {
  animation: level-title-in 1s 1.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-entering .level-two-title span {
  animation: level-copy-in 700ms 2.65s ease-out forwards;
}

.is-entering .level-two-challenge {
  animation: level-challenge-in 900ms 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bonus-level {
  width: min(100%, 1040px);
  margin-top: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(202, 255, 61, 0.38);
  background: #080a08;
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(8, 10, 8, 0.28);
}

.bonus-level:not([hidden]) {
  animation: bonus-unlock 520ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bonus-terminal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(239, 238, 231, 0.22);
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bonus-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #040504;
}

.bonus-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(8, 10, 8, 0.9));
  content: "";
  pointer-events: none;
}

.bonus-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bonus-hero figcaption {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 2.5vw, 30px);
  left: clamp(18px, 3vw, 34px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bonus-intro,
.bonus-challenge {
  padding: clamp(24px, 4.5vw, 54px);
}

.bonus-kicker,
.urf-radio-label {
  margin: 0 0 12px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bonus-level h3 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.bonus-intro > p:not(.bonus-kicker),
.bonus-briefing > p:not(.bonus-kicker) {
  max-width: 680px;
  margin: 0;
  color: #c9c8c0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}

.bonus-level code {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bonus-start-button,
.bonus-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--acid-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.bonus-start-button {
  margin-top: 32px;
  padding: 20px;
}

.bonus-button {
  margin-top: 28px;
  padding: 16px 18px;
}

.bonus-start-button:hover:not(:disabled),
.bonus-button:hover:not(:disabled) {
  background: transparent;
  color: var(--acid);
  transform: translateY(-2px);
}

.bonus-start-button:disabled,
.bonus-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.bonus-challenge {
  scroll-margin-top: calc(var(--header-height) + 20px);
  border-top: 1px solid rgba(239, 238, 231, 0.16);
  background: #0d100d;
}

.urf-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(239, 238, 231, 0.14);
  border-bottom: 1px solid rgba(239, 238, 231, 0.14);
}

.urf-radio-label {
  display: block;
  margin-bottom: 5px;
}

.urf-radio strong {
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: -0.02em;
}

.urf-radio button {
  min-width: 126px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--paper-muted);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.urf-radio button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.level-sound-display {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.4vw, 14px);
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(239, 238, 231, 0.18);
  background: #030403;
}

.level-sound-display span {
  width: min(6vw, 38px);
  height: 8px;
  background: rgba(202, 255, 61, 0.24);
  transform-origin: center;
}

.level-sound-display.is-playing span {
  background: var(--acid);
  animation: sound-pulse 620ms ease-in-out infinite alternate;
}

.level-sound-display.is-playing span:nth-child(2n) { animation-duration: 430ms; }
.level-sound-display.is-playing span:nth-child(3n) { animation-duration: 790ms; }
.level-sound-display.is-playing span:nth-child(4n) { animation-delay: -220ms; }

@keyframes sound-pulse {
  from { transform: scaleY(0.75); opacity: 0.6; }
  to { transform: scaleY(5.2); opacity: 1; }
}

.bonus-briefing {
  margin-top: clamp(34px, 5vw, 58px);
}

.bonus-briefing h4 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.bonus-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.locked-message {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 760px;
}

.locked-message span {
  color: var(--danger);
  font-size: 42px;
  line-height: 1;
}

.locked-message p {
  margin: 0;
  color: #c2c1b8;
  line-height: 1.5;
}

.secondary-button {
  margin-top: 28px;
}

.answer-review {
  margin-top: clamp(64px, 9vw, 118px);
}

.answer-review-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.review-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.answer-review h3 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.answer-review-heading > p {
  max-width: 360px;
  margin: 0;
  justify-self: end;
  line-height: 1.5;
}

.answer-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 3.2vw, 40px) 0;
}

.is-pass .review-item {
  border-top: 1px solid rgba(10, 11, 11, 0.25);
}

.is-fail .review-item {
  border-top: 1px solid rgba(239, 238, 231, 0.2);
}

.review-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.review-number,
.review-selected span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.review-status {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.is-fail .review-item.is-correct .review-status {
  color: var(--acid);
}

.is-pass .review-item.is-correct .review-status {
  color: #18551d;
}

.review-item.is-wrong .review-status {
  color: var(--danger);
}

.review-question {
  max-width: 820px;
  margin: 0;
  font-size: clamp(20px, 2.25vw, 31px);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.review-selected {
  display: grid;
  grid-column: 2;
  gap: 6px;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--danger);
}

.review-selected strong {
  font-size: 16px;
  line-height: 1.45;
}

.is-pass .secondary-button:hover,
.voucher button:hover {
  background: var(--acid-dark);
  color: var(--acid);
}

.is-fail .secondary-button:hover {
  background: var(--paper);
  color: var(--ink);
}

.confetti {
  position: fixed;
  top: -24px;
  z-index: 30;
  width: 8px;
  height: 18px;
  background: var(--ink);
  pointer-events: none;
  animation: confetti-fall var(--duration, 2s) linear var(--delay, 0s) forwards;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateX(7%); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes bonus-unlock {
  from { opacity: 0; transform: translateY(20px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes confetti-fall {
  to { transform: translate3d(var(--drift, 0), 110vh, 0) rotate(760deg); }
}

@keyframes level-image-in {
  0% { opacity: 0; filter: saturate(0.2) brightness(0.12) contrast(1.3); transform: scale(1.12); }
  45% { opacity: 1; filter: saturate(0.72) brightness(0.55) contrast(1.22); }
  100% { opacity: 1; filter: saturate(1.08) brightness(0.86) contrast(1.08); transform: scale(1); }
}

@keyframes level-copy-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes level-title-in {
  0% { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(34px); }
  100% { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes level-challenge-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes secret-logo-unlock {
  0% { background: var(--acid); color: var(--ink); transform: translate(0); }
  50% { background: var(--paper); color: var(--danger); transform: translate(-2px, 1px); }
  100% { background: var(--danger); color: var(--paper); transform: translate(2px, -1px); }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 58px 1fr;
  }

  .threshold-art {
    position: absolute;
    right: -5vw;
    bottom: 7vh;
    width: 42vw;
    min-height: 30vh;
    padding: 30px;
    border: 1px solid var(--line);
  }

  .threshold-art strong {
    font-size: 16vw;
  }

  .threshold-note {
    font-size: 9px;
  }

  .intro-copy {
    padding-right: 30vw;
  }

  .question-panel {
    width: min(100%, 980px);
  }

  .level-two-entry {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .level-two-entry-button {
    width: 100%;
  }

  .level-two {
    overflow-y: auto;
  }

  .level-two-cinema {
    min-height: 100svh;
    padding-top: 76svh;
    overflow: hidden;
  }

  .level-two-image {
    inset: 0 0 auto;
    height: 76svh;
  }

  .level-two-image img {
    object-position: 48% center;
  }

  .level-two-shade {
    inset: 0 0 auto;
    height: 76svh;
  }

  .level-two-hud {
    grid-template-columns: 1fr auto;
  }

  .level-two-hud > span:nth-child(2) {
    display: none;
  }

  .level-two-title {
    top: 45svh;
    right: 20px;
    bottom: auto;
    max-width: none;
  }

  .level-two-title h2 {
    font-size: clamp(104px, 29vw, 210px);
  }

  .level-two-challenge {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    padding: clamp(28px, 7vw, 54px) clamp(18px, 5vw, 34px) 48px;
    border-top-width: 4px;
    backdrop-filter: none;
    transform: translateY(44px);
  }

  .is-entering .level-two-challenge {
    animation-name: level-copy-in;
  }
}

@media (min-width: 681px) and (max-height: 820px) {
  .intro-copy {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .intro h1 {
    font-size: clamp(62px, 7vw, 110px);
  }

  .intro-text {
    margin-top: 28px;
    margin-bottom: 22px;
    font-size: 15px;
  }

  .primary-button {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .quiz {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 24px;
  }

  .question-stage {
    padding-top: 36px;
  }

  .question-stage h2 {
    min-height: 0;
    margin-bottom: 30px;
    font-size: clamp(30px, 3.4vw, 52px);
  }

  .answer-option {
    min-height: 70px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .question-footer {
    margin-top: 18px;
  }

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

  .answer-review-heading > p {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 0 18px;
  }

  .header-status {
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .intro {
    display: block;
    min-height: 100svh;
  }

  .intro-rail,
  .edition-stamp {
    display: none;
  }

  .intro-copy {
    min-height: calc(100svh - var(--header-height));
    padding: 54px 22px 230px;
  }

  .intro h1 {
    font-size: clamp(62px, 21vw, 102px);
  }

  .intro-text {
    margin-top: 30px;
  }

  .threshold-art {
    right: 18px;
    bottom: 20px;
    width: calc(100% - 36px);
    min-height: 168px;
    padding: 22px;
  }

  .threshold-art strong {
    position: absolute;
    right: 20px;
    bottom: 17px;
    margin: 0;
    font-size: 108px;
  }

  .threshold-note {
    width: 42%;
  }

  .quiz {
    padding: calc(var(--header-height) + 28px) 18px 30px;
  }

  .unlock-hint,
  .keyboard-hint {
    display: none;
  }

  .question-stage {
    padding-top: 34px;
  }

  .question-stage h2 {
    min-height: 0;
    margin-bottom: 32px;
    font-size: clamp(29px, 8.5vw, 42px);
  }

  .question-panel {
    width: 100%;
    margin-top: 30px;
  }

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

  .answer-option {
    min-height: 72px;
    padding: 14px 15px;
  }

  .question-footer {
    justify-content: flex-end;
  }

  .next-button {
    width: 100%;
    justify-content: space-between;
  }

  .voucher-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .voucher button {
    width: 100%;
  }

  .bonus-terminal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bonus-hero figcaption,
  .urf-radio {
    align-items: flex-start;
    flex-direction: column;
  }

  .bonus-intro,
  .bonus-challenge {
    padding: 24px 18px;
  }

  .bonus-level h3 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .urf-radio button {
    width: 100%;
  }

  .level-two-entry h3 {
    font-size: clamp(76px, 25vw, 118px);
  }

  .level-two-hud {
    inset: 18px 16px auto;
    gap: 12px;
  }

  .level-two-hud > span:first-child {
    max-width: 130px;
    line-height: 1.35;
  }

  .level-two-hud button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 8px;
  }

  .level-two-title {
    left: 16px;
  }

  .answer-review-heading {
    display: block;
  }

  .answer-review-heading > p {
    margin-top: 16px;
  }

  .result {
    padding-right: 18px;
    padding-left: 18px;
  }

  .review-item {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 18px;
  }

  .review-question {
    font-size: 19px;
  }

  .review-selected {
    margin-top: 14px;
    padding-left: 12px;
  }
}

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