/* 南北双院 · 360° VR 看房漫游
 * 美学基调：包豪斯极简 + 克制江南新中式（暖石米白 / 深炭灰磨砂玻璃 / 哑光古铜金点缀）
 * 零外部字体/CDN依赖，原生适配微信 WebView、iOS/Android 安全区与桌面宽屏
 */

:root {
  --bg-obsidian: #14161a;
  --glass-bg: rgba(20, 22, 26, 0.64);
  --glass-bg-strong: rgba(20, 22, 26, 0.80);
  --glass-bg-hover: rgba(32, 35, 42, 0.82);
  --glass-border: rgba(244, 239, 230, 0.16);
  --glass-border-strong: rgba(200, 169, 126, 0.56);
  --ink-primary: #f6f2ea;
  --ink-secondary: rgba(246, 242, 234, 0.74);
  --ink-muted: rgba(246, 242, 234, 0.52);
  --brass: #c8a97e;
  --brass-bright: #e3c89e;
  --brass-glow: rgba(200, 169, 126, 0.34);
  --jade-soft: #9bb89e;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-pin: 0 6px 20px rgba(0, 0, 0, 0.42);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-obsidian);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

.wx-share-img {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.app-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-obsidian);
}

/* ==================== Viewport & Renderers ==================== */
.viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.viewport.is-dragging {
  cursor: grabbing;
}

.gl-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* CSS 3D Cube Fallback (for file:// offline double-click or non-WebGL devices) */
.css3d-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 600px;
  background: var(--bg-obsidian);
}

.css3d-camera, .css3d-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.cube-face {
  position: absolute;
  width: 1024px;
  height: 1024px;
  left: -512px;
  top: -512px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: #1c1f24;
}

.cube-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
}

/* ==================== Loading Overlay ==================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #23262d 0%, #131519 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 36px;
}

.loading-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(200, 169, 126, 0.22);
  border-top-color: var(--brass);
  animation: spin 0.9s linear infinite;
}

.loading-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
}

.loading-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Subtle HD upgrade badge */
.hd-badge {
  position: fixed;
  left: 50%;
  top: calc(14px + var(--safe-top));
  transform: translateX(-50%);
  z-index: 30;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 26, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 169, 126, 0.28);
  color: var(--brass-bright);
  font-size: 11px;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ==================== Top HUD ==================== */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + var(--safe-top)) calc(18px + var(--safe-right)) 0 calc(18px + var(--safe-left));
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.app-root.is-immersive .hud-top {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.station-pill {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  max-width: min(360px, 60vw);
}

.station-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.kicker-brand {
  color: var(--brass-bright);
  font-weight: 500;
}

.zone-tag {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(200, 169, 126, 0.16);
  border: 1px solid rgba(200, 169, 126, 0.34);
  color: var(--ink-primary);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.station-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.hud-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.hud-btn:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(246, 242, 234, 0.32);
}

.hud-btn:active {
  transform: scale(0.96);
}

.hud-btn.is-active {
  background: linear-gradient(135deg, rgba(206, 168, 112, 0.96) 0%, rgba(173, 134, 78, 0.96) 100%);
  border-color: rgba(246, 232, 206, 0.78);
  color: #16181c;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(246, 232, 206, 0.25);
}

/* Floating Exit Immersive Button */
.exit-immersive-pill {
  position: fixed;
  top: calc(16px + var(--safe-top));
  right: calc(18px + var(--safe-right));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(20, 22, 26, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.exit-immersive-pill[hidden] {
  display: none;
}

.exit-immersive-pill svg {
  width: 15px;
  height: 15px;
}

.exit-immersive-pill:hover {
  background: var(--glass-bg-strong);
}

/* ==================== 3D Hotspots & Aerial Groups ==================== */
.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.28s ease;
}

.app-root.is-immersive .hotspot-layer,
.app-root.is-immersive .aerial-popover {
  opacity: 0;
  pointer-events: none;
}

.hs-pin {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(246, 242, 234, 0.28);
  background: rgba(20, 22, 26, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-pin);
  transform-origin: center center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform, opacity;
}

.hs-pin:hover {
  background: rgba(28, 31, 38, 0.88);
  border-color: var(--brass);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(200, 169, 126, 0.28);
}

.hs-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfc398 0%, #b59260 100%);
  color: #16181c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hs-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(227, 200, 158, 0.55);
  animation: pulseRing 2.6s ease-out infinite;
}

.hs-dot svg {
  width: 14px;
  height: 14px;
}

.hs-pin.kind-ascend .hs-dot {
  background: linear-gradient(135deg, #f3ede2 0%, #c8a97e 100%);
}

.hs-pin.kind-aerial-group {
  border-color: rgba(200, 169, 126, 0.45);
  background: rgba(20, 22, 26, 0.72);
}

.hs-pin.kind-aerial-group.is-open {
  border-color: var(--brass-bright);
  background: rgba(28, 25, 20, 0.90);
}

.hs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: rgba(200, 169, 126, 0.22);
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 600;
}

@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.75; }
  70% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Aerial Group Anchored Popover */
.aerial-popover {
  position: absolute;
  z-index: 35;
  min-width: 224px;
  max-width: min(286px, calc(100vw - 24px));
  padding: 8px;
  border-radius: var(--radius-card);
  background: rgba(20, 22, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 126, 0.36);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.56);
  pointer-events: auto;
}

.aerial-popover[hidden] {
  display: none;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
  margin-bottom: 6px;
}

.popover-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-bright);
  letter-spacing: 0.06em;
}

.popover-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popover-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-primary);
}

.popover-group-sep {
  font-size: 11px;
  color: var(--ink-muted);
  padding: 6px 8px 3px;
  letter-spacing: 0.05em;
}

.popover-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.popover-item:hover {
  background: rgba(200, 169, 126, 0.16);
  border-color: rgba(200, 169, 126, 0.34);
}

.popover-thumb {
  width: 56px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #23262d;
  border: 1px solid rgba(246, 242, 234, 0.14);
}

.popover-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.popover-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-item-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

/* ==================== Interactive Vector Minimap ==================== */
.minimap-panel {
  position: fixed;
  top: calc(68px + var(--safe-top));
  right: calc(18px + var(--safe-right));
  z-index: 46;
  width: min(320px, calc(100vw - 28px));
  border-radius: 18px;
  background: rgba(20, 22, 26, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(200, 169, 126, 0.32);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.56);
  overflow: hidden;
  animation: fadeSlideIn 0.22s ease;
}

.minimap-panel[hidden] {
  display: none;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.minimap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 10px 14px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
}

.minimap-title-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.minimap-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
}

.minimap-bearing {
  font-size: 11px;
  color: var(--brass-bright);
  letter-spacing: 0.04em;
}

.minimap-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimap-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-primary);
}

.minimap-close svg {
  width: 15px;
  height: 15px;
}

.minimap-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ede8dd;
  overflow: hidden;
}

.minimap-svg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.minimap-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.minimap-fov-wedge {
  fill: url(#fovGrad);
  stroke: rgba(168, 116, 46, 0.85);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.minimap-markers {
  position: absolute;
  inset: 0;
}

.map-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.map-dot:hover {
  z-index: 6;
}

.map-dot-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b3036;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, background 0.18s ease;
}

.map-dot.is-aerial .map-dot-core {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: #3d637a;
}

.map-dot:hover .map-dot-core {
  transform: scale(1.32);
  background: #b5843c;
}

.map-dot.is-aerial:hover .map-dot-core {
  transform: rotate(45deg) scale(1.32);
}

.map-dot.is-current {
  z-index: 5;
}

.map-dot.is-current .map-dot-core {
  width: 13px;
  height: 13px;
  background: #c68b38;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 5px rgba(198, 139, 56, 0.36), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.map-dot-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(20, 22, 26, 0.92);
  border: 1px solid rgba(200, 169, 126, 0.35);
  color: var(--ink-primary);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.map-dot:hover .map-dot-tip {
  opacity: 1;
}

.minimap-compass {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.72);
  border: 1px solid rgba(246, 242, 234, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.compass-n {
  font-size: 10px;
  font-weight: 700;
  color: var(--brass-bright);
  line-height: 1;
}

.compass-arrow {
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 5px solid var(--brass-bright);
}

.minimap-footer {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ink-secondary);
  text-align: center;
  background: rgba(14, 16, 20, 0.6);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  left: 50%;
  top: calc(74px + var(--safe-top));
  transform: translateX(-50%);
  z-index: 44;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 26, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 169, 126, 0.30);
  color: var(--ink-primary);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast[hidden] {
  display: none;
}

.toast.is-fading {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

/* ==================== Bottom Thumbnail Dock ==================== */
.hud-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 calc(12px + var(--safe-right)) calc(14px + var(--safe-bottom)) calc(12px + var(--safe-left));
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.app-root.is-immersive .hud-bottom {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.dock-header-row {
  margin-bottom: 8px;
  pointer-events: auto;
}

.dock-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: background 0.18s ease, color 0.18s ease;
}

.dock-toggle-pill:hover {
  background: var(--glass-bg-hover);
  color: var(--ink-primary);
}

.dock-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.24s ease;
}

.hud-bottom.is-collapsed .dock-chevron {
  transform: rotate(180deg);
}

.dock-tray {
  pointer-events: auto;
  max-width: min(1120px, 100%);
  padding: 8px;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: max-height 0.28s ease, opacity 0.24s ease, padding 0.24s ease, margin 0.24s ease;
  overflow: hidden;
}

.hud-bottom.is-collapsed .dock-tray {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.dock-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 1px;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-card {
  position: relative;
  flex: 0 0 auto;
  width: 102px;
  height: 64px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid rgba(246, 242, 234, 0.16);
  background: #1d2026;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.dock-card:hover {
  border-color: rgba(227, 200, 158, 0.62);
  transform: translateY(-2px);
}

.dock-card.is-active {
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 2px rgba(200, 169, 126, 0.32), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.dock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dock-card:hover img {
  transform: scale(1.05);
}

.dock-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.62) 0%, rgba(14, 16, 20, 0.06) 36%, rgba(14, 16, 20, 0.04) 52%, rgba(14, 16, 20, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px 5px;
  text-align: left;
}

.dock-card-idx {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 234, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.dock-card.is-active .dock-card-idx {
  color: var(--brass-bright);
}

.dock-card-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ==================== Mobile Responsive (<= 640px) ==================== */
@media (max-width: 640px) {
  .hud-top {
    padding: calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) 0 calc(12px + var(--safe-left));
    gap: 8px;
  }

  .station-pill {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: calc(100vw - 188px);
  }

  .station-kicker {
    gap: 5px;
    font-size: 10px;
  }

  .kicker-brand {
    display: none;
  }

  .station-title {
    font-size: 14px;
  }

  .top-actions {
    gap: 6px;
  }

  .hud-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .hud-btn span {
    display: none;
  }

  .hud-btn svg {
    width: 18px;
    height: 18px;
  }

  .minimap-panel {
    top: calc(60px + var(--safe-top));
    right: calc(12px + var(--safe-right));
    width: min(296px, calc(100vw - 24px));
  }

  .dock-card {
    width: 88px;
    height: 58px;
  }

  .dock-card-name {
    font-size: 10.5px;
  }

  .hs-pin {
    font-size: 12px;
    padding: 5px 11px 5px 6px;
    gap: 6px;
  }

  .hs-dot {
    width: 22px;
    height: 22px;
  }

  .toast {
    top: calc(64px + var(--safe-top));
    font-size: 12px;
    padding: 7px 14px;
  }
}
