/* 钓鱼等咬钩 · 湖畔卡通成品界面 */
:root {
  --orange: #FF8A3D;
  --orange-deep: #F0641F;
  --orange-light: #FFB271;
  --ink: #352518;
  --ink-soft: #5D4835;
  --muted: #937F6A;
  --cream: #FFF9EF;
  --cream-deep: #FFF1DA;
  --teal: #2C9EA3;
  --teal-deep: #176F7E;
  --line: rgba(122, 87, 57, 0.13);
  --shadow-soft: 0 8px 24px rgba(83, 48, 22, 0.14);
  --shadow-card: 0 22px 50px rgba(47, 32, 18, 0.26);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #0D3E48;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #FFD3A4;
  isolation: isolate;
  touch-action: manipulation;
}

@media (min-width: 560px) {
  body {
    align-items: center;
    background:
      radial-gradient(80% 70% at 50% 12%, #1C6A73 0%, #0B3038 62%, #071F25 100%);
  }
  .stage {
    height: min(900px, 94dvh);
    border-radius: 30px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.scene-wrap,
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  display: block;
}

.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(112, 57, 25, 0.13) 0%, rgba(112, 57, 25, 0) 19%),
    radial-gradient(115% 78% at 50% 30%, rgba(255, 244, 218, 0) 48%, rgba(95, 45, 20, 0.19) 100%);
}

/* ---------- 场景微动 ---------- */
.cloud-one {
  animation: cloudDrift 10s ease-in-out infinite alternate;
}

.cloud-two {
  animation: cloudDrift 13s ease-in-out -4s infinite alternate-reverse;
}

.wave-lines {
  animation: waveSlide 8s ease-in-out infinite alternate;
}

.cat-tail {
  transform-box: fill-box;
  transform-origin: 88% 82%;
  animation: tailSway 3.1s ease-in-out infinite;
}

.cat-tail-tip {
  transform-box: fill-box;
  transform-origin: 90% 80%;
  animation: tailSway 3.1s ease-in-out infinite;
}

.bobber {
  animation: bobFloat 2.6s ease-in-out infinite;
}

.rig {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s;
}

.stage.is-fishing .rig {
  opacity: 1;
  visibility: visible;
}

.stage.is-casting .rig {
  animation: rigDrop 0.55s cubic-bezier(0.18, 0.82, 0.3, 1) both;
}

.stage.is-bite .bobber {
  animation: bobBite 0.24s ease-in-out infinite;
}

.stage.is-nibble .bobber {
  animation: nibbleDip 0.5s ease-in-out 2;
}

.stage.is-bite .ripple-a {
  animation: ripple 0.9s ease-out infinite;
}

.stage.is-bite .ripple-b {
  animation: ripple 0.9s ease-out 0.25s infinite;
}

.ripple {
  transform-box: fill-box;
  transform-origin: center;
}

.splash {
  transform-box: fill-box;
  transform-origin: center;
}

.stage.is-bite .splash {
  animation: splashFlash 0.65s ease-out infinite;
}

.stage.is-hooked .bobber {
  opacity: 0;
  transition: opacity 0.15s;
}

.stage.is-hooked .jump-fish {
  animation: fishLeap 0.62s cubic-bezier(0.16, 0.8, 0.3, 1) both;
}

.stage.is-hooked .splash {
  animation: splashBurst 0.6s ease-out both;
}

.stage.is-escaped .rig {
  animation: rigShake 0.42s ease-in-out;
}

.jump-fish {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.swim {
  animation: swimAcross 6.5s ease-in-out infinite alternate;
}

.swim-b { animation-duration: 8.5s; animation-delay: -2.2s; }
.swim-c { animation-duration: 7.2s; animation-delay: -4s; }

/* ---------- 顶部玩家信息 ---------- */
.topbar {
  position: absolute;
  z-index: 20;
  top: calc(env(safe-area-inset-top) + 14px);
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.player-chip,
.coin-pill {
  pointer-events: auto;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 190px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(108, 55, 20, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.avatar {
  flex: 0 0 auto;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #FFE0B5;
  box-shadow: 0 0 0 2px #FFFFFF, 0 3px 8px rgba(112, 57, 25, 0.18);
}

.avatar svg,
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar img[hidden] { display: none; }

.player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.player-meta b {
  display: block;
  max-width: 118px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.player-meta span {
  font-size: 9px;
  line-height: 1.3;
  color: #B07E54;
  letter-spacing: 0.08em;
}

.coin-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 41px;
  padding: 5px 13px 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFEFA 0%, #FFF2D6 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(108, 55, 20, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.coin-pill b {
  font-size: 15px;
  font-weight: 800;
  color: #5A3921;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.coin-icon {
  width: 22px;
  height: 22px;
  color: #FFA126;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

.coin-pill.bump {
  animation: coinBump 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

/* ---------- 广告入口 ---------- */
.ad-btn {
  position: absolute;
  z-index: 22;
  top: calc(env(safe-area-inset-top) + 64px);
  right: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15px;
  background: linear-gradient(135deg, #FF9D55 0%, #FF7A2D 52%, #F05F1B 100%);
  box-shadow: 0 9px 20px rgba(226, 92, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #FFFFFF;
  overflow: hidden;
  transition: transform 0.13s ease, box-shadow 0.2s ease;
}

.ad-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -45%;
  width: 34%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(20deg);
  animation: adShine 4.4s ease-in-out infinite;
  pointer-events: none;
}

.ad-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(226, 92, 24, 0.28);
}

.ad-btn[disabled] {
  opacity: 0.65;
  pointer-events: none;
}

.ad-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ad-icon .mp-icon {
  width: 19px;
  height: 19px;
}

.ad-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  line-height: 1.12;
}

.ad-copy b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ad-copy small {
  font-size: 8.5px;
  font-weight: 500;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.ad-tag {
  align-self: flex-start;
  margin-left: 1px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(103, 38, 6, 0.22);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ---------- 底部操作台 ---------- */
.hud {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 16px calc(14px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0) 0%, rgba(255, 249, 239, 0.86) 19%, #FFF9EF 42%, #FFF9EF 100%);
}

.hud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 63%;
  color: #4A3728;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

#statusText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4FC0A6;
  box-shadow: 0 0 0 3px rgba(79, 192, 166, 0.16);
  transition: background 0.2s, box-shadow 0.2s;
}

.stage.is-waiting .status-dot {
  background: #FFB435;
  box-shadow: 0 0 0 3px rgba(255, 180, 53, 0.18);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.stage.is-bite .status-dot {
  background: #FF5533;
  box-shadow: 0 0 0 3px rgba(255, 85, 51, 0.2);
  animation: dotPulse 0.55s ease-in-out infinite;
}

.mini-stats {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8B735D;
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.mini-stats b {
  color: #5E4632;
  font-weight: 800;
  font-size: 10.5px;
}

.mini-stats .mp-icon {
  width: 13px;
  height: 13px;
  color: #B98D5C;
}

.action-btn {
  position: relative;
  width: 100%;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: none;
  border-radius: 19px;
  background: linear-gradient(135deg, #FFA35C 0%, #FF8336 42%, #F2671F 100%);
  box-shadow: 0 11px 22px rgba(238, 96, 28, 0.31), inset 0 1.5px 0 rgba(255, 255, 255, 0.44), inset 0 -2px 0 rgba(174, 66, 13, 0.2);
  color: #FFFFFF;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.action-btn:active {
  transform: scale(0.978);
  box-shadow: 0 5px 12px rgba(238, 96, 28, 0.28), inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
}

.action-main,
.action-sub {
  position: relative;
  z-index: 1;
}

.action-main {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 1px rgba(157, 58, 10, 0.24);
}

.action-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  opacity: 0.84;
}

.action-btn.is-waiting {
  background: linear-gradient(135deg, #7BD3C5 0%, #41ADA8 55%, #2C918F 100%);
  box-shadow: 0 10px 20px rgba(39, 135, 132, 0.27), inset 0 1.5px 0 rgba(255, 255, 255, 0.34);
}

.action-btn.is-bite {
  background: linear-gradient(135deg, #FF8D5C 0%, #FF5D31 45%, #EA3C1C 100%);
  box-shadow: 0 0 0 5px rgba(255, 116, 66, 0.16), 0 13px 26px rgba(222, 65, 27, 0.36), inset 0 1.5px 0 rgba(255, 255, 255, 0.38);
  animation: actionPulse 0.62s ease-in-out infinite alternate;
}

.action-btn.is-done {
  background: linear-gradient(135deg, #FFC26F 0%, #FF9B3C 50%, #F27B20 100%);
}

.hint {
  margin: 8px 0 0;
  color: #9B846D;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.02em;
  min-height: 14px;
}

.bite-meter {
  height: 4px;
  margin: 0 0 11px;
  border-radius: 99px;
  background: rgba(114, 76, 47, 0.12);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.bite-meter span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFD16E, #FF7A2F 60%, #F2441C);
  transform-origin: left center;
}

.stage.is-bite .bite-meter {
  opacity: 1;
}

.stage.is-bite .bite-meter span {
  animation: meterDrain 1.5s linear forwards;
}

/* ---------- 提示条 ---------- */
.toast {
  position: absolute;
  z-index: 44;
  left: 50%;
  bottom: calc(232px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 40px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 33, 22, 0.88);
  box-shadow: 0 8px 20px rgba(32, 20, 10, 0.24);
  color: #FFF9EF;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toast .mp-icon {
  width: 15px;
  height: 15px;
  color: #FFD08D;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 空钩结果 ---------- */
.result-banner {
  position: absolute;
  z-index: 43;
  left: 50%;
  top: 38%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 13px 13px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 18px 40px rgba(35, 55, 52, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}

.result-banner.show {
  animation: bannerPop 1.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

.result-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FFE8DA;
  color: #E96B3A;
}

.result-icon .mp-icon {
  width: 22px;
  height: 22px;
}

.result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-copy b {
  font-size: 14px;
  font-weight: 800;
  color: #463224;
  white-space: nowrap;
}

.result-copy small {
  font-size: 10.5px;
  color: #937F6A;
  white-space: nowrap;
}

/* ---------- 弹窗通用 ---------- */
.modal {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 48, 51, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* ---------- 上鱼卡片 ---------- */
.catch-card {
  position: relative;
  width: 100%;
  max-width: 326px;
  padding: 27px 20px 18px;
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(110% 70% at 50% 0%, #FFFDF7 0%, #FFF7E8 58%, #FFEFD8 100%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.86);
  transform: translateY(20px) scale(0.94);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.14);
}

.modal.show .catch-card {
  transform: none;
}

.catch-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 7px 23px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFA159, #FF742B 60%, #EF5B19);
  box-shadow: 0 8px 18px rgba(229, 92, 25, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.catch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.catch-kicker {
  font-size: 10.5px;
  color: #A58B72;
  letter-spacing: 0.12em;
}

.rarity {
  padding: 4px 9px;
  border-radius: 999px;
  background: #EAF7F2;
  color: #278E75;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rarity.rare {
  background: #E7F0FF;
  color: #3D77C6;
}

.rarity.epic {
  background: #F2E9FF;
  color: #8351C9;
}

.rarity.legend {
  background: linear-gradient(135deg, #FFF0C4, #FFD98A);
  color: #A26312;
  box-shadow: 0 2px 8px rgba(208, 141, 30, 0.25);
}

.fish-art {
  position: relative;
  width: 100%;
  height: 146px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fish-art::before {
  content: "";
  position: absolute;
  width: 168px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 112, 0.36) 0%, rgba(255, 214, 158, 0) 70%);
  filter: blur(2px);
}

.fish-art svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: fishFloat 3s ease-in-out infinite;
}

.catch-card h2 {
  margin: 2px 0 7px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  color: #3B291C;
  letter-spacing: 0.02em;
}

.catch-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #89735F;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.catch-meta b {
  color: #4C3625;
  font-weight: 800;
}

.catch-meta .gold {
  color: #E78518;
}

.catch-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #D8C3AA;
}

.primary-btn {
  position: relative;
  width: 100%;
  height: 51px;
  border: none;
  border-radius: 17px;
  background: linear-gradient(135deg, #FFA15B 0%, #FF8336 45%, #F2671F 100%);
  box-shadow: 0 9px 20px rgba(238, 96, 28, 0.3), inset 0 1.5px 0 rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.primary-btn:active {
  transform: scale(0.975);
  box-shadow: 0 4px 11px rgba(238, 96, 28, 0.26);
}

.catch-foot {
  margin: 10px 0 0;
  color: #B39B83;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

/* ---------- 激励广告卡片 ---------- */
.ad-card {
  position: relative;
  width: 100%;
  max-width: 316px;
  border-radius: 24px;
  background: #FFF9EF;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.84);
  overflow: hidden;
  transform: translateY(18px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.14);
}

.modal.show .ad-card {
  transform: none;
}

.ad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 11px 18px;
  color: #6C5340;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(120, 87, 57, 0.08);
  color: #8C7460;
  transition: transform 0.12s ease, background 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(120, 87, 57, 0.14);
}

.icon-btn .mp-icon {
  width: 17px;
  height: 17px;
}

.ad-creative {
  margin: 0 14px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(90, 55, 30, 0.16);
  background: #FFD9B0;
}

.ad-creative svg {
  display: block;
  width: 100%;
  height: auto;
}

.ad-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 14px 2px;
  color: #8A715C;
  font-size: 11px;
  font-weight: 500;
}

.ad-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 138, 61, 0.28);
  border-top-color: #FF8A3D;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.ad-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 9px 14px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF3D8, #FFE7BC);
  border: 1px solid rgba(255, 191, 96, 0.4);
}

.ad-reward-coin {
  display: grid;
  place-items: center;
  color: #F5A21E;
}

.ad-reward-coin .mp-icon {
  width: 20px;
  height: 20px;
}

.ad-reward b {
  font-size: 14px;
  color: #7A4B17;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ad-reward small {
  font-size: 9.5px;
  color: #B08246;
}

.ad-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 18px;
  color: #C4A888;
}

.ad-count span {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #FF8A3D;
  font-variant-numeric: tabular-nums;
}

.ad-count small {
  font-size: 10px;
}

/* ---------- 动画 ---------- */
@keyframes cloudDrift {
  from { transform: translateX(-5px); }
  to { transform: translateX(8px); }
}

@keyframes waveSlide {
  from { transform: translateX(-6px); }
  to { transform: translateX(8px); }
}

@keyframes tailSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

@keyframes bobFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3.5px); }
}

@keyframes bobBite {
  0%, 100% { transform: translateY(7px) rotate(-3deg); }
  50% { transform: translateY(13px) rotate(3deg); }
}

@keyframes nibbleDip {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(6px); }
  65% { transform: translateY(2px); }
}

@keyframes rigDrop {
  0% { opacity: 0; transform: translateY(-78px); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rigShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes ripple {
  0% { opacity: 0.8; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes splashFlash {
  0% { opacity: 0; transform: scale(0.8); }
  35% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.15); }
}

@keyframes splashBurst {
  0% { opacity: 0; transform: translateY(4px) scale(0.7); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px) scale(1.25); }
}

@keyframes fishLeap {
  0% { opacity: 0; transform: translateY(18px) rotate(5deg) scale(0.8); }
  25% { opacity: 1; }
  60% { opacity: 1; transform: translateY(-40px) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translateY(-68px) rotate(-18deg) scale(0.92); }
}

@keyframes swimAcross {
  from { transform: translateX(-14px); }
  to { transform: translateX(18px); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.72; }
}

@keyframes actionPulse {
  from { transform: scale(1); }
  to { transform: scale(1.012); }
}

@keyframes meterDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes coinBump {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.1); }
  66% { transform: scale(0.97); }
}

@keyframes adShine {
  0%, 58% { left: -45%; }
  82%, 100% { left: 125%; }
}

@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.86); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  24%, 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(0.96); }
}

@keyframes fishFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 小屏适配 ---------- */
@media (max-height: 720px) {
  .hud {
    padding-top: 34px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .action-btn { height: 52px; border-radius: 17px; }
  .action-main { font-size: 19px; }
  .hint { margin-top: 6px; }
  .hud-head { margin-bottom: 9px; }
  .topbar { top: calc(env(safe-area-inset-top) + 10px); }
  .ad-btn { top: calc(env(safe-area-inset-top) + 57px); }
  .toast { bottom: calc(210px + env(safe-area-inset-bottom)); }
  .fish-art { height: 126px; }
  .catch-card { padding-top: 24px; }
  .catch-card h2 { font-size: 21px; }
  .catch-meta { margin-bottom: 14px; }
}

@media (max-width: 350px) {
  .player-chip { max-width: 158px; padding-right: 10px; }
  .player-meta b { max-width: 86px; font-size: 12px; }
  .player-meta span { font-size: 8px; }
  .avatar { width: 34px; height: 34px; }
  .coin-pill { height: 37px; padding-right: 10px; }
  .coin-pill b { font-size: 13px; }
  .coin-icon { width: 19px; height: 19px; }
  .ad-btn { padding-right: 8px; }
  .ad-copy b { font-size: 11px; }
  .status-line { font-size: 11.5px; }
  .mini-stats { gap: 6px; font-size: 9px; }
  .mini-stats b { font-size: 10px; }
}

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