/* 湖畔垂钓 · 落日湖湾 */
:root {
  --orange: #FF8A3D;
  --orange-deep: #E9661E;
  --orange-pale: #FFD7B0;
  --gold: #FFC97A;
  --cream: #FFF9F0;
  --paper: #FFF7EA;
  --ink: #3B2B20;
  --ink-soft: #6B5746;
  --muted: #94806C;
  --glass: rgba(255, 249, 240, 0.86);
  --glass-line: rgba(255, 255, 255, 0.72);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #1D211B;
  color: var(--cream);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.mp-icon { flex: none; }

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #1D211B;
  isolation: isolate;
}

/* ---------- 落日湖湾实景 ---------- */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #7A735B;
  z-index: 0;
}
.scene-img {
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 45% 50%;
  filter: saturate(1.06) contrast(1.025) brightness(1.015);
  pointer-events: none;
  transform: translateZ(0);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 32, 22, 0.33) 0%, rgba(37, 32, 22, 0.04) 18%, transparent 32%),
    radial-gradient(135% 95% at 50% 48%, transparent 48%, rgba(48, 30, 12, 0.20) 100%);
}
.scene-sun {
  position: absolute;
  left: 36%;
  top: 31%;
  width: 64vw;
  height: 64vw;
  max-width: 420px;
  max-height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 154, 0.30), rgba(255, 158, 66, 0.13) 46%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: sunPulse 8s ease-in-out infinite;
}
.scene-haze {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 205, 137, 0.10) 48%, transparent 100%);
  filter: blur(10px);
}
.scene-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 34% at 37% 33%, rgba(255, 224, 160, 0.20), transparent 74%),
    linear-gradient(180deg, transparent 0%, transparent 48%, rgba(115, 74, 31, 0.08) 100%);
}
.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(39, 25, 10, 0.22);
}
.birds {
  position: absolute;
  top: 15.5%;
  left: 58%;
  width: 96px;
  color: rgba(65, 50, 38, 0.62);
  opacity: 0.58;
  pointer-events: none;
  animation: birdDrift 18s ease-in-out infinite;
}
.birds svg { display: block; width: 100%; height: auto; }
.mist {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 12%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 230, 190, 0.13) 32%, rgba(255, 242, 216, 0.17) 56%, transparent 100%);
  filter: blur(18px);
  animation: mistDrift 36s linear infinite;
}
.mist-a { top: 39%; }
.mist-b { top: 48%; opacity: 0.55; animation-duration: 48s; animation-direction: reverse; }
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 240, 195, 0.9);
  box-shadow: 0 0 8px rgba(255, 205, 128, 0.9);
  animation: moteFloat linear infinite;
  will-change: transform, opacity;
}

/* ---------- 顶部漂浮信息 ---------- */
.topbar {
  position: absolute;
  z-index: 20;
  top: calc(var(--safe-top) + 14px);
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  animation: topIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.place {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(66, 41, 15, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: auto;
}
.place-badge {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF9F0;
  background: radial-gradient(circle at 34% 26%, #FFC28C 0%, #FF9A50 35%, #FF7A29 67%, #E55F18 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 5px 12px rgba(211, 90, 24, 0.30);
}
.place-badge .mp-icon { width: 20px; height: 20px; }
.place-copy { display: flex; flex-direction: column; min-width: 0; }
.place-copy strong {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
.place-copy em {
  margin-top: 2px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #937A61;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: #58B56E;
  box-shadow: 0 0 6px rgba(88, 181, 110, 0.8);
  animation: dotBlink 2.4s ease-in-out infinite;
}
.top-actions { display: flex; gap: 9px; pointer-events: auto; }
.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #544333;
  background: rgba(255, 249, 240, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 22px rgba(61, 37, 13, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: transform 0.14s ease, background 0.2s ease;
}
.icon-btn .mp-icon { width: 21px; height: 21px; }
.icon-btn:active { transform: scale(0.93); background: rgba(255, 255, 255, 0.96); }
.icon-btn.light {
  width: 38px;
  height: 38px;
  color: #7A624B;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(120, 86, 53, 0.10);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.icon-btn.light .mp-icon { width: 18px; height: 18px; }

/* ---------- 湖面状态签 ---------- */
.water-note {
  position: absolute;
  z-index: 18;
  top: calc(var(--safe-top) + 76px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(54, 38, 22, 0.30);
  border: 1px solid rgba(255, 242, 218, 0.24);
  box-shadow: 0 6px 20px rgba(37, 24, 10, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 248, 233, 0.9);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  animation: topIn 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.water-note .mp-icon { width: 13px; height: 13px; color: #FFD291; }
.water-note-ring {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 211, 155, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 188, 111, 0.14);
}

/* ---------- 鱼线 ---------- */
.line-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: visible;
}
.line-layer.show { opacity: 1; }
.line-main {
  fill: none;
  stroke: rgba(255, 252, 240, 0.80);
  stroke-width: 1.15;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(71, 43, 17, 0.4));
}
.line-glow {
  fill: none;
  stroke: rgba(255, 206, 135, 0.32);
  stroke-width: 4;
  stroke-linecap: round;
  filter: blur(2.2px);
}
.rod-tip {
  fill: rgba(255, 245, 218, 0.72);
  stroke: rgba(255, 204, 128, 0.46);
  stroke-width: 2.5;
  filter: blur(0.25px);
}

/* ---------- 水面 ---------- */
.water-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.cast-spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 116px;
  height: 38px;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 205, 0.56);
  background: radial-gradient(ellipse at center, rgba(255, 221, 163, 0.24), transparent 68%);
  box-shadow: 0 0 22px rgba(255, 190, 115, 0.22), inset 0 0 12px rgba(255, 225, 172, 0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: spotPulse 3.2s ease-in-out infinite;
}
.cast-spot.show { opacity: 1; }
.ripple-set {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ripple-set.show { opacity: 1; }
.ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 34px;
  margin-left: -60px;
  margin-top: -17px;
  border: 1px solid rgba(255, 245, 217, 0.64);
  border-radius: 50%;
  transform: scale(0.16);
  opacity: 0;
  animation: rippleOut 3.6s ease-out infinite;
}
.ripple.r2 { animation-delay: 1.2s; }
.ripple.r3 { animation-delay: 2.4s; }
.bobber {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: transform;
}
.bobber.show { opacity: 1; }
.bobber-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 58px;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  animation: bob 2.9s ease-in-out infinite;
}
.bobber-glow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 94, 0.64), transparent 68%);
  filter: blur(3px);
}
.bobber-antenna {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 2px;
  height: 23px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, #FFE1A9 0%, #FF9A4A 38%, #F1661E 100%);
  box-shadow: 0 0 8px rgba(255, 142, 64, 0.82);
}
.bobber-antenna::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #FFF2CD;
  box-shadow: 0 0 9px 2px rgba(255, 176, 86, 0.8);
}
.bobber-body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 31px;
  transform: translateX(-50%);
  border-radius: 7px 7px 9px 9px;
  background: linear-gradient(180deg, #FF8641 0%, #FF6125 27%, #FFF3DA 30%, #FFFBF2 58%, #C9924B 100%);
  border: 1px solid rgba(79, 39, 15, 0.26);
  box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.56), 0 4px 9px rgba(39, 25, 10, 0.34);
}
.bobber-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  height: 2px;
  background: rgba(80, 45, 21, 0.32);
}
.bobber-waterline {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 28px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 244, 216, 0.52), transparent 70%);
  filter: blur(0.4px);
}
.bobber.bite .bobber-inner { animation: biteDip 0.32s ease-in-out infinite alternate; }
.bobber.fight .bobber-inner { animation: fightDip 0.42s ease-in-out infinite; }
.bobber.gone .bobber-inner { animation: bobGone 0.5s ease-in forwards; }
.bite-badge {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(46, 28, 13, 0.90);
  border: 1px solid rgba(255, 186, 108, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 118, 36, 0.12), 0 9px 24px rgba(46, 27, 10, 0.34), 0 0 28px rgba(255, 128, 46, 0.32);
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  pointer-events: none;
  white-space: nowrap;
}
.bite-badge.show {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
  animation: badgePulse 0.8s ease-in-out infinite alternate;
}
.bite-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, #FFD28F, #FF7A2C 62%, #DD5A16);
  color: #FFFBF3;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(222, 91, 23, 0.4);
}
.bite-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #FFE7C4;
  padding-right: 2px;
}
.jump-fish {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 38px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.jump-fish svg { display: block; width: 100%; height: auto; }
.jump-fish.jump { animation: fishJump 1.85s cubic-bezier(0.2, 0.6, 0.4, 1) both; }
.jump-splash {
  position: absolute;
  left: 24px;
  top: 30px;
  width: 34px;
  height: 12px;
  border: 1px solid rgba(255, 246, 222, 0.7);
  border-radius: 50%;
  opacity: 0;
}
.jump-fish.jump .jump-splash { animation: jumpSplash 1.85s ease-out both; }

/* ---------- 底部操作台 ---------- */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: 218px;
  padding: 15px 16px calc(13px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(105% 90% at 50% 0%, rgba(255, 255, 255, 0.70), transparent 56%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.965) 0%, rgba(255, 246, 232, 0.978) 48%, rgba(255, 249, 240, 0.995) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 -24px 60px rgba(66, 39, 13, 0.25),
    0 -2px 0 rgba(255, 255, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  backdrop-filter: blur(26px) saturate(1.15);
  animation: hudIn 0.85s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}
.hud-sheen {
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}
.hud-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 99px;
  background: rgba(150, 112, 73, 0.22);
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}
.hud-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.stat-card {
  position: relative;
  height: 76px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(105, 71, 35, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 80px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 160, 78, 0.13), transparent 70%);
  pointer-events: none;
}
.stat-orb {
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #E7782C;
  background: radial-gradient(circle at 36% 30%, rgba(255, 204, 146, 0.44), rgba(255, 156, 78, 0.12) 72%);
  border: 1px solid rgba(233, 134, 58, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
}
.stat-orb .mp-icon { width: 15px; height: 15px; }
.record-orb {
  color: #B47E37;
  background: radial-gradient(circle at 36% 30%, rgba(255, 225, 166, 0.52), rgba(237, 184, 97, 0.14) 72%);
  border-color: rgba(191, 139, 71, 0.15);
}
.stat-copy { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.stat-copy em {
  font-style: normal;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: #A18873;
}
.stat-copy strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #4A3524;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-copy strong small {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: #B29A84;
}
.cast-wrap {
  position: relative;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
}
.cast-btn {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #FFFBF4;
  background:
    radial-gradient(circle at 34% 20%, #FFD2A2 0%, #FFAE68 25%, #FF8A3D 58%, #EA641B 100%);
  border: 1px solid rgba(255, 240, 214, 0.82);
  box-shadow:
    0 15px 30px rgba(215, 94, 24, 0.36),
    0 4px 10px rgba(96, 55, 20, 0.18),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -10px 18px rgba(151, 58, 10, 0.20);
  transition: transform 0.15s ease, background 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  z-index: 2;
  outline: none;
  flex: none;
}
.cast-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 142, 61, 0.20);
  pointer-events: none;
}
.cast-btn::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  pointer-events: none;
}
.cast-btn-shine {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 8%;
  height: 33%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent);
  filter: blur(1.5px);
  pointer-events: none;
}
.cast-btn:active { transform: scale(0.935); }
.cast-btn .mp-icon {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 1px 2px rgba(109, 44, 9, 0.30));
}
.cast-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-indent: 0.14em;
  text-shadow: 0 1px 3px rgba(109, 44, 9, 0.28);
}
.cast-btn-glow {
  position: absolute;
  inset: -19px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.32), transparent 66%);
  filter: blur(8px);
  z-index: -1;
  animation: castGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}
.cast-sub {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #B89F88;
}
.cast-wrap.is-waiting .cast-btn {
  background: radial-gradient(circle at 34% 20%, #D7D3C2 0%, #A8AE9A 38%, #74816D 72%, #596651 100%);
  border-color: rgba(255, 255, 255, 0.60);
  box-shadow: 0 12px 24px rgba(73, 77, 55, 0.24), inset 0 1px 2px rgba(255, 255, 255, 0.37);
}
.cast-wrap.is-waiting .cast-btn-glow { animation: none; opacity: 0.32; }
.cast-wrap.is-casting .cast-btn { opacity: 0.82; pointer-events: none; }
.cast-wrap.is-bite .cast-btn {
  background: radial-gradient(circle at 34% 20%, #FFE4B9 0%, #FFAD60 30%, #FF7727 64%, #D94C0D 100%);
  border-color: rgba(255, 248, 228, 0.92);
  box-shadow:
    0 0 0 8px rgba(255, 122, 44, 0.12),
    0 0 46px rgba(255, 122, 44, 0.54),
    0 16px 30px rgba(210, 88, 22, 0.40),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
  animation: biteBtn 0.55s ease-in-out infinite alternate;
}
.cast-wrap.is-bite .cast-btn-glow { opacity: 1; animation: biteGlow 0.55s ease-in-out infinite alternate; }
.cast-wrap.is-fight .cast-btn {
  background: radial-gradient(circle at 34% 20%, #FFC98A 0%, #FF9847 34%, #F5661D 72%, #C9470D 100%);
  box-shadow:
    0 0 0 6px rgba(255, 138, 61, 0.10),
    0 0 34px rgba(255, 122, 44, 0.40),
    0 14px 28px rgba(210, 88, 22, 0.36),
    inset 0 2px 3px rgba(255, 255, 255, 0.48);
}
.cast-wrap.is-fight .cast-btn .mp-icon { animation: reelSpin 1.1s linear infinite; }
.progress-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -56%) rotate(-90deg);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.cast-wrap.is-fight .progress-ring { opacity: 1; }
.ring-track { fill: none; stroke: rgba(141, 105, 67, 0.14); stroke-width: 4; }
.ring-fill {
  fill: none;
  stroke: #FF8A3D;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  filter: drop-shadow(0 0 5px rgba(255, 150, 70, 0.70));
  transition: stroke-dashoffset 0.08s linear;
}
.tip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 18px;
  margin-top: 7px;
  padding: 0 4px;
}
.tip-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 138, 61, 0.75);
  animation: dotBlink 2.2s ease-in-out infinite;
}
.tip {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  color: #8D7662;
  transition: color 0.2s ease;
}
.app.is-bite .tip { color: #D86118; font-weight: 650; }
.app.is-fight .tip { color: #C95A18; }

/* ---------- 提示条 ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(31vh + var(--safe-bottom));
  z-index: 40;
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(54, 38, 22, 0.88);
  border: 1px solid rgba(255, 231, 195, 0.28);
  box-shadow: 0 10px 26px rgba(50, 29, 9, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #FFF0D8;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 弹层通用 ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px calc(24px + var(--safe-bottom));
}
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 22, 10, 0.52);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  backdrop-filter: blur(8px) saturate(0.9);
  animation: fadeIn 0.25s ease both;
}
.sheet-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #806A55;
  background: rgba(121, 85, 50, 0.08);
  border: 1px solid rgba(121, 85, 50, 0.09);
  transition: transform 0.14s ease, background 0.2s ease;
}
.sheet-close .mp-icon { width: 18px; height: 18px; }
.sheet-close:active { transform: scale(0.92); background: rgba(121, 85, 50, 0.14); }

/* ---------- 渔获卡片 ---------- */
.catch-card {
  position: relative;
  width: min(88vw, 364px);
  max-height: 88vh;
  overflow: auto;
  padding: 18px 20px 20px;
  border-radius: 32px;
  background:
    radial-gradient(110% 68% at 50% 0%, rgba(255, 213, 157, 0.38), transparent 58%),
    linear-gradient(180deg, #FFFDF8 0%, #FFF8EC 55%, #FFF4E4 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(57, 33, 10, 0.40), 0 8px 24px rgba(80, 48, 16, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: cardIn 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
  scrollbar-width: none;
  color: var(--ink);
}
.catch-card::-webkit-scrollbar { display: none; }
.catch-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding-right: 34px;
}
.rarity-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6E7D68;
  background: rgba(154, 179, 148, 0.13);
  border: 1px solid rgba(133, 164, 127, 0.20);
}
.rarity-pill.tier-uncommon { color: #33826E; background: rgba(80, 205, 177, 0.11); border-color: rgba(93, 200, 174, 0.24); }
.rarity-pill.tier-rare { color: #B36918; background: rgba(255, 179, 84, 0.12); border-color: rgba(240, 169, 83, 0.28); }
.rarity-pill.tier-legend {
  color: #9A5D08;
  background: rgba(255, 200, 76, 0.16);
  border-color: rgba(239, 184, 71, 0.38);
  box-shadow: 0 0 16px rgba(255, 192, 74, 0.16);
}
.record-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #A86D11;
  background: rgba(255, 190, 90, 0.13);
  border: 1px solid rgba(230, 165, 65, 0.24);
}
.record-pill .mp-icon { width: 13px; height: 13px; }
.catch-visual {
  position: relative;
  height: 170px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  place-items: center;
}
.catch-halo {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 116, 0.34), rgba(255, 159, 80, 0.10) 48%, transparent 70%);
  filter: blur(3px);
  animation: haloPulse 3.4s ease-in-out infinite;
}
.catch-ring {
  position: absolute;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 1px dashed rgba(188, 139, 79, 0.24);
  animation: slowSpin 26s linear infinite;
}
.catch-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #FFA153;
  box-shadow: 0 0 9px rgba(255, 167, 82, 0.72);
}
.fish-art {
  position: relative;
  z-index: 1;
  width: 242px;
  max-width: 94%;
  filter: drop-shadow(0 17px 20px rgba(94, 58, 23, 0.26));
  animation: fishIn 0.62s cubic-bezier(0.2, 0.9, 0.3, 1.16) both;
}
.fish-art svg { display: block; width: 100%; height: auto; }
.catch-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 157, 99, 0.30);
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
}
.catch-bubble.b1 { left: 12%; top: 28%; width: 7px; height: 7px; animation: bubbleUp 3.6s ease-in infinite 0.3s; }
.catch-bubble.b2 { right: 14%; top: 38%; width: 5px; height: 5px; animation: bubbleUp 4.2s ease-in infinite 1.1s; }
.catch-bubble.b3 { right: 25%; top: 16%; width: 4px; height: 4px; animation: bubbleUp 3.1s ease-in infinite 1.8s; }
.catch-sparkles { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFA85D;
  box-shadow: 0 0 8px rgba(255, 177, 91, 0.80);
  opacity: 0;
  animation: sparkle 1.8s ease-in-out infinite;
}
.catch-kicker {
  margin: 1px 0 3px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  color: #C08D55;
}
.catch-name {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: #3E2C1C;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.catch-en {
  margin: 4px 0 0;
  text-align: center;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #BCA78F;
}
.catch-weight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-top: 7px;
  color: #DD6D21;
}
.catch-weight strong {
  font-size: 31px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 150, 66, 0.18);
}
.catch-weight span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.catch-quote {
  margin: 7px 10px 16px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8F7761;
}
.primary-btn {
  width: 100%;
  height: 54px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #FFFBF4;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.10em;
  background: linear-gradient(135deg, #FFB574 0%, #FF8A3D 46%, #EB641C 100%);
  border: 1px solid rgba(255, 229, 198, 0.68);
  box-shadow: 0 12px 26px rgba(215, 91, 22, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.primary-btn .mp-icon { width: 19px; height: 19px; }
.primary-btn:active { transform: scale(0.972); filter: brightness(1.04); }

/* ---------- 玩法说明 ---------- */
#helpOverlay { align-items: flex-end; padding: 0; }
.help-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: auto;
  padding: 10px 20px calc(20px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(100% 62% at 50% 0%, rgba(255, 210, 154, 0.34), transparent 62%),
    linear-gradient(180deg, #FFFDF8 0%, #FFF8ED 62%, #FFF5E7 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  box-shadow: 0 -24px 80px rgba(56, 32, 9, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: sheetIn 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.04) both;
  scrollbar-width: none;
  color: var(--ink);
}
.help-card::-webkit-scrollbar { display: none; }
.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 1px auto 14px;
  border-radius: 99px;
  background: rgba(150, 112, 73, 0.20);
}
.help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.help-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: #C18A50;
}
.help-kicker .mp-icon { width: 12px; height: 12px; }
.help-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #3E2C1C;
}
.help-head p { margin: 5px 0 0; font-size: 12px; letter-spacing: 0.04em; color: #A08872; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(175, 128, 76, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.step-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #DC772B;
  background: radial-gradient(circle at 35% 28%, rgba(255, 212, 158, 0.48), rgba(255, 143, 58, 0.10));
  border: 1px solid rgba(233, 145, 72, 0.14);
}
.step-icon .mp-icon { width: 19px; height: 19px; }
.steps strong { display: block; font-size: 13.5px; font-weight: 750; letter-spacing: 0.05em; color: #4A3422; }
.steps p { margin: 3px 0 0; font-size: 12px; line-height: 1.65; color: #8D7662; }
.help-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 15px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9D671F;
  background: rgba(255, 185, 97, 0.10);
  border: 1px solid rgba(227, 165, 80, 0.17);
}
.help-note .mp-icon { width: 17px; height: 17px; color: #DA8A2D; }

/* ---------- 动画 ---------- */
@keyframes sunPulse { 0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes mistDrift { 0% { transform: translateX(-4%); } 50% { transform: translateX(4%); } 100% { transform: translateX(-4%); } }
@keyframes birdDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -5px); } }
@keyframes moteFloat {
  0% { transform: translate3d(0, 10px, 0); opacity: 0; }
  18% { opacity: 0.85; }
  75% { opacity: 0.4; }
  100% { transform: translate3d(16px, -62px, 0); opacity: 0; }
}
@keyframes topIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes hudIn { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes spotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.35; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.72; }
}
@keyframes rippleOut {
  0% { transform: scale(0.16); opacity: 0; }
  12% { opacity: 0.62; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, -100%) translateY(0) rotate(-1deg); }
  50% { transform: translate(-50%, -100%) translateY(3px) rotate(1.4deg); }
}
@keyframes biteDip {
  0% { transform: translate(-50%, -100%) translateY(1px) rotate(-2deg); }
  100% { transform: translate(-50%, -100%) translateY(10px) rotate(2deg); }
}
@keyframes fightDip {
  0%, 100% { transform: translate(-50%, -100%) translateY(3px) rotate(-3deg); }
  50% { transform: translate(-50%, -100%) translateY(8px) rotate(3deg); }
}
@keyframes bobGone {
  0% { transform: translate(-50%, -100%) translateY(0); opacity: 1; }
  100% { transform: translate(-50%, -100%) translateY(26px) rotate(18deg); opacity: 0; }
}
@keyframes badgePulse {
  0% { transform: translate(-50%, -100%) scale(1); }
  100% { transform: translate(-50%, -100%) scale(1.06); }
}
@keyframes fishJump {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  12% { opacity: 0.8; }
  46% { opacity: 0.9; transform: translate(-18px, -52px) rotate(-28deg); }
  78% { opacity: 0.5; transform: translate(-34px, -8px) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-42px, 5px) rotate(2deg); }
}
@keyframes jumpSplash {
  0%, 62% { opacity: 0; transform: scale(0.4); }
  72% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes castGlow { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes biteBtn { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes biteGlow { from { opacity: 0.7; transform: scale(0.96); } to { opacity: 1; transform: scale(1.08); } }
@keyframes reelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dotBlink { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes haloPulse { 0%, 100% { opacity: 0.7; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fishIn { from { opacity: 0; transform: translateY(18px) scale(0.82) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes bubbleUp {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-46px) scale(1.1); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- 咬钩闪光与震屏 ---------- */
.app.is-bite::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, transparent 34%, rgba(255, 118, 30, 0.16) 100%);
  animation: biteFlash 0.7s ease-in-out infinite alternate;
}
.scene.shake { animation: sceneShake 0.28s ease-out; }
@keyframes sceneShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  22% { transform: translate3d(-3px, 2px, 0); }
  48% { transform: translate3d(3px, -2px, 0); }
  74% { transform: translate3d(-2px, 1px, 0); }
}
@keyframes biteFlash {
  from { opacity: 0.10; }
  to { opacity: 0.62; }
}

/* ---------- 小屏适配 ---------- */
@media (max-height: 720px) {
  .hud { min-height: 196px; padding-top: 11px; padding-bottom: calc(9px + var(--safe-bottom)); }
  .hud-handle { margin-bottom: 7px; }
  .hud-row { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); }
  .stat-card { height: 68px; border-radius: 18px; }
  .stat-orb { width: 24px; height: 24px; }
  .stat-orb .mp-icon { width: 13px; height: 13px; }
  .stat-copy strong { font-size: 16px; }
  .cast-wrap { height: 98px; }
  .cast-btn { width: 86px; height: 86px; }
  .cast-btn .mp-icon { width: 24px; height: 24px; }
  .cast-label { font-size: 11px; }
  .progress-ring { width: 108px; height: 108px; }
  .tip-row { margin-top: 5px; }
  .tip { font-size: 11px; }
  .catch-visual { height: 148px; }
  .fish-art { width: 208px; }
  .catch-name { font-size: 24px; }
  .water-note { top: calc(var(--safe-top) + 70px); }
}
@media (max-width: 360px) {
  .topbar { left: 12px; right: 12px; }
  .place { padding-right: 11px; }
  .place-copy em { font-size: 8px; }
  .icon-btn { width: 41px; height: 41px; }
  .hud { padding-left: 12px; padding-right: 12px; }
  .hud-row { grid-template-columns: minmax(0, 1fr) 98px minmax(0, 1fr); gap: 6px; }
  .cast-btn { width: 88px; height: 88px; }
  .cast-wrap { height: 98px; }
  .stat-card { height: 72px; padding-left: 3px; padding-right: 3px; }
  .stat-copy strong { font-size: 16px; }
  .catch-card { padding-left: 16px; padding-right: 16px; }
  .help-card { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 540px) {
  .topbar { left: 22px; right: 22px; }
  .hud { padding-left: 24px; padding-right: 24px; }
  .hud-row { grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr); max-width: 520px; margin: 0 auto; width: 100%; }
  .tip-row { max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scene *, .motes, .birds, .mist, .scene-sun,
  .cast-spot, .ripple, .bobber-inner, .bobber.bite .bobber-inner,
  .bobber.fight .bobber-inner, .cast-btn-glow, .catch-halo, .catch-ring,
  .catch-bubble, .catch-sparkles, .bite-badge.show, .cast-wrap.is-bite .cast-btn,
  .cast-wrap.is-fight .cast-btn .mp-icon {
    animation: none !important;
  }
}
