:root {
  --paper: #f7f3e8;
  --paper-deep: #eee7d6;
  --card: #fffdf7;
  --ink: #293d2d;
  --muted: #7f8d7c;
  --soft: #9da79a;
  --green: #3f6b4e;
  --green-light: #e9f0e2;
  --green-mid: #88a477;
  --gold: #c58c48;
  --gold-light: #f8eed8;
  --rose: #b96d5e;
  --blue: #6f939d;
  --line: rgba(55, 81, 60, 0.1);
  --shadow: 0 16px 44px rgba(48, 66, 49, 0.08);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 227, 202, 0.7), transparent 35%),
    radial-gradient(circle at 0% 52%, rgba(245, 226, 200, 0.34), transparent 34%),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; }
a { color: inherit; text-decoration: none; }

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.page { padding: 0 18px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 10px;
}

.brand { display: flex; align-items: baseline; gap: 9px; }
.brand strong {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 600;
}
.brand span { color: var(--soft); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.top-link { color: var(--green); font-size: 12px; white-space: nowrap; }

.loading-screen {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}
.loading-seed {
  width: 42px;
  height: 56px;
  border-radius: 60% 60% 45% 45%;
  background: radial-gradient(circle at 34% 28%, #f4e9c9, #b28d58 70%);
  box-shadow: 0 16px 30px rgba(112, 89, 49, 0.18);
  animation: breathe 1.7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.08) rotate(2deg); }
}

.eyebrow {
  color: var(--soft);
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
}

.display { font-family: "Songti SC", "STSong", "SimSun", serif; font-weight: 600; letter-spacing: 1px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.accent { color: var(--green); }

.hero-copy { padding: 24px 4px 6px; }
.hero-copy h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 40px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 2px;
}
.hero-copy p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.seed-scene {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f7efdc 0%, #e9efdf 66%, #d7e5cc 100%);
}
.seed-scene::before {
  content: "";
  position: absolute;
  inset: auto -22% -18% -22%;
  height: 45%;
  border-radius: 50%;
  background: #abc59a;
  transform: rotate(-2deg);
}
.seed-scene .sun-dot {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240, 205, 111, 0.72);
  box-shadow: 0 0 28px rgba(240, 205, 111, 0.36);
}
.seed-scene .mystery-image {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 83%;
  transform: translateX(-50%);
  z-index: 2;
}
.seed-scene .scene-label {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 999px;
  color: #5a735d;
  background: rgba(255, 253, 247, 0.8);
  font-size: 10px;
  letter-spacing: 1px;
}
.seed-scene .scene-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: rgba(255, 253, 247, 0.9);
  font-size: 11px;
  letter-spacing: 1px;
}

.garden-hero {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f7efdc 0%, #e9efdf 64%, #d7e5cc 100%);
}
.garden-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(34, 55, 39, 0.48));
  z-index: 2;
}
.garden-hero .sun-dot {
  position: absolute;
  right: 34px;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 205, 111, 0.74);
  box-shadow: 0 0 32px rgba(240, 205, 111, 0.38);
}
.garden-hero .grass-line {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 16%;
  border-radius: 50%;
  background: #aac397;
  transform: rotate(-2deg);
  z-index: 1;
}
.garden-hero .pot-table {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 78px;
  height: 22px;
  border-radius: 50%;
  background: rgba(111, 146, 104, 0.2);
  filter: blur(5px);
  z-index: 1;
}
.pot-scene {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 230px;
  height: 250px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}
.growth-plant {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 130px;
  height: 160px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: sprout-in 1.15s cubic-bezier(.2, .8, .25, 1) both;
  z-index: 1;
}
.growth-day-1 { --growth: .12; --bud: 0; }
.growth-day-2 { --growth: .24; --bud: .16; }
.growth-day-3 { --growth: .38; --bud: .34; }
.growth-day-4 { --growth: .54; --bud: .56; }
.growth-day-5 { --growth: .72; --bud: .8; }
.growth-day-6 { --growth: .92; --bud: 1; }
.flower-stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: calc(18px + 96px * var(--growth));
  transform: translateX(-50%);
  border-radius: 5px;
  background: linear-gradient(180deg, #8fb07e, #5f8057);
}
.flower-leaf {
  position: absolute;
  width: 34px;
  height: 18px;
  background: linear-gradient(135deg, #a8c39a, #6f9268);
  transform-origin: 0 100%;
}
.flower-leaf--left {
  left: 50%;
  bottom: calc(24px + 46px * var(--growth));
  border-radius: 100% 0 100% 0;
  transform: translateX(-100%) rotate(-22deg) scale(calc(.55 + var(--growth) * .5));
}
.flower-leaf--right {
  left: 50%;
  bottom: calc(32px + 62px * var(--growth));
  border-radius: 0 100% 0 100%;
  transform: translateX(0) rotate(22deg) scale(calc(.55 + var(--growth) * .5));
}
.flower-bud {
  position: absolute;
  left: 50%;
  bottom: calc(16px + 96px * var(--growth));
  width: 18px;
  height: 24px;
  border-radius: 50% 50% 45% 45%;
  border: 2px solid #7f9b72;
  background: linear-gradient(160deg, #c0d3ad, #8fb07e);
  transform: translateX(-50%) scale(var(--bud));
  transform-origin: 50% 100%;
  opacity: calc(.2 + var(--bud) * .8);
}
.grass-blade {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: calc(30px + 82px * var(--growth));
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #a8c39a, #6f9268);
  transform-origin: 50% 100%;
}
.grass-blade--1 { transform: translateX(-50%) rotate(-34deg) scaleY(calc(.55 + var(--growth) * .35)); }
.grass-blade--2 { transform: translateX(-50%) rotate(-23deg) scaleY(calc(.7 + var(--growth) * .3)); }
.grass-blade--3 { transform: translateX(-50%) rotate(-11deg) scaleY(calc(.5 + var(--growth) * .45)); }
.grass-blade--4 { transform: translateX(-50%) rotate(1deg) scaleY(calc(.65 + var(--growth) * .35)); }
.grass-blade--5 { transform: translateX(-50%) rotate(13deg) scaleY(calc(.5 + var(--growth) * .4)); }
.grass-blade--6 { transform: translateX(-50%) rotate(24deg) scaleY(calc(.68 + var(--growth) * .32)); }
.grass-blade--7 { transform: translateX(-50%) rotate(35deg) scaleY(calc(.55 + var(--growth) * .35)); }
.flower-pot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 168px;
  height: 100px;
  transform: translateX(-50%);
  z-index: 3;
}
.pot-shadow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -13px;
  height: 22px;
  border-radius: 50%;
  background: rgba(64, 80, 54, 0.18);
  filter: blur(6px);
}
.pot-rim {
  position: absolute;
  top: 0;
  left: 50%;
  width: 176px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: linear-gradient(180deg, #e0ac8d, #c98b6a);
  border: 1px solid #b97758;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25);
}
.pot-body {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 150px;
  height: 80px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #cf9272, #b97758);
  clip-path: polygon(7% 0, 93% 0, 82% 100%, 18% 100%);
}
.pot-shine {
  position: absolute;
  left: 18px;
  top: 12px;
  width: 10px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transform: rotate(8deg);
}
.pot-soil {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 150px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #5b4636;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08);
  z-index: 4;
}
.revealed-plant {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: auto;
  max-width: 210px;
  max-height: 230px;
  transform: translateX(-50%);
  z-index: 1;
  animation: reveal-in 1.25s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes sprout-in {
  0% { transform: translateX(-50%) scaleY(.08); opacity: .2; }
  65% { transform: translateX(-50%) scaleY(1.03); opacity: 1; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
@keyframes reveal-in {
  0% { transform: translateX(-50%) scale(.72); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.03); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
.garden-hero .plant-image {
  position: absolute;
  left: 7%;
  bottom: -2px;
  width: 96%;
  z-index: 1;
  transform-origin: 50% 96%;
  animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway {
  0% { transform: rotate(-0.7deg); }
  100% { transform: rotate(0.8deg); }
}
.garden-hero .hero-label {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  padding: 7px 11px;
  border-radius: 999px;
  color: #5b725c;
  background: rgba(255, 253, 247, 0.8);
  font-size: 10px;
  letter-spacing: 1px;
}
.garden-hero .hero-copy-bottom {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  color: #fffdf7;
}
.garden-hero .hero-copy-bottom .small { color: rgba(255, 253, 247, 0.72); font-size: 11px; letter-spacing: 1px; }
.garden-hero .hero-copy-bottom .name {
  margin-top: 3px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 34px;
  line-height: 1.2;
  text-shadow: 0 4px 18px rgba(28, 44, 31, 0.22);
}
.garden-hero .hero-copy-bottom .tagline { margin-top: 2px; color: rgba(255, 253, 247, 0.78); font-size: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.chip--green { color: #587454; background: #edf2e6; }
.chip--gold { color: #9a713a; background: var(--gold-light); }
.chip--blue { color: #587985; background: #e9f1f1; }
.chip--rose { color: #9d655a; background: #f7ebe6; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 28px 2px 12px; }
.section-head h2 { margin: 3px 0 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 24px; font-weight: 600; }
.section-head .meta { color: var(--soft); font-size: 11px; }

.garden-list { display: flex; flex-direction: column; gap: 12px; }
.garden-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
}
.garden-card__art {
  position: relative;
  width: 96px;
  height: 112px;
  flex: 0 0 96px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4eedc, #e3ecda);
}
.garden-card__art img { position: absolute; left: 4%; bottom: -2px; width: 92%; }
.garden-card__body { min-width: 0; flex: 1; }
.garden-card__title { color: var(--ink); font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 20px; font-weight: 600; }
.garden-card__sub { margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garden-card__bar { height: 5px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: #e8ece2; }
.garden-card__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a8bf8a, #547b5b); }
.garden-card__foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: var(--soft); font-size: 10px; }

.empty-hero { overflow: hidden; }
.empty-hero .seed-scene { border-radius: 24px 24px 0 0; min-height: 260px; }
.empty-hero__body { padding: 22px 22px 24px; }
.empty-hero__body h2 { margin: 7px 0 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 28px; line-height: 1.35; }
.empty-hero__body p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fffdf7;
  background: var(--green);
  box-shadow: 0 10px 20px rgba(57, 93, 66, 0.16);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { color: #aab3a7; background: #e7ebe1; box-shadow: none; cursor: default; }
.btn--ghost { color: var(--green); background: transparent; border: 1px solid rgba(63, 107, 78, 0.24); box-shadow: none; }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 12px; box-shadow: none; }
.btn--wide { width: 100%; }

.recovery-card { margin-top: 18px; padding: 18px 20px; }
.recovery-card__top { display: flex; justify-content: space-between; gap: 10px; }
.recovery-code {
  margin-top: 11px;
  padding: 12px 14px;
  border: 1px dashed rgba(83, 115, 83, 0.26);
  border-radius: 12px;
  color: #536e56;
  background: #f5f6ec;
  font-family: "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
}
.recovery-card p { margin: 9px 0 0; color: var(--soft); font-size: 11px; line-height: 1.65; }

.category-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.category-option {
  position: relative;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.8);
  cursor: pointer;
  transition: 0.2s ease;
}
.category-option.selected { border-color: #5e875f; background: #f0f5e9; box-shadow: 0 7px 18px rgba(70, 108, 76, 0.1); }
.category-option__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: #f4efe0; font-size: 22px; }
.category-option--flower .category-option__icon { background: #f8ebe6; }
.category-option--grass .category-option__icon { background: #e9f1e3; }
.category-option__name { margin-top: 10px; font-family: "Songti SC", serif; font-size: 22px; font-weight: 600; }
.category-option__copy { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.field { margin-top: 18px; }
.field label { display: block; color: var(--soft); font-size: 11px; letter-spacing: 1px; }
.field input {
  width: 100%;
  height: 48px;
  margin-top: 5px;
  padding: 0 14px;
  border: 1px solid rgba(55, 81, 60, 0.14);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #f8f7ef;
  font-size: 15px;
}
.field input:focus { border-color: rgba(63, 107, 78, 0.45); }
.field__hint { margin-top: 5px; color: var(--soft); font-size: 10px; }

.form-card { margin-top: 18px; padding: 21px 19px; }
.form-card .btn { margin-top: 20px; }
.form-error { margin-top: 10px; color: #b06b5c; font-size: 12px; }

.garden-screen .topbar { padding-bottom: 14px; }
.garden-main { padding: 0 18px; }
.garden-title-row { display: flex; align-items: flex-start; justify-content: space-between; margin: 18px 3px 10px; gap: 10px; }
.garden-title-row h1 { margin: 0; font-family: "Songti SC", serif; font-size: 27px; font-weight: 600; }
.garden-title-row .sub { margin-top: 3px; color: var(--soft); font-size: 11px; }

.progress-card { margin-top: 14px; padding: 18px 18px 16px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progress-top strong { color: var(--green); font-family: "Songti SC", serif; font-size: 25px; font-weight: 600; }
.progress-top span { color: var(--muted); font-size: 11px; }
.energy-bar { height: 9px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #e9ede2; }
.energy-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a7be8b, #50795a); transition: width .3s ease; }
.energy-meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--soft); font-size: 10px; }

.day-track { display: flex; justify-content: space-between; gap: 4px; margin-top: 20px; }
.day-dot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #a3ada0; font-size: 9px; }
.day-dot i { width: 18px; height: 18px; display: block; border: 3px solid var(--card); border-radius: 50%; background: #e4e9df; box-shadow: 0 0 0 1px #e4e9df; }
.day-dot.reached { color: #72886e; }
.day-dot.reached i { background: #8baa7c; box-shadow: 0 0 0 1px #8baa7c; }
.day-dot.current { color: var(--gold); font-weight: 600; }
.day-dot.current i { width: 22px; height: 22px; margin-top: -2px; background: #d7a958; box-shadow: 0 0 0 4px rgba(215, 169, 88, 0.14); }

.members-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 16px 18px; }
.members-card__person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar-initial {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #5e795e;
  background: #edf2e6;
  font-family: "Songti SC", serif;
  font-size: 15px;
  font-weight: 600;
}
.member-copy { min-width: 0; }
.member-copy strong { display: block; overflow: hidden; color: #405944; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member-copy span { display: block; color: var(--soft); font-size: 9px; }
.members-card__link { flex: 1; height: 1px; background: linear-gradient(90deg, #e0e5db, #c9d5c3, #e0e5db); }

.task-card { margin-top: 14px; padding: 20px 18px; }
.task-card h2 { margin: 3px 0 0; font-family: "Songti SC", serif; font-size: 22px; font-weight: 600; }
.task-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.task-btn {
  min-height: 100px;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
}
.task-btn--water { color: #4f757c; background: #eaf3f2; border-color: #dcebec; }
.task-btn--fertilizer { color: #82683e; background: #f8f0dc; border-color: #f0e4ca; }
.task-btn--sun { color: #8a6d3a; background: #fbf1d4; border-color: #f2e6c5; }
.task-btn:disabled { opacity: .52; cursor: default; }
.task-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.58); font-size: 15px; }
.water-drop-web { position: relative; width: 14px; height: 14px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: linear-gradient(145deg, #cfe2dc 0%, #8fb6ae 100%); box-shadow: inset -1px -1px 4px rgba(255,255,255,.55), 0 2px 4px rgba(79,117,124,.1); }
.water-drop-web::after { content: ""; position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.85); }
.task-btn strong { display: block; margin-top: 10px; font-size: 13px; }
.task-btn small { display: block; margin-top: 1px; font-size: 10px; opacity: .7; }
.task-btn em { display: block; margin-top: 7px; font-size: 9px; font-style: normal; opacity: .62; }
.task-btn.done strong { text-decoration: line-through; }

.sync-banner { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 13px; border-radius: 12px; color: #946c37; background: #f9eed6; font-size: 11px; }
.partner-status { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.reveal-note { margin-top: 14px; padding: 14px 15px; border-radius: 15px; color: #758771; background: #f1f4e9; font-size: 11px; line-height: 1.7; }
.reveal-note strong { color: #536d55; }

.certificate-card { margin-top: 14px; padding: 22px 19px; text-align: center; }
.certificate-card .small-seal { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 50%; color: #a9783d; background: #f8eed8; font-size: 19px; }
.certificate-card h2 { margin: 4px 0 0; font-family: "Songti SC", serif; font-size: 24px; }
.certificate-card p { margin: 7px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.garden-actions { display: flex; gap: 10px; margin-top: 14px; }
.garden-actions .btn { flex: 1; }

.share-card { margin-top: 14px; padding: 18px; }
.share-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.share-card p { margin: 8px 0 0; color: var(--soft); font-size: 11px; line-height: 1.65; }
.share-link { margin-top: 10px; padding: 10px 11px; overflow: hidden; border-radius: 10px; color: #667a65; background: #f5f6ec; font-family: "Courier New", monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.waiting-card { padding: 22px; }
.waiting-card h2 { margin: 8px 0 0; font-family: "Songti SC", serif; font-size: 27px; line-height: 1.35; }
.waiting-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.waiting-card .category-pill { margin-top: 14px; }

.sealed-card { padding: 30px 24px; text-align: center; }
.sealed-card .seal-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: #9a7b4e; background: #f8eed8; font-size: 25px; }
.sealed-card h2 { margin: 0; font-family: "Songti SC", serif; font-size: 26px; }
.sealed-card p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }

.usage-note { margin-top: 18px; padding: 17px 18px; }
.usage-note h3 { margin: 0; font-family: "Songti SC", serif; font-size: 18px; }
.usage-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: 86vw;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fffdf7;
  background: rgba(40, 62, 45, 0.92);
  box-shadow: 0 10px 24px rgba(33, 52, 38, 0.18);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 43, 32, 0.52);
  backdrop-filter: blur(7px);
}
.certificate-modal {
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow: auto;
  padding: 16px;
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 24px 80px rgba(20, 37, 25, 0.24);
}
.certificate-modal img { width: 100%; border-radius: 12px; }
.certificate-modal .modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.certificate-modal .modal-actions .btn { flex: 1; }
.certificate-modal .tip { margin: 8px 2px 0; color: var(--soft); font-size: 10px; text-align: center; }

.footer-note { padding: 34px 4px 8px; color: #a4ada0; font-size: 10px; line-height: 1.7; text-align: center; }

@media (min-width: 520px) {
  .app-shell { box-shadow: 0 0 80px rgba(45, 65, 47, 0.08); }
}

@media print {
  body { background: #fff; }
  .topbar, .toast, .garden-actions, .share-card, .task-card, .members-card, .progress-card, .reveal-note { display: none !important; }
  .app-shell { max-width: none; }
  .garden-main { padding: 0; }
}
