:root {
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, .72);
  --panel: rgba(18, 20, 24, .78);
  --line: rgba(245, 241, 232, .16);
  --red: #ff3d5a;
  --lime: #c6ff4a;
  --cyan: #30d7ff;
  --gold: #ffbd45;
  --bg: #090a0d;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 61, 90, .28), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(48, 215, 255, .22), transparent 28%),
    linear-gradient(135deg, #090a0d 0%, #171015 48%, #0d1719 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 241, 232, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 80%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .08;
  background-image:
    repeating-radial-gradient(circle at 10% 10%, #fff 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

a,
button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 44px;
  display: grid;
  align-items: center;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(330px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.hero-photo {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 61, 90, .2), transparent 34%),
    linear-gradient(25deg, rgba(48, 215, 255, .2), transparent 45%),
    #111318;
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(198, 255, 74, .38);
}

.poster {
  position: absolute;
  inset: 56px 38px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(245, 241, 232, .24);
  background: rgba(0, 0, 0, .28);
  transform: rotate(-2deg);
}

.poster-kicker,
.poster span:last-child,
.poster span:nth-child(3) {
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
}

.poster strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(4.8rem, 12vw, 9rem);
  line-height: .82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(255, 61, 90, .76);
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .08) 0 1px,
    transparent 1px 8px
  );
  opacity: .45;
}

.invite-copy {
  padding: 16px 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(198, 255, 74, .28);
  border-radius: 999px;
  background: rgba(198, 255, 74, .08);
  color: var(--lime);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  line-height: .9;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 14px;
}

.details div {
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.details span {
  display: block;
  margin-bottom: 9px;
  color: rgba(245, 241, 232, .58);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.2;
}

.note {
  max-width: 650px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 61, 90, .1);
  color: rgba(245, 241, 232, .84);
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.answer-btn,
#continueBtn {
  min-height: 52px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-btn,
.answer-btn.is-main,
#continueBtn {
  border: 0;
  color: #101114;
  background: var(--lime);
  box-shadow: 0 14px 34px rgba(198, 255, 74, .22);
}

.primary-btn {
  padding: 0 22px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.answer-btn:hover,
#continueBtn:hover {
  transform: translateY(-2px);
}

.quiz-panel {
  display: none;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 12, 15, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quiz-panel.is-open {
  display: block;
  animation: rise .45s ease both;
}

.progress {
  margin-bottom: 14px;
}

#progressLabel {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 241, 232, .62);
  font-size: .86rem;
  font-weight: 900;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 241, 232, .1);
}

#progressBar {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--lime), var(--cyan));
  transition: width .35s ease;
}

.question-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(245, 241, 232, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.question-card.is-changing {
  animation: cardSwap .28s ease both;
}

.question-tag {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

#questionText {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

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

.answer-btn {
  position: relative;
  min-height: 62px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  overflow: hidden;
}

.answer-btn.is-risky:hover {
  border-color: rgba(255, 61, 90, .8);
  background: rgba(255, 61, 90, .14);
}

.answer-btn:active {
  transform: scale(.98);
}

.answer-btn.is-wide {
  grid-column: 1 / -1;
}

.consequence-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 61, 90, .1) 0 2px, transparent 2px 12px),
    rgba(0, 0, 0, .88);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.consequence-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.consequence-box {
  width: min(620px, 100%);
  padding: clamp(24px, 6vw, 46px);
  border: 2px solid var(--red);
  border-radius: 8px;
  background: #101114;
  box-shadow:
    12px 12px 0 rgba(255, 61, 90, .35),
    var(--shadow);
  animation: errorShake .24s linear 2;
}

.consequence-code {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  color: #101114;
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.consequence-box h2 {
  font-size: clamp(2rem, 8vw, 4.4rem);
  color: var(--ink);
}

.consequence-box p:not(.consequence-code) {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

#continueBtn {
  width: 100%;
  padding: 0 18px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes cardSwap {
  50% {
    opacity: .2;
    transform: translateY(8px) scale(.99);
  }
}

@keyframes errorShake {
  25% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(7px);
  }

  75% {
    transform: translateX(-4px);
  }
}

@media (max-width: 900px) {
  .page-shell {
    display: block;
    padding-top: 18px;
  }

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

  .hero-photo {
    min-height: 360px;
  }

  .invite-copy {
    padding: 24px 0 0;
  }

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

  .details div {
    min-height: 78px;
  }

  .quiz-panel {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1160px);
  }

  .hero-photo {
    min-height: 270px;
  }

  .poster {
    inset: 34px 24px;
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.5rem);
  }

  .hero-actions,
  .answer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}

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