/* ==========================================================================
   RIKO ASSISTANT (rikoassistant.xyz) — 6-AGENT HYDROGEN SPATIAL DRONE HUD
   UI/UX Pro Max + 21st.dev Specular Obsidian Glass + Real Game 3D Worlds
   (WildWorld + cottage.js + BundWorld + Lujiazui + Nanjing Road + Metro)
   ========================================================================== */

@property --theme-primary {
  syntax: '<color>';
  inherits: true;
  initial-value: #50dcff;
}
@property --theme-secondary {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffd88a;
}
@property --theme-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(80, 220, 255, 0.28);
}

:root {
  --bg-deep: #04070f;
  --glass-obsidian: linear-gradient(155deg, rgba(7, 11, 22, 0.74) 0%, rgba(4, 7, 15, 0.56) 100%);
  --glass-obsidian-strong: linear-gradient(155deg, rgba(8, 13, 26, 0.88) 0%, rgba(4, 7, 15, 0.78) 100%);
  --hud-blur: blur(22px) saturate(165%);
  --hud-blur-tight: blur(14px) saturate(160%);
  --hud-border-hairline: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-highlight: rgba(126, 243, 255, 0.45);

  --theme-primary: #50dcff;
  --theme-secondary: #ffd88a;
  --theme-glow: rgba(80, 220, 255, 0.28);

  --text-main: #f5f8ff;
  --text-muted: #9baac8;
  --text-dim: #647391;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-2xl: 28px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --drone-progress: 0;
  --mx: 50%;
  --my: 0%;
  --nav-height: 68px;
  --dock-clearance: 108px;
}

body[data-theme="portal"] {
  --theme-primary: #50dcff;
  --theme-secondary: #ffd88a;
  --theme-glow: rgba(80, 220, 255, 0.28);
  --border-highlight: rgba(126, 243, 255, 0.45);
}
body[data-theme="forest"] {
  --theme-primary: #ffad42;
  --theme-secondary: #7ef3ff;
  --theme-glow: rgba(255, 173, 66, 0.28);
  --border-highlight: rgba(255, 196, 107, 0.48);
}
body[data-theme="companions"] {
  --theme-primary: #d17aff;
  --theme-secondary: #7ef3ff;
  --theme-glow: rgba(209, 122, 255, 0.28);
  --border-highlight: rgba(209, 122, 255, 0.48);
}
body[data-theme="bund"] {
  --theme-primary: #50dcff;
  --theme-secondary: #ff6ba8;
  --theme-glow: rgba(80, 220, 255, 0.30);
  --border-highlight: rgba(80, 220, 255, 0.48);
}
body[data-theme="engine"] {
  --theme-primary: #38f5c8;
  --theme-secondary: #50dcff;
  --theme-glow: rgba(56, 245, 200, 0.26);
  --border-highlight: rgba(56, 245, 200, 0.45);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  scroll-padding-bottom: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: var(--bg-deep);
  transition:
    --theme-primary 0.8s var(--ease-expo),
    --theme-secondary 0.8s var(--ease-expo),
    --theme-glow 0.8s var(--ease-expo);
}

:is(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 3px;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--theme-primary) 52%, var(--theme-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: min(1320px, calc(100% - 2 * clamp(16px, 3.5vw, 44px)));
  margin-inline: auto;
}

/* ==========================================================================
   1. SYSTEM 1: OPENING "HOLD OR CLICK TO ENTER PORTAL" GATE (#portal-gate)
   ========================================================================== */
.portal-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at 50% 45%, rgba(16, 32, 64, 0.90) 0%, rgba(4, 7, 15, 0.97) 74%),
    rgba(4, 7, 15, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  contain: layout paint;
  transition: opacity 0.78s var(--ease-expo), transform 0.88s var(--ease-expo), visibility 0.78s;
}

.portal-gate.is-exiting {
  opacity: 0;
  transform: scale(1.12);
  visibility: hidden;
  pointer-events: none;
}

#gate-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gate-hud-corners {
  position: absolute;
  inset: 20px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  color: rgba(155, 170, 200, 0.72);
}

.gate-corner {
  position: absolute;
  padding: 6px 10px;
  border: 1px solid rgba(126, 243, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 17, 0.62);
}
.gate-corner.tl { top: 0; left: 0; }
.gate-corner.tr { top: 0; right: 0; color: var(--theme-primary); }
.gate-corner.bl { bottom: 0; left: 0; }
.gate-corner.br { bottom: 0; right: 0; color: #38f5c8; }

.gate-center-stage {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.gate-reticle-wrap {
  position: relative;
  width: 184px;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-svg-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gate-ring-track { fill: none; stroke: rgba(126, 243, 255, 0.12); stroke-width: 2; }
.gate-ring-ticks { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; stroke-dasharray: 3 11; }
.gate-ring-progress {
  fill: none;
  stroke: var(--theme-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  filter: drop-shadow(0 0 10px var(--theme-primary));
  transition: stroke-dashoffset 0.08s linear;
}
.gate-ring-charge {
  fill: none;
  stroke: var(--theme-secondary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  filter: drop-shadow(0 0 14px var(--theme-secondary));
}

.gate-core-logo-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 38, 0.85);
  border: 1px solid rgba(126, 243, 255, 0.42);
  box-shadow: 0 0 40px rgba(80, 220, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gate-reticle-wrap.is-charging .gate-core-logo-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(255, 216, 138, 0.65);
}

.gate-core-logo { width: 58px; height: 58px; border-radius: 16px; }
.gate-shockwaves { position: absolute; inset: 0; pointer-events: none; }

.portal-shockwave-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid var(--theme-primary);
  box-shadow: 0 0 28px var(--theme-primary);
  animation: portalShockwave 0.95s var(--ease-expo) forwards;
}

@keyframes portalShockwave {
  0% { transform: scale(0.85); opacity: 0.95; }
  100% { transform: scale(3.6); opacity: 0; }
}

.gate-telemetry {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.gate-status-text { color: var(--text-main); letter-spacing: 0.06em; text-transform: uppercase; }
.gate-pct { color: var(--theme-primary); font-weight: 700; }

.gate-checklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gate-check-pill {
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  transition: all 0.25s ease;
}
.gate-check-pill.ready {
  color: #38f5c8;
  border-color: rgba(56, 245, 200, 0.45);
  background: rgba(56, 245, 200, 0.1);
}

.portal-enter-btn {
  appearance: none;
  position: relative;
  width: 100%;
  max-width: 350px;
  padding: 15px 24px;
  border-radius: 18px;
  border: 1px solid rgba(126, 243, 255, 0.45);
  background: linear-gradient(135deg, rgba(16, 28, 52, 0.92), rgba(8, 14, 28, 0.96));
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 28px rgba(80, 220, 255, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.portal-enter-btn:disabled { opacity: 0.55; cursor: wait; }
.portal-enter-btn.is-ready {
  border-color: var(--theme-primary);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7), 0 0 36px rgba(80, 220, 255, 0.42);
}
.portal-enter-btn.is-ready:hover { transform: translateY(-2px); }
.portal-enter-btn.is-holding {
  transform: scale(0.97);
  border-color: var(--theme-secondary);
  box-shadow: 0 0 48px rgba(255, 216, 138, 0.55);
}

.portal-enter-label {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}
.portal-enter-hint { font-size: 0.74rem; color: var(--theme-primary); }

.gate-quick-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gate-audio-pref-btn, .gate-skip-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 34, 0.75);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.gate-audio-pref-btn:hover, .gate-skip-btn:hover { color: var(--text-main); border-color: var(--border-highlight); }
.gate-audio-dot { width: 7px; height: 7px; border-radius: 50%; background: #38f5c8; box-shadow: 0 0 8px #38f5c8; }
.gate-audio-pref-btn[aria-pressed="false"] .gate-audio-dot { background: #647391; box-shadow: none; }

/* ==========================================================================
   2. FULL-VIEWPORT 100vw x 100dvh REAL-GAME 3D DRONE CANVAS & VIEWFINDER
   ========================================================================== */
#real-world-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  background: var(--bg-deep);
}

#real-world-canvas.is-dragging {
  cursor: grabbing;
}

.world-curtain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(4, 7, 15, 0.78), #03060d 92%);
  opacity: 0;
  transition: opacity 0.22s var(--ease-spring);
}
.world-curtain.is-active { opacity: 1; }

.drone-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.44) 0%, rgba(4, 7, 15, 0) 14%, rgba(4, 7, 15, 0) 82%, rgba(4, 7, 15, 0.54) 100%),
    radial-gradient(
      ellipse 70% 68% at 50% 49%,
      rgba(4, 7, 15, 0) 0%,
      rgba(4, 7, 15, 0) 60%,
      rgba(4, 7, 15, 0.22) 80%,
      rgba(4, 7, 15, 0.54) 100%
    );
  transition: opacity 0.55s var(--ease-expo);
}
body.is-pure-drone .drone-vignette { opacity: 0.28; }
body.is-presenting .drone-vignette { opacity: 0.38; }

.drone-viewfinder-frame {
  position: fixed;
  inset: clamp(14px, 1.8vw, 24px);
  z-index: 3;
  pointer-events: none;
}

.vf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.26);
  border-style: solid;
  border-width: 0;
}
.vf-corner.tl { top: 64px; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.tr { top: 64px; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-corner.bl { bottom: 68px; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.br { bottom: 68px; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.vf-telemetry-bar {
  position: absolute;
  top: 66px;
  right: clamp(46px, 5vw, 72px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 248, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(4, 7, 15, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vf-telemetry-bar strong { color: var(--theme-primary); font-weight: 700; }
.vf-telemetry-bar strong[data-sync-mode="manual"],
.nav-telemetry-pill strong[data-sync-mode="manual"] {
  color: var(--theme-secondary);
}
.vf-divider { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.2); }

.drone-drag-reticle {
  position: fixed;
  left: 67%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.88;
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
}
body.has-interacted .drone-drag-reticle,
body.is-scrolling .drone-drag-reticle,
body.is-pure-drone .drone-drag-reticle,
body.is-presenting .drone-drag-reticle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.reticle-ring-svg { width: 78px; height: 78px; overflow: visible; }
.reticle-circle-outer {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  transform-origin: center;
  animation: reticleSlowSpin 24s linear infinite;
}
.reticle-crosshair { stroke: var(--theme-primary); stroke-width: 1.5; stroke-linecap: round; }
.reticle-hint-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.64);
  -webkit-backdrop-filter: var(--hud-blur-tight);
  backdrop-filter: var(--hud-blur-tight);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.9);
  white-space: nowrap;
}
@keyframes reticleSlowSpin { to { transform: rotate(360deg); } }

/* ==========================================================================
   3. MINIMAL FLOATING SPATIAL TOP NAVBAR
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--drone-progress, 0) * 100%);
  z-index: 300;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
  box-shadow: 0 0 14px var(--theme-primary);
}

.navbar.navbar--spatial {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.74) 0%, rgba(4, 7, 15, 0.25) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.48s var(--ease-expo), transform 0.48s var(--ease-expo);
}
.navbar--spatial .nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 20px var(--theme-glow); }
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-highlight);
  color: var(--theme-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--text-muted);
}
.nav-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 11, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-telemetry-pill strong { color: var(--theme-primary); }

.nav-links { display: flex; align-items: center; gap: 10px; }

.hud-toggle-btn, .sound-toggle-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(12, 19, 36, 0.74);
  border: 1px solid var(--hud-border-hairline);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.hud-toggle-btn:hover, .sound-toggle-btn:hover {
  background: rgba(20, 31, 56, 0.9);
  border-color: var(--theme-primary);
  box-shadow: 0 0 18px var(--theme-glow);
}
.hud-toggle-btn kbd {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.62rem;
  color: var(--theme-primary);
}
.nav-presentation-btn {
  border-color: rgba(80, 220, 255, 0.36);
  background: linear-gradient(135deg, rgba(14, 24, 46, 0.86) 0%, rgba(9, 17, 34, 0.78) 100%);
}
.nav-presentation-btn .pres-btn-dot {
  display: none;
}
.nav-presentation-btn.is-presenting,
.nav-presentation-btn[aria-pressed="true"] {
  border-color: #38f5c8;
  background: rgba(56, 245, 200, 0.16);
  color: #7ef3ff;
  box-shadow: 0 0 20px rgba(56, 245, 200, 0.34);
}
.nav-presentation-btn.is-presenting .pres-btn-dot,
.nav-presentation-btn[aria-pressed="true"] .pres-btn-dot {
  display: inline-block;
}

.sound-eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-eq-bars i {
  display: block;
  width: 2.5px;
  background: var(--theme-primary);
  border-radius: 2px;
  height: 4px;
}
.sound-toggle-btn[aria-pressed="true"] .sound-eq-bars i:nth-child(1) { animation: navEq 0.75s infinite ease-in-out 0.0s; }
.sound-toggle-btn[aria-pressed="true"] .sound-eq-bars i:nth-child(2) { animation: navEq 0.62s infinite ease-in-out 0.15s; }
.sound-toggle-btn[aria-pressed="true"] .sound-eq-bars i:nth-child(3) { animation: navEq 0.82s infinite ease-in-out 0.28s; }
.sound-toggle-btn[aria-pressed="true"] .sound-eq-bars i:nth-child(4) { animation: navEq 0.68s infinite ease-in-out 0.1s; }
.sound-toggle-btn[aria-pressed="false"] .sound-eq-bars i {
  height: 3px !important;
  animation: none !important;
  background: var(--text-dim);
}
@keyframes navEq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: var(--theme-primary);
  color: #030914;
  box-shadow: 0 0 20px var(--theme-glow);
}

/* Pure Drone Exit Pill */
body.is-pure-drone .drone-scroll-story {
  opacity: 0;
  pointer-events: none;
}
body.is-pure-drone .navbar.navbar--spatial {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -14px, 0);
}

.pure-drone-exit-pill {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 18px));
  left: 50%;
  transform: translate(-50%, -22px);
  z-index: 120;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass-obsidian-strong);
  -webkit-backdrop-filter: var(--hud-blur);
  backdrop-filter: var(--hud-blur);
  border: 1px solid var(--theme-primary);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 24px var(--theme-glow);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-expo), transform 0.38s var(--ease-expo);
}
body.is-pure-drone .pure-drone-exit-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   4. GIKO ENERGY & KASANE 3D PROJECTED CALLOUT LEADER PINS (.world-3d-pin)
   ========================================================================== */
.world-3d-pins-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  contain: layout style;
}

.world-3d-pin {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  overflow: visible;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0; margin: 0;
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(var(--pin-x, -9999px), var(--pin-y, -9999px), 0) scale(0.92);
  transition: opacity 0.32s var(--ease-expo);
}
.world-3d-pin.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(var(--pin-x, -9999px), var(--pin-y, -9999px), 0) scale(1);
}
.world-3d-pin.is-visible.is-occluded {
  opacity: 0.12;
  pointer-events: none;
}

.pin-reticle {
  position: absolute;
  left: 0; top: 0;
  display: block;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%);
}
.pin-dot-core {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--theme-primary);
  box-shadow: 0 0 14px var(--theme-primary), 0 0 28px var(--theme-glow);
}
.pin-dot-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.25px solid var(--theme-primary);
  opacity: 0.7;
  animation: pinPulseRing 2.6s var(--ease-expo) infinite;
}
@keyframes pinPulseRing {
  0% { transform: scale(0.55); opacity: 0.9; }
  80%, 100% { transform: scale(2.15); opacity: 0; }
}

.pin-leader-svg {
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 44px;
  overflow: visible;
  pointer-events: none;
}
.pin-leader-line {
  fill: none;
  stroke: var(--theme-primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--theme-glow));
}

.pin-card {
  position: absolute;
  left: 56px; bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 13px 6px 9px;
  border-radius: 13px;
  background: rgba(5, 9, 18, 0.78);
  -webkit-backdrop-filter: var(--hud-blur-tight);
  backdrop-filter: var(--hud-blur-tight);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  transform: translateY(50%);
  transition: all 0.22s ease;
}
.world-3d-pin:hover .pin-card {
  background: rgba(9, 16, 32, 0.94);
  border-color: var(--theme-primary);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75), 0 0 24px var(--theme-glow);
}

.pin-icon-badge {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--theme-primary);
  flex-shrink: 0;
}
.pin-text-group { display: flex; flex-direction: column; gap: 1px; }
.pin-title { font-size: 0.76rem; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.pin-meta { font-family: var(--font-mono); font-size: 0.61rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--theme-primary); }

.world-3d-pin.pin--tl .pin-leader-svg { left: auto; right: 0; transform: scaleX(-1); }
.world-3d-pin.pin--tl .pin-card { left: auto; right: 56px; }
.world-3d-pin.pin--br .pin-leader-svg { bottom: auto; top: 0; transform: scaleY(-1); }
.world-3d-pin.pin--br .pin-card { bottom: auto; top: 30px; transform: translateY(-50%); }
.world-3d-pin.pin--bl .pin-leader-svg { left: auto; right: 0; bottom: auto; top: 0; transform: scale(-1, -1); }
.world-3d-pin.pin--bl .pin-card { left: auto; right: 56px; bottom: auto; top: 30px; transform: translateY(-50%); }

/* ==========================================================================
   5. GIKO ENERGY RIGHT-EDGE VERTICAL DRONE WAYPOINT RAIL (01..08)
   ========================================================================== */
.drone-waypoint-rail {
  position: fixed;
  right: clamp(12px, 1.8vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding: 10px 6px;
  pointer-events: auto;
}
.rail-spine {
  position: absolute;
  right: 21px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.rail-progress-fill {
  width: 100%;
  height: calc(var(--drone-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--theme-primary), var(--theme-secondary));
  box-shadow: 0 0 12px var(--theme-primary);
}

.waypoint-node {
  position: relative;
  appearance: none;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 54px;
  min-height: 36px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-muted);
}
.waypoint-num {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.65;
  transition: all 0.25s ease;
}
.waypoint-dot-wrap {
  position: relative;
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.waypoint-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transition: all 0.25s var(--ease-spring);
}
.waypoint-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--theme-primary);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s var(--ease-spring);
}
.waypoint-node:hover .waypoint-num, .waypoint-node.is-active .waypoint-num {
  opacity: 1;
  color: var(--theme-primary);
}
.waypoint-node:hover .waypoint-dot, .waypoint-node.is-active .waypoint-dot {
  transform: scale(1.45);
  background: var(--theme-primary);
  box-shadow: 0 0 12px var(--theme-primary);
}
.waypoint-node.is-active .waypoint-ring { opacity: 1; transform: scale(1.15); }

.waypoint-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translate(8px, -50%);
  padding: 7px 12px;
  border-radius: 11px;
  background: rgba(6, 10, 20, 0.88);
  -webkit-backdrop-filter: var(--hud-blur-tight);
  backdrop-filter: var(--hud-blur-tight);
  border: 1px solid var(--hud-border-hairline);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.24s var(--ease-expo);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.waypoint-node:hover .waypoint-tooltip { opacity: 1; transform: translate(0, -50%); }
.waypoint-tooltip-title { font-size: 0.76rem; font-weight: 700; color: var(--text-main); }
.waypoint-tooltip-meta { font-family: var(--font-mono); font-size: 0.61rem; font-weight: 600; color: var(--theme-primary); }

/* ==========================================================================
   6. KASANE & PRIMLAND SCROLLYTELLING EDITORIAL CHAPTERS (.drone-chapter)
   ========================================================================== */
.drone-scroll-story {
  position: relative;
  z-index: 15;
  pointer-events: none;
  width: 100%;
  padding-bottom: 6vh;
  transition: opacity 0.5s var(--ease-expo), transform 0.55s var(--ease-expo);
}

.drone-chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 14px) clamp(18px, 4.2vw, 64px) 96px;
  pointer-events: none;
}
.drone-chapter--left { justify-content: flex-start; align-items: center; }
.drone-chapter--right { justify-content: flex-end; align-items: center; padding-right: clamp(76px, 8vw, 128px); }
.drone-chapter--bottom-left { justify-content: flex-start; align-items: flex-end; }
.drone-chapter--hero-float { justify-content: flex-start; align-items: flex-end; min-height: 100vh; min-height: 100dvh; }

.drone-hero-editorial {
  position: relative;
  pointer-events: auto;
  max-width: 540px;
  padding: 24px 26px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(6, 10, 20, 0.72) 0%, rgba(4, 7, 15, 0.48) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-highlight);
  color: var(--theme-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--theme-primary); box-shadow: 0 0 10px var(--theme-primary); }

.drone-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw + 0.4rem, 3.65rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-main);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
  margin-bottom: 14px;
}

.drone-hero-sub {
  font-size: clamp(0.92rem, 1.02vw, 1.04rem);
  line-height: 1.58;
  color: rgba(235, 242, 255, 0.88);
  margin-bottom: 18px;
}

/* Side-Docked Obsidian Specular Glass Cards */
.drone-glass-card {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 465px;
  max-height: calc(100dvh - var(--nav-height) - 106px);
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 2.3vw, 28px);
  border-radius: 24px;
  background: var(--glass-obsidian);
  -webkit-backdrop-filter: var(--hud-blur);
  backdrop-filter: var(--hud-blur);
  border: 1px solid var(--hud-border-hairline);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    filter 0.45s var(--ease-expo);
}
.drone-glass-card::-webkit-scrollbar { display: none; }

/* Active Live 3D Presentation Mode: dim blocking editorial cards so the 3D tour stays crystal clear */
.drone-hero-editorial {
  transition:
    opacity 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    filter 0.45s var(--ease-expo);
}
body.is-presenting .drone-hero-editorial,
body.is-presenting .drone-glass-card {
  opacity: 0;
  pointer-events: none;
  filter: saturate(0.75);
  transform: scale(0.96);
}

.drone-glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--theme-primary), rgba(255, 255, 255, 0.22) 38%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.drone-glass-card.drone-glass-card--interactive {
  max-width: 530px;
  max-height: calc(100dvh - var(--nav-height) - 108px);
  padding: clamp(16px, 1.8vw, 22px);
}
.drone-glass-card.drone-glass-card--wide { max-width: 620px; }

.chapter-header-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chapter-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--theme-primary); }
.chapter-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--theme-primary); box-shadow: 0 0 10px var(--theme-primary); }
.chapter-alt-tag { font-family: var(--font-mono); font-size: 0.67rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-muted); }

.chapter-title { font-family: var(--font-display); font-size: clamp(1.55rem, 2.3vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 10px; }
.chapter-body { font-size: 0.91rem; line-height: 1.58; color: rgba(220, 230, 248, 0.86); margin-bottom: 16px; }
.chapter-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--theme-primary);
}

.chapter-telemetry-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.chapter-stat-cell { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.chapter-stat-key { display: block; font-family: var(--font-mono); font-size: 0.61rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.chapter-stat-val { display: block; font-family: var(--font-mono); font-size: 0.77rem; font-weight: 700; color: var(--text-main); }

.chapter-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.chapter-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
}
.chapter-action-btn:hover, .chapter-action-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--theme-primary);
  box-shadow: 0 0 20px var(--theme-glow);
  transform: translateY(-1px);
}
.chapter-action-btn.is-primary {
  background: linear-gradient(135deg, var(--theme-primary) 0%, #0082d8 100%);
  color: #030d19;
  border-color: rgba(255, 255, 255, 0.36);
}
.chapter-action-btn.is-aurora-rim {
  position: relative;
  background: linear-gradient(135deg, #7ef3ff 0%, #38f5c8 50%, #ffd88a 100%);
  color: #030a16;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 28px rgba(56, 245, 200, 0.30),
    0 0 26px rgba(80, 220, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.chapter-action-btn.is-aurora-rim::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  padding: 1.5px;
  background: linear-gradient(115deg, #50dcff, #38f5c8, #d17aff, #ffd88a, #50dcff);
  background-size: 240% 240%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
  animation: auroraRimShift 5.5s linear infinite;
}
.chapter-action-btn.is-aurora-rim:hover {
  background: linear-gradient(135deg, #98f7ff 0%, #52ffd6 50%, #ffe3a6 100%);
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(56, 245, 200, 0.44),
    0 0 34px rgba(255, 216, 138, 0.38);
}
.chapter-action-btn.is-aurora-rim[aria-pressed="true"] {
  background: linear-gradient(135deg, #ff6ba8 0%, #ffd88a 100%);
  color: #04070f;
}
@keyframes auroraRimShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   7. LIVE COMPANION AI SIMULATOR & ANDROID WHATSAPP PHONE AGENT HUD
   ========================================================================== */
#companions {
  padding: 14px 20px;
}
#companions .chapter-header-meta { margin-bottom: 6px; }
#companions .chapter-title { font-size: clamp(1.32rem, 1.8vw, 1.76rem); margin-bottom: 6px; }

.companion-tabs-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}
.companion-pill-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 13, 25, 0.76);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: all 0.2s ease;
}
.companion-pill-btn small { font-family: var(--font-mono); font-size: 0.6rem; opacity: 0.75; }
.companion-pill-btn.active-girl, .companion-pill-btn:hover {
  color: var(--text-main);
  border-color: var(--theme-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px var(--theme-glow);
}

.sim-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.sim-identity { display: flex; align-items: center; gap: 8px; }
.sim-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-primary), rgba(255, 255, 255, 0.18));
  color: #040914;
  font-weight: 900;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-identity h3 { font-size: 0.94rem; font-weight: 800; line-height: 1.15; }
.sim-voice-tag { font-family: var(--font-mono); font-size: 0.63rem; color: var(--theme-primary); }

.sim-expression-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-highlight);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--theme-secondary);
}
.expr-dot { width: 6px; height: 6px; border-radius: 50%; background: #38f5c8; box-shadow: 0 0 8px #38f5c8; }

.sim-dialogue-box {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(4, 8, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 7px;
}
.sim-dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--theme-primary);
  margin-bottom: 4px;
}
.sim-chat-log { max-height: 86px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.chat-msg { padding: 5px 8px; border-radius: 8px; font-size: 0.77rem; line-height: 1.34; }
.chat-user { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.chat-ai { background: rgba(80, 220, 255, 0.09); border-left: 3px solid var(--theme-primary); color: var(--text-main); }
.chat-author { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; color: var(--theme-primary); text-transform: uppercase; }

.sim-kettle-progress {
  margin-top: 6px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 173, 66, 0.12);
  border: 1px solid rgba(255, 173, 66, 0.38);
}
.kettle-progress-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: #ffd88a; margin-bottom: 4px; }
.kettle-bar-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.kettle-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffad42, #ff5e3a); }

.sim-command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.sim-cmd-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 17, 32, 0.82);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.sim-cmd-pill:hover, .sim-cmd-pill.active {
  border-color: var(--theme-primary);
  background: rgba(80, 220, 255, 0.15);
  box-shadow: 0 0 16px var(--theme-glow);
}

/* Compact Android WhatsApp Phone Agent Drawer inside Companion Card */
.phone-agent-hud {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 13px;
  background: rgba(5, 9, 18, 0.9);
  border: 1px solid rgba(56, 245, 200, 0.4);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8px;
}
.phone-device-frame {
  border-radius: 12px;
  background: #070d19;
  border: 1.5px solid rgba(126, 243, 255, 0.35);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.phone-notch-bar { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-muted); }
.phone-agent-status { color: #38f5c8; font-weight: 700; }
.phone-app-header { display: flex; align-items: center; gap: 6px; }
.phone-wa-icon { width: 19px; height: 19px; border-radius: 5px; background: #25d366; color: #04140a; font-weight: 900; font-size: 0.58rem; display: flex; align-items: center; justify-content: center; }
.phone-app-header strong { font-size: 0.68rem; display: block; }
.phone-app-header small { font-size: 0.54rem; color: var(--text-dim); display: block; }
.phone-messages-area { display: flex; flex-direction: column; gap: 3px; max-height: 58px; overflow-y: auto; }
.wa-bubble { padding: 4px 6px; border-radius: 7px; font-size: 0.64rem; line-height: 1.24; }
.wa-in { background: rgba(255, 255, 255, 0.08); align-self: flex-start; }
.wa-in span { display: block; font-size: 0.56rem; font-weight: 700; color: var(--theme-primary); }
.wa-out { background: rgba(37, 211, 102, 0.24); border: 1px solid rgba(37, 211, 102, 0.5); align-self: flex-end; }
.wa-bubble time { display: block; font-size: 0.52rem; color: var(--text-dim); text-align: right; }
.phone-composer-bar { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); }
.phone-draft-field { flex: 1; font-size: 0.63rem; color: var(--text-main); }
.phone-send-btn { border: none; background: var(--theme-primary); color: #030914; font-size: 0.58rem; font-weight: 800; padding: 2px 6px; border-radius: 5px; }

.phone-steps-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.phone-step { padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; }
.phone-step.is-running { border-color: var(--theme-primary); }
.phone-step.is-done { border-color: rgba(56, 245, 200, 0.45); background: rgba(56, 245, 200, 0.09); }
.step-state { font-family: var(--font-mono); font-size: 0.56rem; font-weight: 700; color: var(--text-dim); }
.phone-step.is-done .step-state { color: #38f5c8; }

/* ==========================================================================
   8. "BUILT FOR REAL-TIME" 5-PILLAR RISING OBSIDIAN MONOLITH EQUALIZER
   ========================================================================== */
.monolith-spec-box {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(4, 8, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 11px;
}
.monolith-spec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.monolith-spec-index { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 800; color: var(--theme-primary); letter-spacing: 0.12em; }
.monolith-scene-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--theme-secondary);
  letter-spacing: 0.06em;
}
.monolith-spec-box h3 { font-size: 1.06rem; font-weight: 800; margin: 2px 0 4px; }
.monolith-spec-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.44; }

.monolith-equalizer-arena {
  height: 175px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  padding: 10px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 12px;
}
.monolith-bar {
  --bar-h: 56%;
  --bar-accent: #50dcff;
  appearance: none;
  position: relative;
  height: var(--bar-h);
  min-height: 76px;
  border-radius: 13px 13px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--bar-accent);
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.92) 0%, rgba(6, 10, 20, 0.96) 100%);
  color: var(--text-main);
  font-family: inherit;
  padding: 7px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: height 0.5s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}
.monolith-bar:hover, .monolith-bar.is-active {
  border-color: var(--bar-accent);
  box-shadow: 0 -10px 28px rgba(80, 220, 255, 0.28);
}
.monolith-num { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 800; color: var(--bar-accent); }
.monolith-label-wrap { display: flex; flex-direction: column; gap: 2px; }
.monolith-bar strong { font-size: 0.71rem; font-weight: 800; line-height: 1.15; display: block; }
.monolith-scene-hint { font-family: var(--font-mono); font-size: 0.56rem; font-weight: 600; color: var(--text-muted); line-height: 1.15; display: block; }

.monolith-dock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.monolith-icon-dock { display: flex; gap: 6px; }
.monolith-dock-icon {
  appearance: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.monolith-dock-icon.is-active, .monolith-dock-icon:hover {
  border-color: var(--theme-primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 14px var(--theme-glow);
}

/* ==========================================================================
   9. OFFICIAL @r_project.ai LIVE-MIRRORED 9:16 TIKTOK REEL & SOCIAL BENTO
   ========================================================================== */
.tiktok-bento-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
}
.tiktok-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 80, 0.18);
  border: 1px solid rgba(255, 0, 80, 0.48);
  color: #ff6ba8;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tiktok-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff2a70; box-shadow: 0 0 8px #ff2a70; }

.tiktok-reel-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.reel-tab-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 15, 28, 0.84);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.reel-tab-btn.active, .reel-tab-btn:hover {
  color: #04101c;
  background: #00f2ea;
  border-color: #00f2ea;
}

.btn-tiktok-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.35);
}

.tiktok-phone-preview {
  position: relative;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 9 / 15.2;
  margin-inline: auto;
  border-radius: 22px;
  background: #050914;
  border: 2px solid rgba(0, 242, 234, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 242, 234, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#tiktok-reel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tiktok-phone-top, .tiktok-phone-bottom { position: relative; z-index: 2; padding: 9px 11px; }
.tiktok-phone-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.86), transparent);
}
.tiktok-phone-bottom { background: linear-gradient(0deg, rgba(4, 7, 15, 0.94) 15%, transparent); }
.tiktok-phone-handle { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; color: #00f2ea; display: block; }
.tiktok-phone-caption { font-size: 0.67rem; color: var(--text-main); line-height: 1.3; }

.social-contact-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   10. PRIMLAND BOTTOM FLOATING DRONE SCRUB & FLIGHT BAR (#drone-scrub-bar)
   ========================================================================== */
.drone-scrub-bar {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(1040px, calc(100vw - 20px));
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.82);
  -webkit-backdrop-filter: var(--hud-blur);
  backdrop-filter: var(--hud-blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.75), 0 0 26px var(--theme-glow);
}

.scrub-world-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 2px;
}
.scrub-world-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}
.scrub-world-btn.active {
  background: var(--theme-primary);
  color: #030914;
  box-shadow: 0 2px 14px var(--theme-glow);
}

.scrub-track-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: clamp(160px, 20vw, 270px);
}
.scrub-wp-readout {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.scrub-wp-readout span { color: var(--theme-primary); }

.drone-flight-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 72px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--theme-primary) 0%,
    var(--theme-primary) calc(var(--drone-progress, 0) * 100%),
    rgba(255, 255, 255, 0.18) calc(var(--drone-progress, 0) * 100%),
    rgba(255, 255, 255, 0.18) 100%
  );
  cursor: pointer;
}
.drone-flight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--theme-primary);
  box-shadow: 0 0 12px var(--theme-primary);
  cursor: grab;
}

.scrub-controls-right { display: inline-flex; align-items: center; gap: 5px; }
.scrub-icon-btn {
  appearance: none;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scrub-icon-btn:hover, .scrub-icon-btn[aria-pressed="true"] {
  background: var(--theme-primary);
  color: #030914;
  border-color: var(--theme-primary);
}
.scrub-presentation-btn {
  border-color: rgba(56, 245, 200, 0.42);
  background: rgba(56, 245, 200, 0.11);
  color: #8bfce2;
}
.scrub-presentation-btn.is-presenting,
.scrub-presentation-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #38f5c8 0%, #50dcff 100%);
  color: #030914;
  border-color: #7ef3ff;
  box-shadow: 0 0 18px rgba(56, 245, 200, 0.40);
}
.scrub-quality-btn {
  letter-spacing: 0.06em;
  padding: 0 9px;
}
.scrub-quality-btn[data-quality="cinema"] {
  border-color: rgba(255, 216, 138, 0.72);
  background: linear-gradient(135deg, rgba(255, 216, 138, 0.24) 0%, rgba(209, 122, 255, 0.20) 52%, rgba(80, 220, 255, 0.22) 100%);
  color: #ffe8a8;
  text-shadow: 0 0 10px rgba(255, 216, 138, 0.55);
  box-shadow: 0 0 14px rgba(255, 216, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.scrub-quality-btn[data-quality="cinema"]:hover {
  background: linear-gradient(135deg, #ffd88a 0%, #ffad42 55%, #7ef3ff 100%);
  color: #04070f;
  text-shadow: none;
  border-color: #ffe8a8;
}
.scrub-quality-btn[data-quality="ultra"] {
  border-color: rgba(56, 245, 200, 0.45);
  color: #38f5c8;
}
.scrub-quality-btn[data-quality="high"] {
  border-color: rgba(80, 220, 255, 0.35);
  color: var(--theme-primary);
}
.scrub-quality-btn[data-quality="low"] {
  border-color: rgba(255, 216, 138, 0.42);
  color: #ffd88a;
}
.scrub-quality-btn:hover {
  color: #030914;
}

/* ==========================================================================
   10B. FLOATING OBSIDIAN GLASS PRESENTATION DIRECTOR HUD (#presentation-hud)
   ========================================================================== */
.presentation-hud {
  position: fixed;
  bottom: calc(max(14px, env(safe-area-inset-bottom, 14px)) + 68px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  width: min(940px, calc(100vw - 24px));
  padding: 10px 14px 12px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(8, 13, 26, 0.90) 0%, rgba(4, 7, 15, 0.82) 100%);
  -webkit-backdrop-filter: var(--hud-blur);
  backdrop-filter: var(--hud-blur);
  border: 1px solid rgba(126, 243, 255, 0.34);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.78),
    0 0 30px var(--theme-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  pointer-events: auto;
  animation: presHudReveal 0.36s var(--ease-expo);
}
@keyframes presHudReveal {
  from { opacity: 0.85; transform: translateX(-50%) translateY(-4px) scale(0.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.pres-hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pres-hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.pres-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(56, 245, 200, 0.14);
  border: 1px solid rgba(56, 245, 200, 0.48);
  color: #7ef3ff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.pres-live-badge.is-paused {
  background: rgba(255, 216, 138, 0.14);
  border-color: rgba(255, 216, 138, 0.50);
  color: #ffd88a;
}

.pres-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38f5c8;
  box-shadow: 0 0 10px #38f5c8;
  animation: presLivePulse 1.6s ease-in-out infinite;
}
.pres-live-badge.is-paused .pres-live-dot {
  background: #ffd88a;
  box-shadow: 0 0 8px #ffd88a;
  animation: none;
}
@keyframes presLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.42); opacity: 0.52; }
}

.pres-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pres-title {
  font-family: var(--font-display);
  font-size: 0.90rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-main);
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-subtitle {
  font-size: 0.77rem;
  color: rgba(215, 226, 246, 0.86);
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pres-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pres-ctrl-btn {
  appearance: none;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pres-ctrl-btn:hover,
.pres-ctrl-btn[aria-pressed="true"] {
  background: var(--theme-primary);
  color: #030914;
  border-color: var(--theme-primary);
  box-shadow: 0 0 16px var(--theme-glow);
}
.pres-ctrl-btn--stop {
  background: rgba(255, 107, 168, 0.12);
  border-color: rgba(255, 107, 168, 0.42);
  color: #ffc1da;
}
.pres-ctrl-btn--stop:hover {
  background: #ff6ba8;
  color: #04070f;
  border-color: #ff9bc4;
  box-shadow: 0 0 18px rgba(255, 107, 168, 0.42);
}

.pres-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.pres-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38f5c8 0%, var(--theme-primary) 54%, var(--theme-secondary) 100%);
  box-shadow: 0 0 12px var(--theme-primary);
  transition: width 0.18s linear;
}

/* Global Toast Notification */
.riko-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 400;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(6, 12, 24, 0.94);
  border: 1px solid #38f5c8;
  color: #38f5c8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 245, 200, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, bottom 0.3s var(--ease-expo);
}
.riko-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
body.is-presenting .riko-toast { bottom: 152px; }

/* ==========================================================================
   11. MULTI-DEVICE RESPONSIVE BREAKPOINTS (Phones, Tablets, Laptops, 4K)
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-telemetry { display: none; }
}

@media (max-width: 1024px) {
  .drone-glass-card { max-width: 420px; }
  .drone-chapter--right { padding-right: 64px; }
  .scrub-wp-readout { display: none; }
}

@media (max-width: 960px) {
  .brand { white-space: nowrap; font-size: 0.96rem; gap: 8px; }
  .brand-badge { display: none; }
  .nav-cta, .hud-toggle-btn, .sound-toggle-btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 820px) {
  #toggle-pure-drone-btn kbd { display: none; }
  .hud-toggle-btn, .sound-toggle-btn, .nav-cta { padding: 0 11px; font-size: 0.72rem; }
}

@media (max-width: 780px) {
  .vf-telemetry-bar { display: none; }
  .drone-drag-reticle { left: 50%; top: 21%; max-width: calc(100vw - 24px); }
  .reticle-ring-svg { width: 54px; height: 54px; }
  .reticle-hint-pill {
    white-space: normal;
    text-align: center;
    max-width: calc(100vw - 28px);
    font-size: 0.61rem;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    line-height: 1.35;
  }
  .drone-chapter,
  .drone-chapter--left,
  .drone-chapter--right,
  .drone-chapter--bottom-left,
  .drone-chapter--hero-float {
    justify-content: center;
    align-items: flex-end;
    padding: 46dvh 14px 92px;
  }
  .drone-chapter--hero-float { padding-top: 32dvh; }
  .drone-hero-editorial,
  .drone-glass-card,
  .drone-glass-card.drone-glass-card--interactive,
  .drone-glass-card.drone-glass-card--wide {
    max-width: 100%;
    padding: 18px;
    border-radius: 20px;
  }
  body.is-presenting .drone-hero-editorial,
  body.is-presenting .drone-glass-card {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
  }
  .presentation-hud {
    bottom: calc(max(14px, env(safe-area-inset-bottom, 14px)) + 64px);
    width: calc(100vw - 14px);
    padding: 10px 12px 12px;
    border-radius: 16px;
  }
  .pres-hud-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pres-hud-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .pres-title,
  .pres-subtitle {
    white-space: normal;
  }
  .pres-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .pres-ctrl-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.66rem;
    text-align: center;
  }
  body.is-presenting .riko-toast { bottom: 190px; }
  .world-3d-pins-layer { clip-path: inset(0 0 64dvh 0); }
  .drone-waypoint-rail { right: 4px; gap: 2px; padding: 6px 2px; }
  .waypoint-num { display: none; }
  .waypoint-node { min-width: 30px; min-height: 30px; padding: 3px; }
  .drone-scrub-bar { width: calc(100vw - 16px); max-width: calc(100vw - 16px); justify-content: space-between; gap: 6px; padding: 5px 8px; }
  .scrub-wp-readout { display: none; }
  .scrub-track-group { flex: 1; min-width: 56px; }
  .tiktok-bento-inner,
  .phone-agent-hud {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand { white-space: nowrap; font-size: 0.94rem; gap: 7px; }
  .brand-icon { width: 28px; height: 28px; border-radius: 8px; }
  .brand-badge,
  .hud-toggle-label,
  #nav-presentation-btn,
  #toggle-pure-drone-btn,
  #sound-toggle-label,
  #cam-orbit-mode-btn,
  #cam-auto-flight-btn,
  #cam-zoom-out,
  #cam-zoom-in,
  #hud-quality-btn,
  .scrub-world-extra {
    display: none;
  }
  .nav-links { gap: 6px; }
  .sound-toggle-btn { min-height: 36px; min-width: 36px; padding: 0 10px; }
  .nav-cta { min-height: 36px; padding: 0 11px; font-size: 0.74rem; white-space: nowrap; }
  .scrub-world-switch { flex-shrink: 0; padding: 2px; gap: 2px; }
  .scrub-world-btn { min-height: 30px; padding: 0 8px; font-size: 0.62rem; }
  .scrub-icon-btn { min-width: 28px; min-height: 30px; padding: 0 8px; font-size: 0.62rem; }
  .scrub-controls-right { gap: 4px; flex-shrink: 0; }
  .scrub-track-group { flex: 1 1 40px; min-width: 40px; }
  .drone-scrub-bar { width: calc(100vw - 12px); max-width: calc(100vw - 12px); gap: 5px; padding: 4px 7px; overflow: hidden; }
  .drone-hero-editorial { padding: 16px; }
  .drone-hero-editorial .eyebrow { font-size: 0.6rem; padding: 4px 10px; margin-bottom: 10px; }
  .drone-hero-title { font-size: clamp(1.48rem, 6.2vw, 1.95rem); margin-bottom: 9px; }
  .drone-hero-sub { font-size: 0.82rem; line-height: 1.46; margin-bottom: 12px; }
  .drone-hero-editorial .chapter-action-btn { min-height: 36px; padding: 0 11px; font-size: 0.72rem; }
}

@media (max-width: 520px) {
  .companion-tabs-mini { grid-template-columns: repeat(2, 1fr); }
  .sim-command-grid { grid-template-columns: 1fr; }
  .gate-hud-corners { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pres-live-dot,
  .chapter-action-btn.is-aurora-rim::after,
  .pin-dot-pulse,
  .reticle-circle-outer {
    animation: none !important;
  }
}
