* {box-sizing:border-box}
[hidden]{display:none!important}
:root {color-scheme:light;font:16px/1.5 "Trebuchet MS",Arial,sans-serif}
body{margin:0;--ink:#214e49;--accent:#226957;--line:#acc9b9;--wash:#e6f0e7;--tint:#e1f0e6;--paper:#fffcf2;background:var(--wash);color:var(--ink)}
body[data-game=workshop]{--ink:#503c2d;--accent:#80502c;--line:#d6bea1;--wash:#f3e8d5;--tint:#f5e7d0}
body[data-game=post]{--ink:#483550;--accent:#72476f;--line:#c8b5c8;--wash:#ede8f0;--tint:#f1e7ee}
h1,h2,h3,p,figure{margin:0}
h1,h2{font-family:Georgia,serif;line-height:1.12}
h1{font-size:clamp(1.55rem,3.6vw,2.45rem)}
h2{font-size:clamp(1.4rem,2.7vw,2rem)}
h2:focus{outline:none}
button{min-height:44px;padding:8px 13px;appearance:none;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);font:700 .93rem/1.25 "Trebuchet MS",Arial,sans-serif;cursor:pointer;touch-action:manipulation}
button:enabled:hover{background-color:var(--tint)}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.room{max-width:1080px;margin:auto;padding:clamp(10px,2.3vw,24px)}
.mast,figcaption,.actions,.packing{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.mast{margin-bottom:12px}
.embedded .mast h1{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
.embedded .mast{justify-content:flex-end;margin-bottom:6px}
.spread{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);overflow:hidden;border-radius:22px;border:1px solid var(--line);background:var(--paper);box-shadow:0 8px 24px #26372c14}
.scene{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0;background:var(--tint)}
.scene>img{width:100%;height:auto;aspect-ratio:1;display:block;object-fit:cover}
.scene figcaption{background:var(--ink);color:#fffaf0;padding:10px 14px;font-weight:700;font-size:.9rem}
#dots{display:flex;gap:5px;align-items:center}
#dots i{width:10px;height:10px;border:1px solid #fff9e1;border-radius:50%}
#dots .on{background:#ffe8a3}
.desk{min-width:0;align-self:center;padding:clamp(15px,3vw,34px)}
#instruction{margin:.5em 0 .85em}
#feedback{font-weight:700;line-height:1.4;margin:10px 0;color:var(--ink)}
#feedback:empty{margin:0}
.actions{margin-top:12px;justify-content:flex-start}
.primary,.primary:enabled:hover{color:white;background:var(--accent);border-color:var(--accent)}
.primary:enabled:hover{filter:brightness(.93)}
#back{display:inline-block;margin:12px 0 0;padding:4px 0;color:var(--ink);font-weight:bold}
.tray,.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.tray button{display:grid;place-items:center;gap:3px;min-width:0;padding:7px 2px;background:#f5f7e8}
.tray button[aria-pressed=true],.museum-label.chosen{outline:2px solid var(--accent);outline-offset:-2px;background:var(--tint)}
.tool{position:relative;display:block;width:40px;height:35px}
.tool::before,.tool::after{content:"";position:absolute;display:block}
.tool.lamp::before{height:18px;width:27px;left:6px;top:3px;border:2px solid #416362;background:linear-gradient(#bfe2ce,#699794);border-radius:16px 16px 5px 5px;transform:rotate(-14deg)}
.tool.lamp::after{height:5px;width:23px;left:10px;top:19px;background:#ffe794;border:1px solid #986f32;border-radius:50%;transform:rotate(-14deg)}
.tool.mirror::before{height:22px;width:7px;background:linear-gradient(90deg,#506e73,#d3e6e5,#749197);border-radius:3px;left:12px;top:13px;transform:rotate(32deg)}
.tool.mirror::after{height:16px;width:16px;left:16px;top:0;border:3px solid #718c94;border-radius:50%;background:linear-gradient(135deg,#89acbb,#fefef5 63%,#91b5c2)}
.tool.brush::before{left:2px;top:20px;width:37px;height:6px;background:#368d81;border-radius:5px;transform:rotate(-14deg)}
.tool.brush::after{left:21px;top:11px;width:14px;height:10px;border-radius:3px;background:repeating-linear-gradient(90deg,#d5f6ed 0 2px,#709d99 2px 3px);border-bottom:3px solid #30998d;transform:rotate(-14deg)}
.model-mouth{display:flex;align-items:center;justify-content:center;gap:3px;min-height:94px;margin-top:16px;padding:10px 7px;border:6px solid #d38a8c;border-radius:34% 34% 43% 43%/42% 42% 55% 55%;background:radial-gradient(ellipse at 50% 100%,#bb7275,#754d57 70%);box-shadow:inset 0 3px 9px #3e273a55}
.model-mouth:not(.lit){filter:saturate(.45) brightness(.78)}
.toy{position:relative;display:grid;place-items:center;flex:1 1 0;max-width:55px;min-width:0;height:51px;min-height:44px;padding:0;border:1px solid #cfb78f;border-radius:29% 30% 41% 39%;background:linear-gradient(120deg,#fffef0,#fff8de 56%,#ddc69b);color:#654735;box-shadow:inset 0 4px 2px #fff9e899,0 2px 5px #4927358a;font-size:1.4rem}
.toy.flipped{color:#285c54;background:#e5f2d7}
.toy.painted::after{content:"";position:absolute;left:35%;top:43%;width:31%;height:21%;border-radius:60% 35% 55% 45%;transform:rotate(-18deg);background:#407fa3;box-shadow:5px -5px 0 -2px #6c9cc1}
.toy.cleaned{background:linear-gradient(120deg,white,#fff5dc)}
.display-case{padding:6px 10px 10px;margin:3px 0 13px;border:1px solid #94afa4;border-radius:55% 55% 14px 14px/18% 18% 12px 12px;background:radial-gradient(ellipse at top,#eff6d9,#c7ddd1 60%,#94b9aa);text-align:center;box-shadow:inset 0 -6px #785039}
.display-case canvas{display:block;margin:auto;width:100%;height:clamp(100px,19vw,160px);object-fit:contain}
.display-case figcaption{display:block;margin:0 auto;width:fit-content;background:#fff1c9;color:#573b29;border:1px solid #ba9567;border-radius:5px;padding:2px 10px;font:700 .88rem/1.4 Georgia,serif}
.museum-label{background:linear-gradient(#fff3d6,#f1ddb4);border-color:#c8a776;color:#533c29;padding:7px 2px}
.order{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#faebd6;border:1px solid #c8aa8f;border-radius:6px;color:#553e43}
.order strong{font:700 1.2rem Georgia,serif}
#parcel{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:8px 0;padding:15px 8px 12px;border:1px solid #d4b798;border-radius:4px 4px 13px 13px;background:linear-gradient(151deg,#fcf3dd 48%,#ead6b8 49%,#f9ecd7 53%);box-shadow:0 2px 3px #53384716}
.pocket{display:grid;place-items:center;aspect-ratio:1;max-height:48px;border:1px dashed #af9384;border-radius:50%;background:#fff9ee75}
.pocket i{display:none;width:68%;height:76%;background:linear-gradient(120deg,#fffef5 30%,#f6e3b7 80%,#c69a65);clip-path:polygon(3% 21%,11% 8%,27% 4%,47% 11%,72% 4%,90% 10%,97% 27%,88% 55%,76% 91%,64% 94%,55% 63%,45% 63%,32% 96%,23% 89%,13% 55%);}
.pocket.filled{background:#986d86;border-color:#835d72}.pocket.filled i{display:block}
.packing{justify-content:center;gap:10px}.packing button:disabled{opacity:.52}
#total{font-size:.89rem;font-weight:bold}
fieldset{border:0;padding:0;margin:10px 0}legend{padding:0;margin:0 0 5px;font-weight:bold}
.stamp{border:2px dashed #a68197;letter-spacing:.07em;color:#623b58;background:#faf0f4}.stamp[aria-pressed=true]{background:#683e61;color:#fff9ed;border:2px solid #57294d}
@media(max-width:650px){.room{padding:9px}.spread{grid-template-columns:1fr}.desk{padding:14px}.scene{display:grid;grid-template-columns:minmax(85px,36%) 1fr}.scene img{width:100%;height:100%}.scene figcaption{align-content:center;justify-content:center;flex-direction:column;align-items:flex-start}.mast button{padding:7px 9px}.packing{gap:5px}.packing button{padding:7px 8px}.model-mouth{gap:2px;padding:8px 2px}.toy{height:45px}.option{padding-inline:4px}}
