/* 雾港渔事 · 前端样式
   视觉语言：夜港、雾、黄铜灯、旧木与铅灰的水。全部原创，无外部素材。 */

:root {
  --bg: #071013;
  --bg-2: #0a171a;
  --panel: #0b1a1d;
  --panel-2: #0e2023;
  --line: #1a2f31;
  --line-2: #24403f;
  --text: #ece3d2;
  --text-dim: #c3bfae;
  --muted: #8ba39f;
  --faint: #607873;
  --brass: #d8a64b;
  --brass-2: #f1cf8d;
  --teal: #4f918a;
  --teal-2: #8cc8bd;
  --coral: #d87b5e;
  --danger: #cc5b4d;
  --ok: #6fd3a6;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --r: 12px;
}

* { box-sizing: border-box; }
html { height: 100%; --kb-offset: 0px; }
body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; caret-color: var(--brass-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brass-2); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(216, 166, 75, .3); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }

/* ── 启动页 ─────────────────────────────────────────────── */
.boot {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 10px; background: radial-gradient(900px 520px at 50% 30%, #123032, #071013 70%);
  z-index: 50; transition: opacity .5s ease, visibility .5s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark { font-size: 30px; color: var(--brass); animation: breathe 2.4s ease-in-out infinite; }
.boot-title { font-family: var(--serif); font-size: 26px; letter-spacing: .12em; }
.boot-sub { font-size: 12px; color: var(--muted); letter-spacing: .2em; }
@keyframes breathe { 0%, 100% { opacity: .45; transform: rotate(45deg) scale(.9); } 50% { opacity: 1; transform: rotate(45deg) scale(1.05); } }

/* ── 登录 ───────────────────────────────────────────────── */
.login {
  position: fixed; inset: 0; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  background: radial-gradient(1200px 700px at 30% 10%, rgba(79, 145, 138, .16), transparent 60%), #050e10;
}
.login-left { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 7vh 5vw; }
.login-right { display: grid; place-content: center; padding: 40px 6vw; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 26, 29, .6), rgba(7, 16, 19, .95)); overflow-y: auto; max-height: 100vh; }
.login-brand { position: absolute; top: 5vh; left: 5vw; display: flex; align-items: center; gap: 12px; }
.login-brand .mark { width: 34px; height: 34px; border: 1px solid var(--brass); display: grid; place-items: center; transform: rotate(45deg); color: var(--brass); font-size: 13px; }
.login-brand .mark span { transform: rotate(-45deg); }
.login-brand b { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: .1em; }
.login-brand small { display: block; font: 10px var(--mono); color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.login-copy { position: relative; z-index: 3; max-width: 560px; }
.login-copy .eyebrow { font: 10px var(--mono); letter-spacing: .26em; color: var(--brass); text-transform: uppercase; }
.login-copy h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 76px); line-height: 1.06; margin: 14px 0 18px; font-weight: 500; letter-spacing: .02em; }
.login-copy h1 em { font-style: normal; color: var(--brass-2); }
.login-copy p { color: #b9c7c2; font-size: 15px; max-width: 430px; line-height: 1.75; }
.login-copy .facts { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.login-copy .facts b { display: block; font-family: var(--serif); font-size: 22px; color: var(--brass-2); }
.login-copy .facts span { font-size: 11px; color: var(--muted); }
.login-scene { position: absolute; inset: 0; }
.login-scene .moon { position: absolute; right: 12%; top: 14%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #f3dfaa, #c69745 48%, rgba(216, 166, 75, .02) 72%); box-shadow: 0 0 90px rgba(216, 166, 75, .18); opacity: .8; }
.login-scene .pier { position: absolute; left: -6%; bottom: -8%; width: 80%; height: 42%; background: linear-gradient(165deg, #1d2a28, #101816 58%, #080f0e); clip-path: polygon(0 44%, 84% 16%, 100% 24%, 90% 100%, 0 100%); }
.login-scene .pier::before { content: ""; position: absolute; left: 6%; right: 20%; top: 38%; height: 1px; background: rgba(216, 166, 75, .22); box-shadow: 0 12px 0 rgba(216, 166, 75, .1), 0 24px 0 rgba(216, 166, 75, .06), 0 36px 0 rgba(216, 166, 75, .03); }
.login-scene .post { position: absolute; bottom: 16%; width: 9px; background: linear-gradient(180deg, #2b3a35, #0a1210); }
.login-scene .post.p1 { left: 16%; height: 26%; }
.login-scene .post.p2 { left: 31%; height: 19%; opacity: .85; }
.login-scene .post.p3 { left: 46%; height: 13%; opacity: .6; }
.login-scene .lamp { position: absolute; left: 52%; bottom: 34%; width: 11px; height: 11px; border-radius: 50%; background: #f9d785; box-shadow: 0 0 24px 10px rgba(249, 215, 133, .35), 0 0 80px 30px rgba(216, 166, 75, .1); }
.login-scene .lamp::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 34px; background: #3d4b43; }
.login-scene .wl { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: repeating-linear-gradient(180deg, rgba(137, 190, 180, .06) 0 1px, transparent 1px 14px), linear-gradient(180deg, rgba(79, 145, 138, .12), rgba(2, 10, 12, .75)); }
.login-scene .fog { position: absolute; left: -25%; right: -25%; height: 34%; background: radial-gradient(ellipse at center, rgba(190, 214, 205, .14), transparent 66%); filter: blur(22px); animation: fogdrift 22s ease-in-out infinite alternate; }
.login-scene .fog.f1 { top: 18%; }
.login-scene .fog.f2 { top: 48%; opacity: .55; animation-duration: 31s; animation-delay: -9s; }
@keyframes fogdrift { from { transform: translateX(-5%) } to { transform: translateX(6%) } }

.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.login-tabs { display: flex; gap: 4px; padding: 4px; background: #091619; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.login-tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 9px 6px; border-radius: 7px; font-size: 12.5px; }
.login-tabs button.active { background: rgba(216, 166, 75, .12); color: var(--brass-2); box-shadow: inset 0 0 0 1px rgba(216, 166, 75, .25); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font: 10px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; background: #071416; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 11px 12px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79, 145, 138, .15); }
.form-note { font-size: 11.5px; color: var(--faint); margin: 10px 0 0; line-height: 1.6; }
.form-error { color: var(--coral); font-size: 12px; min-height: 18px; margin: 8px 0 0; }
.alt-line { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.alt-line a { color: var(--teal-2); }

/* ── 按钮 ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, #12272a, #0c1c1f);
  color: var(--text); border-radius: 9px; padding: 10px 16px; font-size: 13px;
  transition: transform .08s, filter .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { border-color: #35605c; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; filter: none; }
.btn-primary { border-color: #e2b55e; background: linear-gradient(180deg, #e4b85d, #c69236); color: #1b1207; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.06); border-color: #f0c977; }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 10px; font-size: 11.5px; border-radius: 7px; }
.btn-danger { border-color: #7a3b32; color: #f0b3a6; background: linear-gradient(180deg, #2a1a17, #1d1210); }
.btn-wide { width: 100%; }
.btn-cast {
  min-width: 180px; border: 1px solid #e2b55e; background: linear-gradient(180deg, #e4b85d, #c69236);
  color: #1b1207; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(216, 166, 75, .16);
}
.btn-cast small { display: block; font: 9px var(--mono); font-weight: 400; color: rgba(27, 18, 7, .68); letter-spacing: .1em; margin-top: 2px; }
.btn-cast:disabled { opacity: .45; box-shadow: none; }

/* ── 通用块 ─────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px;
  border: 1px solid #2b4446; color: #a9c0bb; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .2); white-space: nowrap;
}
.chip.gold { color: #efca82; border-color: rgba(216, 166, 75, .42); }
.chip.teal { color: #9bd2c9; border-color: rgba(79, 145, 138, .45); }
.chip.coral { color: #f0b09a; border-color: rgba(216, 123, 94, .45); }
.chip.ok { color: #a5e6c8; border-color: rgba(111, 211, 166, .4); }
.tag { display: inline-flex; align-items: center; font-size: 10px; padding: 2px 7px; border-radius: 4px; border: 1px solid; letter-spacing: .04em; }
.r-common { color: #b9cbc5; border-color: #47605e; background: rgba(159, 182, 173, .08); }
.r-uncommon { color: #7fe0cd; border-color: #34756b; background: rgba(111, 211, 193, .08); }
.r-fine { color: #7fb8e8; border-color: #3f6d93; background: rgba(127, 184, 232, .09); }
.r-rare { color: #f0cd7c; border-color: #7d6330; background: rgba(232, 194, 106, .09); }
.r-epic { color: #f2a785; border-color: #86452f; background: rgba(229, 138, 92, .1); }
.r-legendary { color: #f8ebbb; border-color: #9a8245; background: rgba(246, 230, 166, .12); box-shadow: 0 0 18px rgba(246, 230, 166, .12); }
.r-mythic { color: #e8a6e6; border-color: #8a4d88; background: rgba(232, 166, 230, .11); box-shadow: 0 0 18px rgba(232, 166, 230, .1); }
.r-strange { color: #a6f0c0; border-color: #4c8a60; background: rgba(166, 240, 192, .1); box-shadow: 0 0 18px rgba(166, 240, 192, .1); }
.r-arcane { color: #d6b4ff; border-color: #7250a8; background: rgba(214, 180, 255, .12); box-shadow: 0 0 20px rgba(214, 180, 255, .14); }
.card { background: linear-gradient(180deg, rgba(14, 32, 35, .92), rgba(9, 22, 25, .92)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.65; }
.callout { border-left: 2px solid var(--brass); background: rgba(216, 166, 75, .06); padding: 12px 16px; border-radius: 0 8px 8px 0; color: #cabfa9; font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; background: rgba(10, 23, 26, .6); }
.stat .k { font: 9.5px var(--mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.stat .v { font-family: var(--serif); font-size: 24px; color: var(--brass-2); margin: 2px 0 1px; }
.stat .s { font-size: 11px; color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 12px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0; }
.section-head p { color: var(--muted); font-size: 12px; margin: 0; max-width: 560px; }
.section-head .no { font: 9.5px var(--mono); letter-spacing: .16em; color: var(--brass); text-transform: uppercase; }
.empty { border: 1px dashed var(--line-2); border-radius: 10px; padding: 28px; text-align: center; color: var(--muted); font-size: 12.5px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }

/* ── 顶部栏 ─────────────────────────────────────────────── */
.app { height: 100%; display: flex; flex-direction: column; background: radial-gradient(1100px 620px at 55% -10%, rgba(79, 145, 138, .1), transparent 62%), var(--bg); }
.topbar {
  height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0e1d20, #0a1619); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 16px; white-space: nowrap; letter-spacing: .05em; }
.brand .mark { width: 23px; height: 23px; border: 1px solid var(--brass); display: grid; place-items: center; transform: rotate(45deg); font-size: 9px; color: var(--brass); }
.brand .mark span { transform: rotate(-45deg); }
.brand small { display: block; font: 8.5px var(--mono); letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.loc { font-size: 11px; color: var(--muted); border-left: 1px solid #22383a; padding-left: 16px; white-space: nowrap; }
.loc b { color: var(--text); font-weight: 600; }
.hud { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hud-item { display: flex; align-items: center; gap: 6px; font: 11px var(--mono); color: #d9c9aa; white-space: nowrap; }
.hud-item .ico { color: var(--brass); font-size: 12px; }
.hud-ico { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; }
.hud-ico .cur-svg { width: 18px; height: 18px; display: block; overflow: visible; }
.hud-ico.gold { filter: drop-shadow(0 0 3px rgba(232, 185, 92, .32)); }
.hud-ico.pearl { filter: drop-shadow(0 0 4px rgba(177, 238, 220, .42)); }
.chip .cur-svg, .chip .mat-svg { width: 14px; height: 14px; flex: 0 0 14px; }
.chest-cost { display: inline-flex; align-items: center; gap: 4px; }
.chest-cost .cur-svg { width: 14px; height: 14px; }
.pearl-item-top span { display: inline-flex; align-items: center; gap: 4px; }
.pearl-item-top .cur-svg { width: 13px; height: 13px; }
.btn .cur-svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.energy-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.energy-bar { width: 96px; height: 5px; border-radius: 5px; background: #1c3134; overflow: hidden; }
.energy-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4f918a, #8cc8bd); transition: width .4s; }
.energy-timer { font: 8.5px var(--mono); color: var(--faint); letter-spacing: .04em; }
.hud-level { display: flex; align-items: center; gap: 8px; }
.lvl-ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 11px var(--mono); color: var(--brass-2); background: conic-gradient(var(--brass) calc(var(--p, 0) * 1%), #1c3134 0); position: relative; }
.lvl-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0b1a1d; }
.lvl-ring b { position: relative; z-index: 1; font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #365d59, #203a3a); border: 1px solid #4f918a; display: grid; place-items: center; font: 10px var(--serif); color: #f3e5c7; }

/* ── 布局 ───────────────────────────────────────────────── */
.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr) 292px; }
.nav { border-right: 1px solid var(--line); background: #0a171a; padding: 16px 11px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-group { font: 8.5px var(--mono); letter-spacing: .16em; color: #5e7775; text-transform: uppercase; padding: 8px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #91a7a4; font-size: 12.5px; border: 1px solid transparent; background: none; text-align: left; width: 100%; }
.nav-item:hover { background: rgba(255, 255, 255, .03); color: #d3e0dc; }
.nav-item .ic { width: 16px; text-align: center; color: #6d8a87; font-size: 13px; }
.nav-item.active { background: rgba(216, 166, 75, .1); border-color: rgba(216, 166, 75, .22); color: #f1cf8d; }
.nav-item.active .ic { color: var(--brass); }
.nav-item .badge { margin-left: auto; font: 8px var(--mono); background: #203b3b; color: #a9c9c3; border-radius: 4px; padding: 2px 5px; }
.nav-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }

.main { min-width: 0; overflow-y: auto; position: relative; background: #071215; scroll-behavior: smooth; }
.view { padding: 20px 22px 40px; max-width: 1180px; }
.view-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.view-head h1 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; letter-spacing: .02em; }
.view-head .sub { font-size: 12px; color: var(--muted); }
.view-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.rail { border-left: 1px solid var(--line); background: #091518; display: flex; flex-direction: column; min-height: 0; }
.rail-close { display: none; }
.rail-close svg { width: 16px; height: 16px; }
.rail-card { padding: 14px; border-bottom: 1px solid var(--line); }
.rail-title { display: flex; align-items: center; justify-content: space-between; font: 9.5px var(--mono); letter-spacing: .16em; color: var(--faint); text-transform: uppercase; margin-bottom: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }
.presence { display: flex; flex-direction: column; gap: 7px; max-height: 150px; overflow-y: auto; }
.presence-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #c4d3cd; }
.presence-row .dot { width: 5px; height: 5px; border-radius: 50%; background: #5c8b83; }
.presence-name { color: inherit; text-decoration: none; }
.presence-name:hover { color: var(--brass-2); }
.presence-row .lvl { margin-left: auto; font: 9px var(--mono); color: var(--faint); }
.online-count { font: 9.5px var(--mono); color: #7fa59d; }
.activity { display: flex; flex-direction: column; gap: 9px; max-height: 190px; overflow-y: auto; }
.activity-row { font-size: 11.5px; color: #b6c6c0; line-height: 1.45; border-left: 1px solid #24403f; padding-left: 9px; }
.activity-row .t { display: block; font: 8.5px var(--mono); color: #5e7775; margin-top: 2px; }
.chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-log { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.chat-msg { font-size: 12px; line-height: 1.5; color: #cbd8d2; }
.chat-msg b { color: var(--brass-2); font-weight: 500; }
.chat-msg .who { font-size: 11px; color: #86a49c; text-decoration: none; border-bottom: 1px dotted rgba(134,164,156,.45); }
.chat-msg .who:hover { color: var(--brass-2); border-bottom-color: var(--brass-2); }
.chat-msg .sys { color: #8fd0c2; font-style: italic; }
.chat-form { display: flex; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1 1 auto; min-width: 0; padding: 9px 10px; font-size: 12px; }
.chat-form button { flex: 0 0 auto; }

/* 全港口闲聊页 */
.chat-page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.chat-page-panel { display: flex; flex-direction: column; height: min(66vh, 620px); min-height: 420px; }
.chat-page-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-page-msg { border-left: 2px solid rgba(79, 145, 138, .22); padding-left: 10px; }
.chat-page-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.chat-page-meta .who { color: #a9d4d6; text-decoration: none; border-bottom: 1px dotted rgba(134, 164, 156, .4); }
.chat-page-meta .who:hover { color: var(--brass-2); }
.chat-page-time { margin-left: auto; font: 8.5px var(--mono); color: var(--faint); white-space: nowrap; }
.chat-page-body { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: #d3dfd9; overflow-wrap: anywhere; }
.chat-page-form { display: flex; gap: 7px; padding: 11px 14px 8px; border-top: 1px solid var(--line); background: rgba(8, 19, 22, .55); }
.chat-page-form input { flex: 1 1 auto; min-width: 0; padding: 9px 10px; font-size: 13px; }
.chat-page-form button { flex: 0 0 auto; }
.chat-page-note { padding: 0 14px 11px; font: 9px var(--mono); color: var(--faint); }
.chat-page-people { max-height: min(66vh, 620px); }
.chat-page-people-list { max-height: calc(min(66vh, 620px) - 46px); overflow-y: auto; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.chat-page-person { display: flex; align-items: center; gap: 6px; padding: 7px 4px; border-bottom: 1px solid rgba(26, 47, 49, .6); min-width: 0; font-size: 11px; }
.chat-page-person .who { color: #c4d3cd; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-page-person .who:hover { color: var(--brass-2); }
.chat-page-person .title-badge { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-page-water { margin-left: auto; font: 8px var(--mono); color: var(--faint); white-space: nowrap; }
.chat-page-person .lvl { flex: 0 0 auto; font: 8px var(--mono); color: var(--muted); }

/* ── 钓鱼场景 ───────────────────────────────────────────── */
.fishing { display: flex; flex-direction: column; min-height: 100%; }
.scene {
  position: relative; flex: 1; min-height: 420px; overflow: hidden; border-radius: 14px;
  border: 1px solid #1b3234;
  background: linear-gradient(180deg, #1a3033 0%, #143033 22%, #0d262a 54%, #071819 100%);
  isolation: isolate;
}
.scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 74% 12%, rgba(216, 166, 75, .16), transparent 30%), radial-gradient(ellipse at 50% 55%, rgba(79, 145, 138, .13), transparent 58%); z-index: 0; }
.scene .fog { position: absolute; left: -20%; right: -20%; height: 36%; background: radial-gradient(ellipse at center, rgba(190, 214, 205, .13), transparent 66%); filter: blur(18px); z-index: 1; animation: fogdrift 18s ease-in-out infinite alternate; pointer-events: none; }
.scene .fog.f1 { top: 12%; }
.scene .fog.f2 { top: 46%; opacity: .55; animation-duration: 27s; animation-delay: -8s; }
.scene .moon { position: absolute; right: 11%; top: 9%; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #f3dfaa, #c69745 48%, rgba(216, 166, 75, .03) 72%); box-shadow: 0 0 60px rgba(216, 166, 75, .18); opacity: .78; z-index: 1; }
.scene .horizon { position: absolute; left: 0; right: 0; top: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(150, 190, 180, .35), transparent); z-index: 2; }
.scene .waterline { position: absolute; left: 0; right: 0; top: 42%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(137, 190, 180, .05) 0 1px, transparent 1px 14px), linear-gradient(180deg, rgba(79, 145, 138, .14), rgba(2, 10, 12, .72)); z-index: 1; }
.scene .waterline::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(102deg, transparent 0 36px, rgba(216, 166, 75, .04) 36px 37px); opacity: .4; }
.scene .pier { position: absolute; left: -4%; bottom: -2%; width: 74%; height: 32%; background: linear-gradient(165deg, #1d2a28, #101816 58%, #080f0e); clip-path: polygon(0 42%, 84% 17%, 100% 25%, 89% 100%, 0 100%); z-index: 2; box-shadow: 0 -10px 34px rgba(0, 0, 0, .35); }
.scene .pier::before { content: ""; position: absolute; left: 5%; right: 19%; top: 36%; height: 1px; background: rgba(216, 166, 75, .2); box-shadow: 0 10px 0 rgba(216, 166, 75, .08), 0 20px 0 rgba(216, 166, 75, .04); }
.scene .post { position: absolute; bottom: 15%; width: 8px; background: linear-gradient(180deg, #2b3a35, #0a1210); z-index: 3; box-shadow: inset -2px 0 0 rgba(255, 255, 255, .04); }
.scene .post.p1 { left: 21%; height: 24%; }
.scene .post.p2 { left: 35%; height: 18%; opacity: .8; }
.scene .post.p3 { left: 50%; height: 13%; opacity: .6; }
.scene .lamp { position: absolute; right: 29%; bottom: 28%; width: 10px; height: 10px; border-radius: 50%; background: #f9d785; box-shadow: 0 0 22px 9px rgba(249, 215, 133, .32), 0 0 70px 24px rgba(216, 166, 75, .1); z-index: 4; }
.scene .lamp::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 30px; background: #3d4b43; }
.scene .bobber { position: absolute; left: 58%; top: 45%; width: 6px; height: 12px; border-radius: 4px; background: linear-gradient(180deg, #e6c36a, #b64f3f 62%); z-index: 5; box-shadow: 0 0 0 3px rgba(216, 166, 75, .07); transition: top .16s ease, left .4s ease; }
.scene .ripple { position: absolute; left: 58%; top: 46%; width: 16px; height: 6px; border: 1px solid rgba(180, 220, 210, .45); border-radius: 50%; transform: translate(-50%, 0); opacity: 0; z-index: 4; }
.scene .rodline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.scene .rodline path { fill: none; stroke: rgba(231, 220, 195, .36); stroke-width: 1; stroke-dasharray: 2 3; }
.scene.casting .bobber { top: 52%; }
.scene.biting .bobber { top: 51%; animation: bob .26s ease-in-out infinite alternate; }
.scene.biting .ripple { opacity: 1; animation: ripple 1.1s ease-out infinite; }
.scene.biting .rodline path { stroke: rgba(240, 200, 119, .7); stroke-width: 1.5; }
.scene.fighting .bobber { top: 48%; }
.scene.fighting .rodline path { stroke: rgba(240, 200, 119, .8); stroke-width: 1.6; animation: quiver .18s linear infinite; }
@keyframes bob { from { transform: translateY(-2px) } to { transform: translateY(2px) } }
@keyframes ripple { from { transform: translate(-50%, 0) scale(.5); opacity: .7 } to { transform: translate(-50%, 0) scale(2.8); opacity: 0 } }
@keyframes quiver { 0% { transform: translate(0, 0) } 50% { transform: translate(.6px, -.6px) } 100% { transform: translate(0, 0) } }

.scene-copy { position: absolute; left: 20px; top: 18px; z-index: 6; max-width: 320px; pointer-events: none; }
.scene-copy .k { font: 9px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(216, 166, 75, .85); }
.scene-copy h3 { font-family: var(--serif); font-size: 28px; margin: 5px 0 4px; color: #f2e5ca; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); font-weight: 500; }
.scene-copy p { font-size: 11.5px; color: rgba(220, 230, 220, .62); margin: 0; line-height: 1.6; }
.scene-tags { position: absolute; right: 16px; top: 16px; z-index: 6; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.scene-tags .chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cast-dock {
  position: relative; z-index: 7; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 29, 32, .94), rgba(8, 19, 22, .96));
}
.cast-dock .next { min-width: 0; }
.cast-dock .k { font: 8.5px var(--mono); letter-spacing: .14em; color: #68827e; text-transform: uppercase; }
.cast-dock .next b { display: block; font-size: 12.5px; color: #d9cbb0; white-space: nowrap; }
.cast-dock .next span { font-size: 10.5px; color: #718b86; }
.bait-select {
  min-width: 170px;
  max-width: 250px;
  padding: 8px 10px;
  border: 1px solid var(--brass);
  border-radius: 8px;
  background: #12211f;
  color: var(--brass-2);
  font: 600 12.5px var(--sans);
  cursor: pointer;
  color-scheme: dark;
}
.bait-select:hover { border-color: #f0cd7c; }
.bait-select:focus { outline: 2px solid rgba(216, 166, 75, .35); outline-offset: 2px; }
.bait-select:disabled { opacity: .55; cursor: not-allowed; }
.bait-select option { background: #0b1719; color: #eadfc8; }
.cast-dock .cast-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cast-hint { font-size: 11px; color: var(--muted); max-width: 190px; line-height: 1.5; }

/* 咬钩提示 */
.bite-cue {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%); z-index: 9;
  text-align: center; padding: 14px 26px; border-radius: 14px;
  background: rgba(10, 22, 24, .86); border: 1px solid rgba(240, 200, 119, .5);
  box-shadow: 0 0 40px rgba(216, 166, 75, .18); animation: bitePulse 1s ease-in-out infinite;
}
.bite-cue b { display: block; font-family: var(--serif); font-size: 22px; color: var(--brass-2); letter-spacing: .08em; }
.bite-cue span { font-size: 11.5px; color: #c9bc9f; }
@keyframes bitePulse { 0%, 100% { box-shadow: 0 0 30px rgba(216, 166, 75, .16) } 50% { box-shadow: 0 0 60px rgba(216, 166, 75, .3) } }

/* ── 张力战斗 ───────────────────────────────────────────── */
.battle {
  position: absolute; inset: 0; z-index: 12; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(4, 12, 14, .55), rgba(3, 9, 11, .88));
  backdrop-filter: blur(2px); padding: 16px;
}
.battle, .battle * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.battle-card { width: min(620px, 100%); border: 1px solid #33514c; border-radius: 16px; background: linear-gradient(180deg, #0f2427, #0a181b); box-shadow: var(--shadow); padding: 18px 20px 16px; position: relative; overflow: hidden; }
.battle-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(216, 166, 75, .1), transparent 60%); pointer-events: none; }
.battle-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.battle-top .fish-name { font-family: var(--serif); font-size: 19px; }
.battle-top .timer { margin-left: auto; font: 15px var(--mono); color: #d6cbb4; }
.battle-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.battle-stage { display: flex; gap: 18px; align-items: center; }
.battle-fish { flex: 0 0 168px; height: 110px; display: grid; place-items: center; position: relative; }
.battle-fish svg { width: 160px; height: 88px; animation: fishFight 1.4s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.battle-fish.hard svg { animation-duration: .7s; }
.battle-fish::after { content: ""; position: absolute; inset: auto 10% 2px; height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 220, 210, .3), transparent); }
@keyframes fishFight { 0%, 100% { transform: translateX(0) rotate(0deg) } 35% { transform: translateX(-7px) rotate(-2.5deg) } 70% { transform: translateX(6px) rotate(2deg) } }
.battle-meters { flex: 1; min-width: 0; }
.tension-label { display: flex; justify-content: space-between; font: 9.5px var(--mono); letter-spacing: .12em; color: var(--faint); text-transform: uppercase; margin-bottom: 5px; }
.tension { position: relative; height: 30px; border-radius: 9px; background: linear-gradient(180deg, #081416, #0c1d20); border: 1px solid #26403f; overflow: hidden; }
.tension-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(111, 211, 166, .28), rgba(79, 145, 138, .16)); border-left: 1px solid rgba(111, 211, 166, .6); border-right: 1px solid rgba(111, 211, 166, .6); transition: opacity .2s; }
.tension-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(79, 145, 138, .18), rgba(216, 166, 75, .22)); }
.tension-needle { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #f4e3c0; box-shadow: 0 0 10px rgba(244, 227, 192, .9); transition: left .05s linear; }
.tension-needle.hot { background: #f08a6a; box-shadow: 0 0 12px rgba(240, 138, 106, .9); }
.tension-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, .06) calc(10% - 1px) 10%); }
.tension.in-zone .tension-zone { background: linear-gradient(180deg, rgba(111, 211, 166, .5), rgba(79, 145, 138, .3)); }

.slack-bar { margin-top: 7px; height: 5px; border-radius: 4px; background: #1a2e30; overflow: hidden; }
.slack-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d87b5e, #cc5b4d); transition: width .1s; }
.catch-progress { margin-top: 14px; }
.catch-progress .label { display: flex; justify-content: space-between; font: 9.5px var(--mono); color: var(--faint); letter-spacing: .12em; margin-bottom: 5px; }
.catch-bar { height: 14px; border-radius: 8px; background: #081416; border: 1px solid #26403f; overflow: hidden; }
.catch-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f918a, #8cc8bd 60%, #f1cf8d); transition: width .08s linear; }
.battle-hint { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: #c9bc9f; }
.key { border: 1px solid #4a5f5a; border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; font: 10px var(--mono); color: #e9dcc0; background: #122426; }
.battle-hold { margin-top: 13px; width: 100%; padding: 14px; border-radius: 11px; border: 1px solid #d9ab55; background: linear-gradient(180deg, #d9ab55, #b78732); color: #1b1207; font-weight: 700; font-size: 14px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.battle-hold.down { background: linear-gradient(180deg, #f0cd86, #d3a44a); box-shadow: 0 0 26px rgba(216, 166, 75, .3) inset; }
.battle-outcome { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 11, 13, .82); z-index: 5; text-align: center; }
.battle-outcome b { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: .1em; margin-bottom: 6px; }
.battle-outcome span { font-size: 12.5px; color: var(--muted); }
.battle-outcome.win b { color: var(--brass-2); text-shadow: 0 0 30px rgba(216, 166, 75, .4); }
.battle-outcome.lose b { color: #f09b83; }
.battle-card.shake { animation: shake .4s ease; }
.boss-battle .battle-card { border-color: rgba(240, 205, 124, .62); box-shadow: 0 0 0 1px rgba(240,205,124,.08) inset, 0 18px 60px rgba(0,0,0,.5), 0 0 46px rgba(216,166,75,.12); }
.boss-battle .battle-card::before { background: radial-gradient(ellipse at 50% 0%, rgba(240,205,124,.19), transparent 62%); }
.boss-tag { color: #f0cd7c; border: 1px solid rgba(240,205,124,.55); background: rgba(240,205,124,.09); padding: 2px 7px; border-radius: 4px; font: 9px var(--mono); letter-spacing: .12em; }
.boss-card { border-color: rgba(240,205,124,.3); }
.boss-card .nm { color: #f0cd7c; }
.boss-first { margin-top: 4px; color: var(--faint); font: 8.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(3px) } }

/* ── 收鱼弹窗 ───────────────────────────────────────────── */
.catch-card { width: min(520px, 100%); text-align: center; position: relative; overflow: hidden; }
.catch-card::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 210deg, transparent, rgba(216, 166, 75, .16), transparent 40%); animation: spin 8s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg) } }
.catch-art { position: relative; height: 170px; display: grid; place-items: center; margin: 4px 0 6px; }
.catch-art svg { width: 290px; height: 150px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); animation: catchPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes catchPop { from { transform: scale(.7) translateY(14px); opacity: 0 } to { transform: scale(1) translateY(0); opacity: 1 } }
.catch-rarity { font: 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.catch-name { font-family: var(--serif); font-size: 30px; margin: 4px 0 2px; font-weight: 500; }
.catch-meta { display: flex; justify-content: center; gap: 18px; margin: 12px 0; flex-wrap: wrap; }
.catch-meta .m b { display: block; font: 16px var(--mono); color: var(--brass-2); }
.catch-meta .m span { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.catch-desc { color: #a9bcb6; font-size: 12.5px; line-height: 1.65; max-width: 380px; margin: 8px auto 16px; font-style: italic; }
.catch-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.catch-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.catch-key { margin-left: 4px; font-size: 9px; padding: 0 5px; }
@media (pointer: coarse) { .catch-key { display: none; } }

/* ── 面板通用 ───────────────────────────────────────────── */
.panel { border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 23, 26, .55); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(14, 32, 35, .5); }
.panel-head h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.panel-head .right { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.panel-body { padding: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab { border: 0; background: none; color: var(--muted); padding: 11px 12px; font-size: 12.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brass-2); border-bottom-color: var(--brass); }
.tab .n { font: 9px var(--mono); color: var(--faint); margin-left: 4px; }

/* 图鉴 */
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 11px; }
.species-card { border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(180deg, rgba(13, 29, 32, .9), rgba(8, 19, 22, .9)); padding: 10px 11px 11px; cursor: pointer; position: relative; overflow: hidden; transition: border-color .15s, transform .12s; }
.species-card:hover { border-color: #3a5a56; transform: translateY(-2px); }
.species-card.undiscovered { opacity: .62; }
.species-card .thumb { height: 74px; display: grid; place-items: center; }
.species-card .thumb svg { width: 140px; height: 70px; }
.species-card .nm { font-size: 12.5px; color: #dfd6c1; display: flex; align-items: center; gap: 6px; }
.species-card .sub { font: 9px var(--mono); color: var(--faint); margin-top: 3px; letter-spacing: .04em; }
.species-card .best { font: 10px var(--mono); color: var(--brass-2); margin-top: 5px; }
.mastery { display: flex; gap: 2px; margin-top: 5px; }
.mastery i { width: 10px; height: 3px; background: #20383a; border-radius: 2px; }
.mastery i.on { background: var(--brass); }
.rarity-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rarity-pill { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; min-width: 130px; background: rgba(10, 23, 26, .5); }
.rarity-pill .k { font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rarity-pill .v { font-family: var(--serif); font-size: 17px; margin-top: 2px; }
.rarity-pill .bar { height: 4px; background: #182d2f; border-radius: 3px; margin-top: 7px; overflow: hidden; }
.rarity-pill .bar i { display: block; height: 100%; background: currentColor; }

/* 鱼篓 */
.fish-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.fish-row:hover { background: rgba(255, 255, 255, .02); }
.fish-row .pic { flex: 0 0 76px; height: 44px; display: grid; place-items: center; }
.fish-row .pic svg { width: 76px; height: 42px; }
.fish-row .info { min-width: 0; flex: 1; }
.fish-row .info b { font-size: 13px; font-weight: 500; color: #e4dbc7; }
.fish-row .info .meta { font: 10px var(--mono); color: var(--faint); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.fish-row .price { text-align: right; font: 12px var(--mono); color: var(--brass-2); min-width: 72px; }
.fish-row .ops, .gear-ops { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.refine-preview { margin: 14px 0 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 9px; background: radial-gradient(ellipse at 20% 0%, rgba(79,145,138,.13), transparent 65%), rgba(255,255,255,.015); }
.refine-preview-title { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.refine-preview-title small { color: var(--brass-2); font-size: 10px; }
.refine-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.refine-stat { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.refine-stat span { color: var(--muted); font: 9px var(--mono); }
.refine-stat b { color: var(--text-dim); font: 11px var(--mono); font-weight: 400; }
.refine-stat i { color: var(--faint); font-style: normal; font-size: 9px; }
.refine-stat strong { color: var(--teal-2); font: 12px var(--mono); font-weight: 500; }
.refine-need-title { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; margin-top: 10px; }
.refine-box { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 7px 0 10px; }
.refine-box > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 3px; }
.refine-box > div.lack { border-color: rgba(204,91,77,.5); background: rgba(204,91,77,.04); }
.refine-box span { color: var(--muted); font: 9px var(--mono); }
.refine-box b { color: var(--brass-2); font: 12px var(--mono); font-weight: 400; }
.refine-box .lack b { color: #e39a8d; }
.refine-box small { color: var(--faint); font: 8px var(--mono); }
.refine-warning { color: #e39a8d; font-size: 10px; margin: 2px 0 10px; }
.fish-row.selected { background: rgba(216, 166, 75, .06); }
.check { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #3d5c58; display: grid; place-items: center; color: var(--brass); font-size: 11px; flex: 0 0 auto; }
.check.on { background: rgba(216, 166, 75, .15); border-color: var(--brass); }
.basket-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(13, 29, 32, .8); position: sticky; bottom: 0; flex-wrap: wrap; }
.basket-bar .sum { font-size: 12px; color: var(--muted); }
.basket-bar .sum b { color: var(--brass-2); font: 13px var(--mono); }
.basket-bar .right { margin-left: auto; display: flex; gap: 8px; }

/* 商店 */
.shop-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.shop-item .ico { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; background: #0c1f22; border: 1px solid var(--line-2); font-size: 18px; color: var(--brass); flex: 0 0 auto; }
.shop-item .info { flex: 1; min-width: 0; }
.shop-item .info b { font-size: 13px; font-weight: 500; }
.shop-item .info p { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.shop-item .nums { display: flex; gap: 12px; font: 10px var(--mono); color: var(--faint); margin-top: 4px; }
.shop-item .price { font: 13px var(--mono); color: var(--brass-2); min-width: 84px; text-align: right; }
.bait-buy-tools { flex-wrap: wrap; justify-content: flex-end; }
.bait-custom { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.bait-custom > span { padding: 0 4px; }
.bait-custom input[type=number] { width: 50px; padding: 3px 2px; border: 0; border-radius: 5px; font: 11px var(--mono); text-align: center; background: transparent; }
.bait-custom input[type=number]:focus { outline: 1px solid var(--brass); outline-offset: 0; }
.bait-step { width: 22px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--ink); font: 13px var(--mono); line-height: 1; cursor: pointer; }
.bait-step:hover { background: rgba(255,255,255,.12); }
.bait-step:active { transform: translateY(1px); }
.owned-tag { font: 9px var(--mono); color: #8fd0c2; border: 1px solid #2f6b60; border-radius: 4px; padding: 2px 6px; }

/* 商店 · 食物与自动补给 */
.food-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 14px; padding: 12px; }
.food-list { min-width: 0; }
.food-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.food-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 72px; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); min-width: 0; }
.food-card.locked { opacity: .56; }
.food-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--food-tone) 45%, var(--line-2)); color: var(--food-tone); background: radial-gradient(circle at 38% 30%, #19383a, #0a1a1d 70%); font: 17px var(--serif); }
.food-info { min-width: 0; }
.food-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.food-title b { font: 13px var(--serif); font-weight: 500; }
.food-info p { margin: 3px 0 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.food-meta { display: flex; gap: 10px; color: var(--faint); font: 9px var(--mono); }
.food-meta span:first-child { color: var(--teal-2); }
.food-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.food-actions .price { min-width: 0; text-align: right; font: 12px var(--mono); color: var(--brass-2); }
.food-actions .btn { padding: 4px 6px; font-size: 10px; }
.food-auto { border: 1px solid rgba(216,166,75,.28); border-radius: 10px; background: linear-gradient(180deg, rgba(18,36,38,.95), rgba(8,20,23,.98)); align-self: start; overflow: hidden; }
.food-auto .panel-head { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.food-auto .panel-head h3 { margin: 0; }
.food-toggle { display: inline-flex; align-items: center; cursor: pointer; }
.food-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.food-toggle span { width: 34px; height: 19px; border-radius: 99px; border: 1px solid var(--line-2); background: #0a171a; position: relative; transition: background .15s, border-color .15s; }
.food-toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--faint); transition: left .15s, background .15s; }
.food-toggle input:checked + span { background: rgba(111,211,166,.18); border-color: rgba(111,211,166,.55); }
.food-toggle input:checked + span::after { left: 17px; background: var(--ok); }
.food-auto-body { padding: 10px 12px 12px; }
.food-auto-state { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.16); }
.food-auto-state span { color: var(--muted); font: 10px var(--mono); }
.food-auto-state b { color: #f0a47e; font: 14px var(--mono); font-weight: 500; }
.food-auto-state em { color: var(--faint); font: 9px var(--mono); font-style: normal; }
.food-auto-tip { margin: 8px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.food-field { display: block; margin: 0 0 9px; }
.food-field > span { display: block; margin-bottom: 4px; color: var(--muted); font: 10px var(--mono); }
.food-field select, .food-field input { width: 100%; height: 31px; border: 1px solid var(--line-2); border-radius: 6px; background: #0a191c; color: var(--text); padding: 0 8px; font: 11px var(--mono); }
.food-field input:disabled { color: var(--faint); background: #091417; }
.food-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.food-hint { margin: 2px 0 10px; padding: 7px 8px; border-left: 2px solid rgba(216,166,75,.5); background: rgba(216,166,75,.045); color: #aeb7aa; font-size: 9px; line-height: 1.6; }
.food-save { width: 100%; }

/* 市场 */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.listing { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: linear-gradient(180deg, rgba(14, 32, 35, .85), rgba(8, 19, 22, .9)); display: flex; flex-direction: column; gap: 8px; }
.listing .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.listing .art { height: 74px; display: grid; place-items: center; }
.listing .art svg { width: 150px; height: 72px; }
.listing .nm { font-size: 13px; }
.listing .meta { font: 10px var(--mono); color: var(--faint); }
.listing .bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.listing .p { font: 15px var(--mono); color: var(--brass-2); }
.listing .seller { font-size: 10.5px; color: var(--muted); }
.listing .fee { font: 9px var(--mono); color: #6d8580; }

/* 任务 / 成就 */
.quest-list { display: flex; flex-direction: column; }
.quest { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.quest .ch { flex: 0 0 44px; font: 11px var(--mono); color: var(--faint); text-align: center; }
.quest .ch b { display: block; font-size: 15px; color: var(--brass); }
.quest .body { flex: 1; min-width: 0; }
.quest .body .t { font-size: 13.5px; color: #e2d9c4; }
.quest .body .g { font-size: 11.5px; color: var(--muted); margin: 3px 0 6px; }
.quest .body .line { font-size: 11.5px; color: #9db3ad; font-style: italic; margin-bottom: 7px; }
.quest .reward { font: 10px var(--mono); color: var(--brass-2); }
.quest .ops { display: flex; align-items: center; gap: 8px; }
.progress { height: 5px; border-radius: 4px; background: #182d2f; overflow: hidden; margin: 6px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #4f918a, #8cc8bd); }
.progress.done i { background: linear-gradient(90deg, #c69236, #f1cf8d); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 11px; }
.ach { border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: rgba(10, 23, 26, .55); }
.ach.unlocked { border-color: rgba(216, 166, 75, .4); background: rgba(216, 166, 75, .05); }
.ach .top { display: flex; align-items: center; gap: 8px; }
.ach .ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--brass); font-size: 12px; }
.ach .t { font-size: 13px; }
.ach .d { font-size: 11px; color: var(--muted); margin: 6px 0; }
.ach .r { font: 9.5px var(--mono); color: var(--brass-2); }

/* ── 称号 ─────────────────────────────────────────────────── */
.title-common { --tc: #b6c8c2; --tb: #50615c; --tg: rgba(182, 200, 194, .12); }
.title-uncommon { --tc: #8fd0c2; --tb: #4b918a; --tg: rgba(143, 208, 194, .16); }
.title-fine { --tc: #9fc4e8; --tb: #527ba0; --tg: rgba(159, 196, 232, .16); }
.title-rare { --tc: #efca82; --tb: #a87c36; --tg: rgba(239, 202, 130, .18); }
.title-epic { --tc: #f0aa96; --tb: #b0604d; --tg: rgba(240, 170, 150, .18); }
.title-legendary { --tc: #ffe9a8; --tb: #d8a64b; --tg: rgba(255, 233, 168, .22); }
.title-mythic { --tc: #edb0ea; --tb: #b15eaa; --tg: rgba(237, 176, 234, .2); }
.title-strange { --tc: #a8f0c4; --tb: #4f9f79; --tg: rgba(168, 240, 196, .2); }
.title-arcane {
  --tc: #f4f0ff; --tb: #c7a9ff; --tg: rgba(199, 169, 255, .26);
  background-image: linear-gradient(115deg, rgba(143, 80, 210, .2), rgba(79, 145, 138, .14), rgba(216, 166, 75, .18));
}
.title-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--tb);
  border-radius: 4px; color: var(--tc); background: linear-gradient(135deg, rgba(9, 20, 23, .9), var(--tg));
  font: 10px var(--mono); letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18) inset, 0 0 10px var(--tg);
}
.title-badge::before { content: '❦'; font-size: 9px; opacity: .8; }
.titles-toolbar { display: flex; gap: 5px; flex-wrap: wrap; margin: 12px 0; }
.titles-toolbar .tab { padding: 5px 9px; font-size: 10px; }
.title-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 11px; }
.title-card {
  position: relative; border: 1px solid var(--tb); border-radius: 10px; padding: 13px;
  background: linear-gradient(135deg, rgba(8, 19, 22, .92), var(--tg));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset, 0 0 18px var(--tg);
}
.title-card.title-arcane { background-image: linear-gradient(115deg, rgba(143, 80, 210, .24), rgba(79, 145, 138, .16), rgba(216, 166, 75, .2)); }
.title-badge.title-arcane { background-image: linear-gradient(115deg, rgba(143, 80, 210, .3), rgba(79, 145, 138, .2), rgba(216, 166, 75, .24)); }
.title-card.equipped { box-shadow: 0 0 0 1px var(--tb) inset, 0 0 24px var(--tg), 0 0 0 2px rgba(255, 255, 255, .04); }
.title-card.locked { opacity: .48; filter: saturate(.6); box-shadow: none; }
.title-card-top { display: flex; align-items: flex-start; gap: 9px; }
.title-mark { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--tb); border-radius: 50%; color: var(--tc); background: rgba(0, 0, 0, .16); font-size: 14px; }
.title-name { font-family: var(--serif); font-size: 18px; color: var(--tc); letter-spacing: .05em; line-height: 1.2; }
.title-kind { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.title-kind .muted { font-size: 9px; }
.title-card-top .owned-tag, .title-card-top .title-lock { margin-left: auto; font: 8px var(--mono); color: var(--tc); border: 1px solid var(--tb); border-radius: 3px; padding: 2px 5px; white-space: nowrap; }
.title-card-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 10px; min-height: 25px; }
.title-bonus { margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .08); font: 9.5px var(--mono); color: var(--text-dim); line-height: 1.6; }

/* 排行榜 / 锦标赛 */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font: 9.5px var(--mono); letter-spacing: .12em; color: var(--faint); text-transform: uppercase; padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 400; }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(26, 47, 49, .6); color: #cfdbd5; }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.table .rank { font: 12px var(--mono); color: var(--faint); width: 46px; }
.table .rank.top { color: var(--brass-2); }
.table .num { font-family: var(--mono); text-align: right; }
.tour-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tour-main { border: 1px solid rgba(216, 166, 75, .3); border-radius: 12px; padding: 18px; background: radial-gradient(600px 200px at 20% 0%, rgba(216, 166, 75, .1), transparent), rgba(10, 23, 26, .6); }
.tour-main h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; font-weight: 500; }
.countdown { font: 20px var(--mono); color: var(--brass-2); letter-spacing: .06em; }
.tour-side .stat { margin-bottom: 10px; }

/* 水域 */
.water-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.water-card { position: relative; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #0a171a; }
.water-card .banner { height: 164px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint, #2c4d4a) 0%, #0a1a1d 100%); }
.water-card .banner-art { position: absolute; inset: 0; z-index: 0; }
.water-card .banner-art svg { display: block; width: 100%; height: 100%; }
.water-card .banner-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 10, 12, .04) 0%, rgba(4, 10, 12, .08) 42%, rgba(5, 13, 15, .82) 100%); }
.water-card .banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 70% 12%, rgba(255, 255, 255, .1), transparent 52%), repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px); }
.water-card .banner .nm { position: absolute; left: 16px; bottom: 12px; z-index: 2; font-family: var(--serif); font-size: 23px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.water-card .banner .en { position: absolute; left: 17px; bottom: 3px; z-index: 2; font: 8.5px var(--mono); letter-spacing: .16em; color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.water-card .body { padding: 14px 16px 16px; }
.water-card .body p { color: var(--muted); font-size: 11.5px; line-height: 1.6; min-height: 54px; margin: 0 0 10px; }
.water-card .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.locked-veil { position: absolute; inset: 0; background: rgba(4, 10, 12, .62); display: grid; place-items: center; z-index: 3; text-align: center; padding: 16px; }
.locked-veil b { font-family: var(--serif); font-size: 17px; display: block; }

/* 个人页 */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(145deg, #365d59, #203a3a); border: 1px solid #4f918a; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: #f3e5c7; }
.trophy-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.trophy { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: rgba(10, 23, 26, .55); text-align: center; }
.trophy svg { width: 100%; height: 64px; }
.trophy .nm { font-size: 11px; margin-top: 4px; }
.trophy .kg { font: 9.5px var(--mono); color: var(--brass-2); }

/* 模态框 / 提示 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 9, 11, .72); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 18px; animation: fadeIn .18s ease; }
.modal.checkin-modal { width: min(760px, 100%); }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: linear-gradient(180deg, #0e2225, #0a191c); border: 1px solid #31514d; border-radius: 15px; box-shadow: var(--shadow); padding: 20px; position: relative; animation: modalIn .22s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes modalIn { from { transform: translateY(14px) scale(.97); opacity: 0 } }
@keyframes fadeIn { from { opacity: 0 } }
.modal-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 6px; }
.modal .sub { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: linear-gradient(180deg, #12282b, #0b1a1d); border: 1px solid #31514d; border-left: 2px solid var(--brass); border-radius: 9px; padding: 10px 14px; font-size: 12px; color: #d9e4de; box-shadow: var(--shadow); animation: toastIn .25s ease; max-width: 340px; }
.toast.good { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--coral); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0 } }

/* 移动端 */
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 170px minmax(0, 1fr); }
  .rail { position: fixed; right: 0; top: 56px; bottom: 0; width: 300px; z-index: 40; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, .4); }
  .rail.open { transform: translateX(0); }
  .rail-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { border-left: 0; padding: 26px 22px; }
  .topbar { height: 52px; flex-basis: 52px; padding: 0 10px; gap: 8px; }
  .brand small, .brand > div, .loc { display: none; }
  .hud { gap: 8px; }
  .hud-item { gap: 4px; }
  .hud-item .ico { font-size: 11px; }
  .hud-ico, .hud-ico .cur-svg { width: 17px; height: 17px; flex-basis: 17px; }
  .energy-wrap { min-width: 54px; }
  .energy-bar { width: 54px; }
  .energy-timer { display: none; }
  .hud-level .lvl-ring { width: 24px; height: 24px; font-size: 9px; }
  .checkin-btn { padding: 5px 7px; font-size: 9.5px; }
  .rail-toggle { padding: 5px 7px; font-size: 9.5px; }
  .shell { display: block; }
  .main { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-padding-bottom: calc(96px + var(--kb-offset)); }
  .nav { display: none; }
  .view { padding: 14px 13px 84px; }
  .view-head h1 { font-size: 21px; }
  .rail { top: 52px; bottom: 58px; width: min(320px, 88vw); padding-top: 6px; visibility: hidden; }
  .rail.open { visibility: visible; }
  .rail-close { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(9, 21, 24, .9); color: var(--muted); }
  .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .chat-form input { font-size: 16px; }
  body.kb-open #rail { bottom: calc(58px + var(--kb-offset)); }
  .chat-page { grid-template-columns: 1fr; gap: 10px; }
  .chat-page-panel { height: 58vh; min-height: 360px; }
  .chat-page-form { position: sticky; bottom: 0; z-index: 4; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: #0a171a; }
  .chat-page-form input { font-size: 16px; }
  .chat-page-panel, .chat-page-log { scroll-padding-bottom: calc(76px + var(--kb-offset)); }
  .chat-page-people { max-height: 220px; }
  .chat-page-people-list { max-height: 174px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 58px; display: flex; z-index: 45; background: linear-gradient(180deg, #0c1c1f, #081316); border-top: 1px solid var(--line); padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); }
  .mnav-item { flex: 1; border: 0; background: none; color: #7d9691; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; padding: 4px 2px; }
  .mnav-item .ic { font-size: 15px; }
  .mnav-item.active { color: var(--brass-2); }
  .scene { min-height: 360px; }
  .scene-copy { left: 14px; top: 13px; max-width: 58%; }
  .scene-copy h3 { font-size: 22px; }
  .scene-tags { right: 10px; top: 10px; gap: 4px; }
  .scene-tags .chip { font-size: 9px; padding: 2px 6px; }
  .hud-level .avatar { display: none; }
  .cast-dock { padding: 12px; gap: 10px; }
  .cast-dock .cast-right { margin-left: 0; width: 100%; }
  .btn-cast { width: 100%; }
  .battle { position: fixed; inset: 0; z-index: 70; padding: 12px; overflow-y: auto; }
  .battle-stage { flex-direction: column; gap: 10px; align-items: stretch; }
  .battle-fish { flex: 0 0 76px; height: 70px; align-self: center; }
  .battle-fish svg { width: 116px; height: 62px; }
  .battle-card { width: 100%; padding: 16px 15px 14px; }
  .battle-card .battle-top .fish-name { font-size: 17px; }
  .battle-sub { margin-bottom: 12px; }
  .tension-label { font-size: 10px; margin-bottom: 6px; }
  .tension { height: 46px; border-radius: 11px; }
  .tension-needle { width: 3px; top: -4px; bottom: -4px; }
  .slack-bar { height: 7px; margin-top: 8px; }
  .catch-progress { margin-top: 13px; }
  .catch-progress .label { font-size: 10px; }
  .catch-bar { height: 18px; }
  .battle-hint { font-size: 12px; margin-top: 11px; flex-wrap: wrap; }
  .battle-hold { margin-top: 12px; padding: 16px; font-size: 16px; }
  .catch-name { font-size: 24px; }
  .catch-art { height: 130px; }
  .catch-art svg { width: 230px; height: 120px; }
  .grid2, .grid3, .tour-card { grid-template-columns: 1fr; }
  .toast-root { left: 12px; right: 12px; bottom: 70px; align-items: stretch; }
  .toast { max-width: none; }
  .fish-row .pic { flex-basis: 58px; }
  .fish-row .pic svg { width: 58px; height: 34px; }
  .basket-bar { padding: 10px 12px; }
}

@media (min-width: 1081px) { .rail-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #071113; }
::-webkit-scrollbar-thumb { background: #1c3436; border-radius: 6px; border: 2px solid #071113; }
::-webkit-scrollbar-thumb:hover { background: #2a4b4b; }

/* ── 全服播报 ─────────────────────────────────────────────── */
.broadcast-strip { flex: 0 0 34px; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(216, 166, 75, .18); background: linear-gradient(90deg, rgba(216, 166, 75, .07), var(--bg-2) 35%, var(--bg-2)); overflow: hidden; position: relative; z-index: 15; }
.broadcast-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 9px var(--mono); letter-spacing: .12em; color: var(--brass-2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.broadcast-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.broadcast-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; min-width: max-content; animation: broadcast-marquee linear infinite; padding-left: 8px; }
.broadcast-item { font: 11px var(--mono); color: var(--text-dim); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 7px; }
.broadcast-item.quiet { color: #8fd0c2; }
.broadcast-item.quiet::before { content: "◌"; color: #4f918a; }
.broadcast-item.pinned { color: #f2cd85; }
.broadcast-item.pinned::before { content: "◆"; color: var(--brass); }
.broadcast-item.r-common, .broadcast-item.r-uncommon, .broadcast-item.r-fine, .broadcast-item.r-rare, .broadcast-item.r-epic, .broadcast-item.r-legendary, .broadcast-item.r-mythic, .broadcast-item.r-strange, .broadcast-item.r-arcane { background: none; border: 0; box-shadow: none; padding: 0; }
.broadcast-item.r-uncommon { color: #7fe0cd; }
.broadcast-item.r-fine { color: #7fb8e8; }
.broadcast-item.r-rare { color: #f0cd7c; }
.broadcast-item.r-epic { color: #f2a785; }
.broadcast-item.r-legendary { color: #f8ebbb; }
.broadcast-item.r-mythic { color: #e8a6e6; }
.broadcast-item.r-strange { color: #a6f0c0; }
.broadcast-item.r-arcane { color: #d6b4ff; }
.bc-profile { color: var(--teal-2); border-bottom: 1px dotted var(--teal); font-size: 10px; }
.broadcast-more { flex: 0 0 auto; font: 10px var(--mono); color: #8fb8b1; white-space: nowrap; border: 1px solid rgba(79, 145, 138, .4); border-radius: 5px; padding: 2px 7px; background: rgba(79, 145, 138, .06); }
.broadcast-more:hover { color: var(--brass-2); }
.broadcast-strip:hover .broadcast-track { animation-play-state: paused; }
@keyframes broadcast-marquee {
  0% { transform: translateX(var(--bc-start, 0px)); opacity: 1; }
  82% { transform: translateX(var(--bc-end, -100%)); opacity: 1; }
  83% { transform: translateX(var(--bc-start, 0px)); opacity: 0; }
  100% { transform: translateX(var(--bc-start, 0px)); opacity: 1; }
}

/* ── 每日签到 ─────────────────────────────────────────────── */
.checkin-btn { position: relative; border-color: rgba(216, 166, 75, .35); color: #efca82; white-space: nowrap; }
.checkin-dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: #ef7f5e; box-shadow: 0 0 8px rgba(239, 127, 94, .8); }
.checkin-dot.show { display: inline-block; position: absolute; top: -2px; right: -2px; }
.checkin-streak { margin: 16px 0 10px; font-size: 12px; color: var(--muted); }
.checkin-streak b { font: 18px var(--mono); color: var(--brass-2); }
.checkin-reset { font: 10px var(--mono); color: var(--muted); margin: 0 0 12px; }
.checkin-reset b { color: var(--brass-2); font-weight: 500; }
.checkin-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.checkin-day { border: 1px solid var(--line); border-radius: 8px; padding: 9px 7px; min-height: 92px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 5px; }
.checkin-day .day { font: 9px var(--mono); color: var(--faint); }
.checkin-day .reward { font-size: 10px; color: var(--text-dim); line-height: 1.5; }
.checkin-day .state { margin-top: auto; font: 8.5px var(--mono); color: #627b77; }
.checkin-day.today { border-color: rgba(216, 166, 75, .55); background: rgba(216, 166, 75, .1); box-shadow: inset 0 0 20px rgba(216, 166, 75, .06); }
.checkin-day.today .state { color: var(--brass-2); }
.checkin-day.claimed { opacity: .55; }
.checkin-day.claimed .state { color: #8fd0c2; }

/* ── 鱼篓筛选 / 锁定 / 专精 ───────────────────────────────── */
.inv-filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.inv-filters label { display: flex; flex-direction: column; gap: 3px; font: 8.5px var(--mono); color: var(--faint); letter-spacing: .06em; }
.inv-filters select { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-dim); border-radius: 6px; padding: 4px 7px; font: 11px var(--mono); }
.inv-locked-toggle { flex-direction: row !important; align-items: center; gap: 5px !important; font: 10px var(--mono) !important; color: var(--muted) !important; padding-bottom: 5px; }
.inv-filter-count { margin-left: auto; font: 10px var(--mono); color: var(--muted); padding-bottom: 5px; }
.inv-filter-count b { color: var(--brass-2); }
.fish-row.locked { background: rgba(143, 208, 194, .035); }
.fish-row.locked .pic { opacity: .8; }
.lock-tag { font: 8.5px var(--mono); color: #8fd0c2; border: 1px solid rgba(79, 145, 138, .4); border-radius: 4px; padding: 1px 4px; white-space: nowrap; }
.btn-lock { color: #7d9691; border-color: var(--line-2); }
.btn-lock.on { color: #8fd0c2; border-color: rgba(79, 145, 138, .5); background: rgba(79, 145, 138, .1); }
.check.locked { color: #8fd0c2; border-color: rgba(79, 145, 138, .35); cursor: help; }
.lock-note { color: #8fd0c2; }
.water-req { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 8px; }
.water-req .chip { font-size: 9px; }
.water-state { margin-left: auto; font: 9px var(--mono); color: var(--muted); }
.water-state.on { color: var(--teal); }
.water-spec { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 4px 0 10px; padding: 7px 9px; border: 1px solid rgba(216, 166, 75, .24); border-radius: 7px; background: rgba(216, 166, 75, .05); font-size: 10px; }
.water-spec b { font-weight: 500; color: var(--brass-2); }
.water-spec .muted { font: 9px var(--mono); }
.specialty-body { padding: 16px; }
.spec-water-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.spec-water-tab { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); color: var(--muted); cursor: pointer; text-align: left; font-family: inherit; }
.spec-water-tab b { font-size: 11px; color: #d8e3de; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.spec-water-tab span { font: 8px var(--mono); color: var(--faint); white-space: nowrap; }
.spec-water-tab:hover { border-color: rgba(216,166,75,.3); }
.spec-water-tab.active { border-color: rgba(216,166,75,.58); background: rgba(216,166,75,.09); }
.spec-water-tab.active b { color: var(--brass-2); }
.spec-water-tab.locked { opacity: .62; }
.spec-water-tab.locked.active { opacity: 1; }
.spec-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.spec-summary > div { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: rgba(255, 255, 255, .02); }
.spec-summary span { display: block; font: 8px var(--mono); color: var(--faint); letter-spacing: .08em; }
.spec-summary b { display: block; margin-top: 4px; font: 16px var(--mono); color: var(--brass-2); font-weight: 500; }
.spec-bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(216, 166, 75, .32); border-radius: 9px; background: linear-gradient(90deg, rgba(216, 166, 75, .08), rgba(255, 255, 255, .015)); }
.spec-bulk-copy { min-width: 0; }
.spec-bulk-copy b { display: block; font-size: 12px; color: var(--brass-2); font-weight: 500; }
.spec-bulk-copy span { display: block; margin-top: 3px; font: 9px var(--mono); color: var(--muted); }
.spec-bulk .btn { flex: 0 0 auto; }
.spec-donate-summary { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.spec-donate-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 10px var(--mono); color: var(--muted); }
.spec-donate-summary-row b { color: var(--text); font-weight: 500; }
.spec-filters { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 12px 0 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.spec-filters label { display: flex; flex-direction: column; gap: 4px; font: 8px var(--mono); color: var(--faint); }
.spec-filters select, .spec-filters input { height: 28px; min-width: 84px; border: 1px solid var(--line-2); border-radius: 6px; background: #0a191c; color: var(--text); padding: 0 7px; font-size: 11px; }
.spec-filters .spec-search { flex: 1 1 130px; }
.spec-filters .spec-search input { width: 100%; min-width: 0; }
.spec-filters .inv-filter-count { margin-left: auto; align-self: center; }
.spec-list { border-top: 1px solid var(--line); }
.spec-focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.spec-focus-card { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.spec-focus-card:hover { border-color: rgba(216, 166, 75, .32); background: rgba(216, 166, 75, .035); }
.spec-focus-card.done { border-color: rgba(143, 208, 194, .3); }
.spec-focus-card .spec-art { min-height: 50px; }
.spec-focus-card .spec-title b { font-size: 13px; }
.spec-focus-card .spec-side { gap: 7px; }
.spec-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 10px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.spec-row:hover { background: rgba(255, 255, 255, .018); }
.spec-row.undiscovered { opacity: .48; }
.spec-art { display: grid; place-items: center; min-height: 42px; }
.spec-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spec-title b { font-weight: 500; font-size: 12.5px; }
.spec-progressline { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.spec-progressline .progress { flex: 1; margin: 0; }
.spec-count { flex: 0 0 auto; font: 8.5px var(--mono); color: var(--muted); }
.spec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.spec-side .chip { font-size: 8px; }
.spec-caught { font: 8px var(--mono); color: var(--faint); white-space: nowrap; }
.spec-rules { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.spec-rules summary { cursor: pointer; font: 10px var(--mono); color: var(--muted); }
.spec-rule-list { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 4px; }
.spec-rule-list > div { display: flex; gap: 8px; font: 9px var(--mono); color: var(--muted); }
.spec-rule-list b { flex: 0 0 34px; color: var(--text-dim); font-weight: 500; }
.spec-rule-list span { line-height: 1.6; }
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.spec-card { border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .02); padding: 13px; }
.spec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.spec-head .k { font: 8px var(--mono); letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.spec-head b { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--text); }
.spec-fish { display: flex; align-items: center; gap: 7px; margin: 10px 0 8px; min-height: 26px; flex-wrap: wrap; }
.spec-fish .btn { margin-left: auto; }
.spec-meta { font: 9px var(--mono); color: var(--muted); margin-top: 7px; line-height: 1.6; }
.spec-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.spec-choice-list { display: flex; flex-direction: column; gap: 5px; max-height: 48vh; overflow-y: auto; margin-top: 12px; }
.spec-choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); border-radius: 7px; padding: 8px 10px; color: var(--text); text-align: left; }
.spec-choice:hover { border-color: rgba(216, 166, 75, .4); }
.spec-choice b { font-weight: 500; font-size: 12px; }
.spec-choice .muted { margin-left: auto; }
.spec-donate-list { max-height: 46vh; overflow-y: auto; margin-top: 12px; border-top: 1px solid var(--line); }
.spec-donate-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid rgba(26, 47, 49, .7); font-size: 11px; cursor: pointer; }
.spec-donate-row b { font-weight: 500; }
.spec-donate-row .spec-pt { margin-left: auto; font: 8.5px var(--mono); color: var(--faint); }

/* ── 全服播报记录 ─────────────────────────────────────────── */
.broadcast-history { border-top: 0; border-radius: 0 0 12px 12px; }
.bc-history-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.bc-history-row:hover { background: rgba(255, 255, 255, .02); }
.bc-art { flex: 0 0 110px; height: 58px; display: grid; place-items: center; }
.bc-art svg { width: 110px; height: 58px; }
.bc-main { flex: 1; min-width: 0; }
.bc-main .muted { font: 10px var(--mono); margin-left: 5px; }
.bc-line { font: 10px var(--mono); color: var(--faint); margin-top: 5px; }
.bc-line a { color: #8fb8b1; border-bottom: 1px dotted #4f918a; }
.bc-event { display: flex; align-items: baseline; gap: 9px; padding: 11px 14px; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.bc-event-kind { flex: 0 0 auto; font: 8px var(--mono); color: #f0b09a; border: 1px solid rgba(216, 123, 94, .4); border-radius: 4px; padding: 2px 5px; }
.bc-event.version .bc-event-kind { color: #efca82; border-color: rgba(216, 166, 75, .45); }
.bc-event-text { flex: 1; font-size: 12px; color: var(--text-dim); }
.bc-time { font: 9px var(--mono); color: var(--faint); white-space: nowrap; }

@media (max-width: 760px) {
  .broadcast-strip { flex-basis: 30px; height: 30px; padding: 0 9px; gap: 7px; }
  .broadcast-label { font-size: 8px; }
  .broadcast-more { font-size: 9px; }
  .broadcast-item { font-size: 10px; }
  .broadcast-track { gap: 20px; }
  .checkin-btn { padding: 5px 8px; font-size: 9.5px; }
  .checkin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .checkin-day { min-height: 78px; padding: 7px 5px; }
  .inv-filters { gap: 7px; padding: 8px 10px; }
  .inv-filters label { flex: 1 1 30%; }
  .inv-filters select { width: 100%; }
  .inv-filter-count { margin-left: 0; }
  .spec-water-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .spec-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .spec-bulk { align-items: stretch; }
  .spec-bulk .btn { width: 100%; }
  .spec-focus-list { grid-template-columns: 1fr; }
  .spec-focus-card { grid-template-columns: 70px minmax(0, 1fr); padding: 9px; }
  .spec-focus-card .spec-art svg { width: 70px; height: 38px; }
  .spec-focus-card .spec-side { grid-column: 2; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
  .spec-filters { gap: 6px; padding: 8px; }
  .spec-filters label { flex: 1 1 30%; }
  .spec-filters select, .spec-filters input { width: 100%; }
  .spec-filters .inv-filter-count { flex: 1 1 100%; margin-left: 0; }
  .spec-row { grid-template-columns: 54px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .spec-art svg { width: 54px; height: 30px; }
  .spec-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .spec-progressline { gap: 6px; }
  .fish-row { gap: 7px; padding: 9px 9px; flex-wrap: wrap; }
  .fish-row .pic { flex-basis: 52px; }
  .fish-row .pic svg { width: 52px; height: 30px; }
  .fish-row .price { min-width: 58px; font-size: 11px; }
  .fish-row .ops { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .fish-row .ops .btn { padding: 4px 7px; font-size: 9.5px; }
  .bc-history-row { align-items: flex-start; }
  .bc-art { flex-basis: 70px; height: 44px; }
  .bc-art svg { width: 70px; height: 44px; }
  .bc-history-row > .btn { display: none; }
  .rail { top: 82px; }
  /* 手机省电：停掉持续雾漂/脉冲和实时模糊，保留短促的咬钩、出水反馈 */
  .broadcast-viewport { mask-image: none; -webkit-mask-image: none; }
  .scene .fog, .login-scene .fog { animation: none; filter: none; opacity: .55; }
  .live-dot { animation: none; }
  .battle-fish svg { animation: none; filter: none; }
  .catch-art svg { filter: none; }
  .battle { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .scene.fighting .rodline path { animation: none; }
  .cast-btn.bite { animation: none; box-shadow: 0 0 30px rgba(216, 166, 75, .22); }
  .catch-card::before { display: none; }
  .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 9, 11, .84); }
  .scene.biting .ripple { animation-duration: 1.8s; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .rail { top: 90px; }
}

/* 设置页 · 本机开关 */
.pref-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(26, 47, 49, .7); }
.pref-row:first-child { padding-top: 2px; }
.pref-copy { flex: 1; min-width: 0; }
.pref-copy b { display: block; font-size: 12px; font-weight: 500; }
.pref-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.pref-switch { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; cursor: pointer; font: 9px var(--mono); color: var(--muted); }
.pref-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pref-switch .track { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); transition: background .16s, border-color .16s; }
.pref-switch .track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .16s, background .16s; }
.pref-switch input:checked + .track { border-color: var(--brass); background: rgba(216, 166, 75, .18); }
.pref-switch input:checked + .track::after { transform: translateX(16px); background: var(--brass-2); }
.pref-switch input:disabled + .track { opacity: .45; }
.pref-switch.disabled { opacity: .6; cursor: not-allowed; }
.pref-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 760px) {
  .food-shop-layout { grid-template-columns: 1fr; gap: 10px; padding: 8px; }
  .food-grid { grid-template-columns: 1fr; gap: 7px; }
  .food-card { grid-template-columns: 38px minmax(0, 1fr) 64px; gap: 7px; padding: 8px; }
  .food-ico { width: 36px; height: 36px; font-size: 15px; }
  .food-title b { font-size: 12.5px; }
  .food-info p { font-size: 9.5px; margin: 2px 0 4px; }
  .food-meta { gap: 7px; font-size: 8px; }
  .food-actions .price { font-size: 10.5px; }
  .food-actions .btn { padding: 4px 3px; font-size: 9px; }
  .food-auto { position: static; }
  .food-auto .panel-head { padding: 9px 10px; }
  .food-auto-body { padding: 9px 10px 10px; }
  .food-field select, .food-field input { height: 34px; font-size: 12px; }
}

/* ── 钓鱼页 · 地笼标签 ───────────────────────────────────── */
.fish-tabs { display: flex; gap: 6px; padding: 9px 12px 0; position: relative; z-index: 2; }
.fish-tab { padding: 7px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: rgba(4,13,15,.55); color: var(--muted); font: 11px var(--mono); cursor: pointer; }
.fish-tab.active { color: var(--brass-2); border-color: var(--brass); background: rgba(216,166,75,.09); }
.fish-tab .badge { margin-left: 5px; }
.fish-tab-panel.hidden { display: none; }
.fish-tab-panel { min-width: 0; }

.trap-panel { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.trap-loading { padding: 28px; text-align: center; color: var(--muted); font: 11px var(--mono); }
.trap-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(ellipse at 8% 0%, rgba(79,145,138,.18), transparent 55%), linear-gradient(150deg, rgba(255,255,255,.035), rgba(3,11,13,.24)); }
.trap-hero .k { color: var(--brass-2); font: 9px var(--mono); letter-spacing: .12em; }
.trap-hero h2 { margin: 5px 0 4px; font-size: 23px; font-weight: 400; letter-spacing: .04em; }
.trap-hero p { margin: 0; max-width: 560px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.trap-hero-count { flex: 0 0 auto; text-align: right; font-family: var(--mono); }
.trap-hero-count b { display: block; color: var(--brass-2); font-size: 32px; font-weight: 400; line-height: 1; }
.trap-hero-count span, .trap-hero-count i { display: block; color: var(--muted); font-size: 9px; font-style: normal; margin-top: 5px; }
.trap-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trap-tool { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.015); min-width: 0; }
.trap-tool.current { border-color: rgba(216,166,75,.52); background: rgba(216,166,75,.055); }
.trap-tool.locked { opacity: .56; }
.trap-tool-head { display: flex; justify-content: space-between; gap: 7px; align-items: baseline; }
.trap-tool-head b { font-size: 12px; font-weight: 500; }
.trap-tool-head span { color: var(--faint); font: 8px var(--mono); white-space: nowrap; }
.trap-tool p { min-height: 38px; margin: 6px 0 9px; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.trap-tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--brass-2); font: 9px var(--mono); }
.trap-owned { color: var(--faint); }
.trap-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 9px; }
.trap-slot { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.trap-slot.ready { border-color: rgba(143,208,194,.5); box-shadow: 0 0 0 1px rgba(143,208,194,.08) inset; }
.trap-slot.empty { opacity: .58; border-style: dashed; }
.trap-slot-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 9px var(--mono); }
.trap-slot.ready .trap-slot-top span:last-child { color: #9fe0d2; }
.trap-slot-main { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 10px 0 9px; }
.trap-slot-main b { display: block; font-size: 13px; font-weight: 500; }
.trap-slot-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.trap-slot-count { color: var(--brass-2); font: 12px var(--mono); white-space: nowrap; }
.trap-slot-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--faint); font: 9px var(--mono); }
.trap-slot-empty { padding: 12px 0 4px; color: var(--faint); font-size: 10px; }
.trap-set { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(79,145,138,.045); }
.trap-set .panel-head { padding: 0 0 10px; }
.trap-set-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.trap-set-row label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font: 9px var(--mono); }
.trap-set-row select { min-width: 150px; height: 32px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); color: var(--ink); padding: 0 8px; font: 11px var(--mono); }
.trap-hours-row { align-items: center; }
.trap-set-label { color: var(--muted); font: 9px var(--mono); }
.trap-hours { display: flex; gap: 5px; flex-wrap: wrap; }
.trap-set-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.trap-set-foot > span { color: var(--muted); font-size: 10px; }
.trap-note { padding: 14px; border: 1px dashed var(--line-2); border-radius: 9px; color: var(--muted); font-size: 11px; }

.trap-result-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 360px; overflow: auto; }
.trap-result-row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; }
.trap-result-art { height: 42px; display: grid; place-items: center; }
.trap-result-info b { display: block; font-size: 12px; font-weight: 500; }
.trap-result-info span { display: block; margin-top: 2px; color: var(--muted); font: 9px var(--mono); }
.trap-result-value { color: var(--brass-2); font: 11px var(--mono); }
.trap-result-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font: 9px var(--mono); }
.trap-result-foot .btn { margin-left: auto; }

/* ── 更新日志 ─────────────────────────────────────────────── */
.changelog-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.changelog-entry { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.changelog-entry.current { border-color: rgba(216,166,75,.45); background: rgba(216,166,75,.045); }
.changelog-mark b { display: block; color: var(--brass-2); font: 22px var(--mono); font-weight: 400; }
.changelog-mark time { display: block; margin-top: 5px; color: var(--faint); font: 9px var(--mono); }
.changelog-title { font-size: 13px; font-weight: 500; }
.changelog-now { margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(216,166,75,.35); border-radius: 4px; color: var(--brass-2); font: 8px var(--mono); }
.changelog-body ul { margin: 8px 0 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.changelog-body li + li { margin-top: 2px; }

@media (max-width: 760px) {
  .changelog-entry { grid-template-columns: 1fr; gap: 7px; padding: 13px; }
  .changelog-mark { display: flex; align-items: baseline; gap: 10px; }
  .changelog-mark b { font-size: 19px; }
  .changelog-mark time { margin-top: 0; }
  .changelog-body ul { font-size: 10.5px; line-height: 1.7; }
}

/* ── 珍珠铺 / 宝箱 ───────────────────────────────────────── */
.pearl-tabs { display: flex; gap: 6px; margin: 14px 0 10px; }
.pearl-tabs .tab { width: auto; min-width: 82px; }
.chest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chest-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse at 20% 0%, rgba(216,166,75,.09), transparent 60%), rgba(255,255,255,.015); }
.chest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chest-head .k { color: var(--faint); font: 8px var(--mono); }
.chest-head h3 { margin: 3px 0 0; font-size: 18px; font-weight: 400; }
.chest-cost { color: var(--brass-2); font: 14px var(--mono); }
.chest-card p { min-height: 34px; margin: 8px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.chest-pity { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); }
.chest-pity b { color: var(--brass-2); font-weight: 400; }
.chest-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.pearl-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pearl-item { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.015); }
.pearl-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pearl-item-top b { font-size: 12px; font-weight: 500; }
.pearl-item-top span { color: var(--brass-2); font: 10px var(--mono); white-space: nowrap; }
.pearl-item p { min-height: 28px; margin: 6px 0 9px; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.pearl-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--faint); font: 8.5px var(--mono); }
.pearl-result-list { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; max-height: 340px; overflow: auto; }
.pearl-result-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.pearl-result-row b { font-weight: 400; }
.pearl-result-row span { color: var(--muted); font: 9px var(--mono); }

@media (max-width: 760px) {
  .chest-grid, .pearl-shop-grid { grid-template-columns: 1fr; }
  .pearl-tabs .tab { min-width: 0; flex: 1; }
  .refine-box { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
  .refine-box > div { padding: 7px; }
  .refine-box b { font-size: 12px; }
}

@media (max-width: 760px) {
  .fish-tabs { padding: 7px 8px 0; }
  .fish-tab { padding: 6px 13px; font-size: 10px; }
  .trap-panel { padding: 8px; gap: 9px; }
  .trap-hero { padding: 13px; align-items: flex-start; }
  .trap-hero h2 { font-size: 19px; }
  .trap-hero p { font-size: 10px; }
  .trap-hero-count b { font-size: 25px; }
  .trap-tools { grid-template-columns: 1fr 1fr; gap: 6px; }
  .trap-tool { padding: 9px; }
  .trap-tool p { min-height: 48px; font-size: 9px; }
  .trap-slots { grid-template-columns: 1fr; }
  .trap-set { padding: 10px; }
  .trap-set-row select { min-width: 0; flex: 1; height: 36px; }
  .trap-set-row label { flex: 1; }
  .trap-set-foot { align-items: flex-start; flex-direction: column; }
  .trap-set-foot .btn { width: 100%; }
}
