/* ─────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS — @property (2024+ registered custom properties)
───────────────────────────────────────────────────────────────────────── */
@property --hue-shift {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --hero-hue {
  syntax: "<number>";
  inherits: false;
  initial-value: 300;
}
@property --glow-spread {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --counter-val {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
@property --scanline-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.12;
}

/* ─────────────────────────────────────────────────────────────────────────
   ROOT PALETTE — oklch() neon fever dream
───────────────────────────────────────────────────────────────────────── */
:root {
  /* Core neons */
  --hot-pink:       oklch(65% 0.35 340);
  --acid-yellow:    oklch(88% 0.28 100);
  --electric-teal:  oklch(72% 0.22 195);
  --slime-green:    oklch(78% 0.28 140);
  --deep-purple:    oklch(35% 0.28 295);
  --synthwave-blue: oklch(55% 0.28 255);
  --orange-crush:   oklch(68% 0.32 50);
  --off-black:      oklch(8% 0.02 295);
  --near-white:     oklch(96% 0.01 90);

  /* Mixed variants */
  --pink-fade:      color-mix(in oklch, var(--hot-pink) 60%, transparent);
  --teal-fade:      color-mix(in oklch, var(--electric-teal) 50%, transparent);
  --tv-glow:        color-mix(in oklch, var(--slime-green) 80%, var(--electric-teal));

  /* Typography */
  --font-display:   "Arial Black", "Impact", sans-serif;
  --font-body:      "Arial", "Helvetica", sans-serif;
  --font-mono:      "Courier New", "Courier", monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 10vw, 8rem);

  /* Easing */
  --spring: linear(
    0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%,
    1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161 30%,
    1.154 33.8%, 1.129 40.6%, 1.051 58.3%, 1.017 69.3%, 1
  );

  color-scheme: dark;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESET + BASE
───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--hot-pink) var(--off-black);
  scrollbar-width: thin;
}

body {
  background-color: var(--off-black);
  color: var(--near-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: crosshair;
}

/* page glow when TV is on */
body:has(#tv-unit.tv-on) {
  --glow-spread: 40px;
}

img { max-width: 100%; display: block; }
a { color: var(--acid-yellow); }

/* kill the 300ms tap delay / accidental double-tap zoom on controls */
button, .webring-btn, .about-cassette-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────────────────────────────────────
   BACKGROUND CANVAS
───────────────────────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   TICKER STRIP
───────────────────────────────────────────────────────────────────────── */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--hot-pink);
  padding: 6px 0;
  padding-top: calc(6px + env(safe-area-inset-top));
  border-bottom: 3px solid var(--acid-yellow);
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--off-black);
}

.ticker-track span { flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: var(--section-pad) 1.5rem;
  padding-top: calc(var(--section-pad) + 40px); /* ticker offset */
  overflow: hidden;
}

#hoverboard-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--acid-yellow);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px var(--acid-yellow);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}

.hero-line1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: 0.2em;
  color: var(--near-white);
  text-shadow:
    0 0 20px var(--electric-teal),
    0 0 40px var(--electric-teal),
    3px 3px 0 var(--deep-purple);
  animation: hero-hue-shift 8s ease-in-out infinite alternate;
}

.hero-line2 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 11rem);
  letter-spacing: -0.01em;
  background: linear-gradient(
    135deg,
    var(--hot-pink) 0%,
    var(--acid-yellow) 30%,
    var(--electric-teal) 60%,
    var(--hot-pink) 100%
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-pan 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px var(--hot-pink));
}

.hero-dot {
  color: var(--hot-pink);
  -webkit-text-fill-color: var(--hot-pink);
  filter: drop-shadow(0 0 10px var(--hot-pink));
}

.vhs-osd {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  color: var(--slime-green);
  text-shadow: 0 0 6px var(--slime-green);
  letter-spacing: 0.1em;
  margin-top: 2rem;
  opacity: 0.85;
}

.scroll-prompt {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--acid-yellow);
  text-shadow: 0 0 8px var(--acid-yellow);
  animation: blink 1.2s step-end infinite;
}

/* ─────────────────────────────────────────────────────────────────────────
   TAGLINE SECTION
───────────────────────────────────────────────────────────────────────── */
.section-tagline {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad) 2rem;
  overflow: hidden;
  /* hue shifts with scroll — driven in animations.css */
  background: oklch(10% 0.06 calc(295 + var(--hue-shift)));
}

.vhs-title-card {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.vcr-osd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slime-green);
  text-shadow: 0 0 6px var(--slime-green);
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
  text-align: left;
}

.tagline-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--near-white);
  text-shadow:
    0 0 30px var(--hot-pink),
    4px 4px 0 var(--deep-purple);
  position: relative;
  z-index: 2;
  text-wrap: balance;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em;
}

.tl-word {
  display: inline-block;
  /* scroll-driven entrance applied in animations.css */
}

/* Chromatic aberration ghost layer */
.chromatic-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--hot-pink);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(4px, -2px);
  animation: chroma-glitch 8s ease-in-out infinite;
  text-wrap: balance;
  z-index: 1;
}

/* Giphy stickers */
.sticker {
  position: absolute;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}
.sticker img { border-radius: inherit; }

.sticker-1 {
  top: 10%;
  right: 5%;
  transform: rotate(12deg);
  width: clamp(100px, 15vw, 200px);
}
.sticker-2 {
  bottom: 15%;
  left: 4%;
  transform: rotate(-8deg);
  width: clamp(80px, 12vw, 160px);
}
.sticker-3 {
  top: 60%;
  right: 8%;
  transform: rotate(5deg);
  width: clamp(90px, 13vw, 180px);
}

/* ─────────────────────────────────────────────────────────────────────────
   TV SECTION
───────────────────────────────────────────────────────────────────────── */
.section-tv {
  position: relative;
  z-index: 1;
  min-height: 120svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad) 2rem calc(var(--section-pad) * 1.5);
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%,
      oklch(15% 0.08 140 / 0.6) 0%,
      transparent 70%),
    var(--off-black);
}

/* container query context */
.tv-scene {
  container-type: inline-size;
  container-name: tv-scene;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.tv-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(300px, 80vw, 640px);
  transition: filter 0.6s ease;
}

.tv-unit.tv-on {
  filter:
    drop-shadow(0 0 var(--glow-spread, 20px) var(--tv-glow))
    drop-shadow(0 0 60px color-mix(in oklch, var(--tv-glow) 40%, transparent));
}

.tv-top-bezel {
  width: 92%;
  height: 18px;
  background: linear-gradient(180deg, #5a3e28 0%, #3d2a1a 100%);
  border-radius: 12px 12px 0 0;
  border: 3px solid #2a1d0f;
  border-bottom: none;
}

.tv-body {
  width: 100%;
  background: linear-gradient(160deg, #6b4a2e 0%, #3d2a1a 50%, #2a1d0f 100%);
  border-radius: 8px 8px 4px 4px;
  border: 4px solid #2a1d0f;
  padding: clamp(12px, 3vw, 24px);
  box-shadow:
    inset 0 4px 8px rgba(0,0,0,0.5),
    inset 0 -2px 4px rgba(255,200,100,0.08),
    0 8px 32px rgba(0,0,0,0.8);
}

.tv-screen-wrap {
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 6px solid #1a1208;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.9),
    inset 0 0 4px rgba(255,255,255,0.05),
    0 0 0 2px #2a1d0f;
}

.tv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

/* powered off — CRT collapse */
.tv-unit:not(.tv-on) .tv-screen-wrap {
  animation: crt-off 0.4s ease-out forwards;
}
.tv-unit.tv-on .tv-screen-wrap {
  animation: crt-on 0.5s ease-out forwards;
}

#yt-player-container,
#yt-player-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

/* Scanlines overlay */
.tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}

/* Static canvas overlay */
#tv-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.1s;
  border-radius: inherit;
}
#tv-static.active { opacity: 1; }

/* OSD */
.tv-osd {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 12;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.5cqi, 1rem);
  color: var(--slime-green);
  text-shadow: 0 0 6px var(--slime-green);
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.tv-osd.visible { opacity: 1; }

/* Controls */
.tv-controls {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqi, 20px);
  margin-top: clamp(10px, 2vw, 18px);
  justify-content: space-between;
}

.tv-btn {
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 1.5cqi, 0.8rem);
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #8b6a42 0%, #5a3e28 100%);
  color: var(--near-white);
  border: 3px solid #2a1d0f;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(255,200,100,0.15),
    0 3px 6px rgba(0,0,0,0.5);
  transition: transform 0.08s var(--spring), box-shadow 0.08s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.tv-btn:hover {
  background: linear-gradient(180deg, #a07845 0%, #6b4a2e 100%);
}

.tv-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
}

.tv-power {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.btn-icon { font-size: 1.2em; }
.btn-label { font-size: 0.6em; letter-spacing: 0.1em; }

.tv-knob-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-speaker-grille {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
}
.tv-speaker-grille span {
  display: block;
  width: clamp(24px, 5cqi, 48px);
  height: 3px;
  background: #2a1d0f;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

/* TV legs */
.tv-legs {
  display: flex;
  justify-content: space-between;
  width: 70%;
}
.tv-leg {
  width: 28px;
  height: 24px;
  background: linear-gradient(180deg, #3d2a1a 0%, #2a1d0f 100%);
  border: 3px solid #1a1208;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* TV label */
.tv-label {
  text-align: center;
  font-family: var(--font-display);
}
.tv-brand {
  display: block;
  font-size: clamp(1rem, 4vw, 2rem);
  color: var(--acid-yellow);
  text-shadow: 0 0 12px var(--acid-yellow);
  letter-spacing: 0.25em;
}
.tv-model {
  display: block;
  font-size: 0.7rem;
  color: var(--electric-teal);
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  text-shadow: 0 0 6px var(--electric-teal);
}

/* swipe hint — only shown on touch devices */
.swipe-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--hot-pink);
  text-shadow: 0 0 8px var(--hot-pink);
  animation: blink 1.6s step-end infinite;
}

@media (pointer: coarse) {
  .swipe-hint { display: block; }
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: oklch(6% 0.03 295);
  border-top: 4px solid var(--hot-pink);
  padding: 3rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
}

.under-construction {
  background: repeating-linear-gradient(
    45deg,
    var(--acid-yellow) 0px,
    var(--acid-yellow) 20px,
    var(--off-black) 20px,
    var(--off-black) 40px
  );
  color: var(--off-black);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 8px 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  animation: construction-scroll 3s linear infinite;
  background-size: 56px 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto 2rem;
}

.footer-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Hit counter */
.counter-label, .counter-sublabel {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--acid-yellow);
  text-shadow: 0 0 6px var(--acid-yellow);
}

.counter-digits {
  display: flex;
  gap: 2px;
  background: #000;
  border: 3px solid var(--acid-yellow);
  border-radius: 4px;
  padding: 4px 8px;
  box-shadow: 0 0 12px color-mix(in oklch, var(--acid-yellow) 40%, transparent);
}

.digit {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--slime-green);
  text-shadow: 0 0 8px var(--slime-green);
  width: 1ch;
  text-align: center;
  display: inline-block;
}

/* Webring */
.webring-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--electric-teal);
  text-shadow: 0 0 6px var(--electric-teal);
}

.webring-nav {
  display: flex;
  gap: 6px;
}

.webring-btn {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--deep-purple);
  color: var(--acid-yellow);
  border: 2px solid var(--hot-pink);
  border-radius: 3px;
  padding: 5px 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s var(--spring);
  cursor: pointer;
}
.webring-btn:hover {
  background: var(--hot-pink);
  color: var(--off-black);
  transform: scale(1.08);
}
.webring-home {
  background: var(--hot-pink);
  color: var(--off-black);
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: oklch(12% 0.04 295);
  border: 2px solid var(--electric-teal);
  color: var(--near-white);
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0 6px color-mix(in oklch, var(--electric-teal) 30%, transparent);
}

.guestbook-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--hot-pink);
  color: var(--off-black);
  border: 3px solid var(--acid-yellow);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform 0.12s var(--spring), background 0.15s;
  box-shadow: 3px 3px 0 var(--acid-yellow);
}
.guestbook-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--acid-yellow);
}

.giphy-attr {
  text-align: center;
  font-size: 0.65rem;
  color: oklch(50% 0.05 295);
  margin-bottom: 0.75rem;
}
.giphy-attr a { color: oklch(60% 0.1 295); }

.footer-copy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: oklch(45% 0.05 295);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────────────────────────────────
   GUESTBOOK POPOVER (Win95 style)
───────────────────────────────────────────────────────────────────────── */
.guestbook-popover {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(480px, 94vw);
  background: #c0c0c0;
  border: 3px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 4px 4px 0 #000, inset 1px 1px 0 #dfdfdf;
  padding: 0;
  border-radius: 0;
  z-index: 1000;
  /* popover entry animation */
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--spring),
    display 0.25s allow-discrete;
  opacity: 1;
}

@starting-style {
  .guestbook-popover:popover-open {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.92);
  }
}

.guestbook-popover:not(:popover-open) {
  opacity: 0;
  transform: translate(-50%, -54%) scale(0.95);
}

.win95-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
}

.win95-close {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  color: #000;
  width: 20px;
  height: 18px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  padding: 0;
}

.win95-body {
  padding: 1.2rem;
}

.win95-body p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #000;
  margin-bottom: 1rem;
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-form label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #000;
  letter-spacing: 0.02em;
}

.gb-form input,
.gb-form textarea {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 4px 6px;
  color: #000;
  resize: vertical;
  outline: none;
}

.gb-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.win95-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 4px 14px;
  cursor: pointer;
  box-shadow: 1px 1px 0 #000;
  color: #000;
  min-width: 72px;
  text-align: center;
  letter-spacing: 0.02em;
}
.win95-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   ABOUT POPOVER (cassette card)
───────────────────────────────────────────────────────────────────────── */
.about-cassette-btn {
  position: fixed;
  top: calc(40px + 1rem + env(safe-area-inset-top));
  right: calc(1.5rem + env(safe-area-inset-right));
  z-index: 200;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: var(--deep-purple);
  color: var(--acid-yellow);
  border: 2px solid var(--hot-pink);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--hot-pink);
  transition: transform 0.1s var(--spring);
}
.about-cassette-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--hot-pink); }

.about-popover {
  position: fixed;
  inset: auto;
  top: calc(40px + 4rem);
  right: 1.5rem;
  left: auto;
  margin: 0;
  width: min(320px, 90vw);
  background: var(--off-black);
  border: 3px solid var(--hot-pink);
  border-radius: 8px;
  box-shadow:
    0 0 20px var(--hot-pink),
    4px 4px 0 var(--deep-purple);
  padding: 0;
  z-index: 300;
  transition:
    opacity 0.2s ease,
    transform 0.3s var(--spring),
    display 0.2s allow-discrete;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .about-popover:popover-open {
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
  }
}

.about-popover:not(:popover-open) {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.cassette-card {
  padding: 1.2rem;
}

.cassette-label {
  border: 2px solid var(--deep-purple);
  background: oklch(12% 0.06 295);
  border-radius: 4px;
  padding: 1rem;
}

.cassette-label h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--acid-yellow);
  text-shadow: 0 0 8px var(--acid-yellow);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.cassette-label p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--near-white);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.cassette-side {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--electric-teal);
  letter-spacing: 0.15em;
  margin-top: 0.8rem;
  display: block;
}

.cassette-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 2px solid var(--hot-pink);
  color: var(--hot-pink);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   KEYFRAME ANIMATIONS (non-scroll-driven)
───────────────────────────────────────────────────────────────────────── */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes gradient-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes hero-hue-shift {
  0%   { text-shadow: 0 0 20px var(--electric-teal), 0 0 40px var(--electric-teal), 3px 3px 0 var(--deep-purple); }
  50%  { text-shadow: 0 0 20px var(--hot-pink), 0 0 40px var(--hot-pink), 3px 3px 0 oklch(30% 0.25 255); }
  100% { text-shadow: 0 0 20px var(--slime-green), 0 0 40px var(--slime-green), 3px 3px 0 var(--deep-purple); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes chroma-glitch {
  0%, 90%, 100% { transform: translate(4px, -2px); opacity: 0.35; }
  92%           { transform: translate(-6px, 3px) skewX(3deg); opacity: 0.6; }
  94%           { transform: translate(8px, -1px) skewX(-2deg); opacity: 0.2; }
  96%           { transform: translate(4px, -2px); opacity: 0.35; }
}

@keyframes construction-scroll {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}

@keyframes crt-off {
  0%   { clip-path: inset(0 0 0 0 round 8px); }
  40%  { clip-path: inset(48% 0 48% 0 round 8px); }
  100% { clip-path: inset(50% 0 50% 0 round 8px); opacity: 0.3; }
}

@keyframes crt-on {
  0%   { clip-path: inset(50% 0 50% 0 round 8px); opacity: 0.3; }
  40%  { clip-path: inset(2% 0 2% 0 round 8px); opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round 8px); }
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE / TOUCH
───────────────────────────────────────────────────────────────────────── */
@media (pointer: coarse) {
  /* WCAG-friendly tap targets */
  .tv-btn,
  .webring-btn,
  .guestbook-btn,
  .win95-btn,
  .about-cassette-btn,
  .win95-close,
  .cassette-close {
    min-height: 44px;
    min-width: 44px;
  }

  .tv-knob-group { gap: 8px; }

  body { cursor: auto; }
}

@media (max-width: 640px) {
  /* keep stickers in the corners, off the tagline text */
  .sticker-1 { top: 4%;    right: 2%;  width: clamp(80px, 22vw, 120px); }
  .sticker-2 { bottom: 6%; left: 2%;   width: clamp(70px, 20vw, 110px); }
  .sticker-3 { top: auto;  bottom: 4%; right: 2%; width: clamp(70px, 20vw, 110px); }
  .sticker { opacity: 0.9; }

  .hero-line1 { letter-spacing: 0.12em; }

  .about-cassette-btn {
    font-size: 0.65rem;
    padding: 8px 10px;
  }

  .ticker-track { font-size: 0.65rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .scroll-prompt { bottom: 2rem; }
}

/* tilt hint — touch devices only */
.tilt-hint {
  display: none;
  position: absolute;
  bottom: 5.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--electric-teal);
  text-shadow: 0 0 8px var(--electric-teal);
  white-space: nowrap;
}

@media (pointer: coarse) {
  .tilt-hint { display: block; }
}

/* ─────────────────────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
  .hero-line2   { background-size: 100% 100%; animation: none; }
}
