:root {
    color-scheme: light;
    font: 500 16px/1.5 "Nunito", "Segoe UI", sans-serif;
    color: #263e34;
    background: #fff9e9;
    --green: #235f42;
    --dark: #1a4933;
    --cream: #fffdf5;
    --line: #e6e2ce;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 0 20px 30px; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #1663a0; outline-offset: 4px; }
button:disabled { cursor: default; }

.masthead, .game { width: min(100%, 780px); margin: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 12px; }
.brand { border: 0; background: transparent; padding: 10px 0; font-size: 1.35rem; font-weight: 850; letter-spacing: -.04em; }
.brand span { margin-right: 5px; }
.sound, .repeat, .secondary {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 7px 15px;
    background: var(--cream);
    font-weight: 750;
}
.sound span:first-child { color: var(--green); font-size: 1.2em; }
.sound[aria-pressed="false"] { color: #5f6259; }

.meadow { position: relative; height: clamp(144px, 27vh, 226px); overflow: hidden; border-radius: 30px 30px 0 0; background: #ccebea; isolation: isolate; }
.sun { position: absolute; top: 20px; right: 15%; width: 61px; aspect-ratio: 1; border-radius: 50%; background: #ffd46d; box-shadow: 0 0 0 10px #fff2b85c; }
.cloud { position: absolute; width: 84px; height: 18px; border-radius: 24px; background: #f8fffa; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 32px; height: 34px; top: -17px; left: 18px; }
.cloud::after { width: 23px; height: 24px; top: -8px; right: 12px; }
.cloud-left { left: 11%; top: 42px; }
.cloud-right { right: 31%; top: 33px; transform: scale(.62); }
.hill { position: absolute; border-radius: 50%; }
.hill-back { background: #a8cf8f; width: 110%; height: 108%; left: -28%; top: 57%; }
.hill-front { background: #79ad78; width: 111%; height: 102%; right: -26%; top: 65%; transform: rotate(-5deg); }
.rabbit { position: absolute; bottom: 5%; left: clamp(18px, 12%, 100px); font: 4.85rem/1 "Segoe UI Emoji", sans-serif; filter: drop-shadow(0 7px 0 #3a694643); }
.grass { position: absolute; font-size: 1.4rem; color: #f9e9a2; }
.grass-left { left: 33%; bottom: 4%; transform: rotate(-15deg); }
.grass-right { right: 12%; bottom: 15%; transform: rotate(16deg); }
.flower { --petal: #fff7d4; position: absolute; bottom: -11px; left: 59%; width: 144px; height: 162px; transform-origin: bottom center; }
.stem { position: absolute; bottom: 0; left: 67px; width: 10px; height: 107px; background: #347851; border-radius: 30px; }
.leaf { position: absolute; width: 34px; height: 19px; bottom: 26px; background: #3e8561; }
.leaf-left { left: 36px; border-radius: 5px 100% 5px 100%; transform: rotate(12deg); }
.leaf-right { right: 35px; bottom: 38px; border-radius: 100% 5px 100% 5px; transform: rotate(-10deg); }
.petals { position: absolute; width: 144px; height: 144px; top: -17px; }
.petals i { position: absolute; top: 30px; left: 50px; width: 44px; height: 48px; border-radius: 51% 50% 47% 45%; background: var(--petal); opacity: .55; transform: rotate(var(--angle)) translateY(-28px) scale(.79); transform-origin: 50% 42px; transition: background .28s, opacity .28s, transform .35s; }
.petals i.bloom { background: #fa9f92; opacity: 1; transform: rotate(var(--angle)) translateY(-28px) scale(1); }
.flower-center { position: absolute; display: grid; place-items: center; top: 27px; left: 44px; width: 56px; height: 56px; border-radius: 50%; background: #ffd46d; color: #624123; font: 850 1.63rem/1 "Nunito", "Segoe UI", sans-serif; box-shadow: inset 0 -4px #ecab4a; }

.panel { position: relative; margin-top: -1px; min-height: 270px; padding: clamp(21px, 5vw, 42px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 29px 29px; background: var(--cream); text-align: center; box-shadow: 0 7px #eee7ce; }
.panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.step { color: var(--green); background: #e8f1da; border-radius: 100px; padding: 6px 13px; font-weight: 800; }
.repeat { margin-left: auto; }
h1 { margin: 6px 0 6px; color: var(--dark); font-size: clamp(1.85rem, 5vw, 3.3rem); letter-spacing: -.06em; line-height: 1.13; }
.panel-top:has(.step:not([hidden])) + h1 { margin-top: 16px; font-size: clamp(1.65rem, 4.4vw, 2.65rem); }
.prompt { margin: 10px 0 15px; color: #43594b; font-size: clamp(1.02rem, 2.4vw, 1.21rem); }
.sample { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 auto 15px; }
.model, .slot, .reveal { display: inline-grid; place-content: center; min-width: 51px; min-height: 51px; padding: 1px 12px; border-radius: 15px; background: #fff0bd; color: #684b24; font-size: 2rem; font-weight: 850; line-height: 1; }
.model-text { display: block; }
.model mark, .reveal mark { background: #caefb3; border-radius: 4px; color: #245738; }
.slot { border: 2px dashed #ced9b8; background: #f3f6e9; color: var(--dark); }
.slot.current { border-color: #4d875a; border-style: solid; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(7px, 2.2vw, 16px); }
.choice { display: grid; place-items: center; gap: 4px; width: clamp(74px, 19vw, 130px); min-height: 70px; padding: 7px; border: 2px solid #dfdfc8; border-radius: 19px; background: #fffdf4; box-shadow: 0 4px #e8e5d0; color: var(--dark); font-size: 2rem; font-weight: 850; }
.choice.picture { width: clamp(105px, 28vw, 161px); min-height: 107px; }
.choice.selected { border-color: #397365; background: #ecf5e8; }
.choice.guided, .choice.correct { border-color: #3b7b47; background: #dff0d6; box-shadow: 0 4px #b8d3a9; }
.choice:not(:disabled):active, .primary:not(:disabled):active { transform: translateY(2px); }
.picture-art { display: grid; place-items: center; min-height: 58px; font: 3.2rem/1.12 "Segoe UI Emoji", sans-serif; }
.table-art { position: relative; display: block; width: 68px; height: 14px; border-radius: 8px 8px 4px 4px; background: #b77343; box-shadow: inset 0 -4px #895432; transform: translateY(-10px); }
.table-art::before, .table-art::after { content: ""; position: absolute; top: 12px; width: 8px; height: 29px; border-radius: 0 0 3px 3px; background: #9c613a; }
.table-art::before { left: 7px; }
.table-art::after { right: 7px; }
.lamp-art { position: relative; display: block; width: 66px; height: 58px; }
.lamp-art::before { content: ""; position: absolute; inset: 0 6px auto; height: 34px; background: #d27741; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); border-radius: 5px; }
.lamp-art::after { content: ""; position: absolute; bottom: 0; left: 16px; width: 34px; height: 27px; background: #6c5941; clip-path: polygon(42% 0, 58% 0, 58% 76%, 100% 76%, 100% 100%, 0 100%, 0 76%, 42% 76%); }
.mini-speaker { font-size: .95rem; line-height: 1.15; }
.feedback { min-height: 25px; margin: 14px 0 9px; color: var(--dark); font-weight: 750; }
.feedback:empty { min-height: 0; margin: 0; }
.actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 19px; }
.actions:has(button[hidden] + button[hidden]) { margin-top: 0; }
.primary { min-height: 53px; min-width: 143px; border: 0; border-radius: 17px; padding: 10px 21px; background: var(--green); color: white; box-shadow: 0 5px var(--dark); font-size: 1.11rem; font-weight: 850; }
.primary:disabled { background: #e9ede0; color: #526552; box-shadow: 0 4px #d9dfd0; }
.garden-progress { min-height: 23px; margin: 16px 0 0; text-align: center; color: #495e4b; font-weight: 700; }

@media (max-width: 420px) {
    body { padding-inline: 12px; }
    .masthead { min-height: 62px; }
    .flower { left: 52%; transform: scale(.83); }
    .rabbit { font-size: 3.85rem; }
    .panel { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
