:root {
  --s: 1;
  --orange: #FF8A3D;
  --orange-deep: #F06A1F;
  --cream: #FFF9EC;
  --ink: #3F3223;
  --green: #4E9B46;
  --wood: #7A4B27;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #20381f;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  touch-action: manipulation;
}

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

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #20381f;
}

.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

@supports (width: max(1px, 2px)) {
  .scene {
    width: max(100vw, calc(100vh * 16 / 9));
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

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

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(27, 49, 22, 0.27) 0%, rgba(27, 49, 22, 0.04) 22%, transparent 38%),
    linear-gradient(0deg, rgba(24, 41, 16, 0.22) 0%, transparent 17%);
}

/* ---------- 菜地交互层：只做透明热区和高亮，不重画画面 ---------- */
.plots {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.plot {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  border-radius: calc(18px * var(--s));
  outline: none;
}

.plot--tomato { left: 1.5%; top: 67.5%; width: 31%; height: 30%; }
.plot--carrot { left: 46.8%; top: 63.5%; width: 24.4%; height: 34%; }
.plot--strawberry { left: 73.6%; top: 67.5%; width: 25.2%; height: 30%; }

.plot-ring {
  position: absolute;
  inset: 0;
  border-radius: calc(18px * var(--s));
  border: calc(2px * var(--s)) solid transparent;
  pointer-events: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plot.is-ready .plot-ring {
  border-color: rgba(255, 226, 140, 0.9);
  box-shadow:
    inset 0 0 calc(28px * var(--s)) rgba(255, 199, 66, 0.22),
    0 0 calc(15px * var(--s)) rgba(255, 199, 66, 0.28);
  animation: readyGlow 1.9s ease-in-out infinite;
}

.plot.is-empty .plot-ring {
  border: calc(2px * var(--s)) dashed rgba(255, 246, 220, 0.75);
  background: rgba(56, 34, 16, 0.18);
}

.plot.is-growing .plot-ring {
  border-color: rgba(207, 248, 176, 0.32);
  background: rgba(39, 67, 28, 0.05);
}

.plot:active .plot-ring {
  background: rgba(255, 255, 255, 0.16);
}

.plot:focus-visible .plot-ring {
  border-color: #fff;
  box-shadow: 0 0 0 calc(3px * var(--s)) rgba(255, 138, 61, 0.7);
}

.plot-tag {
  position: absolute;
  top: calc(6px * var(--s));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: calc(4px * var(--s));
  max-width: calc(100% - 4px);
  padding: calc(4px * var(--s)) calc(9px * var(--s));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.97), rgba(255, 242, 218, 0.95));
  border: calc(1.5px * var(--s)) solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 calc(4px * var(--s)) calc(10px * var(--s)) rgba(35, 22, 8, 0.3);
  white-space: nowrap;
  pointer-events: none;
  color: #4e3b22;
  line-height: 1;
}

.plot-tag .mp-icon {
  width: calc(15px * var(--s));
  height: calc(15px * var(--s));
  color: #5e9c41;
  flex: none;
}

.plot-tag b {
  font-size: calc(11px * var(--s));
  font-weight: 800;
  letter-spacing: 0.02em;
}

.plot-state {
  font-size: calc(10px * var(--s));
  font-weight: 700;
  color: #7a6447;
  font-variant-numeric: tabular-nums;
}

.plot.is-ready .plot-tag {
  background: linear-gradient(180deg, #fffbeb, #ffe9b0);
  border-color: #ffd978;
  box-shadow:
    0 calc(4px * var(--s)) calc(12px * var(--s)) rgba(128, 78, 0, 0.3),
    0 0 calc(12px * var(--s)) rgba(255, 208, 80, 0.45);
}

.plot.is-ready .plot-state { color: #b86800; }
.plot.is-empty .plot-state { color: #c06b1b; }
.plot.is-growing .plot-state { color: #3f7a36; }

.plot-progress {
  position: absolute;
  left: 50%;
  top: calc(31px * var(--s));
  transform: translateX(-50%);
  width: calc(64px * var(--s));
  height: calc(4px * var(--s));
  border-radius: 999px;
  background: rgba(49, 36, 17, 0.38);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.plot-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9ef7e, #6bc24c);
  transition: width 0.2s linear;
}

.plot-spark {
  position: absolute;
  right: calc(8px * var(--s));
  top: calc(8px * var(--s));
  display: none;
  color: #ffe27d;
  filter: drop-shadow(0 0 calc(4px * var(--s)) rgba(255, 198, 48, 0.8));
  pointer-events: none;
}

.plot.is-ready .plot-spark {
  display: block;
  animation: twinkle 1.6s ease-in-out infinite;
}

.plot-spark .mp-icon {
  width: calc(20px * var(--s));
  height: calc(20px * var(--s));
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    calc(10px * var(--s) + env(safe-area-inset-top))
    calc(14px * var(--s) + env(safe-area-inset-right))
    calc(10px * var(--s) + env(safe-area-inset-bottom))
    calc(14px * var(--s) + env(safe-area-inset-left));
  pointer-events: none;
}

.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(10px * var(--s));
}

.res-bar {
  display: flex;
  align-items: center;
  gap: calc(8px * var(--s));
  flex: none;
}

.res-card {
  display: flex;
  align-items: center;
  gap: calc(7px * var(--s));
  height: calc(43px * var(--s));
  padding: calc(4px * var(--s)) calc(13px * var(--s)) calc(4px * var(--s)) calc(4px * var(--s));
  border-radius: calc(14px * var(--s));
  background: linear-gradient(180deg, rgba(255, 252, 241, 0.97), rgba(255, 239, 206, 0.94));
  border: calc(2px * var(--s)) solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 calc(4px * var(--s)) calc(12px * var(--s)) rgba(52, 64, 18, 0.22),
    inset 0 1px 0 #fff;
  color: #4a3620;
  transform-origin: 50% 60%;
}

.res-card.bump { animation: coinBump 0.34s ease; }

.res-icon {
  width: calc(33px * var(--s));
  height: calc(33px * var(--s));
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 calc(2px * var(--s)) rgba(255, 255, 255, 0.42);
}

.res-icon .mp-icon {
  width: calc(19px * var(--s));
  height: calc(19px * var(--s));
}

.res-card--coin .res-icon {
  background: linear-gradient(180deg, #ffd45c, #ffa721);
  color: #8a4a00;
}

.res-card--basket .res-icon {
  background: linear-gradient(180deg, #a8dc72, #5fae45);
  color: #234b17;
}

.res-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.res-copy em {
  font-style: normal;
  font-size: calc(9px * var(--s));
  font-weight: 700;
  color: #8a7355;
  letter-spacing: 0.08em;
}

.res-copy strong {
  font-size: calc(18px * var(--s));
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  margin-top: calc(2px * var(--s));
  letter-spacing: 0.01em;
}

.right-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(8px * var(--s));
  flex: none;
}

.buff-chip {
  display: flex;
  align-items: center;
  gap: calc(4px * var(--s));
  height: calc(28px * var(--s));
  padding: 0 calc(11px * var(--s)) 0 calc(4px * var(--s));
  border-radius: 999px;
  background: rgba(42, 31, 14, 0.82);
  border: calc(1px * var(--s)) solid rgba(255, 213, 107, 0.5);
  color: #ffe28c;
  box-shadow: 0 calc(4px * var(--s)) calc(12px * var(--s)) rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: calc(10px * var(--s));
  font-weight: 700;
  white-space: nowrap;
}

.buff-icon {
  width: calc(21px * var(--s));
  height: calc(21px * var(--s));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffd45c, #f09518);
  color: #7a3d00;
}

.buff-icon .mp-icon {
  width: calc(13px * var(--s));
  height: calc(13px * var(--s));
}

.buff-copy b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ad-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(8px * var(--s));
  padding: calc(5px * var(--s)) calc(14px * var(--s)) calc(5px * var(--s)) calc(5px * var(--s));
  border: calc(2px * var(--s)) solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb33e 0%, #ff8a3d 52%, #f36a16 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 calc(7px * var(--s)) calc(16px * var(--s)) rgba(129, 52, 0, 0.34),
    inset 0 calc(2px * var(--s)) 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.12s ease;
}

.ad-btn::before {
  content: "";
  position: absolute;
  inset: calc(-5px * var(--s));
  border-radius: 999px;
  border: calc(2px * var(--s)) solid rgba(255, 208, 92, 0.55);
  animation: adBeacon 1.9s ease-out infinite;
  pointer-events: none;
}

.ad-btn:active { transform: scale(0.955); }
.ad-btn:focus-visible { outline: calc(2px * var(--s)) solid #fff; outline-offset: calc(3px * var(--s)); }

.ad-icon {
  width: calc(34px * var(--s));
  height: calc(34px * var(--s));
  border-radius: 50%;
  background: #fff9ea;
  color: #f06a1f;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 -2px 0 rgba(255, 160, 60, 0.24);
}

.ad-icon .mp-icon {
  width: calc(22px * var(--s));
  height: calc(22px * var(--s));
}

.ad-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ad-text b {
  font-size: calc(13px * var(--s));
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ad-text em {
  font-style: normal;
  font-size: calc(9px * var(--s));
  color: #fff2d4;
  margin-top: calc(3px * var(--s));
  letter-spacing: 0.04em;
}

.ad-shine {
  color: #ffe28c;
  display: grid;
  place-items: center;
  margin-left: calc(1px * var(--s));
}

.ad-shine .mp-icon {
  width: calc(15px * var(--s));
  height: calc(15px * var(--s));
  animation: sparkle 2s ease-in-out infinite;
}

.hud-bottom {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: calc(2px * var(--s));
}

.hint-pill {
  display: flex;
  align-items: center;
  gap: calc(5px * var(--s));
  padding: calc(6px * var(--s)) calc(13px * var(--s));
  border-radius: 999px;
  background: rgba(38, 54, 24, 0.7);
  border: calc(1px * var(--s)) solid rgba(255, 255, 255, 0.18);
  color: #fff7e2;
  box-shadow: 0 calc(4px * var(--s)) calc(14px * var(--s)) rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: calc(11px * var(--s));
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hint-pill .mp-icon {
  width: calc(15px * var(--s));
  height: calc(15px * var(--s));
  color: #ffd56b;
}

.hint-pill.fade {
  opacity: 0;
  transform: translateY(calc(8px * var(--s)));
}

/* ---------- 提示与飘字 ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 14%;
  z-index: 45;
  max-width: 82vw;
  padding: calc(8px * var(--s)) calc(16px * var(--s));
  border-radius: 999px;
  background: rgba(43, 32, 18, 0.9);
  border: calc(1px * var(--s)) solid rgba(255, 239, 200, 0.16);
  color: #fff6df;
  font-size: calc(12px * var(--s));
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 calc(8px * var(--s)) calc(24px * var(--s)) rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, calc(-8px * var(--s)));
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

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

.float-gain {
  position: fixed;
  z-index: 50;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: calc(4px * var(--s));
  padding: calc(4px * var(--s)) calc(10px * var(--s));
  border-radius: 999px;
  background: rgba(255, 246, 218, 0.96);
  border: calc(1px * var(--s)) solid #ffd978;
  color: #a95600;
  font-weight: 900;
  font-size: calc(15px * var(--s));
  box-shadow: 0 calc(6px * var(--s)) calc(18px * var(--s)) rgba(80, 40, 0, 0.3);
  pointer-events: none;
  animation: floatUp 0.95s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.float-gain .mp-icon {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
  color: #e79a16;
}

.spark {
  position: fixed;
  z-index: 49;
  color: #ffe28c;
  pointer-events: none;
  filter: drop-shadow(0 0 calc(4px * var(--s)) rgba(255, 188, 40, 0.8));
  animation: sparkFly 0.85s ease-out forwards;
}

.spark .mp-icon {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
}

/* ---------- 广告增产弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(12px * var(--s));
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 12, 0.64);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

.ad-card {
  position: relative;
  width: min(calc(430px * var(--s)), 88vw);
  max-height: 92vh;
  overflow: auto;
  padding: calc(17px * var(--s)) calc(20px * var(--s)) calc(12px * var(--s));
  border-radius: calc(24px * var(--s));
  background: linear-gradient(170deg, #fffcf2 0%, #fff3d4 62%, #ffe7b0 100%);
  box-shadow:
    0 calc(20px * var(--s)) calc(50px * var(--s)) rgba(0, 0, 0, 0.35),
    inset 0 0 0 calc(2px * var(--s)) rgba(255, 255, 255, 0.9);
  text-align: center;
  animation: cardPop 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.close-btn {
  position: absolute;
  right: calc(10px * var(--s));
  top: calc(10px * var(--s));
  width: calc(28px * var(--s));
  height: calc(28px * var(--s));
  border: 0;
  border-radius: 50%;
  background: rgba(111, 73, 30, 0.1);
  color: #7a5a32;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.close-btn .mp-icon {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
}

.close-btn:active { background: rgba(111, 73, 30, 0.2); }

.ad-hero {
  position: relative;
  height: calc(76px * var(--s));
  display: grid;
  place-items: center;
  margin-bottom: calc(2px * var(--s));
}

.ad-hero-icon {
  position: relative;
  z-index: 1;
  width: calc(60px * var(--s));
  height: calc(60px * var(--s));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 34% 28%, #fff3ae, #ffc43d 58%, #ff8a3d 100%);
  box-shadow:
    0 0 calc(28px * var(--s)) rgba(255, 168, 49, 0.55),
    inset 0 calc(-3px * var(--s)) rgba(210, 90, 0, 0.2);
}

.ad-hero-icon .mp-icon {
  width: calc(33px * var(--s));
  height: calc(33px * var(--s));
}

.ad-orbit {
  position: absolute;
  border: calc(1.5px * var(--s)) solid rgba(240, 150, 40, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.ad-orbit--1 {
  width: calc(92px * var(--s));
  height: calc(92px * var(--s));
  animation: spin 8s linear infinite;
}

.ad-orbit--1::after {
  content: "";
  position: absolute;
  top: 1%;
  left: 21%;
  width: calc(6px * var(--s));
  height: calc(6px * var(--s));
  border-radius: 50%;
  background: #ff9a2e;
}

.ad-orbit--2 {
  width: calc(112px * var(--s));
  height: calc(112px * var(--s));
  border-style: dashed;
  opacity: 0.55;
  animation: spin 12s linear infinite reverse;
}

.ad-hero-tag {
  position: absolute;
  z-index: 2;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: calc(3px * var(--s));
  padding: calc(3px * var(--s)) calc(9px * var(--s));
  border-radius: 999px;
  background: #5b8f3d;
  color: #fff;
  font-size: calc(9px * var(--s));
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 calc(3px * var(--s)) calc(8px * var(--s)) rgba(50, 80, 25, 0.28);
}

.ad-hero-tag .mp-icon {
  width: calc(12px * var(--s));
  height: calc(12px * var(--s));
  color: #ffe28c;
}

.ad-card h2 {
  margin: calc(8px * var(--s)) 0 calc(4px * var(--s));
  color: #4b3213;
  font-size: calc(22px * var(--s));
  font-weight: 900;
  letter-spacing: 0.05em;
}

.ad-desc {
  max-width: calc(330px * var(--s));
  margin: 0 auto calc(10px * var(--s));
  color: #7b6442;
  font-size: calc(12px * var(--s));
  line-height: 1.6;
}

.ad-desc b {
  color: #d96a15;
  font-weight: 800;
}

.ad-rewards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(6px * var(--s));
  margin-bottom: calc(12px * var(--s));
}

.ad-rewards span {
  display: inline-flex;
  align-items: center;
  gap: calc(3px * var(--s));
  padding: calc(4px * var(--s)) calc(8px * var(--s));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: calc(1px * var(--s)) solid rgba(224, 167, 74, 0.45);
  color: #7a5a2c;
  font-size: calc(10px * var(--s));
  font-weight: 700;
  white-space: nowrap;
}

.ad-rewards .mp-icon {
  width: calc(13px * var(--s));
  height: calc(13px * var(--s));
  color: #e88325;
}

.ad-play-state {
  margin-bottom: calc(10px * var(--s));
}

.ad-bar {
  height: calc(8px * var(--s));
  border-radius: 999px;
  background: rgba(110, 75, 30, 0.14);
  overflow: hidden;
}

.ad-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc94a, #ff7a1f);
  transition: width 0.25s linear;
}

.ad-play-state p {
  margin: calc(6px * var(--s)) 0 0;
  color: #8d6b3d;
  font-size: calc(11px * var(--s));
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  min-height: calc(44px * var(--s));
  border: 0;
  border-radius: calc(14px * var(--s));
  background: linear-gradient(135deg, #ffad34, #ff7a1f);
  color: #fff;
  font-size: calc(14px * var(--s));
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6px * var(--s));
  cursor: pointer;
  box-shadow:
    0 calc(6px * var(--s)) calc(16px * var(--s)) rgba(198, 86, 0, 0.35),
    inset 0 calc(2px * var(--s)) rgba(255, 255, 255, 0.38);
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.primary-btn:active { transform: scale(0.98); }
.primary-btn:disabled { opacity: 0.55; pointer-events: none; }

.primary-btn .mp-icon {
  width: calc(19px * var(--s));
  height: calc(19px * var(--s));
}

.ghost-btn {
  width: 100%;
  min-height: calc(34px * var(--s));
  margin-top: calc(3px * var(--s));
  border: 0;
  background: transparent;
  color: #9a7d50;
  font-size: calc(12px * var(--s));
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn:disabled { opacity: 0.4; pointer-events: none; }

.ad-note {
  margin: calc(4px * var(--s)) 0 0;
  color: #b29a75;
  font-size: calc(9px * var(--s));
}

/* ---------- 动效 ---------- */
@keyframes readyGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 calc(22px * var(--s)) rgba(255, 199, 66, 0.18),
      0 0 calc(10px * var(--s)) rgba(255, 199, 66, 0.22);
  }
  50% {
    box-shadow:
      inset 0 0 calc(34px * var(--s)) rgba(255, 199, 66, 0.3),
      0 0 calc(20px * var(--s)) rgba(255, 199, 66, 0.4);
  }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.82) rotate(-6deg); opacity: 0.65; }
  50% { transform: scale(1.14) rotate(6deg); opacity: 1; }
}

@keyframes adBeacon {
  0% { transform: scale(0.96); opacity: 0.8; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { transform: scale(0.9) rotate(0); opacity: 0.75; }
  50% { transform: scale(1.15) rotate(20deg); opacity: 1; }
}

@keyframes coinBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -55%) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}

@keyframes sparkFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(90deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardPop {
  0% { opacity: 0; transform: scale(0.86) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@media (max-width: 700px), (max-height: 430px) {
  .ad-text em { display: none; }
  .hint-pill { padding: calc(5px * var(--s)) calc(10px * var(--s)); }
}

@media (prefers-reduced-motion: reduce) {
  .plot.is-ready .plot-ring,
  .plot.is-ready .plot-spark,
  .ad-btn::before,
  .ad-shine .mp-icon,
  .ad-orbit { animation: none; }
}
