:root {
  --bg: #0a0907;
  --bg-alt: #120f0c;
  --text: #f3ecdc;
  --muted: #b3a88f;
  --gold: #d4a017;
  --gold-bright: #f0c040;
  --red: #c1121f;
  --red-bright: #e63946;
  --line: rgba(212, 160, 23, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--gold-bright); }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 9, 7, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Impact, "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand-logo[hidden], .brand-text[hidden] { display: none; }
.brand-text span, h1 span { color: var(--red-bright); }

.nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a { padding: 16px 20px; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; border-top: 1px solid var(--line); }
.nav a:hover { color: var(--gold-bright); background: var(--bg-alt); }

.nav-toggle { background: none; border: 1px solid var(--line); width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-bright); }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; overflow: hidden; }
.fractal {
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(212,160,23,0.14) 0deg 6deg, transparent 6deg 12deg),
    repeating-radial-gradient(circle at 50% 50%, rgba(193,18,31,0.28) 0 2px, transparent 2px 46px),
    radial-gradient(circle at 50% 50%, rgba(193,18,31,0.25), transparent 60%);
  mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fractal { animation: none; } html { scroll-behavior: auto; } }

.hero-inner { position: relative; width: 100%; max-width: 900px; }
.hero-logo {
  display: block; margin: 0 auto 22px;
  width: clamp(150px, 34vw, 300px); height: auto;
  filter: drop-shadow(0 0 26px rgba(193, 18, 31, 0.6)) drop-shadow(0 0 8px rgba(212, 160, 23, 0.45));
}
.hero-logo[hidden] { display: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.8rem; color: var(--gold); margin-bottom: 12px; }
h1 {
  font-family: Impact, "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 10vw, 7rem); line-height: 1; max-width: 100%; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold-bright);
}
.tagline { font-size: clamp(1.1rem, 4vw, 1.6rem); margin: 18px 0 30px; color: var(--text); font-style: italic; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn {
  display: inline-block; padding: 14px 28px; min-height: 48px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #0a0907; }
.btn-gold:hover { background: var(--gold-bright); color: #0a0907; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); color: #fff; }

/* Sections */
.section { padding: 64px 20px; max-width: 1000px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 960px; margin-left: auto; margin-right: auto; }
h2 {
  font-family: Impact, "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-bright); margin-bottom: 28px;
  border-left: 6px solid var(--red); padding-left: 14px;
}
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 20px; }
blockquote { border-left: 4px solid var(--gold); padding: 6px 0 6px 16px; font-size: 1.3rem; font-style: italic; color: var(--gold-bright); }
.about-grid { display: grid; gap: 32px; align-items: start; }
.about-photo { margin: 0 auto; width: 100%; max-width: 380px; }
.about-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border: 2px solid var(--gold); border-radius: 6px;
  box-shadow: 10px 10px 0 rgba(193, 18, 31, 0.7);
}
.bio { max-width: 760px; }
.bio p { margin-bottom: 18px; color: var(--text); }
.bio .lead { font-size: 1.25rem; }
.bio .bio-close { margin-top: 26px; font-size: 1.15rem; font-weight: 700; color: var(--gold-bright); }

/* Tracks */
.tracks { display: grid; gap: 18px; }
.track { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.track h3 { margin-bottom: 12px; font-size: 1.15rem; color: var(--text); }
.track audio { width: 100%; }
.track-note { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.sub-heading {
  margin: 40px 0 16px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold);
}
.videos { display: grid; gap: 18px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-line { margin-top: 24px; color: var(--muted); }

/* Game */
.section.game {
  max-width: none; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(193, 18, 31, 0.32), transparent 55%),
    radial-gradient(ellipse at 15% 20%, rgba(212, 160, 23, 0.14), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    #0d0a08;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.game-layout { display: grid; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.game-copy .eyebrow { margin-bottom: 10px; }
.game-copy h2 { margin-bottom: 18px; }
.game-lead { font-size: 1.2rem; max-width: 520px; margin-bottom: 22px; }
.game-how { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; color: var(--muted); }
.game-how li { position: relative; padding-left: 26px; }
.game-how li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: linear-gradient(135deg, var(--gold-bright), var(--red-bright)); transform: rotate(45deg) scale(0.75); }
.game-how b { color: var(--gold-bright); }
.discs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.discs li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.discs li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #0a0907 0 2px, var(--c) 2.5px 6px, #111 6.5px 7px, #1c1c1c 7.5px); border: 1px solid #333; }
.discs b { color: var(--text); }
.d-bronze { --c: #cd7f32; } .d-silver { --c: #c0c0c0; } .d-gold { --c: #ffd700; } .d-plat { --c: #e5f2ff; }

.arcade {
  width: 100%; max-width: 340px; margin: 0 auto; padding: 12px 12px 14px;
  background: linear-gradient(180deg, #1c1410, #0e0a08);
  border: 3px solid var(--gold); border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(193, 18, 31, 0.75), 0 0 40px rgba(212, 160, 23, 0.25);
}
.arcade-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.arcade-title { font-family: Impact, "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem; color: var(--gold-bright); text-shadow: 0 0 12px rgba(240, 192, 64, 0.6); white-space: nowrap; }
.bulbs { display: flex; gap: 5px; }
.bulbs i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright); }
.bulbs i:nth-child(even) { background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-bright); }
.screen { position: relative; aspect-ratio: 288 / 512; background: #0d0614; border: 2px solid #000; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(212, 160, 23, 0.35); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.game-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); }
.game-fallback[hidden] { display: none; }
.arcade-foot { margin-top: 10px; text-align: center; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Merch */
.merch-head { display: grid; gap: 28px; align-items: center; margin-bottom: 40px; }
.merch-head h2 { margin-bottom: 16px; }
.merch-intro { font-size: 1.2rem; color: var(--text); max-width: 520px; }
.shop-cta { margin-top: 24px; }
.btn-shop {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px; font-size: 1.05rem; letter-spacing: 0.1em;
  color: #0a0907; border-color: var(--gold-bright);
  background: linear-gradient(110deg, var(--gold-bright) 0%, var(--gold) 45%, var(--red-bright) 100%);
  box-shadow: 0 0 22px rgba(240, 192, 64, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.btn-shop:hover, .btn-shop:focus-visible { color: #fff; background: linear-gradient(110deg, var(--gold) 0%, var(--red) 100%); border-color: var(--red-bright); }
.btn-shop svg { flex: none; }
@media (max-width: 480px) { .btn-shop { display: flex; width: 100%; } }
.merch-logo { margin: 0 auto; width: 100%; max-width: 300px; }
.merch-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(193, 18, 31, 0.4)); }
.merch-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.merch-grid > div { min-width: 0; }
@media (min-width: 600px) { .merch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .merch-grid { grid-template-columns: repeat(3, 1fr); } }

/* Join */
.join-box { background: var(--bg-alt); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: 28px 22px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* Connect */
.socials { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.socials a { display: block; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--text); }
.socials a:hover { border-color: var(--red-bright); color: var(--gold-bright); background: var(--bg); }
.contact { color: var(--muted); }

/* Footer */
.site-footer { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 30px 20px; color: var(--muted); font-size: 0.9rem; }

/* ===== Motion & interaction ===== */

/* Header + scroll progress */
.site-header.scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); border-bottom-color: rgba(193, 18, 31, 0.55); }
.site-header.scrolled .brand-logo { height: 32px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 60; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--gold-bright)); }

/* Nav underline + current section */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; background: linear-gradient(90deg, var(--red-bright), var(--gold-bright)); transform: scaleX(0); transform-origin: left; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold-bright); }

/* Heading underline */
h2::after { content: ""; display: block; width: 90px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--gold-bright), var(--red-bright)); }

/* "Now playing" equalizer */
.eq { display: none; align-items: flex-end; gap: 3px; height: 16px; margin-left: 12px; vertical-align: middle; }
.track.playing .eq { display: inline-flex; }
.eq i { display: block; width: 3px; height: 100%; background: var(--red-bright); transform-origin: bottom; }
.eq i:nth-child(2) { background: var(--gold-bright); transform: scaleY(0.6); }
.eq i:nth-child(3) { transform: scaleY(0.85); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-40px); } }
  @keyframes pop { from { opacity: 0; transform: scale(0.8); } }
  @keyframes breathe {
    0%, 100% { filter: drop-shadow(0 0 26px rgba(193, 18, 31, 0.6)) drop-shadow(0 0 8px rgba(212, 160, 23, 0.45)); }
    50% { filter: drop-shadow(0 0 40px rgba(193, 18, 31, 0.85)) drop-shadow(0 0 16px rgba(240, 192, 64, 0.7)); }
  }
  @keyframes spin-rev { to { transform: rotate(-360deg); } }
  @keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(230, 57, 70, 0); } }
  @keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .merch-logo img { animation: float 6s ease-in-out infinite; }
  @keyframes shop-glow {
    0%, 100% { box-shadow: 0 0 18px rgba(240, 192, 64, 0.3), 0 8px 22px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 0 36px rgba(230, 57, 70, 0.65), 0 8px 22px rgba(0, 0, 0, 0.45); }
  }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
  .btn-shop { animation: shop-glow 2.6s ease-in-out infinite; }
  .btn-shop svg { animation: nudge 1.4s ease-in-out infinite; }
  @keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
  .bulbs i { animation: bulb 1.2s ease-in-out infinite; }
  .bulbs i:nth-child(2) { animation-delay: 0.24s; } .bulbs i:nth-child(3) { animation-delay: 0.48s; }
  .bulbs i:nth-child(4) { animation-delay: 0.72s; } .bulbs i:nth-child(5) { animation-delay: 0.96s; }
  @keyframes arcade-glow {
    0%, 100% { box-shadow: 10px 10px 0 rgba(193, 18, 31, 0.75), 0 0 34px rgba(212, 160, 23, 0.22); }
    50% { box-shadow: 10px 10px 0 rgba(193, 18, 31, 0.75), 0 0 56px rgba(230, 57, 70, 0.4); }
  }
  .arcade { animation: arcade-glow 4s ease-in-out infinite; }
  .js .arcade.reveal.in { animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards, arcade-glow 4s ease-in-out 1s infinite; }
  .btn-shop:hover svg { animation-duration: 0.7s; }

  /* Header + nav */
  .site-header { transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
  .brand-logo { transition: height 0.3s ease; }
  .nav a { transition: color 0.2s ease, background 0.2s ease; }
  .nav a::after { transition: transform 0.3s ease; }

  /* Hero entrance */
  .hero-logo { animation: pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, breathe 5s ease-in-out 1s infinite; }
  .eyebrow { animation: rise 0.7s ease 0.05s both; }
  h1 { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
  .tagline { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both; }
  .btn-row { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; }
  .hero .btn-red { animation: pulse-ring 2.8s ease-out 2s infinite; }
  .fractal::after {
    content: ""; position: absolute; inset: 10%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(193, 18, 31, 0.16) 0deg 4deg, transparent 4deg 10deg);
    animation: spin-rev 70s linear infinite;
  }

  /* Scroll reveal (classes are added by script.js) */
  .js .reveal { opacity: 0; }
  .js .reveal.in { opacity: 1; animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) backwards; }
  .js .reveal.from-left.in { animation-name: slide-in; }
  h2::after { transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
  .js .section h2.reveal:not(.in)::after { width: 0; }

  /* Buttons */
  .btn { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
  .btn::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-20deg);
  }
  .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
  .btn:hover::after { left: 140%; transition: left 0.7s ease; }
  .btn:active { transform: translateY(0); }

  /* Cards and media */
  .track { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
  .track:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(193, 18, 31, 0.2); }
  .eq i { animation: eq 0.8s ease-in-out infinite alternate; }
  .eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.2s; }
  .eq i:nth-child(3) { animation-duration: 0.95s; animation-delay: -0.4s; }
  .video { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
  .video:hover { border-color: var(--red-bright); box-shadow: 0 0 26px rgba(193, 18, 31, 0.35); }
  .about-photo img { transition: transform 0.4s ease, box-shadow 0.4s ease; }
  .about-photo:hover img { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 rgba(193, 18, 31, 0.8); }
  .socials a { transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
  .socials a:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(193, 18, 31, 0.25); }
  .join-box { transition: box-shadow 0.3s ease; }
  .join-box:hover { box-shadow: 0 0 34px rgba(212, 160, 23, 0.18); }
}

.track.playing { border-color: var(--red-bright); box-shadow: 0 0 22px rgba(230, 57, 70, 0.3); }

/* Desktop */
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; position: static; background: none; border: 0; }
  .nav a { border: 0; padding: 10px 12px; }
  .nav a:hover { background: none; }
  .nav a::after { left: 12px; right: 12px; bottom: 4px; }
  .section { padding: 90px 32px; }
  .socials { grid-template-columns: repeat(4, 1fr); }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 320px 1fr; gap: 48px; }
  .game-layout { grid-template-columns: 1fr 340px; gap: 64px; }
  .arcade { margin: 0 0 0 auto; }
  .merch-head { grid-template-columns: 1fr 340px; gap: 48px; }
  .merch-logo { margin: 0 0 0 auto; }
  .about-photo { margin: 0; }
  .site-footer { flex-direction: row; justify-content: space-between; max-width: 1000px; margin: 0 auto; }
}

/* Narrow desktop / tablet: keep six nav links on one line */
@media (min-width: 760px) and (max-width: 899px) {
  .nav a { padding: 10px 8px; font-size: 0.78rem; letter-spacing: 0.06em; }
  .nav a::after { left: 8px; right: 8px; }
}
