@import './fonts.css';

:root{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#3b3344;background:#faf7f0;font-synthesis:none;--ink:#3b3344;--muted:#827b84;--plum:#76518a;--plum-dark:#5e3f70;--sage:#6d8970;--paper:#fffdf8;--line:#e7e0d7;--gold:#b78b43;--serif:'Lora',Georgia,serif}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a680b5;outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button svg{flex-shrink:0}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button{border:0;background:none}button:disabled{opacity:.5}img{display:block;max-width:100%}.site-header{height:104px;max-width:1376px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;margin:auto;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{position:relative;display:grid;place-items:center;width:49px;height:56px;color:var(--plum);transform:rotate(-8deg)}.brand-mark>.icon{width:42px;height:49px;stroke-width:1.2}.brand-mark>.brand-sparkle{width:21px;height:21px;position:absolute;top:-2px;right:-6px;color:var(--gold)}.brand-text{font-family:var(--serif);font-size:25px;font-weight:600;letter-spacing:-1px}.brand-amp{font-style:italic;color:var(--plum)}.brand-text small{display:block;font-family:'DM Sans',sans-serif;font-size:8px;font-weight:600;letter-spacing:2.7px;margin-top:7px;color:#8e7b8b}.header-actions{display:flex;gap:23px;align-items:center}.coin-balance{display:flex;align-items:center;gap:8px;background:#f4eddd;border:1px solid #e9dfc8;padding:9px 15px;border-radius:24px;font-size:12px}.coin-balance>.icon{color:#b98c41;width:21px;height:21px;fill:#e9cf85}.coin-balance strong{font-size:17px;font-weight:600;color:#765c30}.coin-balance>span{color:#8f7e5d}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:#827588;transition:background .18s}.icon-button:hover:not(:disabled){background:#eee5f0}.settings-button{border:1px solid var(--line);border-radius:50%}.site-header+main{max-width:1280px;margin:0 auto;padding:38px 0 0}.page-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:700;color:#9b819a;display:block;line-height:1.5}.intro-eyebrow{color:var(--sage);font-size:9px;letter-spacing:2px;margin-bottom:9px}h1{font-family:var(--serif);font-size:37px;font-weight:500;letter-spacing:-1.6px;line-height:1.3}.page-intro>div>p{font-size:13px;color:var(--muted);margin-top:8px;letter-spacing:.1px}.progress-note{display:flex;align-items:center;gap:13px;padding-right:1px}.progress-note>.icon{color:#b4a2bb;width:28px;height:32px;stroke-width:1.2}.progress-note strong{font-size:12px;font-weight:600;display:block}.progress-note span{display:block;font-size:10px;color:#968b96;margin-top:5px}.main-nav{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:23px;padding-bottom:12px;align-items:center}.nav-tab{display:flex;gap:9px;align-items:center;font-size:12px;padding:10px 17px;border-radius:9px;color:#847988;min-height:44px;font-weight:500;transition:background .2s}.nav-tab.active{background:#eee5f1;color:#70517e}.nav-tab:hover{background:#f0e9ec}.nav-tab .icon{width:18px;height:18px}.nav-count{font-size:9px;background:#e4d7e9;border-radius:50%;width:18px;height:18px;display:grid;place-items:center}.nav-aside{margin-left:auto;display:flex;gap:6px;align-items:center;font-size:10px;color:#9b9494;font-style:italic}.nav-aside .icon{width:14px;height:14px;color:#8da189}.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:23px;align-items:stretch}.workbench{border-radius:15px;overflow:hidden;box-shadow:0 3px 20px #4f35490b;border:1px solid #e6dbcf;background:#fffcf5}.shop-scene{height:428px;position:relative;overflow:hidden;background:#c7a77d;isolation:isolate}.shop-background{width:100%;height:100%;object-fit:cover;object-position:center 54%;position:absolute;inset:0;z-index:-3}.scene-shade{position:absolute;inset:0;background:linear-gradient(0deg,#2c183a4f,transparent 42%,#4a2c2926);z-index:-2}.shop-sign{position:absolute;top:24px;left:50%;transform:translateX(-50%) rotate(-1deg);color:#f9ebd4;background:#5e463c;border:2px solid #ac8761;box-shadow:0 2px 0 #3d3026,0 4px 15px #37211726;padding:10px 29px 9px;border-radius:3px;text-align:center;font-family:var(--serif);white-space:nowrap}.shop-sign>.icon{height:15px;width:15px;position:absolute;left:10px;top:14px;color:#c8c19c}.shop-sign>span:not(.sign-subtitle){font-size:17px}.sign-subtitle{display:block;font-family:'DM Sans',sans-serif;font-size:6px;letter-spacing:3px;color:#d3bfa0;margin-top:5px}.scene-tag{position:absolute;top:16px;left:16px;display:flex;gap:5px;align-items:center;background:#fff8e7d9;color:#826e50;border-radius:5px;padding:6px 9px;font-size:9px;box-shadow:0 2px 8px #59422915}.scene-tag .icon{width:12px;height:12px}.brewing-glow{position:absolute;bottom:2%;left:35%;width:50%;height:58%;border-radius:50%;background:radial-gradient(ellipse,var(--potion-color),transparent 66%);opacity:.22;z-index:-1}.counter-front{position:absolute;bottom:0;left:0;right:0;height:46px;background:linear-gradient(180deg,#9c704b,#73503a);border-top:9px solid #c39463;box-shadow:0 -4px 12px #49341a2a;z-index:1}.counter-front:after{content:'';position:absolute;top:10px;left:0;right:0;height:1px;background:#b58a5a66}.cauldron-wrap{position:absolute;width:36%;max-width:290px;bottom:27px;left:46%;z-index:2}.cauldron{display:block;width:100%;filter:drop-shadow(0 10px 10px #2a1e282f)}.stirring-spoon{transform-origin:176px 130px;animation:spoon-sway 5s ease-in-out infinite}.potion-bubbles{animation:bubbles 2.6s ease-in-out infinite}.scene-familiar{position:absolute;width:27%;left:13%;bottom:43px;z-index:3;padding:0;transform-origin:center bottom;animation:familiar-breathe 4s ease-in-out infinite}.scene-familiar img{width:100%;filter:drop-shadow(0 9px 6px #2b1f2c30)}.scene-familiar:hover{animation:familiar-wiggle .6s ease-in-out}.scene-familiar.petted{animation:pet-bounce .65s ease-in-out}.pet-heart{opacity:0;position:absolute;top:5%;right:5%;font-size:30px;color:#fff3dd;text-shadow:0 2px 6px #8c5969}.petted .pet-heart{animation:heart-pop 1s ease-out}.familiar-caption{position:absolute;bottom:8px;left:21px;z-index:4;color:#fff4df;display:flex;gap:10px;align-items:center}.familiar-caption-name{display:flex;align-items:center;gap:6px;font-family:var(--serif);font-size:16px}.familiar-caption-name .icon{width:12px;height:12px;color:#eacdad}.familiar-caption>span:last-child{font-size:9px;color:#f0d8be;letter-spacing:.2px}.pet-speech{position:absolute;bottom:23%;left:6%;max-width:230px;padding:11px 14px;background:#fffaf0f2;color:#746052;box-shadow:0 3px 12px #30201e0f;border:1px solid #e9dac6;border-radius:13px 13px 13px 3px;font-size:10px;line-height:1.6;z-index:4;transform:translateY(-95px);pointer-events:none}.star-garland{position:absolute;left:15%;right:15%;top:103px;border-bottom:1px solid #eedca4;border-radius:50%;display:flex;justify-content:space-around;height:26px;color:#ffe6a2;text-shadow:0 0 8px #fff6b5;font-size:24px;z-index:3}.star-garland span:nth-child(even){transform:translateY(12px)}.decoration-plant{position:absolute;bottom:43px;right:2%;width:15%;z-index:2;filter:drop-shadow(0 5px 4px #38291b30)}.ingredient-shelf{padding:20px 23px 18px;background:linear-gradient(180deg,#fffdf7,#f9f4e9)}.shelf-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.shelf-heading h2{font-family:var(--serif);font-size:16px;font-weight:500;letter-spacing:-.4px}.shelf-heading p{font-size:10px;color:#928579;margin-top:5px}.scoop-picker{display:flex;gap:4px;border:1px solid #e7dcca;background:#f6f0e4;padding:4px;border-radius:10px}.scoop-button{min-width:52px;padding:5px 6px 4px;border-radius:6px;display:flex;gap:5px;align-items:center;justify-content:center;font-size:9px;white-space:nowrap;min-height:40px;color:#8e7b6f}.scoop-button.selected{background:#fffdf8;box-shadow:0 1px 4px #48302014;color:#795a88;outline:1px solid #e1d4e5}.scoop-drawing{display:block;position:relative;width:14px;height:14px;border:1.3px solid currentColor;border-top:0;border-radius:0 0 3px 3px;overflow:visible}.scoop-drawing:before{content:'';position:absolute;right:-5px;top:2px;width:4px;height:6px;border:1px solid currentColor;border-radius:0 3px 3px 0}.scoop-drawing>span{position:absolute;bottom:1px;left:1px;right:1px;height:calc(var(--fill) - 2px);background:#bd9ec9;opacity:.55;border-radius:0 0 2px 2px}.ingredients{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ingredient{position:relative;display:flex;flex-direction:column;align-items:center;border:1px solid #e9dfcf;border-radius:10px;background:#fffdf6;padding:7px 6px 10px;min-height:133px;transition:transform .18s,border-color .18s,box-shadow .18s}.ingredient:hover:not(:disabled){transform:translateY(-3px);border-color:#c5adcd;box-shadow:0 4px 10px #4d364715}.ingredient:active:not(:disabled){transform:translateY(0) scale(.97)}.ingredient-art{height:74px;width:100%;display:flex;align-items:center;justify-content:center}.ingredient-art>img{height:76px;width:85px;object-fit:contain;filter:drop-shadow(0 3px 3px #482f3315)}.ingredient-name{font-size:10px;font-weight:600;margin-top:5px;color:#69534e}.ingredient-amount{font-size:8px;color:#a08c79;margin-top:4px}.needed-dot{position:absolute;top:10px;right:10px;width:5px;height:5px;border-radius:50%;background:var(--ingredient-color)}.just-poured .ingredient-art>img{animation:ingredient-pour .4s ease-out}.order-panel{border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:22px;display:flex;flex-direction:column;box-shadow:0 3px 20px #4f354905;position:relative}.order-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.order-topline>.eyebrow{font-size:8px;letter-spacing:1.7px}.reward-tag{display:flex;align-items:center;gap:4px;font-size:11px;color:#a17e43;font-weight:600}.reward-tag .icon{width:16px;height:16px;fill:#f1e0ae}.customer{display:flex;gap:10px;align-items:center;margin-bottom:12px}.customer-portrait{width:45px;height:45px;flex-shrink:0;border-radius:50%;background:#f0e9dd;overflow:hidden;border:1px solid #e2d8c9;display:grid;place-items:center}.customer-portrait img{width:45px;height:45px;object-fit:contain;transform:scale(1.1) translateY(3px)}.customer-name{display:block;font-size:12px;font-weight:600}.customer-role{font-size:9px;color:#a09594;display:block;margin-top:4px}.order-number{margin-left:auto;font-size:9px;color:#a89a93;align-self:flex-start;padding-top:3px}.customer-request{font-family:var(--serif);font-style:italic;font-size:12px;line-height:1.8;color:#8a7b80;padding-bottom:20px;margin-bottom:21px;border-bottom:1px dashed #e6dcd7;min-height:65px}.recipe-heading{display:flex;gap:9px;align-items:center;margin-bottom:17px}.tiny-bottle{width:33px;height:41px;display:flex;align-items:center;justify-content:center;color:var(--potion-color);background:color-mix(in srgb,var(--potion-color) 12%,transparent);border-radius:8px}.tiny-bottle .icon{width:25px;height:30px;stroke-width:1.5}.recipe-heading h2{font-family:var(--serif);font-size:18px;font-weight:500;letter-spacing:-.5px}.recipe-heading p{font-size:9px;color:#a2949d;margin-top:5px}.recipe-meta{display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#988991;margin-bottom:19px;gap:6px}.recipe-meta>span:first-child{display:flex;gap:5px;align-items:center}.recipe-meta .icon{width:13px;height:13px}.batch-badge{background:#f1ece2;color:#8d7b62;font-size:8px;padding:5px 7px;border-radius:4px;white-space:nowrap}.recipe-rows{display:flex;flex-direction:column;gap:16px}.recipe-row-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#756874}.ingredient-swatch{width:6px;height:6px;border-radius:50%;background:var(--ingredient-color)}.recipe-quantity{margin-left:auto;font-size:11px;color:#66566c;font-weight:600;font-variant-numeric:tabular-nums}.recipe-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;min-height:15px}.fraction-bar{display:flex;gap:3px;flex:1;max-width:170px;height:7px}.fraction-segment{height:100%;background:#eee9e2;border-radius:2px;flex:1}.fraction-segment.filled{background:var(--ingredient-color);transition:background .2s}.recipe-count{font-size:9px;font-variant-numeric:tabular-nums;color:#a08f9c;display:flex;align-items:center;gap:4px;white-space:nowrap}.recipe-count .icon{width:12px;height:12px;color:var(--sage)}.ingredient-complete .recipe-row-label{color:#5e795e}.recipe-total{display:flex;align-items:center;justify-content:space-between;font-size:10px;padding-top:16px;margin-top:16px;border-top:1px solid #ece5df;color:#9b8d96}.recipe-total strong{font-size:11px;font-weight:500;color:#77667b}.feedback{font-size:10px;line-height:1.7;color:#a08e99;padding:14px 0 8px;min-height:54px;margin-top:auto}.feedback.helpful{color:#8a6b45}.feedback.ready{color:#608065}.hint-button{display:flex;align-items:center;gap:5px;color:#9e84a5;font-size:10px;align-self:flex-start;padding:5px 0 12px;min-height:32px}.hint-button .icon{width:14px;height:14px}.hint-button:hover{color:#674174}.brew-actions{display:flex;gap:8px;align-items:center;margin-top:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;border-radius:9px;font-size:12px;font-weight:500;min-height:46px;transition:background .2s,transform .15s;line-height:1.4}.button:active:not(:disabled){transform:scale(.98)}.primary{background:#7c588e;color:#fff7ff;box-shadow:0 3px 0 #624472,0 4px 7px #5130580d}.primary:hover:not(:disabled){background:#6c457f}.primary:disabled{background:#c9bbcd;color:#fff;box-shadow:0 2px 0 #b9aabd;opacity:1}.brew-button{flex:1;white-space:nowrap}.brew-button>.icon{width:17px;height:17px}.correction-actions{display:flex;gap:1px}.correction-actions .icon-button{width:33px;height:40px;border:1px solid #e8dfe6;border-radius:7px}.correction-actions .icon{width:15px;height:15px}.no-penalty{text-align:center;font-size:8px;color:#b1a3ac;margin-top:14px}.below-shop{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:20px 2px 0;color:#aaa097;font-size:10px}.below-shop>span{display:flex;gap:7px;align-items:center}.below-shop>.text-link{font-size:9px}.below-shop .icon{width:13px;height:13px}.text-link{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#9a879c;padding:5px 0;min-height:32px}.text-link:hover{color:#725680}.text-link>.icon{height:13px;width:13px}footer{max-width:1280px;margin:33px auto 0;border-top:1px solid var(--line);padding:20px 0 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:9px;color:#aaa09d}.footer-star{padding:0 10px;color:#bf9a6c}.batch-notice{display:flex;gap:6px;font-size:10px;color:#91759b;margin-top:12px;line-height:1.6}.batch-notice .icon{width:14px;height:14px}.success-panel{align-items:center;text-align:center;justify-content:center;padding:35px 28px}.success-sparkles{font-size:28px;letter-spacing:10px;color:#c2a469;margin-bottom:12px}.success-potion{display:grid;place-items:center;width:106px;height:106px;background:radial-gradient(circle,color-mix(in srgb,var(--potion-color) 24%,#fffdf8),transparent 70%);color:var(--potion-color);margin-bottom:14px}.success-potion>.icon{width:68px;height:78px;stroke-width:1;transform:rotate(-8deg);animation:potion-reveal .7s ease-out}.success-panel>.eyebrow{font-size:8px;margin-bottom:10px}.success-panel>h2{font-size:29px;font-family:var(--serif);font-weight:400;letter-spacing:-1px;line-height:1.4}.success-panel>p{font-size:12px;line-height:1.8;color:#9b899d;margin-top:14px}.earned-coins{display:flex;align-items:center;gap:7px;color:#ac8240;background:#f8f0de;border:1px solid #efe2c1;border-radius:20px;padding:9px 17px;font-size:14px;margin-top:22px}.earned-coins>.icon{fill:#eddaaa}.learning-note{display:flex;align-items:flex-start;gap:7px;padding:20px 0 24px;font-size:10px;line-height:1.8;color:#9f8ea5;text-align:left}.learning-note>.icon{width:17px;height:17px;margin-top:2px}.next-order{width:100%}.text-button{color:#92779d;font-size:10px;box-shadow:none;margin-top:9px}.text-button .icon{width:15px;height:15px}.collection-view{padding:19px 0 25px;min-height:610px}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:30px}.collection-heading .eyebrow{color:#9c8aa1;font-size:9px;margin-bottom:9px}.collection-heading h2{font-family:var(--serif);font-size:29px;letter-spacing:-1px;font-weight:400}.collection-heading p{font-size:12px;color:#958996;line-height:1.8;margin-top:10px;max-width:620px}.collection-count{padding:10px 15px;border:1px solid #e5dae8;border-radius:20px;font-size:11px;color:#a088aa;white-space:nowrap}.familiar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.familiar-card{border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:22px 26px 18px;text-align:center;display:flex;align-items:center;flex-direction:column}.familiar-card.active-familiar{border-color:#c1a7cb;box-shadow:0 0 0 3px #cbb4d316}.familiar-art{height:220px;position:relative;display:flex;align-items:center;justify-content:center;width:100%;margin-bottom:16px}.familiar-art>img{height:210px;max-width:100%;object-fit:contain;z-index:1;filter:drop-shadow(0 8px 7px #6b457020);transition:transform .3s}.familiar-card:hover .familiar-art>img{transform:translateY(-5px) rotate(-2deg)}.familiar-halo{width:200px;height:180px;position:absolute;background:radial-gradient(ellipse,#eadfecaa,transparent 70%);border-radius:50%}.owned-tag{position:absolute;top:0;left:0;z-index:2;border:1px solid #e7dce9;border-radius:20px;background:#fffaf6;color:#9c83a4;padding:6px 9px;font-size:8px;display:flex;align-items:center;gap:5px}.owned-tag .icon{width:12px;height:12px}.familiar-card>.eyebrow{color:#a2949f;font-size:8px}.familiar-card>h3{font-family:var(--serif);font-size:27px;font-weight:500;margin-top:5px}.familiar-card>p{font-size:12px;line-height:1.8;color:#978998;margin-top:9px;max-width:230px;min-height:44px}.favorite{font-size:10px;color:#a38b9f;display:flex;gap:5px;align-items:center;margin:18px 0 23px}.favorite .icon{width:15px;height:15px}.familiar-card>.button{width:100%;margin-top:auto}.soft-button{background:#eee6f0;color:#967b9e;box-shadow:none}.soft-button:disabled{opacity:1}.cost-note{font-size:9px;color:#ab9ca6;display:block;margin-top:12px;line-height:1.6;min-height:16px}.back-to-brewing{margin:30px auto 0;display:flex;color:#997a9f;border:1px solid #ddcfdf;background:#f8f1f8;width:max-content}.cozy-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.cozy-scene{overflow:hidden;border-radius:15px;border:1px solid #ded2c2}.cozy-scene .shop-scene{height:100%;min-height:480px}.decorations{display:flex;flex-direction:column;gap:15px}.decoration-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:21px}.decoration-icon{display:inline-flex;padding:9px;background:#eeeee1;color:#8ca080;border-radius:10px;margin-bottom:13px}.decoration-icon>.icon{width:23px;height:23px}.decoration-card>h3{font-family:var(--serif);font-size:18px;font-weight:500}.decoration-card>p{font-size:11px;color:#9d8e9d;line-height:1.7;margin:9px 0 16px}.decoration-card>.button{width:100%}.game-dialog{border:1px solid #e9dfdf;background:#fffdf8;border-radius:20px;box-shadow:0 15px 100px #291c3a45;padding:29px;width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 50px);color:var(--ink)}.game-dialog::backdrop{background:#30233280;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-icon{padding:11px;border-radius:14px;color:#9a79a6;background:#f1e9f2;display:grid;place-items:center}.dialog-icon>.icon{width:28px;height:28px}.game-dialog>.eyebrow{font-size:9px;margin-bottom:8px}.game-dialog h2{font-family:var(--serif);font-size:28px;line-height:1.4;font-weight:400;letter-spacing:-1px}.game-dialog>p{font-size:12px;color:#978898;line-height:1.8;margin-top:12px}.game-dialog fieldset{border:0;padding:0;margin:22px 0}.game-dialog legend{font-size:11px;font-weight:600;margin-bottom:11px}.setting-option{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #e8deeb;border-radius:10px;cursor:pointer;margin-bottom:9px}.setting-option:has(input:checked){background:#f5eff7;border-color:#c1a5ce}.setting-option input{width:17px;height:17px;margin:1px 0 0;accent-color:#856094;flex-shrink:0}.setting-option strong,.toggle-setting strong{font-size:12px;font-weight:500;display:block}.setting-option small,.toggle-setting small{font-size:10px;color:#a08da3;display:block;line-height:1.7;margin-top:4px}.toggle-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;cursor:pointer}.toggle-setting input{width:21px;height:21px;accent-color:#856094;flex-shrink:0}.game-dialog>.button{width:100%;margin-top:18px}.game-dialog>.settings-note{font-size:10px;color:#ab9aab}.help-steps{margin:24px 0 18px;padding:0;list-style:none;display:flex;flex-direction:column;gap:18px}.help-steps li{display:flex;gap:12px;align-items:flex-start}.help-steps li>span{background:#efe7f1;color:#94769f;border-radius:50%;width:25px;height:25px;flex-shrink:0;display:grid;place-items:center;font-size:11px}.help-steps strong{font-size:12px;font-weight:500}.help-steps p{font-size:11px;color:#9c8d9e;line-height:1.8;margin-top:4px}.install-note{display:flex;gap:10px;background:#f3f1e6;padding:14px;border-radius:11px;color:#96967b;font-size:10px;line-height:1.8}.install-note>.icon{width:17px;height:17px;margin-top:2px}.toast{position:fixed;z-index:10;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);border:1px solid #dfd3e4;background:#fffdf7;box-shadow:0 6px 25px #35213f25;color:#7c5c8a;font-size:12px;line-height:1.7;padding:13px 22px;border-radius:13px;max-width:calc(100% - 30px);width:max-content;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.storage-warning{font-size:12px;line-height:1.7;background:#f3e6cc;color:#8b6b3c;padding:13px;border-radius:9px;margin-top:15px}
@keyframes familiar-breathe{0%,100%{transform:scale(1) translateY(0)}50%{transform:scale(1.018,.985) translateY(1px)}}@keyframes spoon-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}@keyframes bubbles{0%,100%{transform:translateY(0);opacity:.65}50%{transform:translateY(-13px);opacity:1}}@keyframes familiar-wiggle{0%,100%{transform:rotate(0)}35%{transform:rotate(-4deg)}70%{transform:rotate(4deg)}}@keyframes pet-bounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-17px) rotate(-4deg)}70%{transform:translateY(-4px) rotate(3deg)}}@keyframes heart-pop{0%{opacity:0;transform:translateY(0) scale(.4)}30%{opacity:1;transform:translateY(-10px) scale(1)}100%{opacity:0;transform:translateY(-45px) scale(1.2)}}@keyframes ingredient-pour{0%,100%{transform:rotate(0)}40%{transform:rotate(-12deg) translateY(-5px)}}@keyframes potion-reveal{0%{transform:rotate(-12deg) scale(.5)}65%{transform:rotate(5deg) scale(1.1)}100%{transform:rotate(-8deg) scale(1)}}
@media(min-width:1550px){.site-header{max-width:1460px}.site-header+main,footer{max-width:1360px}.shop-scene{height:480px}.shop-layout{grid-template-columns:minmax(0,1fr) 360px}.order-panel{padding:26px}.shelf-heading h2{font-size:18px}.ingredient-art,.ingredient-art>img{height:88px}.ingredient{min-height:148px}}
@media(max-width:1380px){.site-header{padding:0 40px}.site-header+main,footer{margin-left:40px;margin-right:40px}.shop-layout{grid-template-columns:minmax(0,1fr) 315px;gap:20px}.order-panel{padding:20px}.shop-scene{height:408px}.ingredient-shelf{padding:18px}.shelf-heading{gap:8px}.shelf-heading h2{font-size:14px}.shelf-heading p{font-size:9px}.scoop-button{min-width:46px;font-size:8px}.cauldron-wrap{width:39%;left:45%}.pet-speech{max-width:185px;font-size:9px;transform:translateY(-75px)}}
@media(max-width:1100px){.site-header{height:90px;padding:0 27px}.site-header+main,footer{margin-left:27px;margin-right:27px}.site-header+main{padding-top:29px}.shop-layout{grid-template-columns:minmax(0,1fr) 290px;gap:17px}.order-panel{padding:18px}.shop-scene{height:387px}.shop-sign{top:37px;padding:8px 22px}.shop-sign>span:not(.sign-subtitle){font-size:14px}.shop-sign>.icon{width:12px;height:12px;left:7px;top:11px}.scene-tag{font-size:8px;top:10px;left:10px}.shelf-heading{align-items:flex-start;flex-direction:column;gap:13px}.scoop-picker{align-self:flex-end;margin-top:-1px}.ingredients{gap:7px}.ingredient{min-height:123px}.ingredient-name{font-size:9px}.ingredient-amount{font-size:8px}.ingredient-art,.ingredient-art>img{height:67px}.nav-aside{display:none}.progress-note{max-width:200px}.progress-note span{line-height:1.5}.pet-speech{left:5%;max-width:160px;bottom:25%;transform:translateY(-45px)}.familiar-caption{left:14px}.familiar-caption>span:last-child{font-size:8px}.cauldron-wrap{width:46%;left:41%;bottom:32px}.scene-familiar{width:33%;left:7%;bottom:47px}.page-intro h1{font-size:33px}.brand-text{font-size:23px}.familiar-card{padding:18px}.familiar-art{height:180px}.familiar-art>img{height:175px}.familiar-halo{width:170px;height:160px}.familiar-grid{gap:17px}.familiar-card>p{font-size:11px}.familiar-card>.button{font-size:11px;padding:12px 10px}.cozy-layout{grid-template-columns:minmax(0,1fr) 260px}.collection-heading h2{font-size:27px}}
@media(max-width:800px){.site-header{padding:0 22px;height:85px}.site-header+main,footer{margin-left:22px;margin-right:22px}.shop-layout{grid-template-columns:minmax(0,1fr) 268px;gap:14px}.order-panel{padding:16px}.shop-scene{height:350px}.pet-speech{left:5%;max-width:140px;font-size:8px;padding:8px 10px;bottom:25%;transform:translateY(-38px)}.scene-familiar{width:39%;left:5%}.cauldron-wrap{width:55%;left:39%;bottom:34px}.familiar-caption{gap:5px;left:12px}.familiar-caption-name{font-size:13px}.familiar-caption>span:last-child{font-size:7px}.shelf-heading h2{font-size:13px}.shelf-heading p{font-size:9px;line-height:1.7}.ingredient-shelf{padding:14px 12px}.ingredients{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.ingredient{padding:5px 3px 8px;min-height:103px}.ingredient-art,.ingredient-art>img{height:52px}.ingredient-name{font-size:8px;line-height:1.4;min-height:22px;display:flex;align-items:center}.ingredient-amount{font-size:7px}.needed-dot{top:6px;right:6px;width:4px;height:4px}.scoop-picker{align-self:flex-start}.scoop-button{min-width:54px;font-size:9px}.recipe-heading h2{font-size:16px}.recipe-heading{gap:6px}.recipe-heading p{font-size:8px}.recipe-meta{font-size:7px}.recipe-meta .icon{width:11px;height:11px}.batch-badge{font-size:7px;padding:5px}.brew-button{font-size:11px;padding:12px 10px;gap:5px}.correction-actions .icon-button{width:29px}.brew-actions{gap:5px}.no-penalty{font-size:7px}.page-intro h1{font-size:30px}.progress-note{max-width:175px}.progress-note strong{font-size:10px}.progress-note span{font-size:9px}.progress-note>.icon{width:23px;height:27px}.page-intro>div>p{font-size:11px}.intro-eyebrow{font-size:8px}.nav-tab{padding:10px 13px;font-size:11px}.below-shop{font-size:8px;align-items:flex-start;line-height:1.7}.below-shop>.text-link{font-size:8px;text-align:right;padding:0}.familiar-grid{gap:12px}.familiar-card{padding:13px 10px}.familiar-art,.familiar-art>img{height:150px}.familiar-halo{width:125px;height:125px}.familiar-card>p{font-size:10px}.familiar-card>h3{font-size:24px}.familiar-card>.button{font-size:9px}.favorite{font-size:8px;gap:3px}.cost-note{font-size:8px}.collection-heading p{font-size:11px}.collection-heading h2{font-size:25px}.collection-count{font-size:9px;padding:8px 10px}.owned-tag{font-size:7px;padding:5px;gap:3px}.owned-tag>.icon{width:10px;height:10px}.cozy-layout{grid-template-columns:minmax(0,1fr) 230px;gap:14px}.decoration-card{padding:18px}.decoration-card>h3{font-size:16px}.cozy-scene .shop-scene{min-height:475px}}
@media(max-width:650px){.site-header{padding:0 18px;height:81px}.site-header+main,footer{margin-left:16px;margin-right:16px}.brand{gap:8px}.brand-mark{width:36px;height:44px}.brand-mark>.icon{width:34px;height:38px}.brand-mark>.brand-sparkle{width:16px;height:16px}.brand-text{font-size:20px}.brand-text small{font-size:6px;letter-spacing:2px;margin-top:5px}.header-actions{gap:10px}.coin-balance{padding:7px 10px;gap:5px}.coin-balance strong{font-size:14px}.coin-balance>span{display:none}.coin-balance>.icon{width:18px;height:18px}.settings-button{width:37px;height:37px}.settings-button>.icon{width:17px;height:17px}.site-header+main{padding-top:24px}.page-intro{margin-bottom:22px}.page-intro h1{font-size:30px;letter-spacing:-1.3px}.page-intro>div>p{font-size:11px;line-height:1.7;max-width:250px}.intro-eyebrow{font-size:7px;letter-spacing:1.4px}.progress-note{display:none}.main-nav{gap:3px;padding-bottom:11px;margin-bottom:17px;justify-content:space-between}.nav-tab{font-size:10px;padding:8px 9px;gap:6px;min-height:44px}.nav-tab>.icon{width:15px;height:15px}.nav-count{width:15px;height:15px;font-size:8px}.shop-layout{grid-template-columns:1fr;gap:17px}.shop-scene{height:345px}.shop-sign{top:28px;padding:10px 26px}.shop-sign>span:not(.sign-subtitle){font-size:17px}.sign-subtitle{font-size:6px}.shop-sign>.icon{top:13px;left:8px;width:15px;height:15px}.scene-tag{font-size:8px;top:11px;left:11px}.cauldron-wrap{width:43%;left:44%;bottom:27px}.scene-familiar{width:32%;left:8%;bottom:44px}.pet-speech{max-width:160px;font-size:9px;bottom:25%;transform:translateY(-40px)}.familiar-caption{left:16px;gap:9px;bottom:11px}.familiar-caption-name{font-size:14px}.familiar-caption>span:last-child{font-size:8px}.counter-front{height:43px}.ingredient-shelf{padding:17px 15px}.shelf-heading{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:13px}.shelf-heading h2{font-size:14px}.shelf-heading p{font-size:9px}.scoop-picker{margin-left:auto;align-self:auto}.scoop-button{min-width:43px;font-size:8px;gap:5px;padding:5px;min-height:36px}.scoop-drawing{width:12px;height:12px}.ingredients{gap:8px}.ingredient{padding:8px 3px 10px;min-height:116px}.ingredient-art,.ingredient-art>img{height:63px}.ingredient-name{font-size:9px;min-height:14px;margin-top:7px}.ingredient-amount{font-size:8px}.order-panel{padding:22px}.order-topline{margin-bottom:16px}.customer-portrait{width:45px;height:45px}.customer-request{min-height:auto;font-size:13px;padding-bottom:17px;margin-bottom:18px}.recipe-heading h2{font-size:21px}.recipe-heading p{font-size:10px}.recipe-meta{font-size:9px}.recipe-meta .icon{width:14px;height:14px}.batch-badge{font-size:8px}.recipe-rows{gap:16px}.recipe-row-label{font-size:12px}.recipe-quantity{font-size:12px}.fraction-bar{max-width:none;height:9px}.recipe-count{font-size:11px;min-width:62px;justify-content:flex-end}.recipe-total{font-size:11px}.recipe-total strong{font-size:12px}.feedback{min-height:auto;font-size:11px;padding:14px 0 6px}.hint-button{font-size:11px;padding:8px 0 13px}.brew-actions{gap:10px}.brew-button{font-size:13px}.correction-actions{gap:6px}.correction-actions .icon-button{width:44px;height:46px}.correction-actions .icon{width:18px;height:18px}.no-penalty{font-size:9px}.below-shop{flex-direction:column;gap:4px;font-size:9px;padding-top:16px}.below-shop>.text-link{font-size:9px;text-align:left}.success-panel{padding:30px 24px}.success-potion{height:90px;margin-bottom:10px}.success-panel>h2{font-size:28px}.success-panel>p{font-size:12px;max-width:260px}.learning-note{max-width:290px;font-size:11px}.success-panel .button{width:100%}.success-sparkles{margin-bottom:5px}.familiar-grid{grid-template-columns:1fr;gap:17px}.collection-view{padding:12px 0 0}.collection-heading{flex-direction:column;align-items:flex-start;gap:15px;margin-bottom:22px}.collection-heading h2{font-size:27px;line-height:1.4}.collection-heading p{font-size:12px}.collection-count{font-size:10px}.familiar-card{padding:24px}.familiar-art,.familiar-art>img{height:220px}.familiar-halo{width:240px;height:190px}.familiar-card>.eyebrow{font-size:9px}.familiar-card>h3{font-size:30px}.familiar-card>p{font-size:12px;min-height:auto}.favorite{font-size:11px;margin:14px 0 21px}.familiar-card>.button{font-size:12px}.cost-note{font-size:10px}.owned-tag{font-size:9px;padding:7px 10px}.owned-tag>.icon{width:13px;height:13px}.cozy-layout{grid-template-columns:1fr;gap:17px}.cozy-scene .shop-scene{height:350px;min-height:0}.decorations{display:grid;grid-template-columns:1fr 1fr;gap:12px}.decoration-card{padding:16px}.decoration-card>h3{font-size:16px;line-height:1.5}.decoration-card>p{font-size:11px}.decoration-card>.button{font-size:11px;padding:12px 9px}.decoration-icon{padding:8px}.decoration-card>.cost-note{font-size:9px}footer{margin-top:25px;padding:17px 0 24px;font-size:8px;align-items:flex-start}footer>.text-link{font-size:8px;padding:0;min-height:28px}.footer-star{padding:0 4px}.game-dialog{padding:23px}.game-dialog h2{font-size:26px}.toast{bottom:18px;font-size:11px;padding:12px 17px}}
@media(max-width:380px){.brand-text{font-size:18px}.brand-text small{font-size:5px}.header-actions{gap:7px}.site-header{padding:0 13px}.site-header+main,footer{margin-left:12px;margin-right:12px}.nav-tab{font-size:9px;padding:8px 6px;gap:5px}.nav-tab>.icon{width:14px;height:14px}.page-intro h1{font-size:27px}.shop-scene{height:305px}.pet-speech{max-width:138px;font-size:8px;transform:translateY(-34px)}.shop-sign>span:not(.sign-subtitle){font-size:14px}.shop-sign{top:31px;padding:9px 22px}.ingredient-name{font-size:8px}.ingredient-amount{font-size:7px}.ingredient-art,.ingredient-art>img{height:55px}.ingredients{gap:5px}.ingredient{min-height:104px}.ingredient-shelf{padding:14px 11px}.order-panel{padding:19px}.familiar-caption{left:11px;gap:7px}.familiar-caption-name{font-size:13px}.familiar-caption>span:last-child{font-size:7px}.shelf-heading{gap:11px}.scoop-picker{margin-left:0}.decorations{grid-template-columns:1fr}.intro-eyebrow{font-size:6px}footer{font-size:7px}.cozy-scene .shop-scene{height:305px}}
@media(pointer:coarse){.icon-button{min-width:44px;min-height:44px}.scoop-button{min-height:44px}.hint-button{min-height:44px}.text-link{min-height:44px}.nav-tab{min-height:44px}.correction-actions .icon-button{width:44px;min-width:44px}.scoop-picker{padding:3px}.scoop-button{min-width:45px}.recipe-meta{flex-wrap:wrap}}
.scoop-button{gap:9px}.ingredient-name{font-size:11px}.ingredient-amount{font-size:9px}.recipe-row-label,.recipe-quantity{font-size:12px}.recipe-meta{font-size:9px}.recipe-count{font-size:10px}.feedback{font-size:11px}.pet-speech{top:30%;bottom:auto;transform:none}.ingredient-complete .recipe-row-label{color:#5e795e}
@media(min-width:651px){.shelf-heading{flex-direction:row;align-items:center}.scoop-picker{align-self:auto;flex-shrink:0;margin:0}.shelf-heading>div:first-child{min-width:0}.shelf-heading h2{line-height:1.5}.scoop-button{font-size:10px;min-width:51px}.recipe-meta{flex-wrap:wrap}}
@media(min-width:651px) and (max-height:850px){.site-header{height:75px}.site-header+main{padding-top:21px}.page-intro{margin-bottom:19px}.page-intro h1{font-size:29px}.intro-eyebrow{display:none}.page-intro>div>p{margin-top:5px}.main-nav{padding-bottom:8px;margin-bottom:17px}.shop-scene{height:300px}.customer-request{padding-bottom:14px;margin-bottom:15px}.order-topline{margin-bottom:12px}.recipe-heading{margin-bottom:13px}.recipe-meta{margin-bottom:14px}.recipe-rows{gap:13px}.recipe-total{margin-top:13px;padding-top:13px}.order-panel{padding:18px}.ingredient-shelf{padding-top:16px;padding-bottom:16px}.familiar-caption>span:last-child{font-size:8px}.scene-familiar{width:30%;bottom:43px}.cauldron-wrap{width:40%;bottom:26px}.pet-speech{top:30%;font-size:9px;max-width:165px}.below-shop{padding-top:16px}}
@media(max-width:800px) and (min-width:651px){.ingredient-name{font-size:9px}.ingredient-amount{font-size:8px}.scoop-button{font-size:9px;min-width:45px}.scoop-picker{gap:2px}.shelf-heading h2{font-size:12px}.shelf-heading p{font-size:9px}.recipe-row-label,.recipe-quantity{font-size:11px}.recipe-meta{font-size:8px}.cauldron-wrap{width:50%;left:42%}.scene-familiar{width:38%}}
@media(max-width:650px){.ingredient-name{font-size:10px}.recipe-row-label,.recipe-quantity{font-size:13px}.ingredient-amount{font-size:9px}.scoop-button{gap:8px}.pet-speech{top:29%}}
@media(max-width:380px){.ingredient-name{font-size:9px}.ingredient-amount{font-size:8px}}
@media(min-width:651px) and (max-height:850px){.site-header{height:67px}.site-header+main{padding-top:15px}.page-intro{margin-bottom:12px}.page-intro h1{font-size:27px}.main-nav{margin-bottom:13px}.order-topline{margin-bottom:9px}.customer{margin-bottom:9px}.customer-request{min-height:0;font-size:11px;padding-bottom:10px;margin-bottom:11px}.recipe-heading{margin-bottom:10px}.recipe-meta{margin-bottom:11px}.recipe-rows{gap:10px}.recipe-progress{margin-top:4px;min-height:13px}.recipe-total{padding-top:10px;margin-top:10px}.feedback{min-height:38px;padding-top:10px;padding-bottom:4px;font-size:10px}.hint-button{padding-bottom:6px}.no-penalty{margin-top:10px}.order-panel{padding:17px}.shelf-heading h2{font-size:14px}.shelf-heading p{font-size:10px}}
@media(min-width:651px) and (max-height:850px){.pet-speech{top:20%}}
@media(pointer:coarse){footer>.text-link{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Finite pantry and fifth-grade math. */
.selected-ingredient{border-color:#aa8db8;background:#f6eff8;box-shadow:0 0 0 2px #b69bc420}.pantry .ingredients{gap:10px}.pantry .ingredient{min-height:106px;padding:6px 5px 10px}.pantry .ingredient-art,.pantry .ingredient-art>img{height:56px}.pantry .ingredient-name{font-size:11px}.pantry .ingredient-amount{font-size:10px}.pantry .shelf-heading{margin-bottom:13px}.pantry .shelf-heading p{font-size:11px;line-height:1.6;max-width:420px}.supply-link{white-space:nowrap;color:#8a7096;font-size:11px;flex-shrink:0}.portion-tray{margin-top:17px;padding-top:14px;border-top:1px solid #e8ded2}.portion-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.portion-heading h3{font-size:12px;font-weight:600}.portion-heading>span{font-size:10px;color:#a18c81}.portion-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.portion-button{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:10px 6px;min-height:66px;border:1px solid #d8cadf;border-radius:9px;background:#fffdf9;transition:transform .15s,background .15s}.portion-button:hover:not(:disabled){background:#f0e5f4;border-color:#a17caf;transform:translateY(-2px)}.portion-button:disabled{opacity:.37}.portion-button strong{font-size:17px;font-weight:600;color:#735582;white-space:nowrap}.portion-button strong>small{font-size:9px;font-weight:400}.portion-button>span{font-size:10px;color:#9d899f}.blend-equation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;min-height:28px;line-height:1.7}.blend-equation>span{font-size:10px;color:#9b8a92;white-space:nowrap}.blend-equation>strong{font-size:12px;color:#80688a;font-weight:500;text-align:right;overflow-wrap:anywhere}.pantry-low{display:flex;gap:6px;align-items:flex-start;font-size:11px;line-height:1.8;color:#967a50;margin-top:10px}.pantry-low>.icon{width:15px;height:15px;flex-shrink:0;margin-top:3px}.fraction-meter{height:8px;flex:1;background:#eee7e5;overflow:hidden;border-radius:3px}.fraction-meter>span{display:block;height:100%;background:var(--ingredient-color);transition:width .2s}.portions-added{font-size:11px;color:#aa98aa}.recipe-count{font-size:10px}.recover-button{font-size:11px;background:#f2ebf4;color:#876494;border:1px solid #e2d6e8;width:100%;margin:8px 0 10px;min-height:44px;padding:10px;box-shadow:none}.recover-button:hover:not(:disabled){background:#e9dced}.recover-button:disabled{opacity:.4}.recover-button>.icon{width:15px;height:15px}.no-penalty{font-size:9px}.pantry .ingredient-swatch{flex-shrink:0}.supply-tabs{display:flex;gap:9px;flex-wrap:wrap;padding-bottom:21px}.supply-tabs>.button{border:1px solid #e3d8e7;color:#947c9c;font-size:12px;min-height:44px}.supply-tabs>.soft-button{background:#eae0ef;border-color:#c5b0ce;color:#755481}.errand-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start}.errand-card{background:#fffdf8;border:1px solid #e4d9df;border-radius:16px;padding:30px}.errand-card>.eyebrow{font-size:9px;margin-bottom:8px}.errand-card h3{font-family:var(--serif);font-size:27px;font-weight:500;letter-spacing:-.7px;line-height:1.4}.errand-story{font-size:12px;color:#98859c;margin-top:10px;line-height:1.8}.errand-illustration{height:142px;display:flex;align-items:center;justify-content:center;position:relative;margin:17px 0;background:radial-gradient(ellipse,#eee2f1,transparent 65%)}.errand-illustration>img{height:145px;width:145px;object-fit:contain;filter:drop-shadow(0 5px 6px #6f4a6c18)}.errand-illustration>span{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f6efe0;width:57px;height:57px;margin-left:8px;transform:rotate(10deg);color:#ae8b51}.errand-illustration>span>.icon{width:31px;height:31px}.errand-expression{font-family:var(--serif);font-size:30px;line-height:1.6;letter-spacing:.5px;text-align:center;padding:18px 12px;border-block:1px dashed #e2d5e3;color:#805d8c;margin:15px 0 19px;overflow-wrap:anywhere}.errand-prompt{font-size:14px;line-height:1.9;color:#817082;margin-bottom:20px}.errand-card form label{font-size:12px;font-weight:500;display:block;margin-bottom:9px}.answer-row{display:flex;gap:10px;align-items:stretch}.answer-row>input{flex:1;min-width:0}.answer-row>.button{white-space:nowrap}.errand-card input,.game-dialog input[type=text],.game-dialog select{font:inherit;font-size:16px;color:#735380;border:1px solid #d6c6df;background:#fffcff;border-radius:8px;padding:12px 13px;min-height:47px;outline-offset:3px}.errand-card input::placeholder,.game-dialog input::placeholder{color:#b4a5b9;font-size:12px}.errand-feedback{font-size:12px;line-height:1.8;color:#9c7b4e;margin-top:13px;min-height:22px}.errand-card>.hint-button{min-height:44px;font-size:11px;padding:8px 0}.supply-side{border:1px solid #e6dce8;border-radius:15px;background:#f5f0f5;padding:24px;text-align:center}.supply-side>img{height:163px;width:180px;object-fit:contain;margin:0 auto 13px;filter:drop-shadow(0 5px 5px #3e2a4020)}.supply-side>h3{font-family:var(--serif);font-size:21px;font-weight:500}.supply-side>p{font-size:12px;line-height:1.9;color:#9d87a2;margin-top:12px}.crate-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:19px;text-align:left}.crate-sizes>span{font-size:12px;border:1px solid #e4d6e8;border-radius:7px;background:#fffafc;padding:10px;color:#86688f;display:flex;justify-content:space-between;gap:5px}.crate-sizes strong{font-weight:400;color:#b09ab7;font-size:11px}.supply-side>.crate-caption{font-size:10px;margin-top:12px}.supply-side>.text-link{font-size:10px;margin-top:14px;min-height:44px}.delivery-success{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:420px;justify-content:center}.delivery-success>.icon{width:54px;height:54px;padding:12px;border-radius:50%;background:#e4eddf;color:#8ba17d;margin-bottom:23px}.delivery-success>.eyebrow{margin-bottom:10px;color:#92a17f}.delivery-success>p{font-size:13px;line-height:1.9;color:#9e87a5;max-width:400px;margin-top:13px}.delivery-reward{display:flex;align-items:center;justify-content:center;gap:8px;background:#eee5f2;color:#9672a3;border-radius:20px;padding:10px 20px;font-size:13px;margin:22px 0}.delivery-success>.button{min-width:220px}.garden-diagram{margin:24px auto 18px;max-width:350px;text-align:center}.garden-width{font-size:12px;color:#8d9a7f;display:block;margin-bottom:10px}.garden-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:4px;background:#e8decc;border:5px solid #c7b492;padding:4px;border-radius:8px}.garden-grid>span{aspect-ratio:1;background:#dee6cb;border:1px solid #bac9a3;display:flex;align-items:center;justify-content:center;border-radius:3px}.garden-grid .icon{height:23px;width:23px;color:#8a9f6e;stroke-width:1.2}.garden-diagram figcaption{font-size:12px;color:#96a182;margin-top:10px}.fraction-input-note{font-size:10px;color:#b2a0b7;line-height:1.8;margin-top:10px}.game-dialog select{width:100%}
@media(min-width:651px) and (max-height:850px){.pantry .ingredient{min-height:94px}.pantry .ingredient-art,.pantry .ingredient-art>img{height:44px}.pantry .ingredient-name{font-size:10px}.pantry .ingredient-amount{font-size:9px}.shop-scene{height:250px}.pantry .shelf-heading p{font-size:10px}.pantry .ingredient-shelf{padding-top:14px}.portion-tray{margin-top:13px;padding-top:12px}.portion-button{min-height:62px;padding:8px 5px}.order-panel .customer-request{font-size:11px}.recover-button{font-size:10px}.scene-familiar{width:27%;left:9%}.cauldron-wrap{width:34%;left:46%;bottom:25px}.pet-speech{top:17%;max-width:150px;font-size:8px}.shop-sign{top:17px}.scene-tag{top:9px;font-size:7px}.familiar-caption-name{font-size:14px}.recipe-count{font-size:9px}.portions-added{font-size:10px}}
@media(max-width:1000px){.pantry .shelf-heading{align-items:flex-start}.pantry .shelf-heading p{max-width:270px}.portion-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.portion-heading{align-items:flex-start;flex-direction:column;gap:4px}.portion-button{min-height:57px;flex-direction:row;gap:10px}.portion-button strong{font-size:16px}.portion-button strong>small{display:none}.portion-button>span{font-size:9px}.blend-equation{align-items:flex-start;flex-direction:column;gap:3px}.blend-equation>strong{text-align:left;font-size:11px}.pantry .ingredients{gap:6px}.pantry .ingredient-name{font-size:9px}.pantry .ingredient-amount{font-size:8px}.supply-link{font-size:9px}.errand-layout{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.errand-card{padding:24px}.errand-card h3{font-size:24px}.answer-row{flex-direction:column}.supply-side{padding:18px}.supply-side>img{height:145px;width:155px}.supply-side h3{font-size:18px}.supply-side>p{font-size:11px}.crate-sizes>span{font-size:10px;padding:8px}.errand-expression{font-size:25px}.pantry .ingredient-art,.pantry .ingredient-art>img{height:45px}.pantry .ingredient{min-height:93px}.main-nav{gap:5px}.main-nav>.nav-tab{padding-left:10px;padding-right:10px}}
@media(max-width:650px){.main-nav{flex-wrap:wrap;gap:5px}.main-nav>.nav-tab{flex:1 1 44%;justify-content:center;font-size:11px}.pantry .shelf-heading{flex-wrap:nowrap}.pantry .shelf-heading>div{min-width:0}.pantry .shelf-heading p{font-size:10px;max-width:240px}.pantry .shelf-heading h2{font-size:16px}.pantry .ingredients{gap:6px}.pantry .ingredient-name{font-size:10px}.pantry .ingredient-amount{font-size:9px}.pantry .ingredient-art,.pantry .ingredient-art>img{height:51px}.pantry .ingredient{min-height:108px}.portion-heading{flex-direction:row;align-items:center}.portion-heading h3{font-size:11px}.portion-heading>span{font-size:9px}.portion-buttons{gap:7px}.portion-button{min-height:60px;flex-direction:column;gap:5px}.portion-button>span{font-size:10px}.portion-button strong{font-size:18px}.portion-button strong>small{display:inline}.blend-equation{flex-direction:row;margin-top:12px}.blend-equation>strong{text-align:right;font-size:12px}.recover-button{font-size:12px}.recipe-count{font-size:10px}.portions-added{font-size:11px}.supply-tabs{gap:7px}.supply-tabs>.button{flex:1 1 44%;font-size:11px;padding:10px 12px}.errand-layout{grid-template-columns:1fr}.errand-card{padding:23px}.errand-card h3{font-size:25px}.errand-prompt{font-size:13px}.errand-expression{font-size:26px;padding:17px 8px}.supply-side{padding:23px}.supply-side>img{height:170px;width:190px}.supply-side h3{font-size:22px}.supply-side>p{font-size:12px}.crate-sizes{grid-template-columns:repeat(3,minmax(0,1fr))}.crate-sizes>span{font-size:12px;padding:10px 8px}.crate-sizes strong{font-size:10px}.shop-scene{height:320px}.delivery-success{min-height:400px}.delivery-success h3{font-size:25px}.delivery-success>p{font-size:12px}}
@media(max-width:380px){.pantry .ingredient-name{font-size:8px}.pantry .ingredient-amount{font-size:8px}.pantry .shelf-heading h2{font-size:14px}.supply-link{font-size:8px}.pantry .ingredient-art,.pantry .ingredient-art>img{height:44px}.pantry .ingredient{min-height:96px}.portion-heading{flex-direction:column}.portion-button strong{font-size:16px}.blend-equation{align-items:flex-start;flex-direction:column}.blend-equation>strong{text-align:left}.recipe-count{font-size:8px}.crate-sizes{grid-template-columns:repeat(2,minmax(0,1fr))}.errand-card{padding:19px}.errand-card h3{font-size:23px}.shop-scene{height:290px}}
@media(prefers-reduced-motion:reduce){.fraction-meter>span{transition:none}}

.puzzle-note{display:flex;gap:6px;align-items:center;font-size:10px;color:#9d88a5;line-height:1.8;margin-top:11px}.puzzle-note>.icon{height:13px;width:13px;flex-shrink:0}.errand-puzzle-note{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.9;text-align:left;padding:17px 13px;margin-top:19px;border-top:1px solid #e5d8e8;border-bottom:1px solid #e5d8e8;color:#a18aa8}.errand-puzzle-note>.icon{width:17px;height:17px;margin-top:3px;flex-shrink:0}.portion-buttons{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}.supply-link:disabled{opacity:.4}
@media(min-width:651px) and (max-height:850px){.shop-scene{height:235px}.pantry .shelf-heading{gap:8px}.pantry .shelf-heading h2{font-size:14px}.puzzle-note{font-size:9px}.portion-button{min-height:58px}.shelf-heading .supply-link{min-height:44px}}
@media(max-width:1000px){.portion-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.portion-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.puzzle-note{align-items:flex-start;font-size:10px}.puzzle-note>.icon{margin-top:3px}.pantry .shelf-heading h2{font-size:15px}.errand-puzzle-note{font-size:12px}.shop-scene{height:320px}}
@media(max-width:380px){.pantry .shelf-heading h2{font-size:13px}.shop-scene{height:290px}}

.difficulty-control{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border:1px solid #e5d8e9;border-radius:8px;background:#f5eef7;color:#9675a2;padding:9px 10px;font-size:10px;margin-bottom:15px;width:100%}.difficulty-control>span{display:flex;align-items:center;gap:5px}.difficulty-control .icon{width:13px;height:13px}.difficulty-control>span:last-child{font-size:9px;color:#b099b9}.difficulty-control:hover{background:#ede1f1}.level-up{display:flex;gap:6px;align-items:flex-start;font-size:11px;line-height:1.8;color:#8c7399;background:#f0e6f4;border-radius:8px;padding:11px 13px;margin:0 0 17px}.level-up>.icon{height:15px;width:15px;flex-shrink:0;margin-top:3px}.game-dialog fieldset{margin-bottom:17px}
@media(max-width:650px){.difficulty-control{font-size:12px}.difficulty-control>span:last-child{font-size:10px}}

/* A separate, initially bare room that grows with the collection. */
.cozy-view .cozy-layout{grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:24px;align-items:start}.cozy-preview{position:sticky;top:20px}.cozy-room{position:relative;aspect-ratio:3/2;overflow:hidden;border:1px solid #d9c7b2;border-radius:14px;background:#d8b28b;isolation:isolate}.cozy-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.cozy-item{position:absolute;pointer-events:none;filter:drop-shadow(0 4px 3px #5d392421);object-fit:contain}.cozy-bookshelf{left:4%;bottom:27%;width:26%;z-index:2}.cozy-shelf{left:7%;top:14%;width:28%;z-index:2}.cozy-herbs{left:39%;top:12%;width:10%;z-index:2}.cozy-painting{left:42%;top:33%;width:14%;z-index:2}.cozy-lantern{right:2%;top:21%;width:9%;z-index:2;filter:drop-shadow(0 0 12px #f7cf7860)}.cozy-plants{right:1%;bottom:15%;width:17%;z-index:3}.cozy-rug{left:29%;bottom:3%;width:47%;height:23%;object-fit:fill;z-index:1}.cozy-bed{left:4%;bottom:4%;width:29%;z-index:3}.cozy-tea{left:58%;bottom:9%;width:24%;z-index:3}.cozy-room .cozy-familiar{left:10%;bottom:7%;width:22%;max-width:none;z-index:4}.cozy-room .cozy-familiar.has-bed{left:9%;bottom:8%;width:22%}.cozy-room .cozy-familiar img{filter:drop-shadow(0 7px 4px #4f352e25)}.cozy-garland{position:absolute;left:10%;right:10%;top:6%;display:flex;justify-content:space-around;align-items:center;height:30px;color:#bfa06e;border-bottom:1px solid #c5a16c;border-radius:50%;font-size:25px;z-index:3;text-shadow:0 0 8px #ffe2a2}.cozy-garland>span:nth-child(even){transform:translateY(10px)}.room-title{position:absolute;top:12px;left:12px;background:#fff6e6e8;color:#9c7e65;padding:7px 10px;border-radius:7px;display:flex;gap:6px;align-items:center;font-size:10px;z-index:5;box-shadow:0 2px 8px #4b2d2112}.room-title>.icon{width:13px;height:13px}.cozy-room .cozy-speech{left:7%;top:auto;bottom:39%;max-width:170px;z-index:6;font-size:10px}.room-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#9f8c9c;padding:14px 3px;line-height:1.7}.room-progress>span:last-child{font-size:9px;color:#b2a2ad;text-align:right}.cozy-view .decorations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cozy-view .decoration-card{padding:15px;display:flex;flex-direction:column}.decoration-art{position:relative;height:116px;display:flex;align-items:center;justify-content:center;margin-bottom:13px;background:radial-gradient(ellipse,#f2e6efaa,transparent 70%)}.decoration-art>img{height:105px;max-width:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #53314c12)}.garland-preview{font-size:25px;letter-spacing:2px;color:#bd9a61;border-bottom:1px solid #c4a16e;border-radius:50%;padding:8px 3px 12px}.cozy-view .decoration-card>h3{font-size:17px;line-height:1.5}.cozy-view .decoration-card>p{font-size:11px;line-height:1.8;margin:8px 0 17px;min-height:40px}.cozy-view .decoration-card>.button{margin-top:auto;font-size:11px;padding:11px 9px;min-height:44px}.cozy-view .decoration-card .cost-note{font-size:9px;min-height:28px;line-height:1.7;margin-top:10px}.decor-owned{position:absolute;top:0;left:0;background:#fcf7fc;color:#a289ac;border:1px solid #e6dce8;border-radius:12px;font-size:8px;padding:4px 7px;display:flex;align-items:center;gap:4px}.decor-owned>.icon{width:10px;height:10px}.errand-level{display:flex;flex-direction:column;gap:9px;align-items:flex-end;min-width:190px}.errand-level>.difficulty-control{margin:0;min-width:185px}.errand-level .collection-count{font-size:10px;padding:7px 11px}.garden-grid .icon{max-width:75%;max-height:75%}
@media(max-width:1100px){.cozy-view .cozy-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:19px}.cozy-view .decoration-card{padding:12px}.cozy-view .decoration-card>h3{font-size:15px}.cozy-view .decoration-card>p{font-size:10px}.decoration-art{height:100px}.decoration-art>img{height:91px}.room-progress{font-size:9px;align-items:flex-start}.room-progress>span:last-child{font-size:8px;max-width:125px}}
@media(max-width:900px){.cozy-view .cozy-layout{grid-template-columns:1fr}.cozy-preview{position:static}.cozy-room{max-height:470px;aspect-ratio:3/2}.cozy-view .decorations{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.cozy-view .decoration-card{padding:16px}.cozy-view .decoration-card>h3{font-size:17px}.cozy-view .decoration-card>p{font-size:11px}.decoration-art{height:118px}.decoration-art>img{height:108px}.room-progress{font-size:11px}.room-progress>span:last-child{font-size:10px;max-width:none}.cozy-room .cozy-familiar{width:21%}}
@media(max-width:650px){.cozy-view .decorations{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cozy-view .decoration-card{padding:13px}.cozy-view .decoration-card>h3{font-size:15px}.cozy-view .decoration-card>p{font-size:10px;min-height:54px}.decoration-art{height:100px}.decoration-art>img{height:91px}.cozy-view .decoration-card>.button{font-size:10px}.cozy-view .decoration-card .cost-note{font-size:8px}.room-title{font-size:8px;padding:5px 7px;top:8px;left:8px}.room-title>.icon{width:10px;height:10px}.room-progress{font-size:9px;gap:8px}.room-progress>span:last-child{font-size:8px;max-width:130px}.cozy-garland{font-size:18px;height:20px}.cozy-room .cozy-speech{font-size:8px;max-width:140px;padding:8px 10px}.errand-level{align-items:flex-start;min-width:0}.errand-level>.difficulty-control{min-width:220px}.decor-owned{font-size:7px;padding:4px 5px}}
@media(max-width:380px){.cozy-view .decoration-card{padding:10px}.cozy-view .decoration-card>h3{font-size:13px}.cozy-view .decoration-card>.button{font-size:9px}.cozy-view .decoration-card>p{min-height:57px;font-size:9px}.decoration-art{height:89px}.decoration-art>img{height:80px}.room-progress>span:last-child{max-width:106px}.garland-preview{font-size:19px;letter-spacing:0}.room-title{font-size:7px}}

.backup-settings{width:100%;margin-top:11px;color:#95729f;border:1px solid #e3d5e9;background:#f7eff9;font-size:11px}.backup-download{width:100%;margin-top:20px}.backup-divider{border:0;border-top:1px solid #e8ddea;margin:24px 0 20px}.backup-file-label{display:block;font-size:12px;font-weight:500;margin-bottom:10px}.game-dialog input[type=file]{width:100%;min-height:48px;font-size:12px;color:#9a83a3;line-height:1.8}.game-dialog input[type=file]::file-selector-button{font:inherit;min-height:44px;padding:9px 12px;margin-right:10px;border:1px solid #d9c7e1;background:#f1e7f6;border-radius:8px;color:#8d6a9a}.backup-preview{font-size:13px;color:#84618e;background:#f5edf7;border:1px solid #e8daed;border-radius:9px;padding:13px;margin-top:13px;line-height:1.8}.backup-warning{font-size:11px;color:#a291a3;line-height:1.8;margin-top:12px}

/* Subtraction workbench. Reuse the shop's ingredient cards and portion tiles. */
.recover-dialog{width:min(610px,calc(100% - 24px));padding:26px}
.recover-dialog .dialog-heading{margin-bottom:12px}
.recover-dialog #recover-form{margin-top:20px}
.recover-dialog fieldset{margin:0 0 19px;min-width:0}
.recover-dialog legend,.recover-calculation>label{display:block;font-size:12px;font-weight:600;line-height:1.6;margin-bottom:10px}
.recover-dialog .ingredients{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.recover-dialog .ingredient{min-height:105px;padding:8px 5px 10px}
.recover-dialog .ingredient-art,.recover-dialog .ingredient-art>img{height:46px}
.recover-dialog .ingredient-name{font-size:11px}
.recover-dialog .ingredient-amount{font-size:10px;color:#82718b}
.recover-dialog .portion-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.recover-dialog .portion-button{min-height:48px;flex-direction:column;gap:3px;padding:8px 4px}
.recover-dialog .portion-button strong{font-size:18px}
.recover-dialog .portion-button strong>small{display:inline;font-size:10px}
.recover-dialog .selected-portion{border-color:var(--plum);background:#eee2f3;box-shadow:inset 0 0 0 1px var(--plum)}
.recover-dialog .recover-custom{grid-column:span 2}
.recover-dialog .recover-custom strong{font-size:12px}
.recover-dialog .recover-custom>span{font-size:10px;color:#82718b}
#recover-custom-entry{margin-top:12px}
#recover-custom-entry label{display:block;font-size:12px;margin-bottom:7px}
#recover-custom-entry input{width:100%}
.recover-calculation{background:#f5eef7;border:1px solid #e5d8eb;border-radius:12px;padding:16px}
.recover-equation{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1.4fr);gap:8px;align-items:center;text-align:center}
.recover-operand{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.recover-operand small,.recover-answer small{font-size:10px;color:#887291}
.recover-operand strong{font-family:var(--serif);font-size:25px;font-weight:500;color:var(--plum-dark);overflow-wrap:anywhere}
.recover-operator{font-size:22px;color:#9f84ad}
.recover-answer{min-width:0;display:flex;flex-direction:column;gap:6px}
.recover-dialog .recover-answer input{width:100%;text-align:center;padding:10px 4px;font-size:20px;min-height:49px}
.recover-dialog .recover-answer input::placeholder{font-size:23px}
.recover-dialog input[aria-invalid=true]{border-color:#b47954;background:#fff8ef}
.recover-calculation>p{font-size:10px;line-height:1.7;color:#82718b;margin-top:12px}
.recover-dialog .errand-feedback{margin-top:10px;min-height:0;color:#986d41}
.recover-dialog .errand-feedback:empty{display:none}
.recover-actions{display:flex;gap:10px;margin-top:17px}
.recover-actions .button{min-height:48px;padding:12px;font-size:12px}
.recover-actions .primary{flex:1}
.recover-dialog .icon-button{min-height:44px;min-width:44px}
@media(max-width:450px){
  .recover-dialog{padding:19px;max-height:calc(100dvh - 24px)}
  .recover-dialog h2{font-size:25px}
  .recover-dialog .portion-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}
  .recover-dialog .ingredients{grid-template-columns:repeat(auto-fit,minmax(85px,1fr))}
  .recover-dialog .ingredient-name{font-size:10px}
  .recover-dialog .ingredient-amount{font-size:9px}
  .recover-calculation{padding:12px 10px}
  .recover-equation{gap:4px;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1.4fr)}
  .recover-operand strong{font-size:22px}
  .recover-actions{gap:7px}
  .recover-actions .button{font-size:11px;padding:10px 8px}
}
