/* APPEARANCE: original shapes only. No downloaded pictures or fonts. */
:root{font-family:system-ui,sans-serif;color:#23323b;background:#f5f0df;line-height:1.5}*{box-sizing:border-box}body{margin:0}main{max-width:1000px;margin:auto;padding:24px}.masthead{margin-bottom:24px}.kicker{font-size:.8rem;letter-spacing:.16em;font-weight:800;color:#466858}h1{font-size:clamp(2rem,5vw,3.7rem);line-height:1.1;margin:8px 0}h2{font-size:1.3rem;margin:0}.masthead p{max-width:700px}.game{border:2px solid #23323b;border-radius:22px;background:#fffaf0;overflow:hidden;box-shadow:7px 7px 0 #c9c3a8}.scene-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px}.scene-bar span{font-size:.8rem;font-weight:700;color:#536e63}.stage{position:relative;height:370px;overflow:hidden;border-block:2px solid #23323b;background:#bfe3dc;isolation:isolate}.scenery>div{position:absolute}.ground{bottom:0;height:22%;width:100%;background:#789b64;z-index:1}.sun{width:80px;height:80px;border-radius:50%;background:#ffda74;left:12%;top:10%}.cloud{width:130px;height:28px;border-radius:100px;background:#edf9ef;right:12%;top:18%}.hill{width:70%;height:70%;border-radius:50% 50% 0 0;background:#9fc995;left:35%;bottom:15%;transform:rotate(-9deg)}.tree{left:8%;bottom:22%;height:130px;width:15px;background:#7a6249}.tree i{position:absolute;width:100px;height:90px;background:#527f63;border-radius:50%;left:-42px;top:-30px}.lantern{width:28px;height:40px;left:49%;bottom:22%;background:#ffdf79;border:5px solid #866d39;border-radius:7px;z-index:3}.lantern:before{content:'';position:absolute;inset:-14px 3px auto;height:12px;border:3px solid #866d39;border-bottom:0;border-radius:15px 15px 0 0}.workbench,.window,.skyline{display:none}.workshop{background:#edc5a1}.workshop .sun,.workshop .cloud,.workshop .hill,.workshop .tree{display:none}.workshop .ground{background:#956c58}.workshop .window{display:block;left:8%;top:8%;width:130px;height:110px;background:#b8e1e4;border:9px solid #805c4b;box-shadow:inset 0 0 0 3px #f2e4c3}.workshop .workbench{display:block;left:34%;bottom:22%;width:33%;height:90px;background:#976a48;border-top:13px solid #654933;z-index:1}.workshop .lantern{bottom:47%}.rooftop{background:#202d53}.rooftop .sun{background:#fbebba;left:78%;width:55px;height:55px}.rooftop .hill,.rooftop .tree,.rooftop .cloud{display:none}.rooftop .ground{background:#7f8395}.rooftop .skyline{display:block;bottom:22%;width:100%;height:50%;background:repeating-linear-gradient(90deg,#35446c 0 10%,transparent 10% 14%);clip-path:polygon(0 35%,10% 35%,10% 5%,20% 5%,20% 45%,35% 45%,35% 20%,50% 20%,50% 50%,65% 50%,65% 0,80% 0,80% 30%,100% 30%,100% 100%,0 100%)}.stage-label{position:absolute;bottom:10px;left:14px;background:#fff9e8ed;color:#22342e;padding:4px 10px;border-radius:7px;font-size:.75rem;z-index:5}.grid{position:absolute;inset:0;background-image:linear-gradient(#213c5455 1px,transparent 1px),linear-gradient(90deg,#213c5455 1px,transparent 1px);background-size:10% 10%;z-index:10;pointer-events:none}.grid span{display:block;background:#fff9e8;padding:4px 8px;font-size:.75rem;width:max-content}.dialogue{padding:18px 24px 8px;min-height:145px}.speaker{font-size:.85rem;letter-spacing:.08em;font-weight:800;color:#355e4b;margin:0 0 8px}.dialogue #line{font-size:1.13rem;margin:0}.audio-status{font-size:.8rem;color:#53625b;min-height:1.5em}.choices{display:flex;gap:12px;padding:8px 24px 18px;flex-wrap:wrap}.choices button{flex:1;min-width:230px;text-align:left;background:#244c3f;color:#fffaf0;padding:15px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #d8d2be}.toolbar label{font-size:.85rem}button{font:inherit;cursor:pointer;border:2px solid #29463a;border-radius:10px;background:#f7efd4;color:#253d32;padding:8px 12px;min-height:44px}button:hover{filter:brightness(1.1)}button:focus-visible,a:focus-visible,input:focus-visible,h2:focus-visible{outline:3px solid #d27624;outline-offset:4px}.hint,footer{font-size:.85rem;color:#4d6056;padding:0 24px 15px}footer{padding:24px 0}a{color:#235d4c}button[aria-pressed=true]{background:#d5e9cf}.choices button:disabled{opacity:.65;cursor:wait}[hidden]{display:none!important}
/* CHARACTERS: x/y positions refer to the feet. Flipping keeps proportions intact. */
.character{position:absolute;width:70px;height:155px;transform:translateX(-50%);z-index:3;--shirt:#346b9a;--skin:#dcad7f}.figure{position:absolute;inset:0;transform:scaleX(var(--facing,1))}.head{position:absolute;left:20px;top:0;width:35px;height:35px;border:4px solid #273742;background:var(--skin);border-radius:50%}.head:after{content:'';position:absolute;right:3px;top:10px;width:5px;height:5px;border-radius:50%;background:#273742}.torso{position:absolute;left:21px;top:36px;width:31px;height:61px;border-radius:9px;background:var(--shirt);border:4px solid #273742}.arm{position:absolute;top:41px;height:55px;width:9px;background:#273742;border-radius:8px;transform-origin:50% 5px}.arm.left{left:16px;transform:rotate(15deg)}.arm.right{left:51px;transform:rotate(-15deg)}.leg{position:absolute;top:94px;height:58px;width:10px;background:#273742;border-radius:8px;transform-origin:top}.leg.left{left:25px;transform:rotate(7deg)}.leg.right{left:43px;transform:rotate(-7deg)}.character.speaking:after{content:'';position:absolute;left:8px;right:3px;bottom:-6px;height:7px;background:#ffe491;border-radius:50%;box-shadow:0 0 0 2px #735e28}.wave .arm.right{animation:wave 1.5s ease-in-out 2}.enter{animation:enter .65s ease-out both}.no-motion .wave .arm.right{animation:none;transform:rotate(-55deg)}.no-motion .enter{animation:none}@keyframes wave{0%,100%{transform:rotate(-15deg)}30%,70%{transform:rotate(-125deg)}50%{transform:rotate(-95deg)}}@keyframes enter{from{opacity:0;translate:-22px 0}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.wave .arm.right,.enter{animation:none!important}}@media(max-width:550px){main{padding:12px}.stage{height:320px}.character{scale:.85;transform-origin:bottom center}.scene-bar{padding:14px}.dialogue,.toolbar{padding-inline:14px}.choices{padding-inline:14px}.choices button{min-width:100%}.hint{padding-inline:14px}}
