:root{--ink:#254c43;--green:#197762;--green-deep:#135749;--mint:#dcecdf;--cream:#fffaf0;--gold:#dfab45;--muted:#75877b;font-family:ui-rounded,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:#164e43;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:calc(var(--app-height, 100vh) * 1.0);display:grid;place-items:center;background:radial-gradient(ellipse at 20% 15%,#3e8270 0,transparent 45%),radial-gradient(ellipse at 80% 85%,#2b6956 0,transparent 50%),#164e43}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;user-select:none;border:0;color:inherit;transition:transform .12s,background .15s,opacity .15s}button:active:not(:disabled){transform:scale(.95)}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #eeaf35;outline-offset:3px}button:disabled{cursor:default}button,input{min-height:44px}h1,h2,p{margin:0}button[hidden],[hidden]{display:none!important}
#game{isolation:isolate;position:relative;display:flex;flex-direction:column;width:100%;max-width:480px;height:100vh;height:calc(var(--app-height, 100vh) * 1.0);min-height:580px;max-height:1000px;overflow:hidden;background:var(--cream);padding-top:env(safe-area-inset-top,0px);box-shadow:0 12px 90px #071f3260;user-select:none}
.topbar{height:58px;flex-shrink:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:4px 19px;gap:10px;background:#fffdf5}.level{font-size:12px;display:flex;flex-direction:column;gap:1px;letter-spacing:.03em;font-weight:700}.level-number{font-size:17px;font-weight:900;color:var(--green)}.day-badge{padding:7px 14px;background:#e5efe1;border-radius:30px;font-weight:900;font-size:16px;letter-spacing:.07em}.wallet{justify-self:end;display:flex;gap:7px;align-items:center;font-size:18px;min-width:63px}.wallet b{font-variant-numeric:tabular-nums;max-width:105px;overflow:hidden;text-overflow:ellipsis}.wallet.pop{animation:wallet-pop .45s}
.shop-title{display:flex;justify-content:space-between;align-items:center;height:36px;padding:0 18px;flex-shrink:0}.shop-title h1{font-size:20px;letter-spacing:.06em;display:flex;align-items:center;gap:10px;font-weight:900}.shop-title h1 span{font-size:9px;letter-spacing:.16em;opacity:.5}.round-button{border-radius:50%;width:44px;height:44px;background:transparent;font-size:23px}
.order-zone{height:77px;padding:6px 15px;flex-shrink:0;z-index:3;background:var(--cream)}#idle-order,#order{height:65px;border-radius:18px;position:relative;background:white;box-shadow:0 3px 0 #dfdec926;display:flex;align-items:center;gap:11px;padding:8px 13px}#idle-order{background:#e7efdf}.small-leaf{font-size:31px;color:#68945e}#idle-order b{font-size:15px}#idle-order p{font-size:12px;color:#6c8066;margin-top:3px}.open-tag{margin-left:auto;font-size:12px;background:#fffbee;padding:6px 10px;border-radius:20px;transform:rotate(6deg);white-space:nowrap}.order-text{align-self:flex-start;padding-top:0;flex:1;min-width:0}.customer-name{display:block;font-size:11px;color:#849081;margin-bottom:2px}.customer-name small{margin-left:5px;color:#2a826a;font-size:11px}.order-text b{font-size:13px;line-height:1.4;display:block}.order-drink{font-size:26px;display:flex;flex-direction:column;align-items:center;white-space:nowrap;align-self:flex-start;line-height:1.1}.order-drink small{font-size:10px;margin-top:2px}.patience{position:absolute;bottom:8px;left:13px;width:40%;height:4px;border-radius:4px;background:#e9eee3;overflow:hidden}.patience i{display:block;height:100%;width:100%;background:#88b57e;transition:background .3s;transform-origin:left}#patience-label{position:absolute;bottom:4px;left:46%;font-size:10px;color:#8a927e;white-space:nowrap}
.scene-wrap{position:relative;flex:1 1 auto;min-height:170px;max-height:360px;overflow:hidden;background:#dcefe9}#shop-canvas{width:100%;height:100%;display:block}.scene-caption{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);background:#ffffffd9;padding:4px 12px;border-radius:20px;white-space:nowrap;font-size:11px;color:#607660;pointer-events:none;box-shadow:0 2px 7px #2355440a}.loading{position:absolute;inset:0;background:#e0eee7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:16px}.loading small{color:#6e887c;font-size:13px}.loading-dot{height:28px;width:28px;border-radius:50%;border:3px solid #b5d3c2;border-top-color:#287763;animation:spin .8s linear infinite}.day-intro{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#ffffffb8;gap:5px;animation:intro .9s both}.day-intro b{font-size:42px;letter-spacing:.06em;color:var(--green-deep)}.day-intro span{font-size:21px;font-weight:900}.review{position:absolute;top:17%;right:6%;max-width:65%;display:flex;flex-direction:column;align-items:center;padding:13px 17px;background:#fffff5f5;border:2px solid #efe0a2;border-radius:20px;box-shadow:0 7px 20px #477d4a24;animation:appear .18s;z-index:6}.review #stars{font-size:24px;color:#e5a631;letter-spacing:2px}.review b{font-size:15px;margin-top:3px;text-align:center}.review>span{font-size:21px;font-weight:900;color:#248768;margin-top:5px}.combo{position:absolute;top:10px;left:13px;padding:7px 12px;border-radius:22px;background:#fff1be;color:#98631d;font-size:14px;font-weight:900;transform:rotate(-4deg);animation:appear .2s;z-index:7}.combo.big{left:50%;top:9px;transform:translateX(-50%);white-space:nowrap;font-size:15px;background:#ffeaa1;box-shadow:0 0 0 5px #fff8db80}
.workbench{position:relative;flex:0 0 176px;border-top:6px solid #e5c799;background:linear-gradient(#fffdf5,#f6f5e7);padding:7px 18px 0;box-shadow:0 -3px 0 #fff5d4;z-index:2}.work-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7c8876;height:20px;letter-spacing:.02em}.work-head>span:first-child{color:#35705e;font-weight:800}.price{font-size:11px}.work-body{display:flex;align-items:center;justify-content:space-around;height:143px}.recipe{display:flex;flex-direction:column;gap:7px;flex:0 0 25%;font-size:12px;color:#929b8b}.recipe span{display:flex;align-items:center;gap:4px;transition:color .2s}.recipe i{font-style:normal;border:1px solid #d5decb;border-radius:50%;width:16px;height:16px;line-height:14px;text-align:center;font-size:10px}.recipe .done{color:#21846a}.recipe .done i{background:#339177;border-color:#339177;color:white}.recipe .current{color:#284e3c;font-weight:bold}.recipe .current i{background:#e8bd60;border-color:#e8bd60;color:#fff}.cup-area{position:relative;align-self:stretch;width:140px;flex:0 1 140px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transition:transform .25s}.cup{height:125px;width:99px;transform-origin:50% 70%;will-change:transform}.cup svg{width:100%;height:100%;overflow:visible}#cup-label{font-size:10px;color:#7c8b75;white-space:nowrap;margin-top:-1px}.bench-note{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:#81947b;flex:0 0 25%;transform:rotate(5deg)}.bench-note b{font-weight:500}.note-symbol{font-size:29px;color:#659779}#liquid{transition:transform .48s ease-out}#liquid-color{transition:fill .5s}#cup-seal{transition:opacity .22s}#seal-pop{position:absolute;top:3px;right:0;font-size:21px;font-weight:900;transform:rotate(10deg);color:#357b67;animation:appear .18s}.cup.bump{animation:cup-bump .26s}.cup.sealing{animation:cup-seal .6s}.cup.delivering{animation:cup-deliver .65s forwards}.cup.perfect{animation:cup-perfect .5s}.pearl-drop{animation:pearl-drop .5s cubic-bezier(.4,0,.9,.5) both}
.shake-area{position:absolute;top:29px;right:16px;bottom:10px;width:61%;padding:2px 9px 0;text-align:center;touch-action:none;cursor:ew-resize}.workbench.shaking .recipe,.workbench.shaking .bench-note{visibility:hidden}.workbench.shaking .cup-area{position:absolute;left:5px;top:26px;width:35%;height:140px}.shake-area>b{display:block;font-size:20px;color:var(--green);line-height:1.3}.shake-help{font-size:11px;color:#6f8675}.swipe-track{height:42px;display:flex;align-items:center;justify-content:space-around;color:#86b69c}.swipe-track>span{font-size:35px;line-height:1}.swipe-track i{font-size:32px;font-style:normal;color:#207762;animation:swipe 1s ease-in-out infinite;line-height:1}.shake-meter{height:12px;background:#e2e8d7;border-radius:12px;box-shadow:inset 0 2px 3px #33522f0e;overflow:hidden}.shake-meter i{display:block;width:0;height:100%;background:linear-gradient(90deg,#75bb91,#288e70 65%,#e5be59);border-radius:12px;transition:width .06s}.shake-grades{display:flex;justify-content:space-between;margin-top:5px;font-size:10px;color:#748770}#game.is-shaking{touch-action:none}.is-shaking .ingredients{pointer-events:none}
.instruction{height:30px;flex-shrink:0;padding:4px 10px;text-align:center;background:#f6f5e7;font-size:14px;font-weight:700;color:#5e755e;line-height:22px}.instruction.teaching{color:#227a60}.ingredients{height:75px;flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:3px 17px 4px;background:#f6f5e7}.ingredients button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;background:#fffef6;border:1.5px solid #e4e7d7;border-radius:17px;box-shadow:0 3px 0 #dbdfc7;font-size:12px;font-weight:800;min-width:0;height:65px}.ingredients button:disabled{opacity:.46}.ingredients button.done{background:#e4efdf;color:#528a69}.ingredients button.highlight{border-color:#4b9b72;box-shadow:0 0 0 3px #cbe7b8,0 4px 0 #8ab180;animation:guide-pulse 1.1s infinite}.ingredients button.flash{animation:button-flash .2s}.ingredient-icon{font-size:27px;line-height:28px;filter:saturate(.8)}.ingredients i{position:absolute;top:4px;left:7px;font-style:normal;font-size:9px;opacity:.5}.pearls-icon{font-size:15px;color:#6b4432;line-height:12px;text-align:center;height:28px;padding-top:1px}.pearls-icon small{display:block;font-size:13px;line-height:14px}
.action-zone{flex-shrink:0;padding:10px 18px calc(7px + env(safe-area-inset-bottom,0px));background:#f6f5e7;text-align:center}.primary{display:block;width:100%;min-height:48px;border-radius:28px;background:var(--green);color:#fffaf0;font-weight:900;font-size:17px;letter-spacing:.04em;box-shadow:0 4px 0 #13594a,0 5px 10px #315b3a0a;padding:11px 18px}.primary:disabled{background:#e2e7d7;box-shadow:0 3px 0 #d4dbc7;color:#8b9d86;font-size:14px}.footer-hint{display:block;font-size:10px;color:#97a38d;padding-top:7px;height:18px}.toast{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);z-index:35;padding:11px 18px;border-radius:24px;background:#294e40eb;color:white;font-size:14px;max-width:88%;text-align:center;pointer-events:none;box-shadow:0 6px 22px #254b282a;animation:appear .14s}#particles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:30}.particle{position:absolute;font-size:19px;color:#e7b549;animation:particle .75s cubic-bezier(.12,.52,.36,1) forwards;will-change:transform,opacity}
dialog{border:0;border-radius:27px;padding:25px 25px 22px;width:min(86%,360px);max-height:calc(var(--app-height, 100vh) * 0.85);overflow:auto;color:var(--ink);background:#fffdf3;box-shadow:0 18px 80px #082e4260;text-align:center}dialog::backdrop{background:#153c3980;backdrop-filter:blur(3px)}dialog[open]{animation:dialog-in .2s ease-out}dialog h2{font-size:22px;margin:8px 0 13px;line-height:1.3}dialog p{font-size:14px;color:#7c8877;line-height:1.7;margin-bottom:18px}.summary-top{font-size:12px;letter-spacing:.13em;color:#819373}.summary-star{font-size:49px;color:#dcab44;margin:8px 0 -2px}.summary-top+h2{margin-top:5px}dialog dl{margin:20px 0 15px;text-align:left;font-size:15px;display:grid;gap:13px}dialog dl>div{display:flex;justify-content:space-between}dialog dt{color:#809072}dialog dd{margin:0;font-weight:900;font-size:18px}.sum-income{display:flex;flex-direction:column;gap:5px;border-top:1px dashed #d9dfc5;padding:16px 0 21px}.sum-income>span{font-size:13px;color:#7b8b6c}.sum-income b{font-size:33px;color:#2a8164}.sum-income small{font-size:11px;color:#aa8533}.back{position:absolute;left:9px;top:6px;border-radius:50%;background:transparent;font-size:25px;width:44px;height:44px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-size:16px}.setting-row input{appearance:none;width:46px;height:27px;min-height:27px;background:#d4decc;border-radius:22px;position:relative;cursor:pointer}.setting-row input:before{content:"";height:21px;width:21px;position:absolute;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 2px 3px #2f602c22;transition:transform .15s}.setting-row input:checked{background:#318b70}.setting-row input:checked:before{transform:translateX(19px)}.secondary,.danger{width:100%;border-radius:24px;padding:12px;font-size:14px;background:#e9eedd;font-weight:700;min-height:44px}.danger{margin-top:14px;color:#b16543;background:#f4e8d9}.version{font-size:11px;color:#92a084;display:block;margin-top:18px}dialog .save-note{margin:17px 0;font-size:12px}#reset-confirm p{margin:19px 0 22px}
@media(min-width:600px){#game{height:min(930px,calc(var(--app-height, 100vh) * 0.96));border-radius:26px;border:6px solid #b3cdad;min-height:580px}.shop-title h1{font-size:21px}}
@media(max-height:730px){#game{min-height:550px}.topbar{height:49px}.shop-title{height:31px}.order-zone{height:71px;padding-top:3px;padding-bottom:3px}.scene-wrap{min-height:132px}.workbench{flex-basis:150px;padding-top:4px}.work-body{height:118px}.cup{height:105px;width:83px}.workbench.shaking .cup-area{height:116px;top:25px}.shake-area{top:24px;bottom:5px}.shake-area>b{font-size:18px}.swipe-track{height:29px}.shake-help{font-size:10px}.shake-grades{margin-top:3px}.recipe{gap:4px}.ingredients{height:68px}.ingredients button{height:59px}.instruction{height:27px;font-size:13px;padding-top:2px}.action-zone{padding-top:7px;padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}.primary{min-height:44px;padding:10px}.footer-hint{height:15px;font-size:9px;padding-top:6px}}
@media(max-width:350px){.topbar{padding-left:12px;padding-right:12px}.shop-title h1 span{display:none}.ingredients{gap:6px;padding-left:12px;padding-right:12px}.order-zone{padding-left:11px;padding-right:11px}.order-text b{font-size:12px}.workbench{padding-left:12px;padding-right:12px}.wallet{font-size:16px;min-width:50px}.day-badge{font-size:14px;padding:7px 11px}.recipe{font-size:11px}.shop-title h1{font-size:18px}}
@media(max-height:620px){#game{min-height:520px}.topbar{height:44px}.shop-title{height:28px}.order-zone{height:68px}#idle-order,#order{height:62px}.scene-wrap{min-height:80px}.workbench{flex-basis:130px}.work-body{height:100px}.cup{height:89px;width:71px}#cup-label{font-size:9px}.recipe{gap:3px;font-size:11px}.workbench.shaking .cup-area{height:100px;top:22px}.shake-area{top:22px}.shake-area>b{font-size:16px}.shake-help{font-size:10px}.swipe-track{height:22px}.swipe-track i{font-size:26px}.shake-meter{height:9px}.instruction{height:25px;font-size:12px}.ingredients{height:62px}.ingredients button{height:53px}.ingredient-icon{font-size:22px;line-height:23px}.ingredients .pearls-icon{font-size:13px;line-height:10px;height:23px}.pearls-icon small{font-size:11px;line-height:12px}.bench-note{font-size:11px;gap:1px}.note-symbol{font-size:24px}}
@media(prefers-reduced-motion:reduce){.ingredients button.highlight,.swipe-track i{animation:none}.particle{animation-duration:.2s}button{transition:none}}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes appear{from{opacity:0;scale:.85}to{opacity:1;scale:1}}@keyframes dialog-in{from{opacity:0;transform:translateY(15px) scale(.95)}to{opacity:1;transform:none}}@keyframes intro{0%{opacity:0}15%,75%{opacity:1}100%{opacity:0}}@keyframes guide-pulse{50%{box-shadow:0 0 0 5px #cbe7b87a,0 4px 0 #8ab180}}@keyframes button-flash{50%{background:#fff6ab}}@keyframes cup-bump{50%{transform:scale(1.06,.96)}100%{transform:none}}@keyframes cup-seal{30%{transform:translateY(6px) scale(.98,.94)}60%{transform:translateY(-2px)}100%{transform:none}}@keyframes cup-perfect{35%{transform:translateY(-12px) rotate(-8deg)}70%{transform:translateY(-5px) rotate(5deg)}100%{transform:none}}@keyframes cup-deliver{to{transform:translate(65px,-65px) scale(.45);opacity:0}}@keyframes pearl-drop{0%{transform:translateY(-140px);opacity:0}12%{opacity:1}80%{transform:translateY(0)}90%{transform:translateY(-7px)}100%{transform:translateY(0)}}@keyframes swipe{0%,100%{transform:translateX(-35px) rotate(-8deg)}50%{transform:translateX(35px) rotate(8deg)}}@keyframes wallet-pop{50%{transform:scale(1.12);color:#c18f35}}@keyframes particle{0%{opacity:1;transform:translate(0,0) scale(.5)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(1)}}
/* Stage 2: compact order memory and one-level preparation categories. */
.text-button{margin-left:auto;border-radius:20px;background:#e5eedf;padding:0 14px;min-height:44px;font-size:13px}.shop-title h1 span{display:none}
#order{display:block;padding:6px 12px}.order-text{padding:0}.order-text b{font-size:16px}.order-drink{position:absolute;right:12px;top:8px;font-size:25px}.order-drink small{display:none}#order-details{display:block;font-size:11px;white-space:nowrap;margin-top:2px}.order-zone{height:94px}#order,#idle-order{height:82px}.patience{bottom:8px}#patience-label{bottom:4px}.customer-name{margin:0}.order-text b{line-height:1.25}
#streak-badge{position:absolute;top:9px;left:12px;font-size:11px;letter-spacing:.04em;color:#805d25;border-radius:20px;padding:5px 10px;background:#fff3ccdd;z-index:3}#sweat{position:absolute;left:36%;top:30%;font-size:20px;pointer-events:none}.recipe{font-size:11px;gap:3px;max-height:110px;overflow:auto;flex-basis:31%;color:#778d7c}.bench-note{flex-basis:28%;font-size:10px;gap:1px;transform:none;align-self:stretch;justify-content:center}.tiny{background:#e7eede;border-radius:16px;padding:1px 9px;font-size:11px;min-height:26px;min-width:44px}.bench-note #recipe-help{position:absolute;right:0;top:-23px;font-size:15px;min-height:27px;width:30px;min-width:30px}.work-head .price{padding-right:22px}.workbench.shaking .bench-note{visibility:visible;position:absolute;right:8px;top:-4px;flex-direction:row}.workbench.shaking .bench-note>span,.workbench.shaking #recipe-help{display:none}.workbench.shaking #remake-open{display:none}.workbench.shaking #reopen{min-height:30px}.workbench.shaking .work-head .price{visibility:hidden}
.category-tabs{display:flex;flex-shrink:0;background:#f6f5e7;padding:2px 16px 5px;gap:5px;height:43px}.category-tabs button{flex:1;background:transparent;border-radius:18px;min-height:36px;font-size:13px;font-weight:700}.category-tabs .selected{background:#dbead6;color:#176b55}.category-tabs #seal-button{background:#eac887;color:#665025}.category-tabs #seal-button:disabled{opacity:.45}
.ingredients{display:flex;height:70px;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 16px 7px;scrollbar-width:thin;position:relative}.ingredients button{flex:1 0 66px;min-width:66px;height:59px;min-height:44px}.ingredients.machines button{flex:1}.ingredients.machines{overflow:visible}.ingredients .choice-tray{position:absolute;bottom:70px;left:15px;right:15px;z-index:12;background:#fffdf1;box-shadow:0 -3px 18px #254c4325;border-radius:22px;padding:9px;display:flex;gap:6px}.ingredients .choice-tray button{height:44px;min-width:0;font-size:12px}.ingredients button.selected{background:#d5e9ce;border-color:#528f6f}.instruction{font-size:12px;height:27px}.review{max-width:85%;top:9%;padding:9px 13px;right:5%}.review b{font-size:13px}#review-reasons{font-size:10px;color:#9c714e;margin-top:4px}#tip-pop{color:#bc8a32;font-size:13px;font-weight:800;margin-top:4px}.tip-float{animation:tip-float .9s both}#summary-message{white-space:pre-line}#sum-unlocks{font-size:12px}#summary dl{gap:8px;margin:12px 0}.summary-star{font-size:32px;margin:0}#summary .sum-income{padding:12px 0}#summary h2{font-size:20px}
#recipe-book{width:min(94%,460px);padding:24px 15px}#recipe-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}#recipe-cards article{border-radius:20px;background:#edf2e5;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px}#recipe-cards b{font-size:14px}#recipe-cards small{font-size:11px;color:#93702d}#recipe-cards p{font-size:11px;line-height:1.6;margin:0}.mini-cup{width:65px;height:82px}.locked-cup{height:82px;display:grid;place-items:center;font-size:42px;filter:grayscale(1);opacity:.3}#unlock-list p{margin-bottom:15px}#dev-panel label{display:block;margin:12px 0;text-align:left;font-size:13px}#dev-panel select{width:100%;min-height:44px;border-radius:12px;border:1px solid #d2deca;padding:5px;background:white}#dev-panel .secondary{margin:5px 0}#remake-confirm .secondary{margin-top:12px}.ice-drop{animation:pearl-drop .35s}.urgent{animation:soft-nudge 1.8s infinite}
@keyframes soft-nudge{50%{opacity:.65}}@keyframes tip-float{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-height:730px){.scene-wrap{min-height:100px}.workbench{flex-basis:145px}.category-tabs{height:40px}.category-tabs button{min-height:33px}.ingredients{height:65px}.ingredients button{height:54px}.order-zone{height:88px}#order,#idle-order{height:82px}.instruction{font-size:11px}}
@media(max-height:620px){#game{min-height:0}.topbar{height:40px}.shop-title{height:30px}.order-zone{height:83px}#order,#idle-order{height:77px}.order-text b{font-size:14px}#order-details{font-size:10px}.scene-wrap{min-height:82px}.workbench{flex-basis:115px}.work-body{height:86px}.cup{height:78px;width:62px}.recipe{font-size:10px;max-height:76px}.bench-note{font-size:9px}.bench-note #recipe-help{top:-20px}.workbench.shaking .cup-area{height:83px}.shake-area{top:23px}.shake-help{display:none}.instruction{height:22px;line-height:18px;font-size:10px;padding:2px 5px}.category-tabs{height:36px;padding-bottom:2px}.category-tabs button{min-height:32px;font-size:12px}.ingredients{height:58px}.ingredients button{height:49px}.ingredient-icon{font-size:20px;line-height:21px}.action-zone{padding:4px 13px calc(4px + env(safe-area-inset-bottom,0px))}.footer-hint{display:none}.primary{min-height:44px}.scene-caption{font-size:9px;bottom:3px;padding:2px 8px}.review{top:1%;padding:5px 10px}.review #stars{font-size:18px}.review>span{font-size:15px}.review b{font-size:11px}#tip-pop{font-size:11px}#review-reasons{font-size:9px}.review{gap:0}.work-head{height:18px}.work-head .price{font-size:10px}.tiny{min-height:24px}}
@media(prefers-reduced-motion:reduce){.urgent{animation:none}}
.ingredients .choice-tray{bottom:calc(100% + 46px)}
.bench-note{position:relative}.bench-note #recipe-help{top:-17px}
.order-zone.compact{height:84px}#order.compact{height:72px}.compact .order-text b{font-size:14px}
@media(max-height:620px){.order-zone.compact{height:77px}#order.compact{height:71px}}
.scene-wrap:has(.review:not([hidden])){overflow:visible;z-index:6}
/* Stage 3: the same counter grows into a shop; making controls stay in place. */
.level{border:0;background:none;text-align:left;min-height:44px;padding:0}.level-number{font-size:15px}#store-name{font-size:10px;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#home-nav{display:flex;gap:9px;margin-top:10px}#home-nav button{flex:1;border-radius:22px;background:#e4eee0;font-weight:700;min-height:44px;font-size:14px}#home-goals{flex:none;padding:10px 18px;background:#fffaf0}#comfort-label{font-size:12px;color:#688474;display:block;margin-bottom:6px}#next-target{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:18px;background:#edf3e4;padding:10px 12px;gap:8px;text-align:left;min-height:48px}#next-target b{font-size:14px}#next-target small{font-size:12px;color:#96733c}#home-daily{font-size:11px;margin:8px 0 0;color:#7c8d72}#game[data-mode="home"] .workbench,#game[data-mode="home"]>.category-tabs,#game[data-mode="home"]>.ingredients,#game[data-mode="home"]>.instruction{display:none}#game[data-mode="home"] .scene-wrap{min-height:210px;max-height:none}#game[data-mode="home"] .footer-hint{display:none}#game[data-mode="home"] .action-zone{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}#business-strip{display:flex;justify-content:space-between;align-items:center;padding:3px 15px;gap:10px;min-height:24px;flex:none;background:#e8f0e0;color:#698167;font-size:10px}#daily-progress{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#queue-count{white-space:nowrap}
#game[data-mode="decor"] .shop-title,#game[data-mode="decor"] .order-zone,#game[data-mode="decor"] .workbench,#game[data-mode="decor"]>.instruction,#game[data-mode="decor"]>.category-tabs,#game[data-mode="decor"]>.ingredients,#game[data-mode="decor"]>.action-zone{display:none}#game[data-mode="decor"] .scene-wrap{min-height:210px;max-height:none}#decor-header{position:relative;height:53px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 50px;background:#fffaf0;font-size:15px}#decor-header .back{top:3px;left:5px}#decor-comfort{font-size:11px;color:#7a8c6d}#decor-panel{flex:none;padding:9px 12px calc(12px + env(safe-area-inset-bottom,0px));background:#fffaf0;border-top:5px solid #dfc397}#decor-categories{display:flex;gap:4px;margin-bottom:9px}#decor-categories button{flex:1;background:transparent;border-radius:18px;font-size:14px;min-height:44px}#decor-categories .selected{background:#d9ead5;color:#197762}#decor-catalog{display:flex;gap:8px;overflow-x:auto;min-height:131px;padding-bottom:5px;scrollbar-width:thin}.decor-item{flex:0 0 108px;min-width:108px;background:#eef3e7;border-radius:20px;padding:6px;display:flex;align-items:center;flex-direction:column;gap:4px;border:2px solid transparent}.decor-item img{width:78px;height:68px;object-fit:contain}.decor-item b{font-size:13px}.decor-item small{font-size:10px;color:#7c876c}.decor-item:disabled{opacity:.47}.decor-item i{display:block;width:70px;height:62px;border-radius:12px;margin:3px}.decor-item.selected{border-color:#469a73}
#placement-map{position:absolute;inset:0;z-index:8;touch-action:none;overflow:hidden;user-select:none}.place-dot{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff9dc;box-shadow:0 2px 7px #22584440;width:44px;height:44px;min-height:44px;border-radius:50%;background:#78b995c9;font-size:24px;color:white;touch-action:none}.place-dot:active{transform:translate(-50%,-50%)!important}.place-dot.invalid{background:#cd6e68c9}.place-dot.selected{box-shadow:0 0 0 4px #fff6b591}.place-dot small{position:absolute;left:50%;transform:translateX(-50%);bottom:-20px;font-size:10px;white-space:nowrap;color:#2a604c;background:#fffbedda;border-radius:9px;padding:2px 6px}.decor-tip{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);font-size:11px;white-space:nowrap;background:#fffceacb;padding:6px 10px;border-radius:15px}#placement-controls>div{display:flex;align-items:center;gap:6px}#placing-name{margin-right:auto;font-size:15px}#placement-controls button{background:#e4ecdc;border-radius:18px;min-height:44px;padding:6px 12px;font-size:13px}#placement-controls nav{display:flex;gap:8px;margin-top:10px}#placement-controls nav>button{flex:1}#placement-controls .primary{background:#197762;color:white}#placement-controls .primary:disabled{background:#d6dfce;color:#92a085}#placement-hint{font-size:12px;color:#77876f;margin-top:5px}#placement-controls{padding:4px 0 8px;min-height:170px}#placement-store:disabled{opacity:.4}
#construction{position:absolute;inset:0;z-index:20;background:#fff8dcbb;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;pointer-events:auto;backdrop-filter:blur(2px)}#construction>span{font-size:38px;animation:hammer .24s infinite alternate}#construction>b{font-size:21px;color:#267a63}#construction>small{font-size:12px;color:#927955}@keyframes hammer{to{transform:translateY(-6px) rotate(5deg)}}#game[data-phase="upgrading"] .scene-wrap{min-height:270px;max-height:none}#game[data-phase="upgrading"]>.workbench,#game[data-phase="upgrading"]>.category-tabs,#game[data-phase="upgrading"]>.ingredients,#game[data-phase="upgrading"]>.instruction{display:none}
#equipment-page{width:min(94%,470px);padding:26px 14px 18px}#equipment-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}#equipment-cards article{border-radius:22px;background:#edf2e5;padding:9px;display:flex;align-items:center;flex-direction:column;gap:5px}#equipment-cards img{width:96px;height:84px;object-fit:contain}#equipment-cards b{font-size:15px}#equipment-cards p{font-size:12px;margin:0}#equipment-cards small{font-size:11px;color:#8d937d;min-height:34px}#equipment-cards button{border-radius:20px;background:#2e8067;color:white;width:100%;min-height:44px;font-size:12px}#equipment-cards button:disabled{background:#d9e0cd;color:#8c9a82}#more-menu>.secondary{margin:6px 0}#customer-collection{display:grid;grid-template-columns:1fr 1fr;gap:10px}#customer-collection article{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border-radius:18px;background:#edf3e5}#customer-collection span{font-size:30px}#customer-collection b{font-size:13px}#customer-collection small{font-size:11px;color:#879574}.goal-card{border-radius:18px;background:#eaf0df;padding:16px;margin:20px 0}.goal-card>span{font-size:12px;color:#829176}.goal-card p{margin:8px 0;color:#38735b;font-size:17px}.goal-card small{font-size:12px;color:#9e7e39}#prep-note{font-size:14px}#buy-preview{width:132px;height:120px;object-fit:contain}#buy-price{display:block;font-size:22px;color:#ad863a;margin:12px 0 20px}#shop-confirm .secondary{margin-top:15px}#store-next{padding:13px 0 20px}#store-next h3{font-size:18px;margin:0 0 12px}#store-next p{font-size:14px;margin:0 0 15px;line-height:1.8}#store-next>b{color:#a4833e}#milestone-next{margin:15px 0 0;font-size:12px}#summary-growth{white-space:pre-line;font-size:11px;margin:7px 0 15px}.wallet.short{animation:coin-shake .25s}@keyframes coin-shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
#liquid{transition-duration:var(--pour-duration,.48s)}.cup.sealing{animation-duration:var(--seal-duration,.8s)}.ice-drop{animation-duration:var(--ice-duration,.45s)}.ingredients button{transition-duration:var(--switch-duration,.15s)}.premium-ice #ice-cubes rect{stroke:#affaff;stroke-width:1.7;fill:#c7f5f9}
@media(max-height:730px){#game[data-mode="business"] .scene-wrap{min-height:80px}#game[data-mode="business"] .footer-hint{display:none}#game[data-mode="home"] .scene-wrap{min-height:170px}#home-goals{padding:8px 14px}#home-daily{margin-top:5px}#game[data-mode="decor"] .scene-wrap{min-height:170px}.decor-item{min-width:98px;flex-basis:98px}#decor-panel{padding-top:5px}#decor-catalog{min-height:122px}#decor-header{height:46px}}
@media(max-height:620px){#game[data-mode="business"] .scene-wrap{min-height:75px}#home-goals{padding:7px 13px}#comfort-label{margin-bottom:3px;font-size:10px}#next-target{min-height:44px}#next-target b{font-size:12px}#next-target small{font-size:10px}#home-daily{font-size:10px}#home-nav{margin-top:7px;gap:6px}#home-nav button{font-size:12px}#game[data-mode="home"] .scene-wrap{min-height:154px}#game[data-mode="home"] .action-zone{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}#game[data-mode="decor"] .scene-wrap{min-height:170px}#decor-header{height:44px;font-size:13px}#decor-comfort{font-size:10px}#decor-categories button{font-size:12px}#business-strip{min-height:20px;font-size:9px}#placement-controls{min-height:150px}}
/* Stage 4 handcraft: stable ice controls, one touch means one accepted unit. */
#ice-tools{display:flex;flex:none;gap:6px;padding:4px 14px;background:#f6f5e7;height:56px}#ice-tools button{min-height:48px;border-radius:18px;background:#e0eee5;font-size:12px;flex:1;padding:4px;white-space:nowrap}#ice-tools #ice-add{flex:1.35;background:#d2ebec;touch-action:none;user-select:none;-webkit-user-select:none}#ice-tools #ice-add.holding{background:#a8d5db;transform:scale(.96)}#ice-tools button:disabled{opacity:.45}.sugar-options{display:flex;width:100%;gap:7px}.sugar-options button{flex:1}.guided{box-shadow:inset 0 0 0 3px #dca846!important;background:#fff0bd!important}.pending{background:#fff1d6!important}#ice-reference{opacity:.48;pointer-events:none}#ice-reference path{display:none}.ice-unit.falling{animation:unit-fall .3s cubic-bezier(.2,.55,.45,1.25)}@keyframes unit-fall{from{transform:translateY(-90px);opacity:.3}to{transform:translateY(0);opacity:1}}.ice-unit{transition:transform .3s}.cold:after{content:'·  ˙  ·';position:absolute;bottom:26%;left:12%;color:#b7dad7;font-size:21px;pointer-events:none}.cold.low-effects:after{display:none}#ingredient-flight{position:absolute;inset:0;pointer-events:none;z-index:12;overflow:hidden}.flying-ingredient{position:absolute;width:11px;height:11px;border-radius:50%;background:var(--material-color);animation:ingredient-travel .42s ease-in forwards}@keyframes ingredient-travel{0%{transform:translate(0,0) scale(1);opacity:1}55%{transform:translate(calc(var(--fly-x)*.7),calc(var(--fly-y) - 40px)) scale(.9);opacity:1}100%{transform:translate(var(--fly-x),var(--fly-y)) scale(.55);opacity:0}}.hint-cup{width:95px;height:135px;margin:8px auto}#hint-ice-label{font-size:12px;color:#729281}#game[data-mode="business"] .scene-wrap{min-height:90px}#game[data-mode="business"] .workbench{flex-basis:165px;flex-shrink:0}#game[data-mode="business"] .instruction{font-size:11px;height:32px;line-height:14px;padding:3px 12px;white-space:normal}#game[data-mode="business"] .footer-hint{display:none}#game[data-mode="business"] .ingredients button{min-height:48px}
@media(max-height:730px){#game[data-mode="business"] .scene-wrap{min-height:60px}#game[data-mode="business"] .workbench{flex-basis:132px}#ice-tools{padding:3px 12px;height:54px}#game[data-mode="business"] .work-body{height:101px}#game[data-mode="business"] .cup{height:99px;width:79px}}
@media(max-height:620px){#game[data-mode="business"] .scene-wrap{min-height:35px}#game[data-mode="business"] .workbench{flex-basis:103px}#game[data-mode="business"] .work-body{height:79px}#game[data-mode="business"] .cup{height:77px;width:61px}#game[data-mode="business"] .instruction{height:30px}#game[data-mode="business"] .category-tabs{height:36px}#game[data-mode="business"] #ice-tools button{font-size:10px}#game[data-mode="business"] .bench-note{font-size:9px}}
#practice-page{max-height:calc(var(--app-height, 100vh) * 0.92);overflow:auto}#practice-page>small{display:block;font-size:11px;margin-top:14px;color:#85927f}#practice-guide{font-size:14px;line-height:1.5;min-height:45px;margin:12px 0}#practice-cup{height:175px}#practice-cup svg{height:100%}.practice-ice{display:flex;gap:8px;margin:8px 0}.practice-ice button{flex:1;background:#d8eced;border-radius:16px;min-height:48px;touch-action:none}#practice-controls{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}#practice-controls button{flex:1 0 28%;border-radius:14px;background:#e9efdf;min-height:48px;font-size:13px}#practice-controls button:disabled{opacity:.35}#practice-shake{padding:25px 10px;background:#dbeddf;border-radius:20px;touch-action:none;margin:8px 0}.practice-order{font-size:13px;color:#528776}
@media(min-height:621px) and (max-height:730px){#game[data-mode="business"] .topbar{height:42px}#game[data-mode="business"] .shop-title{height:28px}#game[data-mode="business"] .scene-wrap{min-height:50px}}
#collection-tabs,#recipe-tabs{display:flex;gap:6px;margin:18px 0 12px}#collection-tabs button,#recipe-tabs button{flex:1;min-height:48px;border-radius:22px;background:#edf2e7;font-size:14px}#collection-tabs .selected,#recipe-tabs .selected{background:#2d876f;color:white}#collection-note{font-size:12px;color:#7a8e76;margin:0 0 14px}#customer-collection.town-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.town-card{border:0;border-radius:22px;background:#eff2e6;padding:13px 10px;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}.town-card b{font-size:14px}.town-card small{font-size:11px;color:#768774;line-height:1.5}.town-card .portrait{position:relative;width:66px;height:66px;background:#fff9e8;border-radius:50%;overflow:visible}.portrait img{width:100%;height:100%;object-fit:contain;border-radius:50%}.portrait i{position:absolute;right:-4px;bottom:-2px;font-size:22px;font-style:normal}.unknown .portrait img{filter:grayscale(1);opacity:.25}.town-cards.stories,.town-cards.achievements{grid-template-columns:1fr!important}.story-card{align-items:flex-start;text-align:left;padding:16px 18px}.achievement{position:relative;text-align:left;align-items:flex-start;padding:15px 18px}.achievement>span{position:absolute;right:16px;top:12px;color:#b9c5b1}.achievement.earned{background:#f5efd8}.achievement.earned>span{color:#d7ab47}.achievement em{font-style:normal;font-size:11px;color:#a08149}.detail-avatar{width:95px;height:95px;object-fit:contain;border-radius:50%;background:#f6f1df}#detail-content>p{font-size:14px;line-height:1.8;margin:14px 0}#detail-content>small{font-size:11px;color:#84947e}#detail-content h3{font-size:14px;margin:20px 0 5px}.story-node{padding:14px 0;border-bottom:1px dashed #d8e0cf;text-align:left;font-size:14px;line-height:1.7}.story-node p{margin:8px 0}.story-node small,.muted{color:#8b9982}.story-portrait{position:relative;width:85px;height:85px;margin:4px auto 10px;background:#fff5db;border-radius:50%}.story-portrait img{width:100%;height:100%;object-fit:contain;border-radius:50%}#story-accessory{position:absolute;bottom:0;right:0;font-size:27px}#story-lines{text-align:left;font-size:15px;line-height:1.9;padding:14px 3px}#story-lines p{margin-bottom:10px}#story-dialogue>small{display:block;margin-top:13px;color:#8b9983;font-size:11px}.souvenir-preview{width:210px;max-width:100%;height:180px;object-fit:contain;background:#f5f0df;border-radius:25px}#daily-discoveries{margin:12px 0;color:#64836c;font-size:12px;text-align:left}#daily-discoveries>small{color:#9c967a}#daily-discoveries p{margin:5px 0}#collection-detail{max-height:calc(var(--app-height, 100vh) * 0.85);overflow:auto}.order-text{max-width:calc(100% - 42px)}#order-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#order{cursor:pointer}
.ice-unit{transition:transform .42s ease}.ice-unit.falling{animation:unit-fall var(--unit-fall-duration,.16s) ease-out}@keyframes unit-fall{from{transform:translate(var(--ice-x),calc(var(--ice-y) - 88px));opacity:.3}to{transform:translate(var(--ice-x),var(--ice-y));opacity:1}}
#event-banner{position:absolute;top:104px;left:5%;width:90%;z-index:16;border-radius:15px;background:#eef5e4f2;color:#54785d;padding:8px 12px;font-size:12px;pointer-events:none;box-shadow:0 3px 10px #487a5022}#game[data-mode="home"] #event-banner,#game[data-mode="decor"] #event-banner{display:none}#weather-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.5}#weather-layer i{position:absolute;width:1px;height:13px;background:#779ea7;top:-15%;animation:rainfall 1s linear infinite}@keyframes rainfall{to{transform:translate(-25px,350px)}}.business-paused #weather-layer i{animation-play-state:paused}
#business-strip{position:relative}#event-banner{inset:0;width:100%;padding:4px 12px;border-radius:0;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-shadow:none}
.jam-smear{transform-origin:75px 80px;animation:smear-in .4s ease-out}@keyframes smear-in{from{transform:scaleY(.1);opacity:.1}to{transform:scaleY(1);opacity:.65}}
/* Phase 5: one portrait composition, built on the original phase-4 interface. */
body{overscroll-behavior:none}#game{max-width:480px;min-height:0;height:calc(var(--app-height, 100vh) * 1.0);max-height:1000px}.topbar{grid-template-columns:minmax(72px,1fr) auto minmax(72px,1fr) 44px;gap:6px;padding-inline:12px}.topbar .round-button{font-size:21px}.wallet{min-width:0;font-size:16px;gap:4px}.wallet b{max-width:88px}.day-badge{font-size:14px;padding:7px 10px}.shop-title h1{font-size:19px}.shop-title h1 span{font-size:8px}#game[data-mode="business"]{--material-height:64px;--cup-size:clamp(180px,calc(var(--app-height, 100vh) * 0.26),220px);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:48px 84px minmax(156px,1fr) 52px 44px var(--material-height) 62px;padding-bottom:env(safe-area-inset-bottom,0px)}#game[data-mode="business"].two-material-rows{--material-height:112px}#game[data-mode="business"] .topbar{grid-area:1/1;height:48px;padding-block:0}#game[data-mode="business"] .shop-title{display:none}#game[data-mode="business"] .order-zone{grid-area:2/1;height:84px;padding:3px 12px}#game[data-mode="business"] #order,#game[data-mode="business"] #idle-order{height:78px;padding:7px 11px}.order-text b,.compact .order-text b{font-size:16px}#order-details{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;line-height:18px;margin-top:3px;white-space:normal}#order-details span{white-space:nowrap}.order-text{max-width:calc(100% - 24px)}.order-drink{font-size:22px;right:10px}.patience{bottom:8px}#patience-label{bottom:3px;font-size:10px}
#game[data-mode="business"] .scene-wrap{grid-area:3/1;min-height:0;max-height:none;height:100%;isolation:isolate;overflow:hidden}#game[data-mode="business"] .scene-caption{display:none}#game[data-mode="business"] #business-strip{position:absolute;left:0;right:0;top:132px;z-index:5;height:23px;min-height:23px;padding:3px 12px;background:#e6f0e5dd;font-size:10px;pointer-events:none}#game[data-mode="business"] .workbench{grid-area:3/1;align-self:stretch;position:relative;min-height:0;padding:0;border:0;box-shadow:none;background:transparent;pointer-events:none;overflow:hidden}#game[data-mode="business"] .workbench:before{content:"";position:absolute;bottom:0;left:0;right:0;height:40%;background:linear-gradient(#efdbc0,#f5e7d0);border-top:5px solid #fcf4e5;box-shadow:0 -3px 0 #dbc19a}#game[data-mode="business"] .work-head{display:none}#game[data-mode="business"] .work-body{position:absolute;inset:0;display:block;height:auto}#game[data-mode="business"] .cup-area,#game[data-mode="business"] .workbench.shaking .cup-area{position:absolute;left:50%;bottom:27px;top:auto;transform:translateX(-50%);width:calc(var(--cup-size)*.8);height:var(--cup-size);display:flex;justify-content:flex-end;transition:none}#game[data-mode="business"] .cup{height:var(--cup-size);width:calc(var(--cup-size)*.789);flex-shrink:0}#game[data-mode="business"] #cup-label{position:absolute;bottom:0;font-size:10px;white-space:nowrap;color:#566f5e}#game[data-mode="business"] .recipe{position:absolute;left:12px;bottom:48px;width:90px;font-size:11px;gap:4px;line-height:1.3;color:#617b67;max-height:110px;overflow:auto;pointer-events:auto}#game[data-mode="business"] .recipe span{white-space:nowrap}#game[data-mode="business"] .bench-note{position:absolute;right:9px;bottom:45px;transform:none;width:76px;display:flex;align-items:flex-end;gap:4px;font-size:11px;pointer-events:auto}#game[data-mode="business"] .bench-note .tiny{min-width:48px;min-height:36px;padding:4px 7px;border-radius:15px;background:#fffaf0dd}#game[data-mode="business"] #recipe-help{position:static;top:auto;min-height:44px;min-width:44px;border-radius:50%;font-size:20px;background:#fffff7}#game[data-mode="business"] #own-ice{font-size:10px}#game[data-mode="business"] .instruction{grid-area:3/1;align-self:end;height:28px;min-height:28px;position:relative;z-index:3;background:#f7ecd8f0;font-size:11px;line-height:14px;padding:1px 8px;display:flex;align-items:center;justify-content:center;pointer-events:none}#game[data-mode="business"] #ice-tools{grid-area:4/1;height:52px;padding:2px 12px;gap:6px}#ice-tools button{min-height:48px;height:48px;border-radius:16px;font-size:12px}#game[data-mode="business"] .category-tabs{grid-area:5/1;height:44px;padding:0 12px;gap:6px;display:flex}#game[data-mode="business"] .category-tabs>button{flex:1;min-height:40px;height:40px;font-size:13px}#game[data-mode="business"] .ingredients{grid-area:6/1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:52px;align-content:start;height:var(--material-height);gap:6px;padding:3px 12px;overflow:hidden}#game[data-mode="business"] .ingredients button{min-width:0;min-height:48px;height:52px;gap:1px;border-radius:15px;font-size:12px;transition:background var(--switch-duration),transform .12s}.ingredient-icon{font-size:22px;line-height:23px}.ingredient-state{color:#3a8d66;font-size:13px!important;opacity:1!important;left:auto!important;right:6px}.ingredients button.pending{border-color:#d4b471}#game[data-mode="business"] .action-zone{grid-area:7/1;padding:5px 12px 9px;height:62px}#game[data-mode="business"] .action-zone .primary{min-height:48px;height:48px;padding:8px 14px;font-size:16px}#game[data-mode="business"] .shake-area{position:absolute;inset:24px 0 29px;width:100%;padding:0;z-index:8;pointer-events:auto;touch-action:none}#game[data-mode="business"] .shake-area>b{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:#fff9e6e8;padding:4px 16px;border-radius:20px;font-size:17px;white-space:nowrap}#game[data-mode="business"] .shake-help{position:absolute;top:49px;left:50%;transform:translateX(-50%);white-space:nowrap;display:block;background:#fffaf0d9;border-radius:12px;padding:2px 8px;font-size:11px}.swipe-track{position:absolute;left:4%;right:4%;top:45%;height:40px;justify-content:space-between;pointer-events:none}.swipe-track i{position:absolute;left:calc(50% - 16px);top:50px;background:#fff9eacc;border-radius:50%}.shake-meter{position:absolute;bottom:12px;left:20%;width:60%;height:10px}.shake-grades{position:absolute;bottom:0;left:20%;width:60%;font-size:10px}.workbench.shaking .bench-note{visibility:visible;z-index:9}.workbench.shaking .bench-note>span,.workbench.shaking #recipe-help,.workbench.shaking #remake-open{visibility:hidden}#game[data-mode="business"] .workbench.shaking .recipe{visibility:hidden}.review{top:24px;max-width:90%;right:5%;z-index:12}#streak-badge{z-index:6;top:29px}#sweat{z-index:6}#game[data-mode="business"] .combo{top:26px}
#equipment-cards{grid-template-columns:1fr}#equipment-cards article{display:grid;grid-template-columns:88px minmax(0,1fr);text-align:left;column-gap:12px;row-gap:6px;padding:13px}#equipment-cards img{grid-column:1;grid-row:1/5;width:88px;height:96px}#equipment-cards b,#equipment-cards p,#equipment-cards small,#equipment-cards button{grid-column:2}#equipment-cards small{min-height:0}#equipment-cards button{min-height:48px}.save-actions{display:flex;gap:8px;margin:12px 0}.save-actions button{flex:1}.setting-row{min-height:54px}dialog .back{position:sticky;float:left;margin:-15px -20px -30px;top:0;z-index:2;background:#fffdf3e8}#summary-details{text-align:left;border-top:1px dashed #d8dfce;padding-top:12px;margin:12px 0;font-size:13px}#summary-details summary{min-height:40px;padding:10px 0;cursor:pointer}#summary-details dl{margin:0}#summary-details dd{font-size:14px}#summary-target{font-size:13px;border-radius:16px;background:#e8efdf;padding:11px;color:#47755e}#import-confirm .secondary{margin-top:12px}#game[data-mode="decor"] #decor-panel{max-height:calc(var(--app-height, 100vh) * 0.42);overflow:auto}#game[data-mode="decor"] .scene-wrap{min-height:140px}
@media(max-height:740px){#game[data-mode="business"]{--cup-size:180px;--material-height:56px;grid-template-rows:44px 78px minmax(142px,1fr) 50px 40px var(--material-height) 58px}#game[data-mode="business"].two-material-rows{--material-height:108px}#game[data-mode="business"] .topbar{height:44px}#game[data-mode="business"] .order-zone{height:78px;padding-block:2px}#game[data-mode="business"] #order,#game[data-mode="business"] #idle-order{height:74px}#game[data-mode="business"] #business-strip{top:122px;height:20px;min-height:20px;font-size:9px}#game[data-mode="business"] #ice-tools{height:50px;padding-block:1px}#game[data-mode="business"] .category-tabs{height:40px}#game[data-mode="business"] .category-tabs button{height:38px;min-height:38px}#game[data-mode="business"] .ingredients{grid-auto-rows:48px;gap:5px;padding-block:2px}#game[data-mode="business"] .ingredients button{height:48px}#game[data-mode="business"] .action-zone{height:58px;padding-block:4px 6px}#game[data-mode="business"] .recipe{bottom:40px;font-size:10px;width:80px}#game[data-mode="business"] .bench-note{bottom:36px;font-size:10px;width:70px}#game[data-mode="business"] .bench-note .tiny{min-height:32px}#game[data-mode="business"] .cup-area,#game[data-mode="business"] .workbench.shaking .cup-area{bottom:23px}#game[data-mode="business"] .instruction{height:24px;min-height:24px;font-size:10px;line-height:12px}}
@media(max-height:660px){#game[data-mode="business"].two-material-rows{--cup-size:180px}.shop-title{height:32px}#game[data-mode="business"] .bench-note #recipe-help{min-height:36px;min-width:44px}#game[data-mode="business"] .bench-note{bottom:30px;gap:2px}#game[data-mode="business"] .bench-note .tiny{min-height:28px}.order-text b,.compact .order-text b{font-size:15px}#order-details{font-size:11px;gap:7px}#game[data-mode="business"] .shake-help{top:40px}#game[data-mode="business"] .shake-area>b{top:0}}
/* v0.5.1: reserve a clear scene above a compact, separate preparation counter. */
#game[data-mode="business"]{--cup-size:clamp(108px,calc(var(--app-height, 100vh) * 0.14),124px);--prep-height:calc(var(--cup-size) + 28px)}
#game[data-mode="business"] .scene-wrap{height:calc(100% - var(--prep-height));align-self:start}
#game[data-mode="business"] .workbench{height:var(--prep-height);align-self:end}
#game[data-mode="business"] .workbench:before{height:100%;border-top-width:3px;background:linear-gradient(#f8ecd8,#f2e2c8);box-shadow:0 -2px 0 #dbc19a}
#game[data-mode="business"] .cup-area,#game[data-mode="business"] .workbench.shaking .cup-area{bottom:25px}
#game[data-mode="business"] .recipe{bottom:37px;max-height:84px;width:90px;font-size:11px}
#game[data-mode="business"] .bench-note{bottom:32px;font-size:11px}
#game[data-mode="business"] .shake-area{inset:0 0 28px}
#game[data-mode="business"] .shake-area>b{left:12px;top:12px;transform:none;font-size:14px;padding:3px 7px}
#game[data-mode="business"] .shake-help{left:12px;top:44px;transform:none;width:84px;white-space:normal;font-size:11px;line-height:1.5;padding:3px 6px}
#game[data-mode="business"] .swipe-track{left:4%;right:4%;top:42%;height:36px}
#game[data-mode="business"] .swipe-track i{display:none}
#game[data-mode="business"] .shake-meter{bottom:6px;height:8px}
#game[data-mode="business"] .shake-grades{bottom:-8px}
@media(max-height:740px){#game[data-mode="business"],#game[data-mode="business"].two-material-rows{--cup-size:104px}#game[data-mode="business"] .recipe{bottom:34px;max-height:74px}#game[data-mode="business"] .bench-note{bottom:30px}}
@media(min-width:600px){#game{height:min(1000px,calc(var(--app-height, 100vh) * 1.0));border:0;border-radius:0}body{padding:0}}
@media(max-height:580px){body{display:block}#game{margin:auto;min-height:580px}}

/* v0.5.2: a single touchable preparation desk, with objects instead of menu icons. */
#craft-desktop{display:contents}
#game[data-mode="business"] #craft-desktop{grid-area:3/1/7/2;align-self:end;height:calc(var(--prep-height) + 52px + 44px + var(--material-height));display:grid;grid-template-rows:var(--prep-height) 52px 44px var(--material-height);position:relative;isolation:isolate;border-radius:18px 18px 0 0;background:linear-gradient(100deg,#e8d1ae,#f0debe 48%,#e7cfaa);border-top:4px solid #fff2dc;box-shadow:0 -2px 0 #c1a17b;overflow:hidden}
#game[data-mode="business"] #craft-desktop .workbench{grid-area:1/1;align-self:stretch;height:auto}
#game[data-mode="business"] #craft-desktop .workbench:before{display:none}
#game[data-mode="business"] #craft-desktop #ice-tools{grid-area:2/1;background:transparent;height:52px}
#game[data-mode="business"] #craft-desktop .category-tabs{grid-area:3/1;background:transparent;height:44px;align-items:center}
#game[data-mode="business"] #craft-desktop .ingredients{grid-area:4/1;background:transparent}
#game[data-mode="business"] #craft-desktop .instruction{grid-area:1/1;align-self:end;background:transparent;height:26px;font-size:11px}
#game[data-mode="business"] #craft-desktop .category-tabs button{border-radius:13px;height:34px;min-height:34px;background:#f8edd6;box-shadow:0 2px 0 #ba9c75;font-size:12px}
#game[data-mode="business"] #craft-desktop .category-tabs button.selected{background:#2e816e;color:white;box-shadow:0 2px 0 #1c5b4d}
#game[data-mode="business"] #craft-desktop .ingredients button{background:#fff5dfbb;border:1px solid #cab18c;box-shadow:0 2px 0 #bda17b;gap:0;border-radius:12px;padding:1px 3px}
#game[data-mode="business"] #craft-desktop .ingredients button.done{background:#d8ead4;border-color:#7b9f80}
#game[data-mode="business"] #craft-desktop .ingredients button.pending{background:#fff0c2;border-color:#caa45d}
#game[data-mode="business"] #craft-desktop .ingredients .material-object{width:56px;height:34px;object-fit:contain;pointer-events:none;user-select:none}
#game[data-mode="business"] #craft-desktop .ingredients .ingredient-name{font-size:12px;line-height:15px}
#game[data-mode="business"] #craft-desktop #ice-tools button{background:#f8f0dc;border:1px solid #c6ab86;box-shadow:0 2px 0 #bda17b}
#game[data-mode="business"] #craft-desktop #ice-add{background:#d5ece7;border-color:#8bbab1}
@media(max-height:740px){#game[data-mode="business"] #craft-desktop{height:calc(var(--prep-height) + 50px + 40px + var(--material-height));grid-template-rows:var(--prep-height) 50px 40px var(--material-height)}#game[data-mode="business"] #craft-desktop #ice-tools{height:50px}#game[data-mode="business"] #craft-desktop .category-tabs{height:40px}#game[data-mode="business"] #craft-desktop .ingredients .material-object{height:30px}}

#game[data-mode="business"] #craft-desktop{border-top:0;box-shadow:0 -3px 0 #fff1d9,0 -5px 0 #bc9c76}
#game[data-mode="business"] #craft-desktop .ingredients{grid-auto-rows:50px}
#game[data-mode="business"] #craft-desktop .ingredients button{height:50px}
@media(max-height:740px){#game[data-mode="business"] #craft-desktop .ingredients{grid-auto-rows:48px}#game[data-mode="business"] #craft-desktop .ingredients button{height:48px}}
/* v0.5.3 — the shop counter is the only preparation surface. */
#game[data-mode="business"],#game[data-mode="business"].two-material-rows{display:grid;grid-template-rows:46px 82px minmax(0,1fr) 62px;--cup-size:110px;padding-bottom:env(safe-area-inset-bottom,0px)}
#game[data-mode="business"] .topbar{grid-area:1/1;height:46px}
#game[data-mode="business"] .order-zone,#game[data-mode="business"] .order-zone.compact{grid-area:2/1;height:82px;padding:2px 10px;background:#fffdf5}
#game[data-mode="business"] #order,#game[data-mode="business"] #order.compact,#game[data-mode="business"] #idle-order{height:76px;border-radius:14px;padding:5px 11px}
#game[data-mode="business"] .scene-wrap{grid-area:3/1;height:100%;align-self:stretch;min-height:0;overflow:hidden}
#game[data-mode="business"] #business-strip{top:132px;left:auto;right:10px;width:auto;max-width:74%;height:20px;min-height:20px;padding:0 5px;gap:8px;font-size:10px;border-radius:5px;background:#fffdf0aa;z-index:5}
#game[data-mode="business"] #daily-progress{max-width:150px}
#game[data-mode="business"] #event-banner{top:22px;left:auto;right:0;width:auto;max-width:280px}
#game[data-mode="business"] #craft-desktop{position:absolute;inset:0;grid-area:auto;display:block;height:100%;align-self:auto;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;isolation:auto;pointer-events:none;z-index:3}
#game[data-mode="business"] #craft-desktop .workbench{position:absolute;inset:0;height:100%;display:block;overflow:visible;z-index:auto;pointer-events:none;background:none;border:0;padding:0}
#game[data-mode="business"] #craft-desktop .workbench:before{display:none}
#game[data-mode="business"] #craft-desktop .work-body{position:absolute;inset:0;height:100%;display:block}
#game[data-mode="business"] #craft-desktop .cup-area,#game[data-mode="business"] #craft-desktop .recipe{visibility:hidden;pointer-events:none}
#game[data-mode="business"] #craft-desktop .bench-note{position:absolute;top:30px;right:8px;bottom:auto;left:auto;display:flex;flex-direction:row;width:auto;gap:3px;transform:none;pointer-events:auto;z-index:7}
#game[data-mode="business"] #craft-desktop .bench-note>span{display:none}
#game[data-mode="business"] #craft-desktop .bench-note button{font-size:12px;min-width:44px;min-height:44px;border-radius:10px;padding:4px 7px;background:#fffdf3bb}
#game[data-mode="business"] #craft-desktop .bench-note #recipe-help{font-size:18px}
#game[data-mode="business"] #craft-desktop .category-tabs{display:none}
#game[data-mode="business"] #craft-desktop .ingredients,#game[data-mode="business"] #craft-desktop #ice-tools{position:absolute;inset:0;height:100%;display:block;padding:0;overflow:visible;pointer-events:none;background:none}
#game[data-mode="business"] #craft-desktop .scene-target,#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop #ice-add,#game[data-mode="business"] #craft-desktop #ice-remove{position:absolute;width:68px;height:76px;min-height:48px;min-width:48px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:0;padding:0 0 2px;border:0;border-radius:16px;background:transparent;box-shadow:none;pointer-events:auto;transform:translate(-50%,-50%);font-size:13px;line-height:18px;font-weight:600;touch-action:none}
#game[data-mode="business"] #craft-desktop .ingredients button:disabled,#game[data-mode="business"] #craft-desktop #ice-tools button:disabled,#game[data-mode="business"] #craft-desktop .scene-target:disabled{opacity:.65}
#game[data-mode="business"] #craft-desktop .ingredients button .ingredient-name,#game[data-mode="business"] #craft-desktop .scene-target>span,#game[data-mode="business"] #craft-desktop #ice-add b{background:#fffdf3d9;border-radius:5px;padding:1px 5px;box-shadow:0 1px 3px #294b3922;white-space:nowrap}
#game[data-mode="business"] #craft-desktop .ingredient-state{position:absolute;right:0;top:12px;width:18px;height:18px;background:#fffdf5df;border-radius:50%;font-size:13px;font-style:normal}
#game[data-mode="business"] #craft-desktop .ingredient-state:empty{display:none}
#game[data-mode="business"] #craft-desktop .ingredients button.done .ingredient-name{background:#d3eddf}
#game[data-mode="business"] #craft-desktop .guided{outline:2px solid #368d68;outline-offset:0;animation:counter-guide 1s ease-in-out infinite}
#game[data-mode="business"] #craft-desktop .scene-target:active:not(:disabled),#game[data-mode="business"] #craft-desktop .ingredients button:active:not(:disabled),#game[data-mode="business"] #craft-desktop #ice-add:active:not(:disabled),#game[data-mode="business"] #craft-desktop #ice-remove:active:not(:disabled){transform:translate(-50%,-50%) scale(.95);background:#ffffff22}
#game[data-mode="business"] #craft-desktop #ice-add.holding{outline:2px solid #4c9f95;background:#dcf8ef33}
#game[data-mode="business"] #craft-desktop #ice-remove{height:48px;width:48px;background:#fffff077;font-size:12px}
#game[data-mode="business"] #craft-desktop #undo-topping{position:absolute;left:8px;top:30px;width:90px;height:44px;min-height:44px;pointer-events:auto;background:#fffdf3bb;box-shadow:none;border:0;border-radius:10px;font-size:12px}
#game[data-mode="business"] #craft-desktop #tray-next{position:absolute;left:8px;bottom:4px;width:76px;min-height:44px;border-radius:9px;pointer-events:auto;font-size:12px;background:#fffdf3c9;z-index:4}
#game[data-mode="business"] #craft-desktop #sugar-options{position:absolute;display:flex;flex-direction:column;gap:3px;width:104px;padding:5px;background:#fffdf4f5;box-shadow:0 3px 12px #244d3933;border-radius:12px;z-index:8;pointer-events:auto}
#sugar-options button{min-height:44px;height:44px;font-size:14px;border-radius:8px;background:#edf3e8}#sugar-options button.selected{background:#358872;color:white}#sugar-options button:disabled{opacity:.5}
#game[data-mode="business"] #craft-desktop .instruction{position:absolute;left:8px;top:3px;bottom:auto;right:8px;display:flex;min-height:25px;height:auto;padding:3px 6px;background:#fffdf0d9;border-radius:8px;font-size:12px;line-height:18px;align-self:auto;z-index:6;pointer-events:none}
#game[data-mode="business"] #craft-desktop .shake-area{position:absolute;inset:34% 0 0;width:100%;pointer-events:auto;touch-action:none;z-index:6;background:none}
#game[data-mode="business"] #craft-desktop .shake-area>b{top:20%;left:50%;transform:translateX(-50%);font-size:17px;background:#fffdf2df;padding:4px 12px}
#game[data-mode="business"] #craft-desktop .shake-help{top:calc(20% + 36px);left:50%;transform:translateX(-50%);font-size:12px;width:auto;white-space:nowrap;background:#fffdf2df}
#game[data-mode="business"] #craft-desktop .swipe-track{top:49%;left:12%;right:12%;height:40px}
#game[data-mode="business"] #craft-desktop .shake-meter{bottom:38px;left:15%;width:70%;height:10px}
#game[data-mode="business"] #craft-desktop .shake-grades{bottom:18px;left:15%;width:70%;font-size:12px}
#game[data-mode="business"].is-shaking #craft-desktop .ingredients,#game[data-mode="business"].is-shaking #ice-tools,#game[data-mode="business"].is-shaking #sugar-pump,#game[data-mode="business"].is-shaking #tray-next{visibility:hidden}
#game[data-mode="business"] .action-zone{grid-area:4/1;height:62px;padding:5px 12px 9px;background:#fffdf5}
#game[data-mode="business"] .action-zone .primary{height:48px;min-height:48px;font-size:16px}
#game[data-mode="business"] #streak-badge{top:7px;left:8px;font-size:12px;padding:3px 6px}
#game[data-mode="business"] .review{top:30%;right:5%;padding:10px 13px;max-width:90%;font-size:13px}
#game[data-mode="home"] #craft-desktop,#game[data-mode="decor"] #craft-desktop{display:none}
@keyframes counter-guide{50%{box-shadow:0 0 0 5px #5cae8540}}
@media(max-width:350px){#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop .scene-target{width:60px;font-size:12px}#game[data-mode="business"] #craft-desktop .ingredients .ingredient-name{font-size:12px}}
#game[data-mode="business"] #craft-desktop .scene-target.guided,#game[data-mode="business"] #craft-desktop .ingredients button.guided,#game[data-mode="business"] #craft-desktop #ice-add.guided{background:transparent!important}
#game[data-mode="business"] #craft-desktop .instruction{top:25px}
#game[data-mode="business"] #craft-desktop .bench-note,#game[data-mode="business"] #craft-desktop #undo-topping{top:58px}
#game[data-mode="business"] #craft-desktop [data-ingredient="strawberryJam"]{width:56px}
#game[data-mode="business"] #craft-desktop .ingredients button.flash{animation:counter-tap .18s}
#game[data-mode="business"] #craft-desktop #sugar-options .guided{background:#def0df!important;outline:2px solid #3a906b}
@keyframes counter-tap{50%{background:#ddf8e933}}
#game[data-mode="business"]{min-height:0;height:calc(var(--app-height, 100vh) * 1.0)}
#game[data-mode="business"] #business-strip{top:3px}
@media(max-height:660px){#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop .scene-target,#game[data-mode="business"] #craft-desktop #ice-add{height:64px}}
/* v0.5.4 — calmer information, compact tools, tangible grouped worktop. */
#game[data-mode="business"] #business-strip{left:8px;right:8px;max-width:none;width:auto;justify-content:space-between;height:22px;padding:0 8px;border-radius:8px;background:#f8f8eacf;color:#587865;font-size:10px}
#game[data-mode="business"] #daily-progress{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game[data-mode="business"] #craft-desktop .instruction{top:27px;left:12%;right:12%;font-size:12px;min-height:23px;padding:2px 7px;background:#fff6dcd6}
#game[data-mode="business"] #craft-desktop .bench-note{top:52px;right:6px;gap:0}
#game[data-mode="business"] #craft-desktop .bench-note button{height:44px;min-height:44px;min-width:44px;padding:0 5px;border:0;border-radius:50%;background:radial-gradient(circle,#fffdf1c4 0 55%,transparent 58%);box-shadow:none;font-size:11px;color:#5d7a69}
#game[data-mode="business"] #craft-desktop .bench-note #recipe-help{font-size:18px}
#game[data-mode="business"] #craft-desktop #undo-topping{top:52px;left:6px;width:72px;min-height:44px;height:44px;background:#fffdf177;font-size:11px;border-radius:22px;color:#5d7a69}
#game[data-mode="business"] #craft-desktop #ice-remove{background:transparent;font-size:11px}
#game[data-mode="business"] #craft-desktop #ice-add b{font-size:11px;padding:1px 4px}
#game[data-mode="business"] #craft-desktop #tray-next{width:66px;font-size:11px;border-radius:22px;background:#f9f7e6cc}
#game[data-mode="business"] .customer-name{color:#52785f;font-size:12px;font-weight:600}
#game[data-mode="business"] #order-line{font-size:16px;color:#255e50}
#game[data-mode="business"] #order-details{font-size:12px;gap:7px;color:#3d6c5d}
#game[data-mode="business"] #patience-label{color:#6d826a;font-size:10px}
#game[data-mode="business"] #patience-label.urgent{color:#b3654e}
#game[data-mode="business"] .patience{height:4px;background:#e4eadf;border-radius:6px}
#game[data-mode="business"] .order-drink{font-size:26px;right:12px;top:9px}
#game[data-mode="business"] #craft-desktop .ingredients button.done,#game[data-mode="business"] #craft-desktop .ingredients button.pending{background:transparent;border:0;box-shadow:none}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-add,#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove{background:transparent;border:0;box-shadow:none}
#game[data-mode="business"] #craft-desktop #ice-tools button#undo-topping{background:#fffdf177;border:0;box-shadow:none}
/* v0.6 — one low-angle shop camera, one continuous counter. */
#game[data-mode="business"],#game[data-mode="business"].two-material-rows{grid-template-rows:44px clamp(88px,14vh,118px) minmax(0,1fr) clamp(52px,8vh,68px);background:#f9f8ef}
#game[data-mode="business"] .topbar{height:44px;background:#fffdf4}
#game[data-mode="business"] .order-zone,#game[data-mode="business"] .order-zone.compact{position:relative;height:100%;padding:3px 10px 7px;background:#fffdf4}
#game[data-mode="business"] #order,#game[data-mode="business"] #order.compact,#game[data-mode="business"] #idle-order{height:100%;padding:8px 12px;border-radius:16px;box-shadow:none;background:#fffef8}
#game[data-mode="business"] #order-line{font-size:18px;line-height:23px}
#game[data-mode="business"] #order-details{font-size:14px;line-height:20px;gap:8px}
#game[data-mode="business"] .customer-name{font-size:12px;line-height:18px}
#game[data-mode="business"] #patience-label{font-size:11px}
#game[data-mode="business"] #business-strip{position:absolute;inset:auto 12px 1px;height:3px;min-height:3px;max-width:none;width:auto;display:block;padding:0;background:#dce6db;border-radius:3px;overflow:hidden;z-index:2}
#business-progress{display:block;height:100%;width:0;background:#348468;transition:width .3s}
#game[data-mode="business"] #craft-desktop .category-tabs{position:absolute;left:16%;right:16%;bottom:10px;display:flex;gap:7px;height:44px;padding:0;background:none;z-index:5;pointer-events:auto}
#game[data-mode="business"] #craft-desktop .category-tabs button{flex:1;min-width:0;min-height:44px;height:44px;border:0;border-radius:22px;font-size:14px;font-weight:700;background:#fff7e6e6;color:#4b6f5c;box-shadow:0 2px 0 #795c3933}
#game[data-mode="business"] #craft-desktop .category-tabs button.selected{background:#246d53;color:#fff;box-shadow:0 2px 0 #184f3a}
#game[data-mode="business"] #craft-desktop .category-tabs button:disabled{opacity:.58}
#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop .scene-target,#game[data-mode="business"] #craft-desktop #ice-add{width:68px;height:76px;border:0;background:transparent;box-shadow:none}
#game[data-mode="business"] #craft-desktop .scene-target .ingredient-name,#game[data-mode="business"] #craft-desktop #sugar-pump>span,#game[data-mode="business"] #craft-desktop #ice-add>b{visibility:hidden;font-size:12px;background:#fff7dfed;color:#365c48;border-radius:8px;padding:2px 6px;box-shadow:none}
#game[data-mode="business"] #craft-desktop .scene-target.show-label .ingredient-name,#game[data-mode="business"] #craft-desktop .scene-target.guided .ingredient-name,#game[data-mode="business"] #craft-desktop #sugar-pump.show-label>span,#game[data-mode="business"] #craft-desktop #sugar-pump.guided>span,#game[data-mode="business"] #craft-desktop #ice-add.show-label>b,#game[data-mode="business"] #craft-desktop #ice-add.holding>b,#game[data-mode="business"] #craft-desktop #ice-add.guided>b,#game[data-mode="business"] #craft-desktop .scene-target:focus-visible .ingredient-name{visibility:visible}
#game[data-mode="business"] #craft-desktop .scene-target.done .ingredient-name{visibility:hidden}
#game[data-mode="business"] #craft-desktop .ingredient-state{left:auto;top:8px;right:3px;width:16px;height:16px;font-size:11px;line-height:16px;opacity:1;color:#2b7b58;background:#fff7ddee}
#game[data-mode="business"] #craft-desktop #ice-tools #ice-remove{color:transparent;box-shadow:none;border:0;background:transparent;width:48px;height:48px}
#game[data-mode="business"] #craft-desktop #ice-tools #ice-remove.show-label{color:#365c48;font-size:12px}
#game[data-mode="business"] #craft-desktop .instruction{position:absolute;left:50%;top:auto;right:auto;bottom:auto;width:max-content;max-width:170px;min-height:0;height:auto;display:block;padding:4px 9px;border-radius:12px;line-height:18px;font-size:12px;transform:translateX(-50%);background:#fff7dfef;color:#3e6f53;box-shadow:0 2px 0 #6f5d3533;z-index:5;text-align:center}
#game[data-mode="business"] #craft-desktop #tray-next{left:auto;right:8px;bottom:10px;width:48px;height:44px;min-height:44px;padding:0;font-size:11px;border-radius:18px;background:#fff7e6dd}
#game[data-mode="business"] #craft-desktop .shake-area{inset:28% 0 0;z-index:6}
#game[data-mode="business"] #craft-desktop .shake-area>b,#game[data-mode="business"] #craft-desktop .shake-help{background:#fff7e6e6}
#game[data-mode="business"] #event-banner{bottom:auto;height:auto;max-height:42px;top:14px;left:15%;right:15%;max-width:none;width:auto;background:#fff7ddec}
#game[data-mode="business"] .action-zone{height:100%;padding:7px 12px;background:#fffdf4}
#game[data-mode="business"] .action-zone .primary{height:100%;min-height:44px;max-height:54px;font-size:16px}
#workshop-tools{padding:10px 0;border-top:1px solid #d9e2d2;border-bottom:1px solid #d9e2d2;margin:10px 0}
#workshop-tools h3{font-size:15px;margin:0 0 8px;color:#3f7156}
#workshop-tools .bench-note{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px;transform:none;width:100%}
#workshop-tools .bench-note>span{display:none}
#workshop-tools .bench-note button,#workshop-tools #undo-topping{min-height:44px;padding:8px 12px;font-size:14px;border:0;border-radius:22px;background:#e9efdf;box-shadow:none;margin:0}
#workshop-tools #undo-topping{margin-top:8px}
#workshop-tools .workshop-status{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#647660;margin:10px 0 0}
@media(max-width:350px){#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop .scene-target,#game[data-mode="business"] #craft-desktop #ice-add{width:60px;height:64px}}
@media(max-height:660px){#game[data-mode="business"] #craft-desktop .ingredients button,#game[data-mode="business"] #craft-desktop .scene-target,#game[data-mode="business"] #craft-desktop #ice-add{height:64px}}

#game[data-mode="business"] #order #streak-badge{position:absolute;left:auto;right:10px;top:auto;bottom:5px;font-size:10px;padding:2px 6px;background:#ffedb9;color:#84601f}

@media(max-height:660px){
 #game[data-mode="business"] .customer-name{font-size:11px;line-height:14px}
 #game[data-mode="business"] #order-line{font-size:16px;line-height:20px}
 #game[data-mode="business"] #order-details{font-size:12px;line-height:16px;margin-top:2px}
 #game[data-mode="business"] #patience-label{font-size:9px}
}

#game[data-mode="business"] #craft-desktop .shake-help,#game[data-mode="business"] #craft-desktop .swipe-track i{display:none}
#game[data-mode="business"] #craft-desktop .swipe-track{left:22%;right:22%;height:36px}
#game[data-mode="business"] #craft-desktop .shake-meter{left:31%;width:38%;bottom:auto;height:8px}
#game[data-mode="business"] #craft-desktop .shake-grades{left:31%;width:38%;bottom:auto;font-size:10px}
#game[data-mode="business"] #craft-desktop .shake-area>b{font-size:14px;padding:3px 10px}

/* v0.6.6: keep ice removal discoverable before the first ice unit. */
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove{width:70px;height:68px;min-height:48px;min-width:48px;padding:4px;justify-content:center;gap:1px;color:#254f57;background:#fff3d5;border:2px solid #bd914c;border-radius:15px;box-shadow:0 3px 0 #98724555;line-height:17px;font-size:12px;font-weight:800;touch-action:manipulation}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove svg{width:28px;height:28px;flex:none}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove b{font-size:12px;white-space:nowrap;color:#254f57}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove:disabled{opacity:.76;filter:none}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove.has-ice:not(:disabled){border-color:#43896e;background:#fff8dd;box-shadow:0 3px 0 #43896e66}
#game[data-mode="business"] #craft-desktop #ice-tools button#ice-remove:active:not(:disabled){background:#e4ecd8}




/* 0.9.0: three familiar destinations and one near-term wish. */
#home-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#home-nav button{min-width:0;min-height:56px}#home-daily{display:none}#home-goals #journal-home{margin-top:0}#shop-hub{max-width:440px}#shop-hub>p{font-size:13px;color:#7a897a;margin-bottom:20px}#shop-hub #next-target{margin:16px 0;padding:16px;align-items:flex-start;flex-direction:column;gap:7px}.shop-hub-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shop-hub-links button{min-height:112px;background:#edf2e7;border-radius:20px;display:flex;flex-direction:column;align-items:flex-start;padding:16px;gap:9px;text-align:left}.shop-hub-links button:last-child{grid-column:1/-1;min-height:88px}.shop-hub-links span{font-size:22px}.shop-hub-links b{font-size:15px}.shop-hub-links small{font-size:11px;color:#728475}#journal-moments{margin:18px 0;text-align:left;border-top:1px solid #dce4d7;padding-top:12px}#journal-moments h3{font-size:14px}#journal-moments p{display:flex;gap:12px;font-size:13px;line-height:1.5}#journal-moments small{white-space:nowrap;color:#81907f}#cup-cost-open{font-size:11px!important;background:transparent!important;color:#7c8878!important}#quick-remake{font-weight:700}#game[data-phase="review"] #main-action:not(:disabled){background:#edf2e7;color:#456a58;box-shadow:none}#more-menu>.secondary{min-height:48px}
@media(prefers-reduced-motion:reduce){#home-nav button,.shop-hub-links button{transition:none}.combo,.review,.tip-float{animation:none!important}}

/* Put the completed order reaction in its existing order slot, clear of the stage. */

#shop-hub #next-target small{max-width:none;width:auto;text-align:left;white-space:normal}#shop-hub #next-target b{max-width:none;width:auto}

/* Optional sensor control stays below the cup; no overlay or new screen. */
#motion-tools{position:absolute;left:12px;right:12px;bottom:10px;display:flex;align-items:center;justify-content:center;gap:9px;pointer-events:auto;text-align:left;z-index:3}
#motion-tools button{flex:none;min-height:44px;padding:7px 12px;border:1px solid #9cb79f;border-radius:14px;background:#fffaf0;color:#286348;font-family:inherit;font-size:12px;font-weight:600;touch-action:manipulation}
#motion-tools button[aria-pressed="true"]{background:#e4eee1;border-color:#74a282}
#motion-tools small{font-size:11px;line-height:1.45;color:#526a53;max-width:160px;background:#fff7e6dc;border-radius:8px;padding:4px 6px}
.motion-setting-note{font-size:12px;line-height:1.55;color:#637563;margin:0 8px 14px}
#motion-tools button:focus-visible{outline:3px solid #bb872e;outline-offset:2px}
@media(max-width:350px){#motion-tools{gap:6px;left:8px;right:8px}#motion-tools button{padding-inline:8px}#motion-tools small{max-width:133px}}

/* Recipe studio: one cup stays in sight while the existing choices are edited. */
#signature-page{text-align:left;padding:38px 22px 24px;max-width:430px;width:calc(100% - 24px)}#signature-page h2{margin:5px 0 12px}.signature-eyebrow{font-size:11px;color:#839079}.signature-preview{position:sticky;top:-38px;z-index:2;display:grid;grid-template-columns:91px 1fr;align-items:center;gap:12px;background:#f4eedb;border:1px solid #dddbc6;border-radius:18px;padding:9px 13px;box-shadow:0 6px 15px #5a634c0a}.signature-preview svg{width:88px;height:120px;display:block}.signature-preview b{display:block;font-size:20px;line-height:1.3;overflow-wrap:anywhere;margin:4px 0}.signature-preview strong{display:block;font-size:12px;color:#a17635}.signature-preview p{font-size:11px;line-height:1.5;margin-bottom:0}.signature-name-label{display:block;margin:16px 0 10px;font-size:13px}.signature-name-label input{display:block;width:100%;margin-top:7px;border:1px solid #bbcbb6;background:#fffdf4;padding:12px;border-radius:12px;font:inherit;box-sizing:border-box;min-height:44px}.signature-choices{display:flex;flex-wrap:wrap;gap:7px}#signature-options fieldset{border:0;padding:8px 0;margin:0}#signature-options legend{font-size:12px;color:#7d856b}.signature-choices button,#signature-gifts button{min-height:44px;border:1px solid #dbddc9;border-radius:13px;padding:8px 11px;background:#f8f7e9;color:#4e6b55;font:inherit;font-size:13px;transition:background .15s,border-color .15s}.signature-choices [aria-pressed=true]{background:#e0ecdc;border-color:#71947b;color:#265c46}#signature-page>p,#signature-taste-note{font-size:12px;line-height:1.6;color:#73806a}#signature-feedback article{padding:10px 12px;border-left:3px solid #bdceac;margin:8px 0;background:#f3f5e9}#signature-feedback b{font-size:12px}#signature-feedback p{font-size:12px;line-height:1.5;margin:5px 0}#signature-publish{margin-top:10px;width:100%}.signature-milestone{border-top:1px solid #d9dfca;margin-top:20px;padding-top:15px}.signature-milestone b{font-size:14px}.signature-milestone p,#signature-page details{font-size:12px;line-height:1.7}#signature-gifts{display:flex;gap:8px;flex-wrap:wrap}#signature-lock-note{margin:4px 0 12px}#signature-page button:disabled{opacity:.48}@media(prefers-reduced-motion:reduce){.signature-choices button{transition:none}}

/* Both order cards stay readable; the saved first drink never covers the working cup. */
#double-orders{width:100%;margin-top:5px}#double-orders>small{display:block;font-size:10px;color:#7d826b;margin:3px 0}#double-cards{display:grid;grid-template-columns:1fr 1fr;gap:6px}#double-cards button{min-height:44px;border:1px solid #d7ddc7;border-radius:10px;background:#f6f4e7;color:#5b705b;text-align:left;padding:5px 8px}#double-cards button.current{background:#e0ecdc;border-color:#81a38b}#double-cards b{display:block;font-size:12px}#double-cards span{display:block;font-size:10px;margin-top:3px}#stored-cup{position:absolute;left:12px;bottom:12px;z-index:6;pointer-events:none;width:82px;background:#f7f2dfdd;border:1px solid #c8cfb5;border-radius:12px;padding:5px;text-align:center}#stored-cup svg{height:66px;width:56px}#stored-cup small{font-size:9px;display:block;color:#436e54;line-height:1.4}@media(max-height:710px){#stored-cup{width:65px;bottom:6px;left:6px}#stored-cup svg{height:47px}#double-cards b{font-size:11px}#double-cards span{font-size:9px}}

#recommend-page{max-width:420px;padding:38px 22px 24px}#recommend-page>small{font-size:11px;color:#7a876b}#recommend-request{font-size:15px;line-height:1.8;text-align:left}#recommend-choices{display:grid;gap:8px}#recommend-choices button{min-height:85px;padding:9px 12px;display:grid;grid-template-columns:50px 1fr;gap:3px 10px;text-align:left;align-items:center;background:#f6f1e0;border:1px solid #d3dcc4;border-radius:15px;color:#42654e}#recommend-choices button>div{grid-row:1/4}#recommend-choices svg{width:48px;height:64px}#recommend-choices b{font-size:15px}#recommend-choices span{font-size:12px}#recommend-choices small{font-size:11px;color:#8c825e}#recommend-response{font-size:12px;color:#697d58;line-height:1.7;min-height:40px}

#game[data-mode="business"][data-order-kind="double"],#game[data-mode="business"][data-order-kind="double"].two-material-rows{grid-template-rows:44px 147px minmax(0,1fr) clamp(52px,8vh,68px)}#game[data-order-kind="double"] #order-line{font-size:14px;line-height:18px}#game[data-order-kind="double"] #order-details{display:none}#game[data-order-kind="double"] .order-drink{display:none}#game[data-order-kind="double"] #double-cards b{font-size:12px}#game[data-order-kind="double"] #double-cards span{font-size:10px}#game[data-order-kind="double"] #stored-cup{bottom:64px;left:8px}#game[data-order-kind="double"] #patience-label{bottom:9px}#game[data-order-kind="double"] .patience{bottom:12px}@media(max-height:660px){#game[data-mode="business"][data-order-kind="double"],#game[data-mode="business"][data-order-kind="double"].two-material-rows{grid-template-rows:44px 137px minmax(0,1fr) 54px}#double-orders>small{margin:1px 0}#game[data-order-kind="double"] #stored-cup{bottom:64px}}

#game[data-order-kind="double"] #stored-cup{top:12px;bottom:auto;left:8px}#game[data-mode="decor"] #tea-dock{display:none}#recommend-page>small:first-of-type{display:block;padding-left:30px;font-size:10px}

/* Small customer dialogue; the scene and the customer stay in focus. */
#game[data-mode="business"] .scene-wrap>.review{top:30%;right:5%;width:auto;max-width:min(240px,80%);padding:9px 12px;border:1px solid #e2d6b3;border-radius:14px;background:#fffdf2;box-shadow:0 3px 10px #54482a14;gap:1px;pointer-events:none;overflow-wrap:anywhere}
#game[data-mode="business"] .scene-wrap>.review:before{content:"";position:absolute;top:-7px;left:24px;width:12px;height:12px;background:#fffdf2;border-top:1px solid #e2d6b3;border-left:1px solid #e2d6b3;transform:rotate(45deg)}
#game[data-mode="business"] .scene-wrap>.review #stars{font-size:16px;line-height:20px;letter-spacing:1px}
#game[data-mode="business"] .scene-wrap>.review #review-text{font-size:12px;font-weight:500;line-height:1.55;margin-top:2px}
#game[data-mode="business"] .scene-wrap>.review #review-money{font-size:11px;font-weight:400;line-height:17px;margin-top:3px}
#game[data-mode="business"] .scene-wrap>.review #review-reasons{font-size:10px;line-height:1.45;text-align:center;margin-top:3px}
#game[data-mode="business"] .scene-wrap>.review small:empty{display:none}
#game[data-mode="business"] .scene-wrap>.review #tip-pop{font-size:11px;font-weight:500;line-height:16px;margin:0}
#review-cups{font-size:10px;line-height:16px;color:#947846;text-align:center}
