* { box-sizing: border-box; }

:root {
  --orange: #FF8A3D;
  --orange-hot: #FF7A2F;
  --orange-deep: #C55A1A;
  --cream: #FFF7E8;
  --cream-2: #F7E7CB;
  --ink: #21383B;
  --teal: #2E7C80;
  --teal-deep: #123E46;
  --red: #FF6B57;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #163F47;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(120% 70% at 50% 0%, #2E6E72 0%, #173F47 55%, #0C2A32 100%);
}

button { font-family: inherit; }

.game {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #2E7C80;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- 场景动效 ---------- */

.cloud-1 { animation: cloudDrift 26s ease-in-out infinite alternate; }
.cloud-2 { animation: cloudDrift 34s ease-in-out infinite alternate-reverse; }
.cloud-3 { animation: cloudDrift 30s ease-in-out infinite alternate; }

@keyframes cloudDrift {
  from { transform: translateX(-7px); }
  to { transform: translateX(11px); }
}

.shimmer { opacity: .28; animation: shimmer 4.8s ease-in-out infinite; }
.shimmer.s2 { animation-delay: -1.1s; }
.shimmer.s3 { animation-delay: -2.3s; }
.shimmer.s4 { animation-delay: -0.7s; }
.shimmer.s5 { animation-delay: -3.1s; }
.shimmer.s6 { animation-delay: -1.8s; }
.shimmer.s7 { animation-delay: -2.7s; }

@keyframes shimmer {
  0%, 100% { transform: translateX(-5px); opacity: .12; }
  50% { transform: translateX(7px); opacity: .4; }
}

.shadow { transform-box: fill-box; transform-origin: center; animation: fishGlide 9s ease-in-out infinite; }
.shadow-1 { animation-delay: -1s; }
.shadow-2 { animation-delay: -4.5s; animation-duration: 11s; }
.shadow-3 { animation-delay: -7s; animation-duration: 13s; }

@keyframes fishGlide {
  0% { transform: translateX(-24px) scaleX(1); opacity: .1; }
  48% { transform: translateX(30px) scaleX(1); opacity: .2; }
  52% { transform: translateX(30px) scaleX(-1); opacity: .2; }
  100% { transform: translateX(-24px) scaleX(-1); opacity: .1; }
}

.cat-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tailSway 3.4s ease-in-out infinite; }
.cat-tail-tip { transform-box: fill-box; transform-origin: 0% 100%; animation: tailSway 3.4s ease-in-out infinite; }

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

.frog { transform-box: fill-box; transform-origin: 50% 100%; animation: frogBreathe 3.2s ease-in-out infinite; }

@keyframes frogBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-1px) scaleY(1.07); }
}

.firefly { animation: firefly 5.5s ease-in-out infinite; }
.firefly.f2 { animation-delay: -1.6s; animation-duration: 6.8s; }
.firefly.f3 { animation-delay: -3s; animation-duration: 4.9s; }
.firefly.f4 { animation-delay: -2.2s; animation-duration: 7.4s; }

@keyframes firefly {
  0%, 100% { opacity: .1; transform: translate(0, 0); }
  40% { opacity: .9; transform: translate(5px, -9px); }
  70% { opacity: .35; transform: translate(-4px, -14px); }
}

/* 浮漂与鱼线状态 */
.bobber-anchor { opacity: 0; transition: opacity .18s ease; }
.line-wrap { opacity: 0; transition: opacity .2s ease; }

.game[data-state="casting"] .bobber-anchor,
.game[data-state="waiting"] .bobber-anchor,
.game[data-state="biting"] .bobber-anchor,
.game[data-state="catching"] .bobber-anchor,
.game[data-state="casting"] .line-wrap,
.game[data-state="waiting"] .line-wrap,
.game[data-state="biting"] .line-wrap,
.game[data-state="catching"] .line-wrap { opacity: 1; }

#bobberInner { transform-box: fill-box; transform-origin: 50% 0%; animation: bobFloat 2.7s ease-in-out infinite; }
.game[data-state="casting"] #bobberInner { animation: bobDrop .55s cubic-bezier(.3, 1.4, .5, 1) both; }
.game[data-state="biting"] #bobberInner { animation: biteDip .42s ease-in-out infinite; }
.game.is-nibble #bobberInner { animation: nibble .52s ease-in-out; }

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

@keyframes bobDrop {
  0% { transform: translateY(-52px); }
  62% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

@keyframes biteDip {
  0%, 100% { transform: translateY(9px) rotate(0deg); }
  35% { transform: translateY(16px) rotate(-6deg); }
  70% { transform: translateY(12px) rotate(5deg); }
}

@keyframes nibble {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
  55% { transform: translateY(5px); }
  78% { transform: translateY(-1px); }
}

.ripple { transform-box: fill-box; transform-origin: center; opacity: 0; }
.game[data-state="waiting"] .ripple-a { animation: rippleOut 3.4s ease-out infinite; }
.game[data-state="waiting"] .ripple-b { animation: rippleOut 3.4s ease-out infinite 1.7s; }
.game[data-state="biting"] .ripple-a { animation: rippleOut 1.4s ease-out infinite; }
.game[data-state="biting"] .ripple-b { animation: rippleOut 1.4s ease-out infinite .7s; }

@keyframes rippleOut {
  0% { transform: scale(.5); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}

#fishingLine { stroke-dasharray: 120; stroke-dashoffset: 0; }
.game[data-state="casting"] #fishingLine { animation: lineDraw .55s ease-out both; }
@keyframes lineDraw {
  from { stroke-dashoffset: 120; opacity: .2; }
  to { stroke-dashoffset: 0; opacity: .92; }
}

#rod { transform-box: fill-box; transform-origin: 20% 95%; }
.game[data-state="waiting"] #rod { animation: rodSway 4.2s ease-in-out infinite; }
.game[data-state="biting"] #rod { animation: rodTwitch .38s ease-in-out infinite; }
.game[data-state="catching"] #rod { animation: rodBend .9s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes rodSway {
  0%, 100% { transform: rotate(-.5deg); }
  50% { transform: rotate(1deg); }
}
@keyframes rodTwitch {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2.2deg); }
}
@keyframes rodBend {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-7deg); }
  70% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

#alertBubble { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.game[data-state="biting"] #alertBubble { animation: alertPop .5s cubic-bezier(.2, 1.6, .4, 1) both, alertBob .8s ease-in-out .5s infinite; }

@keyframes alertPop {
  0% { opacity: 0; transform: translateY(8px) scale(.4); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes alertBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 水花与跃鱼 */
#splashGroup { opacity: 0; }
#splashGroup.splash { animation: splashFade 1s ease-out both; }
#splashGroup.splash .splash-drop { animation: dropUp .7s ease-out both; }
#splashGroup.splash .splash-ring { animation: ringOut .8s ease-out both; }
#splashGroup.splash .d2 { animation-delay: .08s; }
#splashGroup.splash .d3 { animation-delay: .14s; }
#splashGroup.splash .r2 { animation-delay: .12s; }

@keyframes splashFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dropUp {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-26px) scale(1); opacity: 0; }
}
@keyframes ringOut {
  0% { transform: scale(.4); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

#leapFish { opacity: 0; }
#leapFish.leaping { animation: fishArc .95s cubic-bezier(.3, .7, .4, 1) both; }
#leapFish.leaping .leap-inner { animation: fishSpin .95s ease-in-out both; }

@keyframes fishArc {
  0% { opacity: 0; transform: translate(0, 10px) scale(.7); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(-52px, -72px) scale(1); }
  85% { opacity: 1; transform: translate(-104px, -58px) scale(.95); }
  100% { opacity: 0; transform: translate(-142px, -12px) scale(.8); }
}
@keyframes fishSpin {
  0% { transform: rotate(12deg); }
  55% { transform: rotate(-22deg); }
  100% { transform: rotate(-58deg); }
}

/* ---------- 顶部 HUD ---------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 0;
  pointer-events: none;
}

.hud-card {
  display: flex;
  align-items: center;
  background: rgba(255, 248, 235, .93);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  box-shadow: 0 3px 0 rgba(64, 92, 88, .16), 0 8px 20px rgba(12, 47, 54, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.score-card { padding: 7px 10px 7px 7px; gap: 9px; min-width: 0; }

.score-ico {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #FFF7E8;
  background: linear-gradient(160deg, #FFA45B, #FF7A2F);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 8px rgba(197, 90, 26, .28);
}
.score-ico .mp-icon { width: 21px; height: 21px; background: currentColor; }

.score-main { display: flex; flex-direction: column; line-height: 1; min-width: 44px; }
.score-k { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #8C7A61; margin-bottom: 3px; }
.score-main strong { display: flex; align-items: baseline; gap: 2px; font-size: 22px; font-weight: 900; color: #2C403E; }
.score-main strong em { font-style: normal; font-size: 10px; font-weight: 700; color: #9A8A72; }

.best-box {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-left: 9px;
  border-left: 1px solid rgba(120, 104, 80, .18);
  min-width: 40px;
}
.best-box span { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #A08F75; margin-bottom: 4px; }
.best-box b { font-size: 14px; font-weight: 900; color: var(--orange-deep); }

.lives-card { padding: 9px 10px; gap: 7px; flex: none; }
.lives-k { font-size: 10px; font-weight: 700; color: #8C7A61; letter-spacing: .08em; }
.hearts { display: flex; gap: 3px; }
.heart {
  width: 17px;
  height: 17px;
  background: var(--red);
  filter: drop-shadow(0 1px 0 rgba(160, 50, 30, .3));
  transition: transform .28s ease, opacity .28s ease, background .28s ease;
}
.heart.lost { background: #B9AE9B; opacity: .38; transform: scale(.82); }
.heart.breaking { animation: heartBreak .45s ease; }

@keyframes heartBreak {
  0% { transform: scale(1); }
  35% { transform: scale(1.35) rotate(-9deg); }
  100% { transform: scale(.82); }
}

/* ---------- 渔获飘卡 ---------- */
.catch-toast {
  position: absolute;
  z-index: 16;
  top: calc(84px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: rgba(255, 249, 238, .97);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 rgba(69, 94, 87, .14), 0 14px 30px rgba(8, 42, 50, .26);
  transform: translate(-50%, -14px) scale(.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), opacity .22s ease, visibility .3s;
  white-space: nowrap;
}
.catch-toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; }

.catch-ico {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFF7E8;
  background: radial-gradient(circle at 35% 28%, #FFC27D, #FF7A2F 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 7px rgba(197, 90, 26, .28);
}
.catch-ico .mp-icon { width: 22px; height: 22px; background: currentColor; }
.catch-info { display: flex; flex-direction: column; line-height: 1.1; }
.catch-info b { font-size: 15px; font-weight: 900; color: #2C403E; letter-spacing: .02em; }
.catch-info small { margin-top: 3px; font-size: 10px; font-weight: 700; color: #9C8B71; }
.catch-pts {
  margin-left: 3px;
  padding: 5px 9px;
  border-radius: 11px;
  background: #FFF0D3;
  color: #D96A1F;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
}

/* ---------- 广告提示 ---------- */
.ad-toast {
  position: absolute;
  z-index: 60;
  top: calc(102px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 40px);
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 238, .98);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 rgba(69, 94, 87, .12), 0 12px 26px rgba(8, 42, 50, .26);
  color: #3D5652;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -12px) scale(.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2, 1.3, .4, 1), opacity .2s ease, visibility .28s;
}
.ad-toast .mp-icon { width: 18px; height: 18px; flex: none; background: #FF8A3D; }
.ad-toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; }
.ad-toast.is-fail { color: #8C4A3D; }
.ad-toast.is-fail .mp-icon { background: #E8664E; }

/* ---------- 底部操作 ---------- */
.controls {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(9, 38, 46, .72) 0%, rgba(9, 38, 46, .34) 48%, rgba(9, 38, 46, 0) 100%);
  pointer-events: none;
}

.hint-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(12, 48, 56, .5);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #F5F3E7;
}
.hint-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #FFC27D;
  box-shadow: 0 0 0 3px rgba(255, 194, 125, .18);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.hint-pill p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.action {
  position: relative;
  width: min(100%, 336px);
  height: 64px;
  border: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FFF9EF;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .14em;
  text-shadow: 0 1px 0 rgba(150, 66, 16, .32);
  background: linear-gradient(180deg, #FFA85E 0%, #FF8A3D 46%, #F5772A 100%);
  box-shadow:
    0 6px 0 #C55A1A,
    0 12px 0 rgba(150, 62, 14, .14),
    0 18px 30px rgba(7, 33, 39, .38),
    inset 0 2px 0 rgba(255, 255, 255, .5);
  transition: transform .1s ease, box-shadow .1s ease, background .2s ease, color .2s ease;
  pointer-events: auto;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.action:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #A64B16,
    0 3px 0 rgba(150, 62, 14, .18),
    0 7px 14px rgba(7, 33, 39, .3),
    inset 0 2px 0 rgba(255, 255, 255, .4);
}
.action:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 3px; }
.action:disabled { cursor: default; }
.action-ico { width: 25px; height: 25px; background: currentColor; flex: none; }

.action-shine {
  position: absolute;
  top: 5px;
  left: 12%;
  right: 12%;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.action.is-ghost {
  color: #3E5955;
  text-shadow: none;
  background: linear-gradient(180deg, #FFFDF6 0%, #F8EAD2 100%);
  box-shadow:
    0 5px 0 rgba(67, 96, 90, .38),
    0 14px 24px rgba(7, 33, 39, .28),
    inset 0 2px 0 rgba(255, 255, 255, .9);
}
.action.is-ghost:active:not(:disabled) {
  box-shadow:
    0 1px 0 rgba(67, 96, 90, .42),
    0 5px 12px rgba(7, 33, 39, .24),
    inset 0 2px 0 rgba(255, 255, 255, .9);
}
.action.is-ghost .action-shine { opacity: .7; }

.action.is-hot {
  animation: hotPulse 1s ease-in-out infinite;
  background: linear-gradient(180deg, #FFBE6B 0%, #FF8A3D 44%, #FF6A1E 100%);
}
@keyframes hotPulse {
  0%, 100% {
    box-shadow:
      0 6px 0 #C55A1A,
      0 12px 0 rgba(150, 62, 14, .14),
      0 18px 30px rgba(7, 33, 39, .38),
      0 0 0 0 rgba(255, 184, 96, .6),
      inset 0 2px 0 rgba(255, 255, 255, .55);
  }
  50% {
    box-shadow:
      0 6px 0 #C55A1A,
      0 12px 0 rgba(150, 62, 14, .14),
      0 18px 34px rgba(7, 33, 39, .42),
      0 0 0 12px rgba(255, 184, 96, 0),
      inset 0 2px 0 rgba(255, 255, 255, .55);
  }
}

.action.is-busy { opacity: .78; }
.action.is-busy .action-ico { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tip {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(245, 243, 231, .7);
  text-align: center;
}

/* ---------- 咬钩氛围 ---------- */
.bite-vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 80% at 88% 63%, rgba(255, 154, 63, 0) 32%, rgba(255, 138, 61, .34) 100%),
    linear-gradient(180deg, rgba(255, 170, 90, .12), rgba(255, 110, 40, .04));
  transition: opacity .15s ease;
}
.game[data-state="biting"] .bite-vignette {
  opacity: 1;
  animation: biteFlash 1s ease-in-out infinite alternate;
}
@keyframes biteFlash {
  from { opacity: .55; }
  to { opacity: 1; }
}

.game.is-scared #cat { transform-box: fill-box; transform-origin: 50% 82%; animation: catStartle .45s ease; }
@keyframes catStartle {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px) rotate(-1deg); }
  60% { transform: translateY(0) rotate(1deg); }
}

/* ---------- 结算 ---------- */
.result {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 35, 42, .58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.result.show { opacity: 1; visibility: visible; }

.result-card {
  width: 100%;
  max-width: 330px;
  padding: 24px 20px 20px;
  border-radius: 30px;
  background:
    radial-gradient(120% 80% at 50% 0%, #FFFDF6 0%, #FFF6E5 55%, #F9EAD0 100%);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 rgba(120, 88, 52, .16), 0 30px 60px rgba(0, 0, 0, .42);
  text-align: center;
  transform: translateY(20px) scale(.95);
  transition: transform .36s cubic-bezier(.2, 1.1, .35, 1);
}
.result.show .result-card { transform: translateY(0) scale(1); }

.result-badge {
  width: 66px;
  height: 66px;
  margin: -54px auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFF9EE;
  background: radial-gradient(circle at 35% 28%, #FFB76C, #FF7A2F 68%, #E56720);
  border: 4px solid #FFF7E8;
  box-shadow: 0 8px 18px rgba(197, 90, 26, .38);
}
.result-badge .mp-icon { width: 30px; height: 30px; background: currentColor; }

.result-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  color: #C28A52;
}
.result-card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #2C403E;
}
.result-sub {
  margin: 8px 0 18px;
  font-size: 12px;
  font-weight: 600;
  color: #8E7E66;
  line-height: 1.5;
}

.result-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 13px 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(190, 163, 120, .25);
}
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat + .stat { border-left: 1px solid rgba(150, 122, 80, .18); }
.stat b { font-size: 23px; font-weight: 900; color: #D96A1F; line-height: 1; }
.stat span { font-size: 9px; font-weight: 700; color: #9B8B73; letter-spacing: .04em; }

/* 看广告续一次机会 */
.ad-reward { margin-top: 16px; }

.ad-btn {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 9px 11px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: #FFF9EF;
  text-align: left;
  background: linear-gradient(180deg, #FFB36A 0%, #FF8A3D 48%, #F5772A 100%);
  box-shadow:
    0 5px 0 #C55A1A,
    0 11px 20px rgba(197, 90, 26, .26),
    inset 0 2px 0 rgba(255, 255, 255, .42);
  transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ad-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 38%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  transform: rotate(9deg);
  animation: adShine 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes adShine {
  0%, 58% { left: -45%; }
  82%, 100% { left: 118%; }
}
.ad-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #A64B16,
    0 4px 10px rgba(197, 90, 26, .24),
    inset 0 2px 0 rgba(255, 255, 255, .36);
}
.ad-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .9); outline-offset: 3px; }
.ad-btn:disabled { cursor: default; }
.ad-btn.is-loading { opacity: .82; }
.ad-btn.is-loading::after { animation-duration: 1.15s; }

.ad-ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(112, 48, 12, .2);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.ad-ico .mp-icon { width: 23px; height: 23px; background: currentColor; }
.ad-btn.is-loading .ad-ico .mp-icon { animation: adSpin 1.1s linear infinite; }
@keyframes adSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ad-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ad-copy b {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(150, 66, 16, .25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-copy small {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 249, 239, .84);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-tag {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(104, 43, 9, .2);
  color: rgba(255, 249, 239, .85);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.ad-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: #A08D70;
}
.ad-note .mp-icon { width: 13px; height: 13px; flex: none; background: #C89A5F; }

.restart {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFF9EF;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #FFA45B, #FF7A2F);
  box-shadow: 0 5px 0 #C55A1A, 0 10px 20px rgba(197, 90, 26, .28), inset 0 2px 0 rgba(255, 255, 255, .45);
  transition: transform .1s ease, box-shadow .1s ease, background .2s ease, opacity .2s ease;
}
.restart:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #C55A1A, 0 4px 10px rgba(197, 90, 26, .24), inset 0 2px 0 rgba(255, 255, 255, .4);
}
.restart .mp-icon { width: 20px; height: 20px; background: currentColor; }

.restart.is-ghost {
  height: 46px;
  margin-top: 10px;
  color: #7E6A50;
  font-size: 14px;
  letter-spacing: .05em;
  background: rgba(255, 255, 255, .6);
  border: 1.5px solid rgba(160, 128, 82, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.restart.is-ghost:active {
  transform: translateY(2px);
  background: rgba(255, 255, 255, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.restart.is-ghost .mp-icon { width: 17px; height: 17px; }
.restart:disabled { opacity: .55; cursor: default; }

/* 小屏适配 */
@media (max-height: 700px) {
  .scene {
    transform: translateY(-4.5%) scale(1.06);
    transform-origin: 50% 42%;
  }
  .controls { gap: 7px; padding-top: 34px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .action { height: 56px; border-radius: 20px; font-size: 18px; }
  .hint-pill { padding: 6px 11px; }
  .hint-pill p { max-width: 250px; font-size: 11px; }
  .tip { display: none; }
  .catch-toast { top: calc(76px + env(safe-area-inset-top)); }
  .ad-toast { top: calc(92px + env(safe-area-inset-top)); }
  .result-card { padding: 20px 16px 16px; }
  .result-sub { margin-bottom: 14px; }
  .ad-reward { margin-top: 12px; }
  .ad-btn { min-height: 56px; padding: 8px 10px; }
  .ad-note { display: none; }
  .restart.is-ghost { height: 42px; margin-top: 8px; }
}

@media (min-width: 480px) {
  .hud { padding-left: 18px; padding-right: 18px; }
}

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