* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  overflow: hidden;
  background: #060b18;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #020612 0%, #09132a 52%, #11203d 100%);
}

/* ==========================================
   3D 透視飛空艇側邊 YouTube LED 巨幕層
   ========================================== */
#airship-screen-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.airship-billboard {
  position: absolute;
  left: 0;
  top: 0;
  width: 960px;
  height: 540px;
  transform-origin: 0 0;
  will-change: transform, opacity;
  background: #020617;
  border: 4px solid rgba(232, 85, 31, 0.95);
  border-radius: 6px;
  box-shadow:
    0 0 42px rgba(232, 85, 31, 0.72),
    0 0 90px rgba(251, 146, 60, 0.28),
    inset 0 0 16px rgba(232, 85, 31, 0.38);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  backface-visibility: visible;
}

.billboard-header {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 6, 23, 0.72);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.billboard-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.theater-actions,
.theater-hint {
  display: none;
}

.live-pill {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.billboard-title {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.billboard-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.billboard-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
}

.billboard-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ==========================================
   YouTube 放大劇院模式（沿用同一 iframe 不重新載入、不斷音）
   ========================================== */
#airship-screen-stage.theater-open {
  z-index: 60;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top, 14px)) 14px max(14px, env(safe-area-inset-bottom, 14px));
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: theaterFadeIn 0.2s ease-out;
}

@keyframes theaterFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#airship-screen-stage.theater-open .airship-billboard {
  position: relative;
  left: auto;
  top: auto;
  width: min(94vw, 1080px, calc((100vh - 130px) * 16 / 9));
  width: min(94vw, 1080px, calc((100dvh - 130px) * 16 / 9));
  height: auto;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(232, 85, 31, 0.92);
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(232, 85, 31, 0.36);
}

#airship-screen-stage.theater-open .billboard-header {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
  pointer-events: auto;
}

#airship-screen-stage.theater-open .billboard-title {
  font-size: 13.5px;
  color: #f8fafc;
}

#airship-screen-stage.theater-open .theater-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#airship-screen-stage.theater-open .theater-actions button {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

#airship-screen-stage.theater-open .theater-actions button:hover {
  background: rgba(255, 255, 255, 0.22);
}

#airship-screen-stage.theater-open .theater-actions button:active {
  transform: scale(0.96);
}

#airship-screen-stage.theater-open .theater-actions button.active {
  background: rgba(14, 165, 233, 0.35);
  border-color: #38bdf8;
  color: #e0f2fe;
}

#airship-screen-stage.theater-open .theater-actions .theater-close-btn {
  background: rgba(232, 85, 31, 0.88);
  border-color: rgba(251, 146, 60, 0.9);
  color: #ffffff;
}

#airship-screen-stage.theater-open .theater-actions .theater-close-btn:hover {
  background: #ea580c;
}

#airship-screen-stage.theater-open .billboard-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

#airship-screen-stage.theater-open .billboard-frame iframe {
  pointer-events: auto;
}

#airship-screen-stage.theater-open .billboard-scanline {
  display: none;
}

#airship-screen-stage.theater-open .theater-hint {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}


/* 3D 天燈與高空星點畫布 */
#lanterns-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 14;
  pointer-events: none;
}

/* MapLibre 右下角導覽與左下角版權 */
.maplibregl-ctrl-bottom-right {
  bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
  right: 10px !important;
  z-index: 25;
}

.maplibregl-ctrl-bottom-left {
  bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
  left: 10px !important;
  z-index: 25;
}

/* ==========================================
   玻璃擬態卡片與上方控制列
   ========================================== */
.hud-card {
  background: rgba(12, 20, 38, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.top-hud {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: 14px;
  z-index: 30;
  width: min(500px, calc(100vw - 28px));
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stats-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.stat-group {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.stat-divider {
  color: rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  flex-shrink: 0;
}

.live-dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 1.8s infinite;
}

.live-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.stat-label {
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.stat-value {
  font-size: 21px;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-value.star-val {
  color: #facc15;
}

.stat-unit {
  font-size: 12px;
  color: #94a3b8;
}

.hud-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.hud-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.hud-chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.top-hud.collapsed {
  gap: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-hud.collapsed .hud-body {
  display: none;
}

.top-hud.collapsed .hud-chevron {
  transform: rotate(180deg);
}

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

/* 台灣六都切換列 */
.city-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.city-spot-text {
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 700;
}

.city-switcher {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.city-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.city-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.city-btn:active {
  transform: scale(0.95);
}

.city-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.38) 0%, rgba(250, 204, 21, 0.24) 100%);
  border-color: #fb923c;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.32);
}

.city-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fde68a;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}

.action-row {
  display: flex;
  gap: 6px;
}

.action-row button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 7px 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.action-row button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.action-row button:active {
  transform: scale(0.96);
}

.action-row button.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.42) 0%, rgba(56, 189, 248, 0.25) 100%);
  border-color: #38bdf8;
  color: #e0f2fe;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.action-row button.expand-btn {
  background: rgba(232, 85, 31, 0.24);
  border-color: rgba(251, 146, 60, 0.65);
  color: #ffedd5;
}

.action-row button.expand-btn:hover {
  background: rgba(232, 85, 31, 0.42);
}

.action-row button.expand-btn.active {
  background: rgba(232, 85, 31, 0.85);
  border-color: #fb923c;
  color: #ffffff;
}

/* 飛空艇 YouTube 直播網址切換列 */
.stream-form {
  display: flex;
  gap: 6px;
}

.stream-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.stream-form input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.14);
}

.stream-form button {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.stream-form button:hover {
  background: #0284c7;
}

.stream-form button:active {
  transform: scale(0.96);
}

/* ==========================================
   點擊高空星點彈出的天燈留言心願卡
   ========================================== */
.wish-card {
  position: fixed;
  z-index: 45;
  width: min(330px, calc(100vw - 28px));
  background: rgba(10, 17, 34, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 13px 15px 14px;
  color: #f8fafc;
  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.65),
    0 0 28px var(--wish-glow, rgba(255, 107, 53, 0.35));
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  animation: wishPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.wish-card.hidden {
  display: none;
}

@keyframes wishPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wish-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--wish-color, #FF6B35);
  box-shadow: 0 0 14px var(--wish-color, #FF6B35);
}

.wish-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wish-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.wish-color-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wish-color, #FF6B35);
  box-shadow: 0 0 10px var(--wish-color, #FF6B35);
  flex-shrink: 0;
}

.wish-sep {
  opacity: 0.45;
}

.wish-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.wish-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.wish-msg {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  word-break: break-word;
  margin-bottom: 11px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 12.5px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.wish-name {
  color: #fde68a;
  font-weight: 700;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   底部放天燈列＋天燈顏色選擇器
   ========================================== */
.bottom-bar {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 10px 12px;
  width: min(94vw, 600px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.color-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lantern-preview-dot {
  width: 13px;
  height: 16px;
  border-radius: 6px 6px 3px 3px;
  background: radial-gradient(circle at 50% 62%, #fffbeb 0%, var(--preview-color, #FF6B35) 70%);
  box-shadow: 0 0 12px var(--preview-color, #FF6B35);
  display: inline-block;
  flex-shrink: 0;
}

.color-label {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.color-meaning {
  font-size: 11.5px;
  color: #fde68a;
  font-weight: 600;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.swatch {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--sw, #FF6B35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  position: relative;
  flex-shrink: 0;
}

.swatch:hover {
  transform: scale(1.14);
}

.swatch.active {
  border-color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.35), 0 0 14px var(--sw, #FF6B35);
}

.custom-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #38bdf8, #8b5cf6, #ec4899, #ef4444);
  overflow: hidden;
}

.custom-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.custom-swatch-icon {
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.lantern-form {
  display: flex;
  gap: 7px;
}

.lantern-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.lantern-form input::placeholder {
  color: #94a3b8;
}

.lantern-form input:focus {
  border-color: #fb923c;
  background: rgba(255, 255, 255, 0.15);
}

.lantern-form input.input-error {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.18);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
  animation: inputShake 0.34s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

#input-name {
  width: 118px;
  flex-shrink: 0;
}

#input-msg {
  flex: 1;
  min-width: 0;
}

.random-wish-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fef08a;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.random-wish-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.random-wish-btn:active {
  transform: scale(0.94);
}

.launch-btn {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.42);
  transition: filter 0.15s, transform 0.1s;
}

.launch-btn:hover {
  filter: brightness(1.08);
}

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

.hint-text {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   前景小人與地標
   ========================================== */
.person-marker-root {
  pointer-events: none;
  will-change: transform;
}

.person-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person-svg {
  width: 32px;
  height: 42px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
  animation: gentleBounce 2s ease-in-out infinite;
}

.self-ring {
  position: absolute;
  bottom: -4px;
  width: 26px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #facc15;
  background: rgba(250, 204, 21, 0.24);
  animation: ringPulse 2s infinite;
  z-index: -1;
}

.self-tag {
  position: absolute;
  top: 100%;
  margin-top: 3px;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.person-svg-other {
  width: 24px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.other-shadow {
  position: absolute;
  bottom: -2px;
  width: 15px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 200, 120, 0.3);
  filter: blur(2px);
  z-index: -1;
}

.landmark-label {
  background: rgba(10, 17, 34, 0.84);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.48); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* ==========================================
   手機版響應式微調
   ========================================== */
@media (max-width: 640px) {
  .top-hud {
    top: max(8px, env(safe-area-inset-top, 8px));
    left: 10px;
    right: 10px;
    width: auto;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .stats-inline {
    gap: 5px;
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .stat-label,
  .stat-unit {
    font-size: 11.5px;
  }

  .stat-value {
    font-size: 17px;
  }

  .city-switcher {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .city-btn {
    flex-direction: row;
    gap: 5px;
    padding: 6px 4px;
    font-size: 12.5px;
  }

  .action-row button {
    font-size: 12px;
    padding: 6px 4px;
  }

  .bottom-bar {
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    width: calc(100vw - 20px);
    padding: 8px 10px;
    border-radius: 13px;
    gap: 7px;
  }

  .color-picker-row {
    gap: 6px;
  }

  .swatch {
    width: 22px;
    height: 22px;
  }

  #airship-screen-stage.theater-open {
    padding: max(10px, env(safe-area-inset-top, 10px)) 8px max(10px, env(safe-area-inset-bottom, 10px));
  }

  #airship-screen-stage.theater-open .airship-billboard {
    width: min(96vw, calc((100vh - 110px) * 16 / 9));
    width: min(96vw, calc((100dvh - 110px) * 16 / 9));
    border-radius: 12px;
  }

  #airship-screen-stage.theater-open .billboard-header {
    padding: 8px 10px;
  }

  #airship-screen-stage.theater-open .billboard-title {
    font-size: 12px;
  }

  #airship-screen-stage.theater-open .theater-actions {
    gap: 6px;
  }

  #airship-screen-stage.theater-open .theater-actions button {
    padding: 5px 9px;
    font-size: 11.5px;
  }

  .stream-form input,
  .lantern-form input {
    font-size: 16px;
    padding: 6px 9px;
  }

  .stream-form button {
    padding: 6px 12px;
    font-size: 13px;
  }

  #input-name {
    width: 88px;
  }

  .launch-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hint-text {
    font-size: 10.5px;
  }

  .maplibregl-ctrl-bottom-right,
  .maplibregl-ctrl-bottom-left {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
