@charset "UTF-8";
:root{font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#254f5c;background:#256d83;font-synthesis:none;font-weight:800;--ink:#254f5c;--line:#285c6b;--gold:#ffe48b;--cream:#fff6dc;--mint:#45cfac;--nav:#245b71}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{background:radial-gradient(ellipse at 50% 25%,#81d7cb 0,#3c9db0 55%,#296d8c 100%);-webkit-tap-highlight-color:transparent}body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(#ffffff0d 2px,transparent 2px);background-size:22px 22px}button{font:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation;min-height:44px;min-width:44px;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible{outline:3px solid #ffef8e;outline-offset:3px}button:not(:disabled):active{translate:0 2px;filter:brightness(.96)}svg{display:block;width:100%;height:100%;pointer-events:none}.friend{display:block;object-fit:contain;user-select:none;pointer-events:none;flex:none}h1,h2,p{margin:0}h1,h2{font-weight:900}small{font-size:11px}button .ui-icon{flex:none}.ui-icon{width:26px;height:26px;display:inline-block;vertical-align:middle;flex-shrink:0}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app{height:100vh;height:100dvh;width:100%;max-width:1500px;margin:0 auto;position:relative;display:grid;grid-template-rows:58px minmax(0,1fr) 72px;gap:9px;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
#main{min-width:0;min-height:0;outline:none;position:relative}.game-hud{display:grid;grid-template-columns:58px minmax(0,1fr) 105px;align-items:center;gap:6px;position:relative;z-index:4}.game-logo{text-align:center;line-height:1.2;filter:drop-shadow(0 2px 0 #205972)}.game-logo>span{display:block;color:#effcff;font-size:10px;letter-spacing:.1em;margin-bottom:3px}.game-logo strong{font-size:25px;color:#fff0ad;-webkit-text-stroke:1px #376779;paint-order:stroke fill;text-shadow:0 2px 0 #376779;white-space:nowrap}.avatar-button{padding:0;background:linear-gradient(#f7f4cb,#e1d49d);border:3px solid #f7e7a7;border-radius:16px;box-shadow:0 4px 0 #255c72,0 0 0 2px #35667a;height:55px;width:55px;position:relative}.avatar-button .friend{width:100%;height:100%;padding:1px}.avatar-button>span:not(.friend){position:absolute;left:-4px;right:-4px;bottom:-4px;font-size:8px;border:1px solid #40617a;border-radius:8px;background:#fff3ce;line-height:1.5}.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;border:3px solid #225b70;border-radius:14px;background:linear-gradient(#a9e4e2,#74bec9);box-shadow:inset 0 2px 0 #ffffff9c,0 3px 0 #184c65;padding:6px;color:#2a5c70}.icon-button:disabled{opacity:.35;box-shadow:none}.icon-button .ui-icon{width:26px;height:26px}.hud-tools{display:flex;gap:7px;align-items:center;justify-content:flex-end}.collection-counter{display:flex;align-items:center;justify-content:center;gap:2px;background:#174e68;border:2px solid #79c2c8;border-radius:14px;min-height:34px;min-width:49px;padding:3px;color:white;font-size:14px;box-shadow:inset 0 2px 4px #123c5d66}.collection-counter .ui-icon{width:21px;height:21px;stroke:#9d762c}.game-nav{display:flex;justify-content:center;gap:8px;align-items:stretch;z-index:4;max-width:630px;width:100%;margin:auto;background:#205a70;border:3px solid #1c4f65;border-radius:22px;padding:5px 6px;box-shadow:inset 0 2px 0 #6098a9,0 4px 0 #19435c}.nav-item{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:14px;background:linear-gradient(#578f9e,#3c788d);border:2px solid #2d6279;color:#f9ffeb;text-shadow:0 2px 0 #285f76;padding:3px 7px;font-size:12px;box-shadow:inset 0 2px 0 #b6dce355}.nav-item .ui-icon{height:25px;width:28px;stroke:#244f69}.nav-item.active{background:linear-gradient(#8dcdb6,#58af9d);border-color:#b9e3c1}.nav-item.main-nav{flex:1.2;background:linear-gradient(#ffdb72,#f4b74f);border-color:#ffe8a6;color:#4f5b53;text-shadow:0 1px 0 #fff2b5;box-shadow:inset 0 3px 0 #fff2ad,0 2px 0 #b17f38;font-size:14px}.main-nav .ui-icon{height:27px;width:30px}
.primary,.soft,.danger-button{border:3px solid var(--line);border-radius:15px;padding:8px 16px;display:inline-flex;justify-content:center;align-items:center;gap:5px;min-height:48px;line-height:1.35;font-size:16px;box-shadow:inset 0 3px 0 #ffffff5c,0 4px 0 #265a68;text-align:center}.primary{color:#fffbe1;background:linear-gradient(#55d6a9,#28b58c);text-shadow:0 2px 0 #27866d}.primary:hover{filter:brightness(1.05)}.soft{background:linear-gradient(#fff3cd,#f1dfb2);font-size:13px;box-shadow:inset 0 3px 0 #fffaf0,0 3px 0 #b5a57e}.danger-button{background:linear-gradient(#f7a78e,#dc7c70);color:#fff8e7;text-shadow:0 1px 0 #a25c53;font-size:14px}.wide{flex:1;width:100%}.primary .ui-icon{width:22px;height:22px}
/* The town is a game space, with the controls in a fixed lower dock. */
.town-screen{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 72px;gap:9px}.town-scene{min-height:0;position:relative;isolation:isolate;overflow:hidden;background:#c3e6c9;border:4px solid #d9f6d9;border-radius:25px;box-shadow:0 5px 0 #286d72,inset 0 0 0 2px #5c9e8d}.landscape{position:absolute;inset:0;z-index:-1}.landscape svg{height:100%;width:100%;object-fit:cover}.map-plaque{position:absolute;top:8px;left:50%;translate:-50% 0;background:#fff2ca;border:2px solid #92b18a;border-radius:12px;padding:4px 13px;box-shadow:0 3px 0 #7398784d;white-space:nowrap;font-size:12px;color:#557c64;z-index:1}.map-plaque span{color:#dca750}.shops{position:absolute;left:2%;right:2%;top:35px;bottom:191px;min-height:60px}.shop{position:absolute;width:39%;height:68%;min-height:72px;min-width:0;padding:0;filter:drop-shadow(0 5px 1px #40685833);transition:filter .15s,scale .15s}.shop:hover{scale:1.025;filter:drop-shadow(0 5px 2px #40685844) brightness(1.05)}.shop-art{position:absolute;inset:0 0 14px;filter:saturate(1.15)}.shop-label{position:absolute;left:1%;right:1%;bottom:0;min-height:27px;display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 5px;background:linear-gradient(#fff6d9,#eddfb8);border:2px solid #627c6b;border-radius:11px;font-size:clamp(10px,1.2vw,15px);box-shadow:0 3px 0 #647c6855;white-space:nowrap}.shop-label i{font-style:normal;color:#5a9c78;font-size:20px;line-height:1}.shop-bread{left:5%;top:0}.shop-car{right:4%;top:7%}.shop-house{left:31%;top:36%;width:38%;height:67%}.residents{position:absolute;left:3%;right:3%;bottom:155px;height:44px;display:flex;align-items:flex-end;justify-content:space-around;pointer-events:none}.resident{width:13%;max-width:65px;height:49px;position:relative;display:flex;align-items:center;justify-content:center}.resident .friend{height:46px;width:46px;filter:drop-shadow(0 3px 1px #647e6233);animation:breathe 4s ease-in-out infinite}.resident:nth-child(2n) .friend{animation-delay:-2s}.resident>span:not(.friend){display:none}.town-plots{position:absolute;left:6%;right:6%;bottom:10px;height:138px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(44px,1fr));gap:3px 6px}.plot{position:relative;min-width:0;min-height:44px;border:2px dashed #ecf3c8;border-radius:12px;background:#8dbd7477;padding:0;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 2px 4px #658b6433}.plot>span{font-size:24px;font-weight:500;color:#65956c;text-shadow:0 1px 0 #d4e7b6}.plot.filled{background:linear-gradient(#e0e9b8bb,#b5d294bb);border:2px solid #8eae79;box-shadow:0 2px 0 #698c6266,inset 0 2px 0 #f9f6cc66}.plot.filled>svg{width:auto;max-width:100%;height:100%;scale:1.05}.is-placing .plot{border:2px solid #fff2a3;background:#f7e59988;box-shadow:0 0 0 2px #6a986e;animation:invite 1.6s ease-in-out infinite}.place-dot{position:absolute;right:5px;top:5px;width:6px;height:6px;background:#fff1a2;border-radius:50%}.town-command{min-height:0;display:flex;align-items:center;gap:8px;background:linear-gradient(#fff9df,#f1e6c6);border:3px solid #3e7980;border-radius:20px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #28616f;padding:6px 8px;position:relative}.town-command>.friend{width:57px;height:66px;margin-top:-7px}.town-command>svg{width:60px;height:55px;flex:none}.town-command>div{min-width:0;flex:1}.town-command b{display:block;font-size:13px;line-height:1.5}.town-command small{display:block;font-size:10px;color:#7b957b;margin-top:2px}.town-command .primary,.town-command .soft{font-size:14px;min-height:44px;padding:6px 13px;flex:none}.town-command .ui-icon{width:17px;height:17px}
/* A work surface and a thumb tray share exactly one viewport. */
.work-screen{height:100%;display:grid;grid-template-rows:38px minmax(0,1fr);gap:7px}.steps{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;margin:0;padding:0}.steps li{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1;color:#d2f0dd;font-size:10px;white-space:nowrap}.steps li>span{display:grid;place-items:center;width:23px;height:23px;border:2px solid #457e87;background:#376e81;border-radius:50%;color:#bdd8d8;font-size:10px;flex:none}.steps li.current{color:#fff3b0}.steps li.current>span{background:linear-gradient(#ffe19a,#efbc5b);border-color:#fff1b6;color:#4f6c68;box-shadow:0 0 0 2px #39778b}.steps li.passed>span{background:#70c6a2;color:#efffed;border-color:#a9e2b7}.workshop{display:grid;grid-template-rows:minmax(90px,1fr) auto;gap:8px;min-height:0}.studio{display:grid;grid-template-rows:43px minmax(0,1fr) 20px;position:relative;min-height:0;overflow:hidden;padding:7px 9px 5px;border:4px solid #e3f3d9;border-radius:23px;background:linear-gradient(#dcebdd 0 68%,#edcf94 68%,#caaa78 100%);box-shadow:0 4px 0 #286a75}.studio::before{content:"";position:absolute;inset:0 0 31%;background:repeating-linear-gradient(90deg,transparent 0 40px,#b1c6b33b 40px 42px);pointer-events:none}.order-bubble{position:relative;display:flex;gap:5px;align-items:center;background:#fffae9;border:2px solid #a1bda4;border-radius:14px;padding:2px 9px;box-shadow:0 2px 0 #7d9e8666;z-index:1;min-width:0}.order-bubble>.friend{height:43px;width:43px;margin-top:-6px;align-self:flex-end}.order-bubble>div{min-width:0}.order-bubble small{font-size:9px;color:#8a9a7b;display:block}.order-bubble b{font-size:12px;line-height:1.5;display:block;white-space:nowrap}.work-object{min-height:0;position:relative;display:grid;place-items:center;container-type:size}.creation{position:absolute;top:50%;left:50%;translate:-50% -50%;height:auto;width:min(93cqw,calc(96cqh * 1.363636));aspect-ratio:300/220;border:0;background:none;padding:0;filter:drop-shadow(0 6px 2px #96794e22);min-height:0;min-width:0}.creation>svg{height:100%;width:100%}.can-act:hover{filter:drop-shadow(0 6px 3px #96794e44) brightness(1.04)}.studio-caption{position:relative;text-align:center;justify-self:center;align-self:end;background:#fff4d5c9;border:1px solid #e3c894;border-radius:10px;max-width:95%;padding:1px 10px;font-size:9px;color:#9d8457;white-space:nowrap;overflow:hidden}.part-overlay{position:absolute;inset:0;pointer-events:none}.part-target{position:absolute;translate:-50% -50%;pointer-events:auto;display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;border:3px solid #fff1a2;border-radius:50%;box-shadow:0 0 0 2px #508a70,inset 0 2px 0 #fff8c7;background:linear-gradient(#ffedaf,#e5c675);color:#51785c;font-size:23px;line-height:1;padding:0}.part-target.attached{background:#8dd3a2;border-color:#e1f7ca;box-shadow:0 0 0 1px #759973;color:#3b805b;font-size:19px;opacity:.95}.part-car-0{left:28%;top:74.5%}.part-car-1{left:75%;top:74.5%}.part-house-0{left:33%;top:53.6%}.part-house-1{left:67.3%;top:53.6%}.work-controls{min-height:0;display:flex;flex-direction:column;gap:8px;border:3px solid #477e83;border-radius:22px;padding:10px 11px 11px;background:linear-gradient(#fff9e6,#f4e7c8);box-shadow:inset 0 2px 0 #fffef5,0 4px 0 #255a70}.work-controls h2{font-size:17px;line-height:1.3;text-align:center;color:#48695d}.choices{display:flex;gap:7px;align-items:stretch;min-height:0}.choice{min-width:0;min-height:70px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #b5bea0;border-radius:13px;padding:4px 3px 6px;background:linear-gradient(#fffef2,#eee9d1);box-shadow:0 3px 0 #b9b695;position:relative}.choice.selected{border:3px solid #38866d;background:linear-gradient(#e8f5c8,#c7e6ad);box-shadow:0 3px 0 #3e795e,inset 0 2px 0 #f5ffdc}.choice.selected::after{content:"✓";position:absolute;right:3px;top:1px;display:grid;place-items:center;border-radius:50%;color:#2e8c64;font-size:13px;font-weight:900;line-height:1}.choice-art{display:block;width:100%;height:49px}.choice b{font-size:10px;white-space:nowrap}.swatch{display:block;width:33px;height:33px;background:var(--swatch);border:4px solid #fffbec;box-shadow:0 2px 0 #b5af8e;border-radius:50%;margin:4px 0 7px}.color-choices .choice{min-height:70px;padding:3px 0 5px}.color-choices .choice b{font-size:9px}.action-row{display:flex;align-items:stretch;gap:8px;min-height:48px}.action-row>.primary{font-size:16px;padding:6px 8px;min-width:0}.previous{width:45px;min-width:45px;padding:6px}.previous .ui-icon{width:23px;height:23px}.request-card{display:flex;align-items:center;gap:6px;border:1px solid #c6c8a1;border-radius:12px;padding:4px 6px;background:#e7e5c7}.request-label{font-size:9px;writing-mode:vertical-rl;letter-spacing:1px;color:#7c8d69;flex:none}.request-chips{display:flex;gap:4px;min-width:0;flex:1}.request-chip{min-width:0;min-height:44px;flex:1;position:relative;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #c1c3a5;background:#fff8e2;border-radius:9px;padding:2px 3px}.request-chip.matched{background:#e0f1cb;border-color:#8bae7e}.request-thumb{height:31px;width:34px;flex:none;display:block}.request-swatch{display:block;width:23px;height:23px;margin:4px auto;background:#ccc;border:3px solid #fff9e7;border-radius:50%}.request-chip small{display:block;font-size:7px;color:#90a078;line-height:1.3}.request-chip b{font-size:8px;line-height:1.5;display:block;white-space:nowrap}.request-chip em{position:absolute;right:2px;top:0;font-size:9px;color:#7d9d62;font-style:normal}.request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:24px}.request-chips:has(.request-chip:nth-child(3)) .request-chip{gap:1px}.request-chips:has(.request-chip:nth-child(3)) .request-chip small{font-size:7px}.request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:7px}.action-progress{display:flex;align-items:center;gap:8px;min-height:32px}.action-feedback{flex:1;font-size:12px;color:#6f866a;line-height:1.5}.progress-dots{display:flex;gap:5px}.progress-dots>span{display:grid;place-items:center;width:27px;height:27px;border:2px solid #bac9a4;background:#fff9df;border-radius:50%;font-size:10px;color:#a2b08e}.progress-dots>.complete{background:#85c99b;border-color:#b9e4ad;color:#faffd8}.ready-message{font-size:12px;color:#7d8e71;text-align:center;line-height:1.6}.review-button{font-size:11px;min-width:78px;padding:4px 8px}.just-finished{animation:reveal .45s ease-out}
/* Collection pages never grow with the number of saved works. */
.gallery-screen{height:100%;display:grid;grid-template-rows:38px minmax(0,1fr) 46px;gap:8px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px;color:#fff4c4;text-shadow:0 2px 0 #2d6a81}.section-title h1{font-size:21px;display:flex;align-items:center;gap:6px}.section-title .ui-icon{width:25px;height:25px;stroke:#285d77}.section-title>span{font-size:12px}.gallery-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));gap:8px;min-height:0}.work-card{min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 36px 44px;gap:4px;padding:7px;background:linear-gradient(#fff7dc,#ebddb6);border:3px solid #d3e6c8;box-shadow:0 4px 0 #256276,inset 0 0 0 1px #b2ba93;border-radius:18px;overflow:hidden}.card-product{min-height:0;position:relative;background:#c9d8ae;border-radius:11px;display:grid;place-items:center;overflow:hidden}.card-product>svg{height:100%;width:100%}.request-badge{position:absolute;top:3px;right:3px;height:24px;width:24px;filter:drop-shadow(0 1px 0 #a78642)}.request-badge .ui-icon{height:24px;width:24px}.work-card-meta{display:flex;align-items:center;gap:4px;min-width:0}.work-card-meta>.friend{width:34px;height:34px}.work-card-meta>div{min-width:0}.work-card-meta small{font-size:8px;color:#8a9878}.work-card-meta h2{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-card>.soft{min-height:44px;padding:3px;font-size:12px}.pagination{display:flex;justify-content:center;align-items:center;gap:19px}.pagination b{font-size:14px;color:#f3f4cc;text-shadow:0 2px 0 #2e6d7d;min-width:45px;text-align:center}.pagination .icon-button{height:44px;width:48px}.empty-gallery{grid-row:2/4;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;color:#fff7c9;text-align:center}.empty-gallery>.friend{min-height:0;height:min(40%,190px);width:auto;aspect-ratio:1}.empty-gallery h2{font-size:18px}
/* A completed gift is a separate game result screen. */
.celebration{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:12px 5px 5px;text-align:center;gap:8px;background:radial-gradient(ellipse at center,#dff4b3aa,transparent 70%);min-height:0}.result-title>span{font-size:11px;letter-spacing:.13em;color:#d9f4cd;text-shadow:0 1px 0 #3c7b78}.result-title h1{font-size:clamp(23px,3.5vw,35px);color:#fff0a7;text-shadow:0 3px 0 #346b74,-1px 0 #346b74,1px 0 #346b74;margin:8px 0}.result-title p{font-size:12px;color:#dff5db}.gift-scene{min-height:0;position:relative;max-width:580px;justify-self:center;width:100%;display:flex;align-items:center;justify-content:center;isolation:isolate}.gift-scene::before{content:"";position:absolute;width:75%;aspect-ratio:1;max-height:100%;background:repeating-conic-gradient(from 10deg,#fff6b91c 0deg 12deg,transparent 12deg 35deg);border-radius:50%;z-index:-1}.gift-scene>.friend{height:92%;max-width:61%;width:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 10px 0 #38766e22)}.gift-scene>svg{width:49%;height:75%;margin-left:-10%;align-self:flex-end;filter:drop-shadow(0 5px 0 #477b6822)}.sparkle{position:absolute;color:#ffed9a;font-size:46px;filter:drop-shadow(0 2px 0 #b99043)}.s1{left:1%;top:17%;rotate:-10deg}.s2{right:2%;top:1%;font-size:35px}.result-controls{display:flex;flex-direction:column;align-items:center;gap:12px}.thank-you{background:#fff2ce;border:3px solid #719c88;border-radius:16px;box-shadow:0 3px 0 #2e737c;padding:10px 17px;font-size:13px;color:#6e8d6b}.done-actions{display:flex;justify-content:center;gap:10px;width:100%;max-width:530px}.done-actions .primary{flex:1}.done-actions .soft{font-size:12px;flex:none}.result-controls>small{font-size:10px;color:#d1ebd4}
/* Focused pop-up panels use tabs instead of long scrolling sheets. */
dialog{color:var(--ink);width:min(540px,calc(100vw - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right))));max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));padding:14px;border:4px solid #386c7a;border-radius:25px;background:linear-gradient(#fff6da,#ecdfba);box-shadow:0 7px 0 #174b61,0 22px 70px #17374f77;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#0a345d99;backdrop-filter:blur(5px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;margin-bottom:11px}.modal-heading h2{font-size:21px;color:#52766d;text-shadow:0 1px 0 #fff9dc}.modal-heading .icon-button{background:linear-gradient(#f8ba9f,#df8e7f);border-color:#976e62;color:#79594f;box-shadow:inset 0 2px 0 #ffdcc3,0 3px 0 #a16f63}.modal-content{display:flex;flex-direction:column;gap:12px}.modal-content>p{font-size:13px;line-height:1.9;color:#76856d}.friend-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.friend-picker button{min-width:0;background:linear-gradient(#fff9e4,#e6dfbc);border:2px solid #c3c1a0;border-radius:16px;padding:3px 0 8px;box-shadow:0 3px 0 #b0b292}.friend-picker .friend{width:100%;height:100px}.friend-picker b{font-size:12px}.friend-picker .selected{background:linear-gradient(#d8f1c5,#b7d8aa);border:3px solid #5e9f78;box-shadow:0 3px 0 #4d866e}.settings-tabs{display:flex;gap:5px;padding:4px;background:#cdcba9;border-radius:13px}.settings-tabs>button{flex:1;border:2px solid transparent;border-radius:10px;min-height:44px;font-size:14px;background:none;color:#808b6f}.settings-tabs>.selected{background:#fff2cf;border-color:#8baa84;color:#537767;box-shadow:0 2px 0 #b9bb94}.settings-row{display:flex;align-items:center;justify-content:space-between;min-height:57px;gap:10px;padding:4px 5px;border-bottom:1px solid #cec7a3}.settings-row>span{display:flex;align-items:center;gap:6px;font-size:14px}.toggle{min-height:44px;min-width:68px;border:3px solid #7c9381;border-radius:13px;background:#b9c7b2;color:#617c69;box-shadow:inset 0 3px 0 #dee4c9}.toggle.on{background:linear-gradient(#87d49b,#53b686);color:#fffbd5;border-color:#478c71}.settings-note{background:#fff8e0;border:2px solid #d3cfaa;border-radius:14px;padding:12px}.settings-note b{font-size:15px}.settings-note p{font-size:12px;line-height:1.8;margin:9px 0;color:#7f8e70}.settings-note small{font-size:10px;color:#9b9f7e}.settings-modal>.danger-button{min-height:48px}.help-steps{display:flex;flex-direction:column;gap:8px}.help-steps>div{display:flex;align-items:center;gap:10px;padding:9px;background:#fff7da;border:1px solid #d7d2ae;border-radius:12px}.help-steps .ui-icon{height:37px;width:37px}.help-steps b{font-size:14px;display:block}.help-steps small{font-size:10px;display:block;color:#8d977a;margin-top:3px}.shop-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shop-picker button{min-width:0;border:2px solid #bdc2a1;border-radius:16px;background:#fff3d1;padding:6px 2px 12px;box-shadow:0 3px 0 #adae8b}.shop-picker svg{height:110px}.shop-picker b{font-size:12px;white-space:nowrap}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-card{min-width:0;border:3px solid #90ac8d;border-radius:17px;background:linear-gradient(#fffbe8,#e3e9c7);padding:6px 4px 13px;box-shadow:0 3px 0 #849b7e}.mode-card:hover{border-color:#468e70}.mode-art{display:block;width:100%;height:100px}.mode-art>.friend{width:100%;height:100%}.mode-card b{display:block;font-size:16px;margin:5px 0}.mode-card small{font-size:11px;color:#889777}.level-options{display:flex;gap:7px;align-items:center;justify-content:center}.level-options>span{font-size:12px}.level-options .soft{padding:7px 11px;min-height:44px}.level-options .recommended{background:linear-gradient(#dcf0bd,#bedd9f);border-color:#7a9e6b}.dialog-actions{display:flex;justify-content:center;gap:9px}.dialog-actions>button{flex:1}.display-product{height:min(30vh,180px);min-height:70px}.product-description{text-align:center;font-size:12px!important}.product-modal>.primary{flex:none}
@keyframes breathe{50%{translate:0 -3px}}@keyframes invite{50%{filter:brightness(1.13);border-color:#fff9bd}}@keyframes reveal{from{opacity:.4;scale:.91}to{opacity:1;scale:1}}
.reduce *,.reduce *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
@media(min-width:760px) and (min-height:650px){#app{grid-template-rows:65px minmax(0,1fr) 77px;gap:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.game-logo strong{font-size:29px}.town-screen{grid-template-rows:minmax(0,1fr) 78px;gap:12px}.map-plaque{font-size:15px}.town-plots{left:12%;right:12%;height:150px;bottom:14px;gap:6px 12px}.residents{left:9%;right:9%;bottom:178px;height:58px}.resident{height:60px;max-width:90px}.resident .friend{width:60px;height:60px}.shops{bottom:230px;left:11%;right:11%;top:42px}.shop{width:32%;height:90%;top:0;left:0}.shop-bread{left:34%}.shop-car{left:0;right:auto;top:9%}.shop-house{left:68%;top:9%}.shop-label{font-size:16px;min-height:34px}.town-command{max-width:900px;width:100%;justify-self:center;padding-left:14px;padding-right:14px}.town-command b{font-size:17px}.town-command small{font-size:12px}.town-command .primary{font-size:17px;padding:8px 24px}.workshop{grid-template-columns:minmax(0,1.2fr) minmax(350px,1fr);grid-template-rows:minmax(0,1fr);gap:13px}.studio{grid-template-rows:65px minmax(0,1fr) 26px;padding:14px}.order-bubble{border-radius:17px;padding:5px 12px;gap:8px}.order-bubble .friend{height:65px;width:65px}.order-bubble b{font-size:17px}.order-bubble small{font-size:11px}.studio-caption{font-size:12px}.work-controls{justify-content:center;padding:24px;gap:17px}.work-controls h2{font-size:24px}.choices{gap:10px}.choice{min-height:130px}.choice-art{height:95px}.choice b{font-size:12px}.color-choices .choice{min-height:110px}.swatch{width:46px;height:46px}.color-choices .choice b{font-size:10px}.primary{min-height:57px;font-size:19px}.action-row{min-height:57px}.request-thumb{width:46px;height:43px}.request-chip{min-height:58px}.request-chip b{font-size:11px}.request-chip small{font-size:9px}.request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:34px}.request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:9px}.request-chips:has(.request-chip:nth-child(3)) .request-chip small{font-size:8px}.request-label{font-size:11px}.action-feedback{font-size:16px}.progress-dots>span{height:34px;width:34px;font-size:13px}.ready-message{font-size:15px}.part-target{height:58px;width:58px;font-size:28px}.steps{max-width:750px;width:100%;justify-self:center}.steps li{font-size:13px}.steps li>span{width:29px;height:29px}.work-screen{grid-template-rows:44px minmax(0,1fr);gap:12px}.gallery-screen{grid-template-rows:46px minmax(0,1fr) 48px;max-width:1100px;width:100%;justify-self:center;margin:auto}.gallery-grid{gap:13px}.work-card{padding:11px;grid-template-rows:minmax(0,1fr) 45px 46px}.work-card-meta h2{font-size:14px}.work-card-meta small{font-size:10px}.work-card-meta .friend{height:44px;width:44px}.work-card>.soft{font-size:15px}.section-title h1{font-size:27px}.section-title>span{font-size:15px}}
@media(max-height:680px) and (orientation:portrait){#app{grid-template-rows:52px minmax(0,1fr) 65px;gap:7px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(5px,env(safe-area-inset-bottom))}.game-hud{grid-template-columns:50px minmax(0,1fr) 94px}.avatar-button{height:47px;width:47px}.game-logo strong{font-size:21px}.game-logo>span{font-size:8px}.hud-tools{gap:4px}.collection-counter{min-width:42px}.collection-counter .ui-icon{width:17px}.town-screen{grid-template-rows:minmax(0,1fr) 62px;gap:7px}.town-command{gap:5px;padding:3px 6px}.town-command>.friend{width:43px;height:53px}.town-command>svg{width:42px;height:44px}.town-command b{font-size:11px}.town-command small{font-size:8px}.town-command .primary,.town-command .soft{font-size:12px;padding:5px 10px}.shops{left:2%;right:2%;top:30px;bottom:190px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:stretch}.shop,.shop-bread,.shop-car,.shop-house{position:relative;width:100%;height:100%;min-height:74px;top:auto;left:auto;right:auto}.shop-art{bottom:22px}.shop-label{font-size:9px;min-height:25px;border-radius:8px;gap:1px;left:0;right:0;padding:2px}.shop-label i{display:none}.map-plaque{font-size:10px;top:5px;padding:3px 10px}.residents{bottom:150px;height:40px;left:1%;right:1%}.resident{height:42px}.resident .friend{height:40px;width:40px}.town-plots{height:138px;bottom:7px;left:4%;right:4%}.work-screen{grid-template-rows:31px minmax(0,1fr);gap:5px}.steps{gap:3px}.steps li{font-size:8px;gap:2px}.steps li>span{width:21px;height:21px;font-size:9px}.studio{padding:4px 6px 3px;grid-template-rows:32px minmax(0,1fr) 15px;border-width:3px;border-radius:18px}.order-bubble{padding:1px 5px;border-radius:11px}.order-bubble>.friend{height:33px;width:33px;margin-top:-2px}.order-bubble small{font-size:7px}.order-bubble b{font-size:10px}.studio-caption{font-size:7px;padding:0 7px}.workshop{gap:6px;grid-template-rows:minmax(85px,1fr) auto}.work-controls{gap:6px;padding:7px 8px 8px;border-radius:18px}.work-controls h2{font-size:15px}.choice{min-height:64px;padding:2px 2px 4px}.choice-art{height:42px}.choice b{font-size:9px}.color-choices .choice{min-height:64px}.swatch{width:28px;height:28px;margin:3px 0 6px}.color-choices .choice b{font-size:8px}.request-card{gap:3px;padding:3px}.request-label{font-size:8px;letter-spacing:0}.request-chip{min-height:44px}.request-chip b{font-size:8px}.request-thumb{height:28px;width:29px}.request-chips:has(.request-chip:nth-child(3)) .request-chip{flex-direction:column;gap:0;padding:2px}.request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:29px;height:21px}.request-chips:has(.request-chip:nth-child(3)) .request-chip small{display:none}.request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:7px}.action-row{min-height:45px;gap:6px}.action-row>.primary{font-size:14px;min-height:45px}.previous{min-height:45px}.action-feedback{font-size:11px}.progress-dots>span{width:23px;height:23px;font-size:9px}.action-progress{min-height:27px}.ready-message{font-size:10px}.gallery-screen{grid-template-rows:34px minmax(0,1fr) 44px;gap:6px}.section-title h1{font-size:18px}.section-title>span{font-size:10px}.work-card{padding:5px;grid-template-rows:minmax(0,1fr) 30px 44px;border-radius:14px}.work-card-meta .friend{width:28px;height:28px}.work-card-meta h2{font-size:9px}.work-card-meta small{font-size:7px}.celebration{padding:4px 0;gap:5px}.result-title h1{font-size:23px;margin:5px 0}.result-title>span{font-size:9px}.result-title p{font-size:10px}.result-controls{gap:8px}.thank-you{font-size:11px;padding:7px 10px}.done-actions{gap:7px}.done-actions .primary{min-height:45px;font-size:14px;padding:6px}.done-actions .soft{min-height:45px;padding:6px 9px}.result-controls>small{font-size:8px}.friend-picker .friend{height:75px}.friend-picker b{font-size:10px}.mode-art{height:80px}.mode-card b{font-size:14px}.mode-card small{font-size:10px}.shop-picker svg{height:80px}.shop-picker b{font-size:10px}}
@media(orientation:landscape) and (max-height:640px){#app{grid-template-rows:46px minmax(0,1fr) 56px;gap:6px;padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(5px,env(safe-area-inset-bottom));padding-left:max(28px,env(safe-area-inset-left));padding-right:max(28px,env(safe-area-inset-right))}.game-hud{grid-template-columns:52px minmax(0,1fr) 105px}.avatar-button{width:43px;height:43px;border-radius:12px}.avatar-button>span:not(.friend){display:none}.game-logo>span{font-size:8px;margin:0}.game-logo strong{font-size:22px}.game-nav{max-width:540px;padding:3px 5px;border-radius:16px;gap:6px}.nav-item{flex-direction:row;gap:7px;padding:2px 8px;font-size:11px;border-radius:11px;min-height:44px}.nav-item .ui-icon{height:24px;width:24px}.nav-item.main-nav{font-size:13px}.town-screen{grid-template-rows:minmax(0,1fr) 54px;gap:6px}.town-command{max-width:650px;width:100%;justify-self:center;padding:3px 8px;border-radius:15px;gap:7px}.town-command>.friend{height:48px;width:48px}.town-command>svg{height:42px;width:48px}.town-command b{font-size:12px}.town-command small{font-size:8px}.town-command .primary,.town-command .soft{min-height:44px;font-size:12px;padding:5px 13px}.town-scene{border-radius:18px;border-width:3px}.map-plaque{font-size:9px;padding:2px 9px;top:5px;left:29%}.shops{left:2%;right:41%;top:20px;bottom:41px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shop,.shop-bread,.shop-car,.shop-house{position:relative;left:auto;right:auto;top:auto;width:100%;height:100%;min-height:50px}.shop-art{inset:0 0 18px}.shop-label{font-size:9px;min-height:23px;padding:1px 3px;border-radius:8px;gap:2px}.shop-label i{display:none}.residents{left:1%;right:40%;bottom:4px;height:35px}.resident{height:35px;max-width:50px}.resident .friend{width:35px;height:35px}.town-plots{left:auto;right:2%;width:35%;top:8px;bottom:8px;height:auto;min-height:138px;gap:3px 5px}.plot{border-radius:9px}.work-screen{grid-template-rows:28px minmax(0,1fr);gap:4px}.steps{max-width:650px;width:100%;justify-self:center}.steps li{font-size:9px}.steps li>span{width:22px;height:22px}.workshop{grid-template-columns:minmax(0,1fr) minmax(300px,1.12fr);grid-template-rows:minmax(0,1fr);gap:8px}.studio{grid-template-rows:37px minmax(0,1fr) 17px;padding:5px 7px 3px;border-radius:17px;border-width:3px}.order-bubble{padding:1px 5px}.order-bubble .friend{height:37px;width:37px;margin-top:-2px}.order-bubble b{font-size:11px}.order-bubble small{font-size:8px}.studio-caption{font-size:8px;padding:0 7px}.work-controls{padding:7px 9px;gap:5px;border-radius:17px;justify-content:center}.work-controls h2{font-size:15px}.choice{min-height:59px;padding:2px}.choice-art{height:37px}.choice b{font-size:9px}.color-choices .choice{min-height:59px}.swatch{width:28px;height:28px;margin:2px 0 5px}.color-choices .choice b{font-size:8px}.action-row{min-height:44px;gap:6px}.action-row>.primary{min-height:44px;font-size:14px;padding:5px 6px}.previous{height:44px;padding:4px}.request-card{padding:2px 4px;gap:3px}.request-label{font-size:8px}.request-chip{min-height:44px;gap:3px}.request-thumb{width:30px;height:26px}.request-chip b{font-size:8px}.request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:7px}.request-chip small{font-size:7px}.request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:25px}.ready-message{font-size:10px}.action-progress{min-height:27px}.action-feedback{font-size:11px}.progress-dots>span{width:24px;height:24px;font-size:9px}.review-button{font-size:10px;min-width:70px;padding:3px}.gallery-screen{grid-template-rows:29px minmax(0,1fr) 44px;gap:5px}.section-title h1{font-size:19px}.section-title>span{font-size:11px}.gallery-grid{gap:9px}.work-card{padding:4px 6px;grid-template-rows:minmax(0,1fr) 25px 44px;gap:2px;border-radius:13px}.work-card-meta .friend{width:25px;height:25px}.work-card-meta h2{font-size:9px}.work-card-meta small{font-size:7px}.work-card>.soft{font-size:11px}.celebration{grid-template-columns:1fr 1.1fr;grid-template-rows:auto minmax(0,1fr);column-gap:18px;padding:0 12px}.result-title{grid-column:2;grid-row:1;align-self:end}.result-title>span{font-size:9px}.result-title h1{font-size:24px;margin:6px 0}.result-title p{font-size:10px}.gift-scene{grid-column:1;grid-row:1/3;height:100%}.result-controls{grid-column:2;grid-row:2;justify-content:center;gap:10px}.thank-you{font-size:11px;padding:8px 12px}.done-actions .primary,.done-actions .soft{min-height:44px;font-size:13px;padding:5px 8px}.result-controls>small{font-size:9px}.sparkle{font-size:29px}.s2{font-size:25px}dialog{padding:10px 13px;border-radius:20px;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)))}.modal-heading{margin-bottom:7px}.modal-heading h2{font-size:19px}.modal-content{gap:8px}.friend-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.friend-picker .friend{height:61px}.friend-picker b{font-size:10px}.friend-picker button{padding:1px 0 5px;border-radius:12px}.mode-art{height:74px}.mode-card{padding:4px 4px 8px}.mode-card b{font-size:14px;margin:3px 0}.mode-card small{font-size:10px}.level-options>span{font-size:10px}.shop-picker svg{height:95px}.shop-picker b{font-size:12px}.settings-row{min-height:49px;padding:1px 5px}.settings-row>span{font-size:12px}.settings-tabs>button{min-height:44px}.settings-note{padding:8px}.settings-note p{font-size:11px;margin:5px 0}.help-steps{gap:5px}.help-steps>div{padding:6px}.help-steps .ui-icon{width:29px;height:29px}.help-steps b{font-size:12px}.help-steps small{font-size:9px}.display-product{height:min(25vh,100px)}}
@media(max-height:360px) and (orientation:landscape){.town-screen{grid-template-rows:minmax(0,1fr)}.town-command{display:none}.map-plaque{top:3px}.work-screen{grid-template-rows:23px minmax(0,1fr);gap:2px}.steps li>b{font-size:8px}.steps li>span{width:20px;height:20px}.workshop{gap:5px}.work-controls{padding:4px 6px;gap:3px}.work-controls h2{font-size:13px}.choice-art{height:27px}.choice,.color-choices .choice{min-height:49px}.swatch{height:24px;width:24px;margin:1px 0 3px}.request-card{padding:1px 3px}.request-label{display:none}.request-thumb{width:22px;height:22px}.request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:20px}.action-progress{min-height:24px}.ready-message{font-size:9px;line-height:1.4}.order-bubble b{font-size:9px}.result-title h1{font-size:20px}.result-title p{font-size:9px}.thank-you{padding:5px 8px;font-size:10px}.result-controls{gap:6px}.result-controls>small{display:none}.help-steps small{font-size:8px}.settings-note p{font-size:10px}.modal-heading h2{font-size:17px}.modal-content>p{font-size:11px}.display-product{height:65px}.level-options .soft{min-height:44px}.mode-art{height:54px}}
@media(max-width:350px){#app{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.game-hud{grid-template-columns:48px minmax(0,1fr) 92px}.game-logo strong{font-size:19px}.game-logo>span{font-size:8px}.collection-counter{min-width:39px;font-size:12px}.hud-tools{gap:3px}.town-command b{font-size:10px}.town-command small{font-size:7px}.town-command .primary{font-size:11px;padding:5px 8px}.town-command>.friend{width:40px;height:47px}.request-thumb{width:25px}.request-chip b{font-size:7px}.request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:7px}.choice-art{height:38px}.choice b{font-size:8px}.swatch{height:26px;width:26px}.mode-card b{font-size:12px}.mode-card small{font-size:9px}.level-options{gap:5px}.level-options>span{font-size:10px}.friend-picker .friend{height:65px}.friend-picker b{font-size:9px}.modal-heading h2{font-size:18px}}
/* Only exceptionally tiny windows or text zoom use an inner recovery scroll. */
html,body{overflow:clip}body{position:fixed;inset:0}
.game-nav{height:100%;min-height:0}.nav-item>span{white-space:nowrap}.shop-art{display:flex;align-items:flex-end;justify-content:center}.shop-art>svg{height:auto;max-height:100%;width:100%;aspect-ratio:300/225}
.save-warning{color:#ffe9a4}
.shop{background:none}.shops{bottom:210px}.shop-house{top:33%;height:64%}
.part-target:not(:disabled):active{translate:-50% calc(-50% + 1px)}.creation:not(:disabled):active{translate:-50% -50%}
@media(max-height:680px) and (orientation:portrait){.shops{bottom:190px}.shop-house{top:auto;height:100%}}
@media(orientation:landscape) and (max-height:640px){.shops{bottom:41px}.shop-house{top:auto;height:100%}}
@media(min-width:760px) and (min-height:650px){.shops{bottom:230px}.shop-house{top:9%;height:90%}}
@media(max-height:360px) and (orientation:landscape){.work-controls>h2{display:none}.settings-modal{display:grid;grid-template-columns:1fr 1fr}.settings-tabs,.settings-modal>.wide,.settings-note,.settings-modal>.danger-button{grid-column:1/-1}.settings-row{flex-direction:column;justify-content:center;gap:3px;border:0;padding:0}.settings-row>span{font-size:10px}.settings-note{padding:6px}.settings-note b{font-size:12px}.settings-note p{font-size:9px;line-height:1.5;margin:4px 0}.settings-note small{font-size:8px}}
@media(max-height:360px) and (orientation:landscape){.settings-modal{gap:6px}.settings-note{padding:4px}.modal-heading{margin-bottom:5px}}
@media(max-height:285px),(max-width:280px){#main{overflow:auto}.town-screen,.work-screen,.celebration,.gallery-screen{min-height:330px}dialog{overflow:auto}}
/* Creation, experimentation and authored town projects share the fixed game viewport. */
.town-decoration{position:absolute;inset:0;pointer-events:none}.town-decoration>svg{width:100%;height:100%;object-fit:cover}
.project-trigger{min-height:44px;display:flex;align-items:center;gap:7px;z-index:3;border:2px solid #9a9d69;white-space:nowrap;top:8px;padding:3px 10px}
.project-trigger>b{background:#5d9277;color:#fff5d5;border-radius:9px;padding:3px 7px;font-size:11px}.project-trigger .ui-icon{width:19px;height:19px}
.shop-sample{position:absolute;left:4%;bottom:9%;width:58%;height:42%;filter:drop-shadow(0 4px 2px #51766355);rotate:-7deg;pointer-events:none}.shop-teaser{position:absolute;right:1%;top:9%;font-size:11px;background:#fff6d6;border:2px solid #9baf86;border-radius:12px;padding:4px 8px;rotate:6deg;box-shadow:0 3px 0 #6c8d6b33}
.reference-work{position:absolute;left:4%;bottom:1%;width:64px;height:65px;z-index:2;background:#fff4d9bb;border:2px dashed #97bca5;border-radius:12px;padding:3px;pointer-events:none}.reference-work>span{display:block;text-align:center;font-size:8px}.reference-work>svg{height:42px}
.card-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:5px;min-height:44px}.card-actions>button{min-width:0;min-height:44px;font-size:12px;padding:3px}.card-actions>button:first-child{background:linear-gradient(#bce8d3,#86c4a3);border-color:#74a68c}
.projects-modal{gap:9px}.project-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.project-chapters>button{font-size:10px;padding:5px 3px;border:2px solid #b2b99c;border-radius:11px;background:#ede8c9;min-width:0;min-height:44px}.project-chapters>.selected{background:#92d3bd;border-color:#5f9c8e;box-shadow:inset 0 2px 0 #ddf4d9}
dialog:has(.projects-modal){width:min(680px,calc(100vw - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right))))}
.project-feature{display:grid;gap:10px;min-width:0}.project-postcard{height:190px;position:relative;overflow:hidden;border:3px solid #fff6d7;border-radius:17px;box-shadow:0 3px 0 #b4b996}.project-postcard>svg{height:100%;width:100%;position:absolute;inset:0}.postcard-products{position:absolute;left:5%;right:5%;bottom:2%;height:70%;display:flex;align-items:flex-end;justify-content:center;gap:0}.postcard-products>span{width:33%;height:90%;filter:drop-shadow(0 4px 2px #698a6b44)}.postcard-products>span:nth-child(2n){align-self:center;height:80%}.postcard-stamp{position:absolute;right:5px;top:7px;padding:4px 10px;rotate:5deg;background:#fff0bd;border:2px solid #d0b472;border-radius:9px;color:#7c8863;font-size:10px}
.project-summary{display:grid;gap:7px;min-width:0}.project-number{font-size:9px;color:#8b9c76;letter-spacing:2px}.project-summary h3{font-size:21px;margin:0;color:#477c76}.project-summary>p{font-size:12px;line-height:1.6}.project-summary>small{font-size:10px;color:#7b9375;line-height:1.5}.project-needs{display:grid;gap:5px}.project-needs:has(.project-need:nth-child(4)){grid-template-columns:1fr 1fr}.project-need{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:5px;min-height:44px;border:2px solid #d3cfaa;border-radius:11px;padding:3px 7px;background:#fff6dc}.project-need.met{background:#d6e8c5;border-color:#96bc89}.need-art{width:43px;height:35px}.project-need>b{font-size:10px;line-height:1.5}.project-need>em{font-size:11px;color:#7d9e7b;font-style:normal;white-space:nowrap}.seven-symbol{display:block;text-align:center;color:#70a48d;font-size:26px;line-height:35px}.seven-symbol>span{font-size:12px}
.project-pager{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:9px;align-items:center}.project-pager>.primary{font-size:14px;min-height:48px;padding:5px}.project-pager>.icon-button{width:44px;height:44px}
.play-screen{height:100%;min-height:0;display:grid;grid-template-rows:74px minmax(0,1fr) 174px;gap:9px}.play-heading{text-align:center;align-self:center;color:#fff5cf;text-shadow:0 2px 0 #366b78;min-width:0}.play-kicker{font-size:10px;letter-spacing:2px;color:#d2ecca}.play-heading>h1{font-size:24px;margin:4px 0}.play-heading>p{font-size:11px}.toy-stage{position:relative;min-height:0;min-width:0;border:4px solid #f4e9b9;border-radius:24px;overflow:hidden;box-shadow:0 5px 0 #286377,inset 0 0 0 2px #89b9a1;background:#c0dca8;container-type:size}.toy-backdrop,.toy-road,.house-sky{position:absolute;inset:0;pointer-events:none}.toy-backdrop>svg,.house-sky>svg,.toy-road>svg{width:100%;height:100%;}.toy-road>svg{overflow:visible}.road-friend{position:absolute;right:7%;top:7%;height:33%;display:grid;grid-template-rows:minmax(0,1fr) 18px;justify-items:center}.road-friend>.friend{width:100%;height:100%;max-width:110px}.road-friend>span{font-size:11px;background:#fff0cf;border-radius:8px;padding:2px 7px;white-space:nowrap}.toy-effect{position:absolute;right:9%;bottom:12%;font-size:40px;color:#fff2ad;animation:arrive .5s ease-out both}
.toy-controls{display:flex;flex-direction:column;justify-content:center;gap:11px;padding:9px 12px;background:linear-gradient(#fff7dc,#eaddb7);border:3px solid #bad8b1;border-radius:22px;box-shadow:0 4px 0 #286579;min-height:0;min-width:0}.toy-feedback{text-align:center;font-size:13px;line-height:1.5;min-height:24px;color:#5b836b}.toy-choices{display:flex;justify-content:center;gap:7px;min-height:44px}.toy-choice{border:2px solid #b3b998;background:#fff6dc;border-radius:12px;padding:6px 9px;font-size:11px;flex:1;min-width:0;min-height:44px}.toy-choice>span{font-size:19px;margin-right:5px}.toy-choice.selected{background:#a8dfc6;border-color:#6ea28a;box-shadow:inset 0 2px 0 #dcf3d5}.toy-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:6px;min-height:44px}.toy-actions>button{font-size:11px;padding:5px;min-width:0;min-height:44px}
.sharing-table{position:absolute;inset:7% 6% auto;height:62%;display:flex;gap:5px;justify-content:space-around}.picnic-guest{width:31%;display:flex;align-items:center;flex-direction:column;gap:3px;min-width:0}.picnic-guest>.friend{width:100%;height:clamp(34px,20cqh,110px)}.picnic-guest>span{font-size:10px;background:#fff0ce99;border-radius:6px;padding:2px 8px}.picnic-plate{width:95%;height:clamp(44px,22cqh,100px);border-radius:50%;border:3px solid #dac391;background:radial-gradient(ellipse,#fff8df 40%,#e5d6ad 43%,#fff4d4 49%);box-shadow:0 4px 0 #998c6755;display:flex;align-items:center;justify-content:center;position:relative;flex:none;padding:0}.plate-plus{font-size:25px;color:#a5b591}.picnic-plate>em{position:absolute;bottom:-4px;font-size:8px;font-style:normal;background:#d4ebbc;border-radius:8px;padding:2px 5px;white-space:nowrap}.bread-portion{position:relative;display:inline-block;width:clamp(18px,7cqw,36px);height:clamp(40px,15.4cqw,80px);overflow:hidden;flex:none;pointer-events:none}.bread-portion>svg{position:absolute;top:0;left:calc(var(--part) * -100%);width:300%;height:100%;max-width:none}.portion-0{--part:0}.portion-1{--part:1}.portion-2{--part:2}.sharing-source{position:absolute;bottom:1%;left:15%;right:15%;height:30%;display:flex;align-items:center;justify-content:center;gap:2px}.sharing-counter{display:flex;align-items:center;justify-content:center;gap:10px}.sharing-counter>span{width:35px;height:35px;border:2px solid #c7c49a;background:#f7edc6;border-radius:50%;display:grid;place-items:center;color:#a4ac87;font-size:13px}.sharing-counter>.complete{background:#91ceaa;border-color:#79ae89;color:#fff9d7}
.house-sky{transition:background .4s}.sky-0{background:#c8e9dc}.sky-1{background:linear-gradient(#9f9cc2,#f8c99c)}.sky-2{background:linear-gradient(#40597d,#8b9db0)}.toy-house{position:absolute;left:50%;top:53%;translate:-50% -50%;width:min(88cqw,89cqh * 1.3636);aspect-ratio:300/220}.toy-house .creation{position:relative;inset:auto;translate:none!important;width:100%;height:100%;filter:drop-shadow(0 7px 3px #324c5355)}.lamp-switch{background:#fdf6dfbb;color:#a2a98b;border:2px dashed #99b5a2;box-shadow:none}.lamp-switch.is-lit{background:#ffdc7599;color:#fff8dc;border-color:#ffe9a1;box-shadow:0 0 20px #ffdc9588}.house-friend{position:absolute;right:1%;bottom:0;width:22%;height:33%;pointer-events:none}.house-friend>.friend{width:100%;height:100%}
@keyframes arrive{from{scale:.4;opacity:0}to{scale:1;opacity:1}}
.is-hidden *{animation-play-state:paused!important}
@media(min-width:760px) and (min-height:650px){.project-feature{grid-template-columns:1fr 1fr;align-items:center}.project-postcard{height:280px}.play-screen{grid-template-rows:80px minmax(0,1fr) 184px}.toy-stage{max-width:1050px;width:100%;justify-self:center}.toy-controls{max-width:900px;width:100%;justify-self:center}.toy-choice{font-size:14px}.toy-actions>button{font-size:15px}}
@media(max-height:680px) and (orientation:portrait){.project-postcard{height:105px}.project-summary{gap:4px}.project-summary h3{font-size:17px}.project-summary>p{font-size:10px}.project-number{font-size:8px}.projects-modal{gap:6px}.project-feature{gap:6px}.project-need{padding:2px 5px;min-height:37px;grid-template-columns:33px minmax(0,1fr) auto}.need-art{width:32px;height:29px}.project-need>b{font-size:9px}.project-summary>small{font-size:9px}.project-chapters>button{font-size:8px}.play-screen{grid-template-rows:59px minmax(0,1fr) 155px;gap:7px}.play-heading>h1{font-size:19px}.play-heading>p{font-size:9px}.play-kicker{font-size:8px}.toy-controls{gap:7px;padding:7px}.toy-feedback{font-size:10px;min-height:20px}.toy-choice{font-size:9px;padding:3px}.toy-choice>span{font-size:16px;margin-right:3px}.toy-actions{gap:4px}.toy-actions>button{font-size:9px}.shop-teaser{font-size:9px;padding:2px 5px}.project-trigger{top:5px;font-size:10px}.project-trigger>b{font-size:9px}.reference-work{width:48px;height:49px}.reference-work>svg{height:29px}.reference-work>span{font-size:7px}}
@media(orientation:landscape) and (max-height:640px){.project-trigger{left:28%;top:3px;transform:translateX(-50%);font-size:9px;padding:2px 7px;gap:4px;min-height:44px}.project-trigger>b{font-size:8px;padding:2px 5px}.project-trigger .ui-icon{width:16px}.shops{top:49px}.shop-teaser{font-size:8px;top:0;padding:2px 5px}.shop-sample{width:50%;bottom:10%}.play-screen{grid-template-columns:minmax(0,1fr) minmax(265px,1.1fr);grid-template-rows:43px minmax(0,1fr);gap:5px 9px}.play-heading{grid-column:2;grid-row:1}.play-heading>h1{font-size:18px;margin:2px 0}.play-kicker{font-size:8px;letter-spacing:1px}.play-heading>p{font-size:8px}.toy-stage{grid-column:1;grid-row:1/3;border-width:3px;border-radius:18px}.toy-controls{grid-column:2;grid-row:2;gap:7px;padding:6px 8px;border-radius:17px}.toy-feedback{font-size:10px;min-height:18px}.toy-choice{font-size:9px;padding:3px}.toy-choice>span{font-size:15px;margin-right:2px}.toy-actions>button{font-size:9px}.toy-actions{gap:4px}.toy-choices{gap:4px}.road-friend>span{font-size:8px}.picnic-guest>span{font-size:8px;padding:1px 5px}.reference-work{width:40px;height:40px}.reference-work>svg{height:25px}.reference-work>span{font-size:6px}dialog:has(.projects-modal){width:min(900px,calc(100vw - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right))))}.projects-modal{gap:6px}.project-feature{grid-template-columns:.8fr 1.2fr;gap:10px;align-items:center}.project-postcard{height:140px}.project-summary{gap:3px}.project-summary h3{font-size:17px}.project-summary>p{font-size:10px}.project-summary>small{font-size:8px}.project-needs{grid-template-columns:1fr 1fr;gap:4px}.project-need{min-height:30px;grid-template-columns:27px minmax(0,1fr) auto;padding:2px 4px;gap:3px}.need-art{width:26px;height:25px}.project-need>b{font-size:8px}.project-need>em{font-size:9px}.project-number{font-size:8px}.project-chapters>button{font-size:9px}.project-pager>.primary{min-height:44px;font-size:12px}}
@media(max-height:360px) and (orientation:landscape){.play-heading>p{display:none}.play-heading>h1{font-size:15px}.play-screen{grid-template-rows:31px minmax(0,1fr);gap:4px 7px}.toy-controls{gap:4px;padding:4px}.toy-feedback{font-size:9px;line-height:1.35;min-height:14px}.toy-actions>button{font-size:8px}.toy-choice{font-size:8px}.toy-choice>span{font-size:13px}.sharing-counter>span{width:26px;height:26px;font-size:10px}.toy-choices{min-height:30px}.project-postcard{height:108px}.project-number,.project-summary>small{display:none}.project-summary>p{font-size:9px}.project-summary h3{font-size:15px}.project-summary{gap:3px}.project-feature{gap:7px}.project-needs{gap:3px}.project-need{min-height:28px}.project-chapters>button{font-size:8px}.projects-modal{gap:4px}dialog:has(.projects-modal){padding:7px 10px}.projects-modal .project-postcard{border-radius:12px}.postcard-stamp{font-size:7px;padding:3px}.seven-symbol{font-size:20px;line-height:25px}.reference-work{display:none}}
@media(max-width:350px){.project-trigger{font-size:9px;gap:4px}.project-trigger>b{font-size:8px}.project-trigger .ui-icon{width:16px}.project-command b{font-size:10px}.project-command small{font-size:8px}.card-actions>button{font-size:10px}.toy-actions>button{font-size:8px}.play-heading>h1{font-size:17px}.play-heading>p{font-size:8px}.project-needs:has(.project-need:nth-child(4)) .project-need{grid-template-columns:22px minmax(0,1fr) auto;padding:2px;gap:2px}.project-needs:has(.project-need:nth-child(4)) .need-art{width:22px}.project-needs:has(.project-need:nth-child(4)) .project-need>b{font-size:8px}}
@media(prefers-reduced-motion:reduce){.house-sky{transition:none}}

.shop-teaser{top:auto;bottom:57%}

.toy-route-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.toy-route-svg .car-sprite{width:156px;height:114px}.sharing-table{display:grid;grid-template-columns:repeat(var(--guests),minmax(0,1fr));gap:4px}.picnic-guest{width:100%}.bread-portion{width:clamp(18px,calc(21cqw / var(--pieces,3)),36px)}.bread-portion>svg{width:calc(var(--pieces,3) * 100%)}

.bread-portion{--loaf-width:clamp(72px,21cqw,132px);width:calc(var(--loaf-width) / var(--pieces,3));height:calc(var(--loaf-width) * .733333)}.choice{position:relative}.choice-cue{position:absolute;left:2px;right:2px;top:2px;font-size:8px;line-height:13px;background:#eff2c9e6;color:#749374;border-radius:5px;pointer-events:none}.project-chapters>button{font-size:11px}.town-decoration>svg{}@media(max-height:360px) and (orientation:landscape){.choice-cue{font-size:6px;line-height:9px}.project-chapters>button{font-size:10px}}

.shop-teaser{bottom:42%}

/* Orientation audit: preserve readable labels instead of shrinking them to fit. */
.choice-cue{white-space:nowrap}
.primary{color:#10382f;text-shadow:none}
dialog{inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));margin:auto}
.danger-button{color:#40201f;text-shadow:none}
.nav-item{background:linear-gradient(#32677b,#28576d);text-shadow:none}
.nav-item.active{color:#10382f;text-shadow:none}
.nav-item.main-nav{background:linear-gradient(#ffe4a2,#edbd68);color:#10382f;text-shadow:none}
.toggle.on{color:#10382f}
.order-bubble small,.studio-caption,.request-label,.request-chip small,
.settings-note p,.settings-note small,.modal-content>p,.help-steps small,
.mode-card small,.project-summary>small,.project-number,.project-need>em,
.work-card-meta small,.choice-cue,.toy-feedback{color:#405c51}
.shop-label,.shop-teaser,.town-command b,.town-command small,.project-trigger,
.project-trigger>b,.steps li,.steps li>b,.order-bubble small,.order-bubble b,
.studio-caption,.choice b,.color-choices .choice b,.request-label,
.request-chip b,.request-chips:has(.request-chip:nth-child(3)) .request-chip b,
.request-chip small,.ready-message,.review-button,.work-card-meta h2,
.work-card-meta small,.friend-picker b,.mode-card small,.shop-picker b,
.result-title>span,.result-title p,.result-controls>small,.settings-note p,
.settings-note small,.settings-row>span,.help-steps small,.level-options>span,
.project-number,.project-summary>p,.project-summary>small,.project-need>b,
.project-need>em,.project-chapters>button,.postcard-stamp,.reference-work>span,
.play-kicker,.play-heading>p,.toy-feedback,.toy-choice,.toy-actions>button,
.road-friend>span,.picnic-guest>span,.picnic-plate>em,.card-actions>button,
.choice-cue{font-size:11px}
.choice-cue{line-height:15px}
.color-choices .choice b{white-space:normal;width:100%;line-height:12px;overflow-wrap:anywhere}
.choice:has(.choice-cue){padding-top:18px;min-height:82px}
.choice.selected:has(.choice-cue)::after{top:20px}
.action-row,.action-row>.primary,.done-actions>.primary{min-height:48px}
.order-bubble b{white-space:normal;line-height:1.3}
.request-chip>span:not(.request-thumb){min-width:0}
.request-chip b{white-space:normal;line-height:1.25}
.request-chip em{font-size:11px}
.part-house-0{left:min(33%,calc(50% - 26px))}
.part-house-1{left:max(67.3%,calc(50% + 26px))}
.studio-caption{line-height:15px}
.reference-work{width:64px;height:61px}
.reference-work>svg{height:38px}
.project-trigger>b{background:#326b58;color:#fff5d5}
.work-card-meta h2{line-height:1.3}
.project-need>b{line-height:1.3}
.settings-note p{line-height:1.55}
@media(max-width:380px){
  .color-choices{gap:2px}
  .color-choices .choice{min-height:76px;flex:1 1 0}
  .color-choices .choice:has(.choice-cue){min-height:84px}
  .color-choices .swatch{width:24px;height:24px;margin:2px 0}
  .steps li>span{display:none}
  .steps li.current{border-bottom:3px solid #fff3b0;padding-bottom:3px}
  .choice:has(.choice-cue){min-height:80px}
  .project-needs:has(.project-need:nth-child(4)) .project-need{grid-template-columns:20px minmax(0,1fr) auto;gap:2px}
  .project-needs:has(.project-need:nth-child(4)) .need-art{width:20px}
  .project-needs:has(.project-need:nth-child(4)) .project-need>b{font-size:11px}
}
@media(orientation:portrait){
  .shops{top:60px;left:2%;right:2%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .shop,.shop-bread,.shop-car,.shop-house{position:relative;left:auto;right:auto;top:auto;width:100%;height:100%;min-height:74px}
  .shop-art{inset:0 0 28px}
  .shop-label{left:0;right:0;gap:1px;padding:2px}
  .shop-label i{display:none}
}
@media(orientation:portrait) and (max-height:680px){.project-postcard{height:80px}}
@media(min-width:760px) and (min-height:650px){.shops{top:64px}}
@media(orientation:landscape) and (max-height:640px){
  .project-trigger{left:3px;translate:none;transform:none;max-width:calc(59% - 6px);white-space:normal}
  .studio{grid-template-rows:43px minmax(0,1fr) 19px}
  .request-chip small{display:none}
  .request-thumb{flex:none}
  .request-chip{gap:2px}
  .work-controls{padding:5px 6px;gap:4px}
  .choice:has(.choice-cue){min-height:76px}
  .shop-label{padding:1px}
  .project-need{min-height:34px}
}
@media(orientation:landscape) and (max-height:500px){
  .work-card{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:minmax(0,1fr) 44px;gap:4px}
  .card-product{grid-column:1;grid-row:1/3}
  .work-card-meta{grid-column:2;grid-row:1;flex-wrap:wrap;align-content:center;gap:3px}
  .work-card-meta .friend{width:28px;height:28px}
  .card-actions{grid-column:2;grid-row:2;gap:3px;grid-template-columns:1fr 1fr}
  .project-summary>p,.project-summary>small,.project-number{display:none}
  .project-summary h3{font-size:17px}
  .project-needs{grid-template-columns:1fr 1fr}
  .project-feature{grid-template-columns:.7fr 1.3fr}
  .help-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .help-steps>div{flex-direction:column;align-items:flex-start;gap:4px;padding:7px}
  .help-steps b{font-size:12px;line-height:1.45}
  .help-steps small{line-height:1.5}
}
@media(orientation:landscape) and (max-height:360px){
  .celebration{row-gap:4px}
  .result-title h1{font-size:18px;line-height:1.2;margin:3px 0}
  .result-controls{gap:4px}
  .work-controls>h2{display:none}
  .studio{grid-template-rows:32px minmax(0,1fr);padding:3px 5px}
  .order-bubble>.friend{height:27px;width:27px;margin:0}
  .order-bubble b{display:none}
  .order-bubble small{line-height:1.3}
  .studio-caption{display:none}
  .work-screen{grid-template-rows:26px minmax(0,1fr)}
  .choice,.color-choices .choice{min-height:59px}
  .work-controls{padding:3px 5px;gap:3px}
  .work-controls:has(.request-card){padding:0 4px;gap:1px}
  .work-controls:has(.request-card) .request-card{flex:none;padding:0;border:0}
  .work-controls:has(.request-card) .choices{flex:none;min-height:46px}
  .work-controls:has(.request-card) .choice{min-height:46px;padding:1px}
  .work-controls:has(.request-card) .choice-art{height:24px}
  .work-controls:has(.request-card) .color-choices .choice{padding:0}
  .work-controls:has(.request-card) .swatch{width:18px;height:18px;margin:0;border-width:3px}
  .work-controls:has(.request-card) .action-row,.work-controls:has(.request-card) .action-row>.primary{min-height:44px;flex-shrink:0}
  .choice-art{height:32px}
  .request-chips:has(.request-chip:nth-child(3)) .request-thumb{width:20px}
  .request-chip b{font-size:11px}
  .request-chips:has(.request-chip:nth-child(3)) .request-chip b{font-size:11px}
  .toy-feedback{line-height:1.4;min-height:17px}
  .settings-note{padding:4px}
  .settings-note p{margin:3px 0}
  .settings-modal{gap:4px}
  .settings-modal .settings-note{padding:3px}
  dialog:has(.settings-modal){padding-top:6px;padding-bottom:6px}
  .help-steps .ui-icon{height:25px;width:25px}
}

/* Maker experiments: one screen, large controls and visible retry results. */
.maker-play .play-heading>h1{font-size:22px;line-height:1.15;margin:3px 0}.maker-play .play-heading>p{font-size:11px;line-height:1.25;margin:0}.maker-play .play-kicker{font-size:9px;line-height:10px}
.play-screen.maker-play{grid-template-rows:58px minmax(0,1fr) 212px;gap:7px}
.maker-play .toy-controls{gap:5px;padding:7px}
.maker-play .toy-feedback{margin:0;line-height:1.35;min-height:34px;font-size:13px;color:#476c63}
.maker-play .trial-success{color:#32724e}
.stamp-ribbon{display:inline;margin-left:5px;color:#8a601d;font-size:11px}
.maker-play .toy-choices,.pace-options,.cut-options{display:flex;gap:5px;min-height:44px}
.maker-play .toy-choice,.maker-play .toy-actions>button{min-height:44px;font-size:11px;padding:4px 6px}
.bridge-options,.goal-options{position:absolute;bottom:5px;left:5px;right:5px;display:flex;gap:5px;z-index:3;min-height:44px}
.bridge-options>.toy-choice,.goal-options>.toy-choice{flex:1;min-height:44px;background:#fff4d5dd;display:flex;align-items:center;justify-content:center;gap:4px}
.bridge-options>.selected,.goal-options>.selected{background:#d6edbe;border:3px solid #4c9677}
.board-sample{height:9px;background:#dba864;border:2px solid #9b7244;border-radius:3px;display:inline-block;max-width:42%}
.board-0{width:18px}.board-1{width:30px}.board-2{width:44px}
.maker-play .bridge-scene{position:absolute;top:0;left:0;width:100%;height:calc(100% - 48px)}
.maker-play .road-friend{bottom:auto;top:5%;right:2%;max-width:24%}
.maker-play .road-friend>span{font-size:9px}
.maker-play .toy-house{top:43%;width:min(76cqw,66cqh * 1.3636)}
.maker-play .house-friend{bottom:50px;right:1%;width:22%}
.maker-sky-night{background:#57708e}.maker-sky-sunset{background:#edcaa3}
.light-picture{display:inline-flex;gap:4px;vertical-align:middle}
.light-picture>i{display:inline-grid;place-items:center;width:21px;height:21px;background:#aec5c2;border:2px solid #789a92;border-radius:5px;color:#5b7b75;font-style:normal}
.light-picture>i.lit{color:#9c7023;background:#ffed95;border-color:#c8a15a;box-shadow:0 0 8px #fff2a3}
.light-goal-readout{display:flex;justify-content:center;align-items:center;gap:6px;min-height:25px;font-size:12px}
.wiring-key{font-size:10px;line-height:1.3;text-align:center;margin:0;color:#617c71}
.whole-loaf{display:block;width:min(90%,220px);height:100%}.whole-loaf>svg{width:100%;height:100%}
.gallery-screen{grid-template-rows:46px minmax(0,1fr) 46px}
.gallery-heading-actions{display:flex;align-items:center;gap:6px;font-size:10px}
.stamp-book-button{min-height:44px;min-width:82px;padding:4px 7px;font-size:11px;white-space:nowrap}
.maker-stamp-list{display:flex;flex-direction:column;gap:10px}
.maker-stamp-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;border:2px solid #b9c79f;background:#fff9df;padding:10px;border-radius:16px}
.maker-stamp-card h3{font-size:16px;margin:0 0 3px}.maker-stamp-card p{font-size:12px;margin:0}.maker-stamp-card small{font-size:11px;display:block;line-height:1.5}
.stamp-art{display:grid;place-items:center}.stamp-art>svg{width:100%;max-height:105px}
.stamp-dots{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0}.stamp-dots>span{width:22px;height:22px;text-align:center;border-radius:50%;background:#ddd8b5;color:#8d987e}.stamp-dots>.earned{background:#eac65b;color:#806021}
.maker-stamp-card button{min-height:44px;padding:5px 10px;font-size:12px}.stamp-intro{font-size:12px;line-height:1.6}
@keyframes maker-place{0%{scale:.65;filter:brightness(1.3)}65%{scale:1.08}100%{scale:1;filter:none}}
.plot.just-placed{animation:maker-place .4s ease-out}.reduce .plot.just-placed{animation:none}
@media(prefers-reduced-motion:reduce){.plot.just-placed{animation:none}}
@media(max-width:380px) and (orientation:portrait){.play-screen.maker-play{grid-template-rows:48px minmax(0,1fr) 192px;gap:5px}.maker-play .play-kicker{display:none}.maker-play .play-heading>p{font-size:10px}.maker-play .play-heading>h1{font-size:20px}.maker-play .toy-controls{padding:4px;gap:4px}.maker-play .toy-feedback{font-size:11px;min-height:28px}.maker-play .toy-choice{font-size:11px}.gallery-heading-actions{gap:3px}.gallery-heading-actions>span{display:none}.gallery-screen .section-title h1{font-size:15px}.maker-stamp-card{grid-template-columns:65px minmax(0,1fr)}}
@media(orientation:landscape) and (max-height:640px){.play-screen.maker-play{position:relative;grid-template-columns:minmax(0,1fr) minmax(265px,1.1fr);grid-template-rows:minmax(0,1fr);gap:7px}.maker-play .play-heading{position:absolute;grid-column:1/2;grid-row:1/2;left:6px;top:3px;width:calc(100% - 12px);z-index:2;pointer-events:none}.maker-play .play-heading>h1{font-size:16px;margin:0;color:#285f65;text-shadow:0 1px 1px #fff5d9}.maker-play .play-heading>p,.maker-play .play-kicker{display:none}.maker-play .toy-stage{grid-column:1;grid-row:1}.maker-play .toy-controls{grid-column:2;grid-row:1;gap:3px;padding:3px;justify-content:center}.maker-play .toy-feedback{font-size:11px;line-height:1.2;min-height:28px}.maker-play .toy-choice,.maker-play .toy-actions>button{font-size:11px;min-height:44px;padding:3px}.stamp-ribbon{font-size:11px}.maker-play .light-picture>i{width:18px;height:18px}.maker-play .light-goal-readout{min-height:22px;font-size:11px}.maker-play .wiring-key{font-size:11px;line-height:1.2}.maker-play .road-friend{top:10%;max-width:21%}.maker-play .road-friend>span{display:none}.bridge-options,.goal-options{gap:3px;bottom:3px;left:3px;right:3px}.bridge-options b{font-size:11px}.board-sample{max-width:35%}.gallery-screen{grid-template-rows:44px minmax(0,1fr) 44px}.maker-stamp-card{grid-template-columns:70px minmax(0,1fr);padding:7px}.maker-stamp-card h3{font-size:14px}}

/* Keep the idea book usable without a six-pixel scroll on short landscape screens. */
@media(max-height:360px) and (orientation:landscape){dialog:has(.projects-modal){padding-block:3px}}
