:root {
  --bg: #05070c;
  --ink: #f7f4e9;
  --muted: #d9e2ef;
  --green: #78ff4d;
  --red: #ff4747;
  --purple: #aa78ff;
  --blue: #67b6ff;
  --orange: #ffac3e;
  --silver: #c7d4e7;
  --panel: rgba(6, 9, 14, 0.82);
  --panel-soft: rgba(10, 14, 22, 0.68);
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

.progress-ooze {
  position: fixed;
  inset: 0 0 auto;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 200;
}

.progress-ooze__fill {
  height: 100%;
  width: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.35) 0 10%, transparent 11%),
    linear-gradient(90deg, #3edd24, #8eff4e 35%, #2cb10c);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 20px rgba(120, 255, 77, 0.65);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 18px auto 0;
  width: min(1400px, calc(100% - 24px));
  padding: 12px 16px;
  min-height: var(--header-h);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(4, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand,
.main-nav a,
.footer-links a {
  text-decoration: none;
}

.brand {
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--green);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(120, 255, 77, 0.12);
  outline: none;
}

.header-cta,
.section-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-button {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px) rotate(-1deg) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.cta-button--join {
  background: linear-gradient(135deg, rgba(120, 255, 77, 0.25), rgba(45, 115, 21, 0.9));
}

.cta-button--buy {
  background: linear-gradient(135deg, rgba(255, 172, 62, 0.28), rgba(126, 61, 8, 0.9));
}

.panel-section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 36px) 24px 96px;
  overflow: clip;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-content {
  position: relative;
  z-index: 2;
  width: min(1400px, 100%);
}

.hero-copy,
.story-panel,
.quiz-card,
.site-footer,
.hud-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.comic-box {
  border-radius: 28px;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.slam {
  transform: translateY(26px) scale(0.94) rotate(-2deg);
  opacity: 0;
  transition: transform 500ms cubic-bezier(.17,.84,.44,1), opacity 500ms ease;
}

.panel-section.in-view .slam,
.panel-section.is-active .slam {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.hero-section .section-content {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote,
.shell-card strong,
.modal__result {
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.8rem, 12vw, 8rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
}

p,
li,
span,
strong,
pre,
blockquote,
.main-nav a,
.cta-button {
  font-family: "Trebuchet MS", "Arial Narrow", sans-serif;
}

p,
li,
span,
strong {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
}

blockquote {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--green);
  margin: 1.25rem 0;
}

.big-quote {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.shell-select {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.shell-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 1.1rem;
  min-height: 180px;
  background: rgba(8, 11, 18, 0.74);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shell-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -28% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.45;
}

.shell-card:hover,
.shell-card:focus-visible {
  transform: translateY(-8px) rotate(-1deg);
  outline: none;
}

.shell-card--red::after { background: radial-gradient(circle, rgba(255, 71, 71, 0.9), transparent 65%); }
.shell-card--purple::after { background: radial-gradient(circle, rgba(170, 120, 255, 0.9), transparent 65%); }
.shell-card--blue::after { background: radial-gradient(circle, rgba(103, 182, 255, 0.9), transparent 65%); }
.shell-card--orange::after { background: radial-gradient(circle, rgba(255, 172, 62, 0.9), transparent 65%); }

.shell-card--red:hover { border-color: rgba(255, 71, 71, 0.8); box-shadow: 0 24px 50px rgba(255, 71, 71, 0.28); }
.shell-card--purple:hover { border-color: rgba(170, 120, 255, 0.8); box-shadow: 0 24px 50px rgba(170, 120, 255, 0.28); }
.shell-card--blue:hover { border-color: rgba(103, 182, 255, 0.8); box-shadow: 0 24px 50px rgba(103, 182, 255, 0.28); }
.shell-card--orange:hover { border-color: rgba(255, 172, 62, 0.8); box-shadow: 0 24px 50px rgba(255, 172, 62, 0.28); }

.shell-card__tag,
.hud-panel__label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--silver);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.split-layout,
.endgame-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1.5rem;
  align-items: end;
}

.ui-stack {
  display: grid;
  gap: 1rem;
}

.hud-panel {
  border-radius: 24px;
  padding: 1.1rem;
}

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

.ticker-list li + li {
  margin-top: 0.35rem;
}

.alarm-panel {
  border-color: rgba(255, 71, 71, 0.45);
}

.margin-panel {
  transform: rotate(-2deg);
  border-color: rgba(255, 71, 71, 0.55);
  background: rgba(38, 5, 5, 0.88);
}

.counter {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-top: 0.25rem;
}

.candles {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  height: 110px;
}

.candles span {
  display: block;
  width: 18%;
  background: linear-gradient(180deg, #ff8484, #d31313 55%, #650303);
  border-radius: 12px 12px 4px 4px;
  animation: candlePulse 1.8s ease-in-out infinite;
}

.candles span:nth-child(1) { height: 45%; animation-delay: 0s; }
.candles span:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.candles span:nth-child(3) { height: 58%; animation-delay: 0.4s; }
.candles span:nth-child(4) { height: 100%; animation-delay: 0.1s; }
.candles span:nth-child(5) { height: 38%; animation-delay: 0.35s; }

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d2f0ff;
}

.status-grid {
  display: grid;
  gap: 0.5rem;
}

.bar-stack {
  display: grid;
  gap: 0.8rem;
}

.bar-stack span {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-stack span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(103, 182, 255, 0.92), rgba(255, 255, 255, 0.2));
}

.bar-stack span::after {
  content: attr(style);
  display: none;
}

.bar-stack span > * {
  position: relative;
}

.meter {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffbe53, #ff7d1b);
  box-shadow: 0 0 18px rgba(255, 172, 62, 0.55);
}

.quiz-card {
  align-self: start;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quiz-option {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1rem;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  transform: scale(1.03);
  border-color: var(--green);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.marquee {
  position: sticky;
  bottom: 0;
  z-index: 120;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 11, 0.94);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.7rem 0;
  animation: marquee 20s linear infinite;
}

.marquee__track span {
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 210;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
}

.modal__result {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--green);
  margin: 0.75rem 0 1rem;
}

.cursor-trail,
.floating-pizzas,
.shell-particles,
.pow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

.trail-dot,
.particle,
.pizza,
.pow {
  position: absolute;
}

.trail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 255, 77, 0.95), rgba(46, 153, 22, 0.12) 70%);
  transform: translate(-50%, -50%);
  animation: trailFade 600ms linear forwards;
}

.particle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 255, 174, 0.9), rgba(120, 255, 77, 0.1) 70%);
  animation: floatUp linear infinite;
}

.pizza {
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  animation: pizzaDrift linear infinite;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.pow {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #fff16f;
  color: #111;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0.6);
  animation: powPop 600ms ease forwards;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 160;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(8, 11, 18, 0.9);
  box-shadow: var(--shadow);
  animation: toastUp 2.4s ease forwards;
}

@keyframes candlePulse {
  50% { transform: translateY(-4px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes trailFade {
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.3); }
}

@keyframes floatUp {
  from { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(-130vh) scale(1.2); opacity: 0; }
}

@keyframes pizzaDrift {
  from { transform: translate3d(0, 110vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translate3d(var(--drift), -20vh, 0) rotate(240deg); opacity: 0; }
}

@keyframes powPop {
  50% { transform: translate(-50%, -50%) scale(1.16) rotate(-8deg); opacity: 1; }
  to { transform: translate(-50%, -110%) scale(0.85) rotate(6deg); opacity: 0; }
}

@keyframes toastUp {
  0%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(18px); }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .split-layout,
  .endgame-layout,
  .shell-select {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  .site-header {
    position: fixed;
    top: 10px;
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 10px 12px;
    gap: 0.65rem;
    min-height: auto;
  }

  .main-nav {
    width: 100%;
    gap: 0.4rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .cta-button {
    font-size: 0.72rem;
  }

  .panel-section {
    min-height: auto;
    padding: 188px 14px 80px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  h3 {
    font-size: 0.95rem;
  }

  .section-bg {
    object-position: center center;
  }

  .shell-select,
  .split-layout,
  .endgame-layout,
  .quiz-options,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-cta,
  .section-actions {
    width: 100%;
  }

  .header-cta .cta-button,
  .section-actions .cta-button,
  .quiz-option {
    flex: 1 1 auto;
    width: 100%;
  }

  .site-footer {
    justify-content: stretch;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .marquee__track {
    animation-duration: 14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-pizzas,
  .shell-particles,
  .cursor-trail,
  .pow-layer {
    display: none;
  }
}
