:root {
  --paper: #f8f4e8;
  --paper-2: #fffdf7;
  --ink: #153d2e;
  --ink-soft: #587066;
  --forest: #19533c;
  --forest-2: #24684a;
  --moss: #688e58;
  --sage: #c9dda9;
  --sage-pale: #e9f0d9;
  --wheat: #d9a849;
  --wheat-pale: #f5dfad;
  --rust: #c96f38;
  --sky: #c8e4db;
  --line: rgba(31, 79, 56, 0.14);
  --shadow-soft: 0 16px 45px rgba(32, 65, 43, 0.09);
  --shadow-card: 0 20px 34px rgba(43, 76, 48, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(212, 223, 180, 0.72), transparent 25rem),
    radial-gradient(circle at 94% 78%, rgba(231, 203, 147, 0.58), transparent 28rem),
    #e9eee2;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(210, 159, 62, 0.48);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(77, 117, 75, 0.16);
  border-radius: 52% 48% 64% 36%;
  pointer-events: none;
}

.ambient-one {
  top: -210px;
  left: -160px;
  transform: rotate(28deg);
}

.ambient-two {
  right: -220px;
  bottom: -130px;
  transform: rotate(-32deg);
}

.app-shell {
  width: min(calc(100% - 36px), 1120px);
  min-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.82), rgba(255, 253, 247, 0.82)),
    repeating-linear-gradient(110deg, rgba(81, 104, 69, 0.025) 0 1px, transparent 1px 9px);
  box-shadow: 0 25px 75px rgba(35, 64, 43, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 13px clamp(20px, 4vw, 46px);
  border-bottom: 1px solid rgba(34, 82, 59, 0.08);
  background: rgba(255, 253, 247, 0.87);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(48, 93, 53, 0.17);
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(145deg, #e7efc7, #c6dca2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--forest);
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 23px;
}

.progress-wrap {
  width: 164px;
  text-align: right;
}

.progress-label {
  color: #687c71;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.progress-label b {
  margin-right: 1px;
  color: var(--forest);
  font-size: 17px;
}

.progress-track {
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 100px;
  background: #e1e7da;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wheat), #edc66d);
  box-shadow: 0 0 12px rgba(218, 166, 71, 0.5);
  transition: width 0.65s var(--ease);
}

.view {
  display: none;
  min-height: calc(100vh - 112px);
  padding: clamp(28px, 5vw, 58px) clamp(20px, 5vw, 58px) clamp(52px, 7vw, 80px);
}

.view.active {
  display: block;
}

.view.view-entering > * {
  animation: content-in 0.62s var(--ease) both;
}

.view.view-entering > *:nth-child(2) {
  animation-delay: 0.08s;
}

.view.view-entering > *:nth-child(3) {
  animation-delay: 0.14s;
}

.view.view-leaving {
  animation: content-out 0.25s ease both;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes content-out {
  to {
    opacity: 0;
    transform: translateY(-9px) scale(0.99);
  }
}

::view-transition-group(root) {
  animation-duration: 0.58s;
  animation-timing-function: var(--ease);
}

::view-transition-old(root) {
  animation: refined-page-out 0.34s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: refined-page-in 0.58s var(--ease) both;
}

@keyframes refined-page-out {
  to {
    opacity: 0;
    filter: blur(3px);
    transform: scale(0.992) translateY(-8px);
  }
}

@keyframes refined-page-in {
  from {
    opacity: 0;
    filter: blur(5px);
    clip-path: inset(2.5% 1.5% 2.5% 1.5% round 28px);
    transform: scale(1.012) translateY(13px);
  }
  to {
    opacity: 1;
    filter: none;
    clip-path: inset(0 round 0);
    transform: none;
  }
}

.hero {
  position: relative;
  display: flex;
  min-height: 354px;
  overflow: hidden;
  border: 1px solid rgba(57, 100, 51, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(105deg, rgba(235, 239, 205, 0.98) 0%, rgba(207, 225, 174, 0.96) 63%, rgba(174, 205, 146, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(rgba(30, 72, 46, 0.12) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 60%;
  padding: 46px clamp(28px, 5vw, 58px);
}

.eyebrow,
.section-pill {
  margin: 0;
  color: #567b58;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 25px;
  height: 1px;
  margin: 0 8px 3px 0;
  background: currentColor;
}

.hero h1,
.reward-view h2 {
  margin: 14px 0 13px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 61px);
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.hero h1 em,
.reward-view h2 em {
  color: var(--rust);
  font-family: "ZCOOL KuaiLe", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin: 0;
  color: #4d6a59;
  font-size: 14px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  color: #627766;
  font-size: 11px;
  font-weight: 600;
}

.hero-meta span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.hero-meta b {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 21px;
}

.field-art {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 0;
  width: 330px;
  height: 290px;
}

.field-art > span {
  position: absolute;
  top: 0;
  right: 13px;
  font-size: 45px;
  color: var(--wheat);
  animation: sun-float 4s ease-in-out infinite;
}

@keyframes sun-float {
  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

.field-art i {
  position: absolute;
  bottom: -86px;
  width: 235px;
  height: 240px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-13deg);
  background: #7eac63;
}

.field-art i:nth-of-type(1) {
  right: -74px;
  background: #91bd73;
}

.field-art i:nth-of-type(2) {
  right: 106px;
  bottom: -140px;
  background: #6d9b55;
}

.field-art i:nth-of-type(3) {
  right: -5px;
  bottom: -176px;
  background: #538545;
}

.field-art b {
  position: absolute;
  right: 98px;
  bottom: 56px;
  font-size: 109px;
  filter: drop-shadow(0 9px 0 rgba(52, 103, 54, 0.12));
  transform: rotate(2deg);
}

.section-lead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 3px 17px;
}

.section-lead span {
  color: var(--wheat);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section-lead h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.section-lead p {
  margin: 0 0 2px;
  color: #74877c;
  font-size: 11px;
}

.museum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.museum-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 23px;
  text-align: left;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s;
}

.museum-card::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -60px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: transform 0.45s var(--ease);
}

.museum-card:hover {
  z-index: 2;
  transform: translateY(-7px) rotate(-0.3deg);
  box-shadow: var(--shadow-card);
}

.museum-card:hover::after {
  transform: scale(1.24);
}

.museum-card.history {
  background: linear-gradient(145deg, #f4dda7, #eac479);
}

.museum-card.soil {
  background: linear-gradient(145deg, #dbe9c4, #b9d39a);
}

.museum-card.insects {
  background: linear-gradient(145deg, #d9ede6, #add5ca);
}

.museum-card.practice {
  background: linear-gradient(145deg, #f6dfcd, #edb992);
}

.card-num {
  color: rgba(20, 61, 44, 0.58);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-status {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.37);
  color: rgba(21, 61, 46, 0.66);
  font-size: 9px;
  font-weight: 700;
}

.museum-card.completed .card-status {
  background: var(--forest);
  color: #fff;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  margin: 18px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 35px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.museum-card strong {
  display: block;
  min-height: 49px;
  font-size: 18px;
  line-height: 1.34;
  letter-spacing: -0.03em;
}

.museum-card small {
  display: block;
  margin-top: 5px;
  color: rgba(23, 63, 50, 0.68);
  font-size: 10px;
}

.card-cta {
  position: absolute;
  left: 19px;
  right: 17px;
  bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 68, 48, 0.14);
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.card-cta i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-style: normal;
  transition: transform 0.3s var(--ease);
}

.museum-card:hover .card-cta i {
  transform: rotate(45deg);
}

.bookmark-teaser {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  margin-top: 19px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(47, 105, 66, 0.22);
  border-radius: 17px;
  background: linear-gradient(105deg, #eef4df, #d9e9bd);
  color: var(--forest);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.bookmark-teaser::after {
  content: "";
  position: absolute;
  right: 12%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(67, 112, 68, 0.12);
  border-radius: 50%;
}

.bookmark-teaser > span {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  margin-right: 12px;
  font-size: 29px;
}

.bookmark-teaser b,
.bookmark-teaser small,
.bookmark-teaser i {
  position: relative;
  z-index: 1;
}

.bookmark-teaser b {
  font-size: 14px;
}

.bookmark-teaser small {
  color: #698069;
  font-size: 10px;
}

.bookmark-teaser i {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 20px;
  font-style: normal;
}

.hidden {
  display: none !important;
}

.page-heading {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px clamp(24px, 5vw, 45px) 34px;
  border: 1px solid rgba(97, 88, 49, 0.11);
  border-radius: 26px;
  background: linear-gradient(125deg, #f5e5bb, #ecd098);
}

.page-heading::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.soil-heading {
  background: linear-gradient(125deg, #e4edcf, #bad59e);
}

.insect-heading {
  background: linear-gradient(125deg, #e0eee7, #b7d9ce);
}

.practice-heading {
  background: linear-gradient(125deg, #f5e5d6, #edc29f);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 29px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.32);
  color: #587065;
  font-size: 11px;
  font-weight: 700;
}

.back span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.back:hover span {
  transform: translateX(-3px);
}

.section-pill {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(25, 74, 51, 0.7);
}

.page-heading h2 {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 8px 0 7px;
  font-size: clamp(29px, 5vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.page-heading p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0;
  color: #617568;
  font-size: 13px;
  line-height: 1.75;
}

.heading-emblem {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 19px;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.67);
  border-radius: 45% 55% 47% 53%;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(35, 80, 48, 0.56);
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 60px;
  transform: rotate(7deg);
}

.quiz-wrap {
  display: grid;
  gap: 18px;
  margin: 25px 0 20px;
}

.quiz-card {
  position: relative;
  padding: clamp(20px, 4vw, 31px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.3s, transform 0.3s;
}

.quiz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--wheat);
}

.quiz-card.locked {
  opacity: 0.46;
  pointer-events: none;
  transform: scale(0.985);
}

.question-label {
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.question-label span {
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--sage-pale);
  color: #60814d;
  font-size: 9px;
}

.quiz-card h3 {
  max-width: 770px;
  margin: 14px 0 20px;
  font-size: clamp(16px, 2.3vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.options button {
  position: relative;
  min-height: 47px;
  padding: 11px 14px;
  border: 1px solid #dfe6dc;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  color: #415f51;
  text-align: left;
  font-size: 12px;
  line-height: 1.55;
  transition: 0.24s var(--ease);
}

.options button:hover:not(:disabled) {
  z-index: 1;
  border-color: #7fa66f;
  background: #f8fbf2;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(66, 95, 64, 0.09);
}

.options button.correct {
  border-color: #72a360;
  background: #e7f2d8;
  color: #28603c;
  font-weight: 700;
}

.options button.wrong {
  border-color: #dc8f6b;
  background: #fff0e9;
  color: #a64f35;
}

.options button:disabled {
  cursor: default;
}

.answer-note {
  display: none;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid rgba(100, 139, 76, 0.12);
  border-radius: 13px;
  background: #f0f5e7;
  color: #4f6b5c;
  font-size: 12px;
  line-height: 1.75;
}

.answer-note.show {
  display: block;
  animation: note-in 0.36s var(--ease) both;
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 21px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.28s;
}

.primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--forest-2), var(--forest));
  box-shadow: 0 10px 23px rgba(25, 83, 60, 0.2);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(25, 83, 60, 0.26);
}

.secondary-btn {
  border: 1px solid rgba(37, 85, 60, 0.18);
  background: rgba(255, 255, 255, 0.65);
  color: var(--forest);
}

#history-finish {
  display: flex;
  margin: 0 auto;
}

.learning-intro {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: clamp(21px, 4vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(120deg, #f4f8e8, #dce9c8);
  box-shadow: var(--shadow-soft);
}

.learning-intro::after {
  content: "";
  position: absolute;
  right: 21%;
  bottom: -110px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(87, 125, 68, 0.12);
  border-radius: 50%;
}

.soil-illustration {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 87px;
  height: 87px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  background: linear-gradient(#c3dba4 56%, #9f7650 57%);
  font-size: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.soil-illustration span {
  position: absolute;
  bottom: 10px;
  color: #e1bd78;
  font-size: 7px;
  letter-spacing: 3px;
}

.learning-intro > div:not(.soil-illustration),
.learning-intro .primary-btn {
  position: relative;
  z-index: 1;
}

.learning-intro h3 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.learning-intro p {
  margin: 0;
  color: #657b70;
  font-size: 11px;
}

.lesson-list {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.lesson-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 20px rgba(40, 82, 51, 0.05);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.lesson-list details[open] {
  border-color: rgba(94, 139, 75, 0.38);
  box-shadow: var(--shadow-soft);
}

.lesson-list summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  list-style: none;
  cursor: pointer;
}

.lesson-list summary::-webkit-details-marker {
  display: none;
}

.lesson-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sage-pale);
  color: #6d9257;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
}

.lesson-list summary b,
.lesson-list summary small {
  display: block;
}

.lesson-list summary b {
  font-size: 15px;
}

.lesson-list summary small {
  margin-top: 3px;
  color: #809188;
  font-size: 10px;
}

.lesson-list summary i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #dce6d6;
  border-radius: 50%;
  color: #6e9961;
  font-size: 18px;
  font-style: normal;
  transition: 0.28s var(--ease);
}

.lesson-list details[open] summary i {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
  transform: rotate(45deg);
}

.lesson-list details p {
  margin: 0;
  padding: 0 24px 22px 72px;
  color: #576f63;
  font-size: 12px;
  line-height: 2;
}

.lesson-list .primary-btn {
  justify-self: center;
  margin-top: 6px;
}

.insect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0 15px;
}

.insect-card {
  position: relative;
  min-height: 178px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 19px;
  text-align: center;
  box-shadow: 0 8px 21px rgba(41, 82, 54, 0.07);
  transition: 0.32s var(--ease);
}

.insect-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(51, 94, 60, 0.22);
  border-radius: 50%;
}

.insect-card.beneficial {
  background: linear-gradient(145deg, #f0f7e8, #dcebcf);
}

.insect-card.harmful {
  background: linear-gradient(145deg, #fff5e9, #f4ddc7);
}

.insect-card:hover,
.insect-card.selected {
  border-color: rgba(67, 121, 67, 0.52);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.insect-card.selected::after {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 2px #dcebcf;
}

.insect-art {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 48% 52% 45% 55%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 43px;
  transition: transform 0.35s var(--ease);
}

.insect-card:hover .insect-art {
  transform: rotate(-5deg) scale(1.06);
}

.insect-card b,
.insect-card small {
  display: block;
}

.insect-card b {
  font-size: 15px;
}

.insect-card small {
  margin-top: 4px;
  color: #788b80;
  font-size: 9px;
}

.insect-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  min-height: 135px;
  padding: 22px;
  border: 1px solid rgba(75, 118, 72, 0.16);
  border-radius: 20px;
  background: linear-gradient(120deg, #f0f5e7, #dcead3);
  box-shadow: var(--shadow-soft);
}

.detail-art {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 42px;
}

.detail-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(84, 136, 73, 0.13);
  color: #5d8a52;
  font-size: 9px;
  font-weight: 800;
}

.detail-tag.harmful-tag {
  background: rgba(199, 102, 51, 0.12);
  color: #b36338;
}

.insect-detail h3 {
  margin: 7px 0 4px;
  font-size: 18px;
}

.insect-detail p {
  margin: 0;
  color: #5a7165;
  font-size: 12px;
  line-height: 1.8;
}

.insect-detail + .primary-btn {
  display: flex;
  margin: 19px auto 0;
}

.practice-card {
  position: relative;
  margin-top: 24px;
  padding: clamp(24px, 5vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 239, 219, 0.86));
  box-shadow: var(--shadow-card);
}

.practice-card::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(193, 127, 65, 0.1);
  border-radius: 50%;
}

.practice-card > * {
  position: relative;
  z-index: 1;
}

.sprout-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: linear-gradient(145deg, #e2edc5, #bfd99b);
  font-size: 35px;
  box-shadow: 0 8px 18px rgba(58, 96, 56, 0.11);
}

.practice-card h3 {
  margin: 17px 0 5px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.practice-card label {
  display: block;
  max-width: 700px;
  color: #62786d;
  font-size: 12px;
  line-height: 1.8;
}

.practice-card textarea {
  width: 100%;
  min-height: 170px;
  margin-top: 18px;
  padding: 16px;
  resize: vertical;
  border: 1px solid #dce5d9;
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 2px 8px rgba(54, 79, 59, 0.035);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.practice-card textarea:focus {
  border-color: #75a169;
  box-shadow: 0 0 0 4px rgba(105, 151, 90, 0.13);
}

.practice-card textarea::placeholder {
  color: #a0aca5;
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 11px;
}

.input-footer span {
  color: #87968e;
  font-size: 10px;
}

.form-tip {
  min-height: 18px;
  margin: 11px 0 0;
  color: #b15d3c;
  font-size: 11px;
}

.reward-view {
  padding: 0;
  overflow-anchor: none;
}

.reward-view.active {
  display: block;
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 50% 32%, rgba(244, 213, 137, 0.2), transparent 25rem),
    radial-gradient(circle at 13% 78%, rgba(122, 158, 100, 0.25), transparent 28rem),
    linear-gradient(145deg, #173f31, #0e2f26 65%, #173d2f);
  color: #f7f0dc;
}

.draw-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
}

.draw-stage::before,
.draw-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(244, 225, 176, 0.1);
  border-radius: 46% 54% 62% 38%;
}

.draw-stage::before {
  top: -350px;
  left: -230px;
  transform: rotate(34deg);
}

.draw-stage::after {
  right: -290px;
  bottom: -330px;
  transform: rotate(-31deg);
}

.draw-intro {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(100%, 720px);
  padding: 46px 24px 54px;
  text-align: center;
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.65s var(--ease);
}

.draw-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8c794;
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.draw-kicker span {
  width: 30px;
  height: 1px;
  background: rgba(222, 203, 150, 0.5);
}

.draw-intro h2,
.draw-result h2 {
  margin: 15px 0 11px;
  color: #fffaf0;
  font-size: clamp(37px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.draw-intro h2 em,
.draw-result h2 em {
  display: inline-block;
  margin-top: 7px;
  color: #e8ba58;
  font-family: "ZCOOL KuaiLe", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.draw-intro > p {
  max-width: 560px;
  margin: 0;
  color: rgba(238, 239, 222, 0.68);
  font-size: 12px;
  line-height: 1.9;
}

.pack-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 320px;
  height: 334px;
  margin: 8px 0 0;
  perspective: 1000px;
}

.draw-halo {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(237, 201, 112, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(227, 185, 83, 0.12), inset 0 0 55px rgba(227, 185, 83, 0.08);
  animation: halo-breathe 3.2s ease-in-out infinite;
}

.draw-halo::before,
.draw-halo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(237, 201, 112, 0.18);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.draw-halo::after {
  inset: -18px;
  animation-direction: reverse;
  animation-duration: 24s;
}

@keyframes halo-breathe {
  50% { transform: scale(1.07); opacity: 0.76; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.draw-rays {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0.32;
  background: repeating-conic-gradient(from 8deg, rgba(236, 192, 85, 0.24) 0 2deg, transparent 2deg 18deg);
  mask-image: radial-gradient(circle, transparent 0 30%, #000 64%, transparent 72%);
  animation: orbit 32s linear infinite;
}

.sealed-pack {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 175px;
  height: 256px;
  overflow: hidden;
  padding: 22px 15px 17px;
  border: 1px solid rgba(255, 237, 185, 0.62);
  border-radius: 13px 13px 21px 21px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(155deg, #537947, #234f39 58%, #1b3f30);
  box-shadow: 0 30px 45px rgba(0, 17, 11, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -10px 24px rgba(0, 0, 0, 0.15);
  transform: rotateY(-5deg) rotateX(2deg);
  animation: pack-float 3.4s ease-in-out infinite;
}

.sealed-pack::before,
.sealed-pack::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  border-top: 1px dashed rgba(244, 221, 158, 0.42);
  border-bottom: 1px dashed rgba(244, 221, 158, 0.24);
}

.sealed-pack::before { top: 7px; }
.sealed-pack::after { bottom: 7px; }

.pack-shine {
  position: absolute;
  top: -40%;
  left: -90%;
  width: 70%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 217, 0.22), transparent);
  transform: rotate(18deg);
  animation: pack-shine 4.5s ease-in-out infinite;
}

@keyframes pack-shine {
  45%, 100% { left: 135%; }
}

@keyframes pack-float {
  50% { transform: translateY(-8px) rotateY(4deg) rotateX(-1deg); }
}

.pack-top {
  color: rgba(244, 228, 184, 0.72);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.pack-emblem {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 24px 0 13px;
  border: 1px solid rgba(244, 219, 152, 0.56);
  border-radius: 50%;
  color: #f0ce78;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 35px;
  box-shadow: 0 0 0 7px rgba(244, 219, 152, 0.05), 0 0 24px rgba(235, 192, 84, 0.14);
}

.sealed-pack strong {
  color: #fff3d3;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.04em;
}

.sealed-pack small {
  margin-top: auto;
  color: rgba(238, 222, 178, 0.48);
  font-family: Georgia, serif;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.pack-seal {
  position: absolute;
  right: 12px;
  bottom: 13px;
  color: #ddb459;
  font-size: 12px;
  font-style: normal;
}

.pack-shadow {
  position: absolute;
  bottom: 23px;
  width: 155px;
  height: 23px;
  border-radius: 50%;
  background: rgba(0, 12, 8, 0.38);
  filter: blur(10px);
}

.draw-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 51px;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 179, 0.72);
  border-radius: 100px;
  background: linear-gradient(105deg, #e5b751, #f1d488, #dca53f);
  box-shadow: 0 12px 35px rgba(224, 173, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: #244d38;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.draw-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -45%;
  width: 35%;
  height: 200%;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(25deg);
  transition: left 0.6s var(--ease);
}

.draw-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 17px 38px rgba(224, 173, 67, 0.29);
}

.draw-button:hover::after { left: 120%; }
.draw-button i { font-style: normal; }

.draw-hint {
  margin-top: 12px;
  color: rgba(232, 229, 207, 0.42);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.draw-stage.drawing .sealed-pack {
  animation: pack-charge 0.82s var(--ease) both;
}

.draw-stage.drawing .draw-halo {
  animation: halo-charge 0.82s var(--ease) both;
}

.draw-stage.drawing .draw-rays {
  animation: rays-charge 0.82s ease both;
}

.draw-stage.drawing .draw-button {
  opacity: 0.35;
  pointer-events: none;
}

@keyframes pack-charge {
  0% { transform: rotateY(-5deg) translateX(0); }
  12% { transform: rotateY(-5deg) translateX(-5px); }
  24% { transform: rotateY(-5deg) translateX(6px); }
  38% { transform: rotateY(-5deg) translateX(-4px); }
  55% { transform: rotateY(-5deg) translateX(3px) scale(1.02); }
  78% { transform: translateY(-12px) scale(1.08); filter: brightness(1.2); }
  100% { transform: translateY(24px) scale(0.64); opacity: 0; filter: brightness(2); }
}

@keyframes halo-charge {
  70% { transform: scale(1.32); opacity: 1; }
  100% { transform: scale(2.25); opacity: 0; }
}

@keyframes rays-charge {
  to { transform: rotate(110deg) scale(2.1); opacity: 0; }
}

.draw-result {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(310px, 1.15fr);
  align-items: center;
  gap: clamp(26px, 6vw, 70px);
  min-height: calc(100vh - 76px);
  padding: clamp(32px, 5vw, 62px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.draw-stage.revealed .draw-intro {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.08);
  pointer-events: none;
}

.draw-stage.revealed .draw-result {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.result-copy {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
}

.draw-stage.revealed .result-copy {
  animation: result-copy-in 0.72s 0.6s var(--ease) both;
}

.result-copy .eyebrow {
  color: #d8c58e;
}

.result-copy > p:last-child {
  max-width: 470px;
  margin: 0;
  color: rgba(237, 238, 221, 0.67);
  font-size: 12px;
  line-height: 1.9;
}

@keyframes result-copy-in {
  to { opacity: 1; transform: none; }
}

.card-reveal-scene {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 600px;
  perspective: 1600px;
}

.card-aura {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 232, 156, 0.36), rgba(226, 179, 73, 0.06) 52%, transparent 70%);
  filter: blur(2px);
}

.draw-stage.revealed .card-aura {
  animation: aura-reveal 1.2s 0.12s var(--ease) both, halo-breathe 3.5s 1.3s ease-in-out infinite;
}

@keyframes aura-reveal {
  from { opacity: 0; transform: scale(0.15); }
  45% { opacity: 1; }
  to { opacity: 0.88; transform: scale(1.35); }
}

.rarity-label {
  position: absolute;
  z-index: 5;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  color: #e6ce8d;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.rarity-label b {
  padding: 4px 7px;
  border: 1px solid rgba(232, 205, 137, 0.28);
  border-radius: 100px;
  font-size: 8px;
}

.draw-stage.revealed .rarity-label {
  animation: result-copy-in 0.5s 1.05s var(--ease) both;
}

.bookmark-card-3d {
  position: relative;
  width: 276px;
  height: 492px;
  opacity: 0;
  transform-style: preserve-3d;
}

.draw-stage.revealed .bookmark-card-3d {
  animation: card-gacha-rise 1.35s 0.12s var(--ease) both;
}

.bookmark-card-front,
.bookmark-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 180, 0.68);
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 35px 65px rgba(0, 14, 8, 0.42), 0 0 0 7px rgba(255, 239, 190, 0.04);
}

.bookmark-card-back {
  padding: 38px;
  background:
    radial-gradient(circle at 50% 35%, rgba(235, 194, 95, 0.18), transparent 8rem),
    repeating-linear-gradient(135deg, transparent 0 15px, rgba(255, 255, 255, 0.025) 15px 16px),
    #214d38;
  color: #edd18b;
  text-align: center;
  transform: rotateY(0deg);
}

.draw-stage.revealed .bookmark-card-back {
  animation: card-back-turn 0.92s 0.73s var(--ease) both;
}

.bookmark-card-back span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(237, 209, 139, 0.54);
  border-radius: 50%;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 42px;
}

.bookmark-card-back b {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0.12em;
}

.bookmark-card-back small {
  color: rgba(239, 219, 166, 0.5);
  font-size: 9px;
}

.bookmark-card-front {
  background: #fbf9f0;
  transform: rotateY(-180deg);
}

.draw-stage.revealed .bookmark-card-front {
  animation: card-front-turn 0.92s 0.73s var(--ease) both;
}

#bookmark-main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes card-gacha-rise {
  0% { opacity: 0; transform: translateY(170px) scale(0.38) rotateZ(-5deg); }
  38% { opacity: 1; transform: translateY(-25px) scale(0.82) rotateZ(2deg); }
  70% { transform: translateY(0) scale(1.04) rotateZ(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateZ(0); }
}

@keyframes card-back-turn {
  0%, 20% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

@keyframes card-front-turn {
  0%, 20% { transform: rotateY(-180deg); }
  100% { transform: rotateY(0deg); }
}

.draw-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.draw-particles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--particle-size, 7px);
  height: var(--particle-size, 7px);
  border-radius: var(--particle-radius, 50%);
  opacity: 0;
  background: var(--particle-color, #e6bd60);
}

.draw-stage.revealed .draw-particles span {
  animation: particle-burst var(--particle-duration, 1.4s) var(--particle-delay, 0.18s) var(--ease) both;
}

@keyframes particle-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y))) rotate(var(--particle-rotate)); }
}

.result-actions {
  position: absolute;
  z-index: 8;
  left: clamp(32px, 5vw, 62px);
  bottom: clamp(28px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  opacity: 0;
}

.draw-stage.revealed .result-actions {
  animation: result-copy-in 0.55s 1.18s var(--ease) both;
}

.reward-view .primary-btn {
  border-color: rgba(255, 233, 171, 0.42);
  background: linear-gradient(115deg, #d9a844, #eac56e);
  color: #214735;
  box-shadow: 0 12px 30px rgba(212, 163, 62, 0.18);
}

.reward-view .secondary-btn {
  border-color: rgba(239, 223, 181, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #f0e8d4;
}

.text-btn {
  min-height: 47px;
  padding: 9px 13px;
  border: 0;
  background: transparent;
  color: rgba(240, 232, 212, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.text-btn:hover { color: #fff3d4; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  background: rgba(21, 63, 46, 0.94);
  box-shadow: 0 12px 30px rgba(18, 48, 34, 0.24);
  color: white;
  font-size: 12px;
  transform: translate(-50%, 18px);
  transition: 0.3s var(--ease);
  backdrop-filter: blur(10px);
}

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

@media (max-width: 900px) {
  .museum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .museum-card {
    min-height: 228px;
  }

  .draw-result {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 25px;
    padding-inline: 34px;
  }

  .bookmark-card-3d {
    width: 246px;
    height: 438px;
  }

  .card-reveal-scene {
    min-height: 540px;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 17px;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .progress-wrap {
    width: 115px;
  }

  .view {
    min-height: calc(100vh - 68px);
    padding: 23px 16px 52px;
  }

  .hero {
    min-height: 335px;
    border-radius: 24px;
  }

  .hero-copy {
    align-self: start;
    width: 78%;
    padding: 34px 25px;
  }

  .hero h1 {
    font-size: clamp(35px, 11vw, 47px);
  }

  .hero-copy > p:not(.eyebrow) {
    max-width: 260px;
    font-size: 12px;
  }

  .hero-meta {
    gap: 13px;
    margin-top: 18px;
    font-size: 9px;
  }

  .hero-meta b {
    font-size: 17px;
  }

  .field-art {
    right: -58px;
    bottom: -3px;
    transform: scale(0.68);
    transform-origin: right bottom;
  }

  .section-lead {
    align-items: start;
    margin-top: 27px;
  }

  .section-lead h2 {
    font-size: 17px;
  }

  .section-lead p {
    max-width: 110px;
    text-align: right;
  }

  .museum-grid {
    gap: 10px;
  }

  .museum-card {
    min-height: 209px;
    padding: 15px;
    border-radius: 19px;
  }

  .card-status {
    top: 12px;
    right: 11px;
  }

  .card-icon {
    width: 52px;
    height: 52px;
    margin: 14px 0 11px;
    border-radius: 17px;
    font-size: 30px;
  }

  .museum-card strong {
    min-height: 43px;
    font-size: 15px;
  }

  .museum-card small {
    font-size: 9px;
  }

  .card-cta {
    right: 14px;
    bottom: 13px;
    left: 15px;
  }

  .page-heading {
    min-height: 235px;
    padding: 20px 20px 28px;
    border-radius: 22px;
  }

  .back {
    margin-bottom: 25px;
  }

  .page-heading h2 {
    max-width: 76%;
    font-size: 29px;
  }

  .page-heading p {
    max-width: 72%;
    font-size: 11px;
  }

  .heading-emblem {
    right: -2px;
    bottom: 18px;
    width: 100px;
    height: 100px;
    font-size: 48px;
  }

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

  .learning-intro {
    grid-template-columns: auto 1fr;
    gap: 13px;
  }

  .learning-intro .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .soil-illustration {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 34px;
  }

  .lesson-list details p {
    padding: 0 18px 20px;
  }

  .insect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .insect-card {
    min-height: 160px;
    padding: 14px;
  }

  .insect-art {
    width: 66px;
    height: 66px;
    font-size: 38px;
  }

  .insect-detail {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 17px;
  }

  .detail-art {
    width: 55px;
    height: 55px;
    border-radius: 17px;
    font-size: 34px;
  }

  .practice-card {
    padding: 22px 19px;
  }

  .input-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .input-footer .primary-btn {
    width: 100%;
  }

  .reward-view.active,
  .draw-stage {
    min-height: calc(100vh - 68px);
  }

  .draw-intro {
    padding: 35px 18px 46px;
  }

  .draw-intro h2,
  .draw-result h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .draw-intro > p {
    max-width: 390px;
    font-size: 11px;
  }

  .pack-scene {
    width: 290px;
    height: 316px;
  }

  .sealed-pack {
    width: 164px;
    height: 240px;
  }

  .draw-result {
    position: absolute;
    inset: 0;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    min-height: calc(100vh - 68px);
    padding: 38px 18px 36px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .draw-stage.revealed {
    display: block;
    overflow: visible;
  }

  .draw-stage.revealed .draw-intro {
    display: none;
  }

  .draw-stage.revealed .draw-result {
    position: relative;
    inset: auto;
    overflow: visible;
  }

  .result-copy {
    text-align: center;
  }

  .result-copy > p:last-child {
    max-width: 420px;
    margin-inline: auto;
    font-size: 11px;
  }

  .card-reveal-scene {
    min-height: 493px;
  }

  .bookmark-card-3d {
    width: 235px;
    height: 418px;
  }

  .rarity-label {
    top: 2px;
  }

  .result-actions {
    position: static;
    justify-content: center;
    margin-top: 2px;
  }

  .result-actions .primary-btn,
  .result-actions .secondary-btn {
    flex: 1 1 145px;
  }
}

@media (max-width: 390px) {
  .brand > span:last-child {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .progress-wrap {
    width: 100px;
  }

  .hero-copy {
    width: 86%;
  }

  .museum-card {
    min-height: 203px;
  }

  .museum-card strong {
    font-size: 14px;
  }

  .card-cta {
    font-size: 9px;
  }

  .draw-kicker {
    gap: 7px;
    font-size: 8px;
  }

  .draw-kicker span {
    width: 18px;
  }

  .pack-scene {
    transform: scale(0.94);
    margin-block: -5px;
  }

  .bookmark-card-3d {
    width: 215px;
    height: 383px;
  }

  .card-reveal-scene {
    min-height: 453px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .result-actions .text-btn {
    grid-column: 1 / -1;
  }
}

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

/* Per-museum bookmark collection */
.reward-simple {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 20px clamp(35px, 7vw, 80px);
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  isolation: isolate;
}

.reward-simple::before,
.reward-simple::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(239, 216, 156, 0.1);
  border-radius: 50%;
}

.reward-simple::before {
  top: -310px;
  right: -190px;
  width: 600px;
  height: 600px;
}

.reward-simple::after {
  bottom: -380px;
  left: -210px;
  width: 680px;
  height: 680px;
}

.reward-back {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(237, 223, 184, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 235, 213, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.reward-back span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.reward-back:hover span { transform: translateX(-3px); }

.reward-heading {
  align-self: end;
}

.reward-kicker {
  margin: 0;
  color: #d9c68e;
  font-family: Georgia, "Noto Sans SC", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.reward-heading h2 {
  margin: 14px 0 12px;
  color: #fffaf0;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.reward-heading h2 em {
  display: inline-block;
  margin-top: 7px;
  color: #e7ba5c;
  font-family: "ZCOOL KuaiLe", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.reward-heading > p:last-child {
  max-width: 470px;
  margin: 0;
  color: rgba(238, 237, 218, 0.66);
  font-size: 12px;
  line-height: 1.9;
}

.single-card-stage {
  position: relative;
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 610px;
  perspective: 1500px;
}

.single-card-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 196, 102, 0.2), rgba(211, 170, 74, 0.04) 52%, transparent 70%);
  animation: single-glow 3.5s ease-in-out infinite;
}

.single-card-glow::before,
.single-card-glow::after {
  content: "";
  position: absolute;
  inset: 35px;
  border: 1px dashed rgba(229, 202, 135, 0.16);
  border-radius: 50%;
  animation: orbit 24s linear infinite;
}

.single-card-glow::after {
  inset: 70px;
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes single-glow {
  50% { opacity: 0.68; transform: scale(1.08); }
}

.reward-flip-card {
  position: relative;
  z-index: 2;
  display: block;
  width: 276px;
  height: 492px;
  padding: 0;
  border: 0;
  background: transparent;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.92s var(--ease), filter 0.35s;
}

.reward-flip-card:not(.flipped):hover {
  filter: brightness(1.08);
  transform: translateY(-5px) rotateY(-5deg);
}

.reward-flip-card.flipped {
  transform: rotateY(180deg);
}

.reward-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 178, 0.62);
  border-radius: 17px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 35px 65px rgba(0, 13, 8, 0.44), 0 0 0 7px rgba(255, 239, 190, 0.035);
}

.reward-card-back-face {
  padding: 29px 24px 24px;
  background:
    radial-gradient(circle at 50% 37%, rgba(238, 198, 99, 0.16), transparent 9rem),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.025) 16px 17px),
    linear-gradient(155deg, #356346, #194333 72%);
  color: #efd493;
  transform: rotateY(0deg);
}

.reward-card-back-face::before,
.reward-card-back-face::after {
  content: "";
  position: absolute;
  width: 225px;
  height: 225px;
  border: 1px solid rgba(237, 211, 144, 0.13);
  border-radius: 50%;
}

.reward-card-back-face::before { top: 100px; }
.reward-card-back-face::after { top: 125px; width: 175px; height: 175px; }

.reward-card-back-face small {
  color: rgba(241, 218, 159, 0.55);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.reward-card-back-face i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 95px 0 24px;
  border: 1px solid rgba(239, 210, 133, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(239, 210, 133, 0.045), 0 0 35px rgba(222, 175, 67, 0.12);
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 45px;
  font-style: normal;
}

.reward-card-back-face strong {
  position: relative;
  z-index: 1;
  max-width: 210px;
  color: #fff0c8;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.reward-card-back-face b {
  margin-top: 13px;
  color: rgba(242, 220, 164, 0.56);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.reward-card-back-face em {
  position: absolute;
  bottom: 22px;
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.reward-card-front-face {
  justify-content: center;
  padding: 0;
  background: #fffdf6;
  transform: rotateY(180deg);
}

#reward-bookmark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.flip-hint {
  position: absolute;
  z-index: 3;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(239, 230, 205, 0.56);
  font-size: 9px;
  letter-spacing: 0.06em;
  transition: opacity 0.3s;
}

.flip-hint i {
  font-size: 15px;
  font-style: normal;
  animation: hint-turn 2s ease-in-out infinite;
}

@keyframes hint-turn {
  50% { transform: rotate(45deg); }
}

.single-card-stage:has(.reward-flip-card.flipped) .flip-hint {
  opacity: 0;
}

.reward-reveal-copy {
  align-self: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s ease, visibility 0.5s, transform 0.55s var(--ease);
}

.reward-reveal-copy.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.reward-reveal-copy > span {
  color: #d8c58d;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.reward-reveal-copy h3 {
  margin: 8px 0 3px;
  color: #fff5dc;
  font-size: 21px;
}

.reward-reveal-copy p {
  margin: 0;
  color: rgba(238, 235, 216, 0.56);
  font-size: 10px;
}

.reward-simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.collection-view {
  background:
    radial-gradient(circle at 85% 13%, rgba(214, 230, 184, 0.55), transparent 24rem),
    linear-gradient(rgba(255, 253, 247, 0.88), rgba(255, 253, 247, 0.88));
}

.collection-heading {
  position: relative;
  padding: clamp(24px, 5vw, 43px);
  overflow: hidden;
  border: 1px solid rgba(62, 100, 58, 0.12);
  border-radius: 25px;
  background: linear-gradient(125deg, #e8efcf, #c8dca9);
}

.collection-heading::after {
  content: "册";
  position: absolute;
  right: 7%;
  bottom: -16px;
  color: rgba(46, 91, 49, 0.1);
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 135px;
}

.collection-heading .back {
  position: relative;
  z-index: 2;
  margin-bottom: 29px;
}

.collection-heading h2 {
  position: relative;
  z-index: 2;
  margin: 8px 0 6px;
  font-size: clamp(31px, 5vw, 45px);
  letter-spacing: -0.05em;
}

.collection-heading > p:not(.section-pill) {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0;
  color: #607468;
  font-size: 12px;
  line-height: 1.8;
}

.collection-count {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 43%;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #678064;
  font-size: 10px;
}

.collection-count b {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 31px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.collection-slot {
  position: relative;
  padding: 13px 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(45, 91, 54, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(40, 73, 47, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.collection-slot.unlocked:hover {
  border-color: rgba(55, 112, 62, 0.42);
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

.collection-slot:disabled {
  cursor: default;
}

.collection-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(150deg, #315d43, #153d2e);
}

.collection-image::before {
  content: "禾";
  position: absolute;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 1px solid rgba(235, 211, 146, 0.42);
  border-radius: 50%;
  color: #d9bd74;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: 32px;
}

.collection-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.collection-slot.unlocked .collection-image {
  background: #fffdf7;
}

.collection-slot.unlocked .collection-image::before { display: none; }
.collection-slot.unlocked .collection-image img { opacity: 1; }

.collection-slot > b,
.collection-slot > small {
  display: block;
}

.collection-slot > b {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.collection-slot > small {
  margin-top: 3px;
  color: #839087;
  font-size: 9px;
}

.collection-slot.unlocked > small {
  color: #5e8957;
}

@media (max-width: 900px) {
  .reward-simple {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 20px 30px;
    padding: 32px;
  }

  .single-card-stage { min-height: 570px; }
  .reward-flip-card { width: 250px; height: 445px; }
  .reward-card-back-face i { margin-top: 72px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-image { height: 360px; }
}

@media (max-width: 700px) {
  .reward-simple {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: start;
    gap: 24px;
    min-height: calc(100vh - 68px);
    padding: 24px 17px 42px;
  }

  .reward-back,
  .reward-heading,
  .single-card-stage,
  .reward-reveal-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .reward-heading { text-align: center; }
  .reward-heading h2 { font-size: clamp(35px, 10vw, 47px); }
  .reward-heading > p:last-child { margin-inline: auto; font-size: 11px; }

  .single-card-stage {
    min-height: 514px;
    margin-top: -5px;
  }

  .single-card-glow { width: 350px; height: 350px; }
  .reward-flip-card { width: 235px; height: 418px; }
  .reward-card-back-face { padding-top: 25px; }
  .reward-card-back-face i { width: 78px; height: 78px; margin: 72px 0 20px; font-size: 40px; }
  .flip-hint { bottom: 9px; }

  .reward-reveal-copy {
    margin-top: -12px;
    text-align: center;
  }

  .reward-simple-actions { justify-content: center; }
  .collection-count { position: relative; right: auto; top: auto; margin-top: 18px; }
  .collection-grid { gap: 10px; }
  .collection-image { height: 265px; }
}

@media (max-width: 420px) {
  .collection-heading { padding: 20px; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
  .collection-image { height: 225px; }
  .collection-slot { padding: 8px 8px 12px; }
  .collection-slot > b { font-size: 10px; }
  .reward-simple-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .reward-simple-actions .text-btn { grid-column: 1 / -1; }
}

/* DOCX reference layout: home and soil museum */
#home {
  background:
    radial-gradient(circle at 3% 12%, rgba(188, 225, 143, 0.28), transparent 19rem),
    radial-gradient(circle at 98% 72%, rgba(223, 236, 172, 0.3), transparent 21rem),
    #fffdf2;
}

.doc-home-heading {
  padding: clamp(18px, 3vw, 36px) 12px clamp(30px, 5vw, 52px);
  text-align: center;
}

.doc-home-heading h1 {
  margin: 0;
  color: #145626;
  font-size: clamp(36px, 6.2vw, 66px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.doc-home-heading p {
  margin: 20px 0 0;
  color: #3d4540;
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.doc-museum-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  width: min(100%, 900px);
  margin: 0 auto;
}

.doc-museum-card {
  display: grid;
  grid-template-rows: minmax(82px, auto) 260px 64px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 111, 50, 0.1);
  border-radius: 34px;
  background: #f2f9d8;
  box-shadow: 0 14px 30px rgba(36, 84, 42, 0.12);
  color: #101510;
  text-align: center;
  isolation: isolate;
}

.doc-museum-card.history,
.doc-museum-card.soil,
.doc-museum-card.insects,
.doc-museum-card.practice {
  background: linear-gradient(180deg, #f4fbdc 0%, #eef7d1 100%);
}

.doc-museum-card::after {
  display: none;
}

.doc-museum-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(36, 84, 42, 0.18);
}

.doc-museum-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 22px 74px 18px;
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.doc-museum-card .card-status {
  top: 17px;
  right: 17px;
  padding: 6px 10px;
  border-color: rgba(31, 110, 38, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #4b6e50;
  font-size: 10px;
  box-shadow: 0 5px 14px rgba(42, 91, 46, 0.09);
}

.doc-card-art {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #edf5ce;
}

.doc-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.doc-museum-card:hover .doc-card-art img {
  transform: scale(1.035);
}

.doc-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #37a340, #238c2d);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 1px rgba(0, 73, 13, 0.2);
}

.doc-museum-card.completed .doc-card-cta {
  background: linear-gradient(180deg, #277f32, #176425);
}

#home .bookmark-teaser {
  width: min(100%, 900px);
  margin: 26px auto 0;
}

#soil {
  background:
    radial-gradient(circle at 4% 30%, rgba(226, 235, 163, 0.25), transparent 23rem),
    #fff7e4;
}

.soil-doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 760px);
  margin: 0 auto 20px;
}

.soil-doc-toolbar .back {
  margin: 0;
}

.soil-doc-toolbar > span {
  color: #4f6b4f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.soil-doc-intro {
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.soil-doc-intro::after {
  display: none;
}

.soil-doc-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 94, 41, 0.1);
  border-radius: 28px;
  background: #fff4df;
  box-shadow: 0 20px 50px rgba(95, 76, 32, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.soil-doc-poster::after {
  content: "点击整张海报开始学习  →";
  position: absolute;
  right: 20px;
  bottom: 19px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #38742c;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(62, 85, 39, 0.13);
  backdrop-filter: blur(8px);
}

.soil-doc-poster:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(95, 76, 32, 0.2);
}

.soil-doc-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.soil-doc-lessons {
  gap: 20px;
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 30px;
  background: #fff3d8;
}

.soil-lessons-heading {
  padding: 0 4px 8px;
  text-align: center;
}

.soil-lessons-heading h2 {
  margin: 0;
  color: #3f2b18;
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.soil-lessons-heading p {
  margin: 8px 0 0;
  color: #61725d;
  font-size: 13px;
  font-weight: 600;
}

.soil-doc-lessons details {
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(99, 80, 38, 0.11);
}

.soil-doc-lessons details[open] {
  border: 0;
  box-shadow: 0 19px 36px rgba(66, 100, 49, 0.15);
}

.soil-doc-lessons summary {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 38%) auto;
  gap: 16px;
  min-height: 245px;
  padding: 25px 22px 25px 36px;
}

.soil-lesson-copy {
  align-self: center;
}

.soil-doc-lessons summary .soil-lesson-copy b {
  position: relative;
  display: inline-block;
  color: #18140f;
  font-size: clamp(23px, 3.2vw, 33px);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.soil-doc-lessons summary .soil-lesson-copy b::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 12px;
  border-radius: 9px;
  background: #2f9e36;
}

.soil-doc-lessons summary .soil-lesson-copy small {
  margin-top: 17px;
  color: #191b18;
  font-size: clamp(12px, 1.55vw, 16px);
  font-weight: 600;
  line-height: 1.85;
}

.soil-lesson-art {
  display: block;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fffdf6;
}

.soil-lesson-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.soil-doc-lessons summary > i {
  align-self: center;
}

.soil-doc-lessons details > p {
  margin: 0 30px 28px;
  padding: 23px 6px 0;
  border-top: 1px solid rgba(53, 109, 54, 0.14);
  color: #50614e;
  font-size: 14px;
  line-height: 2;
}

.soil-doc-lessons #soil-finish {
  justify-self: stretch;
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #39a63e, #238e2c);
  font-size: 21px;
  font-weight: 900;
}

@media (max-width: 700px) {
  #home {
    padding-top: 30px;
  }

  .doc-home-heading {
    padding: 10px 4px 31px;
  }

  .doc-home-heading h1 {
    font-size: clamp(30px, 9vw, 43px);
  }

  .doc-home-heading p {
    margin-top: 14px;
    font-size: 14px;
  }

  .doc-museum-grid {
    gap: 12px;
  }

  .doc-museum-card {
    grid-template-rows: minmax(60px, auto) 145px 49px;
    min-height: 0;
    padding: 0;
    border-radius: 22px;
  }

  .doc-museum-card strong {
    min-height: 0;
    padding: 16px 38px 13px;
    font-size: clamp(16px, 4.3vw, 21px);
  }

  .doc-museum-card .card-status {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .doc-card-cta {
    font-size: 14px;
  }

  .soil-doc-toolbar {
    margin-bottom: 14px;
  }

  .soil-doc-intro {
    display: block;
    grid-template-columns: none;
    width: 100%;
  }

  .soil-doc-poster {
    border-radius: 20px;
  }

  .soil-doc-poster::after {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .soil-doc-lessons {
    gap: 13px;
    width: 100%;
    padding: 16px 10px 20px;
    border-radius: 22px;
  }

  .soil-doc-lessons details {
    border-radius: 20px;
  }

  .soil-doc-lessons summary {
    grid-template-columns: minmax(0, 1fr) minmax(115px, 40%);
    gap: 6px;
    min-height: 170px;
    padding: 17px 10px 17px 18px;
  }

  .soil-doc-lessons summary .soil-lesson-copy b {
    font-size: clamp(20px, 6vw, 27px);
  }

  .soil-doc-lessons summary .soil-lesson-copy b::after {
    width: 42px;
    height: 3px;
    margin-top: 8px;
  }

  .soil-doc-lessons summary .soil-lesson-copy small {
    margin-top: 10px;
    font-size: clamp(10px, 2.9vw, 13px);
    line-height: 1.65;
  }

  .soil-doc-lessons summary > i {
    position: absolute;
    right: 11px;
    bottom: 11px;
    width: 27px;
    height: 27px;
  }

  .soil-doc-lessons details > p {
    margin: 0 18px 22px;
    padding: 17px 0 0;
    font-size: 12px;
  }

  .soil-doc-lessons #soil-finish {
    min-height: 59px;
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .doc-museum-card {
    grid-template-rows: minmax(58px, auto) 126px 46px;
    min-height: 0;
  }

  .doc-museum-card strong {
    padding-inline: 30px;
    font-size: 15px;
  }

  .doc-card-cta {
    font-size: 12px;
  }
}
