:root {
  font-family:ui-rounded,'Segoe UI',system-ui,sans-serif;
  color:#334b3c;
  background:#f4f1e7;
  font-synthesis:none;
  --paper:#fffcf4;
  --line:#d6dccd;
  --muted:#586851;
  --green:#3f634c;
  --shadow:0 12px 35px #354b3510
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-width:300px;
  background:radial-gradient(ellipse at 0 0,#e5ebdb,transparent 48%),#f4f1e7
}
button,input,select {
  font:inherit
}
button,a,input,select {
  touch-action:manipulation
}
button {
  color:inherit;
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:18px;
  padding:14px 22px;
  min-height:52px;
  font-weight:600
}
button:hover {
  border-color:#678269;
  background-color:#eef1e5
}
button:disabled {
  cursor:default
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #9e562e;
  outline-offset:5px
}
a {
  color:var(--green)
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2 {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  letter-spacing:-.035em
}
h1 {
  font-size:clamp(2.7rem,5.5vw,4.8rem);
  line-height:1.08
}
h2 {
  font-size:clamp(1.8rem,4vw,2.9rem)
}
h3 {
  font-size:1.05rem
}
p {
  line-height:1.6
}
small {
  font-size:.8rem
}
.topbar {
  max-width:1240px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:25px 32px;
  gap:15px
}
.wordmark {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:650;
  font-size:1.03rem
}
.wordmark small {
  display:block;
  font-weight:400;
  letter-spacing:.05em;
  margin-top:3px;
  color:var(--muted)
}
.quiet {
  background:transparent;
  box-shadow:none;
  font-size:.9rem
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.17em;
  font-size:.73rem;
  font-weight:700;
  color:var(--muted);
  margin-bottom:18px
}
main {
  max-width:1180px;
  margin:auto;
  padding:20px 32px;
  min-height:75vh
}
.intro {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:40px;
  align-items:center;
  margin:20px 0 32px
}
.intro-copy>p:not(.eyebrow) {
  max-width:340px;
  color:var(--muted);
  font-size:1.1rem
}
.primary {
  background:var(--green);
  color:#fffdf3;
  border-color:var(--green);
  box-shadow:0 5px 0 #2d4936
}
.primary:hover {
  background:#2f523c;
  color:white
}
.intro .primary {
  min-width:215px;
  margin:9px 0 20px
}
.caption {
  font-size:.85rem;
  color:var(--muted)
}
.garden {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  height:365px;
  border-radius:48% 48% 32px 32px;
  background:linear-gradient(#e1ebe7,#eff0d9 60%,#d5dfba 61%,#c2d1a5);
  border:1px solid #cfdbc6;
  box-shadow:var(--shadow)
}
.garden:before {
  content:'';
  position:absolute;
  inset:60% -15% -20%;
  background:#b6c899;
  border-radius:50% 65% 0 0;
  transform:rotate(-10deg)
}
.garden:after {
  content:'';
  position:absolute;
  width:30%;
  height:48%;
  background:#e5d9b8;
  left:36%;
  bottom:-15%;
  border-radius:80% 10% 0 0;
  transform:rotate(20deg);
  z-index:-1
}
.sun {
  position:absolute;
  width:56px;
  height:56px;
  top:25px;
  right:28%;
  border-radius:50%;
  background:#efe0a5;
  box-shadow:0 0 50px #f2e8be
}
.garden-item {
  position:absolute;
  width:19%;
  height:29%;
  transform:translate(-25%,-5%);
  filter:drop-shadow(0 4px 2px #435d4310)
}
.garden-item .art {
  width:100%;
  height:100%
}
.garden-label {
  position:absolute;
  bottom:15px;
  left:20px;
  font-size:.73rem;
  color:#3e5636;
  letter-spacing:.1em;
  text-transform:uppercase
}
.garden .base-tree {
  width:30%;
  height:52%;
  left:42%;
  top:20%
}
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-top:25px;
  margin-bottom:18px
}
.section-head h2 {
  font-size:1.7rem;
  margin:0
}
.activities {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}
.activity-link {
  text-align:left;
  min-height:166px;
  padding:18px;
  background:#fffcf4c9;
  box-shadow:0 5px 12px #344a3410;
  font-weight:400
}
.activity-link .art {
  display:block;
  width:62px;
  height:62px;
  margin-bottom:14px
}
.activity-link strong {
  display:block;
  font-size:.95rem
}
.activity-link small {
  display:block;
  margin-top:7px;
  color:var(--muted)
}
footer {
  max-width:1180px;
  padding:30px 32px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:.75rem;
  letter-spacing:.04em
}
.play-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}
.play-nav p {
  margin:0
}
.play-card {
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:32px;
  padding:28px;
  text-align:center;
  max-width:850px;
  margin:auto
}
.play-card h1 {
  font-size:clamp(1.65rem,4vw,2.5rem);
  line-height:1.25;
  margin-bottom:24px
}
.target-row {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  min-height:145px;
  margin-bottom:20px
}
.object {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px
}
.object .art {
  width:90px;
  height:90px
}
.object-label {
  font-size:.85rem;
  color:#455a45
}
.target-object {
  min-width:130px;
  min-height:138px;
  border:2px dashed #a5b69b;
  background:#f1f2e7;
  border-radius:26px;
  padding:12px;
  touch-action:none;
  user-select:none
}
.target-row.sequence .target-object {
  min-width:65px;
  min-height:88px;
  padding:6px
}
.sequence .object .art {
  width:60px;
  height:60px
}
.sequence .object-label {
  font-size:.7rem
}
.choices {
  display:grid;
  grid-template-columns:repeat(var(--choices,2),minmax(0,1fr));
  gap:18px;
  max-width:740px;
  margin:auto
}
.choice {
  min-height:165px;
  padding:14px;
  border:2px solid var(--line);
  background:#fffdf8;
  box-shadow:0 6px 0 #dedfce;
  border-radius:26px
}
.choice.correct {
  background:#e3ebd7;
  border-color:#54724a;
  animation:bloom .6s ease
}
.choice.hint {
  border:3px dashed #6c7e48;
  background:#f0f2e0
}
.choice.return {
  animation:return .4s ease
}
.token-text {
  font:500 4rem Georgia,serif;
  color:#3c5545;
  line-height:1.1
}
.quantity {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  width:110px;
  gap:0
}
.quantity .art {
  width:35px;
  height:43px
}
.basket-icon {
  border-bottom:10px solid #bb9968;
  border-radius:0 0 22px 22px;
  padding:0 12px
}
.pattern-dots {
  background-image:radial-gradient(#89724b 1px,transparent 2px);
  background-size:10px 10px;
  border-radius:15px
}
.pattern-stripes {
  background:repeating-linear-gradient(135deg,transparent,transparent 7px,#cdd9d5 7px,#cdd9d5 9px);
  border-radius:15px
}
.pattern-lines {
  border:2px dashed #728665;
  border-radius:15px
}
.feedback {
  min-height:35px;
  margin:24px 0 12px;
  color:#455e3b
}
.next {
  min-width:180px
}
.bloom-preview {
  display:inline-block;
  vertical-align:middle;
  width:35px;
  height:35px
}
.art {
  width:90px;
  height:90px
}
.helper {
  font-size:.8rem;
  color:var(--muted);
  margin-top:18px;
  margin-bottom:0
}
.dragging {
  opacity:.65;
  outline:3px solid #ad8654
}
.drop-over {
  outline:4px solid #8b9b64
}
.skip-link {
  position:absolute;
  top:-80px;
  left:10px;
  padding:15px;
  z-index:10;
  background:white
}
.skip-link:focus {
  top:10px
}
dialog {
  border:1px solid var(--line);
  border-radius:25px;
  padding:28px;
  width:min(640px,calc(100% - 24px));
  max-height:90dvh;
  background:var(--paper);
  color:inherit;
  box-shadow:0 20px 90px #23342530
}
dialog::backdrop {
  background:#263c3870;
  backdrop-filter:blur(4px)
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-bottom:20px
}
.dialog-top h2 {
  margin:0;
  font-size:2rem
}
.settings {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:20px 0
}
.settings label {
  display:flex;
  gap:10px;
  align-items:center;
  min-height:52px;
  font-size:.92rem
}
.settings .wide {
  grid-column:1/-1;
  display:grid
}
select,input[type=number] {
  padding:13px;
  border:1px solid #9caa92;
  border-radius:12px;
  background:white;
  color:#334b3c;
  min-height:48px;
  max-width:100%
}
input[type=checkbox] {
  width:24px;
  height:24px;
  accent-color:#496b4a
}
.stats {
  background:#eef0e5;
  padding:18px;
  border-radius:16px;
  font-size:.9rem
}
.stats p:last-child {
  margin-bottom:0
}
details {
  margin:20px 0
}
summary {
  cursor:pointer;
  min-height:48px;
  padding:12px 0
}
li {
  margin-bottom:8px;
  font-size:.9rem
}
.danger {
  color:#813d2c
}
.gate {
  display:grid;
  gap:15px
}
.gate label {
  display:grid;
  gap:10px
}
.adult-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
#storage-note {
  margin:20px;
  padding:15px;
  background:#fff3d6;
  color:#614928;
  border-radius:12px
}
.contrast {
  --muted:#34402e;
  --line:#65735e;
  --green:#244d33;
  color:#233626
}
.reduced *, .reduced *:before,.reduced *:after {
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important
}
@keyframes bloom {
  50% {
    transform:scale(1.045)
  }
}
@keyframes return {
  50% {
    transform:translateY(5px)
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
}
@media(max-width:760px) {
  .intro {
    grid-template-columns:1fr;
    gap:18px;
    margin-top:0
  }
  .intro-copy {
    text-align:center
  }
  .intro-copy>p:not(.eyebrow) {
    margin-left:auto;
    margin-right:auto;
    max-width:450px
  }
  .intro h1 {
    max-width:600px;
    margin:0 auto 18px
  }
  .garden {
    height:270px;
    max-width:550px;
    width:100%;
    margin:auto
  }
  .activities {
    grid-template-columns:repeat(2,1fr)
  }
  .topbar,main {
    padding:18px
  }
  .wordmark {
    font-size:.9rem
  }
  .wordmark small {
    font-size:.65rem
  }
  .topbar button {
    padding:10px
  }
  .choices {
    gap:12px;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .choices.single {
    grid-template-columns:1fr;
    max-width:260px
  }
  .play-card {
    padding:22px 16px
  }
  .choice {
    min-height:140px
  }
  .settings {
    grid-template-columns:1fr
  }
  .settings .wide {
    grid-column:auto
  }
  footer {
    padding:24px 18px
  }
  .section-head {
    align-items:start;
    flex-direction:column
  }
}
@media(max-width:380px) {
  .wordmark img {
    display:none
  }
  .target-row {
    gap:4px
  }
  .sequence .object .art {
    width:43px;
    height:50px
  }
  .target-row.sequence .target-object {
    min-width:47px
  }
  .sequence .object-label {
    display:none
  }
  .object .art {
    width:75px;
    height:75px
  }
  .token-text {
    font-size:3.4rem
  }
}

/* A pointer-following duplicate leaves the source in its predictable place. */
.drag-ghost {
  position: fixed;
  z-index: 5;
  width: 120px;
  padding: 10px;
  border-radius: 24px;
  background: #fffcf4e8;
  box-shadow: 0 12px 30px #334b3c30;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* CSP-safe layout classes generated from the garden metadata. */
.garden-position-first-flower { left: 16%; top: 62%; }
.garden-position-meadow-tree { left: 78%; top: 20%; }
.garden-position-meadow-bird { left: 68%; top: 32%; }
.garden-position-shape-stone { left: 30%; top: 71%; }
.garden-position-shape-mushroom { left: 35%; top: 57%; }
.garden-position-number-sprout { left: 59%; top: 62%; }
.garden-position-number-pond { left: 66%; top: 75%; }
.garden-position-story-tree { left: 11%; top: 26%; }
.garden-position-story-bird { left: 21%; top: 27%; }
.garden-position-pattern-butterfly { left: 48%; top: 28%; }
.garden-position-pattern-flower { left: 45%; top: 68%; }
.choices-count-1 { --choices: 1; }
.choices-count-2 { --choices: 2; }
.choices-count-3 { --choices: 3; }
.choices-count-4 { --choices: 4; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
