/* =============================
   FONTS
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');

@font-face{font-family:'AirStrike';src:url('/airstrike.woff2') format('woff2'),url('/airstrike.ttf') format('truetype');font-weight:400;font-style:normal}
@font-face{font-family:'AirStrikeLaser';src:url('/airstrikelaser.woff2') format('woff2'),url('/airstrikelaser.ttf') format('truetype');font-weight:400;font-style:normal}
@font-face{font-family:'Speedy';src:url('/Speedy.woff2') format('woff2'),url('/Speedy.otf') format('opentype'),url('/Speedy.ttf') format('truetype');font-weight:400;font-style:normal}

/* =============================
   BASE
   ============================= */
:root{
  --nav-red:#e11414;
  --nav-bg:#0b0b0b;
  --nav-text:#ffffff;
}
html,body{margin:0;padding:0;background:#0a0a0a;color:#f1f1f1;font-family:'Speedy',Arial,sans-serif;line-height:1.5}
p,ul,ol{margin:0 0 1rem}
h1{font-family:'AirStrikeLaser',sans-serif;margin:0 0 .5rem;letter-spacing:1px}
h2,h3{font-family:'AirStrike',sans-serif;margin:0 0 .5rem;letter-spacing:1px}
header img{cursor:pointer}

/* =============================
   HEADER + DESKTOP NAV
   ============================= */
.site-header{position:relative;z-index:10000;isolation:isolate;text-align:center;padding:.75rem 1rem;background:transparent}
.header-inner{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.branding-group{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.site-title,.site-tagline{margin:0}

.site-nav{position:relative;z-index:10001}
.menu{list-style:none;margin:0;padding:0;display:flex;gap:28px;align-items:center;justify-content:center}
.menu-item{position:relative}
.nav-link{
  color:var(--nav-text);
  text-decoration:underline;
  text-decoration-color:var(--nav-red);
  text-decoration-thickness:2px;
  text-underline-offset:4px;
  display:inline-block;line-height:1;padding:10px 2px;transition:color .15s ease
}
.nav-link:hover,.nav-link:focus-visible{color:var(--nav-red);outline:none}

/* Submenu */
.submenu{
  position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%);
  min-width:220px;background:var(--nav-red);color:#fff;border-radius:14px;padding:8px;
  box-shadow:0 14px 28px rgba(0,0,0,.45);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .15s ease,transform .15s ease,visibility 0s linear .15s;
  z-index:10002
}
.menu-item.has-sub::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px}
.menu-item.has-sub:hover>.submenu,
.menu-item.has-sub:focus-within>.submenu,
.menu-item.has-sub.open>.submenu{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)
}
.submenu a{display:block;padding:10px 12px;border-radius:10px;color:#fff;text-decoration:none;line-height:1.1}
.submenu a:hover,.submenu a:focus-visible{
  color:#000;text-decoration:underline;text-decoration-color:#000;text-decoration-thickness:2px;text-underline-offset:3px;outline:none
}

/* =============================
   BANNER (background + overlay art)
   ============================= */
.banner-container{
  position:relative;width:100%;height:clamp(180px,28vw,285px);
  background:url('https://s3.us-east-2.amazonaws.com/deathbydesign.rocks/Web+Banner+BG.png') no-repeat center/cover;
  display:flex;align-items:center;justify-content:center;overflow:hidden
}
.banner-container picture,.banner-container img{
  display:block;height:100%;width:auto;max-height:100%;object-fit:contain;position:relative;z-index:1
}
header,.site-header,#header-container{overflow:visible}
.banner-container,.story-hero,.hero,.banner,#hero,#banner{position:relative;z-index:1;overflow:visible}

/* =============================
   MOBILE: show sticky, hide desktop nav
   ============================= */


/* =============================
   STREAMING LINKS (Homepage)
   ============================= */
.streaming-links-section {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
}
.streaming-links-section h2 {
  font-family: 'AirStrikeLaser', sans-serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}


.streaming-links-section .streaming-links {
  display: flex;            /* lay children in a row */
  flex-wrap: wrap;          /* wrap to next line on small screens */
  justify-content: center;  /* center items horizontally */
  align-items: center;      /* center items vertically */
  gap: 1rem;                /* space between each item */
  margin: 0 auto;           /* center the entire row in its parent */
  padding: 0 1rem;          /* small side padding on mobile */
}
.streaming-links a {
  display: inline-block;
}

.streaming-links img {
  max-height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}
.streaming-item {
  position: relative;
}
.streaming-item.coming-soon .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.streaming-item.coming-soon .overlay span {
  color: #fff;
  font-family: 'Speedy', Arial, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
}
@media (max-width: 480px) {
  .streaming-links img {
    max-height: 40px;
  }
  .streaming-item.coming-soon .overlay span {
    font-size: 0.8rem;
  }
}

/* =============================
   STORY SECTIONS (Story‐Behind‐The‐Songs)
   ============================= */
.story-section {
  max-width: 700px;
  margin: 2rem auto;   /* restore top/bottom breathing room */
  padding: 0 1rem;     /* horizontal padding for mobile */
}
.story-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}
.story-intro p {
  margin: 0 0 1rem;
}
.read-more {
  color: #f55;
  cursor: pointer;
  text-decoration: underline;
}
.hidden-content {
  display: none;
  margin-top: 1rem;
}
.hidden-content p,
.hidden-content ul {
  margin: 0 0 1rem;
}
.hidden-content ul li {
  margin-left: 1.5rem;
  list-style-type: disc;
}

/* FULL-WIDTH HERO (for story pages) */
.story-hero {
  width: 100vw;        /* truly edge-to-edge */
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
.story-hero picture,
.story-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.thank-you-section {
  padding: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  line-height: 1.6;
}

header {
  padding: 0.5rem 1rem;     /* reduce top/bottom and left/right padding */
  text-align: center;
}

header img {
  display: block;           /* ensure block-level centering */
  margin: 0 auto 0.5rem;    /* no top, auto left/right, small bottom */
  max-width: 120px;         /* scale down if needed */
  height: auto;
}

header h1 {
  margin: 0 0 0.25rem;      /* remove top, small bottom */
  font-size: 1.75rem;       /* adjust as desired */
}

header h2 {
  margin: 0 0 0.5rem;       /* remove top, small bottom */
  font-size: 1rem;          /* adjust as desired */
  font-weight: 400;
}

header hr {
  margin: 0 auto;           /* remove extra space above/below */
  width: 60%;               /* shorten if you like */
}

  .contest-banner {
    margin: 2rem 0;
    text-align: center;
  }
  .contest-banner picture,
  .contest-banner img {
    width: 100%;
    height: auto;
    display: block;
  }
  .contest-banner a {
    display: inline-block;
    width: 100%;
  }

/* Center the header content */
.site-header {
  text-align: center;          /* center inline content as fallback */
  padding: 1rem 2rem;          /* optional spacing */
}

/* Constrain & center the inner wrapper */
.header-inner {
  max-width: 1200px;           /* or your desired container width */
  margin: 0 auto;              /* horizontally center */
  display: flex;               /* make it a flex container */
  flex-direction: column;      /* stack children vertically */
  align-items: center;         /* center horizontally */
  justify-content: center;     /* center vertically if you give it a height */
}

/* Logo + title group laid out side-by-side and centered */
.branding-group {
  display: flex;
  flex-direction: column;      /* change to row if you want logo + text side-by-side */
  align-items: center;
  gap: 0.5rem;                 /* space between logo and text */
}

/* Tweak margins so nothing pulls off-center */
.site-logo,
.site-branding {
  margin: 0;
  padding: 0;
}

.site-title,
.site-tagline {
  margin: 0;
}


/* — POPUP CARD — */
#stream-popup {
  background: #fff;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;            /* allow vertical scrolling if the card is too tall */
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

/* — STREAM POP-UP — */
 /* STREAM POPUP OVERLAY */
#stream-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;           /* hide by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#stream-popup-overlay.active {
  display: flex;           /* show when JS adds .active */
}

#stream-popup {
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

/* optional “close” button tweaks */
#stream-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: none;
}

  .popup-album-art { width: 100%; border-radius: 6px; margin-bottom: 1rem; }
    .popup-album-title { font-size: 1.25rem; margin: .25rem 0; font-weight: bold; }
    .popup-album-artist { color: #666; margin-bottom: 1rem; }
    .popup-listen-on { font-weight: 500; text-align: left; margin-bottom: .75rem; }
    .popup-links { list-style: none; padding: 0; margin: 0; }
    .popup-links li + li { margin-top: .5rem; }
    .popup-links a {
      display: flex; align-items: center;
      padding: .6rem .75rem; background: #fafafa;
      border: 1px solid #ddd; border-radius: 6px;
      text-decoration: none; color: #111;
      transition: background .2s, border-color .2s;
    }
    .popup-links a:hover {
      background: #f0f0f0; border-color: #ccc;
    }
    .popup-icon img { width: 72px; height: 24px; flex-shrink: 0; }
    .popup-link-text { margin-left: .75rem; flex: 1; text-align: left; }
    .popup-link-arrow { margin-left: auto; font-size: 1.2rem; color: #888; }


/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: #000;
  color: #666;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-family: 'Speedy', Arial, sans-serif;
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer-menu li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-menu li a:hover {
  color: #f55;
}
.footer-credits {
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 480px) {
  .footer-menu ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}
/* STREAM POPUP OVERLAY — hide until .active */
#stream-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;             /* ← hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#stream-popup-overlay.active {
  display: flex;        /* or block, however you lay it out */
  align-items: center;  /* if you want it centered vertically */
  justify-content: center;
}

/* POPUP CARD */
#stream-popup {
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  max-height: 100%;
  overflow: auto;
}

/* === Stream pop-up card === */
#stream-popup {
  width: 90%;          /* almost full width on phones */
  max-width: 400px;    /* never exceed 400px on desktop */
  box-sizing: border-box; /* include padding in width */
  margin: 2rem auto;      /* center it vertically/horizontally */
  background: #111;       /* as you had it */
  padding: 2rem;
  border-radius: 8px;
  overflow-y: auto;
}

#stream-popup-close {
  position: absolute;
  top: 3rem;
  right: 3rem;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
}

/* Combined Social & Merch Section */
.social-and-merch {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Default (mobile): columns are full width & stack */
.social-and-merch .social-col,
.social-and-merch .merch-col {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* Desktop layout: 33% / 66% split */
@media (min-width: 769px) {
  .social-and-merch .social-col {
    width: 33.3333%;
  }
  .social-and-merch .merch-col {
    width: 66.6667%;
  }
}

/* Tighten up headings */
.social-and-merch h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.fb-container { display:flex; justify-content:center; text-align:center; }

/* PARALLAX LAYERS */
.parallax-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: -1;
  /* control speed via inline --speed variable */
}
.parallax-layer.back {
  background-image: url('/assets/Cosmic-web-bg.jpg');
  --speed: 0.2;
}
.parallax-layer.mid {
  background-image: url('/assets/Cosmic-web-bg.jpg');
  --speed: 0.5;
}

/* BUTTON RIPPLE BASE */
.btn {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* LINK UNDERLINE & COLOR SHIFT */
.link-anim {
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.link-anim::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: #ff0000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.link-anim:hover {
  color: #ff0000;
}
.link-anim:hover::after {
  transform: scaleX(1);
}


/* GRADIENT TEXT ANIMATION */
.gradient-text {
  background: linear-gradient(270deg, #ff0000, #0000ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
}
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#stream-popup-overlay.hidden {
  display: none;
}

#stream-popup-overlay.active {
  position: fixed;
  inset: 0;
  display: flex;           /* center the pop-up */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}
/* 1) Always have the overlay in the flow (so transitions can run) */
#stream-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* when active, fade it in */
#stream-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 2) Give the inner card a tiny scale/translate for “pop” effect */
#stream-popup {
  background: #111;
  border-radius: 8px;
  padding: 1.5rem;
  /* start shrunk & lifted */
  transform: translateY(-20px) scale(0.8);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* bring it home */
#stream-popup-overlay.active #stream-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}
/* Make the hidden stream overlay NON-interactive; only clickable when active */
#stream-popup-overlay { pointer-events: none; }
#stream-popup-overlay.active { pointer-events: auto; }

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.streaming-item img,
.socials a {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.streaming-item:hover img,
.socials a:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
/* ===== NAV VARIABLES ===== */
:root{
  --nav-red:#e11414;
  --nav-text:#ffffff;
  --nav-bg:#0b0b0b;
}

/* Header layout + make sure it sits above everything */
.site-header{
  position: relative;          /* sticky optional; see next line */
  /* position: sticky; top: 0; */  /* uncomment if you want sticky nav */
  z-index: 2147483000;         /* very high */
  background: transparent;
  isolation: isolate;          /* its own stacking context */
}
.header-inner{
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  padding: 12px 0;
}
.branding-group{ display:flex; align-items:center; gap:14px; }
.site-title{ margin:0; }
.site-tagline{ margin:.125rem 0 0 0; }

/* ===== TOP ROW MENU ===== */
.site-nav{ position: relative; z-index: 2147483001; }
.menu{
  list-style:none; margin:0; padding:0;
  display:flex; gap:28px; align-items:center; justify-content:center;
}
.menu-item{ position:relative; }

/* Top-level links: white text with red underline by default */
.nav-link{
  color:var(--nav-text);
  text-decoration: underline;
  text-decoration-color: var(--nav-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  padding: 10px 2px;
  display:inline-block;
  line-height:1;
  transition: color .15s ease;
}
/* Hover → text turns RED (underline stays red) */
.nav-link:hover,
.nav-link:focus-visible{
  color: var(--nav-red);
  outline: none;
}

/* ===== SUBMENU PANEL ===== */
.submenu{
  position:absolute;
  left:50%; top:calc(100% + 10px);          /* sits just below tab */
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--nav-red);               /* RED background */
  color:#fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 14px 28px rgba(0,0,0,.45);

  /* hidden by default without collapsing layout */
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  z-index: 2147483002;                      /* above header & banners */
}

/* Hover bridge so you can move the mouse down without flicker */
.menu-item.has-sub::after{
  content:"";
  position:absolute; left:0; right:0; top:100%;
  height:14px;                              /* fills the gap under tab */
}

/* Show submenu when:
   - hovering the parent tab
   - focusing inside (keyboard)
   - JS toggles .open on the <li> (touch & hover intent)
*/
.menu-item.has-sub:hover > .submenu,
.menu-item.has-sub:focus-within > .submenu,
.menu-item.has-sub.open > .submenu{
  opacity:1; visibility:visible; pointer-events:auto;
  transform: translateX(-50%) translateY(0);
}

/* Submenu links */
.submenu a{
  display:block;
  color:#fff;                               /* WHITE text on RED bg */
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  line-height:1.1;
}
/* Submenu hover → BLACK text + BLACK underline */
.submenu a:hover,
.submenu a:focus-visible{
  color:#000;
  text-decoration: underline;
  text-decoration-color:#000;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  outline:none;
}

/* ===== ENSURE BANNERS CAN'T COVER THE MENU ===== */
header, .site-header, #header-container{ overflow: visible !important; }

#image-overlay{
  position: absolute;
  inset: 0;                       /* fill the banner area */
  display: flex;
  align-items: center;
  justify-content: center;        /* perfectly center the overlay art */
  pointer-events: none;           /* clicks go through to links below */
  z-index: 450;                   /* below header (500), above banner */
}

#image-overlay img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;            /* scale nicely without cropping */
}


/* ===== NAV / SUBNAV MUST BE ABOVE EVERYTHING ===== */
#header-container {
  position: relative;
  z-index: 2147483600 !important; /* super high */
  isolation: isolate;              /* new top-level stacking context */
  overflow: visible !important;
}

#header-container .site-header {
  position: sticky;                /* or relative if you don't want sticky */
  top: 0;
  z-index: 2147483601 !important;
  overflow: visible !important;
}

#header-container .site-nav {
  position: relative;
  z-index: 2147483602 !important;
  overflow: visible !important;
}

#header-container .site-nav .submenu {
  position: absolute;              /* stays anchored to the tab */
  z-index: 2147483603 !important;  /* above hero/artwork */
}

/* ===== BANNER / HERO MUST STAY BELOW HEADER ===== */
.story-hero, .hero, .banner, #hero, #banner {
  position: relative;
  z-index: 1 !important;           /* safely below header */
  overflow: visible !important;    /* never clip the dropdown */
}



/* Safety: transforms/filters create new stacking contexts—turn them off on header */
#header-container, .site-header, .site-nav {
  transform: none !important;
  filter: none !important;
}
/* FAQ (Accordion) */
.qa-section{ padding:2rem; max-width:900px; margin:3rem auto; line-height:1.6; }
.qa-section h2{ font-size:2rem; margin-bottom:1.5rem; text-align:center; }
.accordion{
  background:#000; color:#fff; cursor:pointer; padding:1rem; width:100%;
  border:none; outline:none; text-align:left; font-size:1.2rem; font-weight:bold; position:relative;
  border-bottom:1px solid #444; transition:background-color .3s ease;
}
.accordion:hover{ background:#111; }
.accordion::after{
  content:'+'; color:#fff; font-size:1.5rem; position:absolute; right:1rem; top:50%; transform:translateY(-50%);
}
.accordion.active::after{ content:'−'; }
.panel{ background:#111; color:#ddd; padding:0 1rem; max-height:0; overflow:hidden; transition:max-height .3s ease-out; }

/* Full-width image + glitch caption */
.full-width-image-section{ position:relative; width:100%; overflow:hidden; }
.full-width-image-section .responsive-full-img{ display:block; width:100%; height:auto; object-fit:cover; }
.full-width-image-section .glitch-caption{ position:absolute; left:0; right:0; bottom:0; z-index:2; background:rgba(0,0,0,.75); text-align:center; padding:1.5rem 1rem; }
.glitch-text{
  display:inline-block; font-family:'AirStrikeLaser', sans-serif; color:#fff; font-size:1.25rem; letter-spacing:1px; position:relative;
  animation:glitch-skew 1s infinite alternate;
}
.glitch-text::before,.glitch-text::after{
  content:attr(data-text); position:absolute; left:0; width:100%; top:0; color:#fff; background:transparent; overflow:hidden;
}
.glitch-text::before{ animation:glitch-top .9s infinite linear alternate-reverse; color:#f00; }
.glitch-text::after{ animation:glitch-bottom .9s infinite linear alternate; color:#0ff; }
@keyframes glitch-skew{ 0%{transform:skew(0)} 20%{transform:skew(3deg)} 40%{transform:skew(-3deg)} 60%{transform:skew(2deg)} 80%{transform:skew(-2deg)} 100%{transform:skew(0)} }
@keyframes glitch-top{ 0%{clip:rect(0,9999px,0,0);transform:translate(-1px,-1px)} 10%{clip:rect(10px,9999px,40px,0);transform:translate(1px,1px)} 20%{clip:rect(85px,9999px,140px,0);transform:translate(-2px,-1px)} 100%{clip:rect(0,9999px,0,0);transform:translate(0,0)} }
@keyframes glitch-bottom{ 0%{clip:rect(0,9999px,0,0);transform:translate(1px,1px)} 10%{clip:rect(50px,9999px,90px,0);transform:translate(-2px,2px)} 20%{clip:rect(130px,9999px,180px,0);transform:translate(2px,-2px)} 100%{clip:rect(0,9999px,0,0);transform:translate(0,0)} }

/* Footer */
.site-footer{ background:#000; color:#666; text-align:center; padding:2rem 1rem; margin-top:4rem; font-family:'Speedy', Arial, sans-serif; }
.footer-menu ul{ list-style:none; padding:0; margin:0 0 1rem; display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; }
.footer-menu li a{ color:#eee; text-decoration:none; transition:color .3s ease; }
.footer-menu li a:hover{ color:#f55; }
.footer-credits{ font-size:.9rem; color:#666; }
@media (max-width:480px){ .footer-menu ul{ flex-direction:column; gap:.75rem; } }

/* ===== SIMPLE MOBILE NAV (independent of desktop nav) ===== */
/* Hide mobile UI on desktop */
#mobileNavPanel,
#mobileNavOverlay { display: none; }

/* Phones & small tablets */
@media (max-width: 768px){
  /* hide desktop nav */
  .site-nav{ display:none; }

  /* show mobile bits */
  #mobileNavPanel{ display:block; }
  #mobileNavOverlay{ display:block; }


  .mobile-fab{
    width: 56px; height: 56px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: var(--nav-red, #e11414);
    color: #000; font-size: 26px; line-height: 56px;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2147483648;            /* ensure above everything */
  }

  /* overlay (click-to-close) */
  .mobile-overlay{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 2147483645;
  }
  .mobile-overlay[hidden]{ display:none !important; }

  /* slide-in panel */
  .mobile-panel{
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(86vw, 420px);
    background: var(--nav-bg); color: var(--nav-text);
    border-left: 3px solid var(--nav-red);
    z-index: 2147483646;
    transform: translateX(100%);      /* closed */
    transition: transform .2s ease;
      display: flex;
  flex-direction: column;
    
  }
  body.mobile-nav-open .mobile-panel{ transform: translateX(0); }

  .mobile-panel-head{
      margin-top: auto; 
      display:flex; align-items:center; justify-content:space-between;
      padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
      font-weight:700;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  .mobile-close{
    border:0; background:transparent; color:#fff;
    font-size:22px; padding:8px; cursor:pointer;
  }

.mobile-links{
    display:flex; flex-direction:column;
    gap: 2px; padding: 6px 12px 14px; overflow-y:auto;
  }
  .mobile-links a{
    display:block; padding:12px 10px;
    color:#fff; text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .mobile-links a:last-child{ border-bottom:0; }
  .mobile-links a:hover, .mobile-links a:active{
    background: rgba(255,255,255,.06);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* stop page scroll while open */
  body.mobile-nav-open{ overflow: hidden; touch-action: none; }
}

/* Hide FAB on desktop */
#mobileMenuBtn { display: none; }

/* Phones & small tablets */
@media (max-width: 768px){
  #mobileMenuBtn{
    display: grid;                 /* centers the ☰ */
    position: fixed;
    right: 16px;
    bottom: 16px;
    /* kill any leftover middle-of-screen rules */
    top: auto !important;
    left: auto !important;
    transform: none !important;

    z-index: 2147483647;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--nav-red, #e11414);
    color: #000; border: 0; line-height: 56px;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
  }
}
/* Stream popup: always above everything */
#stream-popup-overlay{
  position: fixed;
  inset: 0;                      /* top:0; right:0; bottom:0; left:0 */
  z-index: 2147483647 !important;/* higher than any other layer */
  display: flex;                 /* or whatever you use when visible */
  align-items: center;
  justify-content: center;
}

#stream-popup{
  position: relative;
  z-index: 1;                    /* above the semi-transparent backdrop */
}
/* FINAL OVERRIDES — phones only */
@media (max-width: 768px){
  /* keep the red FAB bottom-right, no matter what came before */
  #mobileMenuBtn{
    position: fixed !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 2147483647 !important;
  }

  /* drawer: header at top, links block anchored to bottom */
  .mobile-panel{
    display: flex !important;
    flex-direction: column !important;
  }
  .mobile-panel-head{ flex: 0 0 auto !important; }
  .mobile-links{            /* push to bottom */
    max-height: calc(100svh - 64px) !important; /* scroll if needed */
    overflow-y: auto !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    margin-bottom: 90px;
  }
}

/* ==============================
   MICRO MERCH STRIP (namespaced)
   ============================== */
.ms-strip{
  --ms-red: var(--nav-red, #e11414);
  --ms-bg: #0b0b0b;
  --ms-card: #111;
  --ms-border: rgba(255,255,255,.08);
  --ms-border-hover: rgba(225,20,20,.55);
  --ms-text: #fff;

  --tile: 140px;                 /* base tile size (tight/compact) */

  max-width: 2400px;
  margin: 6px auto 0;
  padding: 0 6x;
  color: var(--ms-text);
}

.ms-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr)); /* exactly 5 on desktop */
  gap: 5px;
}

/* Card */
.ms-card{
  display: flex;
  flex-direction: column;
  gap:3px;
  text-decoration: none;
  color: inherit;
  background: var(--ms-card);
  border: 1px solid var(--ms-border);
  border-radius: 14px;
  padding: 3    px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) inset;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ms-card:hover{
  transform: translateY(-3px);
  border-color: var(--ms-border-hover);
  box-shadow: 0 8px 28px rgba(225,20,20,.08) inset, 0 10px 24px rgba(0,0,0,.35);
}

/* Image box: fixed, centered, never huge */
.ms-media{
  position: relative;
  width: 100%;
  height: var(--tile);
  border-radius: 10px;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ms-media img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Price pill inside the image box (bottom-right) */
.ms-price{
  position: absolute;
  right: 1px;
  bottom: 1px;
  background: var(--ms-red);
  color: #FFF;
  font-weight: 600;
  padding: 5px 5px;
  line-height: 1;
  border-radius: 999px;
  font-size: .65rem;
  box-shadow: 0 4px 14px rgba(225,20,20,.35);
}

/* One-line title under the image */
.ms-title{
  text-align: center;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .4px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Shop All" link */
.ms-more{
  margin: 2px 0 0;
  text-align: left;
}
.ms-more a{
  color: #9c7dff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ms-more a:hover{ color: #caa8ff; 
  text-decoration-color:var(--nav-red);
}
/* Slightly larger tiles on very wide screens */
@media (min-width: 1300px){
  .ms-strip{ --tile: 180px; }
}

/* Responsive columns + smaller tiles */
@media (max-width: 1100px){
  .ms-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 900px){
  .ms-strip{ --tile: 180px; }
  .ms-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .ms-strip{ --tile: 110px; }
  .ms-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
/* === HOMEPAGE MERCH ROW — TIGHT, CENTERED, IMAGE-FILLS BOX === */

/* grid: 5 across on desktop, tiny 2px gaps */
.ms-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:2px;                               /* ← tiny spacing */
  align-items:stretch;
}

/* cards: minimal padding, subtle frame */
.ms-card{
  position:relative;
  background:#0e0e0e;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:2px;                           /* ← tiny padding */
  display:flex;
  flex-direction:column;
}

/* media area: center the image and let it fill */
.ms-media{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:0;                             /* no inner padding */
  min-height:0;                          /* avoid odd flex sizing */
}

/* image fills the box; centered */
.ms-media img{
  width:100%;
  height:100%;
  object-fit:contain;                    /* show whole tee without cropping */
  display:block;
  margin:0;
}

/* title: single line, centered, ellipsis */
.ms-title{
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:6px 8px 10px;
  font-size:clamp(12px,1.6vw,15px);
}

/* price pill: smaller, tucked in corner */
.ms-price{
  position:absolute;
  right:6px;
  bottom:6px;
  background:var(--nav-red, #e11414);
  color:#000;
  border-radius:999px;
  font-weight:700;
  font-size:0.92rem;
  line-height:1;
  padding:4px 10px;
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}

/* responsive: fewer columns + horizontal snap on small screens */
@media (max-width: 1100px){
  .ms-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (max-width: 900px){
  .ms-grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width: 700px){
  .ms-grid{
    grid-auto-flow:column;
    grid-auto-columns:80%;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:6px;
  }
  .ms-card{ scroll-snap-align:start; }
}
/* === HOMEPAGE MERCH ROW — fix media sizing & centering === */

/* Card container */
.ms-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

/* Figure wrapper: remove default margins and give it a consistent box */
figure.ms-media{
  margin: 0 !important;              /* <figure> has default margins */
  width: 100%;
  /* Square-ish viewport that grows with screen, but never tiny/huge */
  aspect-ratio: 1 / 1;
  min-height: clamp(180px, 22vw, 260px);
  border-radius: 14px;
  background: rgba(255,255,255,.03);

  /* center the image perfectly */
  display: grid;
  place-items: center;

  /* let the price badge sit over the image corner */
  position: relative;
  overflow: hidden;                  /* neat edges for shadows, etc. */
}

/* Image: fill the box while keeping aspect ratio; always centered */
.ms-media img{
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;               /* no cropping; use all available space */
  object-position: center center;
  margin: 0;
}

/* Title: one line, centered, ellipsis */
.ms-title{
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 8px 10px;
  font-size: clamp(12px, 1.6vw, 15px);
}

/* Price pill: snug in the image corner */
.ms-price{
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--nav-red, #e11414);
  color: #000;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 4px 10px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
/* Card background colors */

/* Make cards use the variable */
.ms-card{
  background: var(--ms-card-bg);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

/* Hover/focus switch to the hover color */
@media (hover:hover){
  .ms-card:hover,
  .ms-card:focus-within{
    background: var(--ms-card-bg-hover);
  }
}

/* Tap feedback on touch-only devices */
@media (hover:none){
  .ms-card:active{
    background: var(--ms-card-bg-hover);
  }
}
:root{
  --ms-card-bg: #111;        /* base card background */
  --ms-card-bg-hover: #770000;/* hover background */
}
/* --- HORIZONTAL MERCH STRIP --- */
.ms-strip{ overflow-x:auto; }

/* Make the scroller deterministic */
.ms-grid{
  display:flex;                 /* horizontal row */
  gap:12px;
  padding:0 8px 12px;
  scroll-snap-type:x proximity;
  min-width:0;                  /* fixes Safari shrink issues */
}

/* Consistent card width even when off-screen */
:root{
  --ms-card-w-mobile: 82vw;     /* phones: each card ~screen width */
  --ms-card-w-desktop: 260px;   /* desktop card width */
}

.ms-card{
  flex: 0 0 var(--ms-card-w-mobile);
  width: var(--ms-card-w-mobile);
  min-width: var(--ms-card-w-mobile);
  scroll-snap-align: start;

  /* keeps layout stable before paint */
  contain: layout paint;
}

@media (min-width: 768px){
  .ms-card{
    flex-basis: var(--ms-card-w-desktop);
    width: var(--ms-card-w-desktop);
    min-width: var(--ms-card-w-desktop);
  }
}

/* Stable media box so images never change card height as they load */
.ms-media{
  aspect-ratio: 1 / 1.25;       /* adjust to taste */
  width: 100%;
  display: grid;
  place-items: center;
background-color: var(--nav-white, #ffffff);
}

/* Image centered and constrained */
.ms-media img{
  display:block;
  width:100%;
  height:100%;
  display: block;
background-color: white;
  object-fit: contain;           /* or 'cover' if you prefer edge-to-edge */
}

/* If you experimented with content-visibility, add a fallback size */
.ms-card[style*="content-visibility:auto"],
.ms-card.cv-auto{
  contain-intrinsic-size: 360px 440px; /* approx card W×H */
}
.ms-grid{
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--ms-card-w-mobile);
  gap:12px;
  padding:0 8px 12px;
  scroll-snap-type:x proximity;
}
@media (min-width:768px){
  .ms-grid{ grid-auto-columns: var(--ms-card-w-desktop); }
}
/* “Shop All Merch” button */
.ms-more { 
  margin-top: 0.75rem; 
  text-align: left;            /* center if you prefer */
}

.ms-more a{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--nav-red, #e11414);  /* uses your existing var if present */
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-more a:hover{
  background: #ff2a2a;
  transform: translateY(-1px);
}

.ms-more a:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.ms-more a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}