/* Vector Lock - 電腦大螢幕靶場樣式 */
:root {
  --primary: #00f2fe;
  --secondary: #4facfe;
  --accent: #ff0055;
  --gold: #ffd700;
  --bg: #070913;
  --panel: rgba(13, 17, 30, 0.88);
  --border: rgba(0, 242, 254, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Outfit', sans-serif;
  background-color: var(--bg);
  color: #fff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* 主遊戲畫布 */
#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: crosshair;
}

/* 遊戲 UI 覆蓋層 */
.ui-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
}

/* 頂部 HUD 面板 (極簡乾淨核心架構) */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: auto;
  width: 100%;
}

/* 頂部 HUD 模式容器 */
.hud-mode-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 雙人對抗模式 HUD */
.hud-mode-container.dual-mode {
  align-items: flex-start;
  gap: 20px;
}

.hud-player-pod {
  background: rgba(13, 17, 30, 0.82);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 8px 16px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.hud-player-pod.p1-pod {
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 242, 254, 0.08);
}

.hud-player-pod.p2-pod {
  border: 1.5px solid rgba(255, 59, 48, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 59, 48, 0.08);
}

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

.pod-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.p1-tag {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.p2-tag {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
}

.pod-score {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.p1-score {
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.p2-score {
  color: #ff3b30;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

.pod-combo {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
}

.pod-weapon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.pod-ammo-digits {
  font-family: monospace;
  font-size: 12px;
  color: #94a3b8;
}

.pod-bullet-rack {
  min-height: 24px;
  gap: 2px;
}

.pod-bullet-rack .bullet-slot {
  transform: scale(0.85);
  transform-origin: center center;
}

/* 中央對抗計時器 */
.hud-vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(13, 17, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 6px 18px;
  backdrop-filter: blur(10px);
}

.vs-time-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vs-time-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 1px;
}

.vs-time-val {
  font-size: 24px;
  font-weight: 900;
  color: #ff3b30;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
  min-width: 48px;
  text-align: center;
}

.vs-status-pill {
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

/* 左側三大核心數據卡片 */
.hud-stats-group {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13, 17, 30, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 242, 254, 0.08);
  border-radius: 16px;
  padding: 10px 22px;
  backdrop-filter: blur(12px);
}

.hud-stat-item {
  display: flex;
  flex-direction: column;
}

.hud-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hud-stat-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.1;
}

.hud-stat-value.score {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.hud-stat-value.time {
  color: #ff3b30;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
  min-width: 55px;
}

.hud-stat-value.combo {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* 右側大武器展示特寫區 (大武器圖 + 真實子彈排開槽) */
.hud-weapon-showcase {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 17, 30, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 242, 254, 0.1);
  border-radius: 18px;
  padding: 8px 18px;
  backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-weapon-showcase:hover {
  transform: translateY(-2px);
  background: rgba(13, 17, 30, 0.95);
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.25);
}

/* 大武器立繪向量容器 */
.weapon-art-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  max-width: 125px;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.35));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.weapon-big-art {
  width: 120px;
  height: 52px;
  object-fit: contain;
}

.hud-weapon-showcase:hover .weapon-art-box {
  transform: scale(1.05);
}

.weapon-meta-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weapon-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weapon-name-display {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.weapon-badge-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
}

.weapon-ammo-digits {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  font-family: monospace;
}

/* 真實子彈排列槽 (Real Bullet Chamber) */
.weapon-bullet-rack {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
}

.bullet-art {
  display: inline-block;
  transition: transform 0.12s ease, opacity 0.15s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* 右上角連線狀態與按鍵面板 */
.connection-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-toggle-qr {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.1) 100%);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.btn-toggle-qr:hover {
  background: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
}

.btn-mode-switch {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mode-switch.active {
  background: rgba(0, 242, 254, 0.2);
  color: var(--primary);
  border-color: var(--primary);
}

/* 冰凍子彈時間邊框效果 */
.freeze-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(90, 200, 250, 0.55);
  border: 8px solid rgba(90, 200, 250, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
}

.freeze-overlay.active {
  opacity: 1;
}

/* 遊戲開始/結算浮動模態視窗 (Lobby & Game Over) */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 19, 0.82);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-card {
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.95) 0%, rgba(9, 12, 22, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.2);
  border-radius: 24px;
  padding: 36px 48px;
  max-width: 680px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-title {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* QR Code 連線展示區 */
.qr-connection-box {
  display: flex;
  background: rgba(0, 242, 254, 0.04);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  border-radius: 16px;
  padding: 20px;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.qr-image-wrapper {
  background: #070b19;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.qr-image-wrapper img {
  width: 170px;
  height: 170px;
  display: block;
}

.qr-instructions {
  flex: 1;
  min-width: 0; /* 長網址不換行，不能把這一欄撐寬 */
  text-align: left;
}

.qr-step {
  margin-bottom: 12px;
  font-size: 14px;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.qr-step-num {
  background: var(--primary);
  color: #05070e;
  font-weight: 900;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.room-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 3px;
  margin-top: 6px;
}

/* 遊戲開始按鈕 */
.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary-action {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #05070e;
  font-size: 18px;
  font-weight: 900;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 1.5px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  transition: all 0.2s;
}

.btn-primary-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.8);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 結算分數面板 (Game Over Summary) */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.summary-card-title {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.summary-card-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

/* 關閉按鈕 */
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

/* ========================================================
   武器軍械庫切換列 (Weapon Arsenal Bar)
   ======================================================== */
.hud-ammo-count-label {
  font-size: 13px;
  font-family: 'Outfit', monospace;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.hud-weapon-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 5px 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.weapon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.weapon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.weapon-key {
  font-size: 11px;
  font-family: monospace;
  color: #64748b;
  font-weight: 700;
}

.weapon-icon {
  font-size: 16px;
}

.weapon-name {
  font-size: 13px;
  font-weight: 700;
}

.weapon-badge {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.weapon-badge.auto {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.weapon-badge.aoe {
  background: rgba(255, 149, 0, 0.15);
  color: #ff9500;
}

.weapon-badge.pierce {
  background: rgba(191, 90, 242, 0.15);
  color: #bf5af2;
}

/* 啟動選中高亮態 */
.weapon-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
  transform: scale(1.03);
}

.weapon-btn.active[data-weapon="smg"] {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.4);
}

.weapon-btn.active[data-weapon="shotgun"] {
  background: rgba(255, 149, 0, 0.15);
  border-color: #ff9500;
  box-shadow: 0 0 14px rgba(255, 149, 0, 0.4);
}

.weapon-btn.active[data-weapon="railgun"] {
  background: rgba(191, 90, 242, 0.15);
  border-color: #bf5af2;
  box-shadow: 0 0 14px rgba(191, 90, 242, 0.4);
}

/* ========================================================
   右下角極簡設置按鈕與面板 (Settings FAB & Modal)
   ======================================================== */
.fab-settings-wrapper {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 100;
  pointer-events: auto;
}

.btn-settings-fab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 6px 10px;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  opacity: 0.3;
}

.btn-settings-fab:hover {
  background: rgba(13, 17, 30, 0.95);
  color: #ffffff;
  border-color: rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.25);
  opacity: 1;
}

.gear-icon {
  color: #00f2fe;
  transition: transform 0.4s ease;
  width: 16px;
  height: 16px;
}

.btn-settings-fab:hover .gear-icon {
  transform: rotate(90deg);
}

.fab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  display: inline-block;
  transition: background 0.3s;
}

.fab-dot.connected {
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
}

/* 設置彈窗 Backdrop & Card */
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 24px;
  pointer-events: auto;
}

.settings-modal-card {
  width: 360px;
  background: rgba(13, 17, 30, 0.96);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 0 18px rgba(0, 242, 254, 0.1);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideInFab 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInFab {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.sm-title {
  font-size: 15px;
  font-weight: 800;
  color: #00f2fe;
  letter-spacing: 0.5px;
}

.sm-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.sm-close-btn:hover {
  color: #fff;
}

.sm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-sec-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.sm-phone-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.sm-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-choice-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.sm-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sm-choice-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.sm-choice-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: dashed;
}

.sm-action-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.sm-action-btn:hover {
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* 大廳難度選擇標籤 (Difficulty Chips) */
.diff-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.diff-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.diff-chip.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.diff-chip.active[data-diff="hard"] {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.diff-chip.active[data-diff="hell"] {
  background: rgba(255, 59, 48, 0.15);
  border-color: #ff3b30;
  color: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

/* ===== 雙人對抗模式 HUD (2-Player VS HUD) ===== */
.hud-mode-container.dual-mode {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  pointer-events: none;
}

.hud-player-pod {
  pointer-events: auto;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 10px 18px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
}

.hud-player-pod.p1-pod {
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 242, 254, 0.15);
}

.hud-player-pod.p2-pod {
  border: 1.5px solid rgba(255, 59, 48, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 59, 48, 0.15);
}

.pod-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.p2-pod .pod-header {
  justify-content: flex-end;
}

.pod-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.p1-tag {
  background: rgba(0, 242, 254, 0.2);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.5);
}

.p2-tag {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.5);
}

.pod-score {
  font-size: 30px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.p1-score {
  color: #00f2fe;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.5);
}

.p2-score {
  color: #ff3b30;
  text-shadow: 0 0 14px rgba(255, 59, 48, 0.5);
}

.pod-combo {
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
}

.pod-weapon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.pod-weapon-name {
  font-weight: 800;
  color: #cbd5e1;
}

.pod-ammo-digits {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.pod-bullet-rack {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 4px;
  height: 10px;
}

.mini-pip {
  width: 5px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
}

.p1-pod .mini-pip.loaded {
  background: #00f2fe;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.6);
}

.p2-pod .mini-pip.loaded {
  background: #ff3b30;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.6);
}

/* 中央對決計時器與領先標籤 (VS Center) */
.hud-vs-center {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(10, 15, 29, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 6px 18px;
}

.vs-time-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vs-time-label {
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 1px;
}

.vs-time-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.vs-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  white-space: nowrap;
}

/* ===== 大型街機劇情與電影轉場 (Arcade Cinematic Styles) ===== */
.arcade-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

/* 1. 電影寬螢幕黑邊 (Cinematic Letterbox) */
.cinematic-bar {
  position: absolute;
  left: 0;
  right: 0;
  background: #000000;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.cinematic-bar.top {
  top: 0;
  height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cinematic-bar.bottom {
  bottom: 0;
  height: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2. 無線電打字傳輸盒 (Radio Box) */
.arcade-radio-box {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90vw);
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.2);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 60;
  animation: radioPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes radioPop {
  from { opacity: 0; transform: translate(-50%, 20px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.radio-avatar-frame {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1.5px solid #00f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
}

.radio-avatar-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
  animation: scanLine 1.4s ease-in-out infinite alternate;
}

@keyframes scanLine {
  from { top: 0%; }
  to { top: 92%; }
}

.radio-signal-bars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 5px;
}

.radio-signal-bars span {
  width: 3px;
  height: 10px;
  background: #00ff88;
  border-radius: 1px;
  animation: signalJump 0.6s infinite alternate;
}
.radio-signal-bars span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.radio-signal-bars span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.radio-signal-bars span:nth-child(4) { height: 16px; animation-delay: 0.45s; }

@keyframes signalJump {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.radio-content-col {
  flex: 1;
}

.radio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.radio-sender {
  font-size: 13px;
  font-weight: 900;
  color: #00f2fe;
  letter-spacing: 1px;
}

.radio-freq {
  font-size: 11px;
  font-family: monospace;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.radio-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  min-height: 44px;
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  letter-spacing: 0.5px;
}

/* 3. 街機衝擊大字橫幅 (Arcade Banner) */
.arcade-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) skewX(-5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 70;
  pointer-events: none;
}

.arcade-banner.animate-in {
  animation: bannerImpact 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.arcade-banner.animate-out {
  animation: bannerSlideOut 0.35s ease-in forwards;
}

@keyframes bannerImpact {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2) skewX(-15deg); filter: blur(10px); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(0.95) skewX(-3deg); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) skewX(-5deg); }
}

@keyframes bannerSlideOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-30%, -50%) scale(1.1) skewX(-10deg); filter: blur(8px); }
}

.banner-sub {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
  margin-bottom: 2px;
}

.banner-main {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #ffd700 60%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
  letter-spacing: 4px;
  line-height: 1;
}

.banner-desc {
  font-size: 16px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 10px;
  letter-spacing: 2px;
}

/* 4. BOSS 警報全螢幕警示層 (Warning Siren) */
.arcade-warning-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 55;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.25) 0%, rgba(255, 0, 50, 0.4) 100%);
}

.arcade-warning-overlay.warning-flash {
  animation: warningFlash 0.5s infinite alternate;
}

@keyframes warningFlash {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.warning-tape {
  width: 100%;
  background: #ffcc00;
  color: #000000;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 3px;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

.warning-center-box {
  text-align: center;
}

.warning-title {
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 900;
  color: #ff3b30;
  text-shadow: 0 0 40px #ff3b30;
  letter-spacing: 6px;
  animation: pulseScale 0.4s infinite alternate;
}

@keyframes pulseScale {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.warning-sub {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
}

.warning-desc {
  font-size: 13px;
  font-family: monospace;
  color: #ffcc00;
  letter-spacing: 3px;
  margin-top: 8px;
}

/* 5. BOSS 戰血條 (Boss Bar) */
.arcade-boss-bar {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: min(650px, 85vw);
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 59, 48, 0.5);
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.25);
  border-radius: 12px;
  padding: 8px 16px;
  z-index: 60;
  animation: dropIn 0.4s ease-out;
}

@keyframes dropIn {
  from { transform: translate(-50%, -30px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.boss-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.boss-name {
  color: #ff3b30;
  letter-spacing: 1px;
}

.boss-hp-num {
  font-family: monospace;
  color: #ffd700;
}

.boss-hp-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3b30 0%, #ff9500 50%, #ffd700 100%);
  box-shadow: 0 0 10px #ff3b30;
  transition: width 0.1s linear;
}

.boss-weak-notice {
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  text-align: center;
  margin-top: 4px;
  animation: pulseGlow 0.8s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* 6. 合作團隊生命護盾 (Team Base Shield) */
.arcade-team-hud {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 30px;
  padding: 6px 18px;
  z-index: 40;
}

.team-shield-label {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
}

.team-shield-pips {
  display: flex;
  gap: 5px;
}

.shield-pip {
  width: 16px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.shield-pip.active {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.team-wave-label {
  font-size: 11px;
  font-weight: 900;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 7. 轉場衝刺氣流隧道 (Speed Tunnel) */
.arcade-speed-tunnel {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 30%, rgba(0, 242, 254, 0.2) 80%, rgba(0, 242, 254, 0.4) 100%);
  z-index: 45;
  animation: tunnelFlash 0.15s infinite;
}

@keyframes tunnelFlash {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.5; }
}



/* 有 hidden 屬性就不顯示（避免被 display 規則蓋掉） */
.sm-action-btn[hidden] { display: none; }

/* ===== 大廳：遊玩模式、玩家連線狀態、開始按鈕 ===== */
.lobby-row {
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lobby-row-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 700;
}

.lobby-players {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s;
}

.lobby-player .lp-tag {
  font-weight: 900;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
}

.lobby-player.on { border-style: solid; color: #fff; }
/* 換人：把這支手機移出房間（按兩次才算，準星射得到） */
.lp-kick { margin-left: auto; padding: 6px 14px; border-radius: 10px; border: 1.5px solid rgba(255, 59, 48, 0.6); background: rgba(255, 59, 48, 0.1);
  color: #ffb4ae; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.lp-kick[hidden] { display: none; }
.lp-kick.confirm { background: #ff3b30; color: #fff; }
.lobby-player.p1.on { border-color: #00f2fe; background: rgba(0, 242, 254, 0.1); box-shadow: 0 0 14px rgba(0, 242, 254, 0.35); }
.lobby-player.p2.on { border-color: #ff3b30; background: rgba(255, 59, 48, 0.1); box-shadow: 0 0 14px rgba(255, 59, 48, 0.35); }
.lobby-player.p1.on .lp-tag { background: #00f2fe; color: #05070e; }
.lobby-player.p2.on .lp-tag { background: #ff3b30; color: #05070e; }
.lobby-player.unused { opacity: 0.35; }

/* 剛連上：閃一下 */
.lobby-player.just-joined { animation: lobbyJoin 0.9s ease-out; }
@keyframes lobbyJoin {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.btn-primary-action:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

#btnUseMouse.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
}

.lobby-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  min-height: 18px;
}

/* 一人雙槍：跟模式選項分開的開關 */
.diff-chip.dual-gun-chip { margin-left: 8px; }
.diff-chip.dual-gun-chip.active {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* 雙人計分板的彈匣：放真實子彈圖示（取代舊的小圓點高度限制） */
.pod-bullet-rack {
  height: auto;
  min-height: 30px;
  flex-wrap: wrap;
  max-width: 300px;
}

.btn-primary-action:disabled { opacity: 0.45; }

/* ===== 大廳：模式說明、氣球圖鑑 ===== */
.mode-desc { text-align: center; font-size: 13px; color: #cbd5e1; margin: -6px 0 8px; min-height: 18px; }
.balloon-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: #94a3b8; margin-bottom: 14px; }
.balloon-legend i { display: inline-block; width: 11px; height: 13px; border-radius: 50%; margin-right: 5px; vertical-align: -2px; border: 1px solid rgba(255,255,255,0.25); }
.balloon-legend[hidden] { display: none; }

/* ===== 結算：個人最佳、名次、成就 ===== */
.result-extra { margin: -8px 0 18px; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 15px; color: #cbd5e1; }
.result-extra .re-best { color: #94a3b8; }
.result-extra .re-new { color: #ffd700; font-weight: 900; font-size: 20px; animation: rePop 0.6s ease-out; }
.result-extra .re-rank { color: #00f2fe; font-weight: 800; }
.result-extra .re-ach { color: #00ff88; font-weight: 800; }
@keyframes rePop { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1); } }
.rank-stamp { display: inline-block; animation: stamp 0.5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { 0% { transform: scale(3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* ===== 設定：等級、音量、準星 ===== */
.lv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lv-badge { font-weight: 900; color: #ffd700; font-size: 16px; min-width: 52px; }
.lv-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.lv-fill { height: 100%; background: linear-gradient(90deg, #ffd700, #ff9500); width: 0; }
.lv-xp { font-size: 12px; color: #94a3b8; min-width: 70px; text-align: right; }
.vol-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #cbd5e1; margin-bottom: 8px; }
.vol-row span { width: 36px; }
.vol-row input { flex: 1; accent-color: #00f2fe; }
.sm-choice-btn.locked-color { opacity: 0.4; cursor: not-allowed; }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* 瀏覽器還不准出聲：左下角小提示（蓋在待機畫面上，不擋點擊） */
.sound-hint { position: fixed; left: 16px; bottom: 16px; z-index: 450; pointer-events: none; padding: 8px 14px; border-radius: 999px;
  background: rgba(6,9,19,0.82); border: 1px solid rgba(255,215,0,0.6); color: #ffd700; font-size: 15px; font-weight: 800; }
.sound-hint[hidden] { display: none; }

/* 全螢幕影片（開場短片、新手教學影片） */
.film-overlay { position: fixed; inset: 0; z-index: 9000; background: #000; display: flex; align-items: center; justify-content: center; }
.film-overlay video { width: 100%; height: 100%; object-fit: contain; }
.film-caption { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); width: min(92vw, 1500px); display: flex; gap: 0.6em; align-items: baseline; justify-content: center;
  padding: 0.45em 0.9em; border-radius: 14px; background: rgba(6,9,19,0.78); color: #fff; font-weight: 800; font-size: clamp(22px, 2.9vw, 46px); line-height: 1.35; text-align: center; }
.film-caption b { color: #34d399; font-family: Consolas, monospace; white-space: nowrap; }
.film-skip { position: absolute; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: center; padding: 10px 18px; font: 600 18px sans-serif; color: #fff;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.5); border-radius: 8px; cursor: pointer; }
.film-skip small { font-size: 12px; opacity: 0.75; margin-top: 2px; }

/* ===== 待機標題畫面 ===== */
.title-screen { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(6,9,19,0.35) 0%, rgba(6,9,19,0.85) 75%); }
.title-screen[hidden] { display: none; }
.title-keyart { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.9; z-index: -1; }
.title-center { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -8vh; }
.title-logo { display: flex; flex-direction: column; align-items: center; animation: titleFloat 3s ease-in-out infinite; }
.title-logo img { max-width: min(70vw, 900px); }
.tl-zh { font-size: clamp(56px, 9vw, 128px); font-weight: 900; color: #fff; letter-spacing: 8px;
  text-shadow: 0 0 18px #00f2fe, 0 0 42px rgba(0,242,254,0.6), 4px 4px 0 #ff3b30; }
.tl-en { font-size: clamp(16px, 2vw, 28px); font-weight: 900; color: #ffd700; letter-spacing: 10px; margin-top: 4px; }
/* 版本號：副標後面的小章，同字體、同黃色，外框細線、字小一點（像街機標誌的 Ver.） */
.tl-en { position: relative; }
/* 掛在副標右邊、不佔位置：「VECTOR LOCK」維持在主標正下方置中 */
.tl-ver { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 2px; padding: 0.18em 0.45em 0.12em 0.55em;
  font-size: 0.5em; letter-spacing: 3px; line-height: 1; white-space: nowrap; border: 2px solid currentColor; border-radius: 4px; opacity: 0.85; }
@keyframes titleFloat { 50% { transform: translateY(-8px); } }
.title-tagline { font-size: 20px; color: #cbd5e1; font-weight: 700; }
.title-join { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 14px 22px; border-radius: 18px;
  background: rgba(6,9,19,0.78); border: 2px solid rgba(0,242,254,0.5); box-shadow: 0 0 30px rgba(0,242,254,0.25); }
.title-join img { width: 128px; height: 128px; border-radius: 8px; background: #fff; }
.tj-big { font-size: 24px; font-weight: 900; color: #00f2fe; }
.tj-room { font-size: 18px; color: #fff; margin-top: 6px; }
.tj-room b { color: #ffd700; letter-spacing: 3px; }
.tj-small { font-size: 13px; color: #94a3b8; margin-top: 8px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.title-board { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); width: min(720px, 92vw); padding: 12px 20px; border-radius: 14px;
  background: rgba(6,9,19,0.82); border: 1px solid rgba(255,215,0,0.35); }
.title-board h3 { margin: 0 0 8px; font-size: 16px; color: #ffd700; text-align: center; }
.tb-row { display: grid; grid-template-columns: 34px 1fr 90px 60px; gap: 8px; font-size: 15px; color: #e2e8f0; padding: 2px 0; }
.tb-row b { color: #ffd700; }
.tb-empty { text-align: center; color: #64748b; font-size: 14px; padding: 8px; }
.title-level { position: absolute; top: 24px; right: 28px; color: #ffd700; font-weight: 900; font-size: 16px; }

/* ===== 成就、排行榜 ===== */
.ach-grid { display: flex; flex-direction: column; gap: 12px; text-align: left; max-height: 66vh; overflow-y: auto; padding-right: 4px; }
/* 成就頁：等級、星星、接關硬幣 */
.ach-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ah-box { padding: 12px 14px; border-radius: 12px; background: rgba(0,242,254,0.06); border: 1px solid rgba(0,242,254,0.3); }
.ah-box.coin { background: rgba(255,213,74,0.07); border-color: rgba(255,213,74,0.45); }
.ah-k { font-size: 12px; letter-spacing: 3px; color: #94a3b8; font-weight: 800; }
.ah-big { font: 900 30px/1.2 Outfit, 'Noto Sans TC', sans-serif; color: #fff; }
.ah-big small { font-size: 16px; color: #94a3b8; }
.ah-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); margin: 6px 0 4px; overflow: hidden; }
.ah-bar i { display: block; height: 100%; background: linear-gradient(90deg, #00f2fe, #7cf6ff); }
.ah-box.coin .ah-bar i { background: linear-gradient(90deg, #c98a00, #ffd54a); }
.ah-sub { font-size: 12px; color: #94a3b8; }
.ach-sec { font-size: 13px; font-weight: 900; letter-spacing: 4px; color: var(--primary); margin-top: 4px; }
.ach-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 14px; }
.as-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.as-row.locked { opacity: 0.45; }
.as-n { font: 900 16px Outfit, sans-serif; color: var(--gold); width: 1.6em; text-align: center; }
.as-name { flex: 1; min-width: 0; font-weight: 800; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-stars { display: flex; gap: 6px; }
.as-star { display: flex; flex-direction: column; align-items: center; font-size: 22px; line-height: 1; color: #2c3a55; }
.as-star small { font-size: 10px; color: #64748b; margin-top: 2px; }
.as-star.got { color: #ffd54a; text-shadow: 0 0 10px rgba(255,213,74,0.7); }
.as-star.got small { color: #ffd54a; }
.ach-special { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ach-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.ach-item.got { border-color: rgba(0,255,136,0.5); background: rgba(0,255,136,0.08); }
.ach-item .ai-icon { font-size: 26px; filter: grayscale(1); opacity: 0.4; }
.ach-item.got .ai-icon { filter: none; opacity: 1; }
.ach-item .ai-name { font-weight: 900; color: #fff; font-size: 14px; }
.ach-item .ai-desc { font-size: 12px; color: #94a3b8; }
.ach-item.secret .ai-name { color: #64748b; letter-spacing: 4px; }
.ach-item.secret .ai-icon { filter: none; opacity: 0.5; }
[data-tip] { cursor: help; }
/* 說明提示：準星或滑鼠停在 data-tip 上才出現（Screens.showTip） */
.tip-box { position: fixed; z-index: 2000; max-width: min(320px, 80vw); padding: 8px 12px; border-radius: 10px; pointer-events: none;
  background: #0b1224; border: 1px solid rgba(255,213,74,0.7); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.15s; }
.tip-box.on { opacity: 1; }
.board-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.board-list { min-height: 200px; text-align: left; }

/* 結算：進全站排行榜時留名字 */
.re-name { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; font-weight: 900; color: #ffd700; }
.re-name input { width: 11em; padding: 6px 10px; border-radius: 8px; border: 2px solid #ffd700; background: #0b1224; color: #fff; font: 900 18px Outfit, "Noto Sans TC", sans-serif; }
.re-name button { padding: 6px 14px; border-radius: 8px; border: none; background: #ffd700; color: #111; font-weight: 900; cursor: pointer; }
.re-name-t { min-width: 2ch; color: #94a3b8; font-size: 14px; }

/* ===== 街機選關：海巡指揮中心的戰術地圖（art/ui/stage_map.webp，Gemini 2026-10-07）=====
   地圖固定 16:9、整張放進畫面（不裁切），關卡點用地圖上的比例座標；標題、說明疊在地圖暗色的海面上 */
.stage-select { position: fixed; inset: 0; z-index: 350; background: #03060d; display: flex; align-items: center; justify-content: center;
  --ss-u: min(1vw, calc(100vh * 16 / 9 / 100)); }
.ss-map { position: relative; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; background: #0b1224 center / 100% 100% no-repeat; }
.ss-map svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ss-route { fill: none; stroke: #00f2fe; stroke-width: 0.45; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 0.8px #00f2fe); }
.ss-route.next { stroke: rgba(226,232,240,0.7); stroke-width: 0.35; stroke-dasharray: 1.2 1.1; filter: drop-shadow(0 0 0.5px #000); }
.ss-header { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 3vh); left: 4vw; display: flex; flex-direction: column; gap: 2px; pointer-events: none;
  text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.ss-title { font-size: clamp(26px, calc(var(--ss-u) * 3.4), 54px); font-weight: 900; color: #fff; letter-spacing: 6px; }
.ss-sub { font-size: clamp(13px, calc(var(--ss-u) * 1.2), 20px); font-weight: 800; color: #00f2fe; letter-spacing: 4px; }
.ss-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 3vh); right: 3vw; }
.ss-node { position: absolute; width: 0; height: 0; cursor: pointer; }
.ss-node .sn-dot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: clamp(26px, calc(var(--ss-u) * 2.6), 46px); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(13px, calc(var(--ss-u) * 1.3), 22px); font-weight: 900; background: rgba(4,8,18,0.88); border: 3px solid #64748b; color: #94a3b8; }
.ss-node.open .sn-dot { border-color: #00f2fe; color: #fff; box-shadow: 0 0 14px rgba(0,242,254,0.8); }
.ss-node.open .sn-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #00f2fe; animation: ssPulse 1.6s ease-out infinite; }
@keyframes ssPulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
.ss-node.cleared .sn-dot { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.ss-node.teaser { cursor: default; }
/* 街機制：這一趟過了的蓋 PASS 章；下一關放大、發亮、閃爍 */
.ss-node .sn-stamp { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(-14deg); pointer-events: none;
  padding: 2px 8px; border: 3px solid #ff3b30; border-radius: 6px; color: #ff3b30; font-weight: 900; letter-spacing: 3px; z-index: 4;
  font-size: clamp(14px, calc(var(--ss-u) * 1.5), 24px); background: rgba(10,4,4,0.82); box-shadow: 0 0 0 2px rgba(255,59,48,0.35), 0 2px 8px rgba(0,0,0,0.7);
  animation: ssStamp 0.45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ssStamp { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0; } }
.ss-node.cleared { z-index: 3; }
.ss-node.cleared.teaser .sn-dot { transform: translate(-50%, -50%); border-color: #ffd700; color: #ffd700; }
.ss-node.next-up .sn-dot { transform: translate(-50%, -50%) scale(1.6); border-color: #ffd700; color: #fff; animation: ssBlink 0.9s ease-in-out infinite; }
.ss-node.next-up .sn-dot::after { border-color: #ffd700; }
.ss-node.next-up .sn-name { font-size: clamp(16px, calc(var(--ss-u) * 1.7), 28px); color: #ffd700; }
.ss-node.next-up.lb-r .sn-name { left: clamp(30px, calc(var(--ss-u) * 2.8), 46px); }
.ss-node.next-up.lb-l .sn-name { right: clamp(30px, calc(var(--ss-u) * 2.8), 46px); }
@keyframes ssBlink { 0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.6); filter: brightness(1); } 50% { box-shadow: 0 0 28px 6px rgba(255,215,0,0.95); filter: brightness(1.5); } }
.ss-node.teaser .sn-dot { border-color: #94a3b8; color: #cbd5e1; background: rgba(4,8,18,0.92); transform: translate(-50%, -50%) scale(0.8); }
.ss-node.teaser.next .sn-dot { border-style: dashed; transform: translate(-50%, -50%); }
.ss-node .sn-name { position: absolute; top: 0; transform: translateY(-50%); white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15;
  font-size: clamp(13px, calc(var(--ss-u) * 1.25), 21px); font-weight: 900; color: #fff; text-shadow: 0 1px 4px #000, 0 0 2px #000; }
.ss-node .sn-name small { font-size: 0.68em; font-weight: 800; color: #94a3b8; letter-spacing: 1px; }
.ss-node.cleared .sn-name small { color: #ffd700; }
.ss-node.teaser .sn-name { color: #cbd5e1; font-size: clamp(11px, calc(var(--ss-u) * 1.0), 17px); }
.ss-node.teaser.next .sn-name { color: #fff; font-size: clamp(13px, calc(var(--ss-u) * 1.25), 21px); }
.ss-node.lb-r .sn-name { left: clamp(18px, calc(var(--ss-u) * 1.8), 30px); }
.ss-node.lb-l .sn-name { right: clamp(18px, calc(var(--ss-u) * 1.8), 30px); text-align: right; align-items: flex-end; }
.ss-node.lb-b .sn-name { top: clamp(16px, calc(var(--ss-u) * 1.7), 28px); transform: translateX(-50%); align-items: center; }
.ss-info { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 3vh); left: 50%; transform: translateX(-50%); max-width: 90vw;
  padding: 8px 20px; border-radius: 10px; background: rgba(3,6,13,0.72); border: 1px solid rgba(0,242,254,0.3);
  font-size: clamp(14px, calc(var(--ss-u) * 1.2), 20px); font-weight: 800; color: #e2e8f0; text-align: center; }

/* ===== 劇情過場 ===== */
.story-overlay { position: fixed; inset: 0; z-index: 360; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.story-image { width: min(92vw, calc(70vh * 16 / 9)); aspect-ratio: 16 / 9; background-size: cover; background-position: center; border-radius: 10px;
  background-color: #0b1224; animation: storyIn 0.6s ease-out; }
@keyframes storyIn { from { opacity: 0; transform: scale(1.04); } }
.story-text { margin-top: 22px; max-width: min(92vw, 1100px); font-size: clamp(18px, 2.2vw, 28px); font-weight: 800; color: #fff; text-align: center; line-height: 1.5; min-height: 2.4em; }
.story-skip { position: absolute; bottom: 18px; right: 24px; font-size: 13px; color: #64748b; }

/* ===== 戰前任務簡報、戰後戰報（screens.js 的 briefingSlide／goalsSlide；版面一欄一欄出現，按扳機＝全部顯示） ===== */
.story-rich { display: none; }
.story-overlay.rich .story-image, .story-overlay.rich .story-text, .story-overlay.rich .story-skip { display: none; }
.story-overlay.rich .story-rich { display: block; width: min(96vw, calc(92vh * 16 / 9)); }
.bf, .gr { color: #e2e8f0; font-family: Outfit, 'Noto Sans TC', sans-serif; background: radial-gradient(ellipse at 30% 20%, #0f1d33, #050a14 70%);
  border: 1px solid #1e3a5f; border-radius: 12px; padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 0 40px rgba(0, 242, 254, 0.12); }
.bf-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 900; letter-spacing: 2px; color: #00f2fe; border-bottom: 1px solid #1e3a5f;
  padding-bottom: 8px; margin-bottom: 12px; font-size: clamp(12px, 1.3vw, 18px); }
.bf-head span:first-child { color: #ffd54a; }
.bf-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(10px, 1.6vw, 22px); }
.bf-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bf-visual { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: linear-gradient(135deg, #0b1224, #1b2747) center / cover;
  display: flex; align-items: center; justify-content: center; color: #475569; font-size: 14px; animation: bfFade .8s ease-out both; }
.bf-stamp { position: absolute; right: 12px; bottom: 10px; color: #ff3b30; border: 3px solid #ff3b30; font-style: normal; font-weight: 900;
  padding: 2px 10px; transform: rotate(-12deg); letter-spacing: 4px; opacity: .85; }
.bf-map { position: relative; aspect-ratio: 16 / 7; border-radius: 8px; overflow: hidden; background: #050a14; border: 1px solid #1e3a5f; }
.bf-map-in { position: absolute; inset: -14% 0; background-size: 100% 100%; animation: bfZoom 2.2s 0.5s cubic-bezier(.4, 0, .2, 1) both; }
.bf-map-in svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bf-map-in polyline { fill: none; stroke: #ffd54a; stroke-width: 0.35; stroke-dasharray: 1 0.6; vector-effect: non-scaling-stroke; }
.bf-dot { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, .8);
  animation: bfPing 1.2s infinite; }
.bf-map-label { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 0 6px #000; }
.bf-right { display: flex; flex-direction: column; gap: clamp(6px, 0.9vh, 12px); min-width: 0; }
.bf-row { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.45; animation: bfIn .45s var(--d) ease-out both; }
.bf-row b { color: #00f2fe; font-weight: 900; }
.bf-row p { margin: 0; }
.bf-row small { display: block; color: #94a3b8; font-size: .82em; margin-top: 2px; }
.bf-foes div { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-foes em { font-style: normal; padding: 2px 9px; border: 1px solid #334155; border-radius: 6px; background: #0b1324; font-size: .9em; }
.bf-foes em.bf-boss { border-color: #ff3b30; color: #ffb4ae; }
.bf-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #1e3a5f;
  font-size: clamp(13px, 1.25vw, 18px); font-weight: 800; animation: bfIn .45s var(--d) ease-out both; }
.bf-go { color: #ffd54a; white-space: nowrap; animation: bfBlink 1s infinite; }
.gr-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 8px; border-bottom: 1px dashed #1e3a5f;
  font-size: clamp(16px, 1.8vw, 26px); font-weight: 800; animation: bfIn .4s var(--d) ease-out both; }
.gr-stamp { font-style: normal; font-weight: 900; letter-spacing: 4px; padding: 2px 14px; border: 3px solid; transform: rotate(-10deg);
  animation: grStamp .35s calc(var(--d) + .25s) cubic-bezier(.2, 1.6, .4, 1) both; }
.gr-stamp.ok { color: #22c55e; } .gr-stamp.no { color: #ff3b30; } .gr-stamp.wip { color: #ffd54a; }
/* 收尾畫面（screens.js 的 comingSoonSlide）：關卡清單下面的一段話 */
.gr-note { margin: 14px 8px 0; font-size: clamp(15px, 1.6vw, 22px); font-weight: 700; line-height: 1.6; color: #e2e8f0; animation: bfIn .45s var(--d) ease-out both; }
.story-rich.shown * { animation-delay: 0s !important; animation-duration: .01s !important; }
.story-rich.shown .bf-dot, .story-rich.shown .bf-go { animation-duration: 1.2s !important; }
@keyframes bfIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes bfFade { from { opacity: 0; filter: brightness(.2); } to { opacity: 1; filter: none; } }
@keyframes bfZoom { from { transform: none; } to { transform: translate(var(--tx), var(--ty)) scale(3.6); } }   /* 放大後紅點在正中央 */
@keyframes bfPing { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .8); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } }
@keyframes bfBlink { 50% { opacity: .35; } }
@keyframes grStamp { from { opacity: 0; transform: rotate(-10deg) scale(2.4); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }
@media (max-aspect-ratio: 4 / 3) { .bf-body { grid-template-columns: 1fr; } }

.class-row { display: flex; gap: 8px; align-items: center; }
.class-status { font-size: 12px; color: #94a3b8; margin: 8px 0 6px; }
.class-teacher { font-size: 12px; color: #00f2fe; text-decoration: none; }

/* ===== 大廳三步：① 連線 → ② 選模式 → ③ 設定（每步一個畫面，筆電 870px 高也不用捲動）===== */
.lobby3 {
  width: min(1120px, 94vw);
  max-height: 94vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px 32px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 60px rgba(0, 242, 254, 0.12);
  font-family: Outfit, "Noto Sans TC", sans-serif;
}
.lb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.lb-back {
  justify-self: start; background: none; border: 1px solid rgba(255,255,255,0.18); color: #cbd5e1;
  padding: 8px 14px; border-radius: 12px; font-size: 15px; cursor: pointer;
}
.lb-back:hover { border-color: var(--primary); color: #fff; }
.lobby3[data-step="connect"] .lb-back { visibility: hidden; }
.lb-logo { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.lb-zh { font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 0 18px rgba(0,242,254,0.6); letter-spacing: 4px; }
.lb-en { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 8px; }
.lb-steps { justify-self: end; display: flex; gap: 10px; font-size: 14px; color: #64748b; font-weight: 700; }
.lobby3[data-step="connect"] .lb-steps [data-s="connect"],
.lobby3[data-step="mode"] .lb-steps [data-s="mode"],
.lobby3[data-step="setup"] .lb-steps [data-s="setup"] { color: var(--primary); }

.lb-step { display: none; }
.lobby3[data-step="connect"] .lb-step[data-step="connect"],
.lobby3[data-step="mode"] .lb-step[data-step="mode"],
.lobby3[data-step="setup"] .lb-step[data-step="setup"] { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ① 連線 */
.lb-connect { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; width: 100%; }
.lb-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lb-qr img { width: min(46vh, 340px); height: min(46vh, 340px); background: #fff; border-radius: 16px; padding: 10px; }
.lb-room { font-size: 22px; color: #cbd5e1; }
.lb-room b { color: var(--gold); letter-spacing: 4px; font-size: 30px; }
.lb-copy { background: none; border: none; color: #64748b; font-size: 13px; cursor: pointer; text-decoration: underline; }
.lb-side { display: flex; flex-direction: column; gap: 14px; }
.lb-side .lobby-players { flex-direction: column; margin: 0; }
.lb-side .lobby-player { width: 100%; font-size: 20px; padding: 16px 18px; }
.lb-mouse, .lb-next { width: 100%; }
.lb-next { font-size: 24px; padding: 16px; }

/* ② 選模式 */
.lb-modes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; width: 100%; }
.lb-range {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px;
  border: 2px solid rgba(255, 215, 0, 0.45); border-radius: 22px; padding: 14px; background: rgba(255,215,0,0.05);
}
.lb-range-title { grid-column: 1 / -1; font-size: 22px; font-weight: 900; color: var(--gold); }
.lb-card {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  min-height: 200px; border-radius: 18px; border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: #fff; cursor: pointer; position: relative;
  font-family: inherit; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lb-card b { font-size: 26px; font-weight: 900; }
.lb-card small { font-size: 15px; color: #94a3b8; }
.lb-card.big { min-height: 230px; }
.lb-card:hover, .lb-card.focus { border-color: var(--primary); box-shadow: 0 0 26px rgba(0,242,254,0.35); transform: translateY(-3px); }
.lb-stars { position: absolute; bottom: 12px; font-size: 13px; color: var(--gold); }
.lb-dualgun[hidden] { display: none; }

/* ③ 設定 */
.lb-setup-title { font-size: 30px; font-weight: 900; color: #fff; }
.lb-levels { display: flex; gap: 16px; }
.lb-level {
  min-width: 170px; padding: 18px 26px; font-size: 26px; font-weight: 900; border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: #cbd5e1; cursor: pointer; font-family: inherit;
}
.lb-level.active { border-color: var(--primary); color: #fff; box-shadow: 0 0 22px rgba(0,242,254,0.35); }
.lb-level.locked { opacity: 0.35; cursor: not-allowed; filter: grayscale(1); }
.lb-lock-hint { font-size: 14px; color: #94a3b8; min-height: 18px; }
.lb-start { font-size: 26px; padding: 16px 70px; }
.lobby3 .lobby-hint { text-align: center; min-height: 20px; }

/* 結算：手機選到的按鈕 */
#gameOverModal .modal-actions button.focus { outline: 3px solid var(--primary); outline-offset: 4px; }

@media (max-height: 760px) {
  .lb-qr img { width: 40vh; height: 40vh; }
  .lb-card, .lb-card.big { min-height: 150px; }
}

/* 戰役：計分板中間那格顯示生命 */
.hud-stat-value.lives { color: #ff3b5c; letter-spacing: 2px; font-size: 0.8em; }
/* 戰鬥中隱藏右下角設定鈕（暫停選單裡有同樣功能） */
body.in-game .fab-settings-wrapper { display: none; }
/* 大廳：對決在只有一把槍時 */
.lb-card.disabled { opacity: 0.45; }

/* 原理教學 */
.tutorial-overlay { position: fixed; inset: 0; z-index: 400; background: #060913; }
.tutorial-overlay canvas { display: block; }
.tutorial-bar { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 12px; align-items: center; font-family: Outfit, "Noto Sans TC", sans-serif; }
.tutorial-bar span { color: #64748b; font-weight: 800; margin-right: 8px; }
.tutorial-bar button { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); color: #cbd5e1; padding: 10px 18px; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; }
.tutorial-bar button.next { background: var(--primary); color: #001018; border-color: var(--primary); }
.lb-right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.lb-right .lb-steps { justify-self: auto; }
.mouse-warn { position: fixed; inset: 0; z-index: 460; display: flex; align-items: center; justify-content: center; background: rgba(3, 6, 14, 0.72); }
.mouse-warn .mw-card { background: #0f172a; border: 1px solid rgba(255, 215, 0, 0.5); border-radius: 20px; padding: 32px 40px; text-align: center; min-width: 420px; }
.mouse-warn .mw-title { font-size: 30px; font-weight: 900; color: var(--gold); }
.mouse-warn p { margin: 14px 0 26px; font-size: 26px; font-weight: 800; color: #f1f5f9; }
.mouse-warn .mw-actions { display: flex; gap: 16px; justify-content: center; }
.mouse-warn .mw-actions button { font-size: 22px; padding: 14px 26px; }
.learn-skip-note { position: fixed; inset: 0; z-index: 450; cursor: pointer; }
.learn-skip-note .lsn-ring { position: absolute; border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 9999px rgba(3, 6, 14, 0.78); animation: lsn-pulse 1s ease-in-out infinite; }
.learn-skip-note .lsn-text { position: absolute; color: var(--gold); font-size: 30px; font-weight: 900; text-align: right; }
.learn-skip-note .lsn-text::before { content: '▲'; display: block; margin-right: 22px; font-size: 22px; }
@keyframes lsn-pulse { 50% { transform: scale(1.08); } }
.lb-learn { background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.5); color: var(--gold); padding: 8px 14px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== 手機準星（選單用）===== */
.aim-cursors { position: fixed; inset: 0; z-index: 380; pointer-events: none; }
.aim-cursor {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: none;
  border: 3px solid #00f2fe; border-radius: 50%; box-shadow: 0 0 16px rgba(0,242,254,0.7), inset 0 0 10px rgba(0,242,254,0.4);
  transition: width .12s, height .12s, margin .12s;
}
.aim-cursor::before, .aim-cursor::after { content: ''; position: absolute; background: currentColor; }
.aim-cursor { color: #00f2fe; }
.aim-cursor.p2 { color: #ff3b30; border-color: #ff3b30; box-shadow: 0 0 16px rgba(255,59,48,0.7), inset 0 0 10px rgba(255,59,48,0.4); }
.aim-cursor::before { left: 50%; top: -14px; width: 3px; height: 78px; margin-left: -1.5px; opacity: 0.8; }
.aim-cursor::after { top: 50%; left: -14px; height: 3px; width: 78px; margin-top: -1.5px; opacity: 0.8; }
.aim-cursor.on-target { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
/* 準星指到畫面外：貼在邊上、變淡閃爍（提示把槍口轉回畫面） */
.aim-cursor.edge { opacity: 0.45; animation: aimEdge 0.8s ease-in-out infinite; }
@keyframes aimEdge { 50% { opacity: 0.15; } }
/* 手機左右滑選中的按鈕（沒有準星也能操作）：射擊鍵＝按它 */
.nav-focus { outline: 4px solid #ffd700 !important; outline-offset: 3px; box-shadow: 0 0 18px rgba(255, 215, 0, 0.7) !important; }
.aim-cursor.fire { animation: aimFire .18s ease-out; }
@keyframes aimFire { 0% { transform-origin: center; filter: brightness(2.2); } 100% { filter: none; } }
.aim-hover { outline: 4px solid #ffd700 !important; outline-offset: 4px; box-shadow: 0 0 30px rgba(255,215,0,0.45) !important; }

/* 模式卡片與難度鈕放大，方便用準星射擊選擇 */
.lobby3 { width: min(1500px, 96vw); }
.lb-card { min-height: 290px; }
.lb-card.big { min-height: 300px; }
.lb-card b { font-size: 34px; }
.lb-card small { font-size: 18px; }
.lb-level { min-width: 240px; padding: 30px 34px; font-size: 34px; }
.lb-start { font-size: 32px; padding: 22px 90px; }
.lb-next { font-size: 30px; padding: 22px; }
.lb-back, .lb-learn { font-size: 18px; padding: 12px 18px; }
#pauseModal .modal-actions button, #gameOverModal .modal-actions button { font-size: 24px; padding: 18px 34px; }

/* 結算展示中：選項先藏起來，不能點 */
#gameOverModal.result-locked .modal-actions { opacity: 0; pointer-events: none; }
#gameOverModal .modal-actions { transition: opacity .4s ease; }
.score-freeze { animation: scoreFreeze .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes scoreFreeze { 0% { transform: scale(1.35); filter: brightness(1.8); } 100% { transform: scale(1); filter: none; } }
@media (max-height: 760px) { .lb-card, .lb-card.big { min-height: 200px; } }
body.aiming .lb-card.focus { border-color: rgba(255,255,255,0.12); box-shadow: none; transform: none; }
body.aiming #gameOverModal .modal-actions button.focus { outline: none; }
/* 滑鼠在遊戲中用十字游標（畫面上不另外畫準星） */
body.in-game #gameCanvas, body.in-game .ui-layer { cursor: crosshair; }

/* ① 兩把槍：誰拿槍 */
.lb-gun-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lb-gun-setup[hidden] { display: none; }
.lb-gs-q { grid-column: 1 / -1; color: var(--gold); font-weight: 900; font-size: 20px; }
.lb-gs {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; font-size: 26px;
  border-radius: 16px; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: #fff; cursor: pointer; font-family: inherit;
}
.lb-gs b { font-size: 22px; }
.lb-gs small { font-size: 14px; color: #94a3b8; }
.lb-gs.active { border-color: var(--gold); box-shadow: 0 0 22px rgba(255,215,0,0.35); background: rgba(255,215,0,0.08); }
.lobby-player.need-calib { border-color: #ff9500 !important; color: #ffb547; animation: needCalib 1.2s ease-in-out infinite; }
@keyframes needCalib { 50% { box-shadow: 0 0 18px rgba(255,149,0,0.45); } }
/* ② 模式：靶場（兩張）＋戰役 */
.lb-modes { grid-template-columns: 2fr 1fr; }
.lb-side .lobby-player { padding: 12px 18px; font-size: 19px; }
.lb-side { gap: 12px; }
.lb-mouse[hidden] { display: none; }
/* ② 誰拿槍的切換鈕 */
.lb-who { align-self: center; padding: 14px 28px; font-size: 22px; font-weight: 900; border-radius: 16px; cursor: pointer; font-family: inherit;
  border: 2px solid rgba(255,215,0,0.6); background: rgba(255,215,0,0.08); color: #fff; }
.lb-who span { color: var(--gold); font-weight: 800; }
.lb-who[hidden] { display: none; }

/* 街機合作：計分板兩側各自的生命（接關倒數時變成文字） */
.pod-lives {
  font-size: 16px;
  letter-spacing: 1px;
  color: #ff3b5c;
  white-space: nowrap;
}
.pod-lives:empty { display: none; }
/* 街機戰役被打中：那一位的愛心放大、變亮、抖一下 */
.life-hit { display: inline-block; animation: lifeHit 0.7s ease-out; }
@keyframes lifeHit {
  0% { transform: scale(1.9); color: #fff; text-shadow: 0 0 18px #ff0033, 0 0 6px #ff0033; }
  15% { transform: scale(1.6) translateX(-6px); }
  30% { transform: scale(1.45) translateX(6px); }
  45% { transform: scale(1.3) translateX(-4px); }
  100% { transform: scale(1); text-shadow: none; }
}

/* 電影感轉場（arcade-engine 在 3D 佈景轉場時加上 body.cine）：計分板淡出，到站淡回來 */
.hud-header { transition: opacity 0.35s ease; }
body.cine .hud-header { opacity: 0; }

/* ===== 街機戰役結算：任務簡報（2026-10-10 小威：過關畫面太平淡，要有評級獎章、旋轉飛入）=====
   和戰術地圖同一套語言：深藍底、青色線、金色重點、四角的戰術框線 */
.modal-overlay.debrief-mode .modal-card { max-width: 1040px; width: 94%; max-height: 96vh; overflow-y: auto; padding: 22px 40px 20px; border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(0,242,254,0.035) 0 2px, transparent 2px 14px),
    radial-gradient(120% 90% at 20% 30%, rgba(0,242,254,0.10), transparent 60%),
    linear-gradient(160deg, rgba(10,18,36,0.97), rgba(4,8,18,0.98)); }
.modal-overlay.debrief-mode .modal-card::before, .modal-overlay.debrief-mode .modal-card::after {
  content: ''; position: absolute; width: 46px; height: 46px; border: 3px solid var(--primary); pointer-events: none; opacity: 0.85; }
.modal-overlay.debrief-mode .modal-card::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.modal-overlay.debrief-mode .modal-card::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.modal-overlay.debrief-mode .modal-title { font-size: clamp(34px, 5vw, 60px); font-style: italic; letter-spacing: 6px; margin: 0;
  background: linear-gradient(180deg, #ffffff 10%, #7cf6ff 55%, #00b8d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(0,242,254,0.55)); animation: dbTitleIn 0.55s cubic-bezier(.2,1.4,.4,1) both; }
.modal-overlay.debrief-mode.failed .modal-title { background: linear-gradient(180deg, #fff 10%, #ff8a80 55%, #ff3b30 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255,59,48,0.55)); }
@keyframes dbTitleIn { from { transform: scale(1.6) skewX(-12deg); opacity: 0; letter-spacing: 30px; } }
.modal-overlay.debrief-mode .modal-subtitle { margin: 2px 0 12px; font-size: 18px; font-weight: 900; letter-spacing: 4px; color: var(--gold); }
.debrief { display: grid; grid-template-columns: minmax(200px, 36%) 1fr; gap: 28px; align-items: center; margin-bottom: 10px; text-align: left; }
.debrief[hidden] { display: none; }
.db-medal-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.db-medal-slot { position: relative; width: min(220px, 26vw, 34vh); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.db-medal-slot::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(0,242,254,0.35); animation: dbSpin 14s linear infinite; }
@keyframes dbSpin { to { transform: rotate(360deg); } }
.db-medal { position: relative; width: 100%; height: 100%; opacity: 0; }
.db-medal.landed { opacity: 1; animation: dbLand 0.7s ease-out; }
@keyframes dbLand { 0% { filter: brightness(2.6) drop-shadow(0 0 40px #fff6c0); transform: scale(1.08); } 100% { filter: brightness(1) drop-shadow(0 0 18px rgba(255,215,0,0.45)); transform: scale(1); } }
.db-medal img, .db-fly img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 等級字母：大小跟著獎章走（容器單位 cqw），依各等級獎章中間黑色圓盤的實際直徑（C 50%、B 46%、A 42%、S 37% 圖寬）定字級，
   字母高度約佔圓盤的六成；用 flex 置中（斜體字不會因為 translate 偏到右下） */
.db-medal, .db-fly { container-type: size; }
.db-medal span, .db-fly span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-right: 2cqw;
  transform: translateY(var(--rk-dy, -1cqw)); font: italic 900 var(--rk-size, 36cqw)/1 Outfit, sans-serif;
  background: linear-gradient(180deg, #fffbe6, #ffd54a 55%, #c98a00); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.6)); }
.db-medal.rank-c, .db-fly.rank-c { --rk-size: 40cqw; --rk-dy: 0.5cqw; }
.db-medal.rank-b, .db-fly.rank-b { --rk-size: 39cqw; }
/* A 的圓盤下緣被桂冠擋住，字要小一點、往上移，腳才不會壓到金框 */
.db-medal.rank-a, .db-fly.rank-a { --rk-size: 27cqw; --rk-dy: -4cqw; }
.db-medal.rank-s, .db-fly.rank-s { --rk-size: 31cqw; }
.db-medal.rank-s span, .db-fly.rank-s span { background: linear-gradient(180deg, #ffffff, #bfe9ff 50%, #5ab8ff); -webkit-background-clip: text; background-clip: text; }
.db-fly { position: fixed; z-index: 2000; pointer-events: none; }
.db-rank-title { min-height: 1.4em; font-size: 22px; font-weight: 900; letter-spacing: 6px; color: #fff; text-shadow: 0 0 14px rgba(0,242,254,0.6); opacity: 0; }
.db-rank-title.show { opacity: 1; animation: dbRow 0.4s ease-out both; }
.db-stats { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.db-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 4px; border-bottom: 1px solid rgba(0,242,254,0.18);
  opacity: 0; animation: dbRow 0.35s ease-out both; }
.db-row .k { font-size: 15px; font-weight: 800; letter-spacing: 3px; color: #94a3b8; }
.db-row .v { font: 900 22px/1 Outfit, 'Noto Sans TC', sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.db-row.big .v { font-size: 34px; color: var(--primary); text-shadow: 0 0 16px rgba(0,242,254,0.5); }
.db-row.good .v { color: #00ff88; }
.db-row.gold .v { color: var(--gold); }
.db-row.bad .v { color: #ff6b6b; }
.db-row.blue .v { color: #6fc8ff; text-shadow: 0 0 12px rgba(79,195,255,0.55); }
/* 數字定格：閃一下 */
.db-row.lock .v { animation: dbLock 0.35s ease-out; }
@keyframes dbLock { 0% { transform: scale(1.35); filter: brightness(2.2) drop-shadow(0 0 10px #fff); } 100% { transform: none; filter: none; } }

/* 成就、星星亮相：畫面中央的大徽章（放射光、掃光、圖示轉進來、火花），再縮小飛進下方清單 */
.result-extra .re-reward { opacity: 0; }
.result-extra .re-reward.show { opacity: 1; animation: reLand 0.6s ease-out; }
@keyframes reLand { 0% { transform: scale(1.5); text-shadow: 0 0 24px #ffd54a; color: #fff; } 100% { transform: none; } }
.db-reward { position: fixed; left: 50%; top: 44%; z-index: 2100; transform: translate(-50%, -50%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: min(360px, 86vw); padding: 22px 44px 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 35%, rgba(70,52,0,0.96), rgba(6,9,19,0.97) 70%); border: 3px solid #ffd54a; border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(255,213,74,0.15), 0 0 60px rgba(255,213,74,0.55), inset 0 0 36px rgba(255,213,74,0.25);
  font-family: Outfit, 'Noto Sans TC', sans-serif; animation: dbRewardIn 0.7s cubic-bezier(.2,1.5,.4,1) both; }
.db-reward::before { content: ''; position: absolute; inset: -150%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,220,120,0.16) 0 9deg, transparent 9deg 18deg); animation: dbSpin 7s linear infinite; }
.db-reward::after { content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.6) 50%, transparent 62%); transform: translateX(-120%); animation: dbShine 0.9s 0.45s ease-out forwards; }
@keyframes dbShine { to { transform: translateX(120%); } }
@keyframes dbRewardIn { 0% { transform: translate(-50%, -50%) scale(0.2) rotate(-10deg); opacity: 0; filter: brightness(3); }
  60% { transform: translate(-50%, -50%) scale(1.12) rotate(1.5deg); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); filter: none; } }
.db-reward .rw-kind { font-size: 14px; font-weight: 900; letter-spacing: 8px; color: #ffd54a; text-shadow: 0 0 10px rgba(255,213,74,0.8); }
.db-reward .rw-icon { font-size: 68px; line-height: 1.1; filter: drop-shadow(0 0 18px rgba(255,213,74,0.9)); animation: dbIconPop 0.85s 0.1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes dbIconPop { 0% { transform: scale(0) rotate(-540deg); } 70% { transform: scale(1.35) rotate(12deg); } 100% { transform: none; } }
.db-reward .rw-name { font-size: 30px; font-weight: 900; letter-spacing: 3px; color: #fff; text-shadow: 0 0 16px rgba(255,213,74,0.7); }
.db-reward .rw-desc { font-size: 14px; color: #cbd5e1; }
.db-reward .rw-spark { position: absolute; left: 50%; top: 42%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff3b0;
  box-shadow: 0 0 10px #ffd54a; opacity: 0; animation: dbSpark 0.8s var(--d) ease-out; }
@keyframes dbSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-170px) scale(0.3); } }
.db-reward.star { border-color: #7cf6ff; background: radial-gradient(ellipse at 50% 35%, rgba(0,60,80,0.96), rgba(6,9,19,0.97) 70%);
  box-shadow: 0 0 0 6px rgba(124,246,255,0.15), 0 0 60px rgba(124,246,255,0.55), inset 0 0 36px rgba(124,246,255,0.25); }
.db-reward.star .rw-kind { color: #7cf6ff; text-shadow: 0 0 10px rgba(124,246,255,0.8); }
@keyframes dbRow { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.db-shake { animation: dbShake 0.35s; }
@keyframes dbShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
@media (max-width: 720px) { .debrief { grid-template-columns: 1fr; } .db-medal-slot { width: 46vw; } }
/* 簡報模式：紀錄、成就排成一行行的小標籤（不把按鈕擠出畫面） */
.modal-overlay.debrief-mode .result-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; font-size: 13px; margin-bottom: 12px; }
.modal-overlay.debrief-mode .result-extra > div { margin: 0; }

/* 暫停：房間號碼與 QR Code（不小心退出、斷線的手機重新掃描接回來） */
.pause-join { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.pause-join img { width: 132px; height: 132px; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.pause-join img:not([src]) { visibility: hidden; }
.pj-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: #94a3b8; font-size: 16px; font-weight: 700; text-align: left; }
.pj-text b { color: var(--gold); font-size: 40px; letter-spacing: 6px; font-family: "JetBrains Mono", Consolas, monospace; }
.pj-text small { font-size: 15px; color: #cbd5e1; max-width: 320px; }
#pauseModal .modal-actions button { white-space: nowrap; }
.film-unmute { position: absolute; left: 24px; top: 24px; padding: 10px 18px; border-radius: 12px; background: rgba(0,0,0,0.65); color: #ffd700; font: 700 20px "Noto Sans TC", sans-serif; pointer-events: none; animation: filmUnmute 1.6s ease-in-out infinite alternate; }
@keyframes filmUnmute { from { opacity: 1; } to { opacity: 0.55; } }

/* 省資源（智慧電視，device.js）：毛玻璃每格都要把底下的遊戲畫面讀回來模糊，電視的顯示晶片吃不消（雙人時面板更多）
   小威 2026-10-20：電視兩人進戰役變很慢、一人也常只有 2～3 fps → 省資源時全部改成不透明一點的底色、不模糊 */
body.lite *, body.lite *::before, body.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lite .hud-player-pod, body.lite .hud-vs-center, body.lite .hud-stats-group, body.lite .hud-weapon-showcase,
body.lite .hud-weapon-bar, body.lite .arcade-radio-box, body.lite .arcade-boss-bar, body.lite .arcade-team-hud { background-color: rgba(6, 9, 19, 0.82); }

/* 狀態列（分數、生命、連擊、武器）放在下方兩角、半透明（小威 2026-10-21）：敵人和氣球多在畫面中上方，放在頂端會擋住
   區域名稱改畫在左上（arcade-engine.js）；雙人的中央計時留在上方正中，避免和下方中間的無線電、提示字重疊
   半透明的底不加毛玻璃：看得到後面的畫面，智慧電視（省資源）也一樣 */
.ui-layer { justify-content: flex-end; }
.hud-header, .hud-mode-container, .hud-mode-container.dual-mode { align-items: flex-end; }
.hud-vs-center { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); }
.hud-stats-group, .hud-weapon-showcase, .hud-player-pod, .hud-vs-center,
body.lite .hud-player-pod, body.lite .hud-vs-center, body.lite .hud-stats-group, body.lite .hud-weapon-showcase {
  background-color: rgba(10, 15, 28, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.hud-weapon-showcase:hover { background-color: rgba(10, 15, 28, 0.55); transform: none; }

/* 子彈圖示在大螢幕上要分得出來（小威 2026-10-21：電視畫面差，子彈中間的顏色跟黑色背景混在一起）
   裝填的子彈加一圈亮邊；打掉的只留淺灰外框（原本是深色、28% 不透明，在黑底上幾乎看不見） */
.bullet-slot.loaded .bullet-art { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 4px rgba(255, 230, 170, 0.55)) !important; }
.bullet-slot.loaded .bullet-art.railgun { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(168, 85, 247, 0.8)) !important; }
.bullet-slot.spent .bullet-art { opacity: 0.5 !important; filter: grayscale(1) brightness(2.2) drop-shadow(0 0 1px rgba(203, 213, 225, 0.9)) !important; }
