@font-face{font-family:pixel;src:url('/sentence-game/pixel.woff')}@font-face{font-family:jua;src:url('/jua.ttf')}*{box-sizing:border-box}body{margin:0;background:#faf6e7;color:#343d41;font-family:system-ui,sans-serif}header,main{max-width:640px;margin:auto;padding:14px 16px}header{display:flex;justify-content:space-between}a{color:#476853;font-size:14px;font-weight:700;text-decoration:none}main{padding-top:0}h1{font:clamp(25px,5vw,36px) pixel,monospace;text-align:center;color:#3d4544;margin:10px 0 18px}em{font-style:normal;color:#ae536d}.arcade{border:3px solid #394944;box-shadow:4px 5px #c4c5aa;background:#fffdf5}.hud{height:36px;background:#374d49;color:white;padding:3px 12px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.hud button{background:none;border:1px solid #abc7b5;color:white;padding:3px 10px}.prompt{text-align:center;padding:10px 8px;min-height:84px}h2{font:clamp(20px,4vw,26px) jua,sans-serif;margin:0 0 3px}#sentence{color:#4f7159;font-weight:750;overflow-wrap:anywhere}#field{height:clamp(220px,47svh,420px);background:linear-gradient(#54bfed,#b4edfa);position:relative;overflow:hidden;isolation:isolate;touch-action:manipulation}.clouds,#drops{position:absolute;inset:0;pointer-events:none}.clouds{display:flex;justify-content:space-around;padding-top:9px}.clouds i{width:24%;height:36px;background:#fcffff;box-shadow:inset 0 -6px #d4eff3;clip-path:polygon(0 75%,10% 75%,10% 46%,24% 46%,24% 23%,36% 23%,36% 0,60% 0,60% 21%,75% 21%,75% 46%,88% 46%,88% 67%,100% 67%,100% 100%,0 100%)}.hills{position:absolute;bottom:7%;width:100%;height:48px;background:#74b754;clip-path:polygon(0 70%,8% 70%,8% 50%,12% 50%,12% 32%,18% 32%,18% 52%,23% 52%,23% 76%,35% 76%,35% 90%,66% 90%,66% 68%,73% 68%,73% 50%,80% 50%,80% 25%,87% 25%,87% 45%,93% 45%,93% 67%,100% 67%,100% 100%,0 100%)}.ground{position:absolute;bottom:0;width:100%;height:8%;background:repeating-linear-gradient(100deg,#996847 0 14px,#a97750 14px 22px);border-top:8px solid #8ec647}#cat{position:absolute;width:33.333%;bottom:7%;left:33.333%;text-align:center;transition:left .13s}canvas{display:block;width:64px;height:auto;margin:auto;image-rendering:pixelated}#reaction{position:absolute;bottom:94%;left:40%;color:#c84463;font:bold 25px monospace;text-shadow:1px 2px white}.drop{position:absolute;top:0;width:31%;margin-left:1.15%;padding:7px 2px;text-align:center;background:#f1fbff;border:2px solid #4388a5;border-radius:3px 12px 12px;box-shadow:2px 3px #397c9470;color:#20465b;font-weight:800;line-height:1.15;overflow-wrap:anywhere}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#c6f1fa44}.card{text-align:center;background:#fffbed;border:3px solid #435651;box-shadow:4px 4px #37606b77;padding:15px;max-width:89%}.card strong{font:20px pixel,monospace}.card p{margin:7px auto 12px;font-size:14px;word-break:keep-all}button{font:inherit;cursor:pointer;touch-action:manipulation}#action{background:#416b56;color:white;font-weight:800;border:2px solid #344d40;padding:9px 20px;box-shadow:2px 2px #abbca8}#controls{display:flex}#controls button{flex:1;border:0;border-right:1px solid #c2cec0;background:#eef2db;color:#52654e;font-weight:700;min-height:44px}#controls button:active{background:#c4e0bb}.hint{text-align:center;font-size:13px;color:#58665c}.sr{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}[hidden]{display:none!important}@media(prefers-reduced-motion:reduce){#cat{transition:none}}
.drop{border-radius:12px;background:#e6f9ff}
.drop::before{content:"";position:absolute;left:calc(50% - 5px);top:-6px;width:8px;height:8px;background:#e6f9ff;border-top:2px solid #4388a5;border-left:2px solid #4388a5;transform:rotate(45deg)}

.clouds i:nth-child(1){width:28%;height:32px;transform:translateY(9px);clip-path:polygon(0 65%,9% 65%,9% 35%,22% 35%,22% 12%,38% 12%,38% 0,52% 0,52% 30%,67% 30%,67% 43%,84% 43%,84% 70%,100% 70%,100% 100%,0 100%)}
.clouds i:nth-child(2){width:19%;height:25px;transform:translateY(-4px);background:#eaf9ff;clip-path:polygon(0 70%,14% 70%,14% 44%,34% 44%,34% 18%,47% 18%,47% 0,67% 0,67% 23%,78% 23%,78% 52%,91% 52%,91% 73%,100% 73%,100% 100%,0 100%)}
.clouds i:nth-child(3){height:42px;width:30%;transform:translateY(3px)}
.colored-sentence{display:block;font-weight:800;font-size:clamp(16px,3.6vw,21px);line-height:1.75}
.phrase{padding:1px 4px;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.subject{color:#982d36;background:#ffe0de}.verb{color:#20589b;background:#dceaff}.object{color:#226445;background:#d7efdd}.complement{color:#96376f;background:#ffe0f0}.modifier{color:#785600;background:#ffed99}
#instruction .colored-sentence+.colored-sentence{margin-top:5px}
.card{max-height:100%;overflow:auto}
#hearts{display:flex;gap:5px;align-items:center}
#hearts i{position:relative;width:18px;height:16px;background:#f7a7bf;clip-path:polygon(0 16%,12% 16%,12% 0,38% 0,38% 14%,61% 14%,61% 0,88% 0,88% 16%,100% 16%,100% 49%,86% 49%,86% 65%,72% 65%,72% 80%,60% 80%,60% 94%,40% 94%,40% 80%,28% 80%,28% 65%,14% 65%,14% 49%,0 49%)}
#hearts .empty:after{content:"";position:absolute;inset:2px;background:#374d49;clip-path:inherit}
#controls button{font-size:20px}
#field.finished #cat{width:100%;left:0!important;bottom:10%;transition:none}
.finished canvas{width:clamp(100px,26vw,150px)}
#replay{display:block;width:100%;background:#e5f3de;color:#315943;border:0;font-size:29px;font-weight:800}
@media(prefers-reduced-motion:no-preference){.finished canvas{transform-origin:center bottom;animation:cat-pop .65s ease-out}@keyframes cat-pop{0%{transform:scale(.48,.55)}45%{transform:translateY(-15px) scale(1.08)}78%{transform:scale(.97,.93)}100%{transform:scale(1)}}}
body{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
header,main{width:100%;max-width:none;margin:0}
header{padding:6px 12px}
main{padding:0;display:flex;flex:1;min-height:0;flex-direction:column}
h1{font-size:clamp(19px,3vh,30px);margin:2px 0 5px}
.arcade{display:flex;flex:1;min-height:0;flex-direction:column;border:0;box-shadow:none}
#field{flex:1;min-height:0;height:auto}
.hud,.prompt,#controls,#replay{flex:none}
.hint{margin:2px 0}
body.in-play h1,body.in-play .hint{display:none}
@media(max-height:450px){.prompt{min-height:0;padding:2px}.hud{height:28px}header{padding-block:2px}.hint{display:none}canvas{width:45px}}

#countdown{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
#countdown span{font:clamp(60px,16vw,96px) pixel,monospace;color:#fffbed;text-shadow:3px 4px #365448,-2px -2px #365448}
@media(prefers-reduced-motion:no-preference){
  #countdown span{animation:count-in .8s ease-out both}
  @keyframes count-in{from{opacity:.2;transform:scale(1.35)}25%{opacity:1}to{transform:scale(1)}}
}
.hud{gap:8px}
#sound{margin-left:auto}
.prompt{background:linear-gradient(#a4e4f8,#54bfed);min-height:0;padding:8px 12px 3px}
.prompt h2{color:#203f4d;line-height:1.15}
#sentence{color:#214a55;line-height:1.35}
/* Menus and records scroll; the playfield keeps a usable touch target. */
body{height:auto;min-height:100dvh}main{flex:none}.arcade{flex:none}#field{flex:none;height:clamp(300px,52svh,520px)}.panel{padding:14px 18px;background:#fffdf5;border-bottom:1px solid #d6dfcf}.panel p{font-size:13px;line-height:1.6;margin:8px 0}.settings{display:flex;gap:10px;flex-wrap:wrap}.settings label{display:flex;flex:1;min-width:130px;flex-direction:column;gap:5px;font-size:13px;font-weight:700}select,input{font:inherit;border:1px solid #9eae9d;border-radius:7px;padding:9px;background:white;color:#31473b;min-width:0}button:disabled{opacity:.55;cursor:wait}.ranking-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ranking-head h2{margin:0;flex:1}.panel button,#change-mode{padding:10px;border:1px solid #9eae9d;border-radius:6px;background:#edf3df;color:#315943}#change-mode{margin:8px 16px}.board-list{list-style:none;padding:0;margin:0}.board-list li{padding:12px 4px;border-bottom:1px solid #e1e7d7}.be-note{display:block;font:12px system-ui;margin-top:4px;color:#334f5e}#pattern{font-size:11px;line-height:2}#pattern .current{outline:2px solid #354d43;outline-offset:1px}.drop small{display:block;font-size:10px;margin-top:4px}.drop.subject{background:#ffe0de;color:#982d36}.drop.verb{background:#dceaff;color:#20589b}.drop.object{background:#d7efdd;color:#226445}.drop.complement{background:#ffe0f0;color:#96376f}.drop.modifier{background:#ffed99;color:#785600}body.in-play{height:100dvh}body.in-play main{flex:1;min-height:0}body.in-play .arcade{flex:1;min-height:0}body.in-play #field{flex:1;height:auto;min-height:160px}body.in-play #rankings{display:none}#result{border-top:3px solid #b5cda8}#timer{white-space:nowrap;font-size:12px}@media(min-width:800px){main,header{max-width:760px;margin:auto}}

/* One scene at a time: story → prepare → play → result. */
body{background:#bce5ed;background-image:radial-gradient(#86bac52b .8px,transparent .8px);background-size:13px 13px;color:#503c31;min-height:100dvh}
header{max-width:720px;padding:18px 20px;margin:0 auto}main{max-width:680px;margin:0 auto;padding:0 20px 35px;display:block}
#intro,#setup,.arcade,#result-actions,#rankings{display:none}
body[data-screen=intro] #intro,body[data-screen=setup] #setup,body[data-screen=game] .arcade,body[data-screen=result] .arcade,body[data-screen=result] #result-actions,body[data-screen=result] #rankings{display:block}
#intro{text-align:center;padding-top:22px}.eyebrow{font:13px pixel,monospace;letter-spacing:2px;color:#ac5671;margin:12px 0 24px}
#intro h1{font:clamp(30px,7.5vw,50px) pixel,monospace;color:#503c31;line-height:1.4;text-shadow:2px 3px #97c5ce;margin:0 0 26px}#intro em{color:inherit}
.story-bubble{position:relative;background:#fffdf1;border:3px solid #655343;box-shadow:4px 4px #aa9c83;padding:21px 10px;font:clamp(15px,3.5vw,21px)/1.85 pixel,monospace;word-break:keep-all}
.story-bubble:after{content:'';position:absolute;bottom:-12px;left:calc(50% - 9px);width:18px;height:18px;background:#fffdf1;border-right:3px solid #655343;border-bottom:3px solid #655343;transform:rotate(45deg)}
.intro-art{position:relative;width:min(100%,320px);aspect-ratio:1.25;margin:20px auto 8px;overflow:hidden;mix-blend-mode:normal}.intro-art img{position:absolute;width:146%;max-width:none;height:auto;left:-23%;top:-32%;display:block}
.profile,.prep{background:#fffdf8;border:3px solid #655343;box-shadow:5px 5px #b9c8ba;padding:23px;margin:10px auto 0}.profile label{display:block;font:17px pixel,monospace;margin:0 0 15px}.profile input{width:100%;border:2px solid #8a826b;background:#f7f6eb;text-align:center;border-radius:0;font:24px pixel,monospace;padding:15px 12px;min-height:58px}.profile input::placeholder{font:16px system-ui;color:#837d6d}#nickname-note{font-size:11px;color:#796e60;line-height:1.5;margin:9px 0 16px}
.primary{display:block;width:100%;border:2px solid #344d3b;background:#496d53;color:#fffef5;box-shadow:3px 4px #294631;padding:16px 8px;font:clamp(17px,4.3vw,23px) pixel,monospace;min-height:55px}.quiet{border:0;background:none;box-shadow:none;color:#5a705c;font-size:14px;padding:12px;min-height:44px}
.prep{text-align:center;margin-top:25px;padding:25px 24px}.prep>.quiet{display:block;margin:-10px 0 15px -12px}.prep h2{font:clamp(24px,6vw,32px) pixel,monospace;line-height:1.4;margin:0 0 28px}.prep .eyebrow{font-size:11px;margin-bottom:18px}.settings{display:grid;grid-template-columns:1fr;gap:20px;text-align:left}.settings label{font-size:14px;gap:9px}.settings select{width:100%;border:1px solid #a9ae98;border-radius:0;background:#faf9ef;padding:13px 10px;font-size:16px;min-height:48px}.move-guide{font-size:15px;line-height:1.9;margin:26px 0 10px;color:#5a6656}.round-rule{font-size:13px;color:#8a7c68;margin:0 0 22px}.help{text-align:left;border-top:1px solid #e2dece;padding:16px 0;margin:0 0 13px;font-size:13px;line-height:1.7}.help summary{cursor:pointer;color:#637363}.help p{font-size:12px;color:#6d7568}.help #legend{margin-top:14px;line-height:2}.error{font-size:13px;color:#a43348;line-height:1.6}.error:empty{display:none}
body[data-screen=game]{background:#bfe6ef;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}body[data-screen=game] header{padding:7px 12px;width:100%;max-width:760px;flex:none}body[data-screen=game] main{max-width:760px;width:100%;padding:0;display:flex;flex:1;min-height:0;margin:0 auto}body[data-screen=game] .arcade{display:flex;flex-direction:column;flex:1;min-height:0;background:#c7e8ef}body[data-screen=game] #field{flex:1;min-height:130px;height:auto;background:linear-gradient(#bfe6ef,#d9f0ed)}
.hud{height:34px;background:#c7e8ef;color:#4b655d;padding:4px 12px;gap:10px}.hud button{min-width:36px;min-height:28px;padding:2px 6px;border:0;background:transparent;color:#4b655d;font-size:20px;line-height:1;box-shadow:none}.hud #sound{margin-left:auto}.hud #timer{font-size:12px;font-weight:600}.hud #hearts{gap:4px}.hud #hearts i{width:14px;height:13px;background:#c77691}.hud #hearts .empty:after{background:#c7e8ef}
.prompt{background:#c7e8ef;padding:9px 10px 7px;flex:none;min-height:75px}.prompt h2{font-family:jua,sans-serif;font-size:clamp(21px,5.2vw,28px);color:#344d50;line-height:1.45;margin:0 0 3px}.prompt .phrase{padding:0 2px;background:transparent;box-shadow:none}.prompt .subject{color:#a4323c}.prompt .verb{color:#245c9b}.prompt .object{color:#267348}.prompt .complement{color:#a33f7d}.prompt .modifier{color:#806000}#sentence{font-size:16px;font-weight:650;min-height:24px;color:#426760;line-height:1.5}
.clouds{opacity:.85}.clouds i{box-shadow:none}.hills{background:#a5c899}.ground{background:#c3b39b;border-top:7px solid #aac78c}.drop{box-shadow:1px 2px #70949a45;border:1px solid #7ba5af;border-radius:10px;background:#f3faf9;color:#345761;font-size:clamp(17px,4.5vw,22px);padding:9px 2px;font-weight:750}.drop:before{display:none}.drop.subject{background:#f7e5e4;color:#982d36}.drop.verb{background:#e6eefb;color:#20589b}.drop.object{background:#e4f0df;color:#226445}.drop.complement{background:#f8e5ee;color:#96376f}.drop.modifier{background:#f9f0cc;color:#785600}#controls{border-top:1px solid #a6bfac}#controls button{min-height:48px;background:#e4eddb;color:#56745b;font-size:23px}
body[data-screen=result] .arcade{margin:16px auto 0;background:none}body[data-screen=result] .hud{display:none}body[data-screen=result] #field{height:190px;min-height:0;background:none;flex:none}body[data-screen=result] .clouds,body[data-screen=result] .ground,body[data-screen=result] .hills{display:none}body[data-screen=result] #cat{bottom:12px}body[data-screen=result] .finished canvas{width:105px}body[data-screen=result] #result{text-align:center;border:0;background:none;padding:15px 0}#result h2{font:clamp(20px,4.6vw,27px)/1.6 pixel,monospace;margin:0 0 20px}#result p{font-size:15px;margin:9px 0}#result #save-status{font-size:12px;color:#637b6d}#result-actions{text-align:center;max-width:420px;margin:8px auto 20px}#replay{font-size:20px;background:#496d53;color:#fffef5;border:2px solid #344d3b}#change-mode{display:inline-block;border:0;background:none;margin:10px auto 0;font-size:14px}#rankings{background:#fffdf5;border:1px solid #9eafa1;padding:16px;margin:25px 0 0}#rankings>summary{cursor:pointer;font-size:14px;color:#526d58;min-height:25px;font-weight:700}#rankings .ranking-head{margin-top:20px}#rankings .ranking-head h2{font-size:20px}#rankings p{font-size:12px}.card{background:#fffdf1;border:2px solid #637263;box-shadow:3px 3px #6b8c8055}.card strong{font-size:19px}.card p{font-size:13px}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a64f6f;outline-offset:3px}h1:focus,h2:focus{outline:none}
@media(max-width:420px){header{padding:14px 16px}main{padding:0 16px 25px}#intro{padding-top:15px}.eyebrow{font-size:11px;margin-bottom:20px}.story-bubble{padding:17px 8px}.intro-art{width:250px;margin-top:22px}.profile{padding:20px 18px}.prep{padding:22px 18px;margin-top:15px}}
@media(max-height:550px){body[data-screen=game] header{display:none}.prompt{padding:3px 8px;min-height:0}.prompt h2{font-size:18px}#sentence{font-size:14px}#controls button{min-height:32px}.hud{height:28px}}
.intro-art img{top:-38%;filter:brightness(1.08) saturate(1.15)}
/* A quiet, single-play rain story; the final flower stays visible. */
.rain-story{position:relative;width:min(100%,380px);height:300px;margin:18px auto 8px;overflow:hidden;isolation:isolate}
.rain-walker{position:absolute;left:calc(50% - 90px);bottom:0;width:180px;height:290px;mix-blend-mode:normal}
.rain-bounce{position:relative;width:100%;height:100%}
.rain-bounce img{position:absolute;width:440px;height:440px;max-width:none;left:-132px;top:-70px;clip-path:polygon(44% 18%,64% 18%,64% 34%,61% 34%,69% 48%,70% 66%,64% 73%,63% 82%,35% 82%,35% 73%,30% 65%,31% 56%,32% 48%,40% 34%,44% 34%);filter:brightness(1.08) saturate(1.12);display:block}
.sprout-frame{opacity:0}.flower-frame{opacity:1}
.story-rain{position:absolute;inset:0;pointer-events:none;opacity:0}
.story-rain i{position:absolute;top:-20px;left:12%;height:12px;width:5px;background:#6aaac8;border-radius:1px;box-shadow:2px 2px #d6f2f6;transform:rotate(14deg)}
.story-rain i:nth-child(2){left:26%}.story-rain i:nth-child(3){left:40%}.story-rain i:nth-child(4){left:54%}.story-rain i:nth-child(5){left:68%}.story-rain i:nth-child(6){left:82%}.story-rain i:nth-child(7){left:94%}
@media(prefers-reduced-motion:no-preference){
body[data-screen=intro] .rain-story.ready .rain-walker{animation:rain-stroll 7.5s ease-in-out both}
body[data-screen=intro] .rain-story.ready .rain-bounce{animation:rain-step .55s ease-in-out 10}
body[data-screen=intro] .rain-story.ready .sprout-frame{animation:sprout-fade 7.5s linear both}
body[data-screen=intro] .rain-story.ready .flower-frame{animation:flower-open 7.5s ease-out both;transform-origin:50% 42%}
body[data-screen=intro] .rain-story.ready .story-rain{animation:rain-weather 7.5s linear both}
body[data-screen=intro] .rain-story.ready .story-rain i{animation:story-raindrop 1.45s linear 4;animation-delay:0s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(2){animation-delay:.6s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(3){animation-delay:.25s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(4){animation-delay:.9s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(5){animation-delay:.45s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(6){animation-delay:1.1s}
body[data-screen=intro] .rain-story.ready .story-rain i:nth-child(7){animation-delay:.75s}
}
@keyframes rain-stroll{0%,8%{transform:translateX(0)}30%{transform:translateX(-54px)}57%{transform:translateX(54px)}75%,100%{transform:translateX(0)}}
@keyframes rain-step{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(-1deg)}}
@keyframes sprout-fade{0%,75%{opacity:1}84%,100%{opacity:0}}
@keyframes flower-open{0%,75%{opacity:0;transform:scale(.98)}85%{opacity:1;transform:scale(1.02)}93%,100%{opacity:1;transform:scale(1)}}
@keyframes rain-weather{0%{opacity:0}8%,72%{opacity:.65}90%,100%{opacity:0}}
@keyframes story-raindrop{from{transform:translate(0,0) rotate(14deg)}to{transform:translate(-30px,310px) rotate(14deg)}}
@media(max-width:360px){.rain-story{height:280px}.rain-walker{bottom:-10px;scale:.92}}
.rain-story{isolation:auto;mix-blend-mode:normal}.rain-walker{mix-blend-mode:normal}
/* The original game landscape, rebuilt from its native pixel scenery. */
body[data-screen=intro]{background:#faf6e7}
body[data-screen=intro] main{max-width:760px;padding:0 0 26px}
body[data-screen=intro] header{max-width:760px}
#intro{position:relative;padding:90px 22px 0;isolation:isolate}
.intro-sky{position:absolute;inset:0 0 auto;height:calc(100% - 242px);min-height:550px;z-index:-2;overflow:hidden;background:linear-gradient(#54bfed,#b4edfa)}
.intro-sky .clouds{opacity:1;padding-top:16px;gap:12%;padding-inline:4%}
.intro-sky .clouds i{width:28%;height:40px;background:#fcffff;box-shadow:inset 0 -6px #d4eff3;flex-shrink:0}
.intro-sky .clouds i:nth-child(2){width:19%;height:29px;transform:translateY(-4px)}
.intro-sky .clouds i:nth-child(3){width:30%;height:43px}
.intro-sky .hills{bottom:40px;height:52px;background:#74b754}
.intro-sky .ground{height:42px;background:repeating-linear-gradient(100deg,#996847 0 14px,#a97750 14px 22px);border-top:8px solid #8ec647}
#intro .eyebrow{margin:0 0 18px;color:#8d405e}#intro h1{margin-bottom:22px}
#intro .story-bubble{max-width:590px;margin:auto;font-size:clamp(14px,3.5vw,20px);line-height:1.85}
#intro .profile{position:relative;max-width:590px;margin:0 auto;background:#fffdf8;box-shadow:4px 4px #b5b197}
.rain-story{width:100%;height:308px;margin:10px auto 32px;overflow:visible;mix-blend-mode:normal}
.rain-walker{bottom:0}.coat-pose{position:absolute;inset:0;transform-origin:center bottom}
.story-rain{inset:-60px 0 0;overflow:hidden}.story-rain i{background:#408dad;box-shadow:2px 2px #e5faff}
@media(prefers-reduced-motion:no-preference){
body[data-screen=intro] .rain-story.ready .rain-bounce{animation:coat-bob .6s ease-in-out 9}
}
@keyframes coat-bob{0%,50%,100%{transform:translateY(0)}25%,75%{transform:translateY(-2px)}}
@keyframes rain-stroll{0%,8%{transform:translateX(0)}30%{transform:translateX(clamp(-110px,-20vw,-60px))}57%{transform:translateX(clamp(60px,20vw,110px))}75%,100%{transform:translateX(0)}}
@keyframes story-raindrop{from{transform:translate(0,0) rotate(14deg)}to{transform:translate(-30px,380px) rotate(14deg)}}
@media(max-width:420px){#intro{padding:80px 16px 0}.intro-sky{height:calc(100% - 240px)}#intro .profile{padding:20px 18px}.rain-story{margin-bottom:32px}.intro-sky .clouds{gap:11%}}
.intro-sky{height:var(--landscape-height,700px);min-height:0}

/* Keep each true-alpha sprite whole so the coat and boots move together. */
.rain-story{height:245px}
.rain-walker{bottom:0;scale:.75;transform-origin:center bottom}
.rain-bounce img{filter:none;clip-path:none}

/* A soft sky shared by the introduction and the snack-game screens. */
body,body[data-screen=intro]{background:#bfe6ef;background-image:none}
.intro-sky{background:linear-gradient(#bfe6ef,#d9f0ed)}
.intro-sky .hills{background:#a5c899}
.intro-sky .ground{background:#c3b39b;border-top-color:#aac78c}
#intro .profile{background:transparent;border:0;box-shadow:none;padding:18px 0}
#intro .profile .quiet{width:100%;margin-top:8px}
