/* ============================================================
    JUDOX — Upside Down broadcast (Combined Base & Inline Styles)
   ============================================================ */
:root {
  --bg: #050505;
  --bg-2: #0a0507;
  --red: #ff2a2a;
  --red-deep: #a10f14;
  --red-glow: rgba(255, 42, 42, 0.55);
  --amber: #ffb454;
  --ink: #e8e2df;
  --ink-dim: rgba(232, 226, 223, 0.55);
  --ink-faint: rgba(232, 226, 223, 0.28);
  --hairline: rgba(255, 255, 255, 0.08);
  --shell-bg: rgba(255, 255, 255, 0.03);
  --ease-heavy: cubic-bezier(0.32, 0.72, 0, 1);
  --font-title: "Grenze", serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red-deep); color: #fff; }

/* ---------- atmosphere ---------- */
#dust {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 40; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.fog {
  position: fixed; pointer-events: none; z-index: 0;
}
.fog-top {
  inset: 0;
  background:
    radial-gradient(60vw 45vh at 50% -8%, rgba(255, 42, 42, 0.16), transparent 70%),
    radial-gradient(45vw 40vh at 82% 110%, rgba(64, 26, 30, 0.35), transparent 70%),
    radial-gradient(40vw 35vh at 8% 60%, rgba(30, 12, 16, 0.5), transparent 70%);
}

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(10, 8, 8, 0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.nav-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red);
  text-decoration: none;
  text-shadow: 0 0 14px var(--red-glow);
  display: flex; align-items: baseline; gap: 2px;
}
.nav-logo-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px var(--red-glow);
}
.nav-links { display: flex; gap: 1.3rem; align-items: center; }
.nav-links a, .nav-specs-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.5s var(--ease-heavy);
}
.nav-links a:hover, .nav-specs-link:hover { color: var(--red); }

/* Tape Audio Nav Button */
.tape-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  cursor: pointer;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.tape-nav-btn:hover {
  background: rgba(255, 42, 42, 0.18);
  color: #fff;
  border-color: var(--red);
}
.tape-nav-btn.is-playing {
  background: rgba(255, 42, 42, 0.25);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.4);
}
.tape-nav-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 42, 42, 0.4);
}
.tape-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #666;
  transition: background 0.3s ease;
}
.tape-nav-btn.is-playing .tape-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 1s infinite;
}

.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid rgba(255, 42, 42, 0.35);
  color: #ffb3b3;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.5s var(--ease-heavy), transform 0.5s var(--ease-heavy);
}
.nav-cta:hover { background: rgba(255, 42, 42, 0.22); }
.nav-cta:active { transform: scale(0.97); }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6b6b6b;
  flex: none;
  transition: background 0.6s var(--ease-heavy), box-shadow 0.6s var(--ease-heavy);
}
body.is-live .live-dot {
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  animation: pulse 1.8s var(--ease-heavy) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.6s var(--ease-heavy);
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* mobile overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.8rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-heavy), visibility 0.6s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay a, .menu-specs-link {
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.7s var(--ease-heavy), transform 0.7s var(--ease-heavy), color 0.4s;
  transition-delay: calc(var(--i) * 80ms);
}
.menu-overlay a:hover, .menu-specs-link:hover { color: var(--red); }
body.menu-open .menu-overlay a, body.menu-open .menu-specs-link { opacity: 1; transform: translateY(0); }
.menu-overlay .menu-twitch {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.1em;
}

/* ---------- hero ---------- */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  animation: hero-drift 40s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}

.hero {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
}
.hero > *:not(.hero-bg) { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 2rem;
  width: max-content;
}
.rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 1.6s infinite;
}

.title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  display: flex;
  user-select: none;
}
.title span {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  text-shadow:
    0 0 18px var(--red-glow),
    0 0 55px rgba(255, 42, 42, 0.35),
    0 0 120px rgba(255, 42, 42, 0.2);
  animation: neon-hum 3.2s linear infinite;
  animation-delay: var(--hum, 0s);
  transition: none;
}
.title span:first-child,
.title span:last-child {
  color: var(--red);
  -webkit-text-stroke: 0;
}
@keyframes neon-hum {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; } 42% { opacity: 0.88; } 43% { opacity: 1; }
  50% { opacity: 0.93; }
  76% { opacity: 1; } 77% { opacity: 0.9; } 78% { opacity: 1; }
}

.title span.dim {
  opacity: 0.35;
  text-shadow: 0 0 6px rgba(255, 42, 42, 0.2);
  transform: translateX(var(--jx, 0)) skewX(var(--jsk, 0deg));
}
.title span.dead {
  opacity: 0.07;
  text-shadow: none;
}

.title-mirror {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  display: flex;
  transform: scaleY(-1) translateY(-0.12em);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.28), transparent 65%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.28), transparent 65%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 26, 30, 0.55);
  filter: blur(4px);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2.4vw, 0.9rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 2.5rem;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-top: 3rem;
}

/* ============ INTERACTIVE BUTTONS & LINKS ============ */
.btn, .nav-links a, .menu-overlay a, .footer-links a, .chip-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .footer-links a:hover, .chip-link:hover {
  color: #ff2b2b !important;
  text-shadow: 0 0 10px rgba(255, 43, 43, 0.8), 0 0 20px rgba(255, 43, 43, 0.4);
  letter-spacing: 0.5px;
}

.btn-red {
  background: linear-gradient(135deg, #8a0303 0%, #ff2b2b 100%) !important;
  border: 1px solid #ff2b2b;
  box-shadow: 0 4px 20px rgba(255, 43, 43, 0.3);
  color: #fff !important;
  overflow: hidden;
}

.btn-red::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-red:hover::before { left: 100%; }
.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 43, 43, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

.btn-ghost {
  border: 1px dashed rgba(255, 43, 43, 0.5);
  color: #ede4d3;
  background: rgba(138, 3, 3, 0.1);
}
.btn-ghost:hover {
  border-color: #ff2b2b;
  background: rgba(255, 43, 43, 0.15);
  color: #ff2b2b;
  box-shadow: 0 0 15px rgba(255, 43, 43, 0.4);
  transform: translateY(-3px);
}

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 0.9rem;
  padding: 0.45rem 0.45rem 0.45rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.btn:active { transform: scale(0.97); }
.btn-orb {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.5s var(--ease-heavy);
  background: rgba(0, 0, 0, 0.25);
}
.btn:hover .btn-orb { transform: translate(2px, -1px) scale(1.06); }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: cue 2.4s var(--ease-heavy) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- alphabet-wall lights ---------- */
.lights {
  position: relative; z-index: 1;
  display: flex; justify-content: space-around; align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.lights-b { border-top-color: rgba(255, 255, 255, 0.04); }
.bulb {
  width: 9px; height: 13px;
  border-radius: 45% 45% 50% 50%;
  background: var(--bc, #ffb454);
  transform: translateY(6px);
  box-shadow: 0 0 12px var(--bc, #ffb454);
  animation: bulb-blink var(--bd, 4s) steps(1) infinite;
  animation-delay: var(--bdel, 0s);
}
.bulb::before {
  content: "";
  display: block;
  width: 3px; height: 6px;
  background: #1c1c1c;
  margin: -6px auto 0;
  border-radius: 2px 2px 0 0;
}
@keyframes bulb-blink {
  0%, 100% { opacity: 1; }
  7% { opacity: 0.15; } 9% { opacity: 1; }
  46% { opacity: 1; } 48% { opacity: 0.1; } 52% { opacity: 1; }
  83% { opacity: 0.2; } 85% { opacity: 1; }
}

/* ---------- sections ---------- */
.section {
  position: relative; z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 10rem) 1.5rem 0;
  display: flex; flex-direction: column; align-items: center;
}
.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px rgba(255, 42, 42, 0.18);
}
.section-sub {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ---------- double-bezel shells & spotlights ---------- */
.shell {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--shell-bg);
  border: 1px solid var(--hairline);
  border-radius: 1.75rem;
  padding: 0.45rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  width: 100%;
}
.shell:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 43, 43, 0.8) 0%,
    rgba(255, 43, 43, 0.15) 35%,
    rgba(255, 43, 43, 0.02) 70%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.shell:hover::before { opacity: 1; }

.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 43, 43, 0.18) 0%, rgba(138, 3, 3, 0.04) 50%, transparent 80%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1;
  mix-blend-mode: screen;
  filter: blur(40px);
  transition: opacity 0.3s ease;
}

.spotlight-heading {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.spotlight-heading .heading-base {
  position: relative;
  color: #fff;
  display: inline-block;
  transition: opacity 0.3s ease;
}
.spotlight-heading .heading-spot {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: inline-flex;
  pointer-events: none;
}
.spotlight-heading .heading-spot span {
  display: inline-block;
  color: #ff2b2b;
  opacity: 0;
  transform: translateX(var(--letter-offset, 0px));
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-heading.is-hovered .heading-base { opacity: 0; }
.spotlight-heading.is-hovered .heading-spot span {
  text-shadow: 0 0 12px rgba(255, 43, 43, 0.8), 0 0 25px rgba(255, 43, 43, 0.4);
  opacity: var(--random-opacity, 1);
  transform: translateX(0);
}

.core {
  background: linear-gradient(180deg, #0d0a0b, #080607);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(1.75rem - 0.45rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}

.embed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.chip-btn {
  background: transparent;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.chip-btn:hover, .chip-btn.active {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.3);
}
.chip-link {
  color: var(--red);
  text-decoration: none;
  border-color: rgba(255, 42, 42, 0.25);
  transition: background 0.5s var(--ease-heavy);
}
.chip-link:hover { background: rgba(255, 42, 42, 0.1); }
.chip-yt { color: #ff8a8a; }
.chip-discord { color: #7289da; border-color: rgba(114, 137, 218, 0.3); }

/* frames */
.frame { position: relative; width: 100%; background: #000; }
.frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.frame-16x9 { aspect-ratio: 16 / 9; }
.frame-chat { flex: 1; min-height: 420px; }
.frame-tiktok {
  flex: 1;
  width: 100%;
  min-height: 480px;
  height: 100%;
  background: transparent;
  position: relative;
}

/* ============ RETRO CRT SCANLINE ENGINE ============ */
.crt-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.4s ease;
  background:
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1.5px, transparent 1.5px, transparent 3px);
  box-shadow: inset 0 0 40px rgba(255, 43, 43, 0.12);
}
#twitchContainer.crt-active .crt-overlay {
  opacity: 1;
  animation: crt-flicker 0.15s infinite;
}
@keyframes crt-flicker {
  0% { opacity: 0.95; }
  50% { opacity: 1; }
  100% { opacity: 0.93; }
}

/* Overlays */
.embed-consent-overlay, .stream-offline-overlay {
  position: absolute; inset: 0; background: rgba(5,5,5,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10; text-align: center; padding: 1rem;
}
.stream-offline-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.offline-badge-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #9146FF;
  font-weight: bold;
}
.offline-title-text {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
  color: #ede4d3;
}

/* ---------- Bento & Cards ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
  width: 100%;
  margin-top: 2.5rem;
}
.bento-player { grid-column: span 8; }
.bento-chat { grid-column: span 4; display: flex; }
.bento-chat .core { width: 100%; }

.sub-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(138,3,3,0.12);
  border: 1px solid rgba(255,43,43,0.25);
  padding: 8px 12px; border-radius: 4px;
  width: 100%; box-sizing: border-box;
}
.sub-avatar-img {
  width: 28px; height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--red);
  background: #18090b;
  flex-shrink: 0;
}
.sub-details { display: flex; flex-direction: column; min-width: 0; }
.sub-name { font-size: 11px; font-weight: bold; color: #ede4d3; font-family: var(--font-mono); }
.sub-tier { font-size: 9px; color: #ff2b2b; font-family: var(--font-mono); }

/* Next Transmission Card */
.countdown-core {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
}
.countdown-badge-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-clock-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 43, 43, 0.4));
  animation: clock-pulse 4s ease-in-out infinite;
}
@keyframes clock-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 43, 43, 0.3)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(255, 43, 43, 0.7)); }
}
.countdown-content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}
.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.countdown-sched-day {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(138, 3, 3, 0.15);
  border: 1px solid rgba(255, 43, 43, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 52px;
}
.time-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px var(--red-glow);
}
.time-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.time-sep {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--red);
  animation: pulse 1s infinite;
}

/* Badges Showcase Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(138, 3, 3, 0.1);
  border: 1px solid rgba(255, 43, 43, 0.2);
  border-radius: 8px;
  padding: 8px 4px;
  transition: all 0.3s ease;
}
.badge-item:hover {
  background: rgba(138, 3, 3, 0.25);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 43, 43, 0.2);
}
.badge-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.badge-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #ede4d3;
  letter-spacing: 0.05em;
}

/* Stretched equal height for YouTube and TikTok cards */
.socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  width: 100%;
  margin-top: 2.5rem;
  align-items: stretch;
}
.socials-grid > .shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.socials-grid > .shell > .core {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Discord Section Refined ---------- */
.discord-shell {
  max-width: 980px;
  width: 100%;
  margin-top: 2.5rem;
}
.discord-core {
  display: grid;
  grid-template-columns: 1.1fr 380px;
  gap: 2rem;
  padding: 1.8rem;
  align-items: center;
}
.discord-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}
.discord-badge-art {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(255, 43, 43, 0.4));
}
.discord-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.discord-desc {
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}
.discord-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.4rem 0 0.8rem;
}
.discord-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
}
.discord-join-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.discord-widget-panel {
  width: 100%;
  display: flex;
  justify-content: center;
}
.frame-discord {
  width: 100%;
  max-width: 380px;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: #202225;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  position: relative;
}
.frame-discord iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* ============ SPECS & COMMANDS MODAL ============ */
.specs-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.specs-modal-backdrop.is-open {
  opacity: 1; pointer-events: auto;
}
.specs-modal-dialog {
  background: #0d0a0b;
  border: 1px solid rgba(255, 43, 43, 0.4);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 43, 43, 0.2);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease-heavy);
}
.specs-modal-backdrop.is-open .specs-modal-dialog {
  transform: translateY(0);
}
.specs-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.specs-modal-close {
  background: transparent; border: 0;
  color: var(--ink-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.specs-modal-close:hover { color: var(--red); }
.specs-modal-body {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.specs-cat-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.65rem;
}
.specs-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.specs-list li {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
}
.spec-k { color: var(--ink-dim); }
.spec-v { color: #fff; font-weight: 500; }
.commands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cmd-pill {
  display: flex; flex-direction: column; align-items: flex-start;
  background: rgba(138, 3, 3, 0.12);
  border: 1px solid rgba(255, 43, 43, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}
.cmd-pill:hover {
  background: rgba(138, 3, 3, 0.25);
  border-color: var(--red);
  transform: translateY(-2px);
}
.cmd-code { font-family: var(--font-mono); font-size: 12px; font-weight: bold; color: #fff; }
.cmd-desc { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-dim); margin-top: 2px; }
.copy-notice {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem 3rem;
}
.footer-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  display: flex; justify-content: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 42, 42, 0.35);
  user-select: none;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.5s var(--ease-heavy);
}
.footer-links a:hover { color: var(--red); }
.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(3.5rem);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-heavy), transform 0.9s var(--ease-heavy), filter 0.9s var(--ease-heavy);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  #dust { display: none; }
}

/* ---------- mobile & responsive ---------- */
@media (max-width: 900px) {
  .bento-player { grid-column: span 12; }
  .bento-chat { grid-column: span 12; display: flex !important; }
  .bento-subs-card { grid-column: span 12 !important; display: block !important; width: 100% !important; }
  .bento-follows-card { grid-column: span 12 !important; display: block !important; width: 100% !important; }
  .bento-countdown-card { grid-column: span 12 !important; display: block !important; width: 100% !important; }
  .bento-badges-card { grid-column: span 12 !important; display: block !important; width: 100% !important; }
  .frame-chat { min-height: 380px; }

  .discord-core {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.4rem;
  }
  .discord-join-btn { width: 100%; }
  .frame-discord { max-width: 100%; height: 420px; }
}

@media (max-width: 768px) {
  .nav { gap: 0.75rem; padding: 0.45rem 0.45rem 0.45rem 0.9rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: block; }

  .section { padding-left: 1rem; padding-right: 1rem; }
  .bento { grid-template-columns: 1fr; gap: 1rem; display: flex !important; flex-direction: column !important; }
  .bento-player, .bento-chat, .bento-subs-card, .bento-follows-card, .bento-countdown-card, .bento-badges-card {
    grid-column: auto !important; width: 100% !important; display: block !important;
  }
  .countdown-core { flex-direction: column; text-align: center; }
  .countdown-content-side { align-items: center; }
  .countdown-header { justify-content: center; }

  .socials-grid { grid-template-columns: 1fr; }
  .frame-tiktok { min-height: 520px; }
  .frame-chat { min-height: 340px; }
  .frame-discord { height: 380px; }
  .title span { -webkit-text-stroke-width: 1.4px; }
  .lights { max-width: 100%; }
  .grain { display: none; }
}

/* ---------- YouTube VODs Overview Styles ---------- */
.yt-vod-shell .core {
  display: flex;
  flex-direction: column;
}

.yt-player-frame {
  background: #000;
  border-bottom: 1px solid var(--hairline);
}

.vod-feed-container {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(10, 5, 7, 0.6);
}

.vod-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.vod-feed-sublink {
  color: var(--red);
  text-decoration: none;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
}
.vod-feed-sublink:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.vod-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.vod-list::-webkit-scrollbar { width: 4px; }
.vod-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 4px; }
.vod-list::-webkit-scrollbar-thumb { background: rgba(255, 43, 43, 0.3); border-radius: 4px; }
.vod-list::-webkit-scrollbar-thumb:hover { background: var(--red); }

.vod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(138, 3, 3, 0.1);
  border: 1px solid rgba(255, 43, 43, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: all 0.25s var(--ease-heavy);
  position: relative;
}
.vod-item:hover {
  background: rgba(138, 3, 3, 0.22);
  border-color: rgba(255, 43, 43, 0.5);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(255, 43, 43, 0.15);
}
.vod-item:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.6);
}
.vod-item.is-active {
  background: rgba(138, 3, 3, 0.28);
  border-color: var(--red);
  box-shadow: inset 0 0 12px rgba(255, 43, 43, 0.25), 0 0 15px rgba(255, 43, 43, 0.2);
}

.vod-thumb-wrap {
  position: relative;
  width: 58px; height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: #18090b;
  border: 1px solid rgba(255, 43, 43, 0.3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.vod-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.vod-play-badge {
  position: absolute;
  font-size: 10px; color: #fff;
  background: rgba(0, 0, 0, 0.65);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding-left: 2px;
  border: 1px solid rgba(255, 43, 43, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.vod-item:hover .vod-play-badge {
  transform: scale(1.15);
  background: var(--red);
}

.vod-details {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0; flex: 1;
}
.vod-title {
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-body);
}
.vod-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9.5px;
}
.vod-tag { color: var(--red); letter-spacing: 0.05em; text-transform: uppercase; }
.vod-date { color: var(--ink-dim); }

.vod-ext-btn {
  color: var(--ink-dim); font-size: 13px; text-decoration: none;
  padding: 4px 6px; border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.vod-ext-btn:hover { color: var(--red); transform: scale(1.15); }
.vod-action-bar { display: flex; justify-content: center; margin-top: 4px; }
.vod-all-btn {
  width: 100%; padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  font-size: 0.8rem; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.vod-all-btn .btn-orb { width: 1.9rem; height: 1.9rem; font-size: 0.85rem; }
