/* ==========================================================================
   GBro_Games — Season 5 Interactive Key Art Hub
   ========================================================================== */

:root {
  --bg-obsidian: #07090d;
  --glass-bg: rgba(10, 14, 22, 0.78);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text-primary: #f4f7fb;
  --text-muted: #9aa8be;

  --cyan: #4ef5d6;
  --cyan-bright: #00f0ff;
  --crimson: #ff2a4d;
  --amber: #ffb020;
  --gold: #ffd466;
  --twitch-purple: #9146ff;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button,
a {
  font-family: inherit;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #190d11 0%, #07090d 78%);
}

/* Blurred edge-to-edge backdrop so ultrawide/portrait screens never show flat bars */
.ambient-backdrop {
  position: absolute;
  inset: -6%;
  background: url("assets/season-5-artwork3.jpg") center / cover no-repeat;
  filter: blur(34px) brightness(0.32) saturate(1.25);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Corner Utility Controls
   -------------------------------------------------------------------------- */
.corner-controls {
  position: fixed;
  top: clamp(10px, 2vh, 20px);
  left: clamp(10px, 2vw, 22px);
  z-index: 30;
  pointer-events: none;
}

.corner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.corner-bottom-left {
  position: fixed;
  bottom: clamp(10px, 2vh, 20px);
  left: clamp(10px, 2vw, 22px);
  z-index: 30;
  pointer-events: auto;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s var(--ease-out-expo),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 245, 214, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(78, 245, 214, 0.18);
}

.pill-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pill-btn--primary {
  border-color: rgba(78, 245, 214, 0.38);
}

.pill-btn--ghost[aria-pressed="true"] {
  background: rgba(15, 36, 40, 0.88);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(78, 245, 214, 0.28);
}

.pill-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(78, 245, 214, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(78, 245, 214, 0.35);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: dot-pulse 2s ease-in-out infinite;
}

.live-dot.is-live {
  background: #ff3b5c;
  box-shadow: 0 0 10px #ff3b5c;
}

.btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   16:9 Responsive Artwork Stage (Nothing Critical Clipped)
   -------------------------------------------------------------------------- */
.stage-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.stage {
  position: relative;
  /* Maintain exact 16:9 ratio of 1024x576 artwork without clipping any edge */
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.9);
  transform-origin: 13% 48%;
  transition:
    transform 0.65s var(--ease-out-expo),
    filter 0.55s ease,
    opacity 0.5s ease;
}

.app-shell.is-inside-building .stage,
.app-shell.is-entering-car .stage {
  transform: scale(2.9);
  filter: brightness(0.28) blur(4px);
  opacity: 0;
  pointer-events: none;
}

.app-shell.is-inside-building .corner-controls,
.app-shell.is-inside-building .corner-bottom-left,
.app-shell.is-inside-building .mobile-nav-dock,
.app-shell.is-entering-car .corner-controls,
.app-shell.is-entering-car .corner-bottom-left,
.app-shell.is-entering-car .mobile-nav-dock {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stage-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Ambient Atmospheric Effects
   -------------------------------------------------------------------------- */
.ambient-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.fog-band {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  will-change: transform, opacity;
}

.fog-band--red-left {
  left: -14%;
  top: 26%;
  width: 58%;
  height: 44%;
  background: radial-gradient(
    ellipse at center,
    rgba(195, 34, 34, 0.24) 0%,
    rgba(110, 22, 28, 0.14) 48%,
    transparent 76%
  );
  mix-blend-mode: screen;
  animation: fog-drift-left 22s ease-in-out infinite alternate;
}

.fog-band--red-right {
  right: -12%;
  top: 18%;
  width: 56%;
  height: 48%;
  background: radial-gradient(
    ellipse at center,
    rgba(220, 28, 42, 0.28) 0%,
    rgba(120, 16, 28, 0.15) 52%,
    transparent 78%
  );
  mix-blend-mode: screen;
  animation: fog-drift-right 26s ease-in-out infinite alternate;
}

.fog-band--ground {
  left: -10%;
  bottom: 10%;
  width: 120%;
  height: 36%;
  background: linear-gradient(
    90deg,
    rgba(180, 42, 42, 0.08) 0%,
    rgba(155, 175, 190, 0.14) 34%,
    rgba(190, 46, 52, 0.14) 68%,
    rgba(140, 160, 180, 0.08) 100%
  );
  mix-blend-mode: screen;
  animation: fog-roll 18s ease-in-out infinite alternate;
}

/* Single blended volumetric spotlight from the upper-left robot (~27%, 15.6%) */
.drone-spotlight {
  position: absolute;
  left: 27%;
  top: 15.6%;
  width: 54%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(-3.5deg);
  background: conic-gradient(
    from 110deg at 50% 50%,
    rgba(255, 190, 74, 0) 0deg,
    rgba(255, 184, 68, 0.08) 7deg,
    rgba(255, 202, 96, 0.24) 13deg,
    rgba(255, 224, 144, 0.42) 18deg,
    rgba(255, 202, 96, 0.24) 23deg,
    rgba(255, 184, 68, 0.08) 29deg,
    rgba(255, 190, 74, 0) 36deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 2.5%,
    rgba(0, 0, 0, 1) 7%,
    rgba(0, 0, 0, 0.7) 22%,
    rgba(0, 0, 0, 0.26) 44%,
    rgba(0, 0, 0, 0) 76%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 2.5%,
    rgba(0, 0, 0, 1) 7%,
    rgba(0, 0, 0, 0.7) 22%,
    rgba(0, 0, 0, 0.26) 44%,
    rgba(0, 0, 0, 0) 76%
  );
  mix-blend-mode: screen;
  filter: blur(8px);
  will-change: transform, opacity;
  animation: drone-sway 10s ease-in-out infinite;
}

.atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Subtle neon-cyan ambient pulse over the bottom-right GBRO logo */
.gbro-neon-ambient {
  position: absolute;
  left: 74.5%;
  top: 74.5%;
  width: 24.5%;
  height: 23.5%;
  border-radius: 36%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    ellipse at 52% 54%,
    rgba(0, 240, 255, 0.34) 0%,
    rgba(78, 245, 214, 0.16) 42%,
    transparent 74%
  );
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: gbro-neon-pulse 3.6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Interactive Character Hotspots
   -------------------------------------------------------------------------- */
.hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.hotspot {
  position: absolute;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  overflow: visible;
  transform-origin: center center;
  transition: transform 0.36s var(--ease-out-expo), filter 0.36s ease;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible .hotspot-outline {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 24px var(--cyan-bright);
}

/* Exact coordinate boxes mapped to the 1024x576 key art */
.hotspot--requiem {
  left: 50.5%;
  top: 4.5%;
  width: 14.8%;
  height: 16.5%;
  --aura-color: var(--cyan);
}

.hotspot--link {
  left: 41.2%;
  top: 32%;
  width: 14.2%;
  height: 29.5%;
  --aura-color: var(--gold);
}

.hotspot--wasteland {
  left: 49%;
  top: 53%;
  width: 12.8%;
  height: 36.5%;
  --aura-color: var(--amber);
}

.hotspot--joker {
  left: 71%;
  top: 0%;
  width: 24.5%;
  height: 39.5%;
  --aura-color: var(--crimson);
}

.hotspot--gbro {
  left: 75.5%;
  top: 75%;
  width: 22.8%;
  height: 22.5%;
  --aura-color: var(--cyan-bright);
}

.hotspot--building {
  left: 3.5%;
  top: 24%;
  width: 19.5%;
  height: 48%;
  --aura-color: var(--cyan-bright);
}

.hotspot--car {
  left: 23%;
  top: 68.5%;
  width: 18.5%;
  height: 16%;
  --aura-color: var(--gold);
}

/* Local artwork zoom layer: aligns 1:1 with base stage artwork, scales smoothly on hover */
.hotspot-zoom {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 56%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 56%, transparent 96%);
  transition: opacity 0.32s ease;
}

.hotspot-zoom img {
  position: absolute;
  max-width: none;
  display: block;
  pointer-events: none;
}

/* Exact mathematical inverse mapping per hotspot */
.hotspot--requiem .hotspot-zoom img {
  width: calc(100% * 100 / 14.8);
  height: calc(100% * 100 / 16.5);
  left: calc(-100% * 50.5 / 14.8);
  top: calc(-100% * 4.5 / 16.5);
}

.hotspot--link .hotspot-zoom img {
  width: calc(100% * 100 / 14.2);
  height: calc(100% * 100 / 29.5);
  left: calc(-100% * 41.2 / 14.2);
  top: calc(-100% * 32 / 29.5);
}

.hotspot--wasteland .hotspot-zoom img {
  width: calc(100% * 100 / 12.8);
  height: calc(100% * 100 / 36.5);
  left: calc(-100% * 49 / 12.8);
  top: calc(-100% * 53 / 36.5);
}

.hotspot--joker .hotspot-zoom img {
  width: calc(100% * 100 / 24.5);
  height: calc(100% * 100 / 39.5);
  left: calc(-100% * 71 / 24.5);
  top: 0%;
}

.hotspot--gbro .hotspot-zoom img {
  width: calc(100% * 100 / 22.8);
  height: calc(100% * 100 / 22.5);
  left: calc(-100% * 75.5 / 22.8);
  top: calc(-100% * 75 / 22.5);
}

.hotspot--building .hotspot-zoom img {
  width: calc(100% * 100 / 19.5);
  height: calc(100% * 100 / 48);
  left: calc(-100% * 3.5 / 19.5);
  top: calc(-100% * 24 / 48);
}

.hotspot--car .hotspot-zoom img {
  width: calc(100% * 100 / 18.5);
  height: calc(100% * 100 / 16);
  left: calc(-100% * 23 / 18.5);
  top: calc(-100% * 68.5 / 16);
}

/* Building Entry Pill Badge & Hover FX */
.building-entry-pill {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 240, 255, 0.72);
  background: rgba(6, 11, 18, 0.86);
  color: #f8fafc;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 240, 255, 0.36);
  pointer-events: none;
  z-index: 6;
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s ease;
}

.building-entry-pill svg {
  width: 13px;
  height: 13px;
  color: var(--cyan-bright);
}

.hotspot--building:hover .building-entry-pill,
.hotspot--building:focus-visible .building-entry-pill {
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.68);
}

.hotspot-fx--building {
  background:
    radial-gradient(ellipse at 52% 48%, rgba(0, 240, 255, 0.26) 0%, rgba(255, 176, 32, 0.12) 48%, transparent 76%);
  mix-blend-mode: screen;
}

.hotspot--building .hotspot-tooltip {
  left: calc(100% + 12px);
  top: 28%;
  transform: translate(-8px, 0) scale(0.95);
}

/* Car Contoured Light Outline, Enlarge Hover/Tap & Headlight FX */
.hotspot--car:hover,
.hotspot--car:focus-visible,
.hotspot--car:active,
.hotspot--car.is-tapped {
  transform: scale(1.14);
}

.hotspot--car:active .hotspot-zoom,
.hotspot--car.is-tapped .hotspot-zoom {
  opacity: 1;
}

.hotspot--car:active .hotspot-fx,
.hotspot--car.is-tapped .hotspot-fx {
  opacity: 1;
}

.car-light-outline {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  overflow: visible;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 224, 120, 0.92)) drop-shadow(0 0 22px rgba(0, 240, 255, 0.48));
  transition: filter 0.3s ease, opacity 0.28s ease;
}

.car-outline-glow {
  fill: none;
  stroke: rgba(255, 230, 140, 0.92);
  stroke-width: 2.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: car-aura-pulse 2.2s ease-in-out infinite;
}

.car-outline-trace {
  fill: none;
  stroke: #fff6c2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 45 210;
  vector-effect: non-scaling-stroke;
  animation: car-trace-flow 3.2s linear infinite;
}

.hotspot--car:hover .car-light-outline,
.hotspot--car:focus-visible .car-light-outline,
.hotspot--car:active .car-light-outline,
.hotspot--car.is-tapped .car-light-outline,
.stage.zones-highlighted .car-light-outline {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 228, 128, 1)) drop-shadow(0 0 28px rgba(0, 240, 255, 0.6));
}

.app-shell.modal-is-open .car-light-outline {
  opacity: 0 !important;
}

.hotspot-fx--car .car-headlight {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, rgba(255, 212, 102, 0.85) 36%, transparent 74%);
  mix-blend-mode: screen;
  filter: blur(2px);
}

.hotspot-fx--car .car-headlight--left {
  left: 61%;
  top: 66%;
  width: 28px;
  height: 28px;
}

.hotspot-fx--car .car-headlight--right {
  left: 88%;
  top: 62%;
  width: 22px;
  height: 22px;
}

.hotspot--car:hover .car-headlight,
.hotspot--car:focus-visible .car-headlight {
  animation: mask-flash-pulse 0.85s ease-in-out infinite;
}

@keyframes car-aura-pulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.98; }
}

@keyframes car-trace-flow {
  0% { stroke-dashoffset: 255; }
  100% { stroke-dashoffset: 0; }
}

.hotspot--car .hotspot-tooltip {
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px) scale(0.95);
}

.hotspot--car:hover .hotspot-tooltip,
.hotspot--car:focus-visible .hotspot-tooltip {
  transform: translate(-50%, 0) scale(1);
}

/* Hover Scale-Up + Energetic Aura */
.hotspot:hover,
.hotspot:focus-visible {
  transform: scale(1.07);
  z-index: 15;
}

.hotspot:hover .hotspot-zoom,
.hotspot:focus-visible .hotspot-zoom {
  opacity: 1;
}

/* Outline ring (shown on hover or when "Highlight Interactive Zones" is ON) */
.hotspot-outline {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--aura-color) 82%, white);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--aura-color) 65%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--aura-color) 32%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, box-shadow 0.28s ease;
}

.hotspot:hover .hotspot-outline,
.hotspot:focus-visible .hotspot-outline {
  opacity: 1;
}

/* Highlight Interactive Zones mode */
.hotspot-ping {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--aura-color);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--aura-color) 75%, transparent), 0 0 14px var(--aura-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stage.zones-highlighted .hotspot-outline {
  opacity: 0.92;
  border-style: dashed;
  animation: zone-breathe 2.1s ease-in-out infinite;
}

.stage.zones-highlighted .hotspot-ping {
  opacity: 1;
  animation: ping-ripple 1.9s ease-out infinite;
}

.stage.zones-highlighted .hotspot-tooltip {
  opacity: 1;
  padding: 6px 10px;
  min-width: 128px;
  transform: translate(0, 0) scale(0.92);
}

.stage.zones-highlighted .hotspot-tooltip .tooltip-sub {
  display: none;
}

.app-shell.modal-is-open .hotspot-tooltip,
.app-shell.modal-is-open .hotspot-outline,
.app-shell.modal-is-open .hotspot-ping {
  opacity: 0 !important;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Character-Specific Hover FX
   -------------------------------------------------------------------------- */
.hotspot-fx {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.28s ease;
}

.hotspot:hover .hotspot-fx,
.hotspot:focus-visible .hotspot-fx {
  opacity: 1;
}

/* 1. Resident Evil 9: Requiem: Subtle hair/mist shimmer + cyan border pulse */
.hotspot-fx--mist {
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(180, 255, 245, 0.28) 46%,
    rgba(78, 245, 214, 0.42) 52%,
    transparent 74%
  );
  background-size: 240% 240%;
  mix-blend-mode: screen;
}

.hotspot--requiem:hover .hotspot-fx--mist,
.hotspot--requiem:focus-visible .hotspot-fx--mist {
  animation: mist-shimmer 1.8s ease-in-out infinite;
}

.hotspot--requiem:hover .hotspot-outline,
.hotspot--requiem:focus-visible .hotspot-outline {
  animation: cyan-border-pulse 1.5s ease-in-out infinite;
}

/* 2. Link: Golden/cyan glint across the bow & arrows */
.hotspot-fx--bow-glint .glint-streak {
  position: absolute;
  left: -30%;
  top: 32%;
  width: 160%;
  height: 18%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 212, 102, 0.78) 42%,
    rgba(78, 245, 214, 0.9) 55%,
    transparent 100%
  );
  transform: rotate(-18deg) translateX(-80%);
  filter: blur(2px);
  mix-blend-mode: screen;
}

.hotspot-fx--bow-glint .glint-spark {
  position: absolute;
  left: 56%;
  top: 41%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #fff 0%, var(--gold) 35%, rgba(78, 245, 214, 0) 72%);
  mix-blend-mode: screen;
}

.hotspot--link:hover .glint-streak,
.hotspot--link:focus-visible .glint-streak {
  animation: bow-sweep 1.35s ease-in-out infinite;
}

.hotspot--link:hover .glint-spark,
.hotspot--link:focus-visible .glint-spark {
  animation: bow-spark 1.35s ease-in-out infinite;
}

/* 3. Wasteland Explorer: Geiger-counter flicker + warm amber glow */
.hotspot-fx--geiger {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 176, 32, 0.08) 0px,
      rgba(255, 176, 32, 0.08) 2px,
      transparent 2px,
      transparent 5px
    ),
    radial-gradient(ellipse at 55% 45%, rgba(255, 176, 32, 0.34) 0%, transparent 72%);
  mix-blend-mode: screen;
}

.hotspot--wasteland:hover .hotspot-fx--geiger,
.hotspot--wasteland:focus-visible .hotspot-fx--geiger {
  animation: geiger-flicker 0.9s steps(2, end) infinite;
}

.hotspot--wasteland:hover .hotspot-outline,
.hotspot--wasteland:focus-visible .hotspot-outline {
  box-shadow: 0 0 24px rgba(255, 176, 32, 0.8), inset 0 0 20px rgba(255, 176, 32, 0.35);
}

/* 4. Joker (Persona 5): Crimson mask flash + stylized comic-book slash */
.hotspot-fx--persona .mask-flash {
  position: absolute;
  left: 2%;
  top: 42%;
  width: 38%;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 77, 0.65) 0%, rgba(255, 255, 255, 0.25) 36%, transparent 72%);
  mix-blend-mode: screen;
}

.hotspot-fx--persona .comic-slash {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 8px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #ff2a4d 24%,
    #ffffff 50%,
    #ff2a4d 76%,
    transparent 100%
  );
  box-shadow: 0 0 14px #ff2a4d;
  opacity: 0;
}

.hotspot-fx--persona .comic-slash--one {
  top: 46%;
  transform: rotate(-22deg) scaleX(0);
}

.hotspot-fx--persona .comic-slash--two {
  top: 58%;
  height: 4px;
  transform: rotate(-16deg) scaleX(0);
}

.hotspot--joker:hover .mask-flash,
.hotspot--joker:focus-visible .mask-flash {
  animation: mask-flash-pulse 1.1s ease-in-out infinite;
}

.hotspot--joker:hover .comic-slash--one,
.hotspot--joker:focus-visible .comic-slash--one {
  animation: persona-slash 0.85s var(--ease-out-expo) infinite;
}

.hotspot--joker:hover .comic-slash--two,
.hotspot--joker:focus-visible .comic-slash--two {
  animation: persona-slash 0.85s var(--ease-out-expo) 0.14s infinite;
}

/* 5. GBRO Logo hover boost */
.hotspot-fx--neon-gbro {
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.35) 0%, transparent 72%);
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   Floating Tooltip Labels (Radially arranged to avoid any overlap)
   -------------------------------------------------------------------------- */
.hotspot-tooltip {
  position: absolute;
  min-width: 152px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(8, 12, 19, 0.9);
  border: 1px solid color-mix(in srgb, var(--aura-color) 58%, rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65), 0 0 16px color-mix(in srgb, var(--aura-color) 28%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  z-index: 25;
  transition: opacity 0.24s ease, transform 0.28s var(--ease-out-expo);
}

/* Resident Evil 9: Requiem: place to the left into open upper sky */
.hotspot--requiem .hotspot-tooltip {
  right: calc(100% + 12px);
  top: 8%;
  transform: translate(8px, 0) scale(0.95);
}

/* Link: place to the left over the pine trees */
.hotspot--link .hotspot-tooltip {
  right: calc(100% + 12px);
  top: 26%;
  transform: translate(8px, 0) scale(0.95);
}

/* Wasteland Explorer: place to the right into open midground */
.hotspot--wasteland .hotspot-tooltip {
  left: calc(100% + 12px);
  top: 38%;
  transform: translate(-8px, 0) scale(0.95);
}

/* Joker: place directly below into open red/building margin */
.hotspot--joker .hotspot-tooltip {
  left: 12%;
  top: calc(100% + 10px);
  transform: translate(0, -6px) scale(0.95);
}

/* GBRO Logo: place directly above */
.hotspot--gbro .hotspot-tooltip {
  right: 0;
  bottom: calc(100% + 10px);
  transform: translate(0, 6px) scale(0.95);
}

.hotspot:hover .hotspot-tooltip,
.hotspot:focus-visible .hotspot-tooltip {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.tooltip-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aura-color);
}

.tooltip-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.tooltip-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Collapsible Streamer Profile & Live Status HUD
   -------------------------------------------------------------------------- */
.streamer-hud {
  position: fixed;
  top: 66px;
  left: clamp(10px, 2vw, 22px);
  width: min(410px, calc(100vw - 24px));
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.35s var(--ease-out-expo);
}

.streamer-hud.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hud-glass {
  padding: 18px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid rgba(78, 245, 214, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.72),
    0 0 30px rgba(78, 245, 214, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hud-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #061318;
  background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 100%);
  box-shadow: 0 0 18px rgba(78, 245, 214, 0.45);
  flex-shrink: 0;
}

.hud-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hud-name {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(78, 245, 214, 0.14);
  border: 1px solid rgba(78, 245, 214, 0.4);
  color: var(--cyan);
}

.status-badge.is-live {
  background: rgba(255, 42, 77, 0.2);
  border-color: rgba(255, 42, 77, 0.65);
  color: #ff7a90;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.hud-team-line {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hud-bio {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d6e0ef;
}

.hud-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.twitch-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9146ff 0%, #6d28d9 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(145, 70, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.twitch-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(145, 70, 255, 0.55);
}

.twitch-icon {
  width: 16px;
  height: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 7px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-link-btn:hover {
  transform: translateY(-1px);
  background: rgba(78, 245, 214, 0.12);
  border-color: rgba(78, 245, 214, 0.48);
}

.social-link-btn svg {
  width: 13px;
  height: 13px;
}

.hud-highlights {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlights-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.highlights-label {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.highlights-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jump-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.jump-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.jump-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jump-chip--requiem .jump-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.jump-chip--requiem:hover { border-color: rgba(78, 245, 214, 0.6); }

.jump-chip--link .jump-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.jump-chip--link:hover { border-color: rgba(255, 212, 102, 0.6); }

.jump-chip--wasteland .jump-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.jump-chip--wasteland:hover { border-color: rgba(255, 176, 32, 0.6); }

.jump-chip--joker .jump-dot { background: var(--crimson); box-shadow: 0 0 8px var(--crimson); }
.jump-chip--joker:hover { border-color: rgba(255, 42, 77, 0.6); }

.icon-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-close-btn:hover {
  background: rgba(255, 42, 77, 0.2);
  border-color: rgba(255, 42, 77, 0.6);
}

.icon-close-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Twitch Clip Player Modal
   -------------------------------------------------------------------------- */
.clip-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.clip-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.clip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.clip-modal-card {
  position: relative;
  width: min(900px, 100%);
  padding: clamp(14px, 2.2vw, 22px);
  border-radius: 20px;
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid var(--modal-accent, rgba(78, 245, 214, 0.4));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 42px color-mix(in srgb, var(--modal-accent, var(--cyan)) 22%, transparent);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(0.86) translateY(20px);
  transition: transform 0.36s var(--ease-out-expo);
}

.clip-modal.is-open .clip-modal-card {
  transform: scale(1) translateY(0);
}

.clip-modal-card[data-theme="requiem"] { --modal-accent: var(--cyan); }
.clip-modal-card[data-theme="link"] { --modal-accent: var(--gold); }
.clip-modal-card[data-theme="wasteland"] { --modal-accent: var(--amber); }
.clip-modal-card[data-theme="joker"] { --modal-accent: var(--crimson); }

.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-character-badge {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 8px;
  color: #060b12;
  background: var(--modal-accent, var(--cyan));
}

.modal-category-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.modal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Placeholder / local file:// notice card when clip slug hasn't been configured yet */
.clip-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--modal-accent, var(--cyan)) 18%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(12, 17, 27, 0.96) 0%, rgba(6, 9, 14, 0.98) 100%);
  gap: 10px;
}

.placeholder-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--modal-accent, var(--cyan));
}

.placeholder-heading {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
}

.placeholder-copy {
  margin: 0;
  max-width: 520px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.placeholder-code {
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #e2e8f0;
  user-select: text;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-clip-meta {
  min-width: 220px;
  flex: 1;
}

.modal-clip-title {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

.modal-clip-subtitle {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clip-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.next-clip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--modal-accent, var(--cyan)) 70%, white);
  background: color-mix(in srgb, var(--modal-accent, var(--cyan)) 18%, rgba(15, 23, 38, 0.9));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.next-clip-btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--modal-accent, var(--cyan)) 30%, rgba(15, 23, 38, 0.95));
  box-shadow: 0 0 18px color-mix(in srgb, var(--modal-accent, var(--cyan)) 40%, transparent);
}

.next-clip-btn svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

@keyframes drone-sway {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-4deg);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, -50%) rotate(4deg);
    opacity: 0.96;
  }
}

@keyframes fog-drift-left {
  0% { transform: translate(-2%, 0) scale(1); opacity: 0.65; }
  100% { transform: translate(6%, -3%) scale(1.08); opacity: 0.95; }
}

@keyframes fog-drift-right {
  0% { transform: translate(3%, 2%) scale(1.04); opacity: 0.7; }
  100% { transform: translate(-5%, -2%) scale(1); opacity: 0.96; }
}

@keyframes fog-roll {
  0% { transform: translateX(-3%); opacity: 0.55; }
  100% { transform: translateX(3%); opacity: 0.85; }
}

@keyframes gbro-neon-pulse {
  0%, 100% { opacity: 0.42; transform: scale(0.98); }
  50% { opacity: 0.88; transform: scale(1.04); }
}

@keyframes mist-shimmer {
  0% { background-position: 140% 0%; }
  100% { background-position: -60% 100%; }
}

@keyframes cyan-border-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(78, 245, 214, 0.6), inset 0 0 14px rgba(78, 245, 214, 0.25); }
  50% { box-shadow: 0 0 28px rgba(0, 240, 255, 0.95), inset 0 0 24px rgba(78, 245, 214, 0.45); }
}

@keyframes bow-sweep {
  0% { transform: rotate(-18deg) translateX(-85%); opacity: 0; }
  35% { opacity: 1; }
  75% { opacity: 0.9; }
  100% { transform: rotate(-18deg) translateX(85%); opacity: 0; }
}

@keyframes bow-spark {
  0%, 100% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  45% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.4; }
}

@keyframes geiger-flicker {
  0% { opacity: 0.55; filter: brightness(1); }
  20% { opacity: 1; filter: brightness(1.25); }
  35% { opacity: 0.35; filter: brightness(0.95); }
  60% { opacity: 0.92; filter: brightness(1.18); }
  80% { opacity: 0.48; }
  100% { opacity: 0.85; }
}

@keyframes mask-flash-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  40% { opacity: 1; transform: scale(1.12); }
}

@keyframes persona-slash {
  0% { transform: rotate(-20deg) scaleX(0); opacity: 0; }
  20% { transform: rotate(-20deg) scaleX(1); opacity: 1; }
  70% { transform: rotate(-20deg) scaleX(1.06); opacity: 0.85; }
  100% { transform: rotate(-20deg) scaleX(1.1); opacity: 0; }
}

@keyframes zone-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes ping-ripple {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aura-color) 80%, transparent); }
  100% { box-shadow: 0 0 0 18px transparent; }
}

/* --------------------------------------------------------------------------
   9:16 Horizontal Panoramic Navigation & GBRO-Glow Dock
   -------------------------------------------------------------------------- */
.mobile-nav-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 35;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.mobile-action-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--action-accent, var(--cyan-bright)) 75%, white);
  background: rgba(7, 11, 18, 0.92);
  color: #fff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.68),
    0 0 18px color-mix(in srgb, var(--action-accent, var(--cyan-bright)) 40%, transparent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-action-pill[hidden] {
  display: none;
}

.mobile-action-pill[data-theme="link"] { --action-accent: var(--gold); }
.mobile-action-pill[data-theme="car"] { --action-accent: var(--gold); }
.mobile-action-pill[data-theme="requiem"] { --action-accent: var(--cyan); }
.mobile-action-pill[data-theme="wasteland"] { --action-accent: var(--amber); }
.mobile-action-pill[data-theme="joker"] { --action-accent: var(--crimson); }
.mobile-action-pill[data-theme="gbro"] { --action-accent: var(--cyan-bright); }

.mobile-action-pill:active {
  transform: scale(0.97);
}

.mobile-action-pill svg {
  width: 13px;
  height: 13px;
  color: var(--action-accent, var(--cyan-bright));
}

.mobile-pan-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.mobile-pan-fill {
  width: 16%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  transition: width 0.16s ease-out;
}

.mobile-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.gbro-step-btn,
.gbro-glow-nav-btn {
  border: 1.5px solid rgba(0, 240, 255, 0.78);
  background: linear-gradient(180deg, rgba(11, 18, 28, 0.94) 0%, rgba(5, 9, 16, 0.96) 100%);
  color: #f8fafc;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-out-expo),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gbro-step-btn {
  width: 44px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(0, 240, 255, 0.28),
    inset 0 0 10px rgba(78, 245, 214, 0.12);
}

.gbro-step-btn svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}

.gbro-step-btn:disabled {
  opacity: 0.38;
  box-shadow: none;
  cursor: default;
}

.gbro-glow-nav-btn {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(0, 240, 255, 0.44),
    0 0 36px rgba(78, 245, 214, 0.2),
    inset 0 0 14px rgba(0, 240, 255, 0.16);
  animation: gbro-btn-glow 3.4s ease-in-out infinite;
}

.gbro-glow-nav-btn:hover,
.gbro-step-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #80f9ff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.78),
    0 0 24px rgba(0, 240, 255, 0.68),
    0 0 46px rgba(78, 245, 214, 0.34),
    inset 0 0 16px rgba(0, 240, 255, 0.24);
}

.gbro-nav-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  color: #041016;
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--cyan) 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
}

.gbro-nav-label {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gbro-nav-chevron {
  display: grid;
  place-items: center;
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}

.gbro-nav-chevron svg {
  width: 17px;
  height: 17px;
}

/* Pop-up Section Drawer */
.mobile-nav-drawer {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: rgba(6, 10, 17, 0.98);
  border: 1px solid rgba(0, 240, 255, 0.48);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 240, 255, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.28s var(--ease-out-expo);
}

.mobile-nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}

.mobile-drawer-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gbro-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gbro-nav-item--full {
  grid-column: 1 / -1;
}

.gbro-nav-item .nav-item-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 240, 255, 0.35);
  flex-shrink: 0;
}

.gbro-nav-item .nav-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gbro-nav-item strong {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gbro-nav-item small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.gbro-nav-item.is-active,
.gbro-nav-item:hover {
  border-color: rgba(0, 240, 255, 0.85);
  background: rgba(0, 240, 255, 0.11);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.32), inset 0 0 10px rgba(78, 245, 214, 0.14);
}

.gbro-nav-item.is-active .nav-item-num {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--cyan) 100%);
  color: #041016;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

@keyframes gbro-btn-glow {
  0%, 100% {
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.7),
      0 0 14px rgba(0, 240, 255, 0.36),
      0 0 28px rgba(78, 245, 214, 0.16),
      inset 0 0 12px rgba(0, 240, 255, 0.12);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.78),
      0 0 24px rgba(0, 240, 255, 0.66),
      0 0 46px rgba(78, 245, 214, 0.32),
      inset 0 0 18px rgba(0, 240, 255, 0.24);
  }
}

/* Active section highlight ring on the full panorama (9:16 mobile / ?view=mobile only) */
@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  .hotspot.is-mobile-active .hotspot-outline {
    opacity: 0.95;
    border-style: dashed;
    animation: zone-breathe 2s ease-in-out infinite;
  }

  .hotspot.is-mobile-active .hotspot-ping {
    opacity: 1;
    animation: ping-ripple 1.8s ease-out infinite;
  }
}

.app-shell.force-mobile-preview .hotspot.is-mobile-active .hotspot-outline {
  opacity: 0.95;
  border-style: dashed;
  animation: zone-breathe 2s ease-in-out infinite;
}

.app-shell.force-mobile-preview .hotspot.is-mobile-active .hotspot-ping {
  opacity: 1;
  animation: ping-ripple 1.8s ease-out infinite;
}

.app-shell.modal-is-open .mobile-nav-dock {
  opacity: 0 !important;
  pointer-events: none;
}

/* Switch cleanly to 9:16 horizontal panoramic scroller on mobile/portrait viewports */
@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  .ambient-backdrop {
    display: none;
  }

  .stage-viewport {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .stage-viewport::-webkit-scrollbar {
    display: none;
  }

  .stage {
    height: 100%;
    width: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }

  .corner-bottom-left {
    top: clamp(10px, 2vh, 20px);
    bottom: auto;
    left: auto;
    right: clamp(10px, 2vw, 22px);
  }

  .corner-bottom-left .pill-btn span {
    display: none;
  }

  .mobile-nav-dock {
    display: flex;
  }

  /* Keep highlighted tooltips centered inside their hotspot bounds on narrow 9:16 screens */
  .stage.zones-highlighted .hotspot-tooltip {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    min-width: 112px;
    transform: translate(-50%, -50%) scale(0.88);
  }
}

/* Optional desktop ?view=mobile 9:16 horizontal panoramic frame preview */
.app-shell.force-mobile-preview .stage-viewport {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 22px;
  border: 1px solid rgba(0, 240, 255, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 36px rgba(0, 240, 255, 0.16);
}

.app-shell.force-mobile-preview .stage-viewport::-webkit-scrollbar {
  display: none;
}

.app-shell.force-mobile-preview .stage {
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.app-shell.force-mobile-preview .corner-controls {
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 14px);
  top: 14px;
}

.app-shell.force-mobile-preview .corner-bottom-left {
  top: 14px;
  bottom: auto;
  left: auto;
  right: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 14px);
}

.app-shell.force-mobile-preview .corner-bottom-left .pill-btn span {
  display: none;
}

.app-shell.force-mobile-preview .streamer-hud {
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 14px);
  width: min(375px, calc(min(100vw, calc(100vh * 9 / 16)) - 28px));
}

.app-shell.force-mobile-preview .mobile-nav-dock {
  display: flex;
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  right: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  bottom: 14px;
}

.app-shell.force-mobile-preview .stage.zones-highlighted .hotspot-tooltip {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  min-width: 112px;
  transform: translate(-50%, -50%) scale(0.88);
}

/* Override media query when user explicitly switches to Desktop 16:9 on mobile */
.app-shell.force-desktop-preview .ambient-backdrop {
  display: block;
}

.app-shell.force-desktop-preview .stage-viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.app-shell.force-desktop-preview .stage {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
}

.app-shell.force-desktop-preview .mobile-nav-dock {
  display: none;
}

.app-shell.force-desktop-preview .corner-bottom-left {
  top: auto;
  bottom: clamp(10px, 2vh, 20px);
  left: clamp(10px, 2vw, 22px);
  right: auto;
}

.app-shell.force-desktop-preview .corner-bottom-left .pill-btn span {
  display: inline;
}

.app-shell.force-desktop-preview .hotspot.is-mobile-active .hotspot-outline,
.app-shell.force-desktop-preview .hotspot.is-mobile-active .hotspot-ping {
  opacity: 0;
  animation: none;
}

.app-shell.force-desktop-preview .interior-viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-shell.force-desktop-preview .interior-stage {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
}

.app-shell.force-desktop-preview .interior-mobile-dock {
  display: none;
}

/* --------------------------------------------------------------------------
   Building Interior Scene & Zoom Transition
   -------------------------------------------------------------------------- */
.interior-scene {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.18);
  transition:
    opacity 0.55s ease,
    transform 0.68s var(--ease-out-expo),
    visibility 0s linear 0.55s;
}

.interior-scene.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 0.55s ease 0.1s,
    transform 0.68s var(--ease-out-expo) 0.06s,
    visibility 0s linear 0s;
}

.interior-ambient-backdrop {
  position: absolute;
  inset: -6%;
  background: url("assets/building-interior.jpg") center / cover no-repeat;
  filter: blur(34px) brightness(0.28) saturate(1.2);
  transform: scale(1.06);
  pointer-events: none;
}

.interior-top-bar {
  position: fixed;
  top: clamp(10px, 2vh, 20px);
  left: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 52;
  pointer-events: none;
}

.interior-back-btn,
.interior-tabs {
  pointer-events: auto;
}

.interior-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.interior-tab-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 14, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.interior-tab-btn:hover,
.interior-tab-btn.is-active {
  border-color: var(--cyan-bright);
  background: rgba(0, 240, 255, 0.16);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.34);
}

.interior-viewport {
  position: relative;
  z-index: 46;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.interior-stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.92);
  transform-origin: 35% 56%;
  transition:
    transform 0.62s var(--ease-out-expo),
    filter 0.5s ease,
    opacity 0.45s ease;
}

.interior-scene.is-entering-crt .interior-stage {
  transform: scale(3.6);
  filter: brightness(1.35) blur(3px);
  opacity: 0;
  pointer-events: none;
}

.interior-scene.is-entering-crt .interior-top-bar,
.interior-scene.is-entering-crt .interior-panel,
.interior-scene.is-entering-crt .interior-mobile-dock {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.interior-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.interior-schedule-glow {
  position: absolute;
  left: 52%;
  top: 12.5%;
  width: 20%;
  height: 14%;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.38) 0%, rgba(78, 245, 214, 0.14) 52%, transparent 78%);
  mix-blend-mode: screen;
  filter: blur(8px);
  pointer-events: none;
  animation: gbro-neon-pulse 3.2s ease-in-out infinite;
}

.interior-crt-glow {
  position: absolute;
  left: 24.5%;
  top: 44%;
  width: 21%;
  height: 26%;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(120, 200, 255, 0.2) 0%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: geiger-flicker 4.5s steps(3, end) infinite;
}

.interior-hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.interior-hotspot {
  position: absolute;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.interior-hotspot--schedule {
  left: 51%;
  top: 13%;
  width: 21.5%;
  height: 45%;
}

.interior-hotspot--crt {
  left: 24%;
  top: 44%;
  width: 22.5%;
  height: 28%;
}

.crt-scan-overlay {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 240, 255, 0.08) 0px,
    rgba(0, 240, 255, 0.08) 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.interior-hotspot--crt:hover .crt-scan-overlay {
  opacity: 0.95;
}

.crt-play-badge {
  border-color: rgba(255, 212, 102, 0.85);
  box-shadow: 0 0 16px rgba(255, 212, 102, 0.36);
}

.interior-hotspot-outline {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px dashed rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22), inset 0 0 14px rgba(0, 240, 255, 0.12);
  opacity: 0.45;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.interior-hotspot:hover .interior-hotspot-outline,
.interior-hotspot:focus-visible .interior-hotspot-outline {
  opacity: 1;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.58), inset 0 0 18px rgba(0, 240, 255, 0.22);
}

.interior-hotspot-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 11, 18, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.65);
  color: #f8fafc;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

/* Interior Glassmorphic Content Drawer */
.interior-panel {
  position: fixed;
  right: clamp(12px, 2.5vw, 28px);
  bottom: clamp(14px, 3vh, 28px);
  width: min(420px, calc(100vw - 24px));
  z-index: 54;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.34s var(--ease-out-expo);
}

.interior-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.interior-panel-glass {
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 13, 22, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82), 0 0 28px rgba(0, 240, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interior-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.interior-panel-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}

.interior-panel-title {
  margin: 2px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.interior-panel-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #cbd5e1;
}

.interior-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interior-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.interior-list-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
}

.interior-list-value {
  font-size: 0.82rem;
  color: #f1f5f9;
  text-align: right;
}

.interior-mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 53;
}

@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  .interior-ambient-backdrop {
    display: none;
  }

  .interior-viewport {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .interior-viewport::-webkit-scrollbar {
    display: none;
  }

  .interior-stage {
    height: 100%;
    width: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
  }

  .interior-mobile-dock {
    display: block;
  }

  .interior-panel {
    left: 12px;
    right: 12px;
    bottom: 74px;
    width: auto;
  }
}

.app-shell.force-mobile-preview .interior-viewport {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 22px;
  border: 1px solid rgba(0, 240, 255, 0.34);
}

.app-shell.force-mobile-preview .interior-viewport::-webkit-scrollbar {
  display: none;
}

.app-shell.force-mobile-preview .interior-stage {
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.app-shell.force-mobile-preview .interior-top-bar {
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 14px);
  right: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 14px);
  top: 14px;
}

.app-shell.force-mobile-preview .interior-mobile-dock {
  display: block;
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  right: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  bottom: 14px;
}

.app-shell.force-mobile-preview .interior-panel {
  left: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  right: calc(50% - min(50vw, calc(50vh * 9 / 16)) + 12px);
  bottom: 74px;
  width: auto;
}

/* --------------------------------------------------------------------------
   CRT Cornfield Collector Minigame
   -------------------------------------------------------------------------- */
.minigame-scene {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  background: #030508;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.84);
  transition:
    opacity 0.48s ease,
    transform 0.62s var(--ease-out-expo),
    visibility 0s linear 0.48s;
}

.minigame-scene.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 0.48s ease 0.08s,
    transform 0.62s var(--ease-out-expo) 0.05s,
    visibility 0s linear 0s;
}

.minigame-frame {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: #0c0f0a;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.95), 0 0 38px rgba(0, 240, 255, 0.14);
}

.minigame-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.crt-screen-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.14) 0px,
      rgba(0, 0, 0, 0.14) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 2;
}

.mg-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}

.mg-hud-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-level-pill,
.mg-health-pill,
.mg-score-pill,
.mg-timer-pill,
.mg-points-pill,
.mg-gloves-pill,
.mg-music-btn,
.mg-pause-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 212, 102, 0.72);
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 212, 102, 0.22);
}

.mg-meta-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #94a3b8;
}

.mg-timer-pill {
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.mg-points-pill {
  border-color: rgba(250, 204, 21, 0.72);
  color: #fde047;
}

.mg-gloves-pill {
  border-color: rgba(148, 163, 184, 0.45);
  color: #94a3b8;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mg-gloves-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.mg-gloves-pill.is-equipped {
  border-color: rgba(249, 115, 22, 0.88);
  color: #fed7aa;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 18px rgba(249, 115, 22, 0.42);
}

.mg-gloves-pill.is-equipped .mg-gloves-dot {
  background: #f97316;
  box-shadow: 0 0 10px #fb923c;
}

.mg-hud-audio {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mg-slider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(168, 85, 247, 0.58);
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e9d5ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.mg-slider-pill:last-child {
  border-color: rgba(78, 245, 214, 0.58);
  color: #a5f3fc;
}

.mg-range {
  width: 66px;
  accent-color: #c084fc;
  cursor: pointer;
}

.mg-range--sfx {
  accent-color: #22d3ee;
}

.mg-slider-val {
  min-width: 32px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.mg-audio-panel {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.mg-audio-row label {
  min-width: 72px;
  text-align: left;
  color: #cbd5e1;
}

.mg-audio-row .mg-range {
  flex: 1;
  width: auto;
}

.mg-boss-bar {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 28px));
  padding: 8px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(163, 230, 53, 0.72);
  background: rgba(8, 12, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.78), 0 0 22px rgba(132, 204, 22, 0.28);
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.mg-boss-bar.is-open {
  display: flex;
}

.mg-boss-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d9f99d;
}

.mg-boss-hp-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: #bef264;
}

.mg-boss-track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.28);
  overflow: hidden;
}

.mg-boss-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626 0%, #84cc16 65%, #bef264 100%);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.72);
  transition: width 0.18s ease;
}

.mg-yt-audio-host {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.mg-level-pill {
  border-color: rgba(0, 240, 255, 0.78);
  color: var(--cyan-bright);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 240, 255, 0.28);
}

.mg-health-pill {
  border-color: rgba(78, 245, 214, 0.65);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 14px rgba(78, 245, 214, 0.22);
}

.mg-health-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--cyan);
}

.mg-health-track {
  width: clamp(64px, 10vw, 118px);
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mg-health-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #4ef5d6 100%);
  box-shadow: 0 0 10px rgba(78, 245, 214, 0.75);
  transition: width 0.22s ease, background 0.25s ease;
}

.mg-health-fill.is-warn {
  background: linear-gradient(90deg, #f59e0b 0%, #ffd466 100%);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.75);
}

.mg-health-fill.is-danger {
  background: linear-gradient(90deg, #dc2626 0%, #ff2a4d 100%);
  box-shadow: 0 0 12px rgba(255, 42, 77, 0.85);
}

.mg-health-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  min-width: 36px;
  text-align: right;
}

.mg-jar-dot {
  width: 11px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffe97d 0%, #f59e0b 100%);
  border: 1px solid #fff3b0;
  box-shadow: 0 0 10px rgba(255, 212, 102, 0.8);
}

.mg-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-controls-hint {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.mg-pause-btn {
  border-color: rgba(0, 240, 255, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 240, 255, 0.28);
  cursor: pointer;
}

.mg-pause-btn svg {
  width: 14px;
  height: 14px;
  color: var(--cyan-bright);
}

/* Mobile Touch Controls */
.mg-touch-controls {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
}

.mg-dpad {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 44px);
  gap: 4px;
}

.mg-pad-up { grid-column: 2; grid-row: 1; }
.mg-pad-left { grid-column: 1; grid-row: 2; }
.mg-pad-right { grid-column: 3; grid-row: 2; }
.mg-pad-down { grid-column: 2; grid-row: 3; }

.mg-pad-btn,
.mg-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.mg-punch-btn {
  pointer-events: auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid rgba(249, 115, 22, 0.9);
  background: radial-gradient(circle at 35% 30%, rgba(249, 115, 22, 0.34), rgba(14, 12, 18, 0.92));
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fed7aa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 22px rgba(249, 115, 22, 0.36);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mg-punch-btn.is-locked {
  opacity: 0.42;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  color: #94a3b8;
}

.mg-punch-btn.is-pressed,
.mg-punch-btn:active {
  transform: scale(0.93);
  background: rgba(249, 115, 22, 0.42);
}

.mg-jump-btn {
  border: 1.5px solid rgba(0, 240, 255, 0.75);
  background: rgba(7, 12, 20, 0.84);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 240, 255, 0.26);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mg-pad-btn {
  border-radius: 12px;
}

.mg-pad-btn svg {
  width: 20px;
  height: 20px;
}

.mg-pad-btn.is-pressed,
.mg-pad-btn:active {
  background: rgba(0, 240, 255, 0.28);
  transform: scale(0.94);
}

.mg-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.mg-punch-btn {
  pointer-events: auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid rgba(249, 115, 22, 0.9);
  background: radial-gradient(circle at 35% 30%, rgba(249, 115, 22, 0.34), rgba(14, 12, 18, 0.92));
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fed7aa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 22px rgba(249, 115, 22, 0.36);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mg-punch-btn.is-locked {
  opacity: 0.42;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  color: #94a3b8;
}

.mg-punch-btn.is-pressed,
.mg-punch-btn:active {
  transform: scale(0.93);
  background: rgba(249, 115, 22, 0.42);
}

.mg-jump-btn {
  pointer-events: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border-color: rgba(255, 212, 102, 0.88);
  background: radial-gradient(circle at 35% 30%, rgba(255, 212, 102, 0.28), rgba(10, 14, 22, 0.9));
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffe999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 22px rgba(255, 212, 102, 0.36);
}

.mg-jump-btn.is-pressed,
.mg-jump-btn:active {
  transform: scale(0.93);
  background: rgba(255, 212, 102, 0.34);
}

/* Pause & Victory Overlays */
.mg-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.mg-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.mg-menu-card {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 18px;
  background: rgba(9, 14, 24, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 240, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.mg-menu-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}

.mg-menu-title {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.mg-menu-copy {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.mg-leaderboard {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 212, 102, 0.28);
  text-align: left;
}

.mg-leaderboard-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fde047;
  margin-bottom: 6px;
}

.mg-leaderboard-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 132px;
  overflow-y: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.mg-leaderboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.mg-leaderboard-list li.is-latest {
  color: #fde047;
  font-weight: 700;
}

.mg-leaderboard-empty {
  color: #94a3b8;
  list-style: none;
  margin-left: -18px;
}

.mg-menu-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-menu-btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s ease;
}

.mg-menu-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.mg-menu-btn--primary {
  border-color: rgba(0, 240, 255, 0.8);
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
}

.mg-menu-btn--danger {
  border-color: rgba(255, 42, 77, 0.65);
  background: rgba(255, 42, 77, 0.14);
}

@media (max-width: 768px), (max-aspect-ratio: 3/4), (pointer: coarse) {
  .mg-controls-hint {
    display: none;
  }

  .mg-touch-controls {
    display: flex;
  }
}

@media (max-width: 768px), (max-aspect-ratio: 3/4) {
  .minigame-frame {
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
  }
}

.app-shell.force-mobile-preview .minigame-frame {
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  border-radius: 22px;
  border: 1px solid rgba(0, 240, 255, 0.34);
}

.app-shell.force-mobile-preview .mg-controls-hint {
  display: none;
}

.app-shell.force-mobile-preview .mg-touch-controls {
  display: flex;
}

.app-shell.force-desktop-preview .minigame-frame {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  border-radius: 0;
  border: none;
}

.app-shell.force-desktop-preview .mg-controls-hint {
  display: inline-block;
}

.app-shell.force-desktop-preview .mg-touch-controls {
  display: none;
}

/* --------------------------------------------------------------------------
   Fullscreen Season 5 Intro Video Scene (Car Zoom Transition)
   -------------------------------------------------------------------------- */
.intro-scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: #020408;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.84);
  transition:
    opacity 0.48s ease,
    transform 0.65s var(--ease-out-expo),
    visibility 0s linear 0.48s;
}

.intro-scene.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 0.48s ease 0.08s,
    transform 0.65s var(--ease-out-expo) 0.06s,
    visibility 0s linear 0s;
}

.intro-top-bar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(12px, 2.2vw, 24px);
  background: rgba(6, 10, 17, 0.96);
  border-bottom: 1px solid rgba(255, 212, 102, 0.24);
  z-index: 2;
}

.intro-exit-btn,
.intro-title-pill {
  pointer-events: auto;
}

.intro-exit-btn {
  border-color: rgba(255, 212, 102, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.78), 0 0 18px rgba(255, 212, 102, 0.25);
}

.intro-exit-btn:hover {
  border-color: rgba(255, 42, 77, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.82), 0 0 22px rgba(255, 42, 77, 0.4);
}

.intro-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 18, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.intro-badge-tag {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.intro-ext-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--cyan-bright);
  text-decoration: none;
}

.intro-ext-link:hover {
  text-decoration: underline;
}

.intro-video-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #000;
}

.intro-video-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Responsive & Reduced Motion Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .pill-btn {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .hotspot-tooltip {
    min-width: 132px;
    padding: 6px 9px;
  }

  .tooltip-title {
    font-size: 0.78rem;
  }

  .tooltip-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drone-spotlight,
  .fog-band,
  .gbro-neon-ambient,
  .gbro-glow-nav-btn,
  .live-dot,
  .hotspot-fx {
    animation: none !important;
  }
}
