/* ============================================================
   ortopilot.com - style.css
   Cyber Loop HUD Theme (Concept 8 Core System)
   ============================================================ */

@import "fonts.css";

/* ── Variables ── */
:root {
  --bg:             #06060a;
  --surface:        #0e0e14;
  --card-bg:        rgba(16, 16, 24, 0.85);
  --card-hover:     rgba(26, 26, 38, 0.95);
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.2);
  
  --text:           #f0f0f5;
  --text-muted:     #8c8c9e;
  /* #5c5c6e until 2026-09-02: it measured 3.09:1 against --bg where WCAG AA
     needs 4.5:1, and it was the single token behind 18 of the site's contrast
     failures - including every footer line and the 9.9px countdown labels,
     i.e. the worst ratio sat on the smallest text. #7d7d8f keeps the same
     blue-grey hue and measures ~5.0:1 on --bg / ~4.9:1 on --card-bg. */
  --text-dim:       #7d7d8f;
  
  --neon-red:       #ff003c;
  --neon-red-bright:#ff2a55;
  --red:            #ff003c;
  --red-hover:      #ff2a55;
  
  --font-main:      'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      'JetBrains Mono', Consolas, Monaco, monospace;
  --font:           'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Platform Brand Colors */
  --brand-spotify:   #1DB954;
  --brand-twitch:    #9146FF;
  --brand-youtube:   #FF0000;
  --brand-x:         #FFFFFF;
  --brand-instagram: #E4405F;
  --brand-discord:   #5865F2;
  --brand-patreon:   #FF424D;
  --brand-email:     #FF003C;
}

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

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; overflow-y: scroll; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 0, 60, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 55%, rgba(145, 70, 255, 0.08) 0%, transparent 45%);
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--neon-red); outline-offset: 2px; }

/* REQUIRED companion to the intrinsic width/height attributes on all 33 local
   <img> (added 2026-09-02). Those attributes reserve the right box during load,
   which is what kills the layout shift - but they are ALSO presentational hints
   for `height`, so on any image whose CSS constrains only one axis the attribute
   silently becomes the used height and DISTORTS the picture.

   Measured before this rule existed: #elixir-sponsor-logo (CSS `width: 135px`,
   no height) rendered 135x248 instead of 135x156, and .store-card-img
   (`width: 100%; aspect-ratio: 1`) rendered 286x333 instead of 286x286.

   Any CSS declaration beats a presentational hint, so this restores `auto`
   sizing, while more specific rules that DO set a height - .official-logo-img
   (28px) and .merch-photo-box img (100%) - still win over it as intended.

   THIS RULE AND THE ATTRIBUTES ARE ONE CHANGE. Reverting the attributes without
   this, or this without the attributes, is safe; keeping the attributes while
   dropping this rule is what distorts images. */
img { height: auto; }

a {
  color: var(--neon-red);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--neon-red-bright);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header & Navigation ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner, .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.brand-hud {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.official-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

/* Mobile menu button. Hidden above 860px; the drawer rules live in the
   responsive block at the bottom of this file. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 34px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle:hover { border-color: var(--neon-red); }
.nav-toggle:hover span { background: #fff; }

header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

nav, .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

nav a, .nav-links a {
  color: var(--text-muted);
  text-decoration: none !important;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

nav a:hover, .nav-links a:hover {
  color: #fff;
  background: rgba(255, 0, 60, 0.12);
  border-bottom-color: var(--neon-red);
}

nav a.active, .nav-links a.active {
  color: #fff;
  background: rgba(255, 0, 60, 0.18);
  border-bottom-color: var(--neon-red);
  font-weight: 700;
}

.nav-store-link {
  color: #ff6b81 !important;
  background: rgba(255, 0, 60, 0.1) !important;
  border: 1px solid rgba(255, 0, 60, 0.35) !important;
  border-bottom: 1px solid rgba(255, 0, 60, 0.35) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  padding: 0.3rem 0.65rem !important;
  margin-left: 0.15rem;
  transition: all 0.2s ease !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-store-link:hover {
  background: var(--neon-red) !important;
  color: #fff !important;
  border-color: var(--neon-red) !important;
  box-shadow: 0 0 14px rgba(255, 0, 60, 0.5) !important;
  transform: translateY(-1px);
}

.nav-store-link.active {
  background: rgba(255, 0, 60, 0.25) !important;
  border-color: var(--neon-red) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.3) !important;
}

.nav-spacer {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 0.4rem;
}

.nav-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.4);
  color: #d8b4fe !important;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-stream-btn:hover {
  background: var(--brand-twitch);
  color: #fff !important;
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.5);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #b886ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #b886ff;
  animation: pulse-ring 1.5s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ── Twitch Live Banner (Center Aligned & Tinted Twitch Purple) ── */
/* HIDDEN BY DEFAULT. Shown only when JS adds .is-live after confirming the
   stream is actually up. Do NOT set this back to `display: block` to preview
   the styling - use the .is-live rule below, or toggle the class in devtools.
   It was `display: block` here from the Concept 8 redesign until 2026-09-01,
   which made all 8 pages carrying this element claim he was live 24/7. */
#twitch-live-banner {
  display: none;
  background: linear-gradient(90deg, rgba(145, 70, 255, 0.15) 0%, rgba(145, 70, 255, 0.35) 50%, rgba(145, 70, 255, 0.15) 100%);
  background-color: #181124;
  border-top: 1px solid rgba(145, 70, 255, 0.3);
  border-bottom: 1px solid rgba(145, 70, 255, 0.4);
  box-shadow: 0 4px 20px rgba(145, 70, 255, 0.2);
  position: relative;
  z-index: 99;
}

#twitch-live-banner.is-live {
  display: block;
}

.twitch-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center; /* CENTER ALIGNED */
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.twitch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff003c;
  box-shadow: 0 0 10px #ff003c;
  flex-shrink: 0;
  animation: twitch-pulse 1.4s ease-in-out infinite;
}

@keyframes twitch-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px #ff003c; }
  50%       { opacity: 0.4; transform: scale(0.75); box-shadow: 0 0 4px #ff003c; }
}

.twitch-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.twitch-label span {
  font-weight: 500;
  color: #bf94ff;
}

.twitch-banner-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.twitch-watch-btn {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: #9146ff;
  border: 1px solid #a970ff;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.4);
}

.twitch-watch-btn:hover {
  background: #772ce8;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.7);
  transform: translateY(-1px);
}

.twitch-stream-page-btn {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6bbfb;
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.twitch-stream-page-btn:hover {
  background: rgba(145, 70, 255, 0.35);
  color: #ffffff;
  border-color: #9146ff;
}

/* ── Typography & Cards ── */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: #ffffff;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

/* ── Hero Section ── */
.hero-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 0, 60, 0.12);
  border: 1px solid rgba(255, 0, 60, 0.35);
  color: var(--neon-red-bright);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero-intro h1 span {
  color: var(--neon-red);
  text-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
}

.hero-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section Titles ── */
.section-cyber-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.section-cyber-title::before {
  content: '//';
  color: var(--neon-red);
  font-family: var(--font-mono);
}

/* ── Core 4 Grid & Cards ── */
.core-4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* An odd card out spans the full row instead of leaving a hole beside it.
   Inert with an even number of cards. */
.core-4-grid > .core-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.core-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
}

.core-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.core-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.core-card-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* CARD 1: MUSIC - SPOTIFY GREEN HOVER */
.core-card.music-card { border-color: rgba(29, 185, 84, 0.15); }
.core-card.music-card .core-card-title { color: #1DB954; }
.core-card.music-card:hover {
  border-color: var(--brand-spotify);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(29, 185, 84, 0.25);
}

.latest-music-list { display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.music-release-row {
  display: flex; align-items: center; gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.7rem; border-radius: 8px; transition: all 0.2s ease;
}
.music-release-row:hover { background: rgba(29, 185, 84, 0.1); border-color: rgba(29, 185, 84, 0.4); }
.music-thumb-mini { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.1); }
.music-row-info { flex: 1; min-width: 0; }
.music-row-title { font-size: 0.9rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-row-meta { font-size: 0.72rem; color: var(--text-muted); }
.btn-row-listen {
  font-size: 0.7rem; font-weight: 700; color: #1DB954; border: 1px solid rgba(29, 185, 84, 0.35);
  padding: 0.2rem 0.55rem; border-radius: 4px; text-decoration: none !important; white-space: nowrap; transition: all 0.2s ease;
}
.btn-row-listen:hover { background: var(--brand-spotify); color: #000; box-shadow: 0 0 10px rgba(29, 185, 84, 0.4); }

.btn-spotify-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.1rem;
  border-radius: 8px; font-size: 0.82rem; font-weight: 700; text-decoration: none !important; transition: all 0.2s ease; width: 100%;
  background: rgba(29, 185, 84, 0.15); border: 1px solid rgba(29, 185, 84, 0.4); color: #1DB954;
}
.btn-spotify-main:hover { background: var(--brand-spotify); color: #000; box-shadow: 0 0 18px rgba(29, 185, 84, 0.45); }

/* CARD 2: YOUTUBE - YOUTUBE RED HOVER */
.core-card.youtube-card { border-color: rgba(255, 0, 0, 0.15); }
.core-card.youtube-card .core-card-title { color: #FF0000; }
.core-card.youtube-card:hover {
  border-color: var(--brand-youtube);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 0, 0, 0.25);
}

.yt-video-frame-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--border); margin-bottom: 1rem;
}
.yt-video-frame-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.yt-video-meta h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.yt-video-meta p { font-size: 0.82rem; color: var(--text-muted); }

.btn-youtube-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.1rem;
  border-radius: 8px; font-size: 0.82rem; font-weight: 700; text-decoration: none !important; transition: all 0.2s ease; width: 100%;
  background: rgba(255, 0, 0, 0.15); border: 1px solid rgba(255, 0, 0, 0.4); color: #ff4d4d;
}
.btn-youtube-main:hover { background: var(--brand-youtube); color: #fff; box-shadow: 0 0 18px rgba(255, 0, 0, 0.45); }

/* CARD 3: MERCH - RED ACCENT HOVER */
.core-card.merch-card { border-color: rgba(255, 0, 60, 0.12); }
.core-card.merch-card .core-card-title { color: var(--neon-red-bright); }
.core-card.merch-card:hover {
  border-color: var(--neon-red);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 0, 60, 0.25);
}

.merch-content-flex { display: flex; gap: 1.25rem; align-items: center; flex: 1; }
.merch-photo-box { width: 130px; height: 130px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #121218; border: 1px solid rgba(255, 255, 255, 0.1); }
.merch-photo-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.core-card.merch-card:hover .merch-photo-box img { transform: scale(1.08); }
.merch-meta-box h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.merch-meta-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

.btn-merch-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.1rem;
  border-radius: 8px; font-size: 0.82rem; font-weight: 700; text-decoration: none !important; transition: all 0.2s ease; width: 100%;
  background: rgba(255, 0, 60, 0.14); border: 1px solid rgba(255, 0, 60, 0.4); color: #ff6b81;
}
.btn-merch-main:hover { background: var(--neon-red); color: #fff; box-shadow: 0 0 18px rgba(255, 0, 60, 0.45); }

/* CARD 4: TWITCH STREAM - TWITCH PURPLE HOVER */
.core-card.twitch-card { border-color: rgba(145, 70, 255, 0.18); }
.core-card.twitch-card .core-card-title { color: #b886ff; }
.core-card.twitch-card:hover {
  border-color: var(--brand-twitch);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(145, 70, 255, 0.3);
}

.index-countdown-today {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ff003c;
  margin-bottom: 0.2rem; display: none;
}
.index-countdown-today.visible { display: block; }

.stream-timer-digits { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1.2rem; }
.stream-digit-box { background: #09090e; border: 1px solid rgba(145, 70, 255, 0.15); border-radius: 10px; padding: 0.65rem 0.85rem; text-align: center; flex: 1; }
.stream-digit-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #d8b4fe; line-height: 1; }
.stream-digit-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.3rem; }
.stream-digit-sep { font-family: var(--font-mono); font-size: 1.4rem; color: rgba(145, 70, 255, 0.6); font-weight: 700; }

.btn-twitch-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.1rem;
  border-radius: 8px; font-size: 0.82rem; font-weight: 700; text-decoration: none !important; transition: all 0.2s ease; width: 100%;
  background: rgba(145, 70, 255, 0.18); border: 1px solid rgba(145, 70, 255, 0.4); color: #d8b4fe;
}
.btn-twitch-main:hover { background: var(--brand-twitch); color: #fff; box-shadow: 0 0 18px rgba(145, 70, 255, 0.45); }

/* ── Social Matrix (Connect Everywhere) ── */
/* Flex rather than grid so a short last row is centred instead of leaving a
   hole (e.g. 7 tiles in 4 columns). Same 4 / 2 / 1 columns as before. */
.social-cyber-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.social-cyber-grid > .social-cyber-item { flex: 0 0 calc((100% - 3 * 0.75rem) / 4); }
.social-cyber-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; text-decoration: none !important; color: #fff; font-weight: 700; font-size: 0.88rem; transition: all 0.25s ease; position: relative;
}
.social-cyber-item svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.25s ease; flex-shrink: 0; }
.social-cyber-item:hover svg { transform: scale(1.15); }

.social-cyber-item.spotify:hover { background: rgba(29, 185, 84, 0.18); border-color: var(--brand-spotify); color: #1DB954; box-shadow: 0 0 20px rgba(29, 185, 84, 0.4); }
.social-cyber-item.twitch:hover { background: rgba(145, 70, 255, 0.2); border-color: var(--brand-twitch); color: #b886ff; box-shadow: 0 0 20px rgba(145, 70, 255, 0.45); }
.social-cyber-item.youtube:hover { background: rgba(255, 0, 0, 0.2); border-color: var(--brand-youtube); color: #ff4d4d; box-shadow: 0 0 20px rgba(255, 0, 0, 0.45); }
.social-cyber-item.x-twitter:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--brand-x); color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.35); }
.social-cyber-item.instagram:hover { background: rgba(228, 64, 95, 0.2); border-color: var(--brand-instagram); color: #ff6584; box-shadow: 0 0 20px rgba(228, 64, 95, 0.45); }
.social-cyber-item.discord:hover { background: rgba(88, 101, 242, 0.2); border-color: var(--brand-discord); color: #828cff; box-shadow: 0 0 20px rgba(88, 101, 242, 0.45); }
.social-cyber-item.patreon:hover { background: rgba(255, 66, 77, 0.2); border-color: var(--brand-patreon); color: #ff6b75; box-shadow: 0 0 20px rgba(255, 66, 77, 0.45); }
.social-cyber-item.email:hover { background: rgba(255, 0, 60, 0.2); border-color: var(--brand-email); color: #ff4d6d; box-shadow: 0 0 20px rgba(255, 0, 60, 0.45); }

/* ── Sponsor Banner ── */
#sponsor-banner {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.7);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

#sponsor-link {
  text-decoration: none;
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

#sponsor-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.25s ease;
}

#sponsor-inner:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.15);
}

#sponsor-strings {
  width: 44px;
  height: 28px;
  flex-shrink: 0;
}

#sponsor-text {
  display: flex;
  flex-direction: column;
}

#sponsor-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

#sponsor-name {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  color: #e5c368;
}

#sponsor-cta {
  margin-left: auto;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  color: #e5c368;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  transition: all 0.2s ease;
}

#sponsor-inner:hover #sponsor-cta {
  background: #e5c368;
  color: #000;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(6, 6, 10, 0.8);
  text-align: center;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .nav-wrap, .header-inner {
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
  }
  nav a, .nav-links a {
    font-size: 0.78rem;
    padding: 0.3rem 0.45rem;
  }
  .nav-stream-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
}

@media (max-width: 860px) {
  /* The nav collapses into a drawer here. It must NOT simply be hidden:
     until 2026-09-02 this rule was `.nav-links, nav { display: none; }` with
     nothing replacing it, and since the footer carries no links either, every
     page below 861px offered exactly two reachable destinations - the logo and
     the Live Stream button. videos / equipment / plugins / about / store were
     unreachable from the homepage on any phone OR portrait tablet.
     See audits/CHECKS.md U1: a rule that hides the nav is only correct if a
     replacement exists, so assert the replacement, never just the hiding. */
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.15rem;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 10, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 0 0.85rem;

    /* Closed state. The border lives on the OPEN state only: at max-height 0
       a border-bottom still paints, leaving a stray 1px line under the header
       on every page. Caught 2026-09-02 by a visibility assertion that read the
       collapsed drawer as visible - the instrument was wrong about "visible"
       and right that something was painting. */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border-bottom: 0 solid var(--border);
    transition: max-height 0.28s ease, opacity 0.18s ease, padding 0.28s ease;
  }

  header.nav-open .nav-links {
    max-height: 75vh;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    border-bottom-width: 1px;
    padding: 0.5rem 0.85rem 0.75rem;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }
  .nav-links a:last-child { border-bottom: none; }

  .core-4-grid { grid-template-columns: 1fr; }
  .social-cyber-grid > .social-cyber-item { flex-basis: calc((100% - 0.75rem) / 2); }
}

@media (max-width: 480px) {
  #sponsor-cta { display: none; }
  .official-logo-img { height: 24px; }
  .social-cyber-grid > .social-cyber-item { flex-basis: 100%; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────
   Honours the OS "reduce motion" setting. Added 2026-09-02: there were 375
   transition/animation declarations site-wide once the nine inline <style>
   blocks are counted (only 20 of them are in this file, so a grep of the
   shared stylesheet alone understates it by ~19x - see audits/CHECKS.md F12)
   and nothing opted out of any of them.

   This deliberately does NOT set `animation: none`. The live-stream pulse dot
   and similar indicators carry MEANING; killing them outright would remove
   information rather than motion. Durations are collapsed instead, so state
   changes still land, just instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}
