:root {
  color-scheme: light;
  --paper: #fffaf1;
  --ink: #21312c;
  --muted: #66746d;
  --line: #d9ded1;
  --leaf: #355f4c;
  --leaf-dark: #19372c;
  --moss: #aebc83;
  --sky: #d8e7e8;
  --rose: #d899a2;
  --sun: #dfba67;
  --clay: #b97054;
  --gallery: #101411;
  --gallery-soft: #19201b;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(34, 49, 44, 0.14);
  --font-sans: "Avenir Next", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Hannotate SC", "HanziPen SC", "Yuanti SC", "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", sans-serif;
  --ease-out-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 7%, rgba(216, 153, 162, 0.24), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(143, 200, 207, 0.24), transparent 28%),
    radial-gradient(circle at 74% 48%, rgba(223, 186, 103, 0.18), transparent 30%),
    linear-gradient(180deg, #fff2cf 0, #f7e1d5 390px, #fffaf1 760px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button {
  box-shadow: 2px 3px 0 rgba(33, 49, 44, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 241, 0.84);
  border-bottom: 2px solid rgba(33, 49, 44, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #21312c;
  border-radius: 42% 58% 44% 56% / 58% 42% 58% 42%;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 250, 241, 0.72), transparent 24%),
    #9fb77d;
  color: #21312c;
  font-weight: 800;
  box-shadow: 3px 4px 0 rgba(33, 49, 44, 0.16);
  transform: rotate(-5deg);
}

.brand-mark b,
.brand-mark i {
  font-style: normal;
  line-height: 1;
}

.brand-mark i {
  transform: translateY(4px) rotate(8deg);
}

.brand small,
.eyebrow,
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.topbar .brand small {
  color: var(--muted);
}

.brand strong {
  display: block;
  line-height: 1.2;
  font-family: var(--font-display);
  font-size: 18px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a,
.group-chip,
.small-button,
.secondary,
.primary {
  min-height: 40px;
  border: 2px solid rgba(33, 49, 44, 0.22);
  border-radius: 999px 24px 999px 26px;
  padding: 10px 15px;
  text-decoration: none;
  box-shadow: 2px 3px 0 rgba(33, 49, 44, 0.1);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

nav a:hover,
.group-chip:hover,
.small-button:hover,
.secondary:hover,
.primary:hover {
  transform: translateY(-1px) rotate(-0.5deg);
  box-shadow: 3px 4px 0 rgba(33, 49, 44, 0.12);
}

nav a:active,
.group-chip:active,
.small-button:active,
.secondary:active,
.primary:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 1px 2px 0 rgba(33, 49, 44, 0.1);
}

nav a {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 850;
  box-shadow: 2px 3px 0 rgba(33, 49, 44, 0.08);
}

nav a:hover,
nav a:focus-visible {
  border-color: rgba(33, 49, 44, 0.24);
  outline: 0;
  background: #fff8df;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(30px, 6vw, 84px) clamp(18px, 4vw, 54px) 42px;
  align-items: center;
  color: var(--ink);
}

.hero-copy {
  position: static;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  transform: none;
  animation: none;
}

.hero-copy::before {
  content: none;
}

.hero h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero .eyebrow {
  color: #6b5f49;
}

.lead {
  max-width: 560px;
  margin: 0;
  color: #41514b;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.55;
  text-shadow: none;
}

.hero-actions,
.section-title,
.control-band,
.activity-grid,
.layout,
.mission-band {
  display: flex;
  gap: 14px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: var(--white);
  font-weight: 750;
}

.secondary,
.small-button,
.group-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-visual {
  position: static;
  min-height: 560px;
  overflow: hidden;
}

.museum-map {
  position: relative;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  border: 3px solid rgba(33, 49, 44, 0.78);
  border-radius: 18px 24px 16px 28px;
  background:
    linear-gradient(180deg, rgba(255, 248, 223, 0.02), rgba(255, 248, 223, 0.04)),
    url("assets/illustrations/hero-cover-v2.jpg") center / cover no-repeat,
    #f1d6af;
  box-shadow:
    8px 10px 0 rgba(33, 49, 44, 0.14),
    0 28px 70px rgba(85, 66, 41, 0.18);
}

.museum-map::before {
  content: none;
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(255, 250, 241, 0.76);
  border-radius: 14px 22px 14px 24px;
  pointer-events: none;
}

.museum-map::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 96px;
  height: 72px;
  border: 2px solid rgba(33, 49, 44, 0.38);
  border-radius: 42% 58% 48% 52% / 52% 43% 57% 48%;
  background:
    radial-gradient(circle at 32% 38%, #c79983 0 10px, transparent 11px),
    radial-gradient(circle at 56% 33%, #8fc8cf 0 9px, transparent 10px),
    radial-gradient(circle at 72% 58%, #dfba67 0 11px, transparent 12px),
    rgba(255, 250, 241, 0.82);
  opacity: 0.9;
  pointer-events: none;
}

.map-line {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(33, 49, 44, 0.62) 0 13px, transparent 13px 24px);
  transform-origin: left center;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(255, 250, 241, 0.55));
}

.line-a {
  left: 49%;
  top: 72%;
  width: 26%;
  transform: rotate(-9deg);
}

.line-b {
  left: 61%;
  top: 78%;
  width: 22%;
  transform: rotate(9deg);
}

.map-stop {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-rows: 34px auto auto;
  place-items: center;
  align-content: start;
  width: clamp(124px, 11vw, 148px);
  min-height: clamp(108px, 8.8vw, 126px);
  padding: 16px 12px 13px;
  border: 2px solid #21312c;
  border-radius: 18px 12px 20px 14px / 15px 20px 13px 18px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.18), transparent 46%),
    var(--stop-color, #dfba67);
  color: #151914;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 0 0 6px rgba(255, 250, 241, 0.92),
    5px 6px 0 rgba(33, 49, 44, 0.2),
    inset 0 -7px 0 rgba(0, 0, 0, 0.07);
  transition:
    transform 420ms var(--ease-out-soft),
    box-shadow 420ms var(--ease-out-soft);
  transform: rotate(var(--tilt, 0deg));
  animation: map-stop-in 720ms var(--ease-out-soft) both;
}

.map-stop::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 250, 241, 0.58);
  border-radius: inherit;
  pointer-events: none;
}

.map-stop::after {
  pointer-events: none;
}

.map-stop:hover,
.map-stop:focus-visible {
  outline: 0;
  transform: translateY(-5px) rotate(var(--tilt, 0deg));
  box-shadow:
    0 0 0 7px rgba(255, 250, 241, 0.96),
    7px 9px 0 rgba(33, 49, 44, 0.18),
    0 0 0 5px rgba(255, 250, 241, 0.56),
    inset 0 -7px 0 rgba(0, 0, 0, 0.07);
}

.map-stop strong,
.map-stop > span:not(.stop-icon) {
  display: block;
}

.map-stop strong {
  position: relative;
  z-index: 1;
  align-self: end;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.08;
  color: #21312c;
  -webkit-text-stroke: 0.3px rgba(255, 250, 241, 0.86);
  text-shadow: 1px 1px 0 rgba(255, 250, 241, 0.92);
}

.map-stop > span:not(.stop-icon) {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.stop-icon {
  position: relative;
  z-index: 1;
  display: block;
  align-self: start;
  width: 32px;
  height: 30px;
  margin-top: 3px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 0 #fffaf1) drop-shadow(2px 2px 0 rgba(255, 250, 241, 0.9));
}

.icon-magnify::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 4px solid #21312c;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.54);
}

.icon-magnify::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #21312c;
  transform: rotate(42deg);
}

.icon-card::before {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border: 3px solid #21312c;
  border-radius: 8px 12px 7px 10px;
  background: rgba(255, 250, 241, 0.72);
  transform: rotate(-7deg);
}

.icon-card::after {
  content: "?";
  position: absolute;
  left: 15px;
  top: 3px;
  color: #21312c;
  font-size: 23px;
  font-weight: 950;
}

.icon-garden::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 17px;
  border: 3px solid #21312c;
  border-radius: 6px 6px 12px 12px;
  background: #9fb77d;
}

.icon-garden::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  width: 15px;
  height: 24px;
  border-radius: 100% 0 100% 0;
  background: #355f4c;
  box-shadow: 9px 4px 0 #dfba67;
  transform: rotate(-28deg);
}

.icon-badge::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 29px;
  height: 29px;
  border: 3px solid #21312c;
  border-radius: 50%;
  background: #fff8df;
}

.icon-badge::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  width: 7px;
  height: 13px;
  border-radius: 100% 0 100% 0;
  background: #c79983;
  transform: rotate(-35deg);
  box-shadow: 8px 4px 0 #9fb77d;
}

.stop-search {
  left: 48%;
  top: 66%;
  --stop-color: #ffd86f;
  --tilt: -4deg;
  animation-delay: 120ms;
}

.stop-task {
  left: 60%;
  top: 63%;
  --stop-color: #8fd3df;
  --tilt: 5deg;
  animation-delay: 220ms;
  border-radius: 10px 24px 12px 22px / 24px 12px 22px 10px;
}

.stop-garden {
  left: 54%;
  bottom: 6%;
  --stop-color: #b9cf84;
  --tilt: 3deg;
  animation-delay: 320ms;
  border-radius: 18px 18px 8px 8px / 22px 24px 10px 10px;
}

.stop-badge {
  right: 4%;
  bottom: 12%;
  --stop-color: #e2a194;
  --tilt: -3deg;
  animation-delay: 420ms;
  border-radius: 50%;
}

.stop-search::after,
.stop-task::after,
.stop-garden::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 10px);
  z-index: -2;
  width: 12px;
  height: 64px;
  border: 2px solid #21312c;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 38%),
    #9b7352;
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.9),
    2px 3px 0 rgba(33, 49, 44, 0.18);
  transform: translateX(-50%);
}

.stop-task::after {
  height: 44px;
}

.stop-garden::after {
  height: 50px;
}

.stop-badge::after {
  content: "";
  position: absolute;
  inset: -11px;
  z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(from 8deg, #ffd86f 0 12deg, transparent 12deg 24deg);
  opacity: 0.78;
}

.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 14px;
  transform: rotate(-2deg);
  opacity: 1;
  mix-blend-mode: normal;
}

.photo-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-tile:nth-child(2),
.photo-tile:nth-child(5),
.photo-tile:nth-child(8) {
  transform: translateY(44px);
}

.photo-tile img,
.plant-card img,
.dialog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plant-card img {
  transition:
    filter 700ms var(--ease-out-soft),
    transform 700ms var(--ease-out-soft);
}

.plant-card:hover img,
.plant-card:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.025) rotate(-0.4deg);
}

.photo-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.control-band {
  position: sticky;
  top: 72px;
  z-index: 15;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 241, 0.88);
  border-block: 1px solid rgba(33, 49, 44, 0.08);
  backdrop-filter: blur(16px);
}

.search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.stat {
  display: grid;
  place-items: center;
  width: 104px;
  min-height: 58px;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--white);
}

.stat strong {
  font-size: 24px;
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.82);
}

.group-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px clamp(18px, 4vw, 54px) 8px;
  scrollbar-width: thin;
}

.group-chip {
  flex: 0 0 auto;
}

.group-chip.active {
  background: #ffd86f;
  border-color: #21312c;
  transform: rotate(-1deg);
}

.layout {
  align-items: flex-start;
  padding: 18px clamp(18px, 4vw, 54px) 46px;
}

.side-panel {
  position: sticky;
  top: 158px;
  width: 310px;
  flex: 0 0 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.panel-head h2,
.section-title h2,
.mission-copy h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.theme-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.theme-item {
  width: 100%;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
}

.theme-item strong,
.theme-item span {
  display: block;
}

.theme-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.plant-area {
  flex: 1;
  min-width: 0;
}

.section-title {
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title.compact {
  align-items: center;
  margin-bottom: 14px;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}

.plant-card {
  display: grid;
  overflow: hidden;
  min-height: 394px;
  border: 1px solid rgba(33, 49, 44, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(33, 49, 44, 0.07);
  cursor: pointer;
  transition:
    transform 420ms var(--ease-out-soft),
    box-shadow 420ms var(--ease-out-soft),
    border-color 420ms var(--ease-out-soft);
}

.plant-card:hover,
.plant-card:focus-visible {
  border-color: rgba(47, 107, 79, 0.42);
  box-shadow: 0 12px 34px rgba(33, 49, 44, 0.12);
  transform: translateY(-2px);
  outline: 0;
}

.plant-card figure {
  position: relative;
  height: 184px;
  margin: 0;
  background: linear-gradient(135deg, var(--sky), #f5e0b8);
}

.plant-card .tag,
.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4da;
  color: #3e5b2d;
  font-size: 12px;
  font-weight: 750;
}

.plant-card .tag {
  position: absolute;
  left: 10px;
  top: 10px;
}

.card-listen-button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(33, 49, 44, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(33, 49, 44, 0.12);
  cursor: pointer;
}

.card-listen-button.speaking {
  border-color: #a34b33;
  background: var(--clay);
  color: var(--white);
}

.plant-card-content {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.plant-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
}

.latin {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.plant-card p,
.mission-card p,
.mission-copy p,
.quiz-box p,
.notebook-list p,
.garden-copy p {
  margin: 0;
  color: #43534d;
  line-height: 1.55;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-self: end;
}

.card-actions button {
  min-height: 40px;
  border: 2px solid rgba(33, 49, 44, 0.16);
  border-radius: 14px 10px 16px 11px;
  background: #f9fbf3;
  color: var(--ink);
  cursor: pointer;
}

.card-actions .save-btn.saved {
  background: #f7e4e7;
  border-color: #d99ba5;
}

.garden-game {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  margin: 0 clamp(18px, 4vw, 54px) 70px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 8%, rgba(223, 186, 103, 0.16), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(92, 128, 106, 0.18), transparent 28%),
    linear-gradient(135deg, #171d19, #0d1110 66%, #090b0a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(20, 29, 25, 0.18);
  color: #fffaf1;
}

.garden-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.garden-copy h2 {
  margin: 0;
  color: #fff8e6;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.garden-copy p,
.garden-copy .eyebrow {
  color: rgba(255, 250, 241, 0.68);
}

.garden-toolbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.garden-tool {
  position: relative;
  display: grid;
  min-height: 86px;
  place-items: center;
  gap: 7px;
  padding: 10px 8px 9px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.04)),
    rgba(255, 250, 241, 0.05);
  color: #fff8e6;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.16);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.garden-tool::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 250, 241, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.garden-tool:hover,
.garden-tool:focus-visible {
  border-color: rgba(223, 186, 103, 0.56);
  outline: 0;
  transform: translateY(-2px);
}

.garden-tool:active {
  transform: translateY(0) scale(0.98);
}

.garden-tool.active {
  border-color: rgba(223, 186, 103, 0.86);
  background:
    radial-gradient(circle at 50% 18%, rgba(223, 186, 103, 0.28), transparent 40%),
    rgba(255, 250, 241, 0.1);
  box-shadow:
    0 0 0 3px rgba(223, 186, 103, 0.16),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.tool-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 38px;
}

.watering-can {
  width: 43px;
  height: 31px;
  margin-top: 5px;
  border: 3px solid #3e7780;
  border-radius: 10px 9px 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.34) 18px 22px, transparent 22px),
    #8fc8cf;
}

.watering-can::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 5px;
  width: 15px;
  height: 15px;
  border: 3px solid #3e7780;
  border-right: 0;
  border-radius: 12px 0 0 12px;
}

.watering-can::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 6px;
  width: 20px;
  height: 18px;
  border-top: 5px solid #3e7780;
  border-radius: 0 12px 0 0;
  transform: rotate(18deg);
}

.garden-tool.pouring .watering-can {
  animation: can-pour 900ms ease-in-out 2;
}

.garden-tool.pouring::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 34px;
  width: 24px;
  height: 34px;
  opacity: 0;
  background:
    radial-gradient(circle, #8fc8cf 0 3px, transparent 4px) 2px 2px / 12px 12px,
    radial-gradient(circle, #8fc8cf 0 3px, transparent 4px) 8px 8px / 13px 13px;
  animation: tool-water-drops 900ms linear 2;
  pointer-events: none;
}

.rake-icon {
  width: 46px;
  height: 40px;
}

.rake-icon::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: #9b7352;
  transform: rotate(36deg);
  transform-origin: bottom center;
}

.rake-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 2px;
  width: 36px;
  height: 13px;
  border-top: 5px solid #8c966d;
  background: repeating-linear-gradient(90deg, #8c966d 0 4px, transparent 4px 9px);
}

.hand-icon {
  width: 42px;
  height: 40px;
}

.hand-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 12px 12px 10px 10px;
  background: #ffd7ad;
  box-shadow:
    -7px -4px 0 -2px #ffd7ad,
    -2px -10px 0 -4px #ffd7ad,
    5px -11px 0 -4px #ffd7ad,
    12px -7px 0 -4px #ffd7ad;
}

.hand-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-radius: 999px;
  background: #8fc857;
  box-shadow: 5px 0 0 #8fc857, 10px 0 0 #8fc857;
}

.garden-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.garden-workbench {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(320px, 1fr);
  gap: 16px;
  min-width: 0;
}

.garden-palette-wrap,
.garden-board-wrap {
  min-width: 0;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.06);
}

.garden-palette-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 560px;
  overflow: hidden;
}

.garden-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.1);
}

.garden-panel-head span {
  color: rgba(255, 250, 241, 0.58);
  font-size: 12px;
}

.garden-palette {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
  padding: 12px;
}

.garden-plant-chip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 60px;
  padding: 7px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.08);
  color: #fff8e6;
  text-align: left;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.garden-plant-chip.active {
  border-color: rgba(223, 186, 103, 0.78);
  background: rgba(223, 186, 103, 0.14);
}

.garden-plant-chip:hover,
.garden-plant-chip:focus-visible {
  border-color: rgba(223, 186, 103, 0.5);
  outline: 0;
  transform: translateY(-1px);
}

.garden-plant-chip img {
  width: 48px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 250, 241, 0.14);
}

.garden-plant-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.garden-board-wrap {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 150px 18px 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(223, 186, 103, 0.72) 0 25px, transparent 26px),
    linear-gradient(180deg, #d8e7e8 0 24%, transparent 24%),
    linear-gradient(180deg, #dfe9d2 0, #bdca95 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 241, 0.08);
}

.garden-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background:
    radial-gradient(circle at 18% 34%, rgba(223, 186, 103, 0.86) 0 26px, transparent 27px),
    radial-gradient(ellipse at 68% 62%, rgba(255, 250, 241, 0.72) 0 32px, transparent 33px),
    linear-gradient(180deg, #cfdfe1, #edf4ee);
}

.garden-house {
  position: absolute;
  top: 34px;
  right: 44px;
  z-index: 4;
  width: 104px;
  height: 92px;
  pointer-events: none;
}

.house-roof {
  position: absolute;
  left: 6px;
  top: 0;
  width: 92px;
  height: 51px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    #c84942;
  clip-path: polygon(50% 0, 100% 72%, 0 72%);
  filter: drop-shadow(0 4px 0 rgba(97, 55, 38, 0.18));
}

.house-body {
  position: absolute;
  left: 19px;
  bottom: 0;
  width: 66px;
  height: 51px;
  border: 3px solid rgba(255, 250, 241, 0.9);
  border-radius: 8px 8px 6px 6px;
  background:
    linear-gradient(90deg, transparent 0 40px, #7d5742 40px 54px, transparent 54px),
    radial-gradient(circle at 19px 18px, #cfdfe1 0 7px, transparent 8px),
    #fff1d5;
  box-shadow: 0 10px 20px rgba(79, 76, 49, 0.16);
}

.garden-person {
  position: absolute;
  top: 106px;
  left: 56px;
  z-index: 4;
  width: 38px;
  height: 62px;
  pointer-events: none;
}

.person-head {
  position: absolute;
  left: 9px;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(33, 49, 44, 0.18);
  border-radius: 50%;
  background: #ffd9b0;
}

.person-body {
  position: absolute;
  left: 7px;
  top: 23px;
  width: 24px;
  height: 31px;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 4px, #21312c 4px 7px, transparent 7px 17px, #21312c 17px 20px, transparent 20px),
    #dfba67;
}

.garden-celebration {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  box-shadow:
    0 -32px 0 var(--sun),
    24px -22px 0 var(--rose),
    34px 0 0 #7fc7d8,
    23px 24px 0 #fffdf4,
    0 34px 0 #f08a5d,
    -24px 24px 0 #9bc16f,
    -34px 0 0 var(--sun),
    -23px -24px 0 #fffdf4;
}

.firework.f1 {
  top: 36px;
  left: 34%;
}

.firework.f2 {
  top: 56px;
  left: 58%;
}

.firework.f3 {
  top: 34px;
  right: 12%;
}

.garden-board-wrap.celebrating .firework {
  animation: firework-pop 950ms ease-out 3;
}

.garden-board-wrap.celebrating .firework.f2 {
  animation-delay: 160ms;
}

.garden-board-wrap.celebrating .firework.f3 {
  animation-delay: 320ms;
}

.garden-dog {
  position: absolute;
  top: 116px;
  right: 86px;
  width: 48px;
  height: 29px;
  border-radius: 18px 18px 12px 12px;
  opacity: 0;
  background:
    radial-gradient(circle at 40px 5px, #4f3524 0 4px, transparent 5px),
    radial-gradient(circle at 39px 13px, #21312c 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 5px, #4f3524 5px 9px, transparent 9px 33px, #4f3524 33px 37px, transparent 37px),
    #c98a58;
  box-shadow: -9px 9px 0 -5px #4f3524;
}

.garden-dog::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 8px;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: #c98a58;
  transform: rotate(-25deg);
}

.garden-board-wrap.celebrating .garden-dog {
  animation: dog-run 3.2s ease-in-out 1;
}

.garden-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 390px;
  padding: 14px;
  border: 12px solid #fffaf1;
  border-radius: 8px;
  box-shadow:
    0 18px 36px rgba(32, 47, 31, 0.2),
    0 0 0 3px rgba(70, 88, 50, 0.22),
    inset 0 0 0 2px rgba(80, 105, 54, 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 241, 0.96) 0 9px, transparent 9px 31px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    #889a60;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: 25% 33.33%;
}

.garden-cell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 116px;
  border: 1px dashed rgba(49, 70, 35, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 241, 0.18), transparent 28%),
    repeating-linear-gradient(155deg, rgba(96, 74, 45, 0.18) 0 4px, transparent 4px 12px),
    rgba(124, 145, 83, 0.88);
  color: var(--white);
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.garden-cell::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.garden-cell:hover,
.garden-cell:focus-visible {
  border-style: solid;
  border-color: rgba(223, 186, 103, 0.9);
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(44, 62, 35, 0.18);
}

.garden-cell:active {
  transform: translateY(0) scale(0.985);
}

.garden-cell.planted {
  border-style: solid;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 250, 241, 0.56), transparent 44%),
    rgba(222, 232, 207, 0.86);
}

.garden-cell.watering {
  border-color: #8fc8cf;
  box-shadow:
    inset 0 0 0 3px rgba(143, 200, 207, 0.24),
    0 10px 24px rgba(47, 107, 79, 0.18);
}

.garden-cell.watering::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 3;
  width: 37px;
  height: 25px;
  border: 3px solid #3e7780;
  border-radius: 10px 9px 8px 8px;
  background: #8fc8cf;
  transform: rotate(-18deg);
  animation: cell-can-pour 1.35s ease-in-out 1;
}

.garden-cell.watering::after {
  content: "";
  position: absolute;
  left: 52px;
  top: 26px;
  z-index: 3;
  width: 48px;
  height: 56px;
  opacity: 0;
  background:
    radial-gradient(circle, #8fc8cf 0 3px, transparent 4px) 0 0 / 14px 14px,
    radial-gradient(circle, #8fc8cf 0 3px, transparent 4px) 8px 7px / 16px 16px;
  animation: cell-water-drops 1.35s linear 1;
  pointer-events: none;
}

.garden-cell.watering img,
.garden-cell.raking img,
.garden-cell.bugging img {
  animation: plant-bounce 650ms ease-in-out 2;
}

.garden-cell.raking {
  border-color: #9b7352;
}

.cell-rake-effect,
.cell-bug-effect {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.cell-rake-effect::before,
.cell-rake-effect::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 28px;
  height: 34px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(98, 70, 36, 0.58) 0 3px, transparent 3px 9px),
    rgba(118, 86, 45, 0.24);
  transform: rotate(-8deg);
}

.cell-rake-effect::after {
  left: 12px;
  right: auto;
  bottom: 58px;
  width: 72px;
  height: 14px;
  border-top: 5px solid #8c966d;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #8c966d 0 4px, transparent 4px 10px);
  transform: rotate(-18deg);
}

.garden-cell.raking .cell-rake-effect {
  animation: cell-rake 1.35s ease-in-out 1;
}

.garden-cell.bugging {
  border-color: #9bb976;
}

.cell-bug-effect {
  display: grid;
  place-items: center;
}

.cell-bug-effect b {
  position: absolute;
  left: 42%;
  top: 34%;
  width: 42px;
  height: 13px;
  border-radius: 999px;
  background: #8fad68;
  box-shadow:
    9px 0 0 #b8c98c,
    18px 0 0 #8fad68,
    27px 0 0 #b8c98c;
}

.cell-bug-effect b::before {
  content: "";
  position: absolute;
  right: -1px;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.cell-bug-effect em {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  color: var(--leaf-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(33, 49, 44, 0.13);
}

.garden-cell.bugging .cell-bug-effect {
  animation: cell-bug-clean 1.45s ease-in-out 1;
}

.garden-cell img {
  width: min(92px, 82%);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(223, 186, 103, 0.18),
    0 12px 24px rgba(33, 49, 44, 0.2);
}

.garden-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(163, 75, 51, 0.26);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.94);
  color: #9d4b3c;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.garden-remove:hover,
.garden-remove:focus-visible {
  background: #f7e4e7;
  outline: 0;
}

.garden-cell span:not(.empty-plot) {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-meter {
  position: absolute;
  left: 7px;
  bottom: 38px;
  z-index: 2;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.88);
}

.care-meter i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(33, 49, 44, 0.18);
}

.care-meter i.filled {
  background: var(--sun);
}

.empty-plot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.72);
  color: #4d6534;
  font-size: 28px;
  font-weight: 700;
}

@keyframes plant-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@keyframes cell-can-pour {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  34%,
  78% {
    transform: rotate(-24deg) translateY(2px);
  }
}

@keyframes cell-water-drops {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes cell-rake {
  0% {
    opacity: 0;
    transform: translateX(-24px) rotate(-6deg);
  }
  22%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(32px) rotate(8deg);
  }
}

@keyframes cell-bug-clean {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  20%,
  68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.86);
  }
}

@keyframes badge-pop {
  0% {
    transform: translateY(14px) scale(0.86);
  }
  42% {
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes badge-award-card {
  0% {
    opacity: 0;
    transform: translateY(20px) rotate(-2deg) scale(0.9);
  }
  58% {
    opacity: 1;
    transform: translateY(-8px) rotate(1deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes cover-title-in {
  0% {
    opacity: 0;
    transform: translateY(16px) rotate(-4deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-2deg) scale(1);
  }
}

@keyframes map-stop-in {
  0% {
    opacity: 0;
    transform: translateY(18px) rotate(calc(var(--tilt, 0deg) - 4deg)) scale(0.92);
  }
  72% {
    opacity: 1;
    transform: translateY(-3px) rotate(var(--tilt, 0deg)) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
  }
}

@keyframes can-pour {
  0%,
  100% {
    transform: rotate(0);
  }
  38%,
  72% {
    transform: rotate(-18deg) translateY(1px);
  }
}

@keyframes tool-water-drops {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  28%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes firework-pop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  28% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes dog-run {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) scale(0.82);
  }
  12% {
    opacity: 1;
  }
  48% {
    opacity: 1;
    transform: translateX(-150px) translateY(18px) scale(1);
  }
  82% {
    opacity: 1;
    transform: translateX(-238px) translateY(42px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-270px) translateY(42px) scale(0.92);
  }
}

.mission-band {
  align-items: stretch;
  justify-content: space-between;
  margin: 16px clamp(18px, 4vw, 54px) 38px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(47, 107, 79, 0.95), rgba(36, 82, 98, 0.92)),
    var(--leaf);
  color: var(--white);
}

.badge-wall {
  position: relative;
  overflow: hidden;
  margin: 0 clamp(18px, 4vw, 54px) 76px;
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid rgba(255, 250, 241, 0.18);
  border-radius: 18px 22px 16px 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 216, 111, 0.22), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(143, 211, 223, 0.2), transparent 30%),
    linear-gradient(135deg, #203026, #101711 58%, #0b0f0c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 60px rgba(23, 35, 30, 0.18);
  color: #fffaf1;
}

.badge-wall::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 250, 241, 0.1);
  border-radius: 14px 18px 12px 20px;
  pointer-events: none;
}

.badge-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.badge-wall > * {
  position: relative;
  z-index: 1;
}

.badge-wall .section-title h2 {
  color: #fffaf1;
}

.badge-wall .eyebrow {
  color: rgba(255, 250, 241, 0.68);
}

.badge-progress {
  min-width: 108px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.1);
  color: #fff8df;
  font-weight: 850;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.badge-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  margin: 18px 0 12px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(222, 203, 160, 0.88)),
    #f5e7c3;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.badge-rank div {
  display: grid;
  gap: 4px;
}

.badge-rank span {
  color: #725332;
  font-size: 12px;
  font-weight: 850;
}

.badge-rank strong {
  color: #3f2d19;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.badge-rank p {
  margin: 0;
  color: #5e4324;
  font-size: 17px;
  font-weight: 850;
}

.badge-rank meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 12px;
}

.badge-rank meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(94, 67, 36, 0.16);
}

.badge-rank meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #355f4c, #93a978 62%, #dfba67);
}

.badge-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.badge-level {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.1);
  opacity: 0.82;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge-level.done {
  border-color: rgba(223, 186, 103, 0.62);
  background: rgba(255, 241, 189, 0.14);
  opacity: 1;
}

.badge-level strong,
.badge-level span {
  display: block;
}

.badge-level span {
  margin-top: 6px;
  color: rgba(255, 250, 241, 0.7);
  font-size: 13px;
}

.badge-grid {
  display: block;
}

.badge-frame-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(760px, calc(100% - 26px));
  margin: 28px auto 0;
  padding: 15px 20px 16px;
  border: 2px solid rgba(49, 34, 19, 0.72);
  border-radius: 18px 12px 20px 14px / 15px 20px 13px 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 218, 0.2), transparent 52%),
    linear-gradient(90deg, rgba(78, 49, 22, 0.12) 0 6px, transparent 6px 18px),
    #caa56a;
  box-shadow:
    0 0 0 6px rgba(255, 250, 241, 0.9),
    8px 10px 0 rgba(0, 0, 0, 0.16),
    inset 0 -8px 0 rgba(76, 48, 22, 0.08);
  transform: rotate(-0.7deg);
  isolation: isolate;
}

.badge-frame-head::before,
.badge-frame-head::after {
  content: "";
  position: absolute;
  top: calc(100% - 8px);
  z-index: -1;
  width: 14px;
  height: 58px;
  border: 2px solid rgba(49, 34, 19, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 42%),
    #8f6541;
  box-shadow:
    0 0 0 4px rgba(255, 250, 241, 0.74),
    3px 5px 0 rgba(0, 0, 0, 0.12);
}

.badge-frame-head::before {
  left: 18%;
  transform: rotate(2deg);
}

.badge-frame-head::after {
  right: 18%;
  transform: rotate(-2deg);
}

.badge-frame-head strong,
.badge-frame-head span {
  display: block;
}

.badge-frame-head strong {
  color: #2f2518;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  -webkit-text-stroke: 0.25px rgba(255, 250, 241, 0.8);
  text-shadow: 1px 1px 0 rgba(255, 250, 241, 0.68);
}

.badge-frame-head span {
  margin-top: 5px;
  color: rgba(47, 37, 24, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.badge-pager {
  display: inline-flex;
  gap: 8px;
}

.badge-pager button {
  min-height: 38px;
  border: 2px solid rgba(47, 37, 24, 0.68);
  border-radius: 16px 10px 15px 11px;
  padding: 8px 13px;
  background: #fff2bf;
  color: #2f2518;
  font-weight: 850;
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.7),
    3px 4px 0 rgba(47, 37, 24, 0.16);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.badge-pager button:hover,
.badge-pager button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(255, 250, 241, 0.8),
    4px 6px 0 rgba(47, 37, 24, 0.14);
}

.badge-pager button:disabled {
  cursor: default;
  opacity: 0.42;
}

.badge-grid-window {
  max-height: min(78vh, 780px);
  overflow: auto;
  margin-top: 30px;
  padding: 18px;
  border: 2px solid rgba(255, 250, 241, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 241, 0.05) 1px, transparent 1px),
    rgba(0, 0, 0, 0.24);
  background-size: 44px 44px;
  overscroll-behavior: contain;
}

.badge-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.plant-badge {
  --badge-accent: #6fa24f;
  --badge-accent-deep: #2f6b4f;
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 7px;
  min-height: 252px;
  padding: 12px;
  overflow: hidden;
  border: 2px solid rgba(55, 39, 20, 0.82);
  border-radius: 12px 9px 14px 10px;
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 250, 226, 0.58), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px),
    #bea066;
  background-size: auto, auto, 16px 16px, 16px 16px, auto;
  box-shadow:
    4px 6px 0 rgba(0, 0, 0, 0.14),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #302417;
  isolation: isolate;
  transition:
    transform 420ms var(--ease-out-soft),
    box-shadow 420ms var(--ease-out-soft),
    border-color 420ms var(--ease-out-soft);
}

.plant-badge:hover {
  border-color: color-mix(in srgb, var(--badge-accent) 58%, rgba(55, 39, 20, 0.76));
  transform: translateY(-3px);
  box-shadow:
    6px 8px 0 rgba(0, 0, 0, 0.14),
    0 20px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.badge-tone-rose {
  --badge-accent: #bf7a86;
  --badge-accent-deep: #7f4250;
}

.badge-tone-azalea {
  --badge-accent: #c07b9b;
  --badge-accent-deep: #74435c;
}

.badge-tone-leaf {
  --badge-accent: #7ca06b;
  --badge-accent-deep: #355f4c;
}

.badge-tone-bulb {
  --badge-accent: #858fba;
  --badge-accent-deep: #4a537c;
}

.badge-tone-fruit {
  --badge-accent: #c77c5f;
  --badge-accent-deep: #7d4a39;
}

.badge-tone-vine {
  --badge-accent: #7e8f4b;
  --badge-accent-deep: #4f6130;
}

.badge-tone-herb {
  --badge-accent: #91aa72;
  --badge-accent-deep: #506f3f;
}

.plant-badge::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(48, 36, 23, 0.22);
  border-radius: 8px 6px 10px 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 212, 0.18);
  pointer-events: none;
}

.plant-badge::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px;
  height: 68px;
  background:
    radial-gradient(circle at 20% 50%, var(--badge-accent) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, var(--badge-accent-deep) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 50%, var(--badge-accent) 0 8px, transparent 9px);
  opacity: 0.22;
  pointer-events: none;
}

.badge-card-head,
.badge-card-type {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge-card-head strong {
  font-size: 16px;
  color: var(--badge-accent-deep);
}

.badge-card-type {
  border-top: 1px solid rgba(48, 36, 23, 0.38);
  padding-top: 3px;
  color: rgba(48, 36, 23, 0.72);
}

.badge-window {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  margin: 3px 6px 0;
  overflow: visible;
  border: 2px solid rgba(48, 36, 23, 0.22);
  border-radius: 35% 65% 42% 58% / 58% 44% 56% 42%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.48), transparent 57%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 47%, rgba(255, 250, 226, 0.52) 48% 54%, transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
    color-mix(in srgb, var(--badge-accent) 34%, #c4a06a);
  box-shadow:
    inset 0 8px 22px rgba(43, 31, 19, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 6px rgba(255, 246, 212, 0.28);
}

.badge-window::before,
.badge-window::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.badge-window::before {
  width: 122px;
  height: 122px;
  border: 8px double rgba(255, 246, 212, 0.88);
  box-shadow:
    0 0 0 3px rgba(61, 44, 22, 0.2),
    inset 0 0 0 2px rgba(61, 44, 22, 0.15);
}

.badge-window::after {
  width: 148px;
  height: 148px;
  border: 1px dashed rgba(48, 36, 23, 0.28);
  transform: rotate(8deg);
}

.badge-leafmark {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 34px;
  height: 22px;
  border-radius: 100% 0 100% 0;
  background: var(--badge-accent-deep);
  opacity: 0.28;
  transform: rotate(-24deg);
}

.badge-leafmark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 1px;
  height: 24px;
  background: rgba(255, 246, 212, 0.72);
  transform: rotate(42deg);
}

.badge-window img {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  border: 4px solid #fff1bd;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.32) contrast(1.1) drop-shadow(0 8px 10px rgba(43, 31, 19, 0.28));
  box-shadow:
    0 0 0 2px var(--badge-accent-deep),
    0 0 0 10px rgba(255, 246, 212, 0.28);
  transform: translateY(-3px);
}

.badge-card-name {
  overflow: hidden;
  min-height: 22px;
  margin: 0 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: linear-gradient(180deg, var(--badge-accent-deep), color-mix(in srgb, var(--badge-accent-deep) 82%, #1b130b));
  color: #fff7dd;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 12px rgba(54, 39, 21, 0.18);
}

.badge-card-foot {
  border-top: 1px solid rgba(48, 36, 23, 0.34);
  padding-top: 3px;
  color: #46351f;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.plant-badge.locked {
  filter: grayscale(0.28);
  opacity: 0.72;
}

.plant-badge.locked .badge-window {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 36%),
    #987847;
}

.plant-badge.newly-unlocked {
  border-color: var(--badge-accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--badge-accent) 40%, transparent),
    0 0 42px color-mix(in srgb, var(--badge-accent) 28%, transparent),
    0 18px 38px rgba(0, 0, 0, 0.28);
  animation: badge-pop 1.35s ease-out 1;
}

.badge-toast {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(243, 197, 96, 0.24), transparent 26%),
    rgba(8, 18, 13, 0.46);
  backdrop-filter: blur(3px);
  transform: scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.badge-toast.show {
  opacity: 1;
  transform: scale(1);
}

.badge-toast-card {
  display: grid;
  gap: 10px;
  width: min(270px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(238, 218, 165, 0.96)),
    #fff3ca;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  animation: badge-award-card 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 1;
}

.badge-toast-card > span {
  color: #5e4324;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-toast .plant-badge {
  min-height: 214px;
  animation: badge-pop 1.2s ease-out 1;
  box-shadow:
    0 0 0 4px rgba(243, 197, 96, 0.38),
    0 20px 42px rgba(49, 36, 20, 0.28);
}

.install-tip {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 28px));
  padding: 12px 12px 12px 16px;
  border: 2px solid rgba(33, 49, 44, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 18px 48px rgba(33, 49, 44, 0.18);
  backdrop-filter: blur(14px);
}

.install-tip[hidden] {
  display: none;
}

.install-tip strong,
.install-tip span {
  display: block;
}

.install-tip strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.install-tip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.install-tip button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
  padding: 0 14px;
}

.install-tip .icon-only {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 2px solid rgba(33, 49, 44, 0.14);
  background: #fffaf1;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 560px) {
  .install-tip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .install-tip .icon-only {
    grid-column: 2;
    grid-row: 1;
  }

  .install-tip #installAppBtn {
    grid-column: 1 / -1;
  }
}

.locked-pot {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 72px;
}

.locked-pot span {
  position: absolute;
  left: 15px;
  bottom: 5px;
  width: 44px;
  height: 34px;
  border: 3px solid #80552f;
  border-radius: 5px 5px 12px 12px;
  background: #dc8644;
  transform: perspective(60px) rotateX(-8deg);
}

.locked-pot span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -9px;
  width: 60px;
  height: 12px;
  border: 3px solid #80552f;
  border-radius: 999px;
  background: #e99a52;
}

.locked-pot b {
  position: absolute;
  left: 10px;
  top: 2px;
  display: grid;
  width: 54px;
  height: 34px;
  place-items: center;
  border: 2px solid #80552f;
  border-radius: 50%;
  background: #ead8a8;
  color: #80552f;
  font-size: 20px;
}

.mission-copy {
  max-width: 520px;
}

.mission-copy .eyebrow,
.mission-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.mission-card {
  width: min(460px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.mission-card h3 {
  margin: 12px 0 8px;
  font-size: 25px;
}

.mission-card .primary {
  margin-top: 18px;
}

.activity-grid {
  align-items: stretch;
  padding: 0 clamp(18px, 4vw, 54px) 70px;
}

.quiz-panel,
.notebook {
  flex: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.quiz-read-button {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 2px solid rgba(33, 49, 44, 0.16);
  border-radius: 16px 12px 18px 11px;
  background: #f9fbf3;
  color: var(--ink);
  text-align: left;
}

.quiz-read-button small {
  color: var(--muted);
  font-size: 12px;
}

.quiz-options button {
  min-height: 48px;
  border: 2px solid rgba(33, 49, 44, 0.16);
  border-radius: 16px 12px 18px 10px;
  background: var(--white);
  color: var(--ink);
}

.quiz-options button.correct {
  border-color: var(--leaf);
  background: #e8f1dc;
}

.quiz-options button.wrong {
  border-color: var(--rose);
  background: #f8e4e5;
}

.notebook-list {
  display: grid;
  gap: 10px;
}

.note-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.note-item img {
  width: 56px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--sky);
}

.note-item strong,
.note-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-item small {
  color: var(--muted);
}

dialog {
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(20, 28, 25, 0.46);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.dialog-image-wrap {
  min-height: 520px;
  background: var(--sky);
}

.dialog-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px;
}

.speech-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce5c7;
  border-radius: 8px;
  background: #f6faec;
}

.listen-button {
  min-height: 42px;
  border: 2px solid var(--leaf-dark);
  border-radius: 999px 22px 999px 24px;
  padding: 10px 15px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 750;
}

.listen-button.speaking {
  border-color: #a34b33;
  background: var(--clay);
}

.speech-controls span {
  color: var(--muted);
  font-size: 13px;
}

.fact-grid {
  display: grid;
  gap: 10px;
}

.fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.fact strong {
  display: block;
  margin-bottom: 4px;
}

.empty {
  min-height: 220px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.coloring-band {
  margin: 0 clamp(18px, 4vw, 54px) 76px;
  padding-top: 18px;
}

.coloring-intro {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 18px;
}

.coloring-intro h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.coloring-intro p {
  margin: 0;
  color: #43534d;
  font-size: 18px;
  line-height: 1.55;
}

.coloring-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
}

.coloring-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
}

.coloring-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.coloring-filter {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(33, 49, 44, 0.14);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.coloring-filter.active {
  background: var(--sun);
  border-color: #d39f25;
}

.coloring-summary {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.coloring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.coloring-card {
  display: grid;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(33, 49, 44, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(33, 49, 44, 0.07);
}

.coloring-preview {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(33, 49, 44, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(33, 49, 44, 0.05) 1px, transparent 1px),
    #fffdf8;
  background-size: 18px 18px;
}

.coloring-preview svg {
  width: min(100%, 238px);
  height: auto;
}

.coloring-meta {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px;
}

.coloring-meta span {
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4da;
  color: #3e5b2d;
  font-size: 12px;
  font-weight: 750;
}

.coloring-meta h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.14;
}

.coloring-meta p {
  margin: 0;
  color: #43534d;
  line-height: 1.55;
}

.coloring-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-self: end;
}

.coloring-card-actions button {
  min-height: 42px;
  border: 2px solid rgba(33, 49, 44, 0.16);
  border-radius: 14px 10px 16px 11px;
  background: #f9fbf3;
  color: var(--ink);
}

.coloring-card-actions button.saved {
  background: #f7e4e7;
  border-color: #d99ba5;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .mission-band,
  .activity-grid,
  .dialog-layout,
  .garden-game,
  .garden-workbench {
    grid-template-columns: 1fr;
  }

  .badge-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .mission-band,
  .activity-grid,
  .layout {
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    width: auto;
    margin: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .side-panel {
    position: static;
    width: 100%;
    flex-basis: auto;
  }

  .theme-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-image-wrap {
    min-height: 320px;
  }

  .garden-palette-wrap {
    max-height: none;
  }

  .garden-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 230px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 112px;
  }

  nav {
    justify-content: flex-start;
  }

  .control-band {
    top: 136px;
    flex-direction: column;
    align-items: stretch;
  }

  .stat {
    width: 100%;
  }

  .hero h1 {
    font-size: 44px;
  }

  .lead {
    max-width: 270px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 18px;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .photo-ribbon,
  .theme-list,
  .quiz-options,
  .badge-levels,
  .coloring-grid,
  .garden-palette {
    grid-template-columns: 1fr;
  }

  .badge-frame-head {
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 18px);
    padding: 14px;
  }

  .badge-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-rank {
    grid-template-columns: 1fr;
  }

  .garden-game {
    padding: 20px;
  }

  .garden-board-wrap {
    min-height: 440px;
    padding: 132px 10px 14px;
  }

  .garden-house {
    top: 34px;
    right: 24px;
    transform: scale(0.84);
    transform-origin: top right;
  }

  .garden-person {
    top: 96px;
    left: 24px;
    transform: scale(0.86);
    transform-origin: top left;
  }

  .garden-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 340px;
    padding: 10px;
    background-size: 33.33% 25%;
  }

  .garden-cell {
    min-height: 96px;
  }

  .coloring-actions {
    grid-template-columns: 1fr;
  }

  .coloring-bulk-actions {
    justify-content: flex-start;
  }

  .photo-tile:nth-child(n) {
    transform: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Reference direction: Fubiz editorial image scale + Awwwards award wall + MUUUUU index clarity. */
:root {
  --paper: #f3f0e8;
  --ink: #11130f;
  --muted: #6e7068;
  --line: #191b16;
  --leaf: #405f45;
  --leaf-dark: #11130f;
  --moss: #a6b37a;
  --sky: #c8dadd;
  --rose: #c9868d;
  --sun: #d7b959;
  --clay: #b0654f;
  --gallery: #0f120f;
  --gallery-soft: #181b17;
  --white: #fffdf4;
  --shadow: 0 22px 60px rgba(17, 19, 15, 0.16);
  --font-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  scroll-padding-top: 92px;
}

body {
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #10120f 0 760px, var(--paper) 760px);
  color: var(--ink);
}

button {
  box-shadow: none;
}

.topbar {
  min-height: 74px;
  padding: 12px clamp(16px, 3.6vw, 52px);
  border-bottom: 1px solid rgba(255, 253, 244, 0.18);
  background: rgba(16, 18, 15, 0.86);
  color: var(--white);
}

.brand,
nav a {
  color: var(--white);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 244, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 30%, #d7b959 0 8px, transparent 9px),
    radial-gradient(circle at 35% 65%, #c9868d 0 10px, transparent 11px),
    #f6f0d8;
  box-shadow: none;
  color: #11130f;
  transform: none;
}

.brand strong {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.topbar .brand small {
  color: rgba(255, 253, 244, 0.58);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  gap: 0;
  border: 1px solid rgba(255, 253, 244, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

nav a {
  min-height: 38px;
  border: 0;
  border-left: 1px solid rgba(255, 253, 244, 0.14);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 253, 244, 0.78);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

nav a:first-child {
  border-left: 0;
}

nav a:hover,
nav a:focus-visible {
  background: var(--white);
  color: var(--ink);
  transform: none;
}

main {
  width: 100%;
}

.hero {
  position: relative;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(22px, 4vw, 58px);
  min-height: calc(100dvh - 74px);
  padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 64px) clamp(26px, 4vw, 54px);
  background:
    radial-gradient(circle at 8% 18%, rgba(215, 185, 89, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(201, 134, 141, 0.18), transparent 23%),
    #10120f;
  color: var(--white);
}

.hero::before {
  content: "PLANT VISUAL INDEX";
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: 18px;
  color: rgba(255, 253, 244, 0.28);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero-copy {
  align-self: end;
  padding-bottom: 34px;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 142px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero .eyebrow,
.eyebrow {
  color: rgba(255, 253, 244, 0.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 600px;
  color: rgba(255, 253, 244, 0.74);
  font-size: clamp(17px, 1.8vw, 23px);
}

.hero-actions {
  gap: 10px;
}

nav a,
.group-chip,
.small-button,
.secondary,
.primary {
  border-radius: 999px;
  box-shadow: none;
  transform: none;
}

.primary {
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--ink);
}

.secondary,
.small-button {
  border: 1px solid rgba(255, 253, 244, 0.28);
  background: transparent;
  color: var(--white);
}

.hero-actions .secondary:hover,
.hero-actions .primary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  min-height: min(62vw, 680px);
  align-self: stretch;
}

.photo-ribbon {
  height: 100%;
  display: grid;
  grid-template-columns: 1.38fr 0.82fr 0.82fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
  transform: none;
}

.photo-tile {
  min-height: 0;
  border: 1px solid rgba(255, 253, 244, 0.18);
  border-radius: 0;
  background: #20241e;
  box-shadow: none;
  filter: saturate(0.92);
}

.photo-tile.feature-tile {
  grid-row: span 3;
}

.photo-tile:nth-child(2),
.photo-tile:nth-child(5),
.photo-tile:nth-child(8) {
  transform: none;
}

.photo-tile img {
  transition:
    transform 900ms var(--ease-out-soft),
    filter 900ms var(--ease-out-soft);
}

.photo-tile:hover img,
.photo-tile:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.04);
}

.photo-tile span {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: none;
  padding: 9px 10px;
  border: 1px solid rgba(255, 253, 244, 0.26);
  border-radius: 0;
  background: rgba(16, 18, 15, 0.68);
  color: var(--white);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.photo-tile span small {
  color: rgba(255, 253, 244, 0.56);
  font-size: 11px;
}

.editorial-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--white);
}

.editorial-board article {
  min-height: 164px;
  padding: clamp(18px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.editorial-board article:last-child {
  border-right: 0;
}

.editorial-board span,
.card-meta,
.badge-frame-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-board strong {
  display: block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.92;
}

.editorial-board p {
  max-width: 28ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.control-band {
  top: 74px;
  padding: 14px clamp(16px, 4vw, 64px);
  border-block: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.94);
}

.search {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.search span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.stat {
  width: 118px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
}

.group-strip {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-left: 1px solid rgba(17, 19, 15, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.group-chip:last-child {
  border-right: 1px solid rgba(17, 19, 15, 0.2);
}

.group-chip b {
  color: var(--muted);
  font-size: 11px;
}

.group-chip.active {
  background: var(--ink);
  color: var(--white);
  transform: none;
}

.group-chip.active b {
  color: rgba(255, 253, 244, 0.62);
}

.layout {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px) 62px;
  background: var(--paper);
}

.side-panel {
  top: 142px;
  width: 330px;
  flex-basis: 330px;
  padding: 26px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.panel-head h2,
.section-title h2,
.mission-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 950;
  line-height: 0.92;
}

.theme-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.theme-item {
  position: relative;
  min-height: 102px;
  padding: 16px 54px 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 15, 0.24);
  border-radius: 0;
  background: transparent;
}

.theme-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.theme-item strong {
  margin-top: 8px;
  font-size: 20px;
}

.theme-item b {
  position: absolute;
  right: 0;
  top: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}

.plant-area {
  padding: 28px 0 0 clamp(18px, 3vw, 34px);
}

.section-title {
  min-height: 104px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plant-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.plant-card {
  min-height: 442px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.plant-card:hover,
.plant-card:focus-visible {
  border-color: var(--line);
  box-shadow: inset 0 0 0 6px rgba(64, 95, 69, 0.12);
  transform: none;
}

.plant-card figure {
  height: 236px;
  background: #d8d2c4;
}

.plant-card .tag,
.pill {
  min-height: 25px;
  border: 1px solid rgba(17, 19, 15, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.88);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.card-listen-button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(17, 19, 15, 0.36);
  border-radius: 50%;
  background: rgba(255, 253, 244, 0.92);
  box-shadow: none;
}

.plant-card-content {
  gap: 12px;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 19, 15, 0.16);
  padding-bottom: 10px;
}

.plant-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 950;
  line-height: 0.96;
}

.latin {
  margin-top: 7px;
  font-size: 12px;
}

.plant-card p,
.mission-card p,
.mission-copy p,
.quiz-box p,
.notebook-list p,
.garden-copy p {
  color: #51554d;
  font-size: 14px;
}

.card-actions {
  grid-template-columns: 1fr 0.76fr;
}

.card-actions button {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.card-actions button:hover {
  background: var(--ink);
  color: var(--white);
}

.card-actions .save-btn.saved {
  background: #f1dedb;
  border-color: var(--line);
}

.mission-band,
.activity-grid,
.garden-game,
.badge-wall {
  margin: 0;
  border-radius: 0;
}

.mission-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 1fr);
  padding: clamp(32px, 6vw, 84px) clamp(16px, 4vw, 64px);
  border-block: 1px solid var(--line);
  background: #11130f;
  color: var(--white);
}

.mission-copy p,
.mission-copy .eyebrow {
  color: rgba(255, 253, 244, 0.64);
}

.mission-card {
  border: 1px solid rgba(255, 253, 244, 0.24);
  border-radius: 0;
  background: #f3f0e8;
  color: var(--ink);
}

.mission-card .primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.activity-grid {
  gap: 0;
  padding: 0 clamp(16px, 4vw, 64px);
  background: var(--paper);
}

.quiz-panel,
.notebook {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.notebook {
  border-right: 0;
}

.quiz-read-button,
.quiz-options button,
.notebook-item,
.garden-plant-chip {
  border-radius: 0;
}

.garden-game {
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  padding: clamp(34px, 5vw, 74px) clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    #12140f;
}

.garden-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
}

.garden-tool,
.garden-palette-wrap,
.garden-board-wrap {
  border-radius: 0;
}

.badge-wall {
  padding: clamp(34px, 5vw, 72px) clamp(16px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #0f120f;
  color: var(--white);
}

.badge-wall .section-title {
  border-color: rgba(255, 253, 244, 0.18);
}

.badge-wall .eyebrow,
.badge-rank p,
.badge-frame-head span {
  color: rgba(255, 253, 244, 0.56);
}

.badge-progress,
.badge-rank,
.badge-level,
.badge-frame-head,
.badge-grid-window {
  border-radius: 0;
}

.badge-frame-head,
.badge-grid-window,
.badge-rank,
.badge-level {
  background: rgba(255, 253, 244, 0.045);
}

.badge-pager button,
.badge-progress {
  border-radius: 999px;
}

dialog {
  border-radius: 0;
}

.dialog-close {
  border-radius: 50%;
}

@media (max-width: 980px) {
  body {
    background: linear-gradient(180deg, #10120f 0 650px, var(--paper) 650px);
  }

  nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 540px;
  }

  .layout,
  .mission-band,
  .garden-game {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plant-area {
    padding-left: 0;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .quiz-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .topbar {
    background: #10120f;
  }

  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 76px);
  }

  .photo-ribbon {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px repeat(4, 132px);
  }

  .photo-tile.feature-tile {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .editorial-board {
    grid-template-columns: 1fr;
  }

  .editorial-board article {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-band {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .stat {
    width: 100%;
  }

  .plant-grid {
    grid-template-columns: 1fr;
  }
}
