/* 漓江路亚志 — 样式 */
:root {
  --deep: #06181A;
  --deep-2: #0B2628;
  --water: #123A3D;
  --paper: #EDE4CE;
  --paper-2: #F5EEDC;
  --paper-3: #DED2B4;
  --ink: #1B2927;
  --ink-2: #4B5A52;
  --jade: #6E9587;
  --jade-2: #3E6A60;
  --seal: #C94F36;
  --gold: #D9A441;
  --text: #EBE5D3;
  --muted: #A9BDB1;
  --serif: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --mono: 'Silkscreen', 'SFMono-Regular', Consolas, monospace;
  --sans: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', system-ui, sans-serif;
  /* HUD 字号：小屏维持原样，全屏/大屏随视口放大 */
  --hud-fs: clamp(10.5px, 0.42vw + 0.42vh + 4px, 20px);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body { user-select: none; -webkit-user-select: none; }

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: default; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* ---------- 舞台 ---------- */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 30%, #0D2C2D 0%, #06181A 70%);
}

#sceneWrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0A2426;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(3, 18, 18, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.frame-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(232, 225, 200, 0.1), inset 0 0 120px rgba(2, 12, 12, 0.55);
}

/* ---------- 顶部 HUD ---------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px 30px;
  background: linear-gradient(to bottom, rgba(4, 18, 18, 0.78), rgba(4, 18, 18, 0.22) 62%, transparent);
  pointer-events: none;
}

.hud-left { display: flex; flex-direction: column; gap: 3px; }

.scene-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #D9C9A4;
}
.tag-dot {
  width: 5px; height: 5px;
  background: var(--seal);
  box-shadow: 0 0 0 2px rgba(201, 79, 54, 0.18);
}

.scene-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: #F0EAD8;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.scene-meta {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(226, 233, 214, 0.62);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(6, 26, 26, 0.62);
  border: 1px solid rgba(217, 196, 150, 0.28);
  color: #E9D9A8;
}
.coin-pill .ico { width: 15px; height: 15px; }
.coin-pill b { font-family: var(--mono); font-size: 12px; font-weight: 400; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #E8E1CF;
  background: rgba(8, 32, 32, 0.62);
  border: 1px solid rgba(226, 233, 214, 0.22);
  backdrop-filter: blur(3px);
  transition: background 0.15s, border-color 0.15s;
}
.chip-btn .ico { width: 15px; height: 15px; }
.chip-btn.icon-only {
  width: 32px;
  padding: 0;
  justify-content: center;
}
.chip-btn.icon-only.is-muted {
  color: rgba(224, 216, 186, 0.42);
  border-color: rgba(226, 233, 214, 0.14);
}
.chip-btn em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  color: #D9C38B;
}
.chip-btn:hover { background: rgba(24, 66, 62, 0.9); border-color: rgba(226, 233, 214, 0.45); }

.cast-chip {
  position: absolute;
  left: 16px;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.7);
  border: 1px solid rgba(190, 214, 196, 0.2);
  pointer-events: none;
}
.cast-chip .ico { width: 13px; height: 13px; color: #AFC5B6; }
.cast-chip b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #E8D8A9; }
.cast-chip em { font-style: normal; font-size: 9px; letter-spacing: 0.06em; color: rgba(190, 205, 190, 0.7); }
.cast-chip.is-short { border-color: rgba(201, 168, 84, 0.45); }
.cast-chip.is-short em { color: #D9C38B; }
.cast-chip.is-over { border-color: rgba(201, 79, 54, 0.5); }
.cast-chip.is-over em { color: #E0705A; }

.lure-chip {
  position: absolute;
  left: 16px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.66);
  border: 1px solid rgba(217, 195, 139, 0.24);
  pointer-events: none;
}
.lure-chip .ico { width: 13px; height: 13px; color: #D9A441; }
.lure-chip b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #E8D8A9; }
.lure-chip em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: #C9A66B; }
.lure-chip em.is-empty { color: #E0705A; }

.depth-chip {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.85em;
  font-size: var(--hud-fs);
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.66);
  border: 1px solid rgba(190, 214, 196, 0.18);
  pointer-events: none;
}
.depth-chip .ico { width: 1.25em; height: 1.25em; }
.depth-chip b { font-family: var(--mono); font-size: 0.95em; font-weight: 400; color: #E8D8A9; }

.hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: min(78%, 46em);
  padding: 0.55em 1.2em;
  font-size: calc(var(--hud-fs) + 1px);
  letter-spacing: 0.06em;
  text-align: center;
  color: #EDE6D2;
  background: rgba(4, 20, 20, 0.66);
  border: 1px solid rgba(224, 218, 190, 0.16);
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 咬口 ---------- */
.bite-flash {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) scale(0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.bite-flash span {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #F4E7C4;
  text-shadow: 4px 4px 0 rgba(160, 42, 28, 0.9), 0 0 26px rgba(255, 180, 90, 0.55);
}
.bite-flash .bite-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(244, 231, 196, 0.8);
  border-radius: 50%;
}
.bite-flash.show { animation: biteIn 0.95s ease-out forwards; }
.bite-flash.show .bite-ring { animation: ringOut 0.95s ease-out forwards; }
@keyframes biteIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.02); }
}
@keyframes ringOut {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 搏鱼 HUD ---------- */
.fight-hud {
  position: absolute;
  right: 16px;
  top: 92px;
  width: 252px;
  padding: 10px 12px 9px;
  background: rgba(5, 22, 22, 0.82);
  border: 1px solid rgba(224, 216, 186, 0.22);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.fight-hud.show { opacity: 1; transform: none; }
.fight-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}
.fight-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #F1E9D3;
}
.fight-weight {
  font-family: var(--mono);
  font-size: 9px;
  color: #D9C38B;
}
.fight-dist {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(230, 233, 212, 0.66);
}
.fight-dist b { font-size: 13px; color: #ECDFB9; font-weight: 400; }

.tension-track {
  position: relative;
  height: 10px;
  background: #0C2C2C;
  border: 1px solid rgba(224, 216, 186, 0.2);
  overflow: hidden;
}
.tension-safe {
  position: absolute;
  left: 25%;
  width: 60%;
  top: 0;
  bottom: 0;
  background: rgba(110, 149, 135, 0.22);
  border-left: 1px dashed rgba(180, 210, 190, 0.5);
  border-right: 1px dashed rgba(180, 210, 190, 0.5);
}
.tension-fill {
  position: relative;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #6E9587, #A9B98C);
  transition: width 0.06s linear, background 0.2s;
}
.fight-hud.danger .tension-fill { background: linear-gradient(90deg, #D9583A, #F0A24A); }
.fight-hud.danger { animation: dangerPulse 0.35s infinite alternate; }
.fight-hud.spooling { border-color: rgba(217, 88, 58, 0.8); }
.fight-hud.spooling .fight-tip { color: #F3C4B2; }
.fight-hud.spooling .haul-fill { background: repeating-linear-gradient(90deg, #C94F36 0 6px, #8E3A28 6px 9px); }
.fight-hud.surge { border-color: rgba(224, 120, 74, 0.85); }
.fight-hud.surge .tension-fill { background: linear-gradient(90deg, #C94F36, #F0A24A); }
@keyframes dangerPulse {
  from { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
  to { box-shadow: 0 0 0 2px rgba(217, 88, 58, 0.45), 4px 4px 0 rgba(0, 0, 0, 0.35); }
}
.fight-feel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-left: 2px solid rgba(217, 195, 139, 0.5);
  background: rgba(10, 40, 40, 0.55);
  font-size: 9px;
  color: rgba(232, 226, 206, 0.6);
}
.fight-feel b {
  font-weight: 400;
  font-size: 10px;
  color: #E9DDB4;
}
.fight-hud.surge .fight-feel b { color: #F0A24A; }

/* 搏斗中的线杯余量：出线时这条会真实往下掉，归 0 才清杯 */
.fight-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(232, 226, 206, 0.6);
}
.fight-line .fl-name { flex: none; }
.fight-line .fl-track {
  display: block;
  position: relative;
  flex: 1;
  height: 6px;
  background: #0C2C2C;
  border: 1px solid rgba(224, 216, 186, 0.2);
  overflow: hidden;
}
.fight-line .fl-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #6E9587, #A9B98C);
  transition: width 0.08s linear, background 0.2s;
}
.fight-line .fl-num {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(236, 223, 185, 0.72);
}
.fight-line .fl-num b { font-weight: 400; font-size: 11px; color: #ECDFB9; }
.fight-line .fl-out {
  flex: none;
  min-width: 46px;
  text-align: right;
  font-family: var(--mono);
  font-size: 8.5px;
  color: rgba(217, 195, 139, 0.7);
}
.fight-hud.line-low .fight-line .fl-fill { background: linear-gradient(90deg, #C9A854, #D9583A); }
.fight-hud.spooling .fight-line .fl-fill {
  background: repeating-linear-gradient(90deg, #C94F36 0 6px, #8E3A28 6px 9px);
}
.fight-hud.spooling .fight-line .fl-out { color: #F0A188; }

.fight-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.fight-tip {
  font-size: 10px;
  color: rgba(232, 226, 206, 0.78);
}
.fight-limit {
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(217, 195, 139, 0.75);
}

.net-prompt {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 22px;
  background: rgba(201, 79, 54, 0.92);
  border: 2px solid #F1E6C8;
  color: #FFF7E5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}
.net-prompt span {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.net-prompt small { font-size: 10px; opacity: 0.9; letter-spacing: 0.08em; }
.net-prompt.show { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: netPulse 0.7s infinite alternate; }
@keyframes netPulse {
  from { box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4); }
  to { box-shadow: 0 0 0 5px rgba(201, 79, 54, 0.22), 5px 5px 0 rgba(0, 0, 0, 0.4); }
}

/* ---------- 蓄力条 ---------- */
.cast-meter {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 8px);
  width: min(320px, 62%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(5, 22, 22, 0.8);
  border: 1px solid rgba(224, 216, 186, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.cast-meter.show { opacity: 1; transform: translate(-50%, 0); }
.cast-meter-label { font-size: 10px; letter-spacing: 0.08em; color: rgba(232, 226, 206, 0.75); white-space: nowrap; }
.cast-meter-track {
  flex: 1;
  height: 8px;
  background: #0B2A2A;
  border: 1px solid rgba(180, 205, 186, 0.2);
  overflow: hidden;
}
.cast-meter-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6E9587 0%, #D9C38B 65%, #C94F36 100%);
}
.cast-meter-num {
  font-family: var(--mono);
  font-size: 9px;
  color: #E8D8A9;
  width: 34px;
  text-align: right;
}

/* ---------- 底部船坞 ---------- */
.dock {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: linear-gradient(to bottom, #10302F, #0A2223);
  border-top: 1px solid rgba(232, 225, 200, 0.16);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
}

.gear-strip {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.gear-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 8px;
  height: 58px;
  padding: 0 10px;
  min-width: 0;
  text-align: left;
  color: rgba(232, 232, 212, 0.82);
  background: rgba(8, 34, 34, 0.55);
  border: 1px solid rgba(232, 225, 200, 0.14);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.gear-chip:hover { background: rgba(20, 60, 56, 0.8); border-color: rgba(217, 195, 139, 0.5); }
.gear-chip:active { transform: translateY(1px); }
.gear-chip .ico { width: 18px; height: 18px; color: #AFC5B6; }
.gear-chip .chip-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.gear-chip em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(190, 205, 190, 0.6);
  white-space: nowrap;
}
.gear-chip b {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #E9E3CF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gear-chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.3;
  color: #D9C38B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gear-chip.is-broken { border-color: rgba(201, 79, 54, 0.65); background: rgba(58, 24, 20, 0.55); }
.gear-chip.is-broken i { color: #E0705A; }
.gear-chip.is-lure { border-color: rgba(201, 79, 54, 0.4); background: rgba(48, 26, 22, 0.45); }
.gear-chip.is-lure .ico { color: #D9A441; }

@media (max-width: 1280px) {
  .gear-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .gear-chip { grid-template-columns: minmax(0, 1fr); padding: 0 7px; }
  .gear-chip .ico { display: none; }
}

.broken-tag {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  color: #F4D9C9;
  background: rgba(201, 79, 54, 0.28);
  border: 1px solid rgba(201, 79, 54, 0.6);
}

.actions { display: flex; gap: 8px; flex: 0 0 auto; }

.dock-hint { display: none; }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  min-width: 116px;
  padding: 0 14px;
  border: 1.5px solid rgba(12, 26, 24, 0.5);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s, filter 0.15s;
  touch-action: none;
}
.btn .ico { width: 22px; height: 22px; }
.btn span { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; }
.btn small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.62;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.42); }
.btn:active:not(:disabled), .btn.is-down { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.42); }
.btn:disabled { opacity: 0.34; filter: grayscale(0.7); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25); }

.btn-cast { background: var(--paper); color: var(--ink); border-color: #C7B893; }
.btn-reel { background: var(--jade-2); color: #F2EDD9; border-color: #2B4F47; }
.btn-hook { background: var(--seal); color: #FFF3DD; border-color: #8E3523; }
.btn-hook.is-net { animation: hookPulse 0.55s infinite alternate; }
@keyframes hookPulse {
  from { box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42); }
  to { box-shadow: 0 0 0 4px rgba(201, 79, 54, 0.3), 3px 3px 0 rgba(0, 0, 0, 0.42); }
}

/* ---------- 菜单 ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.menu.is-gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.menu-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 19, 20, 0.96) 0%, rgba(4, 19, 20, 0.86) 38%, rgba(4, 19, 20, 0.4) 72%, rgba(4, 19, 20, 0.2) 100%),
    radial-gradient(circle at 78% 42%, rgba(217, 195, 139, 0.07), transparent 46%);
}
.menu-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(260px, 420px);
  grid-template-rows: auto auto auto auto auto;
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(24px, 6vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}
.menu-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(217, 195, 139, 0.22);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(217, 195, 139, 0.72);
}
.menu-ep { color: rgba(232, 226, 206, 0.6); }
.menu-title-row {
  grid-column: 1;
  grid-row: 2 / span 4;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  align-self: center;
}
.menu-title {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: 0.1em;
  color: #F1EAD6;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.seal-menu {
  width: 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  background: var(--seal);
  color: #FFF3DE;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.32);
}
.menu-sub {
  grid-column: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(232, 226, 206, 0.82);
}
.menu-actions {
  grid-column: 2;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.menu-start {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 10px 24px;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid #C9B98F;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.1s, box-shadow 0.1s;
}
.menu-start span { font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: 0.24em; }
.menu-start small { font-size: 10px; letter-spacing: 0.14em; color: #6B5E44; }
.menu-start:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45); }
.menu-start:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45); }
.menu-ghost {
  width: 76px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #D9D3BC;
  border: 1px solid rgba(217, 195, 139, 0.32);
  background: rgba(9, 32, 32, 0.5);
  transition: background 0.15s, border-color 0.15s;
}
.menu-ghost:hover { background: rgba(30, 66, 60, 0.8); border-color: rgba(217, 195, 139, 0.6); }

.menu-stats {
  grid-column: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(217, 195, 139, 0.18);
  border-bottom: 1px solid rgba(217, 195, 139, 0.18);
}
.menu-stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid rgba(217, 195, 139, 0.14);
}
.menu-stats > div:last-child { border-right: 0; }
.menu-stats span { font-size: 9px; letter-spacing: 0.12em; color: rgba(190, 205, 190, 0.6); }
.menu-stats b { font-family: var(--mono); font-size: 16px; font-weight: 400; color: #EFE5C8; }
.menu-stats b em { font-style: normal; font-size: 9px; margin-left: 2px; color: rgba(217, 195, 139, 0.7); }
.menu-note {
  grid-column: 2;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(190, 205, 190, 0.5);
}

/* ---------- 浮层 / 纸张 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 14, 14, 0.66);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.overlay.is-on { opacity: 1; }
.overlay[hidden] { display: none; }

.sheet {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 26px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.045) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 12% 4%, rgba(255, 252, 240, 0.9), transparent 42%),
    radial-gradient(circle at 92% 96%, rgba(160, 140, 100, 0.14), transparent 50%);
  border: 2px solid #23302C;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.42);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: #9D8F6E transparent;
  user-select: text;
}
.overlay.is-on .sheet { transform: none; }
.sheet::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb { background: #A99A76; }

.sheet::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(35, 48, 44, 0.16);
  pointer-events: none;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid rgba(35, 48, 44, 0.6);
}
.sheet-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #7C6D4E;
  margin-bottom: 4px;
}
.sheet-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.08em;
}
.sheet-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #5E6A5E;
}
.sheet-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #3A463E;
  border: 1.5px solid rgba(35, 48, 44, 0.45);
  transition: background 0.15s, color 0.15s;
}
.sheet-close:hover { background: var(--ink); color: var(--paper); }
.sheet-close .ico { width: 16px; height: 16px; }

/* ---------- 图鉴 ---------- */
.journal-top {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.journal-prog {
  flex: 1;
  padding: 12px 14px;
  background: rgba(35, 48, 44, 0.06);
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.prog-num { display: flex; align-items: baseline; gap: 6px; }
.prog-num b { font-family: var(--mono); font-size: 26px; font-weight: 400; }
.prog-num span { font-size: 11px; color: #5E6A5E; letter-spacing: 0.06em; }
.prog-bar {
  height: 5px;
  margin: 8px 0 6px;
  background: rgba(35, 48, 44, 0.14);
}
.prog-bar i { display: block; height: 100%; background: var(--seal); transition: width 0.4s; }
.prog-note { font-size: 10.5px; color: #6A7468; letter-spacing: 0.04em; }

.legend-prog {
  flex: 0 0 158px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 164, 65, 0.5);
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.12), rgba(217, 164, 65, 0.03));
}
.legend-prog span { font-size: 9px; letter-spacing: 0.16em; color: #8A6E32; }
.legend-prog b { font-family: var(--mono); font-size: 18px; font-weight: 400; color: #A87B25; }
.legend-fish { display: flex; gap: 5px; margin-top: 2px; }
.legend-fish i {
  width: 18px; height: 5px;
  background: rgba(168, 123, 37, 0.2);
  border: 1px solid rgba(168, 123, 37, 0.4);
}
.legend-fish i.got { background: var(--gold); }

.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
}
.fish-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 252, 240, 0.55);
  border: 1.5px solid rgba(35, 48, 44, 0.32);
  box-shadow: 3px 3px 0 rgba(35, 48, 44, 0.1);
}
.fish-card.r-rare { border-color: rgba(35, 48, 44, 0.6); }
.fish-card.r-legendary {
  border-color: #B58A34;
  background: linear-gradient(160deg, rgba(247, 231, 190, 0.85), rgba(237, 228, 206, 0.6));
  box-shadow: 3px 3px 0 rgba(181, 138, 52, 0.28);
}
.fish-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0E2A2F;
  border-bottom: 1.5px solid rgba(35, 48, 44, 0.3);
}
.fish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 这里放的是真正的插画原图（约 2500px 宽），不是像素画：
     用最近邻缩小会出锯齿，交给浏览器平滑重采样 */
  image-rendering: auto;
  display: block;
}
/* 图真的在了，img 不需要再靠 z-index 抢位；缺图交给 UI_fishFallback 写字 */
.fish-thumb img { position: relative; }
.fish-card.locked .fish-thumb img {
  filter: grayscale(1) brightness(0.32) contrast(1.1);
}
.fish-card.locked .fish-thumb::after {
  content: '未 记 录';
  position: absolute;
  inset: 0;
  z-index: 2; /* 卡里现在真有图了，没这层字会被 img 盖住 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.5em;
  color: rgba(232, 226, 206, 0.4);
}
.rarity-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #0E2A2F;
  background: var(--rc, #9FBFB2);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.count-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 8px;
  color: #EDE6D0;
  background: rgba(5, 22, 22, 0.72);
  border: 1px solid rgba(232, 226, 206, 0.2);
}
/* 图鉴·杂物栏：与鱼区用虚线分开，卡片做旧、去彩 */
.junk-block {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(35, 48, 44, 0.35);
}
.junk-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 14px;
}
.junk-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #4A554C;
}
.junk-head span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #8A958B;
}
.junk-head p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #6B776C;
  max-width: 620px;
}
.junk-total {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: #6B776C;
  padding: 2px 7px;
  border: 1px solid rgba(90, 99, 88, 0.35);
}
.junk-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.junk-card {
  background: rgba(232, 231, 220, 0.42);
  border-style: dashed;
  border-color: rgba(90, 99, 88, 0.45);
  box-shadow: none;
}
.junk-card .fish-thumb { background: #1B2A24; border-bottom-style: dashed; }
.junk-card .fish-title h3 { font-size: 18px; color: #3E4941; }
.junk-card .weight-best b { color: #55604F; }
.junk-card .fish-desc { min-height: 0; color: #5D6A5E; }
.junk-card .meta-chip { border-color: rgba(90, 99, 88, 0.32); color: #5D6A5E; }
.junk-card.locked .fish-thumb img { filter: grayscale(1) brightness(0.3) contrast(1.05); }
.junk-card.locked .fish-thumb::after {
  content: '没 挂 上 过';
  position: absolute;
  inset: 0;
  z-index: 2; /* 同上，字压在图上 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: rgba(232, 226, 206, 0.42);
}
/* 取不到图时的文字兜底：鱼名写在图位上，此时不再叠「未 记 录」字样 */
.fish-card.locked .fish-thumb.is-alt::after,
.junk-card.locked .fish-thumb.is-alt::after { content: none; }
.fish-alt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: rgba(232, 226, 206, 0.62);
}

.fish-body { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 12px; flex: 1; }
.fish-title { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.fish-title h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 0.06em; }
.fish-title span { font-family: var(--mono); font-size: 7px; color: #7B8679; letter-spacing: 0.04em; }
.fish-desc { margin: 0; font-size: 11px; line-height: 1.65; color: #4F5C51; min-height: 36px; }
.weight-line { display: flex; justify-content: space-between; align-items: flex-end; }
.weight-best { display: flex; flex-direction: column; gap: 1px; }
.weight-best span { font-size: 9px; letter-spacing: 0.1em; color: #7B8679; }
.weight-best b { font-family: var(--mono); font-size: 19px; font-weight: 400; color: #24322D; }
.weight-best b em { font-style: normal; font-size: 8px; color: #7B8679; margin-left: 2px; }
.weight-range { display: flex; gap: 6px; font-family: var(--mono); font-size: 7.5px; color: #8B9587; }
.range-bar {
  position: relative;
  height: 4px;
  background: rgba(35, 48, 44, 0.14);
  margin-bottom: 2px;
}
.range-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: repeating-linear-gradient(90deg, rgba(35, 48, 44, 0.2) 0 1px, transparent 1px 6px);
}
.range-bar i {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 10px;
  background: var(--seal);
}
.fish-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.meta-chip {
  padding: 2px 5px;
  font-size: 9px;
  letter-spacing: 0.03em;
  color: #4E5B50;
  border: 1px solid rgba(35, 48, 44, 0.22);
  background: rgba(255, 255, 255, 0.25);
}
.fish-tip {
  margin: 0;
  padding-top: 7px;
  border-top: 1px dashed rgba(35, 48, 44, 0.24);
  font-size: 10px;
  line-height: 1.55;
  color: #6B7568;
}

.scene-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #16332F;
  color: #E9E3D0;
  border: 1.5px solid #0B201D;
}
.scene-next .sheet-eyebrow { color: rgba(217, 195, 139, 0.7); }
.scene-next h3 { margin: 2px 0 3px; font-family: var(--serif); font-size: 19px; letter-spacing: 0.08em; }
.scene-next p { margin: 0; font-size: 10.5px; line-height: 1.6; color: rgba(230, 233, 212, 0.65); }
.scene-next.open { background: #1E4A40; border-color: #C9A85C; }
.btn-ink {
  flex: none;
  padding: 10px 18px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}
.btn-ink:hover:not(:disabled) { transform: translate(-1px, -1px); }
.btn-ink:active:not(:disabled) { transform: translate(1px, 1px); }
.btn-ink:disabled { opacity: 0.45; }
.scene-next .btn-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- 背包 ---------- */
.sheet-bag { max-width: 1040px; }
.bag-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.bag-tab {
  padding: 7px 18px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #58645A;
  border: 1.5px solid rgba(35, 48, 44, 0.28);
}
.bag-tab.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.bag-coins {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 10px;
  color: #6E5520;
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(181, 138, 52, 0.35);
}
.bag-coins .ico { width: 15px; height: 15px; }
.bag-coins b { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.bag-coins span { font-size: 9px; letter-spacing: 0.1em; }

.repair-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(201, 79, 54, 0.1);
  border: 1px solid rgba(201, 79, 54, 0.4);
}
.repair-banner > .ico { width: 24px; height: 24px; color: var(--seal); flex: none; }
.repair-banner > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.repair-banner b { font-size: 12px; color: #8F3623; letter-spacing: 0.06em; }
.repair-banner span { font-size: 10px; color: #6D6A58; }
.repair-banner.line-empty { background: rgba(168, 123, 37, 0.1); border-color: rgba(168, 123, 37, 0.45); }
.repair-banner.is-lack { background: rgba(201, 79, 54, 0.08); border-color: rgba(201, 79, 54, 0.45); }
.repair-banner.is-lack b { color: #8F3623; }

/* 换装 / 换下的一次性反馈 */
.bag-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
  padding: 7px 10px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #2F3D35;
  background: rgba(110, 149, 135, 0.14);
  border: 1px solid rgba(62, 106, 96, 0.35);
  border-left: 3px solid var(--jade-2);
}
.bag-note b {
  flex: none;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #4C6E62;
}
/* 中性提示（空位引导），与换装结果分开 */
.bag-note.is-hint {
  color: #6D6A58;
  background: rgba(35, 48, 44, 0.03);
  border: 1px dashed rgba(35, 48, 44, 0.32);
}
.bag-note.is-hint b { color: #9A9A82; }
.repair-banner.line-empty > .ico { color: #A87B25; }
.repair-banner.line-empty b { color: #7C5A16; }

/* YGT 线杯规则条：线径决定满杯米数，也决定抛投远近 */
.line-rule-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6D6A58;
  background: rgba(168, 123, 37, 0.07);
  border: 1px solid rgba(168, 123, 37, 0.3);
}
.line-rule-strip .lrs-brand {
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7C5A16;
  border: 1px solid rgba(168, 123, 37, 0.55);
}
.line-rule-strip span { display: inline-flex; align-items: baseline; gap: 4px; }
.line-rule-strip b { font-family: var(--mono); font-weight: 700; color: #3E3A2C; }
.btn-seal {
  flex: none;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFF3DE;
  background: var(--seal);
  border: 1.5px solid #8E3523;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.btn-seal:disabled { opacity: 0.4; }

/* ---------- 装备页：左上装备 / 右上搭配 / 下方背包 ---------- */
.bag-top {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.zone {
  padding: 12px 13px 13px;
  background: rgba(255, 252, 240, 0.42);
  border: 1.5px solid rgba(35, 48, 44, 0.18);
}
.zone + .zone { margin-top: 14px; }
.bag-top .zone + .zone { margin-top: 0; }
.zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(35, 48, 44, 0.16);
}
.zone-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.zone-head > span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #7B8679;
}
.zone-head.sub { margin-top: 16px; border-bottom-style: dashed; }

/* 图鉴式小图：统一一个方框，里面装像素图或槽位图标 */
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: rgba(255, 252, 240, 0.75);
  border: 1px solid rgba(35, 48, 44, 0.18);
}
.thumb-ico { display: grid; place-items: center; color: var(--jade-2); opacity: 0.55; }
.thumb-ico .ico { width: 24px; height: 24px; }
.thumb-art {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  image-rendering: pixelated;
}
.thumb.is-empty {
  background: rgba(35, 48, 44, 0.04);
  border-style: dashed;
  border-color: rgba(35, 48, 44, 0.3);
}
.thumb.is-empty .thumb-ico { opacity: 0.3; }
.thumb.is-big.is-empty { background: repeating-linear-gradient(45deg, rgba(35,48,44,0.05) 0 6px, transparent 6px 12px); }
.thumb.is-bait canvas { display: block; width: 100%; height: 100%; }
/* 线 / 前导的像素线卷：canvas 按整数网格现画，CSS 缩放走最近邻，保住硬边 */
.thumb.gear-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.gear-chip canvas.chip-pix {
  display: block;
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.thumb-tag {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 0 2px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.5;
  color: #5C6B60;
  background: rgba(247, 241, 224, 0.94);
  border: 1px solid rgba(35, 48, 44, 0.16);
}
.thumb.is-big { width: 96px; height: 96px; }
.thumb.is-big .thumb-ico .ico { width: 46px; height: 46px; }

/* 八个装备格 */
.gc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gc {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px;
  text-align: left;
  background: rgba(255, 252, 240, 0.6);
  border: 1px solid rgba(35, 48, 44, 0.2);
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.gc:hover { background: #FFFCF0; border-color: rgba(35, 48, 44, 0.5); transform: translateY(-1px); }
.gc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gc-slot { display: flex; align-items: center; gap: 4px; font-size: 9px; letter-spacing: 0.14em; color: #8A8A72; }
.gc-warn { font-style: normal; padding: 0 3px; font-size: 8px; color: #8F3623; border: 1px solid currentColor; }
.gc-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-sub {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  color: #7B8679;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-go { margin-left: auto; color: #9AA294; font-size: 14px; }
/* 空槽位：虚线框 + 「空」，点开去配 */
.gc.is-empty {
  border-style: dashed;
  border-color: rgba(35, 48, 44, 0.34);
  background: rgba(35, 48, 44, 0.035);
}
.gc.is-empty:hover { background: rgba(255, 252, 240, 0.9); border-color: rgba(35, 48, 44, 0.55); }
.gc.is-empty .gc-name { color: #8A8A72; font-weight: 400; }
.gc.is-empty:hover .gc-name { color: var(--ink); }
.gc.is-empty .gc-warn { color: #A87B25; }

/* 右上：搭配 */
.combo-figure {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #E6DCC2;
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.combo-figure img {
  width: 100%;
  height: 100%;
  margin-bottom: -4px;
  object-fit: contain;
  object-position: bottom center;
  image-rendering: pixelated;
}
.combo-rig { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
.rig-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 6px;
  background: rgba(110, 149, 135, 0.12);
  border: 1px solid rgba(62, 106, 96, 0.28);
}
.rig-chip b { font-size: 10px; font-weight: 500; }
.rig-chip i { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #6D8A80; }
/* 缺件：链条上直接断一格 */
.rig-chip.is-empty {
  background: rgba(201, 79, 54, 0.08);
  border-style: dashed;
  border-color: rgba(201, 79, 54, 0.5);
}
.rig-chip.is-empty b { color: #8F3623; }
.rig-chip.is-empty i { color: #A5654F; }
.combo-rig.is-broken em { color: #C0705A; }
.combo-rig.is-broken::after {
  content: '断链 · 补齐才能开抛';
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #8F3623;
}
.combo-rig em { font-style: normal; font-size: 9px; color: #A8A28C; }
.combo-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(35, 48, 44, 0.12);
  border: 1px solid rgba(35, 48, 44, 0.12);
}
.combo-stats span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  font-size: 9.5px;
  color: #7B8679;
  background: rgba(255, 252, 240, 0.92);
}
.combo-stats b { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--ink); }
.combo-tips { margin: 9px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.combo-tips li { position: relative; padding-left: 11px; font-size: 9.5px; line-height: 1.55; color: #6D6A58; }
.combo-tips li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 4px; height: 4px; background: var(--jade-2); }

/* 下方：背包 + 筛选 */
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-row.pack-filter { margin-bottom: 10px; }
.fchip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #5C6B60;
  background: rgba(255, 252, 240, 0.6);
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.fchip em { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #9AA294; }
.fchip:hover { border-color: rgba(35, 48, 44, 0.5); }
.fchip.on { color: var(--paper-2); background: var(--ink); border-color: var(--ink); }
.fchip.on em { color: rgba(237, 228, 206, 0.6); }
.pack-filter-label { margin-left: auto; font-size: 9px; letter-spacing: 0.18em; color: #9A9A82; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pack-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 6px;
  background: rgba(255, 252, 240, 0.6);
  border: 1px solid rgba(35, 48, 44, 0.18);
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.pack-tile .thumb { width: 52px; height: 52px; }
.pack-tile b {
  max-width: 100%;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pack-tile i { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #8A8A72; }
.pack-tile:hover { background: #FFFCF0; border-color: rgba(35, 48, 44, 0.5); transform: translateY(-1px); }
.pack-tile.on { border-color: var(--jade-2); box-shadow: inset 0 0 0 1px var(--jade-2); }
.pack-tile.on i { color: var(--jade-2); }
.pack-empty { margin: 10px 0 4px; font-size: 10.5px; color: #8A8A72; }

/* 详情页 */
.detail-bar { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; }
.detail-bar-coins {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8A7A50;
}
.item-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 13px;
  background: rgba(255, 252, 240, 0.5);
  border: 1.5px solid rgba(35, 48, 44, 0.18);
}
.ih-main { min-width: 0; }
.ih-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ih-title h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 0.05em; }
.ih-slot { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 0.16em; color: #9A9A82; }
.ih-desc { margin: 7px 0 0; font-size: 11px; line-height: 1.7; color: #4B5A52; }
.ih-eats { margin: 5px 0 0; font-size: 10px; color: #6D8A80; }
.ih-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ih-note { font-size: 10px; color: #9A9A82; }
.ih-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ih-stats span {
  flex: 1 1 108px;
  min-width: 0;
  padding: 6px 8px;
  font-size: 9.5px;
  color: #7B8679;
  background: rgba(255, 252, 240, 0.92);
  border: 1px solid rgba(35, 48, 44, 0.16);
}
.ih-stats b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); }
.shop-coins { margin-left: auto; display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; color: #8A7A50; }
.shop-body { margin-top: 10px; }

/* 饵盒里那行收纳占用 */
.storage-strip {
  margin: 0 0 10px;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #6D6A58;
  background: rgba(110, 149, 135, 0.1);
  border: 1px solid rgba(62, 106, 96, 0.3);
}
.storage-strip b {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--jade-2);
}
.slot-list { display: flex; flex-direction: column; gap: 5px; }
.slot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  text-align: left;
  color: #3D4A42;
  background: rgba(255, 252, 240, 0.4);
  border: 1.5px solid rgba(35, 48, 44, 0.22);
  transition: background 0.12s, border-color 0.12s;
}
.slot-btn:hover { background: rgba(255, 252, 240, 0.9); border-color: rgba(35, 48, 44, 0.5); }
.slot-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot-ico { display: flex; }
.slot-ico .ico { width: 20px; height: 20px; }
.slot-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.slot-txt em { font-style: normal; font-size: 9px; letter-spacing: 0.12em; opacity: 0.6; }
.slot-txt b { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bag-detail {
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(35, 48, 44, 0.22);
  background: rgba(255, 252, 240, 0.34);
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-head h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; }
.detail-stats { display: flex; gap: 10px; }
.detail-stats span { display: flex; flex-direction: column; gap: 2px; font-size: 9px; color: #7B8679; letter-spacing: 0.08em; }
.detail-stats b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: #2C3A33; }
.detail-desc { margin: 8px 0 12px; font-size: 11px; line-height: 1.7; color: #5D685B; max-width: 70ch; }

/* 载具的离线结算上限：装备详情里最要紧的一句话，写在参数条下面单独一行 */
.boat-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(233, 226, 206, 0.72);
  border-left: 3px solid #B49A5E;
  max-width: 100%;
}
.boat-cap span { font-size: 11px; line-height: 1.6; color: #3C4A42; }
.boat-cap span b { font-family: var(--mono); font-weight: 700; color: #1B2927; }
.boat-cap i { font-style: normal; font-size: 9.5px; color: #8A7B5E; }

/* ---------- 饵盒：双列卡片 ---------- */
.bait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.bait-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px 11px;
  background: rgba(255, 252, 240, 0.52);
  border: 1.5px solid rgba(35, 48, 44, 0.22);
  transition: border-color 0.12s, background 0.12s;
}
.bait-card:hover { background: rgba(255, 252, 240, 0.88); border-color: rgba(35, 48, 44, 0.46); }
.bait-card.on { background: rgba(110, 149, 135, 0.1); border-color: rgba(35, 48, 44, 0.62); }
.bait-card.on .bc-title b { color: #1E3630; }
.bait-card.empty { opacity: 0.62; }
.bc-top { display: flex; align-items: center; gap: 9px; }
.bc-thumb {
  flex: none;
  width: 46px;
  height: 46px;
  image-rendering: pixelated;
  background: rgba(35, 48, 44, 0.06);
  border: 1px solid rgba(35, 48, 44, 0.18);
}
.bc-head { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bc-title { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.bc-title b { font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.bc-count { font-size: 9px; letter-spacing: 0.08em; color: #7B8679; }
.bc-count b { font-family: var(--mono); font-size: 11px; color: #2C3A33; }
.bc-count .bc-hold { margin-left: 2px; color: #97A198; }
.price .bc-mul {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(138, 110, 50, 0.72);
}
.price.is-dim { font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.06em; color: #9AA397; }
.bc-eats {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.1em;
  color: #8A6A33;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
  padding-top: 7px;
  border-top: 1px dashed rgba(35, 48, 44, 0.2);
}
.bc-stats span { font-size: 9px; color: #7B8679; letter-spacing: 0.05em; }
.bc-stats b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #38463E; margin-left: 4px; }
.bc-act { width: 100%; text-align: center; }
.bc-buy { display: flex; align-items: center; gap: 8px; }
.bc-buy .price { margin-right: auto; }
.bc-buy .bc-act { width: auto; flex: none; }

/* 该饵在本钓场一条鱼都钓不到：角标 + 购买前提示（不拦购买，饵仍留在货架） */
.bait-card.is-dry { border-color: rgba(201, 79, 54, 0.42); }
.bait-card.is-dry .bc-top { padding-right: 60px; }
.bc-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 6px;
  background: rgba(201, 79, 54, 0.92);
  color: #FBEADF;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  pointer-events: none;
}
.bc-dry {
  margin: 0;
  padding: 5px 7px;
  background: rgba(201, 79, 54, 0.1);
  border: 1px dashed rgba(201, 79, 54, 0.5);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #8E3A28;
}

/* 主界面：当前饵在本钓场仅出杂物。位置由 ui.js 从 hudSafeTop / 横幅底边 / 掉落堆叠底边实测派生 */
.bait-warn {
  position: absolute;
  left: 18px;
  z-index: 62;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(340px, calc(100% - 36px));
  padding: 7px 10px;
  background: rgba(30, 16, 12, 0.9);
  border: 1px solid rgba(217, 88, 58, 0.55);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
  color: #F0D3C2;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, border-color 0.15s;
}
.bait-warn[hidden] { display: none; }
.bait-warn:hover { background: rgba(46, 23, 17, 0.95); border-color: rgba(240, 162, 74, 0.82); }
.bw-ico { flex: none; width: 13px; height: 13px; color: #E08A5A; }
.bw-txt { flex: 1 1 auto; }
.bw-go { flex: none; color: #E9C08A; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; }

/* 饵盒空了 */
.bait-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px 24px;
  text-align: center;
  border: 1.5px dashed rgba(35, 48, 44, 0.32);
  background: rgba(255, 252, 240, 0.34);
}
.bait-empty .be-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #8A7A55;
  border: 1px solid rgba(35, 48, 44, 0.2);
  background: rgba(35, 48, 44, 0.05);
}
.bait-empty .be-ico .ico { width: 24px; height: 24px; }
.bait-empty b { font-family: var(--serif); font-size: 19px; letter-spacing: 0.08em; color: #2C3A33; }
.bait-empty p { margin: 0; max-width: 46ch; font-size: 10.5px; line-height: 1.75; color: #5D685B; }
.be-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.be-purse { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; letter-spacing: 0.06em; color: #7B8679; }
.be-purse .ico { width: 12px; height: 12px; color: #8A6E32; }
.be-purse b { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #8A6E32; letter-spacing: 0; }

.item-list { display: flex; flex-direction: column; }
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed rgba(35, 48, 44, 0.22);
}
.item-row.on { background: rgba(110, 149, 135, 0.08); }
.item-row.empty { opacity: 0.68; }
.item-main { flex: 1; min-width: 0; }
.item-title { display: flex; align-items: center; gap: 7px; }
.item-title b { font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.mini-tag {
  padding: 1px 5px;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: #6D5A2C;
  border: 1px solid rgba(181, 138, 52, 0.4);
  background: rgba(217, 164, 65, 0.12);
}
.mini-tag.warn {
  color: #8F3623;
  border-color: rgba(201, 79, 54, 0.42);
  background: rgba(201, 79, 54, 0.1);
}
.item-main p { margin: 3px 0 5px; font-size: 10px; line-height: 1.55; color: #6A7468; }
.item-eats {
  margin: -2px 0 6px;
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: #8A6A33;
}
.item-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.item-stats span { font-size: 9px; color: #7B8679; letter-spacing: 0.05em; }
.item-stats b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #38463E; margin-left: 3px; }

.btn-outline {
  flex: none;
  padding: 7px 12px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #2F3D35;
  background: transparent;
  border: 1.5px solid rgba(35, 48, 44, 0.5);
  transition: background 0.12s, color 0.12s;
}
.btn-outline:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-outline:disabled { opacity: 0.38; }
.btn-outline.is-primary {
  color: var(--paper-2);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-outline.is-primary:hover:not(:disabled) { background: var(--seal); border-color: var(--seal); color: var(--paper-2); }
.ih-hold { font-family: var(--mono); font-size: 9.5px; color: #7B8679; }
.gear-chip.is-empty { border-style: dashed; opacity: 0.72; }
.gear-chip.is-empty b { color: #9AA294; font-weight: 400; }
.buy-col { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.price { display: flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 11px; color: #8A6E32; }
.price .ico { width: 13px; height: 13px; }

.derived-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(35, 48, 44, 0.35);
}
.derived-strip span { font-size: 9px; color: #7B8679; letter-spacing: 0.08em; }
.derived-strip b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #2C3A33; margin-left: 4px; }

/* ---------- 结算 ---------- */
.sheet-result { max-width: 720px; padding: 0; overflow-x: hidden; overflow-y: auto; }
.result { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.result-art {
  position: relative;
  background: #0E2A2F;
  border-right: 2px solid #23302C;
  min-height: 300px;
}
.result-art img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.result-art .rarity-tag { left: 12px; top: 12px; }
.record-badge {
  position: absolute;
  right: 10px;
  top: 12px;
  padding: 3px 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #FFF3DE;
  background: var(--seal);
  transform: rotate(3deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.result-body { padding: 22px 22px 20px; }
.result-body h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 32px; font-weight: 900; letter-spacing: 0.06em; }
.result-weight { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 8px; }
.result-weight b { font-family: var(--mono); font-size: 38px; font-weight: 400; color: #1F2D27; line-height: 1; }
.result-weight span { font-family: var(--mono); font-size: 11px; color: #7B8679; }
.result-desc { margin: 0 0 12px; font-size: 11px; line-height: 1.75; color: #556156; }
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px dashed rgba(35, 48, 44, 0.3);
  border-bottom: 1px dashed rgba(35, 48, 44, 0.3);
}
.result-stats span { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #7B8679; letter-spacing: 0.06em; }
.result-stats b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #2C3A33; }
.complete-note {
  margin-top: 10px;
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.6;
  color: #6E5520;
  background: rgba(217, 164, 65, 0.16);
  border-left: 2px solid var(--gold);
}
.result-actions { display: flex; gap: 8px; margin-top: 14px; }

.result.fail { display: block; padding: 30px 28px 24px; text-align: center; }
.fail-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  color: var(--seal);
  border: 1.5px solid rgba(201, 79, 54, 0.45);
  background: rgba(201, 79, 54, 0.07);
}
.fail-mark .ico { width: 28px; height: 28px; }
.result.fail h2 { font-family: var(--serif); font-size: 30px; font-weight: 900; margin: 4px 0 8px; letter-spacing: 0.12em; }
.result.fail .result-desc { max-width: 44ch; margin: 0 auto 14px; font-size: 12px; }
.result.fail .result-stats { max-width: 460px; margin: 0 auto; }
.fail-tip {
  max-width: 46ch;
  margin: 12px auto 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: #6E6A58;
}
.result.fail .result-actions { justify-content: center; }

/* ---------- 教程 ---------- */
.sheet-tut { max-width: 720px; }
.tut-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tut-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 252, 240, 0.5);
  border: 1px solid rgba(35, 48, 44, 0.22);
}
.tut-no { font-family: var(--mono); font-size: 10px; color: #A38F62; padding-top: 2px; }
.tut-ico { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #4B5C50; border: 1px solid rgba(35, 48, 44, 0.25); }
.tut-row b { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: 0.05em; margin-bottom: 3px; }
.tut-row p { margin: 0; font-size: 10.5px; line-height: 1.65; color: #63705F; }
.tut-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------- 结局 ---------- */
.sheet-ending { max-width: 640px; }
.ending { text-align: center; padding: 6px 4px 4px; }
.ending-seal {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 12px;
  background: var(--seal); color: #FFF3DE;
  font-family: var(--serif); font-size: 24px; font-weight: 900;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.24);
}
.ending h3 { font-family: var(--serif); font-size: 26px; font-weight: 900; letter-spacing: 0.1em; margin: 0 0 8px; }
.ending p { font-size: 11.5px; line-height: 1.9; color: #566156; max-width: 46ch; margin: 0 auto; }
.ending-stats { display: flex; justify-content: center; gap: 0; margin: 16px 0; border-top: 1px solid rgba(35, 48, 44, 0.22); border-bottom: 1px solid rgba(35, 48, 44, 0.22); }
.ending-stats > div { flex: 1; padding: 10px; border-right: 1px solid rgba(35, 48, 44, 0.16); }
.ending-stats > div:last-child { border-right: 0; }
.ending-stats span { display: block; font-size: 9px; color: #7B8679; letter-spacing: 0.1em; margin-bottom: 3px; }
.ending-stats b { font-family: var(--mono); font-size: 19px; font-weight: 400; color: #23312A; }
.ending-stats b em { font-style: normal; font-size: 9px; }
.ending-note { font-size: 10px; color: #7B8274; }
.ending .result-actions { justify-content: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translate(-50%, 10px);
  z-index: 60;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #F1E9D5;
  background: rgba(6, 24, 24, 0.92);
  border: 1px solid rgba(217, 195, 139, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .menu-inner { grid-template-columns: auto minmax(220px, 1fr); gap: 28px; padding: 32px; }
  .menu-title { font-size: clamp(48px, 8vw, 78px); }
  .dock { gap: 10px; padding: 8px 10px; }
  .gear-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gear-chip { grid-template-columns: auto minmax(0, 1fr); height: 54px; padding: 0 8px; gap: 0 6px; }
  .gear-chip .ico { display: block; }
  .gear-chip b { font-size: 11px; }
  .gear-chip i { font-size: 9px; }
  .btn { min-width: 100px; height: 54px; padding: 0 11px; font-size: 15px; }
  .btn .ico { width: 19px; height: 19px; }
}

@media (max-width: 720px) {
  .hud { padding: 10px 12px 24px; }
  .scene-name { font-size: 19px; }
  .scene-meta { font-size: 9px; }
  .chip-btn { padding: 0 8px; height: 30px; font-size: 11px; }
  .chip-btn span { display: none; }
  .chip-btn em { font-size: 9px; }
  .coin-pill { padding: 5px 8px; }
  .coin-pill b { font-size: 10px; }
  .cast-chip {
  position: absolute;
  left: 16px;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.7);
  border: 1px solid rgba(190, 214, 196, 0.2);
  pointer-events: none;
}
.cast-chip .ico { width: 13px; height: 13px; color: #AFC5B6; }
.cast-chip b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #E8D8A9; }
.cast-chip em { font-style: normal; font-size: 9px; letter-spacing: 0.06em; color: rgba(190, 205, 190, 0.7); }
.cast-chip.is-short { border-color: rgba(201, 168, 84, 0.45); }
.cast-chip.is-short em { color: #D9C38B; }
.cast-chip.is-over { border-color: rgba(201, 79, 54, 0.5); }
.cast-chip.is-over em { color: #E0705A; }

.lure-chip {
  position: absolute;
  left: 16px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.66);
  border: 1px solid rgba(217, 195, 139, 0.24);
  pointer-events: none;
}
.lure-chip .ico { width: 13px; height: 13px; color: #D9A441; }
.lure-chip b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #E8D8A9; }
.lure-chip em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: #C9A66B; }
.lure-chip em.is-empty { color: #E0705A; }

.depth-chip { left: 10px; bottom: 10px; }
  .hint { bottom: 40px; font-size: 10.5px; max-width: 92%; }
  .fight-hud { top: auto; bottom: 74px; left: 10px; right: 10px; width: auto; }
  .cast-meter { bottom: 76px; width: 76%; }
  .dock { flex-direction: column; align-items: stretch; gap: 7px; padding: 7px 9px 9px; }
  .gear-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .gear-chip { height: 54px; padding: 0 7px; gap: 0 5px; }
  .gear-chip .ico { width: 15px; height: 15px; }
  .gear-chip em { display: none; }
  .gear-chip b { font-size: 10.5px; }
  .gear-chip i { font-size: 9px; }
  .actions { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; }
  .btn { min-width: 0; height: 54px; justify-content: center; padding: 0 6px; font-size: 14px; gap: 5px; }
  .btn .ico { width: 17px; height: 17px; }
  .btn small { display: none; }
  .menu-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 22px 20px 26px;
    max-height: 100%;
    overflow-y: auto;
  }
  .menu-eyebrow { grid-column: 1; }
  .menu-title-row { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .menu-title { writing-mode: horizontal-tb; font-size: clamp(46px, 13vw, 68px); letter-spacing: 0.06em; }
  .seal-menu { align-self: flex-end; margin-bottom: 10px; }
  .menu-sub, .menu-actions, .menu-stats, .menu-note { grid-column: 1; }
  .menu-sub { font-size: 13px; line-height: 1.8; }
  .menu-start { min-height: 56px; }
  .menu-note { display: none; }
  .sheet { padding: 16px 15px 18px; max-height: calc(100dvh - 20px); }
  .sheet-head { margin-bottom: 12px; padding-bottom: 10px; }
  .sheet-head h2 { font-size: 24px; }
  .journal-top { flex-direction: column; gap: 8px; }
  .legend-prog { flex: none; flex-direction: row; align-items: center; gap: 10px; }
  .legend-fish { margin-left: auto; }
  .fish-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fish-body { padding: 8px; gap: 5px; }
  .fish-title h3 { font-size: 16px; }
  .fish-title span { display: none; }
  .fish-desc { display: none; }
  .weight-best b { font-size: 15px; }
  .fish-tip { display: none; }
  .meta-chip { font-size: 8px; }
  .scene-next { flex-direction: column; align-items: flex-start; }
  .bag-top { grid-template-columns: 1fr; }
  .gc-grid { grid-template-columns: 1fr; }
  .gc-sub { font-size: 8.5px; }
  .pack-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .pack-tile .thumb { width: 46px; height: 46px; }
  .combo-stats { grid-template-columns: 1fr; }
  .item-hero { flex-direction: column; gap: 10px; }
  .thumb.is-big { width: 82px; height: 82px; }
  .zone { padding: 10px; }
  .slot-list { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .slot-btn { flex: 0 0 auto; flex-direction: column; gap: 2px; min-width: 66px; padding: 6px 5px; text-align: center; }
  .slot-txt { align-items: center; }
  .slot-txt b { max-width: 62px; }
  .bag-detail { padding: 10px; }
  .detail-head h3 { font-size: 18px; }
  .detail-stats { width: 100%; flex-wrap: wrap; gap: 6px 14px; }
  .detail-stats span { flex: 0 0 auto; }
  .detail-stats b { white-space: nowrap; }
  .item-row { gap: 8px; align-items: flex-end; }
  /* 窄屏一路回退到单列，卡片内容不挤 */
  .bait-grid { grid-template-columns: 1fr; gap: 8px; }
  .bait-card { padding: 9px 10px 10px; }
  .bc-thumb { width: 42px; height: 42px; }
  .bait-empty { padding: 20px 14px 18px; }
  .bait-empty b { font-size: 17px; }
  .item-main p { display: none; }
  .item-main p.item-eats { display: block; font-size: 9px; }
  .btn-outline { padding: 6px 9px; font-size: 10px; }
  .result { grid-template-columns: 1fr; }
  .result-art { min-height: 0; aspect-ratio: 4 / 2.6; border-right: 0; border-bottom: 2px solid #23302C; }
  .result-body { padding: 14px 16px 16px; }
  .result-body h2 { font-size: 25px; }
  .result-weight b { font-size: 30px; }
  .result-desc { font-size: 10.5px; }
  .tut-list { grid-template-columns: 1fr; }
  .sheet-result { padding: 0; }
  .result.fail { padding: 22px 16px 18px; }
  .toast { bottom: 148px; font-size: 10px; }
}

@media (max-width: 720px) and (orientation: portrait) {
  #sceneWrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }
  #scene { object-fit: contain; }
  .hud { padding: 8px 10px 14px; }
  .hud-left { gap: 1px; }
  .scene-name { font-size: 16px; }
  .scene-meta { display: none; }
  .scene-tag { font-size: 8px; }
  .chip-btn { height: 27px; padding: 0 7px; }
  .chip-btn .ico { width: 13px; height: 13px; }
  .coin-pill { padding: 4px 7px; }
  .hint { display: none; }
  .cast-chip {
  position: absolute;
  left: 16px;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.7);
  border: 1px solid rgba(190, 214, 196, 0.2);
  pointer-events: none;
}
.cast-chip .ico { width: 13px; height: 13px; color: #AFC5B6; }
.cast-chip b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #E8D8A9; }
.cast-chip em { font-style: normal; font-size: 9px; letter-spacing: 0.06em; color: rgba(190, 205, 190, 0.7); }
.cast-chip.is-short { border-color: rgba(201, 168, 84, 0.45); }
.cast-chip.is-short em { color: #D9C38B; }
.cast-chip.is-over { border-color: rgba(201, 79, 54, 0.5); }
.cast-chip.is-over em { color: #E0705A; }

.lure-chip {
  position: absolute;
  left: 16px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.66);
  border: 1px solid rgba(217, 195, 139, 0.24);
  pointer-events: none;
}
.lure-chip .ico { width: 13px; height: 13px; color: #D9A441; }
.lure-chip b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #E8D8A9; }
.lure-chip em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: #C9A66B; }
.lure-chip em.is-empty { color: #E0705A; }

.depth-chip { bottom: 6px; left: 8px; padding: 3px 7px; font-size: 9px; }
  .fight-hud { bottom: 30px; top: auto; }
  .cast-meter { bottom: 32px; }
  .bite-flash span { font-size: 40px; }
  .net-prompt { padding: 8px 16px; }
  .net-prompt span { font-size: 20px; }
  .dock {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
  .gear-strip {
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .gear-chip {
    height: 58px;
    padding: 0 7px;
    gap: 0 5px;
  }
  .gear-chip b { font-size: 11px; }
  .gear-chip i { font-size: 9px; }
  .gear-chip em { display: block; font-size: 8px; }
  .gear-chip .ico { width: 16px; height: 16px; }
  .dock-hint {
    display: block;
    padding: 7px 9px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-align: center;
    color: #E7E1CD;
    background: rgba(6, 26, 26, 0.55);
    border: 1px solid rgba(224, 216, 186, 0.14);
  }
  .actions { margin-top: 0; }
  .btn { height: 62px; }
  .toast { bottom: 210px; }
}

@media (max-width: 420px) {
  .fish-grid { grid-template-columns: 1fr; }
  .fish-thumb { aspect-ratio: 16 / 9; }
  .fish-desc { display: block; }
  .menu-actions { flex-wrap: wrap; }
  .menu-ghost { flex: 1; height: 44px; width: auto; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hud { padding: 8px 12px 18px; }
  .scene-name { font-size: 17px; }
  .scene-meta { display: none; }
  .dock { padding: 6px 10px; }
  .gear-chip { height: 46px; }
  .gear-chip em { display: none; }
  .gear-chip i { font-size: 8.5px; }
  .btn { height: 48px; }
  .hint { bottom: 8px; font-size: 10px; }
  .cast-chip {
  position: absolute;
  left: 16px;
  bottom: 74px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.7);
  border: 1px solid rgba(190, 214, 196, 0.2);
  pointer-events: none;
}
.cast-chip .ico { width: 13px; height: 13px; color: #AFC5B6; }
.cast-chip b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #E8D8A9; }
.cast-chip em { font-style: normal; font-size: 9px; letter-spacing: 0.06em; color: rgba(190, 205, 190, 0.7); }
.cast-chip.is-short { border-color: rgba(201, 168, 84, 0.45); }
.cast-chip.is-short em { color: #D9C38B; }
.cast-chip.is-over { border-color: rgba(201, 79, 54, 0.5); }
.cast-chip.is-over em { color: #E0705A; }

.lure-chip {
  position: absolute;
  left: 16px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.66);
  border: 1px solid rgba(217, 195, 139, 0.24);
  pointer-events: none;
}
.lure-chip .ico { width: 13px; height: 13px; color: #D9A441; }
.lure-chip b { font-family: var(--mono); font-size: 10px; font-weight: 400; color: #E8D8A9; }
.lure-chip em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: #C9A66B; }
.lure-chip em.is-empty { color: #E0705A; }

.depth-chip { bottom: 8px; }
  .fight-hud { top: 72px; }
  .cast-meter { bottom: 34px; }
  .menu-title { font-size: clamp(40px, 6vw, 64px); }
  .menu-sub { font-size: 13px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- HUD v3：鱼饵圆徽标 / 顶部抛投条 / 右侧泳层 / 左下线杯 ---------- */
.lure-orb {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(42px, calc(var(--hud-fs) * 3.1), 68px);
  height: clamp(42px, calc(var(--hud-fs) * 3.1), 68px);
  margin-left: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(217, 195, 139, 0.42);
  background: radial-gradient(circle at 50% 32%, rgba(26, 66, 60, 0.95), rgba(4, 20, 20, 0.95));
  box-shadow: 0 0 0 3px rgba(5, 24, 24, 0.55), inset 0 0 20px rgba(0, 0, 0, 0.55), 3px 3px 0 rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lure-orb:hover { border-color: rgba(232, 214, 168, 0.8); box-shadow: 0 0 0 3px rgba(5, 24, 24, 0.55), inset 0 0 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(217, 195, 139, 0.25); }
.lure-orb::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 195, 139, 0.22);
  pointer-events: none;
}
.orb-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(12, 40, 38, 0.9), rgba(3, 16, 16, 0.95));
}
.orb-disc canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.orb-count {
  position: absolute;
  right: -6px;
  bottom: -4px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-style: normal;
  font-size: clamp(9px, calc(var(--hud-fs) * 0.68), 14px);
  line-height: 1.4;
  color: #EFE2BC;
  background: rgba(6, 24, 24, 0.94);
  border: 1px solid rgba(217, 195, 139, 0.45);
}
.orb-count.is-empty { color: #E0705A; border-color: rgba(201, 79, 54, 0.6); }

/* 泳层：右侧，鱼饵徽标下方 */
.layer-chip {
  position: absolute;
  right: 16px;
  top: calc(24px + clamp(42px, calc(var(--hud-fs) * 3.1), 68px));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.8em;
  font-size: var(--hud-fs);
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.82);
  background: rgba(5, 24, 24, 0.72);
  border: 1px solid rgba(190, 214, 196, 0.22);
  pointer-events: none;
  transition: opacity 0.2s;
}
.layer-chip .ico { width: 1.25em; height: 1.25em; color: #AFC5B6; }
.layer-chip b { font-family: var(--mono); font-size: 0.95em; font-weight: 400; color: #E8D8A9; }
#sceneWrap.is-fighting .layer-chip { opacity: 0; }
#sceneWrap.is-fighting .line-chip { opacity: 0; pointer-events: none; }

/* 抛投信息：屏幕中间上方，只在抛竿后出现 */
.cast-chip {
  position: absolute;
  left: 50%;
  top: calc(18px + clamp(42px, calc(var(--hud-fs) * 3.1), 68px));
  bottom: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1em;
  font-size: var(--hud-fs);
  transform: translate(-50%, -6px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cast-chip .ico { width: 1.25em; height: 1.25em; }
.cast-chip b { font-size: 1.05em; }
.cast-chip em { font-size: 0.86em; }
.cast-chip.show { opacity: 1; transform: translate(-50%, 0); }
.layer-chip b, .cast-chip b { font-family: var(--mono); font-weight: 500; color: #E8D8A9; }

/* 线杯状态：左下 */
.line-chip {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.85em;
  font-size: var(--hud-fs);
  letter-spacing: 0.08em;
  color: rgba(230, 233, 212, 0.8);
  background: rgba(5, 24, 24, 0.7);
  border: 1px solid rgba(190, 214, 196, 0.2);
  transition: border-color 0.2s, background 0.2s;
}
.line-chip .ico { width: 1.25em; height: 1.25em; color: #AFC5B6; }
.line-chip b { font-family: var(--mono); font-size: 1.05em; font-weight: 500; color: #E8D8A9; }
.line-chip em { font-style: normal; font-size: 0.86em; letter-spacing: 0.06em; color: rgba(190, 205, 190, 0.7); }
.line-chip.is-low { border-color: rgba(201, 168, 84, 0.5); }
.line-chip.is-low b { color: #D9C38B; }
.line-chip.is-empty {
  border-color: rgba(201, 79, 54, 0.72);
  background: rgba(44, 18, 14, 0.82);
  animation: lineEmpty 1.5s ease-in-out infinite alternate;
}
.line-chip.is-empty b { color: #F0A188; }
@keyframes lineEmpty { from { box-shadow: 0 0 0 rgba(201, 79, 54, 0); } to { box-shadow: 0 0 16px rgba(201, 79, 54, 0.4); } }

@media (max-width: 900px) {
  .layer-chip { top: calc(20px + clamp(42px, calc(var(--hud-fs) * 3.1), 68px)); right: 12px; }
  .cast-chip { top: calc(14px + clamp(42px, calc(var(--hud-fs) * 3.1), 68px)); }
}

@media (max-width: 720px) {
  .lure-orb {
    position: absolute;
    right: 10px;
    top: 60px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  #btnBag { display: none; }
  .layer-chip { display: none; }
  .cast-chip { top: 58px; }
  .line-chip { left: 10px; bottom: 10px; }
}

/* 船具面板里的饵图标 */
.bait-thumb {
  width: 46px;
  height: 46px;
  flex: none;
  image-rendering: pixelated;
  background: radial-gradient(circle at 50% 45%, rgba(22, 56, 50, 0.14), transparent 72%);
}
@media (max-width: 720px) {
  .bait-thumb { width: 34px; height: 34px; }
}

/* 船具面板里的饵图标 */
/* ========== 钓手等级 ========== */
.angler-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 3px 9px 3px 6px;
  width: fit-content;
  background: rgba(6, 26, 26, 0.5);
  border: 1px solid rgba(217, 196, 150, 0.22);
  color: #E8E1CF;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.angler-chip:hover { border-color: rgba(217, 196, 150, 0.5); background: rgba(20, 52, 46, 0.78); }
.angler-lv {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: #C9A854;
}
.angler-lv b { font-size: 12px; font-weight: 400; color: #F0EAD8; margin-left: 1px; }
.angler-main { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.angler-title {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(232, 225, 200, 0.92);
  line-height: 1;
}
.angler-bar {
  display: block;
  width: 56px;
  height: 2px;
  background: rgba(226, 233, 214, 0.16);
}
.angler-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #C9A854, #E4D9AE);
  transition: width 0.4s ease;
}
.angler-tech {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: #9FBFB2;
  padding-left: 7px;
  border-left: 1px solid rgba(226, 233, 214, 0.16);
}

/* 船具面板顶部：等级条（纸面） */
.angler-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(35, 48, 44, 0.22);
  background: rgba(35, 48, 44, 0.05);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.angler-strip:hover { border-color: rgba(35, 48, 44, 0.45); background: rgba(35, 48, 44, 0.09); }
.as-lv { font-family: var(--mono); font-size: 9px; color: #A87B25; letter-spacing: 0.04em; }
.as-lv b { font-size: 19px; font-weight: 400; color: var(--ink); margin-left: 2px; }
.as-main { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.as-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.as-head b { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.as-head span { font-family: var(--mono); font-size: 9px; color: #7A7565; }
.as-bar { height: 3px; background: rgba(35, 48, 44, 0.14); }
.as-bar i { display: block; height: 100%; background: linear-gradient(90deg, #A87B25, #C9A854); }
.as-tech { font-family: var(--mono); font-size: 10px; color: #5C7A6C; letter-spacing: 0.04em; white-space: nowrap; }
.as-tech b { color: #8F6B1E; font-weight: 400; }
.as-more { font-size: 10px; color: #A87B25; letter-spacing: 0.08em; white-space: nowrap; }

/* 等级面板 */
.sheet-angler .angler-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(35, 48, 44, 0.22);
  background: rgba(35, 48, 44, 0.05);
}
.ah-lv { display: flex; align-items: baseline; gap: 2px; color: #A87B25; }
.ah-lv em { font-family: var(--mono); font-style: normal; font-size: 12px; }
.ah-lv b { font-family: var(--mono); font-size: 40px; font-weight: 400; line-height: 1; color: var(--ink); }
.ah-main { flex: 1; min-width: 0; }
.ah-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.ah-title h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.ah-title span { font-size: 10px; color: #7A7565; letter-spacing: 0.06em; }
.ah-title .ah-cap { color: #A87B25; }
.ah-bar { height: 4px; background: rgba(35, 48, 44, 0.12); }
.ah-bar i { display: block; height: 100%; background: linear-gradient(90deg, #A87B25, #D2B269); }
.ah-meta { display: flex; gap: 18px; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; color: #7A7565; }
.ah-meta b { color: #8F6B1E; font-weight: 400; }

.angler-tech-block {
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid rgba(92, 122, 108, 0.32);
  background: rgba(92, 122, 108, 0.06);
}
.at-head { display: flex; align-items: baseline; justify-content: space-between; }
.at-head span { font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em; color: var(--ink); }
.at-head b { font-family: var(--mono); font-size: 20px; font-weight: 400; color: #4F6E60; }
.at-bar { height: 4px; margin: 8px 0 9px; background: rgba(35, 48, 44, 0.12); }
.at-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6E8F82, #9FBFB2); }
.angler-tech-block p { margin: 0; font-size: 11.5px; line-height: 1.7; color: #56604F; }

.angler-fx {
  padding: 11px 15px;
  margin-bottom: 16px;
  border-left: 2px solid rgba(168, 123, 37, 0.55);
  background: rgba(168, 123, 37, 0.07);
}
.fx-row { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 11.5px; color: #5C6357; }
.fx-row b { font-family: var(--mono); font-weight: 400; color: #8F6B1E; }
.fx-note { margin-top: 6px; font-size: 10px; color: #827C6A; line-height: 1.6; }

.angler-ladder { border-top: 1px solid rgba(35, 48, 44, 0.15); }
.al-head { padding: 10px 0 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: #857F6C; }
.al-row { display: flex; align-items: baseline; gap: 12px; padding: 6px 8px; font-size: 12px; color: #8C8778; border-bottom: 1px solid rgba(35, 48, 44, 0.08); }
.al-row .al-lv { font-family: var(--mono); font-size: 9.5px; width: 44px; color: inherit; }
.al-row b { font-family: var(--serif); font-weight: 500; letter-spacing: 0.08em; }
.al-row .al-tech { margin-left: auto; font-family: var(--mono); font-size: 9.5px; }
.al-row.on { color: #46524A; }
.al-row.cur { color: var(--ink); background: rgba(168, 123, 37, 0.1); }
.al-row.cur .al-tech, .al-row.cur .al-lv { color: #8F6B1E; }

/* 中鱼卡：阅历与升级卡 */
.rv-chip.is-xp { color: #9FBFB2; border-color: rgba(159, 191, 178, 0.4); }
.rv-level { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin: 10px 0 2px; color: #C9A854; }
.rv-level em { font-family: var(--mono); font-style: normal; font-size: 14px; }
.rv-level b { font-family: var(--mono); font-size: 54px; font-weight: 400; line-height: 1; color: #F6EDD4; }
.rv-level span { margin-left: 10px; font-family: var(--serif); font-size: 19px; letter-spacing: 0.1em; color: #E8D8A9; }
.rv-lv-tech { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(214, 222, 204, 0.72); text-align: center; }
.rv-lv-tech i { font-style: normal; color: #9FBFB2; }
.rv-lv-note { max-width: 300px; margin: 10px auto 14px; font-size: 11.5px; line-height: 1.7; text-align: center; color: rgba(214, 222, 204, 0.7); }
.reveal-card.is-level { max-width: 360px; }

@media (max-width: 1100px) {
  .angler-chip { gap: 6px; padding-right: 7px; }
  .angler-bar { width: 42px; }
}
@media (max-width: 720px) {
  .angler-chip { margin-top: 4px; padding: 2px 6px 2px 4px; gap: 5px; }
  .angler-lv b { font-size: 10px; }
  .angler-title { font-size: 8px; letter-spacing: 0.06em; }
  .angler-bar { width: 34px; height: 2px; }
  .angler-tech { font-size: 7.5px; padding-left: 5px; }
  .ah-lv b { font-size: 32px; }
  .as-more { display: none; }
}

/* ========== 图鉴分类：鱼种 / 鱼饵 / 鱼竿 / 渔轮 ========== */
.journal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 18px;
  border-bottom: 1px solid rgba(35, 48, 44, 0.2);
}
.journal-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 15px 8px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #7A7565;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.journal-tab:hover { color: #46524A; background: rgba(35, 48, 44, 0.04); }
.journal-tab em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #94907E;
}
.journal-tab.on { color: var(--ink); border-bottom-color: #A87B25; }
.journal-tab.on em { color: #8F6B1E; }

.catalog-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.catalog-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.catalog-head > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8C8778;
}
.catalog-head p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6D6A58;
}

.catalog-head.gear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gear-head .gh-text {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}
.gear-head .gh-text p { grid-column: 1 / -1; }
.gear-head .gh-art {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 12px 7px;
  border: 1px solid rgba(35, 48, 44, 0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 48, 44, 0.06), transparent 70%),
    #F7F0DF;
}
.gear-head .gh-art img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* 竿 / 轮页头大图走 canvas 像素图：尺寸必须取 22 的整数倍（88 = 22×4），
   这样 paintGearIcons 算出的位图 = 显示尺寸，不再二次缩放 */
.gear-head .gh-art canvas.gh-pix {
  display: block;
  width: 88px;
  height: 88px;
  image-rendering: pixelated;
}
.gear-head .gh-brand {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #8F6B1E;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px 13px;
  background: rgba(35, 48, 44, 0.04);
  border: 1px solid rgba(35, 48, 44, 0.2);
  transition: border-color 0.15s, background 0.15s;
}
.catalog-card:hover { border-color: rgba(35, 48, 44, 0.38); background: rgba(35, 48, 44, 0.06); }
.catalog-card.is-on { border-color: rgba(168, 123, 37, 0.62); background: rgba(168, 123, 37, 0.06); }
.catalog-card.is-locked { opacity: 0.66; }
.catalog-card.is-locked:hover { opacity: 1; }

.cc-top { display: flex; align-items: center; gap: 11px; }
.cc-top .bait-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(35, 48, 44, 0.16);
  background: radial-gradient(circle at 50% 45%, rgba(22, 56, 50, 0.1), transparent 72%);
}
.cc-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(35, 48, 44, 0.2);
  background: rgba(35, 48, 44, 0.05);
  color: #4F6E60;
}
.cc-ico .ico { width: 22px; height: 22px; }
.gear-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 3px;
  border: 1px solid rgba(35, 48, 44, 0.18);
  background: #F8F1E1;
}
.gear-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; }
.cc-title h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.cc-band {
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: #5C7A6C;
  border: 1px solid rgba(92, 122, 108, 0.36);
}
.cc-state {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #857F6C;
}
.cc-state i { font-style: normal; }
.cc-state i.is-on { color: #8F6B1E; }

.cc-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: #5C6357;
  text-wrap: pretty;
}
.cc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cc-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 6px;
  font-size: 9.5px;
  color: #7A7565;
  background: rgba(35, 48, 44, 0.05);
  border: 1px solid rgba(35, 48, 44, 0.12);
}
.cc-stats b { font-family: var(--mono); font-weight: 400; font-size: 10px; color: #46524A; }
.cc-stats b.good { color: #4F7A5E; }
.cc-stats b.warn { color: #A8552F; }
.cc-eats {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(35, 48, 44, 0.16);
  font-size: 10.5px;
  line-height: 1.6;
  color: #6D6A58;
}
.cc-eats.is-dim { color: #9A9382; }

@media (max-width: 720px) {
  .journal-tab { padding: 8px 11px 7px; font-size: 13px; }
  .journal-tabs { gap: 0; margin: 8px 0 14px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 10px; }
  .cc-top .bait-thumb { width: 44px; height: 44px; }
  .gear-head .gh-art { padding: 7px 8px 6px; }
  .gear-head .gh-art img { width: 76px; height: 76px; }
}

/* ========== HUD：鱼饵徽标下移放大，泳层标签跟随 ========== */
:root {
  --orb-size: clamp(66px, calc(var(--hud-fs) * 5.6), 100px);
  --orb-top: clamp(82px, calc(var(--hud-fs) * 6.4), 108px);
}
.hud-right .lure-orb {
  position: absolute;
  right: 18px;
  top: var(--orb-top);
  margin-left: 0;
  width: var(--orb-size);
  height: var(--orb-size);
  z-index: 5;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.hud-right .lure-orb .orb-disc { width: 80%; height: 80%; }
.hud-right .lure-orb .orb-count {
  right: -7px;
  bottom: -5px;
  padding: 1px 6px;
  font-size: clamp(10px, calc(var(--hud-fs) * 0.78), 15px);
}
.layer-chip {
  right: 18px;
  top: calc(var(--orb-top) + var(--orb-size) + 10px);
  z-index: 5;
  padding: 0.55em 1em;
  font-size: calc(var(--hud-fs) * 1.14);
}
.layer-chip .ico { width: 1.35em; height: 1.35em; }
/* 搏鱼时右侧让给搏鱼面板 */
#sceneWrap.is-fighting .lure-orb { opacity: 0; pointer-events: none; }

@media (max-width: 1100px) {
  :root { --orb-size: clamp(60px, calc(var(--hud-fs) * 5.4), 84px); --orb-top: clamp(78px, calc(var(--hud-fs) * 6.2), 96px); }
  .hud-right .lure-orb { right: 14px; }
  .layer-chip { right: 14px; }
}

@media (max-width: 720px) {
  :root { --orb-size: 56px; --orb-top: 74px; }
  .hud-right .lure-orb { right: 10px; }
  .hud-right .lure-orb .orb-count { font-size: 9.5px; padding: 1px 4px; right: -5px; bottom: -4px; }
  .layer-chip {
    display: flex;
    right: 10px;
    top: calc(var(--orb-top) + var(--orb-size) + 8px);
    padding: 0.4em 0.7em;
    font-size: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --orb-size: 56px; --orb-top: 72px; }
  .layer-chip { top: calc(var(--orb-top) + var(--orb-size) + 8px); font-size: 10px; }
}

/* ---------- 节奏测试台 ---------- */
.chip-lab { background: rgba(201, 166, 107, 0.16); border-color: rgba(201, 166, 107, 0.55); }
.sheet-lab { max-width: 760px; }
.lab-body { display: flex; flex-direction: column; gap: 12px; }
.lab-picks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab-label { flex: none; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2); opacity: 0.75; }
.lab-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-chip {
  padding: 5px 10px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(255, 252, 240, 0.65);
  border: 1px solid rgba(35, 48, 44, 0.28);
  cursor: pointer;
  font-family: inherit;
}
.lab-chip:hover { border-color: var(--ink); color: var(--ink); }
.lab-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.lab-hero {
  padding: 12px 14px;
  border: 1px solid rgba(35, 48, 44, 0.32);
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 166, 107, 0.18), transparent 60%),
    rgba(255, 252, 240, 0.7);
}
.lab-hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lab-hero-top span { font-size: 11px; letter-spacing: 0.12em; color: var(--ink-2); }
.lab-hero-top em { font-style: normal; font-size: 10.5px; color: var(--ink-2); opacity: 0.75; }
.lab-hero-main { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-family: var(--mono); }
.lab-hero-main b { font-size: 22px; font-weight: 400; color: var(--ink); }
.lab-hero-main b:last-child { color: #8C5B2B; }
.lab-hero-main i {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(35, 48, 44, 0.5) 0 6px, transparent 6px 11px);
}
.lab-hero-sub { font-size: 12px; color: var(--ink-2); }

.lab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lab-stats > div {
  padding: 8px 10px;
  border: 1px solid rgba(35, 48, 44, 0.2);
  background: rgba(255, 252, 240, 0.55);
}
.lab-stats span { display: block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-2); opacity: 0.8; }
.lab-stats b { font-family: var(--mono); font-size: 16px; font-weight: 400; }
.lab-stats b em { font-style: normal; font-size: 10px; margin-left: 2px; opacity: 0.7; }

.lab-block { border-top: 1px solid rgba(35, 48, 44, 0.18); padding-top: 9px; }
.lab-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lab-block-head span { font-size: 11px; letter-spacing: 0.12em; }
.lab-block-head em { font-style: normal; font-size: 10px; color: var(--ink-2); opacity: 0.75; }

.lab-timeline { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-lv {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  border: 1px solid rgba(35, 48, 44, 0.22);
  background: rgba(255, 252, 240, 0.5);
}
.lab-lv b { font-weight: 400; color: #8C5B2B; }
.lab-empty { font-size: 11px; color: var(--ink-2); opacity: 0.8; }

.lab-table { font-family: var(--mono); font-size: 11px; }
.lab-tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 0.7fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(35, 48, 44, 0.14);
  color: var(--ink-2);
}
.lab-tr b { font-weight: 400; color: var(--ink); text-align: right; }
.lab-tr span:nth-child(2), .lab-tr span:nth-child(3) { text-align: right; }
.lab-th { border-bottom: 1px solid rgba(35, 48, 44, 0.3); opacity: 0.7; font-size: 10px; }

.lab-bar { height: 6px; border: 1px solid rgba(35, 48, 44, 0.3); background: rgba(255, 252, 240, 0.6); }
.lab-bar i { display: block; height: 100%; background: #8C5B2B; opacity: 0.8; }
.lab-note { font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }
.lab-note b { font-family: var(--mono); font-weight: 400; color: var(--ink); }

@media (max-width: 720px) {
  .lab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bag-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(35, 48, 44, 0.18);
}
.bag-foot span { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-2); opacity: 0.72; }
@media (max-width: 720px) {
  .chip-lab { display: none; }
  .bag-foot { flex-direction: column; align-items: stretch; gap: 6px; }
}

/* ---------- 钓场地图 ---------- */
.chip-spot em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-2); opacity: 0.8; }
.sheet-spots { max-width: 1000px; }
.spot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spot-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px 12px;
  border: 1px solid rgba(35, 48, 44, 0.26);
  background: rgba(255, 252, 240, 0.62);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.spot-card:hover { border-color: var(--ink); background: rgba(255, 252, 240, 0.9); transform: translateY(-1px); }
.spot-card.on { border-color: #8C5B2B; background: rgba(201, 166, 107, 0.14); }
.spot-card header { display: flex; align-items: baseline; gap: 9px; }
.spot-card header > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.spot-card header i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  opacity: 0.6;
}
.spot-card header h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; }
.spot-card header span { font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-2); opacity: 0.75; }
.spot-now {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: #8C5B2B;
  padding: 1px 6px;
}
.spot-tag { font-size: 11.5px; color: var(--ink); }
.spot-water {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 10px;
  color: var(--ink-2);
}
.spot-water span { display: inline-flex; align-items: center; gap: 5px; }
.spot-water b { font-family: var(--mono); font-weight: 400; color: var(--ink); }
.spot-water .sw-hue i {
  width: 16px;
  height: 10px;
  border: 1px solid rgba(35, 48, 44, 0.35);
}
.spot-water .sw-flow b::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  height: 3px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.45;
  width: calc(var(--wf, 0.5) * 46px);
}
.spot-water .sw-flow {
  --wf: 0.5;
}
.spot-water .sw-flow[data-speed="0.3"] { --wf: 0.22; }
.spot-water .sw-flow[data-speed="0.5"] { --wf: 0.36; }
.spot-water .sw-flow[data-speed="0.75"] { --wf: 0.56; }
.spot-water .sw-flow[data-speed="1"] { --wf: 0.74; }
.spot-water .sw-flow[data-speed="1.75"] { --wf: 1; }
.spot-fish-row { display: flex; flex-wrap: wrap; gap: 4px; }
.spot-fish {
  font-size: 10px;
  padding: 1px 6px;
  color: var(--ink-2);
  border: 1px solid rgba(35, 48, 44, 0.2);
  background: rgba(255, 252, 240, 0.6);
}
.spot-fish.got { border-color: rgba(140, 91, 43, 0.45); color: #8C5B2B; }
.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: var(--ink-2);
  border-top: 1px dashed rgba(35, 48, 44, 0.16);
  padding-top: 6px;
}
.spot-meta b { font-family: var(--mono); font-weight: 400; color: var(--ink); }
.spot-note-line { font-size: 10.5px; line-height: 1.65; color: var(--ink-2); opacity: 0.9; }
.spot-foot { margin-top: 10px; font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 720px) {
  .spot-grid { grid-template-columns: 1fr; }
  .chip-spot em { display: none; }
}
.spot-fish.is-more { border-style: dashed; opacity: 0.75; }
.spot-fish.is-lock {
  min-width: 18px;
  text-align: center;
  color: var(--ink-2);
  border-style: dashed;
  letter-spacing: 0;
  opacity: 0.55;
}

.scene-switch {
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.scene-switch:hover .scene-name { color: #E4C98A; }
.scene-switch:hover .scene-tag .tag-dot { box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.25); }
@media (max-width: 720px) {
  #btnSpot { display: none; }
}

/* ========== 左上角 · 生涯最大鱼获 ========== */
.angler-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.angler-row .angler-chip { margin-top: 0; }
.bigcatch-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #C9A854;
  background: rgba(6, 26, 26, 0.5);
  border: 1px solid rgba(217, 196, 150, 0.22);
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bigcatch-btn:hover {
  border-color: rgba(217, 196, 150, 0.55);
  background: rgba(20, 52, 46, 0.78);
  color: #F3E4B8;
}
.bigcatch-btn .ico { width: 13px; height: 13px; }
.bigcatch-btn.is-empty { color: rgba(201, 168, 84, 0.42); }
@media (max-width: 720px) {
  .bigcatch-btn { width: 20px; height: 20px; }
  .bigcatch-btn .ico { width: 12px; height: 12px; }
}

.sheet-bigcatch { max-width: 660px; }
.bc-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.bc-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1.5px solid #23302C;
  background: #0E2A2F;
  box-shadow: 4px 4px 0 rgba(35, 48, 44, 0.16);
}
.bc-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto; /* 同 .fish-thumb：原图是插画，不做最近邻 */
}
.bc-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bc-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #8A7A56;
}
.bc-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--ink);
}
.bc-latin { font-size: 11px; letter-spacing: 0.05em; color: #7C6D4E; }
.bc-weight {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--mono);
}
.bc-weight b { font-size: clamp(30px, 5.4vw, 44px); font-weight: 400; color: #8C6A22; line-height: 1; }
.bc-weight span { font-size: 11px; letter-spacing: 0.16em; color: #7C6D4E; }
.bc-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(35, 48, 44, 0.32);
}
.bc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #5E6A5E;
}
.bc-row b {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: right;
}
.bc-foot {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: #6E7A6C;
}
.bc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 12px 30px;
  text-align: center;
}
.bc-empty .ico { width: 38px; height: 38px; color: #B6AC8C; stroke-width: 1.2; }
.bc-empty b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.34em;
  color: #5E6A5E;
  text-indent: 0.34em;
}
.bc-empty p { margin: 0; max-width: 36ch; font-size: 12px; line-height: 1.9; color: #7C8A78; }
@media (max-width: 560px) {
  .bc-stage { grid-template-columns: 1fr; gap: 14px; }
  .bc-art { aspect-ratio: 16 / 10; }
}

/* 鱼图取不到时的兜底：由 UI_fishFallback 把鱼名写进 .bc-art，不再留空框 */
.bc-art .fish-alt { font-size: 17px; letter-spacing: 0.3em; }

/* ================= 装备品质（六档） =================
   白 #d8d8d8 / 蓝 #4a9eff / 黄 #ffd23f / 紫 #b06bff / 橙 #ff8c1a / 红 #ff3b3b
   统一用 --q 变量承载，任何带 .q0–.q5 的容器都能拿到自己的品质色 */
.q0 { --q: #d8d8d8; --q-soft: rgba(216, 216, 216, 0.16); }
.q1 { --q: #4a9eff; --q-soft: rgba(74, 158, 255, 0.18); }
.q2 { --q: #ffd23f; --q-soft: rgba(255, 210, 63, 0.18); }
.q3 { --q: #b06bff; --q-soft: rgba(176, 107, 255, 0.2); }
.q4 { --q: #ff8c1a; --q-soft: rgba(255, 140, 26, 0.22); }
.q5 { --q: #ff3b3b; --q-soft: rgba(255, 59, 59, 0.24); }

.gc[class*=" q"], .pack-tile[class*=" q"], .item-row[class*=" q"],
.catalog-card[class*=" q"], .bait-card[class*=" q"] {
  border-color: color-mix(in srgb, var(--q) 62%, transparent);
}
.gc[class*=" q"]:hover, .pack-tile[class*=" q"]:hover { border-color: var(--q); }
.gc[class*=" q"]::after, .pack-tile[class*=" q"]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--q) 30%, transparent), 0 0 14px -6px var(--q);
}
.item-row[class*=" q"] { border-left: 3px solid var(--q); }
.item-row.svc[class*=" q"] { background: linear-gradient(90deg, var(--q-soft), transparent 42%); }

.q-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #10201F;
  background: var(--q);
  box-shadow: 0 0 10px -3px var(--q);
  white-space: nowrap;
}
.pack-tile .q-badge, .gc .q-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
}

/* 掉落弹卡：品质色光效 + 品质名，点一下跳详情 */
/* 定位交给容器：卡片纵向依次排列、间距 8px，超过 3 条折成「还有 N 件」
   （原来每条卡各自 fixed 到同一个 top/right，4 条同屏会完全重合） */
.drop-stack {
  position: fixed;
  right: clamp(12px, 2.2vw, 30px);
  top: clamp(74px, 12vh, 132px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 150px);
  pointer-events: none;
}
.drop-pop {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: min(340px, 76vw);
  padding: 10px 12px 10px 14px;
  border: 1px solid color-mix(in srgb, var(--q) 70%, transparent);
  border-left: 4px solid var(--q);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(9, 30, 31, 0.96), rgba(6, 22, 24, 0.94));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform: translateX(26px);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.16, 0.84, 0.24, 1), opacity 0.34s ease;
  box-shadow: 0 14px 34px -18px #000, 0 0 24px -14px var(--q);
}
.drop-pop.in { transform: translateX(0); opacity: 1; }
.drop-pop:hover { border-color: var(--q); }
/* .drop-pop 是作者样式里的 display:flex，会盖掉 UA 的 [hidden]{display:none}，
   光写 el.hidden = true 不会真的隐藏（展开卡与「还有 N 件」会同时出现） */
.drop-pop[hidden] { display: none; }
.dp-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 18% 50%, var(--q-soft), transparent 62%);
  pointer-events: none;
  animation: dpGlow 2.6s ease-in-out infinite;
}
@keyframes dpGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.dp-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dp-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--q);
  text-transform: uppercase;
}
.dp-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--paper-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-meta { font-size: 11px; color: var(--muted); }
.dp-go { color: var(--q); font-size: 20px; line-height: 1; }
/* 折叠聚合卡：不抢品质色，用中性描边区分 */
.drop-more {
  --q: #8FB0A8;
  --q-soft: rgba(143, 176, 168, 0.16);
  border-style: dashed;
}
.drop-more .dp-kicker { color: var(--muted); }

/* 补线服务栏 */
.shop-tabs { margin-bottom: 8px; }
.item-row.svc .buy-col .btn-outline:disabled { opacity: 0.42; }

@media (max-width: 640px) {
  /* 小屏 top 由 JS 实测派生（顶栏底边 → 横幅可见时让到横幅底边 +8），
     这里的 118px 只是首帧兜底，绝不写死成 62px（那会压住 Lv 条与溜鱼读数） */
  .drop-stack { top: var(--drop-top, 118px); right: 8px; left: 8px; max-height: calc(100vh - 120px); }
  .drop-stack .drop-pop { max-width: none; }
}

/* 品质角标需要一个定位上下文 */
.gc, .pack-tile, .item-row, .bait-card, .item-hero { position: relative; }
.q-badge { position: static; }
.gc .q-badge, .pack-tile .q-badge { position: absolute; top: 4px; right: 4px; }
/* 深色底上让品质名更醒目一些 */
.item-title .q-badge { color: #10201F; }

/* 顶部提示条：爆竿补发这类「不处理就没法继续玩」的事件走这里 */
.top-notice {
  position: fixed;
  /* JS 会用 #hud 实测底边覆盖这个值；这里只是兜底，绝不能是 0（会压住 Lv 条与溜鱼状态块） */
  top: calc(env(safe-area-inset-top, 0px) + 96px);
  left: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  max-width: min(560px, 92vw);
  padding: 9px 18px 10px;
  transform: translate(-50%, -18px);
  opacity: 0;
  border: 1px solid rgba(201, 79, 54, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 12, 10, 0.97), rgba(12, 26, 26, 0.96));
  box-shadow: 0 12px 28px -16px #000;
  text-align: center;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.16, 0.84, 0.24, 1), opacity 0.28s ease;
}
.top-notice.in { transform: translate(-50%, 0); opacity: 1; }
.top-notice b {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #FFD9CE;
}
.top-notice span { font-size: 11px; color: var(--muted); }
.top-notice.is-warn { border-color: rgba(217, 164, 65, 0.6); }
@media (max-width: 640px) {
  .top-notice { min-width: 0; width: calc(100% - 16px); padding: 8px 12px 9px; }
  .top-notice b { font-size: 13px; }
}

/* 窄屏顶栏右缘原来溢出视口（390px 视口实测右缘 398 / 视口 390，右侧内边距被切）：
   只收紧 chip 间距与内边距，把五个控件收回内容盒；不动顶栏结构与高度 */
@media (max-width: 430px) {
  .hud-right { gap: 5px; }
  .hud-right .chip-btn { padding: 0 6px; }
  .hud-right .coin-pill { padding: 4px 6px; }
}

/* 更窄的机器（360/375 级）再收一档，避免右缘被切 */
@media (max-width: 400px) {
  .hud-right { gap: 3px; }
  .hud-right .chip-btn { padding: 0 4px; }
  .hud-right .coin-pill { padding: 3px 4px; }
}

/* 360 级：左右两块之间的间距与内边距再收一点，右缘才能压进 360 视口内 */
@media (max-width: 380px) {
  .hud { gap: 8px; padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 640px) {
  .bait-warn { left: 12px; max-width: calc(100% - 24px); padding: 6px 9px; font-size: 10.5px; }
  .bw-go { display: none; }
}
