/* Claim page as a farm quest: a plant grows with every move. Animations use transform and opacity only. */
.quest { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 26px; }
.quest > .live { grid-column: 1 / -1; }
@media (max-width: 900px) { .quest { grid-template-columns: 1fr; gap: 14px; padding-top: 12px; } }
.hero-txt h1 { margin-top: 10px; }
.side .flow, .side .board { max-width: none; margin: 18px 0 0; }

/* the scene */
.scene { position: sticky; top: 84px; height: 440px; border: 2px solid var(--line); box-shadow: 0 4px 0 #06100b; overflow: hidden; background: linear-gradient(180deg, rgba(10, 20, 34, .35) 0%, rgba(16, 36, 26, .55) 60%, #10241a 100%), url(/media/hero.jpg) center 38% / cover no-repeat #10241a; }
@media (max-width: 900px) { .scene { position: relative; top: 0; height: 250px; } }
.sc-sky .star { position: absolute; width: 3px; height: 3px; background: #e9ff8a; animation: blink 2.4s steps(2) infinite; }
.s1 { left: 14%; top: 12%; } .s2 { left: 72%; top: 20%; animation-delay: .8s !important; } .s3 { left: 44%; top: 8%; animation-delay: 1.5s !important; }
.sc-farmer { position: absolute; left: 7%; bottom: 60px; width: 110px; height: 110px; image-rendering: pixelated; transform-origin: 50% 100%; }
.sc-farmer.hop { animation: hop .5s steps(5); }
@keyframes hop { 50% { transform: translateY(-22px); } }
.sc-bubble { position: absolute; left: 6%; right: 6%; top: 14px; margin: 0; padding: 12px 14px; background: #eaf5ea; color: #0b1410; font: 600 14px/1.4 var(--f-body); box-shadow: 0 4px 0 #06100b; }
.sc-bubble::after { content: ""; position: absolute; left: 44px; bottom: -10px; width: 12px; height: 12px; background: #eaf5ea; box-shadow: 0 4px 0 #06100b; }
.sc-bubble.say { animation: say .35s steps(4); }
@keyframes say { from { opacity: 0; transform: translateY(8px); } }
.sc-plot { position: absolute; right: 8%; bottom: 0; width: 200px; height: 290px; }
@media (max-width: 900px) { .sc-farmer { width: 72px; height: 72px; bottom: 44px; } .sc-plot { transform: scale(.62); transform-origin: 100% 100%; right: 6%; } .sc-bubble { font-size: 13px; padding: 9px 11px; right: 34%; } }
.soil { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: repeating-linear-gradient(180deg, #4b3221 0 14px, #35231a 14px 18px), #4b3221; box-shadow: 0 -4px 0 #5e4129, inset 0 0 0 4px #35231a; }
.sign { position: absolute; left: 82px; bottom: 60px; width: 36px; height: 36px; background: #6b4a30; color: #eaf5ea; font: 400 16px/36px var(--f-display); text-align: center; font-style: normal; box-shadow: 0 0 0 4px #35231a; transition: opacity .3s; }
.mound { position: absolute; left: 76px; bottom: 58px; width: 48px; height: 18px; background: #6b4a30; box-shadow: 0 -6px 0 -2px #8a6240; opacity: 0; transition: opacity .3s; }
.stem { position: absolute; left: 95px; bottom: 62px; width: 10px; height: 170px; background: #2f8a43; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s steps(8); }
.leaf { position: absolute; width: 44px; height: 22px; background: #49c45f; box-shadow: inset 0 -6px 0 #2f8a43, inset 8px 0 0 #7fe38a; opacity: 0; transform: scale(0); transition: transform .5s steps(5), opacity .2s; }
.l1 { left: 52px; bottom: 96px; transform-origin: 100% 50%; } .l2 { left: 104px; bottom: 122px; transform-origin: 0 50%; }
.l3 { left: 52px; bottom: 150px; transform-origin: 100% 50%; } .l4 { left: 104px; bottom: 176px; transform-origin: 0 50%; } .l5 { left: 52px; bottom: 200px; transform-origin: 100% 50%; }
.fruit { position: absolute; left: 106px; bottom: 56px; width: 96px; height: 96px; image-rendering: pixelated; opacity: 0; transform: scale(0); transform-origin: 30% 100%; transition: transform .6s steps(6), opacity .2s; }
[data-stage="0"] .sign { opacity: 1; } .scene:not([data-stage="0"]) .sign { opacity: 0; }
.scene:not([data-stage="0"]) .mound { opacity: 1; }
[data-stage="2"] .stem { transform: scaleY(.22); } [data-stage="3"] .stem { transform: scaleY(.45); } [data-stage="4"] .stem { transform: scaleY(.68); }
[data-stage="5"] .stem { transform: scaleY(.86); } [data-stage="6"] .stem, [data-stage="7"] .stem, [data-stage="8"] .stem { transform: scaleY(1); }
[data-stage="3"] .l1, [data-stage="4"] .l1, [data-stage="5"] .l1, [data-stage="6"] .l1, [data-stage="7"] .l1, [data-stage="8"] .l1,
[data-stage="4"] .l2, [data-stage="5"] .l2, [data-stage="6"] .l2, [data-stage="7"] .l2, [data-stage="8"] .l2,
[data-stage="5"] .l3, [data-stage="6"] .l3, [data-stage="7"] .l3, [data-stage="8"] .l3,
[data-stage="6"] .l4, [data-stage="7"] .l4, [data-stage="8"] .l4, [data-stage="6"] .l5, [data-stage="7"] .l5, [data-stage="8"] .l5 { opacity: 1; transform: scale(1); }
[data-stage="5"] .fruit { opacity: 1; transform: scale(.45); } [data-stage="6"] .fruit { opacity: 1; transform: scale(.8); }
[data-stage="7"] .fruit, [data-stage="8"] .fruit { opacity: 1; transform: scale(1.15); }
[data-stage="8"] .fruit { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.2); animation: ripe 1s steps(4) infinite; }
@keyframes ripe { 50% { transform: scale(1.22); } }
.sc-fx { position: absolute; inset: 0; pointer-events: none; }
.sc-fx b { position: absolute; font: 400 12px/1 var(--f-display); color: var(--accent); text-shadow: 0 2px 0 #000; animation: floatUp 1.1s steps(8) forwards; white-space: nowrap; }
.sc-fx img { position: absolute; width: 24px; height: 24px; image-rendering: pixelated; animation: coinUp 1s steps(8) forwards; }
@keyframes floatUp { to { opacity: 0; transform: translateY(-46px); } }
@keyframes coinUp { 0% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x, 0), -150px); } }
.offscreen .star, .offscreen .fruit { animation-play-state: paused !important; }

/* growth meter, quest card, basket */
.meter { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.meter .prog-label { margin: 0; }
.rank { margin: 0; padding: 6px 8px; background: var(--gold); color: #221a00; font: 400 9px/1 var(--f-display); box-shadow: 0 3px 0 #06100b; }
.rank.up { animation: say .35s steps(4); }
.prog { height: 16px !important; background: repeating-linear-gradient(90deg, #06100b 0 14px, #12241a 14px 16px) !important; }
.prog i { background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #2f8a43 14px 16px) !important; transition: transform .8s steps(8) !important; }
.stepcard { margin-top: 14px; padding: 22px !important; background: #121d18 !important; }
.stepcard .kick { background: var(--accent) !important; color: var(--accent-ink) !important; padding: 7px 9px !important; }
.stepcard .line { color: #c8dccd; }
.basket-t { margin: 18px 0 0; font: 400 9px/1 var(--f-display); color: var(--mute); }
.done-chips { min-height: 40px; margin: 8px 0 0 !important; padding: 8px !important; border: 2px dashed var(--line); gap: 6px !important; }
.done-chips:empty::before { content: "Empty. Every move adds a crop."; color: var(--mute); font-size: 13px; padding: 4px; }
.done-chips li { display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px !important; background: #16301f !important; color: #eaf5ea !important; border: 2px solid #2f7a48; font: 600 12px/1 var(--f-mono) !important; }
.done-chips li::before { content: ""; width: 22px; height: 22px; background: url(/media/radish.png) center / contain no-repeat; image-rendering: pixelated; }
.done-chips li:nth-child(5n+2)::before { background-image: url(/media/carrot.png); } .done-chips li:nth-child(5n+3)::before { background-image: url(/media/tomato.png); }
.done-chips li:nth-child(5n+4)::before { background-image: url(/media/corn.png); } .done-chips li:nth-child(5n+5)::before { background-image: url(/media/pumpkin.png); }
.board .bd-top img { image-rendering: auto; }
.live { margin-top: 44px !important; }
.sf-badge { background: var(--gold) !important; color: #221a00 !important; }
.sentfx h2 { color: var(--gold) !important; font: 400 clamp(28px, 7vw, 60px)/1.2 var(--f-display) !important; }
