/* Theme: Stellar Riot */
@import url("style.css?v=2026-08-01_1959");

:root {
  --bg-deep: #050810;
  --bg-card: rgba(18, 12, 28, 0.92);
  --bg-elevated: rgba(28, 16, 36, 0.95);
  --amber: #ff2d6b;
  --amber-dim: #c91a52;
  --cream: #e8f0ff;
  --muted: #8a7aa8;
  --crimson: #9b6bff;
  --crimson-glow: rgba(155, 107, 255, 0.4);
  --gold-glow: rgba(255, 45, 107, 0.25);
  --radius: 4px;
  --font-display: "Permanent Marker", cursive;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

body {
  background: #050810;
  background-image:
    radial-gradient(ellipse 55% 35% at 15% 25%, rgba(155, 107, 255, 0.2), transparent),
    radial-gradient(ellipse 45% 40% at 85% 70%, rgba(255, 45, 107, 0.15), transparent);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 48% 18%, #f0c878, transparent),
    radial-gradient(1px 1px at 72% 55%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, #ff2d6b, transparent);
}
.site-nav {
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid #ff2d6b;
}
.hero-banner { min-height: 78vh; }
.hero-overlay {
  background: radial-gradient(ellipse 75% 55% at 50% 35%, rgba(155, 107, 255, 0.25), rgba(5, 8, 16, 0.9));
}
.hero-badge {
  background: transparent;
  border: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #ff2d6b, 0 0 24px rgba(155, 107, 255, 0.45);
  padding: 0;
  margin-bottom: 1rem;
}
.hero-title-text {
  background: none;
  -webkit-text-fill-color: #fff;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  transform: rotate(-1.5deg);
  text-shadow: 4px 4px 0 #ff2d6b, 0 0 40px rgba(155, 107, 255, 0.5);
}
.hero-sub {
  font-family: "Archivo Black", Impact, sans-serif;
  color: #f6f2ea;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
  font-size: clamp(0.82rem, 2.1vw, 1.05rem);
  background: linear-gradient(135deg, #ff2d6b, #9b6bff);
  border: none;
  display: inline-block;
  padding: 0.55rem 1.1rem;
  transform: rotate(-0.6deg);
  box-shadow: 5px 5px 0 #9b6bff;
  backdrop-filter: none;
  max-width: 40rem;
}
.quote-bar {
  background: rgba(12, 18, 36, 0.75);
  border: 3px solid #ff2d6b;
  transform: rotate(-0.5deg);
  margin: 0 0.75rem;
  box-shadow: 6px 6px 0 rgba(155, 107, 255, 0.35);
}
.quote-bar p { font-family: "Permanent Marker", cursive; font-size: 1.2rem; }
.arc-card, .episode-card, .mystery-card, .merch-card, .trivia-card {
  backdrop-filter: blur(10px);
  border: 3px solid rgba(240, 200, 120, 0.35);
  box-shadow: 8px 8px 0 #ff2d6b;
  transform: rotate(var(--sr-tilt, 0deg));
}
.arc-card:nth-child(1) { --sr-tilt: -1deg; }
.arc-card:nth-child(2) { --sr-tilt: 0.7deg; }
.arc-card::before {
  background: linear-gradient(90deg, #f0c878, #ff2d6b, #9b6bff);
  height: 5px;
}
.section-header h2 {
  font-family: "Permanent Marker", cursive;
  color: #fff;
  transform: rotate(-1deg);
  text-shadow: 3px 3px 0 #9b6bff;
}
.timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.94rem;
  padding: 1.5rem 0.85rem 1.32rem;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.timeline::before {
  content: "";
  position: absolute;
  inset: 26% 1%;
  border: 2px dashed rgba(255, 45, 107, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.timeline .timeline-node.timeline-node--thumb {
  flex: 0 0 152px;
  width: 152px;
  min-width: 152px;
  max-width: 152px;
  scroll-snap-align: center;
}
.timeline .timeline-node.timeline-node--thumb .timeline-dot { display: none; }
.timeline .timeline-node.timeline-node--thumb .timeline-thumb {
  display: block;
  width: 152px;
  margin: 0 auto 0.53rem;
  border: 3px solid rgba(240, 200, 120, 0.5);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 45, 107, 0.35);
  transform: rotate(var(--tn-tilt, 0deg));
}
.timeline .timeline-node.timeline-node--thumb:nth-child(odd) { --tn-tilt: -2deg; }
.timeline .timeline-node.timeline-node--thumb:nth-child(even) { --tn-tilt: 1.5deg; }
.timeline .timeline-node.timeline-node--thumb .timeline-thumb img {
  display: block;
  width: 152px;
  height: 86px;
  object-fit: cover;
}
.timeline .timeline-node.timeline-node--thumb .timeline-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff2d6b;
}
.timeline .timeline-node.timeline-node--thumb .timeline-title {
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 680px) {
  .timeline {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    max-width: 528px;
    gap: 0.98rem 1.13rem;
  }
  .timeline::before {
    inset: 22%;
  }
  .timeline .timeline-node.timeline-node--thumb .timeline-title {
    white-space: normal;
  }
}
.timeline-dot {
  background: radial-gradient(circle, #ff2d6b, #9b6bff);
  box-shadow: 0 0 14px rgba(255, 45, 107, 0.7);
  animation: star-pulse 2.5s ease-in-out infinite;
}
@keyframes star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.timeline-playlist-wrap {
  text-align: center;
  margin-top: 0.75rem;
}
.timeline-playlist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Permanent Marker", cursive;
  color: var(--cream);
  background: transparent;
  border: 2px solid rgba(240, 200, 120, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.timeline-playlist-link:hover {
  border-color: #f0c878;
  box-shadow: 0 0 18px rgba(240, 200, 120, 0.22);
  color: #fff;
}
.char-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem 1.75rem;
  padding: 2.5rem 1.5rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155, 107, 255, 0.08), transparent),
    repeating-linear-gradient(
      -3deg,
      rgba(40, 32, 48, 0.6),
      rgba(40, 32, 48, 0.6) 2px,
      rgba(30, 24, 38, 0.6) 2px,
      rgba(30, 24, 38, 0.6) 4px
    );
  border: 2px dashed rgba(240, 200, 120, 0.22);
  border-radius: 6px;
  position: relative;
}
.char-showcase::before {
  content: "EVIDENCE WALL";
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  font-family: "Permanent Marker", cursive;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 45, 107, 0.45);
  pointer-events: none;
}
.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 152px;
  flex-shrink: 0;
  background: #f6f2ea;
  padding: 0.7rem 0.7rem 1.15rem;
  border: none;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
  aspect-ratio: unset;
  backdrop-filter: none;
}
.showcase-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 35% 30%, #e84a4a, #9b1515 55%, #5c0808);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.showcase-card::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: linear-gradient(180deg, #aaa, #666);
  border-radius: 1px;
  z-index: 1;
}
.showcase-card:nth-child(8n+1) { --r: -5deg; }
.showcase-card:nth-child(8n+2) { --r: 3.5deg; }
.showcase-card:nth-child(8n+3) { --r: -2deg; }
.showcase-card:nth-child(8n+4) { --r: 4deg; }
.showcase-card:nth-child(8n+5) { --r: -3.5deg; }
.showcase-card:nth-child(8n+6) { --r: 2deg; }
.showcase-card:nth-child(8n+7) { --r: -4.5deg; }
.showcase-card:nth-child(8n) { --r: 1.5deg; }
.showcase-card:hover {
  transform: rotate(var(--r, 0deg)) scale(1.06) translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 45, 107, 0.2);
  z-index: 3;
}
.showcase-card img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: top center;
  filter: sepia(0.12) contrast(1.06) saturate(0.92);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.06);
  border-radius: 1px;
}
.showcase-name {
  position: static;
  display: block;
  background: none;
  font-family: "Permanent Marker", cursive;
  font-size: 0.92rem;
  font-weight: 400;
  color: #1a1420;
  text-align: center;
  padding: 0.7rem 0.15rem 0;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem 1.75rem;
  padding: 2.5rem 1.5rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(155, 107, 255, 0.08), transparent),
    repeating-linear-gradient(
      -3deg,
      rgba(40, 32, 48, 0.6),
      rgba(40, 32, 48, 0.6) 2px,
      rgba(30, 24, 38, 0.6) 2px,
      rgba(30, 24, 38, 0.6) 4px
    );
  border: 2px dashed rgba(240, 200, 120, 0.22);
  border-radius: 6px;
  position: relative;
}
.char-grid::before {
  content: "EVIDENCE WALL";
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  font-family: "Permanent Marker", cursive;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 45, 107, 0.45);
  pointer-events: none;
}
.char-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f6f2ea;
  padding: 0.7rem 0.7rem 1rem;
  border: none;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
  backdrop-filter: none;
}
.char-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 35% 30%, #e84a4a, #9b1515 55%, #5c0808);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.char-card::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: linear-gradient(180deg, #aaa, #666);
  border-radius: 1px;
  z-index: 1;
}
.char-card:nth-child(8n+1) { --r: -5deg; }
.char-card:nth-child(8n+2) { --r: 3.5deg; }
.char-card:nth-child(8n+3) { --r: -2deg; }
.char-card:nth-child(8n+4) { --r: 4deg; }
.char-card:nth-child(8n+5) { --r: -3.5deg; }
.char-card:nth-child(8n+6) { --r: 2deg; }
.char-card:nth-child(8n+7) { --r: -4.5deg; }
.char-card:nth-child(8n) { --r: 1.5deg; }
.char-card:hover {
  transform: rotate(var(--r, 0deg)) scale(1.04) translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 45, 107, 0.2);
  z-index: 3;
  border-color: transparent;
}
.char-card .char-img-wrap {
  aspect-ratio: 1;
  border-radius: 1px;
  overflow: hidden;
  background: #e8e4dc;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.06);
}
.char-card .char-img-wrap img {
  filter: sepia(0.12) contrast(1.06) saturate(0.92);
}
.char-card .char-info {
  padding: 0.65rem 0.1rem 0;
  text-align: center;
}
.char-card .char-info h3 {
  font-family: "Permanent Marker", cursive;
  font-size: 1rem;
  font-weight: 400;
  color: #1a1420;
  margin: 0 0 0.15rem;
}
.char-card .char-info .aka {
  font-size: 0.75rem;
  color: #5a5068;
  margin-bottom: 0.35rem;
}
.char-card .char-badges {
  justify-content: center;
  margin-top: 0.25rem;
}
.char-card .char-tag,
.char-card .char-status {
  font-size: 0.6rem;
}
.char-card .char-meta {
  font-size: 0.68rem;
  color: #5a5068;
}
.btn,
.btn-primary,
.btn-secondary {
  font-family: "Permanent Marker", cursive;
  font-size: 1rem;
}
.btn-primary,
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(240, 200, 120, 0.5);
  box-shadow: none;
}
.btn-primary:hover,
.btn-secondary:hover {
  border-color: #f0c878;
  box-shadow: 0 0 20px rgba(240, 200, 120, 0.25);
  color: #fff;
}
.page-hero {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 45, 107, 0.2), transparent);
}


.theme-fx--dossier .red-string {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  height: 2px;
  background: rgba(180, 30, 30, 0.45);
  transform-origin: left center;
}
.theme-fx--dossier .red-string--1 {
  width: 180px;
  top: 28%;
  left: 12%;
  transform: rotate(32deg);
}
.theme-fx--dossier .red-string--2 {
  width: 140px;
  top: 62%;
  right: 15%;
  left: auto;
  transform: rotate(-24deg);
}
.theme-fx--compass {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  opacity: 0.35;
  z-index: 2;
  animation: compass-spin 24s linear infinite;
  pointer-events: none;
}
@keyframes compass-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.theme-fx--zine-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  z-index: 2;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #ff2d6b;
  border: 3px solid #ff2d6b;
  padding: 0.35rem 0.6rem;
  transform: rotate(12deg);
  pointer-events: none;
}
.theme-fx--zine-stamp.theme-fx--cosmic {
  color: #f0c878;
  border-color: #f0c878;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(4px);
}
.theme-fx--pasteup-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 40%, rgba(155, 107, 255, 0.2), transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(255, 45, 107, 0.15), transparent 35%);
}
.constellation-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}
.hero-banner { position: relative; }
.hero-video { z-index: 0; }
.theme-fx { z-index: 1; }




.hero-banner { background-image: none; background-color: #050810; }
.hero-video { background-color: #050810; opacity: 0; transition: opacity 0.35s ease; }
.hero-video.is-playing { opacity: 1; }
.page-hero { background: url('../assets/page-hero.jpg') center/cover no-repeat; padding: 3rem 0 2rem; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.82)); }
.page-hero .container { position: relative; z-index: 1; }