/* Title Track splash — 90s mixtape deck.
   Palette: midnight indigo, hot magenta, electric cyan, tangerine. */
:root {
  --ink:      #0b0722;
  --magenta:  #ff3ea5;
  --cyan:     #23e6ff;
  --tangerine:#ff9a3e;
  --paper:    #fdf6e3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow: hidden;
}

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ── VHS scanlines + grain ─────────────────────────────────────────────── */
.vhs {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(
    to bottom, transparent 0 2px, rgba(0,0,0,.16) 2px 3px);
  mix-blend-mode: multiply;
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 3; opacity: .05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 700ms steps(6) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-2%,3%)} 40%{transform:translate(3%,-2%)}
  60%{transform:translate(-3%,-3%)} 80%{transform:translate(2%,2%)} 100%{transform:translate(0,0)}
}

/* ── overlay layout ────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 3vw, 36px);
  pointer-events: none;
}
.overlay a, .overlay button { pointer-events: auto; }

.topline, .baseline {
  display: flex; justify-content: space-between; align-items: center;
}
.mono-tag {
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: .22em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(35,230,255,.55);
}
.mono-tag.dim { color: rgba(253,246,227,.5); text-shadow: none; }
.mono-tag.side { color: var(--tangerine); text-shadow: 0 0 8px rgba(255,154,62,.5); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vh, 18px);
  margin-top: auto; margin-bottom: auto;
  animation: rise 900ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

.wordmark { line-height: .95; }
.chrome {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(44px, 9vw, 118px);
  letter-spacing: .04em;
  background: linear-gradient(
    180deg,
    #fdfdff 0%, #cfe9ff 30%, #7ec4e8 46%,
    #241a4d 50%,
    var(--magenta) 58%, #ffd2ec 72%, #fff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(255,62,165,.45)) drop-shadow(0 0 26px rgba(35,230,255,.35));
}

.handwritten {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(17px, 2.4vw, 27px);
  color: var(--tangerine);
  transform: rotate(-2deg);
  text-shadow: 0 0 12px rgba(255,154,62,.35);
}

.tag { max-width: 56ch; color: rgba(253,246,227,.85); text-shadow: none; letter-spacing: .12em; }

/* ── the deck button ───────────────────────────────────────────────────── */
.deck-button {
  margin-top: clamp(6px, 1.4vh, 14px);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(15px, 1.9vw, 21px);
  letter-spacing: .12em;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe9f4 0%, var(--magenta) 45%, #b3117a 100%);
  border: 2px solid #ffd2ec;
  box-shadow:
    0 6px 0 #7a0c55,
    0 10px 24px rgba(0,0,0,.5),
    0 0 34px rgba(255,62,165,.55),
    inset 0 2px 2px rgba(255,255,255,.7);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.deck-button:hover {
  filter: brightness(1.08);
  box-shadow:
    0 6px 0 #7a0c55, 0 10px 28px rgba(0,0,0,.5),
    0 0 48px rgba(255,62,165,.85),
    inset 0 2px 2px rgba(255,255,255,.7);
}
.deck-button:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #7a0c55, 0 4px 10px rgba(0,0,0,.5),
    0 0 24px rgba(255,62,165,.5),
    inset 0 2px 2px rgba(255,255,255,.5);
}
.deck-symbol { font-size: .8em; }

.fineprint { color: rgba(253,246,227,.55); text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero { animation: none; }
}
