*{box-sizing:border-box}html{font-family:Segoe UI,Arial,sans-serif;color:#30234e;background:#edf4fc}body{margin:0;background:radial-gradient(ellipse at 15% 10%,#def9f3,transparent 40%),radial-gradient(ellipse at 85% 60%,#fbe9dc,transparent 45%),#f1edff}button{font:inherit;border:0;cursor:pointer;border-radius:15px;padding:12px 18px;font-weight:750;background:#7550d5;color:white;min-height:44px;box-shadow:0 4px 0 #4c2e9f;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.08);transform:translateY(-1px)}button:active{transform:translateY(2px);box-shadow:0 1px 0 #4c2e9f}button:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #fcac43;outline-offset:3px}a{color:#7150ba}.secondary{background:#efe8ff;color:#6746a6;box-shadow:0 3px 0 #d6c8ee}.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1120px;margin:auto;padding:25px}.brand{font-size:21px;color:#6744bd;font-weight:800}.edition{font-size:13px;color:#786b8f}.world-map{max-width:1020px;margin:auto;padding:30px 25px 65px}.map-kicker{font-size:12px;font-weight:800;letter-spacing:1.5px;color:#83602a}.world-map h1{font-size:clamp(32px,5vw,55px);line-height:1.1;margin:15px 0;color:#3d2869}.map-lead{font-size:18px;line-height:1.6;max-width:630px;color:#726184}.travel-road{position:relative;display:grid;gap:25px;margin:35px 0 25px;padding:0 5%}.travel-road:before{content:'';position:absolute;top:35px;bottom:35px;left:50%;width:13px;border-radius:20px;background:repeating-linear-gradient(to bottom,#a28cdc 0 12px,#d7ccef 12px 24px);transform:rotate(6deg)}.journey-card{position:relative;width:78%;padding:22px 25px;border-radius:28px;display:flex;align-items:center;gap:24px;background:#ffffffd9;border:3px solid white;box-shadow:0 6px 0 #dfd3f0}.journey-card:nth-child(even){margin-left:auto}.journey-card img{width:120px;height:100px;object-fit:contain}.journey-card h2{font-size:22px;margin:5px 0 10px}.journey-card p{font-size:13px;line-height:1.5;color:#7b6a8d;margin:5px 0 12px}.journey-card.locked{background:#f8f6fd}.journey-card .small{color:#916431;letter-spacing:.8px;font-size:11px;font-weight:800}.map-status{color:#715597;font-weight:650}.map-note{background:#fff8e6;padding:16px 20px;border-radius:20px;color:#81613d;font-size:14px;line-height:1.6}.sources{font-size:12px;line-height:1.6;margin-top:20px;color:#847193}.sources summary{cursor:pointer}.sources a{display:inline-block;margin:5px 0}.game-dialog{border:0;padding:0;margin:0;max-width:none;max-height:none;width:100vw;height:100dvh;background:#201633;color:white;overflow:auto}.game-dialog::backdrop{background:#1a1229}.game-shell{min-height:100%;display:grid;grid-template-rows:auto auto 1fr auto;background:linear-gradient(#302048,#1c142d)}.game-dialog:fullscreen{width:100%;height:100%;max-width:none}.game-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 18px;border-bottom:1px solid #ffffff20}.game-top .game-name{font-size:15px;font-weight:800;margin-right:auto}.game-top button{font-size:11px;padding:8px 12px;min-height:36px;background:#4f3c70;box-shadow:none;color:#f7f0ff}.quest{display:flex;align-items:center;gap:16px;padding:10px 22px;background:#35274c}.quest-mark{width:42px;height:42px;border-radius:15px;background:#ffcc64;color:#604317;display:grid;place-items:center;font-size:24px;flex-shrink:0}.quest h2{font-size:17px;margin:0 0 3px;color:#ffe1a1}.quest p{margin:0;font-size:13px;color:#e1d6f0;line-height:1.4}.quest-progress{display:flex;gap:6px;margin-left:auto;flex-shrink:0}.quest-progress span{width:13px;height:13px;border-radius:50%;background:#594773}.quest-progress span.done{background:#a9edb7}.play-area{align-self:center;width:100%;padding:12px}.stage{position:relative;width:min(100%,calc((100dvh - 265px)*1.5));min-width:300px;aspect-ratio:1.5;margin:auto;border-radius:20px;overflow:hidden;background-color:#9ecacb;background-size:100% 100%;box-shadow:0 0 0 3px #6f5498,0 12px 50px #0005;touch-action:none;user-select:none;isolation:isolate}.stage:focus-visible{outline:3px solid gold}.stage .shade{position:absolute;inset:0;background:linear-gradient(transparent 60%,#63345015);pointer-events:none}.sprite{position:absolute;transform:translate(-50%,-100%);z-index:5;pointer-events:none;height:22%;width:auto;filter:drop-shadow(0 6px 3px #422b5b30)}.sprite.walking{animation:walk-bob .25s infinite alternate}.npc{position:absolute;transform:translate(-50%,-100%);height:26%;width:15%;padding:0;background:none;box-shadow:none;z-index:6;color:#38234c;border-radius:8px;min-height:44px}.npc img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 7px 3px #422b5b30)}.npc .npc-name{position:absolute;bottom:-17px;left:0;right:0;font-size:clamp(10px,1.1vw,13px);background:#fff2daed;color:#664531;border-radius:8px;padding:4px;white-space:nowrap}.npc.locked{opacity:.55;filter:grayscale(.6)}.npc .chat{position:absolute;right:2px;top:-12px;background:white;color:#7544c7;border-radius:50%;font-size:17px;width:28px;height:28px;line-height:28px;box-shadow:0 3px 0 #bdabe2;animation:float 1.5s infinite alternate}.object{position:absolute;z-index:10;transform:translate(-50%,-50%);padding:0;background:none;box-shadow:none;border:0;min-height:44px;touch-action:none;cursor:grab}.object img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 3px #402b4030)}.object.dragging{cursor:grabbing;z-index:20}.object:active,.npc:active{box-shadow:none;transform:translate(-50%,-50%)}.npc:active{transform:translate(-50%,-100%)}.comb{width:21%;height:14%;outline:none;transition:none}.comb.charged img{filter:drop-shadow(0 0 7px #9664ff) drop-shadow(0 5px 3px #402b4030)}.comb .charge-tag{position:absolute;right:0;top:-9px;background:#7346d7;border:2px solid #efe4ff;width:28px;height:28px;border-radius:50%;color:white;font-weight:900;font-size:21px;line-height:22px;display:none}.comb.charged .charge-tag{display:block}.hair{position:absolute;left:50%;top:65%;transform:translate(-50%,-50%);width:25%;height:16%;object-fit:contain;filter:drop-shadow(0 3px 2px #5f352950);pointer-events:none}.hair-label{position:absolute;left:50%;top:76%;transform:translateX(-50%);font-size:11px;color:#5c3940;background:#fff6e5;padding:4px 9px;border-radius:9px;white-space:nowrap}.paper{position:absolute;width:6%;height:5%;transform:translate(-50%,-50%) rotate(-12deg);background:linear-gradient(135deg,#fff,#eee7e0);border:1px solid #c7bcb9;box-shadow:2px 4px 3px #56374036;z-index:8;pointer-events:none;border-radius:2px;transition:filter .2s}.paper:after{content:'';position:absolute;inset:4px;border-top:1px solid #ddd7d2;transform:rotate(-14deg)}.paper.active{outline:2px dashed #8c54d6;outline-offset:5px}.paper .polar{display:none;position:absolute;inset:0;font-size:12px;font-weight:900;color:#894ab8;align-items:center;justify-content:space-around}.paper.polarized .polar{display:flex}.tray{position:absolute;left:73%;top:68%;width:19%;height:13%;border:6px solid #e2ae43;border-radius:14px;background:#ffdfa8d9;box-shadow:0 7px 0 #a37234,0 11px 3px #56374035;z-index:7;display:none}.tray-label{position:absolute;left:73%;top:85%;width:19%;text-align:center;background:#fff6e3;border-radius:10px;font-size:11px;padding:5px;color:#764d27;display:none}.stage.garden .tray,.stage.garden .tray-label{display:block}.stage.garden .hair,.stage.garden .hair-label{display:none}.stage.workshop .paper{display:none}.stage .gate{position:absolute;left:44%;top:24%;padding:5px 9px;font-size:10px;min-height:32px;background:#fff4cc;color:#73552f;box-shadow:0 3px 0 #b99a5e;z-index:4}.hint-arrow{display:none;position:absolute;top:42%;left:48%;font-size:40px;color:#8c50e4;text-shadow:0 3px 0 white;pointer-events:none;z-index:20;animation:float .5s infinite alternate}.show-hint .hint-arrow{display:block}.show-hint .hair{filter:drop-shadow(0 0 10px #ffce58)}.rub-meter{position:absolute;left:32%;top:87%;width:36%;padding:6px 9px;background:#fffae8ed;color:#704929;font-size:10px;border-radius:10px;z-index:8}.rub-meter progress{display:block;width:100%;height:8px;margin-top:3px;accent-color:#8650e2}.stage.garden .rub-meter{display:none}.effects{position:absolute;inset:0;pointer-events:none;z-index:25;width:100%;height:100%}.spark{position:absolute;width:8px;height:8px;background:#e7d4ff;border:2px solid #8c52dd;border-radius:50%;pointer-events:none;z-index:20;animation:transfer .6s forwards}.dialogue{display:grid;grid-template-columns:75px 1fr;gap:12px;width:min(100%,1100px);margin:0 auto;padding:12px 18px;background:#fdf7eaff;border-radius:20px;color:#493256;min-height:98px;box-shadow:0 4px 0 #927ca8}.dialogue img{width:70px;height:85px;object-fit:contain;align-self:center}.dialogue .speaker{font-size:11px;letter-spacing:1px;font-weight:800;color:#935f25;margin-bottom:5px}.dialogue p{font-size:15px;line-height:1.45;margin:0 0 8px}.dialogue .actions{display:flex;gap:9px;flex-wrap:wrap}.dialogue button{font-size:12px;padding:8px 13px;min-height:37px}.dialogue .feedback{margin-top:8px;background:#e2f5e5;padding:9px;border-radius:10px;font-size:13px;line-height:1.5}.dialogue .feedback.error{background:#fff0cb}.game-bottom{padding:10px 14px 14px}.tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center;padding:12px 4px 0}.tools button{font-size:11px;padding:8px 12px;min-height:36px;background:#4d3a6c;box-shadow:none}.tools .strong{background:#8d5ee1}.walk-help{font-size:10px;color:#c8b8dd;margin:8px auto 0;text-align:center;line-height:1.5}.hint-bubble{padding:12px 18px;background:#fff0bd;color:#73512c;border-radius:14px;width:min(100%,1100px);margin:8px auto 0;font-size:13px;line-height:1.5}.hint-bubble[hidden]{display:none}.journal{position:absolute;inset:10%;z-index:70;border:3px solid #bd9c6c;border-radius:22px;background:#fff6e4;color:#59402b;padding:22px;overflow:auto;box-shadow:0 15px 80px #0009}.journal h3{font-size:22px;margin:0 0 12px}.journal p{font-size:15px;line-height:1.55}.journal img{max-width:100%;max-height:170px;object-fit:contain}.journal button{float:right}.journal[hidden]{display:none}.badge-finish{display:inline-block;background:#ffdf79;color:#83512c;padding:8px 12px;border-radius:12px;font-weight:800}.pause-cover{position:absolute;inset:0;z-index:60;background:#291937b8;display:grid;place-items:center;color:white;text-align:center;font-size:25px}.pause-cover[hidden]{display:none}.map-hero{position:absolute;right:0;top:0;width:180px;height:180px;object-fit:contain;opacity:.9;pointer-events:none}.map-intro{position:relative;padding-right:180px}.room-title{position:absolute;top:10px;left:12px;background:#fff3d6de;color:#735127;border-radius:9px;padding:6px 10px;font-size:11px;font-weight:750;z-index:2}.object-tutorial{position:absolute;left:24%;top:50%;background:#fff7e7ec;color:#764c43;font-size:11px;border-radius:10px;padding:5px 9px;z-index:2}.stage.garden .object-tutorial{display:none}.status-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes walk-bob{to{margin-top:-4px}}@keyframes float{to{translate:0 -5px}}@keyframes transfer{from{transform:translate(0,0);opacity:1}to{transform:translate(-65px,12px);opacity:0}}@media(max-width:700px){.site-header{padding:18px}.edition{display:none}.world-map{padding:18px 15px 40px}.map-intro{padding-right:0}.map-hero{display:none}.map-lead{font-size:16px}.travel-road{padding:0;gap:18px}.journey-card{width:92%;padding:18px 15px;gap:12px;border-radius:24px}.journey-card img{width:70px;height:80px}.journey-card h2{font-size:19px}.journey-card p{font-size:12px}.journey-card button{font-size:12px}.game-top{padding:8px 10px;gap:6px}.game-top .game-name{width:100%;font-size:13px}.game-top button{padding:7px 9px;font-size:10px;min-height:32px}.quest{padding:9px 12px;gap:9px}.quest h2{font-size:15px}.quest p{font-size:12px}.quest-mark{width:34px;height:34px;font-size:21px}.quest-progress{display:none}.play-area{padding:10px}.stage{width:100%;min-width:0}.game-shell{grid-template-rows:auto auto auto auto}.dialogue{grid-template-columns:45px 1fr;padding:12px 10px;gap:8px;border-radius:17px}.dialogue img{width:45px;height:70px}.dialogue p{font-size:14px}.dialogue button{font-size:12px;min-height:42px;padding:9px 11px}.dialogue .actions{gap:8px}.game-bottom{padding:8px 10px 16px}.tools{gap:7px}.tools button{font-size:11px;min-height:42px}.npc .chat{width:22px;height:22px;font-size:14px;line-height:22px;top:-6px}.npc .npc-name{font-size:9px;bottom:-13px;padding:3px}.sprite{height:24%}.npc{height:28%;width:18%}.comb{width:26%;height:18%}.hair{width:29%;height:18%}.hair-label,.tray-label{font-size:8px}.comb .charge-tag{width:22px;height:22px;font-size:17px;line-height:17px}.paper{width:7%;height:6%}.paper .polar{font-size:9px}.rub-meter{font-size:8px;padding:4px 7px}.stage .gate{font-size:8px;padding:5px 7px;min-height:25px}.object-tutorial{font-size:8px;left:20%;top:49%}.room-title{font-size:9px;padding:4px 7px}.hint-bubble{font-size:12px}.journal{inset:3%;padding:18px}.journal h3{font-size:20px}.journal p{font-size:14px}.tray{border-width:4px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.object:hover{transform:translate(-50%,-50%)}.npc:hover{transform:translate(-50%,-100%)}[hidden]{display:none!important}.game-dialog{overflow-x:hidden}.dialogue img{height:65px}.dialogue{min-height:90px}.dialogue p{font-size:14px}.game-bottom .tools{padding-top:9px}.game-bottom .walk-help{margin-top:6px}
.status-announcement{top:0;left:0;margin:0}
/* The viewport is the game; all controls belong to its HUD and help dock. */
body:has(.game-dialog[open]){overflow:hidden}
.game-dialog{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden}
.game-shell{position:relative;display:block;min-height:0;height:100%;overflow:hidden;background-color:#3a2952;background-size:100% 100%;background-position:center;--dock-height:210px}
.game-top{position:absolute;z-index:40;left:18px;right:18px;top:14px;border:1px solid #ffffff36;border-radius:20px;background:#241a40e8;backdrop-filter:blur(12px);box-shadow:0 5px 20px #251b3440;padding:11px 16px;flex-wrap:nowrap}
.game-name{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:3px;align-items:center;min-width:200px}
.game-name b{font-size:14px}.level-badge{grid-row:span 3;background:#ffcf6b;color:#6c4319;font-size:10px;letter-spacing:.8px;padding:10px;border-radius:11px}
#level-status{font-size:10px;font-weight:500;color:#dbc9f5}.game-name progress{height:6px;width:100%;accent-color:#8ee5c0}
.hud-tools{display:flex;gap:7px}.game-top button{background:#ffffff15;border:1px solid #ffffff22}
.quest{position:absolute;left:18px;top:var(--hud-height,98px);z-index:35;max-width:min(640px,calc(100% - 36px));border-radius:17px;background:#fff5dfeb;color:#442d63;box-shadow:0 4px 15px #42295225;padding:10px 14px;backdrop-filter:blur(8px)}
.quest h2{color:#653e83;font-size:15px}.quest p{color:#665278;font-size:12px}.quest-mark{height:32px;width:32px;font-size:20px}.quest-progress{display:none}
.play-area{position:absolute;inset:0 0 var(--dock-height,210px);width:100%;padding:0;align-self:auto}
.stage{height:100%;width:100%!important;min-width:0;aspect-ratio:auto;border-radius:0;box-shadow:none;background-size:100% 100%;margin:0}
.room-title{display:none}.sprite{height:26%;max-height:165px}.npc{height:30%;max-height:175px;width:16%;max-width:165px}
.comb{height:16%;width:20%;max-width:240px}.hair{width:25%;height:18%;max-width:280px}
.stage .gate{left:70%;top:25%;font-size:12px;padding:8px 13px}
.object-tutorial{left:36%;top:49%;font-size:12px}.rub-meter{top:88%;left:36%;width:28%;font-size:11px}
.game-bottom{position:absolute;z-index:45;bottom:12px;left:18px;right:18px;padding:12px 14px;background:#291b43ef;backdrop-filter:blur(15px);border:1px solid #d5bdff50;border-radius:24px;box-shadow:0 8px 35px #28194080;max-height:46%;overflow:auto}
.dock-caption{display:flex;justify-content:space-between;gap:12px;color:#e6d7fa;font-size:10px;letter-spacing:.6px;font-weight:800;margin:0 4px 8px}
.dialogue{width:100%;max-width:none;grid-template-columns:50px 1fr;min-height:0;padding:10px 12px;border-radius:15px;gap:10px;box-shadow:none;background:#fff8e9}
.dialogue img{width:46px;height:62px}.dialogue p{font-size:13px;line-height:1.4;margin-bottom:7px}.dialogue .speaker{font-size:10px}.dialogue button{min-height:34px;font-size:12px;padding:6px 12px}
.game-bottom .tools{justify-content:flex-start;padding:9px 2px 0}.tools button{min-height:32px;padding:6px 10px}.game-bottom .walk-help{margin:0 0 0 auto;font-size:10px;max-width:300px;text-align:right}
.hint-bubble{margin:8px 0 0;width:100%;font-size:12px;padding:9px 12px}.feedback{font-size:12px!important;padding:7px!important}
.journal{inset:12% 20%;z-index:80}.pause-cover{z-index:30}
#map-progress{margin:14px 0 18px}.map-progress-label{display:flex;gap:15px;justify-content:space-between;font-size:11px;color:#795394}.map-progress-label span{white-space:nowrap}
#map-progress progress{display:block;width:100%;height:10px;margin:8px 0;accent-color:#9b72da}.episode-progress-label{font-size:11px;color:#887494;margin-top:12px}#map-progress .episode-bar{height:7px;accent-color:#42b8a4}
.milestone-road{display:flex;gap:5px;margin:12px 0;flex-wrap:wrap}.milestone-road span{display:grid;place-items:center;width:22px;height:22px;background:#eae3f4;border-radius:50%;color:#a291b6;font-size:9px;font-weight:700}.milestone-road .passed{background:#c2efdb;color:#268264}
.milestone-list{font-size:11px;color:#8b7998}.milestone-list summary{cursor:pointer}.milestone-list ol{padding:8px 0 0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px}.milestone-list li.passed{color:#388f71}
.celebration{position:absolute;inset:0;z-index:100;background:#241633c4;backdrop-filter:blur(9px);display:grid;place-items:center;padding:22px;overflow:auto}
.victory-card{position:relative;text-align:center;background:linear-gradient(145deg,#fff9e6,#f7ecff);color:#604274;border:4px solid #ffdc85;border-radius:32px;padding:28px;width:min(570px,100%);box-shadow:0 18px 0 #39284a50,0 0 80px #ce9cea30}.victory-star{font-size:75px;color:#e2a844;text-shadow:0 4px 0 #ffe3a0}.victory-kicker{font-size:11px;letter-spacing:2px;color:#9d7335}.victory-card h2{font-size:31px;margin:13px 0}.victory-card p{font-size:15px;line-height:1.6}.victory-summary{background:#e8ddfa;border-radius:13px;padding:12px;font-weight:800;font-size:14px}.victory-next{font-size:12px!important;color:#9d81ad}.victory-card button{margin:7px 4px}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-25px;left:var(--x);width:10px;height:19px;background:var(--color);border-radius:3px;animation:confetti-drop 3.8s var(--delay) ease-in infinite;rotate:var(--spin)}
@keyframes confetti-drop{to{translate:35px 110vh;rotate:calc(var(--spin) + 600deg)}}
@media(max-width:700px){.game-top{left:8px;right:8px;top:8px;padding:8px 9px;border-radius:16px;gap:6px;flex-wrap:wrap}.game-top .game-name{width:100%;font-size:12px}.game-name b{font-size:12px}.level-badge{padding:7px;font-size:9px}.hud-tools{width:100%;justify-content:space-between;gap:4px}.game-top button{font-size:10px;min-height:30px;padding:5px 8px}.quest{left:8px;max-width:calc(100% - 16px);padding:8px 10px;gap:8px;border-radius:13px}.quest h2{font-size:13px}.quest p{font-size:11px}.quest-mark{width:28px;height:28px;font-size:17px}.game-bottom{left:8px;right:8px;bottom:8px;padding:9px 8px;border-radius:18px;max-height:43%}.dialogue{grid-template-columns:33px 1fr;padding:8px;gap:7px}.dialogue img{width:32px;height:48px}.dialogue p{font-size:12px;line-height:1.45}.dialogue button{font-size:11px;min-height:36px;padding:7px 9px}.dock-caption{font-size:8px;letter-spacing:0;margin-bottom:6px}.tools{gap:6px}.tools button{font-size:10px;min-height:34px;padding:5px 8px}.game-bottom .walk-help{display:none}.play-area{padding:0}.stage{min-width:0}.sprite{height:22%;max-height:110px}.npc{height:25%;width:19%;max-height:125px}.comb{width:27%;height:15%}.hair{width:29%;height:17%}.object-tutorial{left:23%;font-size:8px;top:51%}.stage .gate{left:68%;top:33%;font-size:9px;min-height:28px;padding:5px 7px}.rub-meter{left:29%;width:43%;font-size:9px;padding:5px 7px;top:88%}.journal{inset:4%;padding:17px}.victory-card{padding:20px 16px;border-radius:26px}.victory-card h2{font-size:25px}.victory-star{font-size:60px}.victory-card p{font-size:13px}.victory-summary{font-size:12px}.milestone-list ol{grid-template-columns:1fr}.map-progress-label{flex-direction:column;gap:3px}}
@media(max-height:550px) and (min-width:701px){.game-top{padding:6px 10px;top:7px}.game-name b{font-size:12px}.quest{padding:6px 10px}.game-bottom{max-height:40%;bottom:6px;padding:7px 10px}.dialogue img{height:42px}.dock-caption{margin-bottom:4px}.dialogue p{font-size:12px}.walk-help{display:none}}
.game-shell:has(.workshop) .quest{left:auto;right:18px}
@media(max-width:700px){.game-shell:has(.workshop) .quest{left:8px;right:8px}}
