* { box-sizing: border-box; }
:root {
  --orange: #FF8A3D;
  --orange-deep: #EF6E1D;
  --cream: #FFF8E9;
  --cream-deep: #FBEBCB;
  --brown: #5E381F;
  --brown-soft: #8B6246;
  --gold: #FFC64B;
  --green: #5FBA5A;
  --field: min(90vw, 44vh, 400px);
  --radius: 20px;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: #1E3621 radial-gradient(circle at 50% 20%, #3C5C35, #16281A 70%);
  color: var(--brown);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #A9E6F3;
  box-shadow: 0 0 80px rgba(0, 0, 0, .45);
  user-select: none;
  -webkit-user-select: none;
}
.game { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ---------------- HUD ---------------- */
.hud {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 4px;
  flex: 0 0 auto;
  pointer-events: none;
}
.pill {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px 0 11px;
  border-radius: 999px;
  background: rgba(255, 250, 239, .94);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 5px 0 rgba(108, 73, 39, .16), 0 8px 18px rgba(52, 95, 45, .18);
  color: var(--brown);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .01em;
}
.pill b { font-family: "Trebuchet MS", "Arial Rounded MT Bold", -apple-system, sans-serif; font-size: 20px; }
.pill-label { font-size: 11px; font-weight: 700; color: #A17B5B; margin-left: 1px; }
.coin-pill { color: #7A4A16; }
.coin-ico {
  position: relative;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFF6BE 0 18%, #FFD15C 42%, #F2A81E 78%, #D98A13 100%);
  border: 2px solid #D9931A;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 2px 0 rgba(140, 84, 12, .25);
  flex: 0 0 auto;
}
.coin-ico::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(190, 116, 12, .55);
}
.time-pill { color: #2B5E73; }
.time-pill .mp-icon { width: 20px; height: 20px; color: #3E93A8; }
.time-pill.urgent { color: #C43F23; background: #FFF1E7; animation: urgentPulse .7s ease-in-out infinite alternate; }
.time-pill.urgent .mp-icon { color: #E25333; }
@keyframes urgentPulse { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------------- Scene ---------------- */
.scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #9FE6F4 0%, #C7F1E4 38%, #A9E38B 56%, #7ECC69 100%);
}
.sun-wrap { position: absolute; top: 4%; right: 8%; width: 92px; height: 92px; }
.sun-rays {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 241, 158, .55) 0 36%, rgba(255, 238, 140, 0) 68%);
  animation: sunGlow 4s ease-in-out infinite alternate;
}
.app.dusk { background: #F8C98F; }
.scene.dusk { background: linear-gradient(180deg, #F8C98F 0%, #FFD0A1 38%, #C3D97C 56%, #7ECC69 100%); }
.scene.dusk .sun {
  background: radial-gradient(circle at 34% 30%, #FFF5C8, #FFB455 46%, #FF8A3D 100%);
  box-shadow: 0 0 32px rgba(255, 145, 62, .82), inset -4px -5px 0 rgba(219, 108, 31, .22);
}
.scene.dusk .sun-rays { background: radial-gradient(circle, rgba(255, 178, 92, .55) 0 36%, rgba(255, 170, 80, 0) 68%); }
.scene.dusk .cloud,
.scene.dusk .cloud::before,
.scene.dusk .cloud::after { background: #FFF0DA; }
.sun {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF8C9, #FFE071 46%, #FFC93F 100%);
  box-shadow: 0 0 28px rgba(255, 214, 88, .75), inset -4px -5px 0 rgba(238, 161, 26, .22);
}
@keyframes sunGlow { from { transform: scale(.92); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }

.cloud {
  position: absolute;
  height: 26px;
  border-radius: 999px;
  background: #FFFFFF;
  opacity: .92;
  filter: drop-shadow(0 6px 8px rgba(78, 140, 146, .12));
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
.cloud::before { width: 38px; height: 38px; left: 16px; top: -18px; }
.cloud::after { width: 50px; height: 50px; right: 14px; top: -26px; }
.cloud-a { width: 96px; left: -110px; top: 15%; animation: drift 38s linear infinite; }
.cloud-b { width: 70px; left: -90px; top: 30%; --s: .8; animation: drift 52s linear infinite 8s; opacity: .75; }
.cloud-c { width: 82px; left: -110px; top: 7%; --s: .65; animation: drift 60s linear infinite 22s; opacity: .6; }
@keyframes drift {
  0% { transform: translateX(0) scale(var(--s, 1)); }
  100% { transform: translateX(calc(480px + 180px)) scale(var(--s, 1)); }
}

.birds { position: absolute; top: 12%; right: 26%; width: 96px; opacity: .7; animation: birdFloat 7s ease-in-out infinite alternate; }
@keyframes birdFloat { from { transform: translateY(0); } to { transform: translateY(-7px); } }

.hills {
  position: absolute;
  left: -2%;
  right: -2%;
  width: 104%;
  height: clamp(70px, 14vh, 124px);
  bottom: calc(12px + var(--field) - 12px);
  z-index: 1;
}

.barn {
  position: absolute;
  z-index: 3;
  left: 2%;
  width: min(42vw, 170px);
  bottom: calc(12px + var(--field) - 8px);
  filter: drop-shadow(0 8px 8px rgba(43, 80, 34, .16));
}
.barn svg { display: block; width: 100%; height: auto; }

.fence {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: calc(12px + var(--field) - 2px);
  width: 64%;
  height: 38px;
  opacity: .96;
  filter: drop-shadow(0 3px 2px rgba(63, 92, 42, .12));
}

.tree {
  position: absolute;
  z-index: 3;
  width: min(26vw, 110px);
  bottom: calc(12px + var(--field) - 12px);
  filter: drop-shadow(0 7px 7px rgba(43, 80, 34, .14));
}
.tree svg { display: block; width: 100%; height: auto; }
.tree-left { left: -4%; width: min(23vw, 94px); opacity: .96; }
.tree-right { right: -3%; }

.flower { position: absolute; z-index: 3; width: 20px; height: 30px; }
.flower.f1 { left: 4%; bottom: calc(12px + var(--field) + 4px); }
.flower.f2 { right: 6%; bottom: calc(12px + var(--field) + 16px); width: 17px; }
.flower.f3 { left: 1.5%; bottom: 26px; width: 17px; }

/* ---------------- 菜地 ---------------- */
.field {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 12px;
  width: var(--field);
  height: var(--field);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(6px, 1.9vw, 10px);
  padding: clamp(7px, 2.1vw, 11px);
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 48%, rgba(47, 109, 44, .28), rgba(47, 109, 44, 0) 72%);
}

.plot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: clamp(15px, 4.2vw, 21px);
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 220, 178, .13) 0 2px, transparent 2.6px) 0 0 / 28px 24px,
    repeating-linear-gradient(0deg, rgba(80, 46, 24, 0) 0 16px, rgba(80, 46, 24, .19) 16px 18px),
    linear-gradient(180deg, #AD764C 0%, #9A623D 52%, #804F31 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 216, 173, .42),
    inset 0 -7px 0 #6D4428,
    0 5px 9px rgba(39, 78, 33, .3);
  transition: transform .1s ease, box-shadow .2s ease;
}
.plot:active { transform: scale(.945) translateY(2px); }
.plot:focus-visible { outline: 3px solid #FFF3C4; outline-offset: 2px; }

.plot.empty {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 220, 178, .12) 0 2px, transparent 2.6px) 0 0 / 28px 24px,
    repeating-linear-gradient(0deg, rgba(80, 46, 24, 0) 0 16px, rgba(80, 46, 24, .16) 16px 18px),
    linear-gradient(180deg, #A9714A 0%, #945E3C 52%, #7A4A2E 100%);
}
.plot.empty:active { background: linear-gradient(180deg, #B77C50, #8A5535 60%, #714329); }

.plot.pop { animation: plotPop .26s ease; }
@keyframes plotPop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }

.plot.ripe {
  animation: ripeGlow 1.05s ease-in-out infinite alternate;
}
@keyframes ripeGlow {
  from {
    box-shadow:
      inset 0 3px 0 rgba(255, 216, 173, .42),
      inset 0 -7px 0 #6D4428,
      0 0 0 3px rgba(255, 214, 102, .72),
      0 0 15px rgba(255, 198, 75, .55);
  }
  to {
    box-shadow:
      inset 0 3px 0 rgba(255, 216, 173, .42),
      inset 0 -7px 0 #6D4428,
      0 0 0 4px #FFD66B,
      0 0 26px rgba(255, 198, 75, .85);
  }
}
.plot.ripe .crop { animation: cropBob .78s ease-in-out infinite alternate; }
@keyframes cropBob {
  from { transform: translateY(1px) rotate(-1.5deg); }
  to { transform: translateY(-5px) rotate(1.5deg); }
}
.plot.ripe::before,
.plot.ripe::after {
  content: "";
  position: absolute;
  z-index: 4;
  background: #FFF6B8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 5px rgba(255, 214, 92, .95));
  animation: sparkle 1s ease-in-out infinite alternate;
}
.plot.ripe::after { top: 7px; right: 8px; width: 15px; height: 15px; }
.plot.ripe::before { top: 24px; right: 26px; width: 7px; height: 7px; opacity: .75; animation-duration: 1.4s; }
@keyframes sparkle { from { opacity: .3; transform: scale(.65) rotate(0); } to { opacity: 1; transform: scale(1.15) rotate(18deg); } }

.crop {
  position: absolute;
  z-index: 3;
  left: -5%;
  bottom: 0;
  width: 110%;
  height: 110%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 2px rgba(49, 29, 15, .32));
  transform-origin: 50% 92%;
}
.crop svg { width: 100%; height: 100%; overflow: visible; }
.plot.empty .crop { display: none; }

.empty-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 244, 222, .82);
  pointer-events: none;
}
.add-circle {
  width: 38px;
  height: 38px;
  margin-bottom: 1px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 240, 214, .72);
  background: rgba(255, 244, 222, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-circle .mp-icon {
  width: 20px;
  height: 20px;
  color: #FFF1D5;
  background-color: currentColor;
  opacity: .9;
}
.empty-hint small { font-size: 10px; font-weight: 700; letter-spacing: .16em; opacity: .8; }
.plot:not(.empty) .empty-hint { display: none; }

.plot-bar {
  position: absolute;
  z-index: 5;
  left: 13%;
  right: 13%;
  bottom: 7px;
  height: 4px;
  border-radius: 99px;
  background: rgba(58, 32, 16, .38);
  overflow: hidden;
}
.plot-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #D6F57E, #82D65C);
  transition: width .13s linear;
}
.plot.ripe .plot-bar { opacity: 0; }

.plot.ripe .water-dots { opacity: 0; }
.water-dots {
  position: absolute;
  z-index: 6;
  top: 6px;
  right: 7px;
  display: flex;
  gap: 2px;
}
.water-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79D6F0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(22, 78, 99, .35);
}
.water-dots i.off { background: rgba(255, 244, 222, .26); box-shadow: none; }

/* ---------------- 底部目标 ---------------- */
.bottom {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  padding: 6px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(73, 152, 55, 0), rgba(55, 132, 48, .32) 26%, rgba(38, 102, 38, .5));
}
.goal-card {
  position: relative;
  border-radius: 20px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFF2D6 100%);
  border: 2px solid #F7E3BC;
  box-shadow: 0 5px 0 rgba(110, 74, 35, .13), 0 10px 22px rgba(41, 87, 34, .22);
}
.goal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.goal-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: .01em;
  white-space: nowrap;
}
.goal-title b {
  font-family: "Trebuchet MS", -apple-system, sans-serif;
  font-size: 21px;
  color: #E87322;
  line-height: 1;
  margin-left: 1px;
}
.goal-total { font-size: 13px; color: #A98663; font-weight: 700; }
.basket-ico { width: 27px; height: 27px; display: inline-block; margin-right: 1px; }
.basket-ico svg { display: block; width: 100%; height: 100%; }
.hint {
  font-size: 11px;
  font-weight: 700;
  color: #A07B58;
  text-align: right;
  line-height: 1.3;
  transition: opacity .2s;
}
.goal-progress {
  position: relative;
  height: 9px;
  margin-top: 8px;
  border-radius: 99px;
  background: #EFE0C2;
  overflow: hidden;
  box-shadow: inset 0 2px 3px rgba(130, 96, 53, .18);
}
.goal-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFB13D, #FF7A2E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: width .3s cubic-bezier(.2, .8, .3, 1);
}
.goal-fill::after {
  content: "";
  position: absolute;
  inset: 2px 4px auto;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .45);
}

/* ---------------- 特效 ---------------- */
.fx-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.fx-float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #FFF0A8;
  text-shadow: 0 2px 0 #C4771A, 0 0 12px rgba(255, 195, 64, .95), 0 4px 7px rgba(72, 43, 10, .35);
  animation: floatUp .95s cubic-bezier(.18, .7, .3, 1) forwards;
  white-space: nowrap;
}
.fx-float.water { color: #CFF5FF; font-size: 17px; text-shadow: 0 2px 0 #2E8DA6, 0 0 9px rgba(105, 211, 240, .9); }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -35%) scale(.7); }
  22% { opacity: 1; transform: translate(-50%, -85%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(.95); }
}
.coin-bit {
  position: absolute;
  width: 13px;
  height: 13px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF6BE 0 18%, #FFD15C 46%, #EEA119 100%);
  border: 1.5px solid #D68A12;
  animation: coinFly .78s cubic-bezier(.15, .75, .35, 1) forwards;
}
@keyframes coinFly {
  0% { opacity: 1; transform: translate(0, 0) scale(.6); }
  25% { opacity: 1; transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .7)) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2) rotate(180deg); }
}
.drop-bit {
  position: absolute;
  width: 7px;
  height: 9px;
  margin: -4px 0 0 -3px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(180deg, #C9F4FF, #69CDEB);
  border: 1px solid rgba(44, 139, 170, .4);
  animation: dropFly .6s ease-out forwards;
}
@keyframes dropFly {
  0% { opacity: 1; transform: translate(0, 0) scale(.7); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}
.toast {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(66, 41, 24, .9);
  color: #FFF6E4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 18px rgba(36, 48, 24, .3);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 结算 ---------------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(38, 59, 32, .58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
}
.overlay[hidden] { display: none; }
.result-card {
  position: relative;
  z-index: 2;
  width: min(86vw, 356px);
  padding: 34px 22px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #FFFDF6 0%, #FFF2D5 100%);
  border: 3px solid #FFF9EA;
  box-shadow: 0 10px 0 rgba(84, 54, 24, .2), 0 26px 50px rgba(23, 45, 20, .4);
  text-align: center;
  animation: cardIn .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes cardIn {
  0% { opacity: 0; transform: translateY(26px) scale(.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.result-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFB24F, #F4822E);
  border: 2px solid #FFF4DA;
  color: #FFFDF6;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(160, 82, 24, .28);
}
.result-basket {
  width: 82px;
  height: 82px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #FFF2C9, #FFD98B);
  box-shadow: inset 0 -5px 0 rgba(211, 142, 50, .2), 0 6px 16px rgba(200, 132, 44, .22);
}
.result-basket svg { width: 52px; height: 52px; }
.result-card h2 { margin: 2px 0 4px; font-size: 25px; letter-spacing: .01em; color: #6A3B1C; }
.result-sub { margin: 0 0 17px; font-size: 13px; color: #A07B58; font-weight: 600; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 8px;
  border-radius: 18px;
  background: #F8E8C7;
  border: 1.5px solid #F0DCB4;
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat span { font-size: 11px; font-weight: 700; color: #A9855F; }
.stat b { font-family: "Trebuchet MS", sans-serif; font-size: 22px; color: #E87322; line-height: 1; }
.best { margin: 12px 0 16px; font-size: 12px; font-weight: 700; color: #B08A64; }
.primary-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFA54F, #F4761F);
  color: #FFFDF6;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 5px 0 #C25A12, 0 10px 18px rgba(194, 90, 18, .28), inset 0 2px 0 rgba(255, 255, 255, .38);
  transition: transform .08s ease, box-shadow .08s ease;
  touch-action: manipulation;
}
.primary-btn .mp-icon { width: 20px; height: 20px; }
.primary-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #C25A12, 0 4px 8px rgba(194, 90, 18, .24), inset 0 2px 0 rgba(255, 255, 255, .3); }

.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall var(--dur, 2.4s) linear var(--delay, 0s) forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-10px) rotate(0) scale(1); }
  100% { opacity: 0; transform: translateY(105vh) rotate(var(--rot, 500deg)) scale(.8); }
}

/* ---------------- 适配 ---------------- */
@media (max-width: 360px) {
  .pill { height: 38px; font-size: 16px; padding-right: 12px; }
  .pill b { font-size: 18px; }
  .goal-title { font-size: 13px; }
  .hint { font-size: 10px; }
  .goal-card { padding: 8px 11px 10px; }
  .add-circle { width: 32px; height: 32px; }
  .add-circle .mp-icon { width: 17px; height: 17px; }
  .empty-hint small { font-size: 9px; }
}
@media (max-height: 720px) {
  .sun-wrap { width: 74px; height: 74px; top: 3%; }
  .hud { padding-top: calc(8px + env(safe-area-inset-top)); }
  .bottom { padding-top: 4px; }
  .goal-card { padding: 8px 12px 10px; }
  .goal-progress { margin-top: 6px; }
  .result-card { padding: 28px 18px 18px; }
  .result-basket { width: 66px; height: 66px; margin-bottom: 2px; }
  .result-basket svg { width: 42px; height: 42px; }
  .result-card h2 { font-size: 22px; }
  .stats { padding: 9px 6px; }
}
@media (min-width: 520px) {
  .app { height: min(100dvh, 900px); border-radius: 28px; }
  body { padding: 14px 0; }
}
@media (max-height: 560px) {
  body { overflow: auto; align-items: flex-start; }
  .app { height: 560px; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .sun-rays, .birds, .plot.ripe, .plot.ripe .crop,
  .plot.ripe::before, .plot.ripe::after, .time-pill.urgent {
    animation: none !important;
  }
  .goal-fill, .crop, .plot { transition: none !important; }
}
