/* ============================================================================
   Project: NOVA — 2-83《🐉 深空异兽猎场 · 脉冲矩阵》(Fish Hunt: Pulse Matrix)
   竖屏单屏无边框样式表（兼容 Chromium 80+ / Safari 13.4+ · 零 :has / color-mix / 裸 dvh）
   适配全局四大旗舰皮肤：obsidian / qianli / royal / starry + 大字模式
   ============================================================================ */

body.nova-in-fish-stage header.topbar,
body.nova-in-fish-stage #appNav,
body.nova-in-fish-stage #mhBarArcade,
body.nova-in-fish-stage #ahMainLobbyHeader,
body.nova-in-fish-stage #ahStageTopBar {
  display: none !important;
}

body.nova-in-fish-stage .shell,
body.pg-shell.nova-in-fish-stage .shell {
  width: 100% !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: var(--app-vh, 100vh) !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: var(--app-vh, 100vh) !important;
  max-height: 100dvh !important;
  min-height: 100vh !important;
  min-height: var(--app-vh, 100vh) !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

body.nova-in-fish-stage #view-arcade.active {
  flex: 1 1 0% !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

body.nova-in-fish-stage #ahShellBox.ah-shell.in-stage-fish,
html body.pg-shell.nova-in-fish-stage #view-arcade #ahShellBox.ah-shell.in-stage-fish,
.ah-shell.in-stage-fish {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 45 !important;
  flex: 1 1 0% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: var(--app-vh, 100vh) !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: var(--app-vh, 100vh) !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #07101f !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.ah-shell.in-stage-fish #ahGlCanvas {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.nova-in-fish-stage #view-arcade #ahShellBox.ah-shell.in-stage-fish > .ah-layer,
body.nova-in-fish-stage #view-arcade #ahGameStage,
body.nova-in-fish-stage #view-arcade #ahFishStageWrap,
.ah-shell.in-stage-fish .ah-layer,
.ah-shell.in-stage-fish #ahGameStage,
.ah-shell.in-stage-fish #ahFishStageWrap {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border: none !important;
}

#ahFishStageWrap {
  display: none;
  flex-direction: column;
  flex: 1 1 0%;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.fh-root {
  --fh-bg: #07101f;
  --fh-panel: rgba(11, 20, 38, 0.88);
  --fh-panel-strong: rgba(8, 15, 30, 0.95);
  --fh-border: rgba(246, 200, 95, 0.34);
  --fh-accent: #f6c85f;
  --fh-accent-2: #38bdf8;
  --fh-text: #f1f5f9;
  --fh-sub: #94a9c9;
  --fh-win-bg: rgba(10, 26, 44, 0.92);
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-nova-skin="qianli"] .fh-root,
body[data-nova-skin="qianli"] .fh-root {
  --fh-bg: #071b1a;
  --fh-panel: rgba(9, 31, 30, 0.90);
  --fh-panel-strong: rgba(6, 23, 22, 0.96);
  --fh-border: rgba(94, 234, 212, 0.38);
  --fh-accent: #5eead4;
  --fh-accent-2: #f6c85f;
}

html[data-nova-skin="royal"] .fh-root,
body[data-nova-skin="royal"] .fh-root {
  --fh-bg: #120c24;
  --fh-panel: rgba(25, 16, 48, 0.90);
  --fh-panel-strong: rgba(18, 11, 36, 0.96);
  --fh-border: rgba(251, 191, 36, 0.42);
  --fh-accent: #fbbf24;
  --fh-accent-2: #c084fc;
}

html[data-nova-skin="starry"] .fh-root,
body[data-nova-skin="starry"] .fh-root {
  --fh-bg: #08152b;
  --fh-panel: rgba(12, 27, 56, 0.90);
  --fh-panel-strong: rgba(8, 19, 42, 0.96);
  --fh-border: rgba(250, 204, 21, 0.38);
  --fh-accent: #facc15;
  --fh-accent-2: #60a5fa;
}

.fh-screen {
  display: none;
  flex-direction: column;
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.fh-screen.active {
  display: flex;
}

/* ==================== 顶部通用导航与钱包条 ==================== */
.fh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 8px;
  padding-top: calc(5px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.96) 0%, rgba(10, 19, 36, 0.88) 100%);
  border-bottom: 1px solid var(--fh-border);
  flex-shrink: 0;
  z-index: 12;
}

.fh-btn-icon,
.fh-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 169, 201, 0.32);
  background: rgba(19, 32, 58, 0.88);
  color: var(--fh-text);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.fh-btn-icon:active,
.fh-back-btn:active {
  transform: scale(0.95);
}

.fh-wallet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(246, 200, 95, 0.48);
  background: linear-gradient(180deg, rgba(32, 24, 8, 0.94) 0%, rgba(18, 14, 5, 0.96) 100%);
  color: #ffe599;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  scrollbar-width: none;
}
.fh-wallet-pill::-webkit-scrollbar {
  display: none;
}
.fh-wallet-pill.is-long {
  font-size: 10.5px;
  padding: 3px 6px;
  gap: 3px;
}
.fh-wallet-pill.is-xlong {
  font-size: 9.5px;
  padding: 3px 5px;
  gap: 2px;
}
.fh-wallet-pill.is-xlong .fh-coin-ico {
  width: 13px;
  height: 13px;
}
#fhBattleScreen .fh-topbar .fh-btn-icon {
  padding: 0 6px;
  font-size: 11px;
}

.fh-coin-ico {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: -2px;
  flex-shrink: 0;
}

.fh-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ==================== 1. 六大海域选房大厅 ==================== */
.fh-jackpot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(90deg, rgba(16, 26, 48, 0.95), rgba(28, 20, 48, 0.95), rgba(16, 26, 48, 0.95));
  border-bottom: 1px solid rgba(246, 200, 95, 0.22);
  flex-shrink: 0;
}

.fh-jp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 2px;
  border-radius: 7px;
  background: rgba(7, 13, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  min-width: 0;
}
.fh-jp-cell .jp-k {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.fh-jp-cell .jp-v {
  font-size: 10.5px;
  font-weight: 900;
  color: #fff6d6;
  line-height: 1.15;
}
.fh-jp-cell[data-jp="MINI"] .jp-k { color: #67e8f9; }
.fh-jp-cell[data-jp="MINOR"] .jp-k { color: #4ade80; }
.fh-jp-cell[data-jp="MAJOR"] .jp-k { color: #c084fc; }
.fh-jp-cell[data-jp="GRAND"] .jp-k { color: #fb923c; }
.fh-jp-cell[data-jp="ULTRA"] .jp-k { color: #facc15; }

.fh-lobby-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(8, 16, 30, 0.85);
  border-bottom: 1px solid rgba(148, 169, 201, 0.14);
  flex-shrink: 0;
}

.fh-lobby-hint {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fh-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.fh-solo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 30, 54, 0.9);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.fh-solo-toggle.on {
  border-color: rgba(246, 200, 95, 0.85);
  background: linear-gradient(180deg, #ffd866 0%, #eab308 100%);
  color: #3a2200;
}

.fh-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 8px;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
}

.fh-zone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid rgba(246, 200, 95, 0.28);
  background-color: #0e1c36;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  text-align: left;
}
.fh-zone-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.38) 0%, rgba(5, 11, 24, 0.82) 62%, rgba(4, 9, 20, 0.94) 100%);
  z-index: 0;
}
.fh-zone-card:active {
  transform: scale(0.98);
}
.fh-zone-card > * {
  position: relative;
  z-index: 1;
}

.fh-zone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.fh-zone-lv {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(8, 15, 28, 0.82);
  border: 1px solid rgba(246, 200, 95, 0.45);
  color: #fde68a;
  font-size: 9.5px;
  font-weight: 900;
}

.fh-zone-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 900;
  background: linear-gradient(180deg, #34d399, #059669);
  color: #032218;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.fh-zone-tag.plaque-tag {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  color: #042f2e;
}
.fh-zone-tag.vip-tag {
  background: linear-gradient(180deg, #fcd34d, #d97706);
  color: #3a1d00;
}

.fh-zone-mid {
  margin-top: auto;
}
.fh-zone-name {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-zone-sub {
  font-size: 9.5px;
  color: #cbd5e1;
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-zone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.fh-zone-range {
  font-size: 10px;
  font-weight: 800;
  color: #ffe599;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-zone-boss {
  font-size: 9.5px;
  font-weight: 800;
  color: #7dd3fc;
  flex-shrink: 0;
}

/* ==================== 2. 竖屏深海主战场 ==================== */
.fh-stage-area {
  position: relative;
  flex: 1 1 0%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #040b18;
  touch-action: none;
}

.fh-seabed-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #040b18;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

#fhCanvasHost {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  touch-action: none;
  cursor: crosshair;
  z-index: 1;
}

#fhFallbackCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 顶部对向双座位（座位 2 / 座位 3） */
.fh-top-seats {
  position: absolute;
  top: 5px;
  left: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  pointer-events: none;
  z-index: 6;
}

.fh-seat-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9px;
  background: rgba(8, 15, 30, 0.72);
  border: 1px solid rgba(148, 169, 201, 0.25);
  font-size: 10px;
  color: #e2e8f0;
  min-width: 0;
}
.fh-seat-badge.empty {
  opacity: 0.56;
  justify-content: center;
  color: #94a3b8;
  border-style: dashed;
}
.fh-seat-badge .s-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-seat-badge .s-stake {
  font-weight: 900;
  color: #fde68a;
  flex-shrink: 0;
}

/* 时空洋流 / 冰封横幅 */
.fh-tide-banner {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.92), rgba(109, 40, 217, 0.92));
  border: 1px solid rgba(165, 243, 252, 0.7);
  color: #ecfeff;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  z-index: 7;
  display: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}
.fh-tide-banner.show {
  display: inline-block;
}

/* Tier 2 中奖横幅（20x~99x 不挡开火） */
.fh-midwin-toast {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(48, 30, 4, 0.94), rgba(24, 14, 2, 0.95));
  border: 1.5px solid #fbbf24;
  color: #fef08a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  z-index: 8;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.fh-midwin-toast.show {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 右侧悬浮技能丸（自动开火 / 锁定 / 快捷表情） */
.fh-side-pills {
  position: absolute;
  right: 7px;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9;
}

.fh-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 169, 201, 0.36);
  background: rgba(10, 20, 38, 0.84);
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.fh-side-btn b {
  font-size: 13px;
  line-height: 1;
}
.fh-side-btn.active {
  border-color: #fbbf24;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(180, 83, 9, 0.95));
  color: #fffbeb;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}

.fh-emote-pop {
  position: absolute;
  right: 56px;
  bottom: 46px;
  display: none;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 16, 32, 0.94);
  border: 1px solid var(--fh-border);
  z-index: 10;
}
.fh-emote-pop.open {
  display: inline-flex;
}
.fh-emote-item {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* ==================== 为什么中奖：常驻字幕条 + 非阻塞展开浮窗 ==================== */
.fh-explain-float {
  position: absolute;
  left: 8px;
  right: 58px;
  bottom: 34px;
  background: rgba(7, 17, 34, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 11px;
  padding: 7px 9px;
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.4;
  z-index: 10;
  display: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.62);
}
.fh-explain-float.open {
  display: block;
}
.fh-explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
  color: #7dd3fc;
  font-weight: 900;
  font-size: 10.5px;
}
.fh-explain-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.fh-winbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 26px;
  padding: 2px 8px;
  background: var(--fh-win-bg);
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
  z-index: 11;
}
.fh-winbar-text {
  font-size: 11px;
  font-weight: 800;
  color: #fef08a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fh-winbar-text.idle {
  color: #94a9c9;
  font-weight: 700;
}
.fh-winbar-toggle {
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(14, 38, 66, 0.9);
  color: #bae6fd;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==================== 底部炮台控制台（本机黄金主座 + 邻座） ==================== */
.fh-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.96) 0%, rgba(6, 11, 22, 0.99) 100%);
  border-top: 1px solid var(--fh-border);
  flex-shrink: 0;
  z-index: 12;
}

.fh-screen.is-solo .fh-top-seats,
.fh-screen.is-solo .fh-neighbor-box {
  display: none !important;
}

.fh-screen.is-solo .fh-bottom-dock {
  justify-content: center;
}

.fh-screen.is-solo .fh-stepper-box {
  max-width: 340px;
  margin: 0 auto;
}

.fh-stepper-box {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.fh-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(246, 200, 95, 0.55);
  background: linear-gradient(180deg, #2a395c 0%, #17223b 100%);
  color: #ffe599;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.fh-step-btn:active {
  transform: scale(0.93);
}
.fh-step-btn.is-sea-up {
  width: auto;
  min-width: 66px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #361d00;
  border: 1px solid #fff3c4;
  background: linear-gradient(180deg, #ffe88a 0%, #f59e0b 55%, #ea580c 100%);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.52), 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.fh-step-btn.is-sea-locked {
  width: auto;
  min-width: 66px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: linear-gradient(180deg, #273248 0%, #141c2c 100%);
  white-space: nowrap;
}
.fh-step-btn.is-sea-down {
  width: auto;
  min-width: 62px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  color: #ecfeff;
  border: 1px solid rgba(103, 232, 249, 0.72);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.94) 0%, rgba(15, 42, 74, 0.96) 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35), 0 3px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* 满档/底档一键换海悬浮提示气泡（不挡深海点击开火） */
.fh-sea-bubble {
  position: absolute;
  right: 8px;
  left: auto;
  bottom: calc(46px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 16px);
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.78);
  background: linear-gradient(180deg, rgba(24, 18, 8, 0.96) 0%, rgba(10, 12, 22, 0.97) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.72), 0 0 14px rgba(251, 191, 36, 0.25);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 24;
  display: none;
}
.fh-sea-bubble.show {
  display: block;
}
.fh-sea-bubble.align-left {
  left: 8px;
  right: auto;
  border-color: rgba(103, 232, 249, 0.72);
  background: linear-gradient(180deg, rgba(8, 25, 38, 0.96) 0%, rgba(8, 14, 26, 0.97) 100%);
  color: #cffafe;
}
.fh-sea-bubble::after {
  content: "";
  position: absolute;
  right: 98px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #0b0d17;
  border-right: 1px solid rgba(251, 191, 36, 0.78);
  border-bottom: 1px solid rgba(251, 191, 36, 0.78);
  transform: rotate(45deg);
}
.fh-screen.is-solo .fh-sea-bubble::after {
  right: 28px;
}
.fh-sea-bubble.align-left::after,
.fh-screen.is-solo .fh-sea-bubble.align-left::after {
  right: auto;
  left: 22px;
  border-right-color: rgba(103, 232, 249, 0.72);
  border-bottom-color: rgba(103, 232, 249, 0.72);
}

.fh-stake-center {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(246, 200, 95, 0.65);
  background: linear-gradient(180deg, rgba(44, 31, 8, 0.92) 0%, rgba(24, 17, 4, 0.96) 100%);
  color: #fff3c4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
}
.fh-stake-center.is-trial {
  border-color: #34d399;
  background: linear-gradient(180deg, rgba(6, 52, 39, 0.94) 0%, rgba(4, 31, 24, 0.96) 100%);
  color: #a7f3d0;
}
.fh-stake-center span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-neighbor-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 9px;
  background: rgba(15, 25, 46, 0.8);
  border: 1px solid rgba(148, 169, 201, 0.24);
  font-size: 9.5px;
  color: #94a3b8;
  max-width: 96px;
  flex-shrink: 0;
}
.fh-neighbor-box b {
  color: #e2e8f0;
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== Tier 3 大奖 0ms 瞬跳庆典层 ==================== */
.fh-bigwin-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(3, 8, 18, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 28;
  cursor: pointer;
}
.fh-bigwin-overlay.open {
  display: flex;
}
.fh-bigwin-card {
  width: min(86%, 310px);
  padding: 18px 16px;
  border-radius: 18px;
  border: 2px solid #facc15;
  background: radial-gradient(circle at 50% 25%, rgba(250, 204, 21, 0.26), rgba(12, 20, 38, 0.96) 72%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.78), 0 0 28px rgba(250, 204, 21, 0.38);
  text-align: center;
}
.fh-bw-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde047, #ca8a04);
  color: #3a1d00;
  font-size: 11px;
  font-weight: 900;
}
.fh-bw-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
  color: #fffbeb;
}
.fh-bw-amount {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  word-break: break-all;
}
.fh-bw-skip {
  margin-top: 10px;
  font-size: 10.5px;
  color: #94a3b8;
}

/* ==================== 子弹窗（图鉴 / 炮台库 / 自定义炮倍 / 说明） ==================== */
.fh-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(3, 7, 16, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 35;
}
.fh-modal-backdrop.open {
  display: flex;
}

.fh-modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  max-height: 92%;
  border-radius: 16px;
  border: 1px solid var(--fh-border);
  background: var(--fh-panel-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.fh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}
.fh-modal-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--fh-accent);
}
.fh-modal-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.fh-modal-body {
  padding: 10px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* 6 章节生物图鉴（左上角「捕 X 只」+ 未捕获深海青剪影） */
.fh-codex-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(15, 28, 52, 0.85);
  font-size: 11px;
  font-weight: 800;
  color: #bae6fd;
  margin-bottom: 8px;
}

.fh-codex-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}
.fh-codex-tab {
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid rgba(148, 169, 201, 0.25);
  background: rgba(14, 24, 45, 0.85);
  color: #94a9c9;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-codex-tab.active {
  border-color: var(--fh-accent);
  background: rgba(246, 200, 95, 0.18);
  color: #fff3c4;
}

.fh-codex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fh-codex-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 6px 7px;
  border-radius: 11px;
  border: 1px solid rgba(148, 169, 201, 0.22);
  background: rgba(12, 22, 42, 0.9);
  text-align: center;
}
.fh-codex-card.unlocked {
  border-color: rgba(246, 200, 95, 0.42);
}

.fh-codex-kills {
  position: absolute;
  top: 4px;
  left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 9.5px;
  font-weight: 900;
}
.fh-codex-card.locked .fh-codex-kills {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.35);
}

.fh-codex-medal {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 12px;
}

.fh-sprite-crop {
  width: 80px;
  height: 64px;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.fh-codex-card.locked .fh-sprite-crop {
  filter: brightness(0) saturate(100%) invert(12%) sepia(34%) saturate(1280%) hue-rotate(188deg) brightness(92%) contrast(95%);
  opacity: 0.85;
}

.fh-codex-name {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 900;
  color: #f1f5f9;
}
.fh-codex-mult {
  font-size: 10px;
  font-weight: 800;
  color: #fde68a;
}

/* 12 款免费荣誉炮台库 */
.fh-armory-note {
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fh-turret-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fh-turret-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 7px;
  border-radius: 12px;
  border: 1px solid rgba(148, 169, 201, 0.24);
  background: rgba(12, 22, 42, 0.9);
  text-align: center;
}
.fh-turret-card.equipped {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}
.fh-turret-art {
  width: 66px;
  height: 66px;
  background-image: url("../assets/fish-hunt/atlases/turrets.png");
  background-repeat: no-repeat;
}
.fh-turret-name {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 900;
  color: #f8fafc;
}
.fh-turret-req {
  margin-top: 2px;
  font-size: 9.5px;
  color: #94a9c9;
  min-height: 24px;
}
.fh-turret-btn {
  margin-top: 5px;
  width: 100%;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(246, 200, 95, 0.45);
  background: rgba(30, 44, 74, 0.9);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}
.fh-turret-btn.equipped {
  background: linear-gradient(180deg, #fde047, #eab308);
  color: #3a1d00;
  border-color: transparent;
}
.fh-turret-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* 自定义炮倍弹窗（3D 黑曜鎏金内嵌小键盘 · 零系统输入法挤压） */
#fhStakeModal.fh-stake-backdrop {
  background: rgba(3, 6, 14, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 12px;
}
#fhStakeModal .fh-stake-kp-card {
  width: 100%;
  max-width: 344px;
}
.fh-primary-btn {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #ffd866 0%, #eab308 100%);
  color: #3a2200;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

/* 说明与正气人文背调铭牌 */
.fh-rule-sec {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(13, 24, 46, 0.85);
  border: 1px solid rgba(148, 169, 201, 0.18);
  font-size: 11.5px;
  line-height: 1.48;
  color: #dbeafe;
}
.fh-rule-sec h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--fh-accent);
}
.fh-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  margin-top: 4px;
}
.fh-rtp-table th,
.fh-rtp-table td {
  padding: 4px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.fh-plaque-box {
  padding: 9px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 47, 46, 0.9), rgba(12, 28, 48, 0.92));
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: #ccfbf1;
  font-size: 11px;
  line-height: 1.5;
}

/* 大字无障碍模式兼容 */
body.nova-bigfont-on .fh-zone-name { font-size: 14px; }
body.nova-bigfont-on .fh-winbar-text { font-size: 12px; }
body.nova-bigfont-on .fh-stake-center { font-size: 12.5px; }
