/* ==========================================================================
   ARCADE — landing
   ========================================================================== */

:root {
  --ink: #07060a;
  --ink-2: #0e0c13;
  --ink-3: #17141e;
  --bone: #ece6d9;
  --bone-dim: #9a948a;
  --line: rgba(236, 230, 217, 0.12);
  --acid: #c6ff3a;
  --hot: #ff2d6f;
  --cyan: #3af0ff;
  --accent: #3af0ff;
  --accent-2: #ff2d6f;

  --f-display: 'Big Shoulders Display', 'Impact', 'Arial Narrow', sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-booting { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--acid); color: var(--ink); }

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

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

/* ---------- Global FX ---------- */

.fx-grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 4%); }
  100% { transform: translate(0, 0); }
}

.fx-scan {
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
  mix-blend-mode: multiply;
}

/* ---------- Cursor ---------- */

.cursor { display: none; }

@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 200;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor span {
    position: absolute;
    left: -9px; top: -9px;
    width: 18px; height: 18px;
    border: 1.5px solid #fff;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), left 0.35s var(--ease), top 0.35s var(--ease), transform 0.35s var(--ease), background 0.2s;
  }
  .cursor span::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 3px; height: 3px;
    margin: -1.5px 0 0 -1.5px;
    background: #fff;
  }
  .cursor.is-hover span {
    width: 56px; height: 56px;
    left: -28px; top: -28px;
    transform: rotate(45deg);
  }
  .cursor.is-drag span {
    width: 72px; height: 22px;
    left: -36px; top: -11px;
  }
  .cursor.is-down span { background: #fff; }
}

/* ---------- Boot ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.boot__half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: var(--ink);
  transition: transform 0.9s var(--ease-io);
}
.boot__half--top { top: 0; border-bottom: 1px solid var(--acid); }
.boot__half--bottom { bottom: 0; border-top: 1px solid var(--acid); }

.boot__inner {
  position: relative;
  width: min(560px, calc(100% - 32px));
  transition: opacity 0.3s;
}

.boot__log {
  margin: 0 0 24px;
  min-height: 12.5em;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--bone-dim);
  white-space: pre-wrap;
}
.boot__log b { color: var(--acid); font-weight: 600; }

.boot__bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.boot__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
  transition: width 0.25s linear;
}

.boot__skip {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0.6;
}

.boot.is-done { pointer-events: none; }
.boot.is-done .boot__inner { opacity: 0; }
.boot.is-done .boot__half--top { transform: translateY(-101%); }
.boot.is-done .boot__half--bottom { transform: translateY(101%); }
.boot.is-gone { display: none; }

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}

.hud__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.hud__logo sup { font-family: var(--f-mono); font-size: 9px; font-weight: 400; }

.hud__pixel {
  width: 12px; height: 12px;
  background: #fff;
  box-shadow: 14px 0 0 -2px #fff;
  margin-right: 14px;
  animation: pixelhop 2.4s steps(1) infinite;
}
@keyframes pixelhop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hud__nav { display: flex; gap: 30px; }
.hud__nav a { position: relative; padding: 4px 0; }
.hud__nav i { font-style: normal; opacity: 0.45; margin-right: 8px; }
.hud__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.hud__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.hud__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.hud__sfx { letter-spacing: inherit; text-transform: inherit; font-size: inherit; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.4); }
.hud__sfx b { font-weight: 600; }
.hud__sfx[aria-pressed='true'] { background: #fff; color: #000; }
.hud__status { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }

.blink {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(198, 255, 58, 0.06), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(255, 45, 111, 0.1), transparent 60%),
    var(--ink);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__corner {
  position: absolute;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__corner--tl { left: var(--gutter); }
.hero__corner--tr { right: var(--gutter); text-align: right; }
.hero__score {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

.hero__bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }

.hero__lede {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 30ch;
}
.hero__lede em {
  font-size: 28px;
  line-height: 1.1;
  color: var(--bone);
}

.hero__count {
  justify-self: end;
  display: flex;
  align-items: end;
  gap: 12px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--bone-dim);
}
.hero__count b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.8;
  color: var(--acid);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  top: 76%;
  width: 1px;
  height: 0;
}

/* Start button */

.start {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 18px 28px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.4s var(--ease), background 0.3s;
  overflow: hidden;
  isolation: isolate;
}
.start::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.start:hover::before { transform: translateY(0); }
.start:hover { transform: translateY(-3px); }
.start__label { animation: startBlink 1.6s steps(1) infinite; }
.start:hover .start__label { animation: none; }
@keyframes startBlink { 70% { opacity: 1; } 85% { opacity: 0.15; } }
.start__key {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid currentColor;
  font-family: var(--f-mono);
  font-size: 15px;
}

.start--ghost {
  background: transparent;
  color: var(--acid);
  clip-path: none;
  border: 1.5px solid var(--acid);
}
.start--ghost::before { background: var(--acid); }
.start--ghost:hover { color: var(--ink); }

/* ---------- Tape (ticker) ---------- */

.tape {
  position: relative;
  height: 180px;
  margin: -40px 0 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.tape__band {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.tape__band--a {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-50%) rotate(-3.5deg);
  z-index: 2;
}
.tape__band--b {
  background: var(--hot);
  color: var(--ink);
  transform: translateY(-50%) rotate(2.5deg);
  opacity: 0.92;
}
.tape__track {
  display: inline-flex;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  will-change: transform;
}
.tape__track span { padding-right: 32px; }
.tape__track span i { font-style: normal; padding-right: 32px; }
.tape__band--a .tape__track { animation: tape 38s linear infinite; }
.tape__band--b .tape__track { animation: tape 46s linear infinite reverse; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 0 var(--gutter);
}
.section-head__idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.section-head__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
}
.section-head__title em {
  display: inline-block;
  text-transform: none;
  font-size: 0.92em;
  letter-spacing: 0;
  color: var(--accent);
  transition: color 0.8s var(--ease);
}
.section-head__copy {
  justify-self: end;
  margin: 0;
  max-width: 32ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--bone-dim);
  text-align: right;
}

/* ---------- Gallery ---------- */

.gallery {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0 clamp(60px, 10vh, 110px);
  overflow: hidden;
  background:
    radial-gradient(50% 45% at 50% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--ink);
  transition: background 0.8s;
}

.stage {
  position: relative;
  height: 640px;
  margin-top: clamp(24px, 5vh, 56px);
  perspective: 1600px;
  perspective-origin: 50% 45%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(120px, 24vw, 420px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.8s;
}
.ghost.is-glitch { animation: glitch 0.42s steps(2) 1; }
@keyframes glitch {
  0% { clip-path: inset(0 0 60% 0); transform: translate(calc(-50% - 14px), -50%); }
  25% { clip-path: inset(40% 0 20% 0); transform: translate(calc(-50% + 12px), -50%); }
  50% { clip-path: inset(10% 0 50% 0); transform: translate(calc(-50% - 6px), -50%); }
  75% { clip-path: inset(70% 0 0 0); transform: translate(calc(-50% + 8px), -50%); }
  100% { clip-path: inset(0); transform: translate(-50%, -50%); }
}

.track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.card {
  --dim: 0;
  --c: var(--accent);
  --c2: var(--accent-2);
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(272px, 28vw, 400px);
  margin-left: calc(clamp(272px, 28vw, 400px) / -2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: grab;
}

.card__frame {
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transition: border-color 0.5s;
}
.card.is-active .card__frame {
  border-color: var(--c);
}
.card__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: var(--dim);
  pointer-events: none;
  z-index: 5;
}

.card__glow {
  position: absolute;
  inset: 10% 6% -8%;
  z-index: -1;
  background: var(--c);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.card.is-active .card__glow { opacity: 0.28; }

.card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 12px 26px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--line);
}
.card__bar b { color: var(--c); font-weight: 600; }
.card__led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.card:not(.is-active) .card__led { background: var(--bone-dim); box-shadow: none; }

.card__screen {
  position: relative;
  aspect-ratio: 16 / 11;
  margin: 12px;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}
.card__screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.card__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.card__live {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
  padding: 4px 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.6);
  color: var(--c);
  backdrop-filter: blur(4px);
}
.card__live::before { content: '● '; animation: blink 1.1s steps(1) infinite; }

.card__body { padding: 6px 22px 22px; }
.card__kicker {
  margin: 0 0 4px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--c);
}
.card__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(46px, 4.6vw, 64px);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.card__desc {
  margin: 12px 0 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--bone-dim);
  min-height: 5em;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card__tags li {
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--bone-dim);
}
.card__play {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--c);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.35s var(--ease), filter 0.3s;
}
.card__play span { transition: transform 0.35s var(--ease); }
.card__play:hover { filter: brightness(1.12); }
.card__play:hover span { transform: translate(3px, -3px); }
.card:not(.is-active) .card__play { pointer-events: none; }

.card--locked .card__title { color: transparent; -webkit-text-stroke: 1.5px var(--bone-dim); }
.card--locked .card__play {
  background: transparent;
  color: var(--bone-dim);
  outline: 1px dashed var(--bone-dim);
  outline-offset: -1px;
  cursor: not-allowed;
}

/* Controls */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  padding: 0 var(--gutter);
}
.controls__btn {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.controls__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.controls__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.controls__btn:active { transform: scale(0.92); }

.controls__mid { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.controls__count {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--bone-dim);
}
.controls__count b { color: var(--bone); font-weight: 900; }
.controls__count span { margin-left: 6px; }
.controls__dots { display: flex; gap: 6px; }
.controls__dots button {
  position: relative;
  width: 34px; height: 14px;
}
.controls__dots button::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 2px;
  background: var(--line);
  transition: background 0.4s;
}
.controls__dots button[aria-selected='true']::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.controls__hint {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  margin: 0 2px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
}

/* ---------- Manifesto ---------- */

.manifesto {
  position: relative;
  height: 240vh;
  background: var(--bone);
  color: var(--ink);
}
.manifesto__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 80px var(--gutter) 48px;
}
.manifesto .section-head__idx { color: #6d675e; }
.manifesto__text {
  margin: 0;
  max-width: 22ch;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, min(6vw, 9.4vh), 104px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.manifesto__text .w {
  display: inline-block;
  opacity: 0.1;
  transform: translateY(0.08em);
  transition: opacity 0.35s, transform 0.5s var(--ease), color 0.35s;
}
.manifesto__text .w.on { opacity: 1; transform: none; }
.manifesto__text .w.hl.on { color: var(--hot); }
.manifesto__text .w.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.manifesto__sign {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d675e;
}
.manifesto__sign em { font-size: 24px; text-transform: none; letter-spacing: 0; color: var(--ink); }

/* ---------- Next level ---------- */

.next {
  padding: clamp(90px, 16vh, 180px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.next__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.next__title {
  margin: 20px 0 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(72px, 12vw, 210px);
  line-height: 0.8;
  text-transform: uppercase;
}
.next__title em { text-transform: none; font-size: 0.8em; color: var(--acid); }
.next__num {
  color: transparent;
  -webkit-text-stroke: 2px var(--bone);
}
.caret { color: var(--acid); animation: blink 0.9s steps(1) infinite; }

.next__right p {
  margin: 0 0 32px;
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--bone-dim);
}
.loader { margin-bottom: 32px; }
.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
}
.loader__bar {
  height: 16px;
  padding: 3px;
  border: 1px solid var(--line);
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 62%;
  background: repeating-linear-gradient(90deg, var(--acid) 0 10px, transparent 10px 13px);
  animation: loaderPulse 2.4s var(--ease-io) infinite;
}
@keyframes loaderPulse {
  0%, 100% { width: 60%; }
  50% { width: 64%; }
}

.link-arrow {
  display: inline-flex;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--acid);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--acid); gap: 16px; }

/* ---------- Footer ---------- */

.footer { padding: clamp(80px, 14vh, 160px) var(--gutter) 28px; }
.footer__continue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer__label {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--bone-dim);
}
.footer__count {
  margin: 0 0 24px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(160px, 30vw, 420px);
  line-height: 0.78;
  color: var(--hot);
  text-shadow: 0 0 60px rgba(255, 45, 111, 0.35);
  font-variant-numeric: tabular-nums;
}
.footer__count.tick { animation: tick 0.5s var(--ease); }
@keyframes tick { from { transform: scale(1.12); opacity: 0.4; } }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(64px, 10vh, 120px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.footer__row a:hover { color: var(--acid); }
.footer__konami { opacity: 0.35; letter-spacing: 0.3em; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  padding: 14px 20px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.5s var(--ease); }

/* ---------- God mode (Konami) ---------- */

html.god main { filter: hue-rotate(160deg) saturate(1.4); }
html.god .hud__pixel { animation-duration: 0.3s; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud__nav { display: none; }
  .hud__status { display: none; }

  .hero__bottom {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'lede count' 'start start';
    gap: 20px;
  }
  .hero__lede { grid-area: lede; }
  .hero__count { grid-area: count; }
  .hero__bottom .start { grid-area: start; justify-content: space-between; }

  .section-head { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .section-head__title { text-align: left; }
  .section-head__copy { justify-self: start; text-align: left; }

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

@media (max-width: 560px) {
  .hero__corner { top: 76px; font-size: 10px; }
  .hero__score { font-size: 22px; }
  .hero__lede em { font-size: 24px; }
  .hero__count b { font-size: 48px; }
  .start { font-size: 19px; padding: 14px 14px 14px 20px; }
  .tape { height: 130px; margin-top: -30px; }
  .tape__track { font-size: 20px; }
  .card__body { padding: 4px 16px 18px; }
  .card__bar { padding-left: 22px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__play { justify-content: space-between; }
  .controls__btn { width: 48px; height: 48px; }
  .controls__hint { display: none; }
  .manifesto__sign { flex-direction: column; gap: 4px; }
  .footer__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-grain, .tape__track, .hud__pixel, .start__label, .loader__bar span { animation: none !important; }
  .manifesto__text .w { opacity: 1; transform: none; }
}
