:root {
  --bg-deep: #06070b;
  --bg-card: #0e111a;
  --bg-elevated: #151a28;
  --bg-glass: rgba(12, 15, 24, 0.84);
  --orange-duke: #ff5500;
  --orange-glow: rgba(255, 85, 0, 0.42);
  --ribbon-red: #e11d48;
  --ribbon-glow: rgba(225, 29, 72, 0.42);
  --lion-gold: #f59e0b;
  --police-blue: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-orange: rgba(255, 85, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-heavy: 0 24px 60px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 85, 0, 0.12), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(225, 29, 72, 0.10), transparent 45%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(6, 7, 11, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-duke), var(--ribbon-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 0 20px var(--orange-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--orange-duke);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-duke);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-duke), #e03e00);
  color: #fff;
  box-shadow: 0 6px 22px var(--orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 85, 0, 0.55);
}

.btn-ribbon {
  background: linear-gradient(135deg, var(--ribbon-red), #be123c);
  color: #fff;
  box-shadow: 0 6px 22px var(--ribbon-glow);
}

.btn-ribbon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--orange-duke);
  background: rgba(255, 85, 0, 0.14);
}

.btn-gold {
  background: linear-gradient(135deg, var(--lion-gold), #d97706);
  color: #090a0f;
  font-weight: 800;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

/* Hero Banner */
.hero {
  position: relative;
  max-width: 1320px;
  margin: 1.5rem auto;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(90deg, rgba(6, 7, 11, 0.95) 0%, rgba(6, 7, 11, 0.82) 55%, rgba(6, 7, 11, 0.35) 100%),
    url('assets/images/ep2_poster.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-heavy);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill-orange {
  background: rgba(255, 85, 0, 0.18);
  color: #ff7a33;
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.pill-red {
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.45);
}

.pill-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 0.4rem;
}

.hero-kannada {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--orange-duke);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-quote {
  display: inline-block;
  padding: 0.65rem 1rem;
  margin-bottom: 1.6rem;
  border-left: 3px solid var(--ribbon-red);
  background: rgba(16, 19, 28, 0.78);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Main Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.section-title span {
  color: var(--orange-duke);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Theater + Post-Episode Trigger Layout */
.theater-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Storyboard Slideshow Mode for Ep 2 */
.storyboard-player {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.storyboard-player.hidden {
  display: none;
}

.sb-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.sb-caption-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 45%, #000);
  padding: 2.2rem 1.5rem 1.2rem;
}

.sb-scene-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange-duke);
  letter-spacing: 0.08em;
}

.sb-kn-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
}

.sb-en-line {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 0.8rem;
}

.sb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Post-Episode Auto-Game Launch Overlay */
.post-ep-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 7, 11, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.post-ep-overlay.hidden {
  display: none;
}

.countdown-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--orange-duke);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--orange-duke);
  margin-bottom: 1rem;
  box-shadow: 0 0 25px var(--orange-glow);
}

.player-toolbar {
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.chapter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-btn:hover,
.chapter-btn.active {
  background: rgba(255, 85, 0, 0.2);
  color: #fff;
  border-color: var(--orange-duke);
}

/* Episode Queue & Linked Games Sidebar */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.ep-card.active {
  border-color: var(--orange-duke);
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.16);
}

.ep-card-top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.ep-thumb {
  width: 112px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.ep-meta h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.ep-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ep-game-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: 8px;
}

.ep-game-strip-info {
  font-size: 0.78rem;
}

.ep-game-strip-info strong {
  display: block;
  color: #ff8547;
  font-size: 0.82rem;
}

/* ==========================================================================
   3D WEBGL ARCADE SHELL & AAA RACING HUD OVERLAYS
   ========================================================================== */
.arcade-shell {
  background: var(--bg-card);
  border: 2px solid var(--border-orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  margin-top: 1rem;
}

.arcade-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(90deg, #111522, #1b1322);
  border-bottom: 1px solid var(--border-subtle);
}

.game-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mode-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--orange-duke), #e03e00);
  color: #fff;
  border-color: var(--orange-duke);
  box-shadow: 0 0 18px var(--orange-glow);
}

.game-viewport-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 660px;
  background: #040508;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Speed Lines / Nitro Vignette Effect */
.speed-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at center, transparent 55%, rgba(255, 85, 0, 0.0) 100%);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.speed-vignette.nitro-active {
  opacity: 1;
  background: radial-gradient(circle at center, transparent 48%, rgba(255, 85, 0, 0.35) 88%, rgba(225, 29, 72, 0.55) 100%);
}

/* Top HUD Row (Character Comms + Race Radar + Telemetry) */
.hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
}

.hud-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* Live Story Character Comms Card (Top-Left) */
.hud-comms-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(8, 10, 16, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 85, 0, 0.45);
  border-left: 4px solid var(--orange-duke);
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  max-width: 430px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: all 0.25s ease;
}

.hud-comms-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--orange-duke);
  flex-shrink: 0;
}

.hud-comms-speaker {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-duke);
}

.hud-comms-kn {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.hud-comms-en {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.25;
}

/* Center Race Progress Radar */
.hud-race-radar {
  background: rgba(8, 10, 16, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  min-width: 270px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.radar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.radar-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.radar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-duke), var(--ribbon-red));
  border-radius: 99px;
  width: 0%;
}

.radar-dot-player,
.radar-dot-rival {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.radar-dot-player {
  background: var(--orange-duke);
  box-shadow: 0 0 10px var(--orange-duke);
  z-index: 2;
}

.radar-dot-rival {
  background: #fbbf24;
  border-color: #111;
  z-index: 1;
}

/* Top-Right Telemetry & Camera Button */
.hud-telemetry-box {
  background: rgba(8, 10, 16, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  text-align: right;
  min-width: 195px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.hud-prize {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
}

.hud-rival-gap {
  font-size: 0.78rem;
  font-weight: 800;
  color: #22c55e;
  margin-top: 0.1rem;
}

.hud-ribbon-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.45);
}

/* Bottom HUD Row (Left Continuity Status + Right MotoGP TFT Speedo Cluster) */
.hud-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hud-Controls-hint {
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Digital TFT Tachometer & Speedometer Cluster */
.tft-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(10, 13, 22, 0.92), rgba(18, 21, 34, 0.92));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 85, 0, 0.55);
  border-radius: 16px;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 85, 0, 0.1);
}

.gear-box {
  width: 50px;
  height: 58px;
  border-radius: 10px;
  background: rgba(255, 85, 0, 0.16);
  border: 1px solid rgba(255, 85, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gear-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.gear-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--orange-duke);
  line-height: 1;
}

.speed-readout {
  min-width: 110px;
  text-align: right;
}

.speed-val {
  font-size: 2.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 85, 0, 0.45);
}

.speed-unit {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.bars-stack {
  width: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bar-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 800;
  color: #cbd5e1;
}

.bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill-rpm {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #38bdf8, #22c55e, #ff5500, #ef4444);
  transition: width 0.08s linear;
}

.bar-fill-nitro {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--orange-duke), var(--ribbon-red));
  transition: width 0.1s linear;
}

/* Cinematic Start / Win / Loss Overlay Card */
.game-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: radial-gradient(circle at center, rgba(10, 13, 22, 0.72) 0%, rgba(5, 6, 10, 0.92) 100%);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.game-menu-overlay.hidden {
  display: none;
}

.menu-glass-card {
  background: rgba(14, 17, 26, 0.92);
  border: 1.5px solid rgba(255, 85, 0, 0.5);
  border-radius: 20px;
  padding: 2rem 2.4rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 85, 0, 0.15);
}

/* Detective / Story Clue Mini-Stage Overlay inside Episode 2 Game */
.clue-modal {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(6, 7, 11, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.clue-modal.hidden {
  display: none;
}

.clue-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 860px;
  width: 100%;
  margin: 1.2rem 0;
}

.clue-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.clue-card:hover {
  border-color: var(--lion-gold);
  transform: translateY(-3px);
}

.clue-card.verified {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.clue-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.clue-card-body {
  padding: 0.75rem;
}

.clue-card-body h4 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.clue-card-body p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Mobile Touch Controls Overlay */
.touch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: #0b0e16;
  border-top: 1px solid var(--border-subtle);
}

.touch-group {
  display: flex;
  gap: 0.65rem;
}

.touch-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.touch-btn:active {
  background: var(--orange-duke);
  border-color: var(--orange-duke);
  transform: scale(0.96);
}

.touch-btn-nitro {
  background: linear-gradient(135deg, var(--ribbon-red), var(--orange-duke));
  border-color: rgba(255, 255, 255, 0.3);
}

/* Cast & Story Continuity Cards */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.cast-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 0, 0.4);
}

.cast-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}

.cast-body {
  padding: 1rem;
}

.cast-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-duke);
  font-weight: 800;
}

.cast-body h3 {
  font-size: 1.08rem;
  margin: 0.15rem 0 0.4rem;
}

.cast-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* WebApp Install Banner */
.webapp-banner {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.16), rgba(225, 29, 72, 0.16));
  border: 1px solid var(--border-orange);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .theater-grid {
    grid-template-columns: 1fr;
  }
  .clue-cards-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding: 0.75rem 1rem;
  }
  .nav-links,
  .hud-race-radar {
    display: none;
  }
}
