/* 钓鱼等咬钩12 —— 竖屏 H5 小游戏 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --orange: #FF8A3D;
  --orange-deep: #F06A12;
  --gold: #FFD35A;
  --gold-deep: #FFA51E;
  --ink: #08222F;
  --glass: rgba(7, 30, 44, 0.62);
  --glass-line: rgba(255, 255, 255, 0.2);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #061620;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

body { touch-action: manipulation; }

button {
  margin: 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

.backdrop {
  position: fixed;
  inset: -50px;
  z-index: 0;
  background: url("images/gen/gptimg_1795397442_look.png") center / cover no-repeat;
  filter: blur(34px) brightness(0.34) saturate(0.85);
  opacity: 0.9;
}

.game {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  background: #0a3149;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.scene-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 18, 30, 0.52) 0%, rgba(3, 18, 30, 0) 19%, rgba(3, 18, 30, 0) 56%, rgba(2, 17, 27, 0.66) 100%),
    radial-gradient(120% 82% at 50% 46%, rgba(0, 0, 0, 0) 52%, rgba(1, 14, 23, 0.42) 100%);
  z-index: 1;
}

.water-shimmer {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 30%;
  height: 46%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(104deg, rgba(190, 244, 255, 0) 36%, rgba(190, 244, 255, 0.1) 48%, rgba(190, 244, 255, 0) 60%);
  mix-blend-mode: screen;
  animation: shimmer 10s ease-in-out infinite;
}

.bite-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 90px 10px rgba(255, 158, 46, 0.55);
  transition: opacity 0.18s ease;
}
.game[data-state="bite"] .bite-flash {
  opacity: 1;
  animation: flashPulse 0.72s ease-in-out infinite;
}

/* ---------- 浮漂特效 ---------- */
.bobber-fx {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(214, 248, 255, 0.9);
  opacity: 0;
  transform: scale(0.35);
  animation: ripple 2.7s ease-out infinite;
  animation-play-state: paused;
}
.ripple.r2 { animation-delay: 0.9s; }
.ripple.r3 { animation-delay: 1.8s; border-color: rgba(214, 248, 255, 0.6); }

.game[data-state="waiting"] .ripple,
.game[data-state="bite"] .ripple,
.game.is-nibble .ripple {
  animation-play-state: running;
}
.game[data-state="bite"] .ripple {
  border-color: rgba(255, 220, 120, 0.95);
  border-width: 2.5px;
  animation-duration: 1.15s;
}

.nibble-mark,
.bite-mark {
  position: absolute;
  left: 50%;
  top: -62px;
  transform: translate(-50%, 8px) scale(0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nibble-mark {
  padding: 5px 13px 7px;
  border-radius: 999px;
  background: rgba(5, 28, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #d9f5ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.game.is-nibble .nibble-mark {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: nibbleWobble 0.8s ease-in-out;
}
.bite-mark {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF0A8 0%, #FFD35A 48%, #FF9D22 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #9A3500;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 8px rgba(255, 158, 46, 0.18), 0 10px 26px rgba(0, 0, 0, 0.35);
}
.game[data-state="bite"] .bite-mark {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: bitePop 0.78s cubic-bezier(0.22, 1.2, 0.36, 1) infinite;
}

/* ---------- 顶部 HUD ---------- */
.hud {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: max(14px, calc(50% - 210px));
  right: max(14px, calc(50% - 210px));
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.hud-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.score-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 13px 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 38, 55, 0.82), rgba(5, 25, 38, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  white-space: nowrap;
}
.coin-ic {
  width: 28px;
  height: 28px;
  color: #FFD34D;
  filter: drop-shadow(0 2px 4px rgba(120, 52, 0, 0.5));
  flex: none;
}
.score-num {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #FFF8E6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  min-width: 24px;
}
.score-unit {
  font-size: 10px;
  font-weight: 600;
  color: rgba(230, 246, 255, 0.6);
  align-self: flex-end;
  margin-bottom: 10px;
  margin-left: -3px;
}

.best-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 7px;
  height: 25px;
  border-radius: 999px;
  background: rgba(4, 24, 37, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: rgba(224, 243, 252, 0.72);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.best-chip .mp-icon {
  width: 14px;
  height: 14px;
  color: #FFD35A;
}
.best-chip b {
  color: #FFF4D6;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.ad-btn {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 233, 172, 0.8);
  background: linear-gradient(180deg, #FFCB5C 0%, #FF9A28 52%, #F2710D 100%);
  box-shadow: 0 7px 20px rgba(240, 106, 18, 0.48), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(176, 70, 0, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.ad-btn::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -80%;
  width: 42%;
  height: 240%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
  animation: sweep 3.6s ease-in-out infinite;
  pointer-events: none;
}
.ad-btn:active { transform: scale(0.96); filter: brightness(0.96); }
.ad-btn:disabled {
  opacity: 0.45;
  filter: saturate(0.55);
  pointer-events: none;
}
.ad-btn.armed {
  background: linear-gradient(180deg, #9BF6C0 0%, #2FCB7A 55%, #179B57 100%);
  border-color: rgba(204, 255, 224, 0.9);
  box-shadow: 0 7px 20px rgba(22, 165, 92, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.ad-btn.armed::after { animation-duration: 1.5s; }
.ad-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: #fff;
  color: #DF5A00;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  flex: none;
}
.ad-btn.armed .ad-tag { color: #0E8C4C; }
.ad-x {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff6d8;
  background: rgba(142, 52, 0, 0.26);
  border-radius: 6px;
  padding: 2px 5px;
  line-height: 1.3;
}
.ad-btn.armed .ad-x { background: rgba(4, 92, 50, 0.3); color: #eafff1; }

/* ---------- 底部操作区 ---------- */
.bottom-dock {
  position: absolute;
  left: max(14px, calc(50% - 210px));
  right: max(14px, calc(50% - 210px));
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: 6;
  padding: 15px 16px;
  border-radius: 25px;
  background: linear-gradient(180deg, rgba(12, 42, 60, 0.78), rgba(4, 22, 34, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.game[data-state="bite"] .bottom-dock {
  border-color: rgba(255, 209, 112, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 197, 82, 0.22), 0 18px 46px rgba(214, 89, 8, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.dock-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FFD79A;
  text-transform: uppercase;
}
.dock-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFB454;
  box-shadow: 0 0 8px rgba(255, 174, 76, 0.9);
}
.game[data-state="bite"] .dock-tag { color: #FFE39C; }
.game[data-state="bite"] .dock-tag::before { background: #FFCE55; animation: dotPulse 0.7s ease-in-out infinite; }
.dock-streak {
  font-size: 10.5px;
  color: rgba(226, 246, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
}
.dock-streak b { color: #FFE08A; }

.dock-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.dock-sub {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(219, 239, 249, 0.68);
  letter-spacing: 0.1px;
}

.bite-timer {
  display: none;
  height: 5px;
  margin-top: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.game[data-state="bite"] .bite-timer { display: block; }
.bite-timer span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFE27A, #FF9B24 60%, #F45C0C);
  box-shadow: 0 0 10px rgba(255, 163, 47, 0.8);
}

.cast-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 56px;
  margin-top: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 180, 0.85);
  background: linear-gradient(180deg, #FFC95A 0%, #FF9A28 48%, #F1710E 100%);
  box-shadow: 0 9px 24px rgba(240, 106, 18, 0.44), inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(158, 60, 0, 0.2);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(155, 57, 0, 0.35);
  overflow: hidden;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.cast-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.cast-btn:active { transform: scale(0.975); filter: brightness(0.96); }
.cast-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  flex: none;
}
.cast-ic .mp-icon { width: 20px; height: 20px; color: #fff; }

.game[data-state="waiting"] .cast-btn {
  background: linear-gradient(180deg, rgba(255, 209, 117, 0.22), rgba(255, 155, 40, 0.14));
  border-color: rgba(255, 219, 150, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(255, 241, 209, 0.82);
  text-shadow: none;
}
.game[data-state="waiting"] .cast-ic { background: rgba(255, 255, 255, 0.1); }
.game[data-state="waiting"] .cast-ic .mp-icon { animation: hourglass 1.8s ease-in-out infinite; }

.game[data-state="bite"] .cast-btn {
  background: linear-gradient(180deg, #FFE37C 0%, #FFB129 42%, #FF6B0D 100%);
  border-color: #FFF3C4;
  animation: biteBtn 0.72s ease-in-out infinite;
}
.game[data-state="bite"] .cast-ic { background: rgba(255, 255, 255, 0.26); }

.game[data-state="result"] .bottom-dock {
  filter: brightness(0.72);
}

/* ---------- 提示 ---------- */
.toast {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-top) + 100px);
  z-index: 25;
  transform: translate(-50%, -8px);
  max-width: calc(100% - 48px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(4, 23, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFF6E3;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 结算 ---------- */
.result-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  background: rgba(2, 15, 24, 0.6);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  animation: fadeIn 0.22s ease both;
}
.result-mask[hidden] { display: none; }

.result-card {
  position: relative;
  width: min(356px, 100%);
  max-height: calc(100% - 12px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 190, 86, 0.24) 0%, rgba(255, 190, 86, 0) 58%),
    linear-gradient(180deg, #123C53 0%, #0A2A3D 52%, #061E2E 100%);
  border: 1px solid rgba(255, 216, 137, 0.52);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  animation: cardPop 0.4s cubic-bezier(0.18, 1.32, 0.34, 1) both;
  -webkit-overflow-scrolling: touch;
}
.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 211, 90, 0), #FFD35A, rgba(255, 211, 90, 0));
  opacity: 0.9;
}

.result-sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFE08A;
  box-shadow: 0 0 10px rgba(255, 214, 110, 0.9);
  animation: sparkFly 0.9s ease-out forwards;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 195, 78, 0.15);
  border: 1px solid rgba(255, 207, 110, 0.42);
  color: #FFDF9A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.fish-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 13px;
  height: 18px;
}
.fish-stars .mp-icon {
  width: 17px;
  height: 17px;
  color: #FFD35A;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.fish-stars .mp-icon.dim { color: rgba(255, 255, 255, 0.16); filter: none; }

.fish-name {
  margin-top: 7px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  color: #FFF9EC;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.fish-meta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(214, 238, 249, 0.65);
  letter-spacing: 0.6px;
  font-variant-numeric: tabular-nums;
}

.gain-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-top: 16px;
  color: #FFD35A;
  font-variant-numeric: tabular-nums;
}
.gain-plus { font-size: 20px; font-weight: 900; }
.gain-row b {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 4px 16px rgba(255, 168, 42, 0.35);
}
.gain-unit {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 233, 177, 0.7);
  margin-left: 3px;
}
.gain-note {
  margin-top: 7px;
  min-height: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(224, 243, 252, 0.62);
}

.btn-main,
.btn-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn-main:active,
.btn-ad:active { transform: scale(0.975); filter: brightness(0.96); }

.btn-ad[hidden] { display: none; }

.btn-ad {
  height: 44px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 206, 110, 0.46);
  color: #FFE3A6;
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.btn-ad .ad-tag { color: #DF5A00; }
.btn-ad.used {
  opacity: 0.55;
  pointer-events: none;
  color: #BFF3D4;
  border-color: rgba(140, 240, 185, 0.35);
}
.btn-main {
  height: 52px;
  margin-top: 10px;
  border: 1px solid rgba(255, 236, 180, 0.85);
  background: linear-gradient(180deg, #FFC95A 0%, #FF9A28 48%, #F1710E 100%);
  box-shadow: 0 8px 22px rgba(240, 106, 18, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 16.5px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(155, 57, 0, 0.35);
}

/* ---------- 广告 ---------- */
.ad-mask {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px calc(26px + var(--safe-bottom));
  background: rgba(1, 10, 17, 0.86);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  animation: fadeIn 0.2s ease both;
}
.ad-mask[hidden] { display: none; }

.ad-panel {
  width: min(340px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #102F43, #071E2D);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  animation: cardPop 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.ad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
}
.ad-badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: #FFA41B;
  color: #442000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.ad-timer {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(224, 243, 252, 0.58);
  font-variant-numeric: tabular-nums;
}
.ad-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #0A2738;
}
.ad-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66) saturate(1.1);
}
.ad-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 22, 34, 0) 0%, rgba(4, 22, 34, 0.55) 100%);
}
.ad-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}
.ad-play .mp-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  opacity: 0.9;
}
.ad-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
}
.ad-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFD35A, #FF8A3D);
}
.ad-caption {
  padding: 13px 16px 17px;
  text-align: center;
  font-size: 12px;
  color: rgba(220, 241, 251, 0.66);
}

/* ---------- 动画 ---------- */
@keyframes shimmer {
  0%, 100% { transform: translateX(-8%); opacity: 0.5; }
  50% { transform: translateX(8%); opacity: 0.9; }
}
@keyframes sweep {
  0%, 55% { left: -80%; }
  90%, 100% { left: 130%; }
}
@keyframes ripple {
  0% { transform: scale(0.4); opacity: 0.85; }
  62% { opacity: 0.22; }
  100% { transform: scale(4.9); opacity: 0; }
}
@keyframes nibbleWobble {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  25% { transform: translate(-58%, -2px) scale(1.03); }
  60% { transform: translate(-43%, 0) scale(0.99); }
}
@keyframes bitePop {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  45% { transform: translate(-50%, -7px) scale(1.12); }
}
@keyframes biteBtn {
  0%, 100% { box-shadow: 0 9px 24px rgba(240, 106, 18, 0.44), inset 0 2px 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 9px 34px rgba(255, 138, 40, 0.75), 0 0 0 5px rgba(255, 177, 66, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.55); }
}
@keyframes flashPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}
@keyframes hourglass {
  0%, 100% { transform: rotate(0deg); opacity: 0.8; }
  45% { transform: rotate(180deg); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cardPop {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0), -46px) scale(0.2); }
}

/* ---------- 桌面预览：保持竖屏舞台 ---------- */
@media (min-width: 720px) {
  .game {
    left: 50%;
    right: auto;
    width: 460px;
    transform: translateX(-50%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  }
}

@media (max-height: 660px) {
  .bottom-dock { padding: 12px 14px; border-radius: 21px; }
  .dock-title { font-size: 17px; }
  .dock-sub { font-size: 11px; }
  .cast-btn { height: 50px; margin-top: 10px; font-size: 16px; }
  .score-pill { height: 40px; }
  .ad-btn { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .water-shimmer,
  .ad-btn::after,
  .game[data-state="bite"] .cast-btn,
  .game[data-state="bite"] .bite-flash,
  .game[data-state="bite"] .bite-mark,
  .ripple { animation: none !important; }
}
