/* ===========================================================
   深海竞技 · 各屏样式
   =========================================================== */

/* ---------------- 首页 ---------------- */
#s-home { background: var(--bg-0); }

.home-hero {
  position: relative;
  flex: 0 0 auto;
  height: 42%;
  min-height: 270px;
  overflow: hidden;
}
.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
/* 主视觉兜底（未放图时用的程序化夕阳海面） */
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 62% at 62% 46%, rgba(255, 214, 150, 0.95) 0%, rgba(255, 156, 84, 0.55) 18%, rgba(60, 96, 140, 0.15) 46%, transparent 62%),
    radial-gradient(90% 40% at 50% 88%, rgba(10, 46, 76, 0.9) 0%, transparent 70%),
    linear-gradient(180deg, #1b3350 0%, #2f4a63 26%, #b06a44 50%, #6b4a45 64%, #0d2237 82%, #050e18 100%);
}
.hero-fallback::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(255, 170, 90, 0.28), rgba(6, 20, 34, 0.92));
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.72) 0%, rgba(4, 10, 18, 0.18) 26%, rgba(4, 10, 18, 0.55) 62%, rgba(5, 11, 20, 0.97) 94%, var(--bg-0) 100%);
}
.home-hero__slogan {
  position: absolute;
  right: 16px;
  top: 22%;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  color: #eaf6ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.home-hero__slogan b { font-weight: 600; }
.home-hero__slogan .u {
  display: inline-block;
  margin-top: 2px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--teal-2);
}

.home-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  text-align: center;
}
.home-title__main {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #ffffff 4%, #d8ecfa 34%, #8fb6d4 62%, #ffffff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(10, 30, 48, 0.9)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
  transform: perspective(320px) rotateX(9deg);
}
.home-title__sub {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: #cfe4f2;
}
.home-title__sub::before,
.home-title__sub::after { content: "——"; margin: 0 6px; color: var(--teal-2); opacity: 0.7; }

/* 首页顶栏 */
.hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: calc(var(--safe-top) + 10px) 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 5;
}
.hud-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(236, 205, 133, 0.85);
  background: linear-gradient(160deg, #2b4a63, #16293a);
  overflow: hidden;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.hud-who { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; min-width: 0; }
.hud-who__row { display: flex; align-items: center; gap: 6px; }
.hud-who__name { font-size: 13px; font-weight: 600; color: #eaf6ff; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.hud-balance {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 26, 40, 0.82);
  border: 1px solid var(--panel-line-strong);
}
.hud-balance__num { font-size: 16px; font-weight: 800; color: var(--gold-2); letter-spacing: 0.5px; }
.hud-balance__unit { font-size: 11px; color: var(--tx-2); margin-left: 2px; }
.hud-bell { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.hud-bell::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: #ff4d45;
  box-shadow: 0 0 8px #ff4d45;
}

/* 首页主体 */
.home-body {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: -26px;
  padding: 0 14px calc(var(--safe-bottom) + 74px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
}

.room-card { padding: 14px; }
.room-head { display: flex; align-items: baseline; gap: 8px; }
.room-head__label { font-size: 14px; color: var(--tx-2); }
.room-head__count { font-size: 22px; font-weight: 900; color: var(--gold-2); }
.room-head__slash { font-size: 14px; color: var(--tx-3); }
.room-head__wait { margin-left: auto; font-size: 12px; color: var(--tx-3); }

.room-players { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.p-slot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: linear-gradient(160deg, #26455e, #132433);
  border: 1.5px solid rgba(130, 200, 220, 0.25);
}
.p-slot--filled { border-color: rgba(236, 205, 133, 0.5); }
.p-slot--empty { border-style: dashed; border-color: rgba(140, 190, 210, 0.32); background: rgba(10, 26, 40, 0.5); }
.p-slot--me { border-color: var(--teal-1); box-shadow: 0 0 12px rgba(111, 240, 228, 0.55); }

/* 档位 */
.stake-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(6, 20, 33, 0.8);
  border: 1px solid var(--panel-line);
}
.stake {
  text-align: center;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx-2);
  border-radius: 999px;
  transition: all 0.16s ease;
}
.stake--on {
  color: #33230a;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  box-shadow: 0 3px 14px rgba(207, 160, 74, 0.5);
  transform: translateY(-1px);
}

.bounty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bounty {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px;
  border-radius: var(--radius-s);
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.bounty__medal { font-size: 24px; line-height: 1; }
.bounty__meta { display: flex; flex-direction: column; }
.bounty__rank { font-size: 11px; color: var(--tx-3); }
.bounty__val { font-size: 17px; font-weight: 900; color: var(--gold-2); }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-radius: var(--radius-m);
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.quick__icon { font-size: 26px; }
.quick__title { font-size: 14px; font-weight: 700; }
.quick__sub { font-size: 11px; color: var(--tx-3); margin-top: 2px; }
.quick__big { font-size: 20px; font-weight: 900; color: var(--gold-2); }
.quick--task .quick__big { font-size: 13px; color: var(--teal-1); font-weight: 700; }

.section-title { display: flex; align-items: center; margin-bottom: 2px; }
.section-title__t { font-size: 13.5px; font-weight: 700; color: var(--tx-1); }
.section-title__more { margin-left: auto; font-size: 11.5px; color: var(--tx-3); }

/* ---------------- 底部 TabBar ---------------- */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(var(--safe-bottom) + 6px);
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.82) 0%, rgba(4, 12, 21, 0.98) 46%, #03080f 100%);
  border-top: 1px solid rgba(120, 205, 225, 0.14);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px;
  color: var(--tx-3);
  padding: 4px 0;
}
.tab__icon { font-size: 19px; filter: grayscale(0.65) opacity(0.7); transition: all 0.16s ease; }
.tab--on { color: var(--gold-2); font-weight: 700; }
.tab--on .tab__icon { filter: none; transform: translateY(-1px) scale(1.06); }

/* ---------------- 对局屏 ---------------- */
#s-match { background: #04101c; }

.match-stage { position: absolute; inset: 0; }
.match-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 局内顶栏 */
.m-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: calc(var(--safe-top) + 6px) 10px 0;
  z-index: 8;
}
.m-players { display: flex; gap: 5px; justify-content: space-between; }
.m-p {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0;
}
.m-p__av {
  width: 100%; aspect-ratio: 1;
  max-width: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: linear-gradient(160deg, #26455e, #132433);
  border: 1.5px solid rgba(130, 200, 220, 0.22);
  position: relative;
}
.m-p--me .m-p__av { border-color: var(--teal-1); box-shadow: 0 0 10px rgba(111, 240, 228, 0.7); }
.m-p--out .m-p__av { filter: grayscale(1) brightness(0.5); border-color: rgba(255, 90, 82, 0.6); }
.m-p--out .m-p__av::after {
  content: "✕"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #ff5a52; font-size: 17px; font-weight: 900; text-shadow: 0 0 6px #000;
}
.m-p__idx { font-size: 9.5px; color: var(--tx-3); }

.m-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.match--solo .m-bar { gap: 5px; }
.match--solo .m-bar > .m-chip:first-child { padding-inline: 8px; font-size: 11px; }
.match--solo .m-bar > .m-chip--free { padding-inline: 8px; font-size: 11px; }
.match--solo .m-timer { font-size: 26px; letter-spacing: 1px; }
.m-exit-btn {
  flex: 0 0 auto; min-width: 48px; min-height: 44px; padding: 0 9px;
  border: 1px solid rgba(255, 138, 122, .58); border-radius: 12px;
  color: #ffd7cf; background: rgba(56, 22, 26, .9);
  font: inherit; font-size: 12px; font-weight: 700;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.m-exit-btn:active { transform: scale(.95); background: rgba(110, 35, 38, .96); }
.m-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(6, 20, 33, 0.82);
  border: 1px solid var(--panel-line-strong);
}
.m-chip--gold { color: var(--gold-2); }
.m-chip--gold b { font-size: 15px; }
.m-timer {
  margin: 0 auto;
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 18px rgba(111, 240, 228, 0.6), 0 2px 6px #000;
}
.m-timer--low { color: #ff8a7a; text-shadow: 0 0 20px rgba(255, 90, 82, 0.8), 0 2px 6px #000; animation: pulse-glow 0.9s infinite; }

/* 实时排名面板 */
.m-rank {
  position: absolute;
  right: 10px;
  top: calc(var(--safe-top) + 112px);
  width: 148px;
  padding: 9px 10px 7px;
  border-radius: 14px;
  background: rgba(6, 20, 33, 0.8);
  border: 1px solid var(--panel-line-strong);
  backdrop-filter: blur(8px);
  z-index: 8;
}
.m-rank__head { display: flex; align-items: center; font-size: 10.5px; color: var(--tx-3); margin-bottom: 5px; }
.m-rank__head b { color: var(--gold-2); font-size: 11px; }
.m-rank__row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 5px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 2px;
  transition: background 0.3s ease;
}
.m-rank__row--me { background: linear-gradient(90deg, rgba(47, 208, 200, 0.28), rgba(47, 208, 200, 0.05)); box-shadow: inset 0 0 0 1px rgba(111, 240, 228, 0.4); }
.m-rank__no { width: 13px; color: var(--tx-3); font-weight: 700; font-size: 11px; }
.m-rank__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-2); }
.m-rank__row--me .m-rank__name { color: #fff; font-weight: 700; }
.m-rank__score { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; }

/* 左侧鱼体力竖条 */
.m-gauge-l {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-46%);
  width: 54px;
  padding: 10px 0 8px;
  border-radius: 14px;
  background: rgba(6, 20, 33, 0.76);
  border: 1px solid var(--panel-line-strong);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 8;
}
.m-gauge-l__label { font-size: 10.5px; color: var(--tx-2); }
.m-gauge-l__val { font-size: 17px; font-weight: 900; color: var(--teal-1); font-variant-numeric: tabular-nums; }
.m-gauge-l__track {
  width: 11px; height: 118px;
  border-radius: 999px;
  background: rgba(4, 15, 25, 0.9);
  border: 1px solid rgba(120, 205, 225, 0.2);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.m-gauge-l__fill {
  width: 100%;
  background: linear-gradient(180deg, var(--teal-1), var(--teal-3));
  box-shadow: 0 0 10px rgba(111, 240, 228, 0.6);
  transition: height 0.1s linear;
}
.m-gauge-l__foot { font-size: 15px; }
.m-gauge-l--tired .m-gauge-l__val { color: var(--gold-2); }

/* 右侧张力表盘 */
.m-gauge-r {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-42%);
  z-index: 8;
  width: 176px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.m-gauge-r__cap {
  font-size: 11px;
  color: var(--tx-2);
  margin-bottom: 0;
  margin-right: 10px;
  text-shadow: 0 1px 4px #000;
}
.m-gauge-r svg { width: 176px; height: 158px; overflow: visible; }
.m-gauge-r__hint {
  font-size: 10px; text-align: right; line-height: 1.4;
  color: var(--tx-3);
  margin-top: -6px;
}
.m-gauge-r--danger .m-gauge-r__cap { color: #ff8a7a; font-weight: 700; }

/* 鱼名牌 */
.m-fishname {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 7;
  pointer-events: none;
}
.m-fishname__t {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #eaf6ff;
  background: rgba(4, 16, 28, 0.66);
  border: 1px solid rgba(150, 215, 235, 0.35);
  text-shadow: 0 1px 6px #000;
  backdrop-filter: blur(4px);
}
.m-fishname__rarity {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-top: 6px;
  display: inline-block;
  background: linear-gradient(180deg, #f7e6b4, #cfa04a);
  color: #33230a;
}
.m-fishname__rarity--epic { background: linear-gradient(180deg, #d7b6ff, #8f5cf0); color: #fff; }
.m-fishname__rarity--legend { background: linear-gradient(180deg, #ffd9a0, #ff6a3d); color: #2b1005; }

/* 提示条 */
.m-toast {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translateX(-50%);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #eaf6ff;
  background: rgba(4, 16, 28, 0.74);
  border: 1px solid rgba(150, 215, 235, 0.28);
  white-space: nowrap;
  z-index: 8;
  transition: opacity 0.3s ease;
}

/* 玩家体力条 */
.m-stamina {
  position: absolute;
  left: 14px; right: 14px;
  bottom: calc(var(--safe-bottom) + 172px);
  display: flex; align-items: center; gap: 9px;
  z-index: 8;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(4, 16, 28, 0.7);
  border: 1px solid var(--panel-line-strong);
  backdrop-filter: blur(6px);
}
.m-stamina__icon { font-size: 15px; }
.m-stamina__label { font-size: 12px; color: var(--tx-2); }
.m-stamina__track {
  flex: 1; height: 9px; border-radius: 999px;
  background: rgba(3, 12, 20, 0.9);
  border: 1px solid rgba(120, 205, 225, 0.22);
  overflow: hidden;
}
.m-stamina__fill {
  height: 100%; width: 68%;
  background: linear-gradient(90deg, var(--teal-1), #29b6c9);
  box-shadow: 0 0 10px rgba(111, 240, 228, 0.5);
  transition: width 0.1s linear;
}
.m-stamina__val { font-size: 12.5px; font-weight: 700; color: var(--teal-1); font-variant-numeric: tabular-nums; }

/* 底部控制区 */
.m-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--safe-bottom) + 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 9;
}
.ctl {
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  border: 2px solid rgba(150, 220, 240, 0.45);
  background: radial-gradient(circle at 50% 32%, rgba(24, 62, 88, 0.92), rgba(5, 18, 30, 0.95));
  color: #dff2fb;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.08s ease, box-shadow 0.16s ease;
}
.ctl__icon { font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ctl__icon svg { width: 26px; height: 26px; display: block; }
.ctl--sm { width: 74px; height: 74px; }
.ctl--sm:active, .ctl--sm.is-down { transform: scale(0.94); box-shadow: 0 0 20px rgba(111, 240, 228, 0.5); }

.ctl--main {
  width: 112px; height: 112px;
  border-color: rgba(236, 205, 133, 0.85);
  background: radial-gradient(circle at 50% 30%, rgba(90, 72, 30, 0.95), rgba(14, 26, 36, 0.98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), inset 0 0 24px rgba(236, 205, 133, 0.22), 0 0 0 6px rgba(236, 205, 133, 0.1);
}
.ctl--main .ctl__icon svg { width: 40px; height: 40px; }
.ctl--main .ctl__label { font-size: 13.5px; letter-spacing: 1px; }
.ctl--main.is-down {
  transform: scale(0.95);
  box-shadow: 0 0 34px rgba(236, 205, 133, 0.75), inset 0 0 34px rgba(236, 205, 133, 0.4), 0 0 0 8px rgba(236, 205, 133, 0.16);
}
.ctl--burst {
  border-color: rgba(255, 138, 90, 0.8);
  background: radial-gradient(circle at 50% 30%, rgba(120, 40, 20, 0.95), rgba(20, 8, 6, 0.98));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(255, 120, 60, 0.3);
}
.ctl--burst.is-on { animation: burst-glow 0.5s ease-in-out infinite alternate; }
@keyframes burst-glow {
  from { box-shadow: 0 0 14px rgba(255, 120, 60, 0.5); }
  to { box-shadow: 0 0 34px rgba(255, 150, 80, 0.95); }
}
.ctl.is-disabled { filter: grayscale(0.8) brightness(0.55); }

.m-footnote {
  position: absolute;
  left: 16px;
  bottom: calc(var(--safe-bottom) + 8px);
  font-size: 10.5px;
  color: var(--teal-2);
  display: flex; align-items: center; gap: 5px;
  z-index: 9;
}
.m-footnote i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-1);
  box-shadow: 0 0 8px var(--teal-1);
  animation: pulse-glow 1.4s infinite;
}
.m-quit {
  position: absolute;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 6px);
  font-size: 11px;
  color: var(--tx-3);
  z-index: 9;
  padding: 4px 8px;
}

/* 飘分 */
.float-score {
  position: absolute;
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 12;
  animation: float-up 1.1s ease-out forwards;
}
@keyframes float-up {
  from { opacity: 1; transform: translate(-50%, 0) scale(0.9); }
  to { opacity: 0; transform: translate(-50%, -66px) scale(1.25); }
}
.m-flash {
  position: absolute; inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 82, 0.5), transparent 62%);
  animation: flash-out 0.5s ease-out forwards;
}
.m-flash--good { background: radial-gradient(circle at 50% 50%, rgba(111, 240, 228, 0.45), transparent 62%); }
@keyframes flash-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------------- 结算屏 ---------------- */
#s-result {
  background:
    radial-gradient(110% 50% at 50% 0%, rgba(236, 205, 133, 0.16), transparent 62%),
    var(--bg-0);
}
.rs-body { flex: 1; min-height: 0; overflow-y: auto; padding: calc(var(--safe-top) + 26px) 16px calc(var(--safe-bottom) + 18px); }
.rs-crown { text-align: center; font-size: 46px; line-height: 1; }
.rs-rank { text-align: center; margin-top: 6px; }
.rs-rank__no { font-size: 40px; font-weight: 900; color: var(--gold-2); text-shadow: 0 0 26px rgba(236, 205, 133, 0.6); }
.rs-rank__label { font-size: 13px; color: var(--tx-2); margin-top: 2px; }
.rs-score { text-align: center; font-size: 34px; font-weight: 900; color: #fff; margin-top: 10px; font-variant-numeric: tabular-nums; }
.rs-score small { font-size: 12px; color: var(--tx-3); font-weight: 500; margin-left: 6px; }

.rs-prize {
  margin-top: 18px;
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(236, 205, 133, 0.14), rgba(9, 24, 37, 0.6));
  border: 1px solid rgba(236, 205, 133, 0.34);
}
.rs-prize__label { font-size: 12px; color: var(--tx-2); }
.rs-prize__val { font-size: 32px; font-weight: 900; color: var(--gold-2); margin-top: 2px; }

.rs-list { margin-top: 16px; }
.rs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  margin-bottom: 7px;
  font-size: 13px;
}
.rs-row--me { border-color: rgba(111, 240, 228, 0.55); background: rgba(20, 60, 74, 0.6); }
.rs-row__no { width: 20px; color: var(--tx-3); font-weight: 700; }
.rs-row__av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; background: linear-gradient(160deg, #26455e, #132433); }
.rs-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-row__score { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; }
.rs-row__tag { font-size: 10.5px; color: var(--tx-3); }

.rs-actions { display: flex; gap: 10px; margin-top: 18px; }
.rs-actions > * { flex: 1; }
.disclaimer { margin-top: 14px; text-align: center; font-size: 10.5px; color: var(--tx-3); line-height: 1.6; }

/* ---------------- 鱼库 ---------------- */
#s-dex { background: var(--bg-0); }
.dex-head { padding: calc(var(--safe-top) + 14px) 16px 10px; }
.dex-title { font-size: 20px; font-weight: 900; }
.dex-sub { font-size: 11.5px; color: var(--tx-3); margin-top: 3px; }
.dex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px calc(var(--safe-bottom) + 74px); }
.dex-card {
  padding: 12px;
  border-radius: var(--radius-m);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  display: flex; gap: 10px; align-items: center;
}
.dex-card--locked { opacity: 0.42; filter: grayscale(0.8); }
.dex-card__icon { font-size: 30px; }
.dex-card__name { font-size: 13.5px; font-weight: 700; }
.dex-card__meta { font-size: 11px; color: var(--tx-3); margin-top: 3px; }
.dex-card__val { font-size: 12px; color: var(--gold-2); font-weight: 700; margin-top: 2px; }

/* ---------------- 通用占位屏 ---------------- */
.stub {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 0 30px;
  text-align: center;
}
.stub__icon { font-size: 52px; opacity: 0.85; }
.stub__title { font-size: 17px; font-weight: 800; }
.stub__desc { font-size: 12.5px; color: var(--tx-3); line-height: 1.7; }

.batch-fishing{padding:12px;color:var(--text,#e5f5ff)}
.batch-fishing summary{min-height:44px;cursor:pointer;font-weight:700}
.batch-fishing p{font-size:12px;line-height:1.6}
.batch-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.batch-fishing>button{width:100%;min-height:44px;margin-bottom:8px}
.batch-counts button{min-height:44px;font-size:13px;padding:8px 4px}
.batch-result{overflow-wrap:anywhere;font-size:13px;margin-bottom:12px}
.match-batch-fishing{position:absolute;z-index:26;top:calc(var(--safe-top) + 92px);right:10px;width:min(290px,calc(100vw - 20px));max-height:58vh;overflow:auto;border:1px solid rgba(79,214,200,.5);border-radius:14px;background:rgba(4,20,31,.94);box-shadow:0 8px 30px rgba(0,0,0,.4)}
.match-batch-fishing[open]{z-index:35}
.match-batch-fishing summary{padding:8px 10px}
.match-batch-fishing p{font-size:12px}

