:root {
  --bg-deep: #06080e;
  --panel-bg: rgba(10, 14, 24, 0.76);
  --panel-bg-strong: rgba(10, 14, 24, 0.9);
  --panel-border: rgba(235, 188, 118, 0.22);
  --panel-border-soft: rgba(255, 255, 255, 0.1);
  --amber: #f0b35a;
  --amber-bright: #ffd28a;
  --cyan-flux: #6ec8f5;
  --jade: #6fd8a5;
  --text-main: #f3efe6;
  --text-muted: rgba(243, 239, 230, 0.68);
  --text-dim: rgba(243, 239, 230, 0.45);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cinematic Letterbox Bars (Approach Mode) */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: 6.5vh;
  background: #020306;
  z-index: 8;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#letterbox-top { top: 0; }
#letterbox-bottom { bottom: 0; }

body.mode-city #letterbox-top { transform: translateY(-100%); }
body.mode-city #letterbox-bottom { transform: translateY(100%); }

body.mode-approach .city-only {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.mode-approach #city-nav {
  opacity: 0;
  pointer-events: none;
}
body.mode-city #approach-ui {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Top Bar */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(4, 6, 11, 0.85) 0%, rgba(4, 6, 11, 0) 100%);
  pointer-events: none;
  transition: padding 0.6s ease;
}

body.mode-approach #top-bar {
  top: 6.5vh;
}

#top-bar > * {
  pointer-events: auto;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spindle-line {
  width: 1.5px;
  height: 30px;
  background: linear-gradient(180deg, var(--cyan-flux), var(--amber));
}
.spindle-node {
  position: absolute;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--amber-bright);
  background: rgba(240, 179, 90, 0.35);
  box-shadow: 0 0 10px rgba(240, 179, 90, 0.65);
}

.brand-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--amber);
}
.brand-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.16em;
  line-height: 1.05;
}

/* City Nav Strip */
#city-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border-soft);
  transition: opacity 0.6s ease;
  max-width: calc(100vw - 410px);
  overflow-x: auto;
  scrollbar-width: none;
}
#city-nav::-webkit-scrollbar { display: none; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0 4px;
  white-space: nowrap;
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
.pill-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}
.nav-pill.active {
  color: #0b0e16;
  background: var(--amber);
  border-color: var(--amber-bright);
  font-weight: 600;
}
.nav-pill.system-pill.active {
  color: #07121b;
  background: var(--cyan-flux);
  border-color: #aee2ff;
}

.utility-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border-soft);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hud-btn:hover {
  border-color: var(--amber);
  background: rgba(24, 30, 48, 0.88);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px var(--jade);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.eq-bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: height 0.2s ease, background 0.2s ease;
}
.audio-btn.playing {
  border-color: rgba(240, 179, 90, 0.55);
}
.audio-btn.playing .eq-bars i {
  background: var(--amber);
  animation: eqPulse 0.9s ease-in-out infinite alternate;
}
.audio-btn.playing .eq-bars i:nth-child(2) { animation-delay: 0.25s; }
.audio-btn.playing .eq-bars i:nth-child(3) { animation-delay: 0.5s; }

@keyframes eqPulse {
  0% { height: 3px; }
  100% { height: 11px; }
}

/* Approach Cinematic UI */
#approach-ui {
  position: fixed;
  inset: 6.5vh 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 44px 22px;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

#approach-chapter-wrap {
  margin-top: 8px;
}
#approach-chapter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-bright);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  min-height: 18px;
}

#approach-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#approach-caption {
  max-width: 760px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fbf7ef;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
  min-height: 42px;
  transition: opacity 0.35s ease;
}

.approach-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(660px, 92vw);
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.approach-progress-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
#approach-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
}

.mono-readout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.skip-btn {
  background: rgba(240, 179, 90, 0.16);
  border: 1px solid rgba(240, 179, 90, 0.55);
  color: var(--amber-bright);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.skip-btn:hover {
  background: var(--amber);
  color: #090c14;
}

/* Glass Panels */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hidden {
  display: none !important;
}

/* Inspector Panel (Right Side) */
#inspector-panel {
  position: fixed;
  top: 66px;
  right: 18px;
  bottom: 92px;
  width: 390px;
  max-width: calc(100vw - 36px);
  z-index: 18;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.35s ease, height 0.3s ease;
}
#inspector-panel.collapsed {
  bottom: auto;
  height: 46px;
}
#inspector-panel.collapsed #inspector-body,
#inspector-panel.collapsed .inspector-sys-strip {
  display: none;
}

.inspector-top-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 15, 0.45);
}
.insp-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.insp-tab.active {
  background: rgba(240, 179, 90, 0.18);
  color: var(--amber-bright);
}

.icon-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}
.icon-close:hover {
  color: var(--text-main);
  border-color: var(--amber);
}

.inspector-sys-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 24, 0.55);
}
.inspector-sys-strip .nav-pill {
  font-size: 10.8px;
  padding: 4px 6px;
  text-align: center;
  border: 1px solid rgba(110, 200, 245, 0.16);
}

#inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 22px;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 179, 90, 0.35) transparent;
}

/* Guide Typography & Telemetry */
.kicker-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.kicker-tag.system-kicker {
  color: var(--cyan-flux);
}

.guide-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 6px;
  color: #fffaf0;
}
.guide-subtitle {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.telemetry-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}
.telemetry-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.telemetry-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber-bright);
  margin-top: 2px;
}

.guide-section {
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.guide-section h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin-bottom: 7px;
}
.guide-section p {
  font-size: 13px;
  line-height: 1.58;
  color: rgba(243, 239, 230, 0.86);
  margin-bottom: 8px;
}
.guide-section p:last-child {
  margin-bottom: 0;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
.ledger-table td {
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ledger-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--amber-bright);
}

.failure-callout {
  background: rgba(226, 98, 75, 0.11);
  border-left: 2.5px solid #e87a5d;
  border-radius: 6px;
  padding: 9px 11px;
  margin-top: 8px;
  font-size: 12.2px;
  line-height: 1.5;
  color: rgba(255, 235, 228, 0.9);
}
.failure-callout strong {
  color: #ff9f84;
}

.inline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.inline-chip {
  background: rgba(110, 200, 245, 0.12);
  border: 1px solid rgba(110, 200, 245, 0.32);
  color: #bce6ff;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.inline-chip:hover {
  background: var(--cyan-flux);
  color: #061019;
}

/* Resident Directory */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
#resident-search, #resident-district-filter {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 7px 10px;
  outline: none;
}
#resident-search:focus, #resident-district-filter:focus {
  border-color: var(--amber);
}
#resident-district-filter option {
  background: #101624;
  color: var(--text-main);
}
.directory-filter-row {
  display: flex;
  gap: 6px;
}
.mini-action-btn {
  white-space: nowrap;
  background: rgba(240, 179, 90, 0.18);
  border: 1px solid rgba(240, 179, 90, 0.45);
  color: var(--amber-bright);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.mini-action-btn:hover {
  background: var(--amber);
  color: #0a0d14;
}

.resident-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resident-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.15s ease;
}
.resident-row:hover, .resident-row.selected {
  border-color: var(--amber);
  background: rgba(240, 179, 90, 0.12);
}
.res-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.res-row-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.res-row-act {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--jade);
  text-align: right;
  max-width: 125px;
}

/* Follow Resident Card (Bottom Left) */
#follow-card {
  position: fixed;
  left: 18px;
  bottom: 92px;
  width: 335px;
  max-width: calc(100vw - 36px);
  z-index: 18;
  border-radius: 15px;
  padding: 14px 16px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
#follow-name {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
}
.sub-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.follow-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(111, 216, 165, 0.1);
  border: 1px solid rgba(111, 216, 165, 0.28);
  margin-bottom: 10px;
}
.activity-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
  flex-shrink: 0;
}
.follow-activity-text {
  font-size: 13px;
  font-weight: 600;
  color: #e9fff3;
}
.mono-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.follow-links {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.mini-link-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.mini-link-btn span {
  display: block;
  color: var(--amber-bright);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-link-btn:hover {
  border-color: var(--amber);
}

.schedule-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 136px;
  overflow-y: auto;
}
.sched-item {
  display: flex;
  justify-content: space-between;
  font-size: 11.2px;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--text-muted);
}
.sched-item.current {
  background: rgba(240, 179, 90, 0.2);
  color: var(--amber-bright);
  font-weight: 600;
}
.sched-item time {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Bottom Clock & Camera Control Bar */
#clock-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 66px;
  z-index: 19;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  transition: opacity 0.45s ease;
}

.clock-transport {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  background: rgba(240, 179, 90, 0.2);
  color: var(--amber-bright);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn:hover {
  background: var(--amber);
  color: #080b12;
}

.speed-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.speed-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.speed-btn.active {
  background: var(--amber);
  color: #090c14;
  font-weight: 600;
}

.clock-readout-block {
  min-width: 148px;
  flex-shrink: 0;
}
.clock-digits {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  color: #fffaf0;
  line-height: 1.05;
}
.clock-phase-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--amber);
  margin-top: 2px;
}

.clock-scrubber-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#clock-slider {
  width: 100%;
  accent-color: var(--amber);
  height: 5px;
  cursor: pointer;
}
.clock-quick-hours {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.clock-quick-hours button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
}
.clock-quick-hours button:hover {
  color: var(--amber-bright);
  background: rgba(255, 255, 255, 0.06);
}

.camera-presets {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cam-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.cam-btn:hover {
  border-color: var(--amber);
  color: var(--text-main);
}

/* Floating 3D District Pins */
#world-labels {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.world-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(240, 179, 90, 0.35);
  color: rgba(255, 250, 240, 0.9);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.world-pin:hover, .world-pin.focused {
  background: rgba(240, 179, 90, 0.92);
  color: #080b12;
  border-color: #ffe3b0;
  font-weight: 600;
}
.world-pin .pin-pop {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.8;
}

/* Hover Tooltip */
#hover-tooltip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 11, 19, 0.92);
  border: 1px solid rgba(240, 179, 90, 0.5);
  font-size: 11.5px;
  color: var(--text-main);
  transform: translate(12px, 12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Boot Veil */
#boot-veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #04060b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
#boot-veil.fade-out {
  opacity: 0;
  pointer-events: none;
}
.boot-inner {
  text-align: center;
}
.boot-spindle {
  width: 2px;
  height: 54px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, transparent, var(--cyan-flux), var(--amber));
}
.boot-title {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 0.24em;
  color: var(--amber-bright);
}
.boot-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 1120px) {
  #city-nav { max-width: calc(100vw - 380px); }
  .clock-quick-hours { display: none; }
  #inspector-panel { width: 340px; }
}
