:root {
  --bg: #07000f;
  --paper: #0a0218;
  --hot1: #ff00aa;
  --hot2: #00f0ff;
  --hot3: #ffe600;
  --hot4: #6cff00;
  --hot5: #ff7700;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: #fff;
  font-family: "VT323", "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  min-height: 100%;
}
body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 0, 170, 0.18), transparent 35%),
    radial-gradient(circle at 85% 18%, rgba(0, 240, 255, 0.18), transparent 38%),
    radial-gradient(circle at 50% 95%, rgba(255, 230, 0, 0.12), transparent 40%),
    var(--bg);
}

/* ── animated psychedelic backdrop ───────────────────────────── */
canvas#psych {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* moving diagonal stripe overlay (Llamasoft-y stripe rave) */
body::before {
  content: "";
  position: fixed; inset: -10vh -10vw;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 0, 170, 0.06) 0 6px,
    transparent 6px 22px,
    rgba(0, 240, 255, 0.06) 22px 28px,
    transparent 28px 44px,
    rgba(255, 230, 0, 0.05) 44px 50px,
    transparent 50px 70px
  );
  animation: scroll-stripes 16s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.4px);
}
/* CRT scanlines on top of everything (subtle) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

@keyframes scroll-stripes {
  from { transform: translate(0, 0); }
  to   { transform: translate(-220px, 220px); }
}

main {
  position: relative;
  z-index: 5;
  padding: 5vh 5vw 12vh;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 6vh 0 4vh; position: relative; }

.glyphs {
  font-family: "Major Mono Display", monospace;
  letter-spacing: 0.6em;
  font-size: 14px;
  color: var(--hot2);
  text-shadow: 0 0 14px var(--hot2), 0 0 28px var(--hot2);
  animation: hue-cycle 6s linear infinite;
  margin-bottom: 18px;
}

h1.title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(34px, 9vw, 110px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 auto;
}
/* Each word on its own line. */
h1.title .word {
  display: block;
}
h1.title span[style] {
  display: inline-block;
  color: var(--hot1);
  text-shadow:
    0 0 12px currentColor,
    0 0 28px currentColor,
    0 0 56px currentColor,
    4px 4px 0 #001;
  animation:
    hue-cycle 4s linear infinite,
    bob 1.6s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * -0.18s),
    calc(var(--i, 0) * -0.10s);
}

@keyframes hue-cycle {
  to { filter: hue-rotate(360deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-8px) rotate(-1.2deg); }
}

.subtitle {
  margin-top: 18px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(11px, 1.6vw, 16px);
  letter-spacing: 0.45em;
  color: var(--hot3);
  text-shadow: 0 0 10px var(--hot3), 0 0 20px var(--hot3);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ── LATEST CTA ──────────────────────────────────────────────── */
.cta-latest {
  display: block;
  max-width: 720px;
  margin: 48px auto 40px;
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 3px solid var(--hot2);
  box-shadow:
    0 0 24px var(--hot2),
    inset 0 0 24px rgba(0, 240, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 0, 170, 0.18), rgba(0, 240, 255, 0.18));
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.cta-latest:hover { transform: translateY(-3px) scale(1.01); }
.cta-latest::before {
  content: "";
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg,
    var(--hot1), var(--hot2), var(--hot3), var(--hot4), var(--hot5), var(--hot1));
  opacity: 0.20;
  filter: blur(40px);
  animation: spin 12s linear infinite;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-latest .l-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--hot3);
  text-shadow: 0 0 10px var(--hot3);
}
.cta-latest .l-name {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 4vw, 44px);
  letter-spacing: 0.15em;
  margin: 12px 0 6px;
  color: #fff;
  text-shadow: 0 0 16px var(--hot2), 0 0 32px var(--hot2);
}
.cta-latest .l-sub {
  font-family: "VT323", monospace;
  font-size: 24px;
  color: #ffffff;
  text-shadow:
    0 0 10px var(--hot3),
    0 0 22px var(--hot3),
    0 0 36px rgba(255, 230, 0, 0.6);
  letter-spacing: 0.2em;
}

/* Secondary "all versions" / "back" link below the CTA. */
.all-versions-link {
  display: block;
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--hot2);
  border: 1px dashed currentColor;
  text-shadow: 0 0 10px currentColor;
  background: rgba(0, 240, 255, 0.04);
  transition: transform 0.18s ease, background 0.18s ease;
}
.all-versions-link:hover {
  transform: translateY(-2px);
  background: rgba(0, 240, 255, 0.10);
}

/* ── VERSIONS GRID ───────────────────────────────────────────── */
.versions {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

article.ver {
  position: relative;
  padding: 24px 26px 26px;
  border: 2px solid;
  background: linear-gradient(180deg, rgba(10, 2, 24, 0.85), rgba(7, 0, 15, 0.92));
  backdrop-filter: blur(2px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
article.ver::before {
  content: "";
  position: absolute; inset: -2px;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent, currentColor, transparent 60%);
  opacity: 0.18;
  animation: spin 10s linear infinite;
  z-index: -1;
  filter: blur(6px);
}

.ver-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px dashed currentColor;
  margin-bottom: 18px;
}
.ver-no {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 3.6vw, 36px);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px currentColor, 0 0 28px currentColor;
}
.ver-tag {
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
.ver-play {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  padding: 10px 14px;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: #fff;
  border: 2px solid currentColor;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 14px currentColor, inset 0 0 14px rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease;
}
.ver-play:hover {
  transform: translate(-2px, -2px);
  background: rgba(255, 255, 255, 0.08);
}

.step h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  margin: 14px 0 8px;
  color: var(--hot3);
  text-shadow: 0 0 8px var(--hot3);
}
.step blockquote {
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.35;
  padding: 12px 16px;
  border-left: 3px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  color: #f8f8ff;
  white-space: pre-wrap;
}
.step blockquote::before { content: "⌜ "; opacity: 0.6; }
.step blockquote::after  { content: " ⌟"; opacity: 0.6; }

.step ul {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}
.step ul li {
  font-family: "VT323", monospace;
  font-size: 21px;
  line-height: 1.45;
  padding: 3px 0 3px 28px;
  position: relative;
  color: #e9eaff;
}
.step ul li::before {
  content: "▸";
  position: absolute;
  left: 6px;
  color: currentColor;
  text-shadow: 0 0 6px currentColor;
}
.step ul li code {
  font-family: "VT323", monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 4px;
  border-radius: 2px;
  color: var(--hot3);
}

/* alternating accent palettes per card */
.acc-1 { color: var(--hot1); }
.acc-2 { color: var(--hot2); }
.acc-3 { color: var(--hot3); }
.acc-4 { color: var(--hot4); }
.acc-5 { color: var(--hot5); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  margin-top: 60px;
  text-align: center;
  font-family: "VT323", monospace;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
  line-height: 1.7;
}
footer .neon { color: var(--hot1); text-shadow: 0 0 10px var(--hot1); }
