/* 农场收菜11 — 竖屏卡通农场游戏
   成品农场画面铺满整屏，交互热点与状态层按画面比例叠加。 */
:root {
  --orange: #FF8A3D;
  --orange-hot: #FF6A1F;
  --orange-deep: #C2520F;
  --gold: #FFD15C;
  --gold-deep: #E99A12;
  --cream: #FFF7E6;
  --cream-2: #FFEBC6;
  --cream-3: #FFFDF6;
  --brown: #6A3B15;
  --brown-deep: #40240E;
  --wood-dark: #3B2610;
  --muted: #9B784F;
  --green: #6FC34D;
  --green-deep: #438A2F;
  --sky: #4BA5FC;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-soft: 0 10px 30px rgba(73, 42, 8, 0.24);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
}

body {
  color: var(--brown-deep);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  font-variant-numeric: tabular-nums;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

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

img {
  display: block;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

/* ---------- 场景 ---------- */
.game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #4BA5FC 0%, #8FD6F3 42%, #B6E6A6 72%, #7FBD5C 100%);
  isolation: isolate;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 66.6667vh);
  width: max(100vw, 66.6667dvh);
  height: max(100vh, 150vw);
  height: max(100dvh, 150vw);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.farm-bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: saturate(1.03);
}

.plot-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
}

.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- 飘浮的叶子与光点 ---------- */
.ambient-particle {
  position: absolute;
  top: var(--y, 60%);
  left: var(--x, 50%);
  width: var(--s, 8px);
  height: calc(var(--s, 8px) * 0.58);
  border-radius: 60% 8% 60% 8%;
  background: linear-gradient(135deg, #fff0a6 0%, #cbe87f 55%, #8ec956 100%);
  box-shadow: 0 0 6px rgba(255, 241, 166, 0.34);
  opacity: 0;
  transform-origin: 50% 50%;
  animation: ambientDrift var(--d, 14s) linear var(--delay, 0s) infinite;
}

.ambient-particle.dot {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fffbe0 0%, #ffe17a 55%, rgba(255, 201, 60, 0) 100%);
  box-shadow: 0 0 8px rgba(255, 224, 120, 0.55);
}

/* ---------- 顶部天空柔化层，盖住成品图上自带的状态栏 ---------- */
.top-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: calc(var(--safe-top) + clamp(96px, 12vh, 184px));
  background:
    radial-gradient(58% 46% at 86% 2%, rgba(255, 249, 198, 0.48) 0%, rgba(255, 249, 198, 0) 70%),
    radial-gradient(38% 22% at 16% 78%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(46% 26% at 58% 88%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(30% 18% at 88% 74%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, rgba(65, 160, 247, 0.99) 0%, rgba(76, 171, 248, 0.98) 56%, rgba(102, 190, 250, 0.85) 82%, rgba(112, 197, 251, 0) 100%);
  pointer-events: none;
}

.corner-shade {
  display: none;
  position: absolute;
  bottom: 0;
  z-index: 13;
  width: 31vw;
  height: 38vh;
  pointer-events: none;
}

.corner-shade.left {
  left: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(21, 39, 8, 0.86) 0%, rgba(21, 39, 8, 0.42) 46%, rgba(21, 39, 8, 0) 72%);
}

.corner-shade.right {
  right: 0;
  background: radial-gradient(ellipse at 100% 100%, rgba(21, 39, 8, 0.86) 0%, rgba(21, 39, 8, 0.42) 46%, rgba(21, 39, 8, 0) 72%);
}

.bottom-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  height: clamp(190px, 27vh, 400px);
  background: linear-gradient(180deg, rgba(24, 42, 10, 0) 0%, rgba(24, 42, 10, 0.08) 44%, rgba(21, 36, 8, 0.32) 76%, rgba(18, 31, 6, 0.5) 100%);
  pointer-events: none;
}

/* ---------- 顶部 HUD ---------- */
.hud {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.2vw, 10px);
  width: 100%;
  max-width: 680px;
  padding: calc(var(--safe-top) + clamp(7px, 1vh, 14px)) 12px 0;
  transform: translateX(-50%);
}

.hud-level {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(4px, 0.8vw, 7px);
  height: clamp(38px, 4.8vh, 60px);
  padding: clamp(2px, 0.4vh, 4px) clamp(8px, 1.4vw, 14px) clamp(2px, 0.4vh, 4px) clamp(3px, 0.6vw, 6px);
  border: 2px solid #fff7dc;
  border-radius: clamp(12px, 1.8vh, 20px);
  background: linear-gradient(180deg, rgba(255, 253, 245, 0.99) 0%, rgba(255, 238, 196, 0.99) 100%);
  box-shadow: 0 3px 0 rgba(139, 83, 20, 0.24), 0 8px 18px rgba(29, 52, 11, 0.18), inset 0 1px 0 #fff;
}

.level-star {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(29px, 3.6vh, 44px);
  height: clamp(29px, 3.6vh, 44px);
  border-radius: 40%;
  background: linear-gradient(145deg, #fff08a 0%, #ffc62f 52%, #ee9a08 100%);
  box-shadow: inset 0 1px 0 #fff8c6, 0 2px 0 #bd7309, 0 3px 8px rgba(176, 101, 9, 0.25);
  color: #864600;
}

.level-star .mp-icon {
  width: 68%;
  height: 68%;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}

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

.level-copy b {
  color: #6f3d10;
  font-size: clamp(10px, 1.25vh, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.xp-track {
  display: block;
  width: clamp(40px, 6vw, 62px);
  height: clamp(5px, 0.6vh, 8px);
  overflow: hidden;
  border-radius: 4px;
  background: #ecd4a3;
  box-shadow: inset 0 1px 2px rgba(113, 70, 17, 0.22);
}

.xp-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd23f 0%, #ff8a3d 100%);
  box-shadow: 0 0 6px rgba(255, 176, 55, 0.6);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(3px, 0.6vw, 6px);
  min-width: 0;
  height: clamp(38px, 4.8vh, 60px);
  padding: 0 clamp(7px, 1.2vw, 13px);
  border: 1.5px solid rgba(255, 220, 142, 0.6);
  border-radius: clamp(12px, 1.8vh, 20px);
  background: linear-gradient(180deg, rgba(78, 47, 19, 0.92) 0%, rgba(48, 28, 10, 0.95) 100%);
  box-shadow: 0 3px 0 rgba(25, 14, 4, 0.24), 0 8px 18px rgba(25, 43, 9, 0.2), inset 0 1px 0 rgba(255, 236, 180, 0.24);
  color: #fff4d2;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.hud-pill b {
  overflow: hidden;
  color: #fff6d8;
  font-size: clamp(14px, 1.9vh, 23px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(42, 22, 4, 0.6);
  white-space: nowrap;
}

.hud-pill.coins {
  flex: 1 1 auto;
}

.hud-pill.basket {
  flex: 0 0 clamp(58px, 8vw, 86px);
}

.coin-art {
  position: relative;
  flex: 0 0 auto;
  width: clamp(21px, 2.8vh, 34px);
  height: clamp(21px, 2.8vh, 34px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 27%, #fff8b4 0%, #ffdc58 38%, #f4a91d 70%, #c97408 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 243, 168, 0.72), 0 2px 4px rgba(54, 27, 0, 0.3);
}

.coin-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(191, 116, 6, 0.44);
}

.coin-art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  height: 45%;
  background: linear-gradient(180deg, #fff3a4 0%, #e9a20d 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 1px 0 rgba(150, 82, 0, 0.4));
  transform: translate(-50%, -50%);
}

.hud-basket-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(21px, 2.7vh, 32px);
  height: clamp(21px, 2.7vh, 32px);
  border-radius: 30%;
  background: linear-gradient(180deg, #ffd978 0%, #d99426 100%);
  box-shadow: inset 0 1px 0 rgba(255, 249, 210, 0.6), 0 1px 0 rgba(74, 39, 4, 0.32);
  color: #6b3a05;
}

.hud-basket-ico .mp-icon {
  width: 72%;
  height: 72%;
}

.hud-level.level-up {
  animation: levelUp 0.62s ease-out;
}

.hud-pill.bump {
  animation: coinBump 0.36s ease-out;
}

/* ---------- 广告入口 ---------- */
.ad-btn {
  position: absolute;
  top: calc(var(--safe-top) + clamp(48px, 8vh, 148px));
  right: -8px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 12px);
  width: clamp(196px, 56vw, 390px);
  height: clamp(94px, 13vh, 198px);
  padding: clamp(7px, 1.1vh, 15px) clamp(10px, 1.6vw, 20px) clamp(7px, 1.1vh, 15px) clamp(7px, 1.1vh, 15px);
  overflow: hidden;
  border: 2.5px solid #ffe6a0;
  border-radius: clamp(18px, 2.6vh, 32px);
  background:
    radial-gradient(90% 150% at 12% 50%, rgba(255, 242, 160, 0.5) 0%, rgba(255, 214, 92, 0) 56%),
    linear-gradient(145deg, #ffcf5a 0%, #ff9c2b 48%, #f15f17 100%);
  box-shadow: 0 6px 0 #b64a0d, 0 14px 28px rgba(126, 49, 4, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.46);
  color: #fff;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
  animation: adBreathe 3.6s ease-in-out infinite;
}

.ad-btn::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -55%;
  width: 38%;
  height: 190%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.36) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  animation: adShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

.ad-btn:active {
  transform: translateY(3px) scale(0.99);
  box-shadow: 0 3px 0 #b64a0d, 0 8px 16px rgba(126, 49, 4, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.46);
  animation-play-state: paused;
}

.ad-btn.is-cool {
  filter: saturate(0.7) brightness(0.97);
  animation-play-state: paused;
}

.ad-btn.is-busy {
  filter: saturate(0.84);
}

.ad-medallion {
  position: relative;
  flex: 0 0 auto;
  height: 78%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2.5px solid rgba(255, 246, 191, 0.82);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #fff2a4 0%, #ffbe35 54%, #e66a12 100%);
  box-shadow: 0 0 0 3px rgba(138, 55, 4, 0.18), 0 3px 10px rgba(103, 38, 2, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ad-medallion::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -10px 18px rgba(150, 54, 2, 0.2), inset 0 4px 10px rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.ad-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.ad-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(3px, 0.5vh, 6px);
  min-width: 0;
}

.ad-text b {
  color: #fffdf2;
  font-size: clamp(15px, 2.2vh, 27px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(139, 47, 3, 0.46), 0 4px 8px rgba(92, 28, 0, 0.24);
  white-space: nowrap;
}

.ad-text small {
  color: #fff0b9;
  font-size: clamp(9px, 1.35vh, 15px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(139, 47, 3, 0.44);
  white-space: nowrap;
}

.ad-play {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(22px, 3vh, 38px);
  height: clamp(22px, 3vh, 38px);
  border: 1.5px solid rgba(255, 249, 214, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 0 2px 5px rgba(109, 40, 2, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fffbe4;
}

.ad-play .mp-icon {
  width: 76%;
  height: 76%;
  margin-left: 1px;
}

.ad-tag {
  position: absolute;
  top: clamp(5px, 0.7vh, 9px);
  left: clamp(7px, 1vw, 12px);
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(111, 41, 2, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 205, 0.3);
  color: #fff8d6;
  font-size: clamp(7px, 0.9vh, 10px);
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.45;
}

.ad-btn.is-cool .ad-play {
  opacity: 0.45;
}

.help-btn {
  position: absolute;
  top: calc(var(--safe-top) + clamp(66px, 8.6vh, 140px));
  left: clamp(10px, 2.8vw, 38px);
  z-index: 24;
  display: grid;
  place-items: center;
  width: clamp(42px, 6.5vh, 104px);
  height: clamp(42px, 6.5vh, 104px);
  border: 2px solid #fff8e6;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf2 0%, #f8e3b5 100%);
  box-shadow: 0 3px 0 rgba(134, 78, 22, 0.3), 0 9px 18px rgba(31, 47, 8, 0.24), inset 0 1px 0 #fff;
  color: #714113;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.help-btn:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: 0 1px 0 rgba(134, 78, 22, 0.3), 0 4px 10px rgba(31, 47, 8, 0.2);
}

.help-btn .mp-icon {
  width: 56%;
  height: 56%;
}

/* ---------- 成熟计数气泡，盖住成品图里自带的 3/6 ---------- */
.counter-bubble {
  position: absolute;
  top: 41.4%;
  left: 51.5%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.7vw, 8px);
  width: 26%;
  min-width: 94px;
  height: 7.6%;
  min-height: 48px;
  padding: 2.6% 3.2%;
  border: 2px solid #fffdf4;
  border-radius: clamp(15px, 2.2vh, 24px) clamp(15px, 2.2vh, 24px) clamp(15px, 2.2vh, 24px) clamp(5px, 0.8vh, 9px);
  background: linear-gradient(180deg, #fffdf5 0%, #ffecc3 100%);
  box-shadow: 0 4px 0 rgba(128, 72, 24, 0.14), 0 10px 24px rgba(45, 31, 8, 0.3), inset 0 0 0 2px rgba(233, 184, 96, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.counter-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 16%;
  width: 13px;
  height: 13px;
  border-radius: 0 0 3px 0;
  background: linear-gradient(135deg, #ffecc3 0%, #ffecc3 60%, transparent 60%);
  transform: rotate(45deg);
}

.counter-art {
  display: block;
  flex: 0 0 auto;
  height: 74%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #fffdf2;
  border-radius: 50%;
  background: #7ca64b;
  box-shadow: 0 2px 5px rgba(104, 60, 10, 0.25), inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.counter-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.45);
}

.counter-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1;
}

.counter-copy small {
  margin-bottom: clamp(1px, 0.3vh, 3px);
  color: #a57943;
  font-size: clamp(7px, 1vh, 12px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.counter-copy b {
  display: flex;
  align-items: baseline;
  color: #54300e;
  font-size: clamp(15px, 2.4vh, 29px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.counter-copy em {
  margin-left: 1px;
  color: #9a7244;
  font-size: 0.56em;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.counter-bubble.pop {
  animation: bubblePop 0.3s ease-out;
}

/* ---------- 菜地热点 ---------- */
.plot {
  position: absolute;
  display: block;
  overflow: visible;
  border-radius: 16px;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  transition: filter 0.2s ease;
}

.plot:active {
  filter: brightness(1.06);
}

.plot-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(39, 26, 10, 0.06) 0%, rgba(31, 20, 7, 0.26) 62%, rgba(28, 18, 6, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
}

.plot.is-growing .plot-veil {
  opacity: 1;
}

.plot-glow {
  position: absolute;
  inset: -14%;
  z-index: 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  background: radial-gradient(ellipse at 50% 66%, rgba(255, 226, 112, 0.72) 0%, rgba(255, 190, 48, 0.3) 38%, rgba(255, 190, 48, 0) 70%);
  mix-blend-mode: screen;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.plot.is-ready .plot-glow {
  opacity: 1;
  animation: glowPulse 2.8s ease-in-out infinite;
}

.plot-tag {
  position: absolute;
  bottom: -11px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: clamp(2px, 0.4vh, 4px) clamp(5px, 0.8vw, 9px);
  border: 1.5px solid #fffdf4;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf2 0%, #ffe7a9 100%);
  box-shadow: 0 2px 0 #c98a2a, 0 5px 12px rgba(58, 34, 6, 0.24), inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  color: #743e0f;
  font-size: clamp(8px, 1.1vh, 13px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(4px) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.plot-tag .mp-icon {
  width: clamp(10px, 1.4vh, 16px);
  height: clamp(10px, 1.4vh, 16px);
  color: #d88609;
}

.plot-tag b {
  font-weight: 900;
}

.plot.is-ready .plot-tag {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: tagFloat 2.4s ease-in-out infinite;
}

.plot-grow {
  position: absolute;
  bottom: 2%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 5px);
  padding: clamp(2px, 0.35vh, 4px) clamp(5px, 0.8vw, 9px) clamp(2px, 0.35vh, 4px) clamp(2px, 0.35vh, 4px);
  border: 1px solid rgba(255, 232, 174, 0.4);
  border-radius: 999px;
  background: rgba(48, 30, 12, 0.82);
  box-shadow: 0 3px 9px rgba(25, 15, 4, 0.28), inset 0 1px 0 rgba(255, 246, 213, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.24s ease, visibility 0.24s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
}

.plot.is-growing .plot-grow {
  opacity: 1;
  visibility: visible;
}

.grow-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(20px, 2.8vh, 34px);
  height: clamp(20px, 2.8vh, 34px);
  border-radius: 50%;
  background: conic-gradient(#ffd35e calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.14) 0);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.grow-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(50, 31, 12, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 228, 160, 0.2);
}

.grow-ring b {
  position: relative;
  z-index: 1;
  color: #fff4d6;
  font-size: clamp(7px, 1vh, 12px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.grow-label {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #ffe8b0;
  font-size: clamp(7px, 1vh, 12px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.grow-label .mp-icon {
  width: clamp(8px, 1.1vh, 13px);
  height: clamp(8px, 1.1vh, 13px);
  color: #a8e783;
}

.plot.harvest-pop {
  animation: plotPop 0.3s ease-out;
}

.plot.shake {
  animation: plotShake 0.34s ease-in-out;
}

.plot.is-ready {
  filter: drop-shadow(0 0 5px rgba(255, 217, 94, 0.24));
}

/* ---------- 收获特效 ---------- */
.fx-ring {
  position: absolute;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border: 3px solid #ffe07a;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 208, 78, 0.9), inset 0 0 12px rgba(255, 227, 134, 0.6);
  animation: fxRing 0.55s ease-out forwards;
  pointer-events: none;
}

.fx-dot {
  position: absolute;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: var(--c, #ffe07a);
  box-shadow: 0 0 8px var(--c, #ffe07a);
  animation: fxDot 0.7s ease-out forwards;
  pointer-events: none;
}

.fx-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff3c4;
  font-size: clamp(15px, 2.2vh, 24px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 0 #a75b12, 0 4px 10px rgba(0, 0, 0, 0.34);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: fxFloat 0.92s ease-out forwards;
  pointer-events: none;
}

.fx-float .mp-icon {
  width: 1em;
  height: 1em;
  color: #ffd24e;
  filter: drop-shadow(0 1px 0 #8c4a0c);
}

/* ---------- 提示 ---------- */
.hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + clamp(112px, 14.2vh, 224px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.9vw, 9px);
  max-width: calc(100% - 32px);
  padding: clamp(5px, 0.8vh, 9px) clamp(5px, 0.8vw, 9px) clamp(5px, 0.8vh, 9px) clamp(6px, 1vw, 11px);
  border: 1.5px solid #fff8e4;
  border-radius: clamp(13px, 1.8vh, 20px);
  background: linear-gradient(180deg, rgba(255, 253, 244, 0.98) 0%, rgba(255, 237, 201, 0.98) 100%);
  box-shadow: 0 3px 0 rgba(130, 77, 21, 0.22), 0 10px 24px rgba(23, 35, 7, 0.28), inset 0 0 0 1.5px rgba(238, 190, 104, 0.32);
  color: #6a3e13;
  text-align: left;
  transform: translateX(-50%);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hint::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 0 0 2px 0;
  background: linear-gradient(135deg, #ffedc9 0%, #ffedc9 60%, transparent 60%);
  transform: translateX(-50%) rotate(45deg);
}

.hint-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(26px, 3.4vh, 40px);
  height: clamp(26px, 3.4vh, 40px);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe9a6 0%, #ffc53e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 #cf8e1b;
  color: #7c4305;
}

.hint-ico .mp-icon {
  width: 66%;
  height: 66%;
}

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

.hint-copy b {
  font-size: clamp(10px, 1.4vh, 15px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.hint-copy small {
  color: #9a7548;
  font-size: clamp(8px, 1.1vh, 12px);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.hint.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

.hint-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(26px, 3.2vh, 36px);
  height: clamp(26px, 3.2vh, 36px);
  border-radius: 50%;
  background: rgba(127, 83, 31, 0.12);
  color: #8d6739;
}

.hint-close .mp-icon {
  width: 58%;
  height: 58%;
}

/* ---------- 底部操作台 ---------- */
.dock {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(var(--safe-bottom) + 9px);
  z-index: 20;
  height: clamp(84px, 11.4vh, 176px);
  padding: clamp(6px, 0.9vh, 12px);
  overflow: hidden;
  border: 2px solid #fff7e1;
  border-radius: clamp(21px, 3vh, 34px);
  background: linear-gradient(180deg, rgba(255, 253, 244, 0.99) 0%, rgba(255, 239, 204, 0.99) 58%, rgba(255, 225, 169, 0.99) 100%);
  box-shadow: 0 7px 0 rgba(122, 69, 21, 0.3), 0 20px 40px rgba(17, 28, 5, 0.4), inset 0 1px 0 #fff, inset 0 0 0 2px rgba(236, 193, 114, 0.34);
}

.dock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  width: 100%;
  max-width: 680px;
  height: 100%;
  margin: 0 auto;
}

.dock-basket {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(3px, 0.6vw, 6px);
  height: 100%;
  padding-right: clamp(1px, 0.3vw, 3px);
}

.dock-basket-icon {
  display: grid;
  place-items: center;
  width: clamp(31px, 4.1vh, 54px);
  height: clamp(31px, 4.1vh, 54px);
  border-radius: 36%;
  background: linear-gradient(180deg, #fff5cc 0%, #ffcf5c 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 0 #d39627, 0 4px 8px rgba(128, 74, 12, 0.14);
  color: #7b4104;
}

.dock-basket-icon .mp-icon {
  width: 68%;
  height: 68%;
}

.dock-basket-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.dock-basket-copy small {
  color: #9a7548;
  font-size: clamp(7px, 1vh, 12px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dock-basket-copy b {
  color: #5b3310;
  font-size: clamp(14px, 2vh, 23px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.harvest-all {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(5px, 0.9vw, 10px);
  min-width: 0;
  height: 100%;
  padding: 0 clamp(6px, 1vw, 14px);
  overflow: hidden;
  border: 2px solid #ffe3a3;
  border-radius: clamp(15px, 2.1vh, 24px);
  background: linear-gradient(180deg, #ffb84c 0%, #ff8d2c 52%, #f56a1d 100%);
  box-shadow: 0 5px 0 #b94e0f, 0 9px 16px rgba(146, 60, 6, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.42);
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.harvest-all::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -22%;
  width: 32%;
  height: 160%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(16deg);
  animation: dockShine 5.2s ease-in-out infinite;
  pointer-events: none;
}

.harvest-all:active {
  transform: translateY(3px) scale(0.99);
  box-shadow: 0 2px 0 #b94e0f, 0 5px 10px rgba(146, 60, 6, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}

.harvest-all.is-empty {
  filter: saturate(0.6) brightness(0.98);
}

.harvest-all.ok-bounce {
  animation: okBounce 0.34s ease-out;
}

.ha-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(30px, 4.2vh, 56px);
  height: clamp(30px, 4.2vh, 56px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1.5px rgba(255, 245, 205, 0.64), 0 1px 3px rgba(120, 46, 2, 0.18);
}

.ha-icon .mp-icon {
  width: 68%;
  height: 68%;
  color: #fff7d6;
}

.ha-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}

.ha-copy b {
  font-size: clamp(14px, 2vh, 24px);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(146, 54, 4, 0.38);
  white-space: nowrap;
}

.ha-copy small {
  color: #fff0c6;
  font-size: clamp(8px, 1.15vh, 14px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(146, 54, 4, 0.34);
  white-space: nowrap;
}

.sound-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(36px, 4.8vh, 58px);
  height: clamp(36px, 4.8vh, 58px);
  border: 2px solid #fff8e6;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf2 0%, #f8e3b5 100%);
  box-shadow: 0 3px 0 rgba(134, 78, 22, 0.26), inset 0 1px 0 #fff;
  color: #714113;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sound-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(134, 78, 22, 0.26);
}

.sound-btn .mp-icon {
  width: 58%;
  height: 58%;
}

/* ---------- 轻提示 ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + clamp(120px, 15vh, 236px));
  z-index: 60;
  max-width: calc(100% - 52px);
  padding: clamp(8px, 1.2vh, 13px) clamp(12px, 1.8vw, 20px);
  border: 1px solid rgba(255, 214, 128, 0.34);
  border-radius: clamp(12px, 1.6vh, 18px);
  background: rgba(49, 30, 12, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 245, 210, 0.14);
  color: #fff8e7;
  font-size: clamp(11px, 1.5vh, 16px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

/* ---------- 奖励爆发 ---------- */
.reward-layer {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.reward-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: rewardPop 1.5s ease-out forwards;
}

.reward-coin {
  display: grid;
  place-items: center;
  width: clamp(66px, 10vh, 108px);
  height: clamp(66px, 10vh, 108px);
  border: 4px solid #fff0a8;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6a8 0%, #ffd33e 45%, #e89a12 100%);
  box-shadow: 0 0 0 6px rgba(255, 210, 70, 0.25), 0 12px 30px rgba(120, 60, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.6);
  color: #8a4a00;
}

.reward-coin .mp-icon {
  width: 60%;
  height: 60%;
}

.reward-text {
  color: #ffe47a;
  font-size: clamp(22px, 3.4vh, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 #a75b12, 0 8px 20px rgba(0, 0, 0, 0.35);
}

.confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c, #ffd34a);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  animation: confettiFly 1.15s ease-out forwards;
}

/* ---------- 弹层 ---------- */
.modal,
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal.open,
.ad-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 14, 4, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 9px 18px calc(var(--safe-bottom) + 18px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fffdf5 0%, #fff0d0 100%);
  box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 #fff;
  transform: translateY(24px);
  transition: transform 0.31s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.modal.open .sheet {
  transform: translateY(0);
}

.sheet-grab {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: rgba(153, 106, 54, 0.28);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-head small {
  display: block;
  margin-bottom: 4px;
  color: #b1844c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sheet-head h2 {
  margin: 0;
  color: #4a2a10;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sheet-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: inset 0 0 0 2px #f1ddb8, 0 2px 0 rgba(151, 101, 43, 0.12);
  color: #8a6132;
}

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

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.help-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1.5px solid #f5e1b9;
  border-radius: 16px;
  background: rgba(255, 252, 243, 0.86);
  box-shadow: 0 2px 0 rgba(180, 130, 60, 0.06);
}

.step-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffeab9 0%, #ffcf5e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 0 #d99b2a;
  color: #8a4a00;
}

.step-ico.green {
  background: linear-gradient(180deg, #e2f8c0 0%, #a3d95e 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 0 #6ba52e;
  color: #3e7418;
}

.step-ico.gold {
  background: linear-gradient(180deg, #fff3b4 0%, #ffbf3d 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 0 #d99b2a;
}

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

.help-step b {
  display: block;
  margin-bottom: 3px;
  color: #553114;
  font-size: 14px;
  font-weight: 900;
}

.help-step p {
  margin: 0;
  color: #8d6a43;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.sheet-primary {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 2px solid #ffe3a3;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb24a 0%, #ff8a2a 52%, #f56a1d 100%);
  box-shadow: 0 5px 0 #b94e0f, 0 9px 16px rgba(165, 74, 12, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(146, 54, 4, 0.36);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sheet-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b94e0f, 0 5px 10px rgba(165, 74, 12, 0.2);
}

/* 模拟广告 */
.ad-modal {
  align-items: center;
  padding: 20px;
  z-index: 75;
}

.ad-modal .modal-backdrop {
  background: rgba(16, 9, 3, 0.74);
}

.ad-window {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 11px;
  border: 1.5px solid rgba(255, 235, 185, 0.4);
  border-radius: 26px;
  background: linear-gradient(180deg, #2d1c0d 0%, #1d1208 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff3d4;
  transform: scale(0.94) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.ad-modal.open .ad-window {
  transform: scale(1) translateY(0);
}

.ad-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 9px;
}

.ad-window-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 211, 94, 0.14);
  color: #ffd978;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ad-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffedc8;
}

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

.ad-creative {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #6a3b15;
}

.ad-creative img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.ad-creative-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 2, 0.05) 0%, rgba(20, 10, 2, 0.2) 55%, rgba(20, 10, 2, 0.8) 100%);
}

.ad-creative-copy {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-creative-copy small {
  color: #ffd98a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ad-creative-copy b {
  color: #fff8e6;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.ad-progress {
  height: 6px;
  margin: 12px 2px 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.ad-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffd34a 0%, #ff8a2a 100%);
  box-shadow: 0 0 10px rgba(255, 180, 60, 0.5);
  transition: width 0.9s linear;
}

.ad-timer {
  margin-bottom: 10px;
  color: #c8a878;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ad-claim {
  width: 100%;
  height: 50px;
  border: 2px solid #ffe3a3;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffb24a 0%, #ff8a2a 52%, #f56a1d 100%);
  box-shadow: 0 5px 0 #b94e0f, inset 0 2px 0 rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(146, 54, 4, 0.36);
  transition: transform 0.12s ease, filter 0.2s ease, opacity 0.2s ease;
}

.ad-claim:disabled {
  filter: saturate(0.4) brightness(0.72);
  opacity: 0.65;
  cursor: default;
}

.ad-claim:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b94e0f;
}

/* ---------- 动画 ---------- */
@keyframes ambientDrift {
  0% { opacity: 0; transform: translate3d(0, 60px, 0) rotate(0deg); }
  12% { opacity: 0.6; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(var(--drift, 30px), -180px, 0) rotate(var(--rot, 220deg)); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.66; transform: scale(0.93); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes tagFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-3px) scale(1.02); }
}

@keyframes plotPop {
  0% { transform: scale(1); }
  42% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes plotShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  55% { transform: translateX(3px); }
  80% { transform: translateX(-2px); }
}

@keyframes bubblePop {
  0% { transform: translate(-50%, -50%) scale(1); }
  40% { transform: translate(-50%, -50%) scale(1.08); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes coinBump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.07) rotate(-1deg); }
}

@keyframes levelUp {
  0% { transform: scale(1); }
  30% { transform: scale(1.09) rotate(-1deg); box-shadow: 0 0 0 5px rgba(255, 205, 70, 0.35); }
  100% { transform: scale(1); }
}

@keyframes adBreathe {
  0%, 100% { box-shadow: 0 6px 0 #b64a0d, 0 14px 28px rgba(126, 49, 4, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.46); }
  50% { box-shadow: 0 6px 0 #b64a0d, 0 14px 34px rgba(255, 136, 36, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.46); }
}

@keyframes adShine {
  0%, 62% { left: -60%; }
  86%, 100% { left: 130%; }
}

@keyframes dockShine {
  0%, 68% { left: -38%; }
  90%, 100% { left: 128%; }
}

@keyframes okBounce {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(0.96); }
  68% { transform: scale(1.02); }
}

@keyframes fxRing {
  0% { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes fxDot {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}

@keyframes fxFloat {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
  16% { opacity: 1; transform: translate(-50%, -62%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -165%) scale(1); }
}

@keyframes rewardPop {
  0% { opacity: 0; transform: scale(0.55) translateY(12px); }
  18% { opacity: 1; transform: scale(1.08) translateY(0); }
  32% { transform: scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.02) translateY(-16px); }
}

@keyframes confettiFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 120deg)) scale(0.7); }
}

/* ---------- 小屏 / 大屏微调 ---------- */
@media (max-width: 350px) {
  .hud-pill.basket {
    flex-basis: 52px;
  }

  .ad-btn {
    width: 190px;
    height: 92px;
  }

  .ad-play {
    display: none;
  }

  .hint-copy small {
    display: none;
  }

  .dock-basket-copy small {
    display: none;
  }

  .ha-icon {
    display: none;
  }
}

@media (min-width: 700px) {
  .corner-shade {
    display: block;
  }
}

@media (min-width: 720px) {
  .hud {
    max-width: 720px;
    gap: 12px;
  }

  .dock-inner {
    max-width: 720px;
    gap: 12px;
  }

  .help-step p {
    font-size: 13px;
  }
}

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