:root{--ink:#37483c;--mint:#559b85;--deep:#327867;--paper:#fff9e8;--yellow:#ffcf6b;--outline:#4d6a56;--hud:45px;--bottom:82px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:#2c6457;color:var(--ink);font:600 16px 'PingFang HK','Microsoft JhengHei',system-ui,sans-serif;user-select:none;-webkit-user-select:none}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible{outline:3px solid #dd9b35;outline-offset:4px}button svg{pointer-events:none}button{transition:transform .12s,background .15s}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.game{width:100%;max-width:1440px;height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);background:#faf5df;overflow:hidden}.hud{height:var(--hud);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#4e9b86;color:#fff9df;z-index:5;border-bottom:3px solid #3d7e6d}.logo{font-size:16px;letter-spacing:2px;display:flex;align-items:center;gap:8px}.logo>span{width:27px;height:27px;background:#ffe09b;color:#4a8065;border-radius:8px;border:2px solid #386e5b;box-shadow:0 2px 0 #386e5b;display:grid;place-items:center;font-size:20px;line-height:1}.hud-right{display:flex;align-items:center;gap:9px}.level{font:700 14px ui-monospace,monospace;opacity:.8;margin-right:5px}.circle-button{display:grid;place-items:center;background:#68ae98;border:2px solid #3c7d6a;border-radius:50%;width:29px;height:29px;color:#fff8db;padding:4px}.circle-button svg{width:17px;height:17px}.gameboard{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(120px,1fr) clamp(110px,19vh,158px) clamp(145px,24vh,195px)}.scene{position:relative;overflow:hidden;background:#d5eac8;isolation:isolate}.shop-background{position:absolute;inset:0}.shop-background svg{width:100%;height:100%;display:block}.character{position:absolute;bottom:-10px;left:50%;height:94%;width:52%;transform:translateX(-50%);max-width:310px;z-index:1}.character>svg{height:100%;width:100%;overflow:visible}.character .blink{transform-origin:center 47%;animation:blink 5.5s infinite}.character .body-group{transform-origin:center bottom;animation:breathe 4s ease-in-out infinite}.character .happy-mouth{display:none}.character.cheerful .happy-mouth{display:block}.character.cheerful .neutral-mouth{display:none}.speech{position:absolute;z-index:3;left:17px;bottom:13px;width:calc(52% - 20px);max-width:320px;background:#fffdf0;border:2px solid #6c8b69;border-radius:15px 15px 5px 15px;padding:9px 12px;box-shadow:0 3px 0 #75966a44}.speech:after{content:'';position:absolute;right:-9px;bottom:12px;width:14px;height:14px;background:#fffdf0;border-top:2px solid #6c8b69;border-right:2px solid #6c8b69;transform:rotate(45deg)}.speech>div{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:9px;color:#85a076}.speech button{color:#629478;border:0;background:transparent;padding:0 0 0 8px;display:grid;place-items:center}.speech button svg{width:15px;height:15px}.speech p{font-size:15px;line-height:1.5;margin:3px 0 0;font-weight:700}.speech.speaking{border-color:#5f9b68}.speech.speaking>div>span{animation:pulse .75s infinite}.handover{position:absolute;right:3.5%;bottom:4px;width:132px;height:100px;z-index:4;border-radius:45%;cursor:pointer;touch-action:manipulation;display:none}.handover.visible{display:block}.palm{position:absolute;width:100%;bottom:0;right:0;filter:drop-shadow(0 3px 0 #5b58331a)}.hand-label{position:absolute;top:3px;right:4px;background:#fff9dd;border:1px solid #d3b171;border-radius:20px;padding:4px 9px;white-space:nowrap;font-size:10px;color:#ac8244}.hand-label span{color:#d29b43;font-size:13px}.handover.drop-ready{background:#fff9ad55;outline:3px dashed #e7ab42;outline-offset:-2px;animation:target-glow 1s infinite}.handover .delivered-money{position:absolute;left:7px;bottom:28px;right:23px;height:30px}.delivered-piece{position:absolute;width:39px;height:27px;border:0;background:transparent;padding:0;filter:drop-shadow(1px 2px 0 #855e3d44);touch-action:manipulation}.delivered-piece svg{width:100%;height:100%;overflow:visible}.customer-payment{position:absolute;z-index:5;right:20px;bottom:34px;width:116px;height:61px;border:0;background:transparent;padding:0;filter:drop-shadow(0 4px 0 #6c543640);transform:rotate(-9deg);touch-action:none;animation:offer 2.8s ease-in-out infinite}.customer-payment svg{width:100%;height:100%;pointer-events:none}.customer-payment.selected{outline:3px dashed #d29f45;border-radius:8px}.happy{position:absolute;top:15%;left:67%;z-index:3;color:#ffb34c;font-size:45px;opacity:0;pointer-events:none}.happy.pop{animation:celebrate .8s}.counter{position:relative;z-index:4;background:#f4d7a5;border-top:4px solid #ad8153;border-bottom:7px solid #bd8e5b;box-shadow:0 4px 0 #c89b6733;display:flex;justify-content:center;align-items:center;gap:70px;background-image:repeating-linear-gradient(0deg,transparent 0 32px,#e5bd8522 32px 34px)}.counter-edge{position:absolute;inset:0 0 auto;height:7px;background:#ffefd1;border-bottom:2px solid #dfb780}.scanner{position:relative;z-index:3;width:150px;height:126px;max-height:90%;border:3px solid #45665c;border-bottom:7px solid #35564f;background:#7ec4b2;border-radius:15px 15px 12px 12px;box-shadow:0 6px 0 #9f794f35;display:flex;flex-direction:column;align-items:center;padding:6px;gap:5px;touch-action:manipulation;overflow:visible}.till-screen{width:100%;background:#294b45;border:2px solid #436f63;border-radius:7px;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;color:#f4efae;box-shadow:inset 0 2px 0 #1b3c3633;min-height:31px}.till-screen small{font-size:8px;letter-spacing:1px}.till-screen b{font:700 24px ui-monospace,monospace;letter-spacing:1px}.scanner-bed{position:relative;flex:1;width:85%;min-height:23px;background:#344c48;border:3px solid #d8eee1;border-radius:8px;display:flex;justify-content:center;align-items:center;gap:7px;box-shadow:inset 0 2px 0 #152f2b;overflow:hidden}.scanner-bed>i{height:75%;width:3px;background:#61776f;transform:skew(-12deg)}.scanner-bed>i:nth-child(2){width:5px}.scan-line{position:absolute;top:50%;height:3px;background:#f98567;width:95%;box-shadow:0 0 8px #ffb095;transform:rotate(-6deg)}.scanner-foot{display:flex;align-items:center;justify-content:space-between;width:85%;height:6px}.scanner-foot>i{width:6px;height:6px;border-radius:50%;background:#e7e9a4;border:1px solid #4f8070}.scanner-foot small{font:600 6px system-ui;letter-spacing:2px;color:#4b7a68}.scanner.drop-ready{outline:3px dashed #fff39a;outline-offset:4px;animation:target-glow 1s infinite}.scanner.scanning{animation:scan-bump .25s}.scanning .scan-line{background:#b7ff9c;box-shadow:0 0 12px #c6ffad;height:5px}.scanning #scannerLed{background:#baff83}.scan-zone-mark{position:absolute;bottom:9px;left:calc(50% - 145px);width:160px;height:7px;border-radius:50%;background:#c49a6c3d;pointer-events:none}.shopping-bag{position:relative;height:112px;width:98px;max-height:89%;z-index:2;transform:rotate(3deg)}.shopping-bag>svg{width:100%;height:100%;position:relative;z-index:2}.shopping-bag>span{position:absolute;right:-12px;bottom:4px;border:2px solid #b59765;background:#fff4d8;color:#97784c;border-radius:12px;font:700 10px ui-monospace,monospace;padding:3px 6px;z-index:3}.shopping-bag.bounce{animation:bag-bounce .32s}.bag-contents{position:absolute;top:2px;left:10%;right:10%;height:36%;display:flex;align-items:center;z-index:1}.bag-contents svg{width:40%;height:100%;transform:rotate(-15deg);margin-right:-8px}.workbench{background:#f1efdc;padding:12px 17px 13px;min-height:0;display:flex;flex-direction:column;gap:8px;z-index:3}.bench-title{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-shrink:0}.bench-title>b{font-size:12px;letter-spacing:1px;color:#687e60}.bench-title>span{font-size:10px;color:#879779;white-space:nowrap}.conveyor{position:relative;flex:1;min-height:0;background:#a2b2a1;border:3px solid #688875;border-bottom:8px solid #5b7d69;border-radius:12px;box-shadow:inset 0 4px 0 #8a9b8a;overflow:visible;display:flex;justify-content:center;align-items:center}.belt-marks{position:absolute;inset:2px;border-radius:8px;overflow:hidden;background:repeating-linear-gradient(90deg,transparent 0 35px,#8d9f8d 35px 37px);opacity:.5;pointer-events:none}.belt-end{position:absolute;right:9px;bottom:8px;color:#6f8874;font-size:14px;letter-spacing:2px;pointer-events:none}.products{display:flex;justify-content:center;align-items:center;gap:26px;width:100%;height:100%;position:relative;z-index:2;padding:4px 30px}.product{position:relative;background:transparent;border:0;padding:0 8px;min-width:70px;height:100%;max-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:grab;touch-action:none;filter:drop-shadow(0 4px 0 #485b3e22);transition:transform .18s,opacity .18s}.product>svg{height:76%;width:65px;overflow:visible}.product[disabled]{opacity:.4;filter:grayscale(.3)}.product.scanned{visibility:hidden;pointer-events:none}.product.selected{transform:translateY(-7px);filter:drop-shadow(0 0 5px #fff59e)}.price-tag{background:#fff9dc;color:#776543;border:1.5px solid #897b57;border-radius:5px;padding:3px 7px;font-size:10px;white-space:nowrap;display:flex;align-items:center;gap:7px;transform:rotate(-3deg);box-shadow:0 2px 0 #67795b33}.price-tag b{font-size:14px;color:#b27a34}.price-tag:before{content:'';width:16px;height:11px;background:repeating-linear-gradient(90deg,#837555 0 1px,transparent 1px 2px,#837555 2px 4px,transparent 4px 5px)}.drawer{flex:1;min-height:0;background:#9ab3a0;border:3px solid #426d5b;border-bottom-width:6px;border-radius:12px;display:flex;flex-direction:column;padding:7px 8px 0;gap:4px;box-shadow:inset 0 3px 0 #789a83,0 3px 0 #cdd4b9}.drawer-inner{display:grid;flex:1;min-height:0;grid-template-columns:repeat(4,1fr);grid-template-rows:1fr 1fr;gap:6px 8px}.cash-cell{position:relative;display:grid;place-items:center;min-height:0;min-width:0;background:#657f6944;border:2px solid #77917b;border-radius:7px;box-shadow:inset 0 2px 0 #4b675333}.cash-piece{height:100%;width:100%;max-width:99px;border:0;background:transparent;padding:3px 7px;display:grid;place-items:center;cursor:grab;touch-action:none}.cash-piece>svg{width:100%;height:100%;max-height:56px;pointer-events:none;overflow:visible;filter:drop-shadow(0 3px 0 #485b3e33)}.cash-piece.selected>svg{filter:drop-shadow(0 0 4px #fff192);transform:translateY(-3px)}.drawer-front{flex-shrink:0;height:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:7px;color:#48725b;letter-spacing:1px}.drawer-front>i{width:5px;height:5px;border-radius:50%;background:#456c54}.drawer.drop-ready{outline:3px dashed #d4a247;outline-offset:3px;animation:target-glow 1s infinite}.conversation{height:var(--bottom);flex-shrink:0;background:#fff9e9;border-top:2px solid #d9ddc3;padding:5px 14px 10px;z-index:6;box-shadow:0 -3px 0 #ced6bd22}.conversation>p{font-size:10px;line-height:1.5;margin:0 0 5px;text-align:center;color:#859579;height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation>p.error{color:#c4814e}.reply-controls{display:flex;align-items:center;gap:8px;height:43px}.tool-button{height:37px;width:37px;background:#f1f1de;color:#849574;border:2px solid #d6ddc1;border-radius:10px;display:grid;place-items:center;padding:7px;flex-shrink:0}.tool-button svg{width:20px;height:20px}.mic-button{background:#589e87;border:2px solid #3c7e68;border-bottom-width:4px;border-radius:12px;color:#fff9d8;width:49px;height:43px;display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;position:relative}.mic-button svg{width:20px;height:20px;display:block}.mic-light{position:absolute;right:5px;top:5px;width:5px;height:5px;border-radius:50%;background:#cee3ab}.mic-button.listening{background:#e6ae5c;border-color:#c38840}.mic-button.listening .mic-light{background:#fff8c9;animation:pulse .7s infinite}.reply-button{flex:1;min-width:0;height:43px;border:2px solid #d7a452;border-bottom-width:4px;border-radius:11px;background:#ffda87;color:#836539;padding:6px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:800}.reply-button span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reply-button.passive{background:#edf0de;border-color:#c6d3b7;color:#829676}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;display:grid;place-items:center;filter:drop-shadow(0 10px 5px #21392444);will-change:transform;transform:translate(-50%,-50%) rotate(-8deg);width:88px;height:105px;opacity:.96}.drag-ghost.money-ghost{width:116px;height:70px}.drag-ghost>svg{width:100%;height:100%;overflow:visible}.dragging-source{opacity:.2!important}.flight{position:fixed;z-index:9998;pointer-events:none;filter:drop-shadow(0 3px 2px #2d46332c)}.flight>svg{width:100%;height:100%;overflow:visible}dialog{width:calc(100% - 32px);max-width:400px;max-height:calc(100dvh - 40px);overflow:auto;border:3px solid #658c6d;border-bottom-width:7px;border-radius:19px;background:#fff9e8;color:var(--ink);padding:22px;box-shadow:0 12px 0 #274f3d66}dialog::backdrop{background:#2c614c99;backdrop-filter:blur(3px)}.modal-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal-title h2{font-size:20px;margin:0}.close{width:30px;height:30px;border:2px solid #cbd5b6;border-radius:50%;background:#f0eed7;font-size:22px;line-height:1;color:#7b8f6a}dialog label{display:block;margin:13px 0 7px;font-size:12px;color:#7f8f6d}dialog select,dialog input[type=text]{border:2px solid #d2d9bc;border-radius:9px;background:#fffdf3;color:#57724d;padding:10px;width:100%;font-size:12px}dialog input[type=range]{width:100%;accent-color:#619d70}.check{display:flex;align-items:center;gap:7px;line-height:1.6}.note{font-size:10px;color:#9aa384;line-height:1.8}.secondary{width:100%;border:2px solid #b9cc9e;border-bottom:4px solid #8aa370;border-radius:10px;background:#dce9bf;color:#647c49;font-size:13px;padding:10px;margin-top:13px;font-weight:700}.finished{text-align:center;padding:27px}.finish-badge{width:65px;height:65px;display:grid;place-items:center;font-size:35px;background:#ffe2a1;color:#b88b42;border:3px solid #d4ae65;border-radius:50%;margin:0 auto 18px}.finished h2{font-size:25px}.finished p{font-size:13px;color:#96a080}.product svg,.cash-piece svg{pointer-events:none}@keyframes blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.08)}}@keyframes breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}@keyframes offer{0%,100%{transform:rotate(-9deg) translateY(0)}50%{transform:rotate(-7deg) translateY(-5px)}}@keyframes pulse{50%{opacity:.35}}@keyframes scan-bump{50%{transform:translateY(2px)}}@keyframes bag-bounce{50%{transform:rotate(0deg) translateY(-6px)}}@keyframes target-glow{50%{outline-color:#ffed9b}}@keyframes celebrate{0%{opacity:0;transform:scale(.3) rotate(-10deg)}40%{opacity:1;transform:scale(1.2) rotate(10deg)}100%{opacity:0;transform:scale(.9) translateY(-25px)}}
@media(min-width:760px){:root{--hud:52px;--bottom:85px}.hud{padding:0 28px}.gameboard{grid-template-columns:1.3fr 1fr;grid-template-rows:minmax(0,1fr) 210px}.scene{grid-column:1;grid-row:1/3;border-right:4px solid #7ba281}.counter{grid-column:2;grid-row:1;gap:55px;align-items:center;border-top:0;border-bottom-width:5px}.scanner{width:175px;height:155px;max-height:48%;padding:10px;gap:7px}.scanner-bed{min-height:35px}.till-screen b{font-size:29px}.till-screen{min-height:39px}.shopping-bag{height:145px;width:115px;max-height:45%}.workbench{grid-column:2;grid-row:2;padding:14px 21px 16px;border-top:3px solid #557958}.bench-title>b{font-size:13px}.bench-title>span{font-size:11px}.character{height:76%;width:83%;max-width:460px;bottom:-25px;left:54%}.speech{left:22px;bottom:auto;top:23px;width:calc(100% - 44px);max-width:none;padding:14px 18px;border-radius:15px 15px 15px 5px}.speech p{font-size:20px}.speech:after{top:auto;bottom:-9px;right:auto;left:32px;border:0;border-left:2px solid #6c8b69;border-bottom:2px solid #6c8b69}.speech>div{font-size:10px}.speech button svg{width:19px;height:19px}.handover{width:190px;height:140px;bottom:18px;right:3%}.hand-label{font-size:12px;padding:5px 12px;top:12px}.customer-payment{width:155px;height:85px;right:30px;bottom:67px}.delivered-money{bottom:35px!important;left:15px!important;right:30px!important}.delivered-piece{width:49px;height:36px}.conveyor{border-bottom-width:10px}.products{gap:34px}.product>svg{height:80%;width:72px}.price-tag{font-size:11px}.conversation{display:flex;align-items:center;gap:20px;padding:12px 24px}.conversation>p{height:auto;flex:1;font-size:12px;margin:0;text-align:left}.reply-controls{width:50%;max-width:530px;gap:10px;height:46px}.reply-button{font-size:14px;height:46px}.mic-button{height:46px;width:54px}.tool-button{width:42px;height:42px}.scan-zone-mark{left:calc(50% - 165px);bottom:calc(50% - 94px);width:170px}.drawer-inner{gap:8px 11px}.cash-piece{padding:3px 10px}.cash-piece>svg{max-height:61px}.drawer-front{height:18px;font-size:9px}.happy{left:72%;top:30%}}
@media(max-height:730px) and (max-width:759px){:root{--hud:40px;--bottom:75px}.gameboard{grid-template-rows:minmax(105px,1fr) 116px 151px}.hud{padding:0 13px}.logo{font-size:14px}.logo>span{width:25px;height:25px;font-size:18px}.speech{left:12px;bottom:9px;padding:7px 10px;width:47%;border-radius:13px 13px 4px 13px}.speech p{font-size:13px}.speech>div{font-size:8px}.character{width:50%;height:100%;left:55%;bottom:-16px}.scanner{height:103px;width:131px;padding:5px;gap:3px;border-bottom-width:5px;border-radius:12px}.till-screen{min-height:27px;padding:2px 6px}.till-screen b{font-size:21px}.scanner-bed{border-width:2px}.shopping-bag{height:96px;width:83px}.counter{gap:61px}.workbench{padding:9px 13px 10px;gap:6px}.bench-title>b{font-size:11px}.bench-title>span{font-size:9px}.products{gap:19px;padding-left:20px;padding-right:20px}.product{padding:0 5px;min-width:65px}.product>svg{height:72%;width:54px}.price-tag{font-size:9px;padding:2px 4px;gap:4px}.price-tag b{font-size:12px}.price-tag:before{width:13px;height:9px}.drawer{padding:4px 6px 0;border-bottom-width:5px}.drawer-inner{gap:4px 6px}.cash-cell{border-width:1px}.cash-piece{padding:2px 5px}.cash-piece>svg{max-height:42px}.drawer-front{height:11px;font-size:6px}.handover{width:117px;height:88px;right:2%;bottom:1px}.hand-label{font-size:8px;padding:3px 7px;top:0}.customer-payment{width:100px;height:51px;right:14px;bottom:28px}.delivered-piece{width:31px;height:24px}.delivered-money{left:7px!important;bottom:23px!important}.conversation{padding:4px 12px 7px}.conversation>p{font-size:9px;margin-bottom:3px;height:15px}.reply-controls{height:40px}.reply-button{height:40px;font-size:11px}.mic-button{height:40px;width:44px}.tool-button{height:35px;width:35px}.scan-zone-mark{left:calc(50% - 140px);width:140px}.happy{font-size:33px}}
@media(max-height:600px) and (orientation:portrait){.gameboard{grid-template-rows:minmax(92px,1fr) 105px 138px}.speech p{font-size:12px;line-height:1.4}.speech{padding:6px 9px;left:9px;bottom:8px}.scanner{height:94px;width:121px}.shopping-bag{height:84px;width:73px}.counter{gap:60px}.character{height:115%;bottom:-24px}.bench-title>b{font-size:10px}.bench-title>span{font-size:8px}.drawer-front{height:9px}.cash-piece>svg{max-height:36px}.price-tag{font-size:8px}.price-tag b{font-size:11px}.price-tag:before{display:none}.products{gap:13px}.product>svg{width:47px}.product{min-width:60px}.handover{width:107px;height:79px}.customer-payment{width:88px;height:47px;bottom:25px}.conversation>p{font-size:8px}.reply-button{font-size:10px}.character{left:57%}}
@media(orientation:landscape) and (max-height:550px){:root{--hud:36px;--bottom:61px}.hud{padding:0 15px}.logo{font-size:13px}.logo>span{width:23px;height:23px;font-size:17px}.circle-button{width:26px;height:26px}.gameboard{grid-template-columns:1fr 1.12fr;grid-template-rows:minmax(0,1fr) 122px}.scene{grid-column:1;grid-row:1/3;border-right:3px solid #89ab86}.character{height:93%;width:66%;left:51%;bottom:-18px}.speech{left:10px;top:10px;bottom:auto;width:calc(100% - 20px);padding:7px 11px;max-width:none}.speech p{font-size:13px;line-height:1.4;margin-top:0}.speech>div{font-size:8px}.speech:after{top:auto;right:25px;bottom:-7px;transform:rotate(135deg);width:11px;height:11px}.counter{grid-column:2;grid-row:1;border-top:0;gap:52px}.scanner{height:107px;width:128px;max-height:90%;gap:3px;padding:5px}.till-screen{min-height:26px;padding:2px 5px}.till-screen b{font-size:21px}.shopping-bag{width:76px;height:95px;max-height:87%}.workbench{grid-column:2;grid-row:2;padding:6px 12px 8px;gap:4px}.bench-title>b{font-size:9px}.bench-title>span{font-size:8px}.product>svg{width:39px;height:70%}.product{min-width:60px}.products{gap:18px;padding:2px 20px}.price-tag{font-size:8px;padding:1px 5px;gap:4px}.price-tag b{font-size:11px}.price-tag:before{width:10px;height:8px}.drawer{border-width:2px;border-bottom-width:4px;padding:4px 5px 0}.drawer-inner{grid-template-columns:repeat(8,1fr);grid-template-rows:1fr;gap:4px}.cash-cell{border-width:1px}.cash-piece{padding:3px}.cash-piece>svg{max-height:47px}.drawer-front{height:9px;font-size:5px}.handover{width:120px;height:89px;right:3%;bottom:5px}.hand-label{top:0;font-size:8px;padding:3px 7px}.customer-payment{right:14px;bottom:33px;width:98px;height:54px}.delivered-piece{width:33px;height:26px}.delivered-money{bottom:23px!important}.conversation{padding:6px 13px;display:flex;gap:15px;align-items:center}.conversation>p{flex:1;font-size:9px;height:auto;text-align:left;margin:0}.reply-controls{width:51%;height:38px;gap:6px}.mic-button{height:37px;width:39px}.tool-button{height:33px;width:33px}.reply-button{height:37px;font-size:10px;padding:4px 9px}.scan-zone-mark{left:calc(50% - 130px);bottom:5px;width:130px}.happy{top:25%;font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.drawer.awaiting .cash-piece{pointer-events:none;opacity:.65}.palm{pointer-events:none}.handover .hand-label{pointer-events:none}
@media(min-width:1000px) and (min-height:600px){.counter{gap:65px}.scanner{width:225px;height:196px;max-height:65%;padding:12px;gap:9px}.till-screen{min-height:48px;padding:6px 11px}.till-screen b{font-size:35px}.till-screen small{font-size:10px}.scanner-bed{border-width:4px}.scanner-bed>i{height:80%;width:5px}.scan-line{height:4px}.scanner-foot{height:9px}.scanner-foot small{font-size:8px}.shopping-bag{width:155px;height:180px;max-height:60%}.scan-zone-mark{left:calc(50% - 200px);width:220px;bottom:calc(50% - 116px)}}
/* Keep the microphone at the horizontal centre of the whole game. */
.conversation{display:block;padding:5px 14px 9px}.conversation>p{height:16px;text-align:center;margin:0 0 5px;width:100%;font-size:10px}.reply-controls{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);align-items:center;gap:10px;width:100%;max-width:none;height:46px}.mic-button{grid-column:2;width:52px;height:46px;justify-self:center}.tool-button{grid-column:1;justify-self:start}.reply-button{grid-column:3;width:100%;font-size:11px;height:43px;padding:5px 9px}.mic-button:disabled,.reply-button:disabled{opacity:.55}.character[aria-disabled=false]{cursor:pointer;touch-action:manipulation}.character.drop-ready>svg{filter:drop-shadow(0 0 8px #fff59b)}.character.drop-ready:after{content:'';position:absolute;inset:6% 8% 3%;border:3px dashed #e1b25e;border-radius:45% 45% 30% 30%;pointer-events:none;background:#fff3b51c}.speech button:disabled{opacity:.4}
@media(min-width:760px){.conversation{padding:7px 24px 10px}.conversation>p{font-size:11px;height:17px}.reply-button{font-size:13px}.reply-controls{height:46px}}
@media(max-height:730px) and (max-width:759px){.conversation{padding:4px 12px 7px}.conversation>p{font-size:9px;height:15px;margin-bottom:3px}.reply-controls{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);height:41px;gap:8px}.mic-button{width:46px;height:41px}.reply-button{height:40px;font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.conversation{display:block;padding:3px 13px 5px}.conversation>p{font-size:8px;height:12px;margin-bottom:2px}.reply-controls{height:36px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:9px}.mic-button{height:36px;width:42px}.reply-button{height:35px;font-size:10px;max-width:330px}.tool-button{width:32px;height:32px;justify-self:end;margin-right:10px}}
.octopus-reader{position:relative;z-index:3;flex-shrink:0;width:98px;height:117px;border:3px solid #4e6361;border-bottom-width:6px;border-radius:12px;background:#6b8788;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;box-shadow:0 5px 0 #a17f5138}.reader-label{font-size:10px;color:#f8efd7;letter-spacing:2px}.reader-screen{font:700 18px ui-monospace,monospace;background:#263e42;color:#def1bd;width:90%;border:2px solid #a7c4b8;border-radius:4px;padding:3px}.reader-pad{width:63px;height:42px;display:flex;align-items:center;justify-content:center;gap:4px;border:2px solid #a7c2bb;border-radius:9px;background:#dce4ce;position:relative}.reader-pad i{border:2px solid #659c8d;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;width:9px;height:14px;transform:rotate(-8deg)}.reader-pad i:nth-child(2){height:22px;width:12px}.reader-pad i:nth-child(3){height:29px;width:15px}.reader-message{font-size:8px;color:#eff0d2}.octopus-reader.drop-ready{outline:3px dashed #ffeda3;outline-offset:4px;animation:target-glow 1s infinite}.octopus-reader.paid{background:#70a68c}.octopus-reader.paid .reader-screen{color:#c5ff9f}.app-state-card .workbench{background:#e3e9d6}.card-instructions{height:100%;display:flex;align-items:center;justify-content:center;gap:14px;border:2px dashed #a8bf9c;border-radius:12px;color:#7f9976;font-size:12px;background:#edf0df}.card-instructions svg{height:49px;width:76px;transform:rotate(-8deg)}
@media(min-width:760px){.octopus-reader{width:115px;height:145px;max-height:55%;padding:8px}.reader-pad{width:79px;height:56px}.reader-screen{font-size:24px}.reader-label{font-size:12px}.reader-message{font-size:10px}}
@media(min-width:1000px) and (min-height:600px){.octopus-reader{width:155px;height:180px;max-height:65%;padding:12px}.reader-screen{font-size:29px}.reader-pad{height:72px;width:105px}.reader-label{font-size:14px}.reader-message{font-size:11px}}
@media(max-height:730px) and (max-width:759px){.octopus-reader{width:83px;height:97px;padding:4px;gap:2px}.reader-label{font-size:8px}.reader-screen{font-size:15px;padding:2px}.reader-pad{height:34px;width:55px}.reader-message{font-size:7px}.card-instructions{font-size:11px}}
@media(max-height:600px) and (orientation:portrait){.octopus-reader{width:75px;height:86px}.reader-screen{font-size:14px;padding:1px}.reader-pad{width:51px;height:29px}.reader-label{font-size:7px}.reader-pad i:nth-child(3){height:23px}.card-instructions{font-size:10px;gap:8px}}
@media(orientation:landscape) and (max-height:550px){.octopus-reader{width:76px;height:95px;max-height:90%;padding:4px}.reader-label{font-size:8px}.reader-screen{font-size:15px;padding:2px}.reader-pad{width:51px;height:31px}.reader-message{font-size:7px}.card-instructions{font-size:10px}.card-instructions svg{height:36px;width:56px}}
.card-instructions{flex:1;min-height:0;height:auto;line-height:1.8}
/* The hand now belongs to the character artwork. */
.offering-arm,.angry-expression{display:none}.character.offering .offering-arm{display:block}.character.offering .resting-arm{display:none}.character.angry .angry-expression,.character.impatient .angry-expression{display:block}.character.angry .neutral-mouth,.character.angry .happy-mouth,.character.impatient .neutral-mouth{display:none}.handover{background:none!important;outline:0!important;animation:none!important;pointer-events:none;height:42px!important;width:100px!important;border:0!important}.handover .delivered-money{inset:0!important;height:100%!important}.delivered-piece{pointer-events:auto}.revenue-hud{display:flex;gap:6px;align-items:center;background:#e5f1d1;border:1.5px solid #387a67;border-radius:8px;padding:4px 8px;color:#4d7759;white-space:nowrap}.revenue-hud small{font-size:9px}.revenue-hud b{font:800 15px ui-monospace,monospace}.patience-hud{position:absolute;z-index:4;top:11px;left:13px;display:flex;align-items:center;gap:5px;border:1px solid #c5d3b0;border-radius:20px;padding:4px 9px;background:#fff9e4df;color:#c18c68;font-size:9px}.patience-hud>span{font-size:8px;color:#8c9b78}.patience-hud>b{font-size:12px;letter-spacing:2px;font-weight:500}.character.walk-out{animation:leave-shop .8s ease-in forwards}.lost-badge{background:#edc7a1;border-color:#c49373;color:#af7555}.game[data-state=leaving] .speech{border-color:#c89576}.game[data-state=leaving] .reply-button{opacity:.55}.hud-right{gap:7px}@keyframes leave-shop{from{transform:translateX(-50%);opacity:1}to{transform:translateX(150%);opacity:0}}
@media(min-width:760px){.patience-hud{top:128px;left:23px}.revenue-hud{padding:4px 10px}.revenue-hud b{font-size:17px}}
@media(max-height:730px) and (max-width:759px){.revenue-hud{padding:3px 6px;gap:4px}.revenue-hud small{font-size:8px}.revenue-hud b{font-size:13px}.hud-right{gap:5px}.level{font-size:11px;margin-right:0}.patience-hud{top:8px;left:9px;padding:3px 7px}.patience-hud>b{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.patience-hud{top:94px;left:12px;padding:3px 6px}.revenue-hud small{font-size:8px}.revenue-hud b{font-size:13px}.revenue-hud{padding:3px 7px}}

/* One emotion at a time, including the recovery from two mistakes to success. */
#character .neutral-mouth,#character .happy-mouth,#character .angry-expression,#character .talk-mouth{display:none}
#character[data-emotion="calm"] .neutral-mouth{display:block}
#character[data-emotion="happy"] .happy-mouth{display:block}
#character[data-emotion="impatient"] .angry-expression,#character[data-emotion="angry"] .angry-expression{display:block}
#character.talking[data-emotion="calm"] .neutral-mouth,#character.talking[data-emotion="happy"] .happy-mouth{display:none}
#character.talking[data-emotion="calm"] .talk-mouth,#character.talking[data-emotion="happy"] .talk-mouth{display:block;transform-box:fill-box;transform-origin:center;animation:customer-mouth .32s ease-in-out infinite alternate}
.character .body-group{transform-box:view-box;transform-origin:125px 325px;animation:customer-idle 4.8s ease-in-out infinite}
.character.talking .body-group{animation:customer-nod 1.1s ease-in-out infinite}
.character .blink{transform-box:view-box;transform-origin:125px 140px;animation:blink 6.1s infinite}
.cat-tail{transform-box:view-box;transform-origin:180px 306px;animation:cat-tail-sway 4.4s ease-in-out infinite}
.cat-ear{transform-box:view-box;transform-origin:125px 108px;animation:cat-ear-twitch 7.2s ease-in-out infinite}.right-ear{animation-delay:1.3s}
.robot-light{animation:robot-glow 3s ease-in-out infinite}
.character[data-emotion="angry"] .body-group{animation:customer-idle 2.2s ease-in-out infinite}
@keyframes customer-idle{0%,100%{transform:translateY(0) rotate(-.35deg)}50%{transform:translateY(-3px) rotate(.35deg)}}
@keyframes customer-nod{0%,100%{transform:translateY(0) rotate(-.35deg)}50%{transform:translateY(1.4px) rotate(.5deg)}}
@keyframes customer-mouth{from{transform:scaleY(.55)}to{transform:scaleY(1)}}
@keyframes cat-tail-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}
@keyframes cat-ear-twitch{0%,78%,89%,100%{transform:rotate(0)}82%{transform:rotate(-3deg)}86%{transform:rotate(1deg)}}
@keyframes robot-glow{0%,100%{fill:#e6c577}50%{fill:#fff0b0}}

/* Clearer controls and a warmer shop finish, with the microphone centred. */
:root{--ink:#2f4d40;--deep:#2d7562;--bottom:89px}
.hud{background:linear-gradient(180deg,#529d87,#478b77);box-shadow:0 2px 0 #286d5440}.logo{gap:8px;letter-spacing:1px}.brand-icon{width:31px;height:31px;border:2px solid #fcf5d8;border-radius:9px;box-shadow:0 2px 0 #326e58;object-fit:cover}.circle-button{width:33px;height:33px;padding:6px;background:#75b39b;border-color:#367c65}.circle-button svg{width:18px;height:18px}.revenue-hud{background:#f3f3d9;color:#345c44;border-color:#3d7e63;box-shadow:0 2px 0 #336f5733}.revenue-hud small{font-weight:700}.speech{background:#fffdf0;border-color:#78956b;box-shadow:0 3px 0 #57764e26}.speech p{color:#294d3e}.speech>div{color:#698463}.speech:after{background:#fffdf0;border-color:#78956b}.bench-title>b{color:#4f7056}.bench-title>span{color:#667c5f}.price-tag{background:#fff7df;color:#5f6245;border-color:#a49a73}.price-tag b{color:#956136}.product[disabled]{opacity:.58}.workbench{background:linear-gradient(#f4f2df,#eaf0d9)}.card-instructions{color:#597959;background:#f5f4e3;border-color:#9bb28a}.scanner{box-shadow:inset 0 2px 0 #b9e3cb,0 5px 0 #aa825239}.octopus-reader{box-shadow:inset 0 2px 0 #a9c6bd,0 5px 0 #aa825239}.conversation{background:#fff9ea;border-color:#d7ddbe}.conversation>p{color:#667e5d}.reply-controls{height:48px}.mic-button{width:52px;height:48px;box-shadow:inset 0 2px 0 #92c4ac}.tool-button{width:42px;height:42px;color:#6a8567;background:#f5f3df}.reply-button{height:48px;background:#ffda82;color:#644e2b;border-color:#c99c4e;box-shadow:inset 0 2px 0 #ffeab6}.reply-button span:first-child{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;text-align:left}.reply-button>span:last-child{flex-shrink:0}.reply-button:disabled{opacity:.7}.mic-button:disabled{opacity:.55}

/* The receipt is the end-of-transaction screen; all amounts are real game totals. */
dialog.settlement-modal{width:calc(100% - 28px);max-width:408px;max-height:calc(100dvh - 28px);padding:19px 22px 21px;text-align:left;border:2px solid #65896a;border-bottom:6px solid #426a53;border-radius:22px;background:#fff9e9;box-shadow:0 10px 0 #204b3955,0 24px 60px #163f3933}
.settlement-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#7c8e6c;padding-bottom:12px;border-bottom:1px solid #dedfc3}.settlement-brand{font-size:12px;color:#527850;letter-spacing:1px;font-weight:800}.settlement-brand i{display:block;font-size:8px;font-style:normal;letter-spacing:2px;margin-top:3px;color:#91a07b}.settlement-heading>span:last-child{font:600 10px ui-monospace,monospace;white-space:nowrap}
.settlement-intro{display:flex;align-items:center;gap:16px;padding:20px 1px 17px}.guest-medallion{position:relative;width:76px;height:76px;flex:none;background:#e2ebca;border:2px solid #c0cf9e;border-radius:50%;box-shadow:0 3px 0 #cbd7b2}.receipt-guest{height:100%;width:100%;overflow:hidden;border-radius:50%}.receipt-guest>svg{width:100%;height:100%;display:block}.receipt-guest .neutral-mouth,.receipt-guest .angry-expression,.receipt-guest .talk-mouth,.receipt-guest .offering-arm{display:none}.receipt-guest .happy-mouth{display:block}.receipt-guest .body-group,.receipt-guest .blink,.receipt-guest .cat-ear,.receipt-guest .cat-tail,.receipt-guest .robot-light{animation:none}.receipt-seal{position:absolute;right:-6px;bottom:-3px;width:27px;height:27px;background:#4d9974;border:3px solid #fff9e9;border-radius:50%;display:grid;place-items:center;color:#fff9df;font-size:16px;font-weight:900}.settlement-eyebrow{font-size:10px!important;letter-spacing:2px;color:#62986d!important;font-weight:800;margin:0 0 4px!important}.settlement-intro h2{font-size:27px;line-height:1.25;margin:0 0 6px;color:#355e47;font-weight:900;letter-spacing:1px}.settlement-intro p{font-size:11px;line-height:1.55;margin:0;color:#778866}
.receipt-slip{position:relative;background:#fffef6;border:1.5px solid #d8dec4;border-radius:10px 10px 2px 2px;padding:13px 16px 12px;margin-bottom:12px;box-shadow:0 3px 0 #dce2c5}.receipt-slip:after{content:'';position:absolute;left:-1.5px;right:-1.5px;bottom:-6px;height:7px;background:linear-gradient(135deg,#fffef6 25%,transparent 25%) -5px 0/10px 10px,linear-gradient(225deg,#fffef6 25%,transparent 25%) -5px 0/10px 10px;filter:drop-shadow(0 1px 0 #d4dcbf)}.receipt-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.receipt-heading b{font-size:11px;color:#687f5e;letter-spacing:1px}.receipt-heading>span{background:#ecf1dc;border:1px solid #dce4c9;padding:3px 7px;border-radius:6px;font-size:9px;color:#67805b}.receipt-item{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.6;padding:2px 0;color:#506a4c}.receipt-item small{font-size:9px;color:#8f9a7c;margin-left:5px}.receipt-item b,.receipt-payment b{font:700 13px ui-monospace,monospace;font-variant-numeric:tabular-nums}.receipt-payment{border-top:1.5px dashed #d9dfc4;margin-top:10px;padding-top:8px}.receipt-payment>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;line-height:1.65;color:#7b8b6c;padding:2px 0}.receipt-payment b{color:#5d7653;font-size:12px}.receipt-total{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1.5px dashed #ccd7b7;margin-top:9px;padding-top:11px}.receipt-total>span{font-size:11px;letter-spacing:1px;color:#526d48;font-weight:800}.receipt-total strong{font:900 27px ui-monospace,monospace;color:#315f45;letter-spacing:-1px;font-variant-numeric:tabular-nums}.settlement-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 1px 5px;font-size:10px;color:#81916d}.settlement-bottom b{font:800 16px ui-monospace,monospace;color:#4e7652;margin-left:7px}.service-chip{font-size:9px;color:#78935e;background:#edf0db;padding:5px 8px;border-radius:20px;white-space:nowrap}.settlement-next{display:flex;align-items:center;justify-content:center;gap:16px;background:#62a27f;color:#fffbe5;border-color:#3d7b58;border-bottom-width:4px;box-shadow:inset 0 2px 0 #8fbea0;height:47px;font-size:13px;margin-top:12px;border-radius:12px;padding:8px 12px}.settlement-next>span{font-size:20px;font-weight:500}.settlement-next:active{transform:translateY(2px);border-bottom-width:2px}
.cancelled{border-color:#b6a17c!important;border-bottom-color:#917f60!important}.cancelled .guest-medallion{background:#efe3c9;border-color:#d7c2a0}.cancelled .receipt-guest .happy-mouth{display:none}.cancelled .receipt-guest .angry-expression{display:block}.cancelled .receipt-seal{background:#b48d67}.cancelled .settlement-eyebrow{color:#a18160!important}.cancelled .settlement-intro h2{font-size:24px;color:#6e6950}.cancelled .settlement-intro p{color:#8a886e}.cancelled-slip{padding-top:8px;padding-bottom:14px}.cancelled-slip .receipt-total{border-top:0;margin-top:0;padding-top:7px}.cancelled-slip .receipt-total strong{color:#9a8663}.cancelled-slip>p{font-size:10px;color:#9a997e;line-height:1.5;margin:8px 0 0}.cancelled .service-chip{background:#eee7d3;color:#9a805e}.cancelled .settlement-next{background:#d6b786;color:#62583e;border-color:#b2966a;box-shadow:inset 0 2px 0 #ead5ae}
@media(min-width:760px){.brand-icon{width:33px;height:33px}.conversation{padding-top:7px}.reply-controls{grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr)}.reply-button{font-size:14px}.mic-button{height:48px}.settlement-intro h2{font-size:29px}.settlement-intro{padding-top:23px;padding-bottom:20px}}
@media(max-height:730px) and (max-width:759px){:root{--bottom:81px}.brand-icon{width:27px;height:27px;border-radius:8px}.circle-button{width:30px;height:30px;padding:5px}.circle-button svg{width:16px;height:16px}.hud{padding-left:12px;padding-right:12px}.logo{font-size:13px;gap:6px;letter-spacing:.5px}.reply-controls{height:44px}.mic-button{width:47px;height:44px}.reply-button{height:44px;font-size:10.5px}.conversation>p{font-size:9px}.tool-button{width:37px;height:37px}.settlement-intro{gap:12px;padding-top:15px;padding-bottom:14px}.settlement-intro h2{font-size:25px}.guest-medallion{width:65px;height:65px}.receipt-slip{padding:10px 13px}.receipt-total strong{font-size:25px}.settlement-next{height:44px;margin-top:10px}}
@media(max-height:610px) and (orientation:portrait){dialog.settlement-modal{padding:13px 17px 15px}.settlement-heading{padding-bottom:8px}.settlement-intro{padding-top:12px;padding-bottom:12px}.guest-medallion{width:56px;height:56px}.settlement-intro h2{font-size:23px}.settlement-eyebrow{font-size:9px!important;margin-bottom:3px!important}.settlement-intro p{font-size:10px}.receipt-heading{margin-bottom:6px}.receipt-item{font-size:11px;padding:1px 0}.receipt-payment{margin-top:7px;padding-top:5px}.receipt-total{margin-top:6px;padding-top:7px}.receipt-total strong{font-size:23px}.settlement-bottom{padding-top:5px}.settlement-next{height:43px;margin-top:8px}}
@media(orientation:landscape) and (max-height:550px){:root{--bottom:64px}.brand-icon{width:24px;height:24px}.circle-button{width:28px;height:28px}.reply-controls{height:39px}.mic-button{width:44px;height:39px}.reply-button{height:39px;font-size:11px}.conversation>p{font-size:8px}.tool-button{width:34px;height:34px}dialog.settlement-modal{max-width:600px;padding:12px 17px 15px}.settlement-heading{padding-bottom:8px}.settlement-content{display:grid;grid-template-columns:.88fr 1.12fr;gap:18px;align-items:center}.settlement-intro{display:block;text-align:center;padding:10px 0}.guest-medallion{width:58px;height:58px;margin:0 auto 9px}.settlement-intro h2{font-size:23px}.settlement-intro p{font-size:10px}.settlement-eyebrow{font-size:8px!important}.receipt-slip{margin-top:12px;margin-bottom:4px;padding:10px 13px}.receipt-heading{margin-bottom:6px}.receipt-item{font-size:11px;padding:0}.receipt-payment{padding-top:5px;margin-top:6px}.receipt-total{padding-top:6px;margin-top:6px}.receipt-total strong{font-size:23px}.settlement-next{height:40px;margin-top:8px}.settlement-bottom{padding-top:9px}}
.character>svg{filter:drop-shadow(2px 3px 0 #72916c26)}.tool-button:disabled{opacity:.55}.settlement-heading{line-height:1.2}.settlement-heading,.settlement-heading>span:last-child{color:#687c59}.settlement-intro p{color:#617650}.receipt-payment>div{color:#667b57}.receipt-item small{color:#7a8968}.service-chip{color:#5c7744}.settlement-bottom{color:#6b8057;line-height:1.2}
@media(orientation:landscape) and (max-height:550px){dialog.settlement-modal{max-height:calc(100dvh - 18px);padding:10px 16px 13px}.settlement-heading{padding-bottom:6px}.settlement-intro{padding:7px 0}.guest-medallion{width:52px;height:52px;margin-bottom:6px}.receipt-slip{padding:9px 12px;margin-top:8px}.receipt-heading{margin-bottom:4px;line-height:1.2}.receipt-item{line-height:1.4}.receipt-payment>div{line-height:1.4;padding:1px 0}.receipt-total{padding-top:6px;margin-top:5px}.receipt-total strong{line-height:1.2}.settlement-bottom{padding:6px 1px 3px;line-height:1.2}.settlement-bottom b{font-size:15px;line-height:1.2}.service-chip{font-size:8.5px;padding:4px 7px}.settlement-next{margin-top:7px}}

/* Midnight teal enamel, vermilion ink and warm paper from the shop's till. */
:root{--shop-ink:#173e39;--shop-dark:#123c37;--shop-coral:#ad3627;--shop-paper:#fff3d7;--shop-gold:#efbf60;--ink:var(--shop-ink);--deep:#19574c}
body{background:#123c37}
.game{max-width:none;background:var(--shop-paper)}
.hud{background:#133c36;color:#ffefce;border:0;box-shadow:0 2px 8px #26190928}
.logo{color:#fff0cd;font-weight:950;letter-spacing:.09em}
.brand-icon{border:2px solid #f7d18d}
.hud-right .level{margin:0;color:#ffe6ac;font:800 14px/1 ui-monospace,monospace;white-space:nowrap}
.revenue-hud{background:#204b42;border:1px solid #7f9f85;color:#fff1cc}.revenue-hud small,.revenue-hud b{color:#fff0c9}
.hud .circle-button{color:#f4e8be;background:#214940;border:1px solid #818d72;box-shadow:none}
.stage-strip{display:flex;justify-content:center;align-items:center;gap:clamp(6px,2.5vw,38px);height:32px;flex:none;background:#fff1ce;border-bottom:2px solid #bfa578}
.stage-strip span{color:#71695a;font-size:12px;letter-spacing:.06em;display:inline-flex;align-items:center;gap:7px;font-weight:750}
.stage-strip span:before{content:'';width:8px;height:8px;border-radius:99px;border:1.5px solid currentColor}
.stage-strip .current{color:#9e321e}.stage-strip .current:before{background:currentColor;box-shadow:0 0 0 2px #fff1ce,0 0 0 3px #b45b37}.stage-strip .complete{color:#226252}.stage-strip .complete:before{background:currentColor}
.scene{background:#caa979;border-color:#916341}
.shop-background{background:#ead6a3 url('../shop-interior-v14.webp') center center/cover no-repeat}
.shop-background svg{display:none}
.scene:after{content:'';position:absolute;z-index:0;inset:0;pointer-events:none;background:linear-gradient(0deg,#342c222d,transparent 35%)}
.character>svg{filter:drop-shadow(3px 5px 1px #513a282a)}
.speech{background:#fffae8;border:2px solid #564634;box-shadow:3px 4px 0 #493a2d42;border-radius:14px 14px 14px 3px}
.speech p{color:#243d34;font-weight:850}.speech>div{color:#925126}.speech:after{border-color:transparent}
.patience-hud{background:#fff6dc;border:1px solid #836d53;box-shadow:1px 2px 0 #5c412c38}.patience-hud b{color:#a4442e}
.counter{background-color:#e5b97b;background-image:repeating-linear-gradient(176deg,transparent 0 26px,#96622624 27px 28px,transparent 30px 58px),linear-gradient(155deg,#ffe0a3,#deb27b 70%,#c68d5d);border-color:#a97848;box-shadow:inset 0 8px 13px #68422224}
.scanner{background:linear-gradient(140deg,#547b72,#305f56);border-color:#28453d;box-shadow:0 5px 0 #78543860,0 12px 16px #86684033}.scanner-foot small{color:#ffe8b8}.till-screen{background:#1a322a;color:#fff7ae;border-color:#9bb795}.scanner-bed{background:linear-gradient(130deg,#152a2b,#395756 46%,#293e40 49%,#1c3535);border-color:#acc0ac}.scan-line{background:#ff673f}
.workbench{background:linear-gradient(#faf1d9,#eee2bc);border-color:#c1aa7a}
.bench-title>b{color:#1f493e}.bench-title>span{color:#6c5337}
.conveyor{border-color:#4a6259;background:repeating-linear-gradient(90deg,#87968b 0 23px,#788b80 24px 25px);box-shadow:inset 0 6px 0 #4c665344}
.price-tag{background:#fff6d7;color:#523f30;border-color:#ad9468}.price-tag b{color:#963522}
.conversation{background:#fff3d9;border-top:3px solid #b8a384}.conversation>p{color:#375249}.reply-button,.secondary{background:#a63829;border-color:#772a22;color:#fff6da}.reply-button.passive{background:#e7e4c9;color:#345248;border-color:#aab29a}
.mic-button{background:linear-gradient(#34796a,#205b4d);border-color:#1b493f}.tool-button{background:#f0e8d1;border-color:#b6ad8c}.drop-ready{outline-color:#ec901d}
#app[data-state="scan"] .product:not(:disabled) .price-tag,#app[data-state="pay"] #customerPayment,#app[data-state="cardPay"] #customerCard{filter:drop-shadow(0 0 3px #ffdc7c)}
dialog.settlement-modal,.shift-results{background:#fff5d9;border-color:#385b49;box-shadow:0 14px 40px #122c2750}
.settlement-next{background:#1d604f;border-color:#16483c;color:#fff4ce}
.shop-menu[open]{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;display:grid;align-items:center;justify-items:end;background:#d6ba91;color:var(--shop-ink);isolation:isolate}
.menu-art{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent 35%,#3c322d33 78%),url('../shop-interior-v14.webp') center/cover no-repeat}
.enameled{position:absolute;top:8%;left:5.5%;padding:10px 20px 8px;border:3px solid #f5dfac;outline:3px solid #255046;border-radius:5px;background:#1c5147;color:#fff1ce;font:900 clamp(26px,4vw,64px)/1.15 'Songti TC','PMingLiU',serif;letter-spacing:.13em;text-shadow:2px 2px #0e302c;transform:rotate(-3deg);box-shadow:1px 6px 0 #12332b59}
.enameled:before,.enameled:after{content:'';position:absolute;bottom:100%;width:3px;height:25vh;background:#514534;left:14%}.enameled:after{left:auto;right:14%}
.enameled small{display:block;text-align:center;font:800 clamp(9px,1vw,13px)/1.5 system-ui;letter-spacing:.24em}
.menu-paper,.shift-results{color:var(--shop-ink);background:#fff2d3}
.menu-paper{position:relative;width:min(41vw,475px);margin-right:7vw;padding:clamp(23px,3vw,46px);border:2px solid #654e32;border-radius:8px;box-shadow:6px 8px 0 #372e2266,0 18px 50px #372e2250;background-image:repeating-linear-gradient(0deg,transparent 0 3px,#b89c6120 4px,transparent 5px)}
.menu-paper:before,.shift-results:before{content:'';position:absolute;top:0;left:0;right:0;height:9px;background:repeating-linear-gradient(120deg,#a54130 0 13px,#f5e6c3 13px 23px,#26594c 23px 36px,#f5e6c3 36px 46px)}
.ticket-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #93866a;padding:0 0 7px;letter-spacing:.16em;color:#4c5747;font-size:13px}.ticket-top b{font-size:25px;color:#ae432e;line-height:1}
.menu-paper h1,.shift-results h2{margin:18px 0 4px;line-height:1.15;font:900 clamp(35px,4.5vw,66px)/1.14 'Songti TC','PMingLiU',serif;letter-spacing:.015em;color:#17483c}
.brief{font-size:clamp(15px,1.2vw,19px);margin:10px 0 26px;color:#535d49}
.shift-options{display:flex;gap:6px;margin:0;padding:0;border:0}.shift-options legend{font-size:13px;color:#645841;margin-bottom:6px}.shift-options label{position:relative;flex:1;display:block;margin:0}.shift-options input{position:absolute;opacity:0}
.shift-options span{display:flex;flex-direction:column;align-items:center;gap:2px;background:#f8eac7;border:2px solid #c6b798;color:#564e3b;padding:11px 2px;border-radius:6px;font-size:16px;cursor:pointer}.shift-options small{font-size:11px;font-weight:600}.shift-options :checked+span{background:#225a49;border-color:#17483c;color:#fff7d5}.shift-options :focus-visible+span{outline:3px solid #bd5e26}
.open-shop{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:20px;padding:12px 18px;border:2px solid #84301e;border-bottom-width:5px;background:#ad3b29;color:#fff5df;border-radius:7px;font-size:20px;font-weight:900;letter-spacing:.08em}.open-shop:active{transform:translateY(2px)}
.shift-results{position:fixed;width:min(420px,calc(100% - 24px));padding:24px;border-radius:10px}.shift-results h2{font-size:36px}.shift-results p{font-size:15px}.stamps{display:flex;gap:8px;margin:18px 0}.stamp{flex:1;text-align:center;border:1px dashed #a59877;border-radius:6px;padding:8px 4px}.stamp b,.stamp small,.stamp strong{display:block}.stamp b{margin:0 auto 4px;border:2px solid currentColor;width:30px;height:30px;border-radius:50%;color:#347556}.stamp.missed b{color:#905f4b}.shift-stat{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-block:1px solid #ac9a79}.shift-stat strong{font:900 29px monospace;color:#963927}
@media(max-width:700px) and (orientation:portrait){
 .shop-menu[open]{align-items:end;justify-items:center}
 .menu-art{background-size:auto 80%;background-repeat:no-repeat;background-position:center top;background-color:#706744}
 .menu-paper{width:calc(100% - 32px);max-width:450px;margin:0 0 max(6dvh,env(safe-area-inset-bottom));padding:22px}
 .menu-paper h1{font-size:clamp(36px,10vw,52px);margin-top:12px}
 .brief{margin:6px 0 16px}.enameled{top:7%;left:7%;font-size:32px}
 .stage-strip{height:25px}.stage-strip span{font-size:11px}
}
@media(max-height:580px) and (orientation:landscape){
 .shop-menu .menu-paper{width:min(53vw,430px);margin-right:3vw;padding:14px 18px}.menu-paper h1{font-size:35px;margin:8px 0 3px}.brief{margin:4px 0 8px}.shift-options span{padding:4px 0}.open-shop{margin-top:10px;padding:7px 15px}.stage-strip{height:20px}.stage-strip span{font-size:10px}
}

/* Illustrated neighbourhood, shared with the characters and the shelf stock. */
.shop-menu[open]{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(300px,1fr);column-gap:clamp(15px,3vw,54px);padding:clamp(18px,4vw,70px);background:linear-gradient(180deg,#d6e9da 0 66%,#ded4b7 66% 100%);color:#284e40}
.shop-menu[open]:after{content:'';position:absolute;top:0;left:0;right:0;height:8px;background:repeating-linear-gradient(90deg,#df936c 0 33px,#f9e8c4 33px 66px);border-bottom:2px solid #51645650;z-index:-1}
.menu-art{position:relative;inset:auto;width:100%;height:100%;background:transparent;grid-area:1 / 1;z-index:auto;pointer-events:none}
.menu-paper{grid-area:1 / 2;justify-self:start;width:min(100%,480px);margin:0;padding:clamp(24px,3vw,45px);border:3px solid #50645a;border-radius:19px;background:#fff5da;box-shadow:0 6px 0 #a2aa90,0 13px 0 -5px #b9b39840;overflow:hidden}
.menu-paper:before,.shift-results:before{height:7px;background:repeating-linear-gradient(90deg,#d78259 0 23px,#f8e7bc 23px 46px)}
.ticket-top{border:0;padding:0;letter-spacing:.09em;font-size:13px;font-weight:800;color:#476653}
.ticket-top small{font:750 10px/1.2 ui-sans-serif,system-ui,sans-serif;letter-spacing:.15em;color:#64776c}
.ticket-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#68a083;box-shadow:0 0 0 3px #d4e7cf;margin-right:6px}
.menu-paper h1,.shift-results h2,.album h2{font-family:ui-rounded,'PingFang HK','Noto Sans CJK HK','Microsoft JhengHei',sans-serif;font-weight:1000;letter-spacing:-.045em;color:#284f40}
.menu-paper h1{font-size:clamp(36px,4.6vw,67px);margin:16px 0 8px}
.brief{font-size:clamp(14px,1.15vw,18px);margin:0 0 24px;color:#536755;line-height:1.6}
.shift-options{gap:7px}.shift-options legend{font-size:13px;font-weight:750;color:#5f6b54;margin-bottom:9px}
.shift-options span{border-radius:10px;background:#f5ecd1;border:2px solid #c1c5a8;color:#4a5e4d;line-height:1.4;font-weight:800}
.shift-options :checked+span{background:#d3e9ce;border-color:#4e7a5c;color:#234b37;box-shadow:inset 0 -3px #b5d4af}
.open-shop,.settlement-next{border:2px solid #824d36;border-bottom-width:5px;background:#b15032;color:#fff9df;border-radius:12px;letter-spacing:.03em;transition:transform .12s,background .12s}
.open-shop b{font-family:system-ui}.open-shop:hover{background:#a6482d}
.album-link{width:100%;display:flex;align-items:center;gap:9px;border:0;border-top:1.5px dashed #bab798;margin:16px 0 0;padding:13px 1px 0;background:transparent;color:#395e4b;text-align:left;font:750 14px/1.3 system-ui,sans-serif;cursor:pointer}.album-link small{margin-left:auto;font:800 13px ui-monospace,monospace;color:#60735e}.album-link b{font-size:20px}.album-mark{display:grid;place-items:center;width:25px;height:25px;background:#f3d68f;color:#835326;border:1.5px solid #ab874e;border-radius:8px;font-size:15px}
.shop-background{background:#f6e9c9}
.scene:after{display:none}.scene{border-color:#80967e}.character>svg{filter:drop-shadow(2px 3px 0 #63775e20)}
.hud{background:#2b594a}.stage-strip{background:#fcf0cf;border-color:#bdb493}.stage-strip .current{color:#a4492d}
.speech{background:#fff9e5;border-color:#67765f;box-shadow:0 3px 0 #6a7b6338}.speech:after{background:#fff9e5}.speech p{color:#314e3e}.speech button{min-width:28px;min-height:24px}
.speech>div{color:#587555}.patience-hud{border-color:#92a083;background:#fff5d8}
.counter{background-color:#efcc95;background-image:repeating-linear-gradient(178deg,transparent 0 46px,#d9ae79 47px 48px,transparent 49px 75px);box-shadow:inset 0 7px #e2ba83;border-color:#ae8d64}
.workbench{background:#f7efce;border-color:#a3ad8f}
.conveyor{border:3px solid #758872;border-bottom:7px solid #758872;background:#d2dfc6;box-shadow:inset 0 5px #c1d1b5}.belt-marks,.belt-end{display:none}
.products{display:flex;align-items:center;justify-content:center;gap:clamp(4px,1vw,16px);padding:4px 8px}
.product{flex:1;min-width:0;max-width:115px;max-height:145px;height:100%;padding:1px 2px 2px;gap:1px;filter:none}
.product>svg{flex:1 1 0%;min-height:0;width:min(92%,79px);height:0;filter:drop-shadow(0 2px 0 #7087712e)}
.price-tag{position:static;transform:none;white-space:nowrap;background:#fff7df;border:1px solid #acb497;border-radius:6px;color:#3f5847;font-size:clamp(9px,.9vw,13px);padding:2px 5px;line-height:1.3}
.price-tag b{color:#965232}.product.selected{transform:translateY(-3px);background:#fff6d0;border-radius:9px;outline:2px solid #bd853e}
.order-list:not([hidden]){display:flex;align-items:center;gap:4px;list-style:none;flex-wrap:wrap;padding:0;margin:6px 0 0}.order-list li{display:flex;align-items:center;gap:3px;border:1px solid #b4c2a2;border-radius:6px;background:#edf2d9;padding:2px 5px;color:#425e44;font-size:11px;font-weight:750}.order-list li svg{width:17px;height:20px}.order-list li.picked{background:#d8e6cc;color:#526d51}.order-list .picked span{text-decoration:line-through}
.conversation{background:#fff4d7}.reply-button:not(.passive){background:#ad5337;border-color:#824a36}.mic-button{background:#41816e;border-color:#345e4e}
dialog.album{width:min(465px,calc(100% - 22px));max-height:calc(100dvh - 16px);padding:clamp(14px,3vw,26px);background:#fff5d8;border:3px solid #62775f;border-radius:16px;color:#34533e}
.album h2{margin:0;font-size:clamp(23px,4vw,32px)}.album p{margin:8px 0 14px;color:#516652;font-size:14px}.album-pages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.album-slot{position:relative;background:#f6eacb;border:1.5px dashed #c3b896;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 2px 7px}.album-slot>b{color:#405e48;font-size:13px}.album-slot>small{position:absolute;left:5px;top:4px;font:750 9px ui-monospace,monospace;color:#80785c}.album-slot.locked{background:#eee9d4}.album-slot.locked b{color:#70765f}.stamp-back,.sticker-art{display:inline-grid;place-items:center;width:59px;height:59px;border-radius:50%}.stamp-back{background:#dddcc3;color:#858c70;border:2px dashed #acb298;font-size:24px;font-weight:900}
.sticker-art{display:inline-block;position:relative;background:var(--wash);border:3px solid #fffbeb;outline:1px solid #b4ad90;box-shadow:1px 2px 0 #9f9f817a;transform:rotate(-5deg);flex:none}
.sticker-art>svg{width:100%;height:100%;border-radius:50%;overflow:hidden}.sticker-art>i{position:absolute;bottom:-3px;right:-5px;width:45%;height:48%;filter:drop-shadow(1px 1px 0 #fffbe5)}.sticker-art>i svg{height:100%;width:100%}.sticker-art :is(.angry-expression,.happy-mouth,.talk-mouth,.offering-arm){display:none}
.sticker-prize{display:flex;align-items:center;width:100%;gap:10px;margin:10px 0 0;padding:6px 10px;border:1.5px solid #a7b69a;border-radius:10px;background:#e5eed3;color:#335b44;text-align:left;cursor:pointer}.sticker-prize .sticker-art{width:34px;height:34px}.sticker-prize span>small,.sticker-prize span>b{display:block;line-height:1.35}.sticker-prize span>small{font-size:10px}.sticker-prize span>b{font-size:14px}.sticker-prize em{margin-left:auto;font:700 11px system-ui}.sticker-prize .sticker-art{animation:stamp-in .32s ease-out}.shift-results .album-link{margin:0 0 12px}
@keyframes stamp-in{from{transform:rotate(-15deg) scale(1.45);opacity:0}to{transform:rotate(-5deg) scale(1);opacity:1}}
@media(min-width:780px) and (min-height:551px){.speech{max-width:410px;width:calc(100% - 50px)}.scene{background:#fbebc8}.shop-background{background-position:center bottom}.counter{position:relative}.workbench{padding:12px 18px}}
@media(orientation:portrait) and (max-width:900px){
 .shop-menu[open]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;padding:0 14px max(11px,env(safe-area-inset-bottom));background:#ded4b7}
 .menu-art{width:calc(100% + 28px);flex:1 1 45%;min-height:95px;max-height:65dvh;align-self:center;background-size:auto 123%;background-position:center 65%;background-color:#d6e9da}
 .menu-paper{flex:none;width:min(100%,500px);padding:17px 20px;margin:-5px 0 0;border-radius:15px;z-index:1}
 .menu-paper h1{font-size:clamp(32px,8.8vw,45px);margin:8px 0 4px}.brief{font-size:14px;margin:0 0 11px}.shift-options legend{margin-bottom:5px}.shift-options span{padding:7px 0}.open-shop{margin-top:12px;padding:10px 13px}.album-link{margin-top:10px;padding-top:8px}
 .shop-background{background-size:cover;background-position:center 55%}.order-list li{font-size:10px;padding:1px 3px}.order-list li svg{width:14px;height:17px}.speech:has(.order-list:not([hidden])){width:min(53%,315px)}
}
@media(max-height:650px) and (orientation:portrait){.menu-paper{padding:11px 15px}.menu-paper h1{font-size:32px;margin:5px 0 1px}.brief{font-size:12px;margin:0 0 5px}.shift-options legend{font-size:11px}.shift-options span{padding:4px 0}.open-shop{margin-top:8px;padding:7px 12px;font-size:18px}.album-link{padding-top:5px;margin-top:7px}.order-list:not([hidden]){margin-top:3px;gap:2px}.speech:has(.order-list:not([hidden])){padding:5px 7px}.speech button{min-height:18px}}
@media(orientation:landscape) and (max-height:550px){
 .shop-menu[open]{grid-template-columns:1fr minmax(285px,.9fr);gap:8px;padding:8px 16px}.shop-menu .menu-paper{width:100%;max-width:440px;margin:0;padding:11px 15px}.menu-paper h1{margin:5px 0 1px;font-size:30px}.menu-paper .brief{margin:1px 0 5px;font-size:12px}.shift-options span{padding:3px 0;font-size:14px}.shift-options legend{font-size:10px;margin-bottom:3px}.menu-paper .album-link{margin-top:6px;padding-top:5px}.menu-paper .open-shop{margin-top:8px;padding:6px 12px;font-size:17px}.album-slot{padding:4px}.stamp-back,.sticker-art{width:38px;height:38px}.album p{margin:3px 0 5px}.sticker-prize{margin-top:4px;padding:3px 8px}.sticker-prize .sticker-art{width:26px;height:26px}.order-list:not([hidden]){margin-top:2px}.order-list li{font-size:9px;padding:0 3px}.order-list li svg{height:14px;width:13px}.speech button{min-height:16px}
}
@media(prefers-reduced-motion:reduce){.sticker-prize .sticker-art{animation:none}}

.menu-art img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.shop-background>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
@media(orientation:portrait) and (max-width:900px){.menu-art{overflow:hidden}.menu-art img{height:123%;top:-15%;object-fit:cover;object-position:center 65%}.shop-background>img{object-position:50% 58%}}

@media(min-aspect-ratio:4/3) and (min-height:551px){
 .shop-menu .menu-art{position:absolute;grid-area:auto;inset:0;z-index:-1;width:100%;height:100%}
 .menu-art img{object-fit:cover;object-position:15% center}
}

/* The portrait, receipt and sticker all use one poseable drawing. */
.wave-arm,.smile-eyes,.uneasy-face{display:none}
#character .guest-head{transform-box:view-box;transform-origin:125px 207px;animation:guest-look 5.6s ease-in-out infinite}
#character.talking .guest-head{animation:guest-speak-nod 1.05s ease-in-out infinite}
#character.offering .body-group{animation:none}
#character.offering .offering-arm{transform-box:view-box;transform-origin:177px 247px;animation:guest-reach .24s ease-out 1 both}
#character .blink{transform-box:fill-box;transform-origin:center;animation:guest-blink 5.2s linear infinite}
#character[data-kind="cat"] .blink{animation-delay:-1.4s}#character[data-kind="robot"] .blink{animation-delay:-2.3s}
#character[data-kind="cat"] .cat-tail{transform-box:view-box;transform-origin:173px 302px}
#character[data-kind="cat"] .left-ear{transform-box:view-box;transform-origin:71px 105px}
#character[data-kind="cat"] .right-ear{transform-box:view-box;transform-origin:176px 93px}
#character .antenna-spring{transform-box:view-box;transform-origin:155px 67px;animation:aerial-settle 4.7s ease-in-out infinite}
#character[data-emotion="happy"] .open-eyes,.receipt-guest .open-eyes{display:none}
#character[data-emotion="happy"] .smile-eyes,.receipt-guest .smile-eyes{display:block}
#character[data-emotion="impatient"] :is(.calm-brows,.angry-expression),#character[data-emotion="angry"] .calm-brows,.cancelled .receipt-guest :is(.calm-brows,.smile-eyes){display:none}
#character[data-emotion="impatient"] .uneasy-face,.cancelled .receipt-guest .open-eyes{display:block}
#character[data-emotion="impatient"] .guest-head{animation:none;transform:rotate(-2deg)}
#character[data-emotion="angry"] .guest-head{animation:none;transform:translateY(2px) rotate(2deg)}
@keyframes guest-look{0%,22%,100%{transform:rotate(-.65deg)}58%,80%{transform:rotate(.9deg) translateY(-.7px)}}
@keyframes guest-speak-nod{0%,100%{transform:rotate(-.6deg)}50%{transform:translateY(1.4px) rotate(.85deg)}}
@keyframes guest-blink{0%,65%,70%,100%{transform:scaleY(1)}67.5%{transform:scaleY(.08)}}
@keyframes aerial-settle{0%,65%,100%{transform:rotate(-1deg)}78%{transform:rotate(4deg)}89%{transform:rotate(-2deg)}}
@keyframes guest-reach{0%{transform:rotate(8deg)}72%{transform:rotate(-1.2deg)}100%{transform:rotate(0)}}
#character.talking .emotion-mouth{transform-box:fill-box;transform-origin:50% 0;animation:guest-mutter .32s ease-in-out infinite alternate}
@keyframes guest-mutter{to{transform:scale(.95,1.25) translateY(.7px)}}
.sticker-art .cat-ear,.sticker-art .cat-tail,.sticker-art .robot-light{animation:none}

.scene{overflow:clip}
.customer-payment{animation:none;transform:rotate(-7deg);transform-origin:50% 85%}
@media(orientation:portrait) and (max-width:700px){
 #app[data-state="greet"] .speech{width:min(37%,160px)}
 #app[data-state="greet"] .character{left:60%}
}

/* Counter fittings share the enamel, kraft paper and stitched canvas of the shop. */
#openShop{justify-content:center;gap:.52em;letter-spacing:.09em;background:linear-gradient(#bb6546,#aa5035);border-color:#844932;box-shadow:inset 0 2px #df9572,0 2px 0 #d4b990}
#openShop svg{width:1.18em;height:1.18em}
.menu-paper{background:linear-gradient(160deg,#fffae9,#fff1d2);border-color:#576a58;box-shadow:0 5px #a5ad93,0 13px 30px #56684920}
.menu-paper::before{height:8px;background:repeating-linear-gradient(90deg,#d7855c 0 22px,#f8e5ba 22px 44px)}
.shift-options span{position:relative;border-radius:11px}
.mode-meter{display:flex;height:8px;gap:3px;align-items:end;margin:0 0 3px}.mode-meter i{height:4px;width:6px;background:none;border:1px solid #a7ac94;border-radius:2px}.mode-meter i:nth-child(2){height:6px}.mode-meter i:nth-child(3){height:8px}.mode-meter .filled{background:#7d9a79;border-color:#71906c}
.shift-options :checked+span .mode-meter .filled{background:#47785b;border-color:#47785b}
.album-mark svg{width:18px;height:18px}
.hud{background:linear-gradient(#366853,#2b5949);box-shadow:inset 0 -2px #284e42}
.hud .circle-button{background:#396d59;border:1.5px solid #829981;color:#fff1d4}
.stage-strip{background:#faf0d6;border-color:#b7b296;gap:clamp(4px,1.4vw,20px)}
.stage-strip span{height:82%;padding:0 10px;gap:5px;border-radius:7px;font-weight:800}.stage-strip span:before{display:none}
.stage-strip svg{width:15px;height:15px;flex:none}
.stage-strip .current{background:#f1d7a7;color:#754722;box-shadow:inset 0 0 0 1px #cba878}
.stage-strip .complete{color:#456b52}
.counter{isolation:isolate;background-color:#efd1a2;background-image:repeating-linear-gradient(179deg,transparent 0 75px,#cfab7b93 76px 77px,transparent 78px 112px),linear-gradient(105deg,#f4d9ad,#e9c28f);border-color:#ad885f}
.counter-mat{position:absolute;pointer-events:none;left:6%;right:6%;top:14%;bottom:12%;border:2px solid #92977a;border-radius:19px;background:linear-gradient(125deg,#c2cba8,#b1c09d);box-shadow:0 3px #ae916c55,inset 0 1px #dce2c4}
.counter-mat:after{content:'';position:absolute;inset:4px;border:1.5px dashed #839c7f;border-radius:13px}
.scanner{border-color:#526e5d;border-bottom-color:#476250;background:linear-gradient(155deg,#94b1a1,#7d9f90 64%,#6a907e);box-shadow:inset 0 2px #cad5b6,0 4px 0 #56664d45,0 9px 14px -8px #46564388}
.till-screen{color:#fff0ab;border-color:#587564;background:linear-gradient(140deg,#395448,#263f37);box-shadow:inset 0 2px 1px #233d37}
.scanner-bed{background:linear-gradient(126deg,#28413b 10%,#466259 11%,#324e46 19%,#314e47 55%,#4a675b 56%,#4a675b 60%,#304941 61%);border-color:#dce2c5}
.scanner-bed>i{background:#9bb7a145}.scan-line{top:55%;background:#f69377;height:2px;box-shadow:0 0 5px #fc9b69a1}
.scanner.scanning .scan-line{animation:scanner-read .24s ease-out;background:#ffb08b}
@keyframes scanner-read{0%{top:72%;opacity:.8}55%{top:28%;opacity:1}100%{top:55%;opacity:.8}}
.scanner-foot small{color:#eef1ce}
.shopping-bag{filter:drop-shadow(1px 4px 0 #6a704628)}.shopping-bag>span{border-color:#a29067;background:#fff5d7;color:#604e35;font-size:clamp(10px,.85vw,14px)}
.shopping-bag.bounce{animation:sack-settle .43s both;transform-origin:50% 95%}
@keyframes sack-settle{0%,55%,100%{transform:rotate(3deg)}74%{transform:translateY(2px) rotate(4.5deg) scale(1.025,.973)}88%{transform:translateY(-1px) rotate(2deg)}}
.scan-zone-mark{display:none}
.conveyor{background:linear-gradient(180deg,#d8e3c9,#c7d5ba);border-color:#839878;border-bottom-color:#70866b;box-shadow:inset 0 4px #bdd0b3;overflow:visible}
.product>svg{filter:drop-shadow(1px 3px 0 #526a4b26)}
.price-tag{background:#fff6db;border-color:#b0ad8c;box-shadow:0 2px 0 #7c906f33;font-variant-numeric:tabular-nums}
.speech{background:#fff9e9;border-color:#687861;box-shadow:0 3px 0 #65725838}
.speech>div{color:#456a57}.speech:after{background:#fff9e9}
#customerName{letter-spacing:.04em}
#repeat{border-radius:50%;background:#e8eed8;min-width:28px;min-height:26px;padding:4px;color:#426b55}
.bench-title>b,.workbench #benchTitle{color:#315942}.bench-title>span{color:#526450}
.conversation{box-shadow:0 -2px 0 #c5b99c4d}.reply-button{justify-content:center}.reply-button:not(.passive){box-shadow:inset 0 1px #de9372,0 2px #a98566}
dialog.settlement-modal[open]{animation:slip-arrives .23s cubic-bezier(.18,.65,.28,1) both}
@keyframes slip-arrives{from{opacity:.35;transform:translateY(9px) rotate(-.7deg)}to{opacity:1;transform:translateY(0)}}

/* Local shoulder, elbow and wrist rotations keep a single continuous arm. */
#character .greet-shoulder,#character .greet-elbow,#character .greet-wrist,#character .head-tilt,#character .guest-pupil{transform-box:view-box}
#character .greet-shoulder{transform-origin:70px 240px;transition:transform .46s cubic-bezier(.25,.72,.25,1)}
#character .greet-elbow{transform-origin:55px 271px;transition:transform .42s cubic-bezier(.26,.72,.28,1)}
#character .greet-wrist{transform-origin:44px 304px;transition:transform .35s ease-out}
#app[data-state="greet"] #character[data-hello] .greet-shoulder{transform:rotate(37deg)}
#app[data-state="greet"] #character[data-hello] .greet-elbow{transform:rotate(109deg)}
#app[data-state="greet"] #character[data-hello] .greet-wrist{animation:hello-wrist .86s .19s ease-in-out both}
@keyframes hello-wrist{0%,100%{transform:rotate(-4deg)}25%,66%{transform:rotate(12deg)}47%,83%{transform:rotate(-9deg)}}
#character .head-tilt{transform-origin:125px 209px;transition:transform .34s ease}
#character .guest-pupil{transition:transform .2s ease-out}
#app[data-state="scan"] #character[data-emotion="calm"] .guest-pupil{transform:translate(.6px,1.2px)}
#app:is([data-state="pay"],[data-state="cardPay"],[data-state="change"]) #character .guest-pupil{transform:translate(1.35px,1.25px)}
#app:is([data-state="pay"],[data-state="cardPay"],[data-state="change"]) #character .head-tilt{transform:translateY(.8px) rotate(2.1deg)}
#character.talking .guest-pupil{transition-duration:.12s}
#character .collar-bell{transform-box:view-box;transform-origin:125px 235px;animation:bell-settles 4.8s ease-in-out infinite}
@keyframes bell-settles{0%,22%,100%{transform:rotate(-3deg)}58%{transform:rotate(3.8deg)}}
#character.talking .guest-head{animation:conversational-nod 1.8s ease-in-out infinite}
@keyframes conversational-nod{0%,28%,100%{transform:rotate(-.45deg)}43%{transform:translateY(1.6px) rotate(.9deg)}62%{transform:translateY(-.5px) rotate(.15deg)}84%{transform:translateY(.5px) rotate(.4deg)}}
@media(min-width:820px) and (min-height:551px){
 .counter-mat{top:50%;bottom:auto;transform:translateY(-45%);height:clamp(160px,49%,275px);left:5%;right:5%}
 .speech>div{font-size:13px}.speech p{font-size:clamp(18px,1.55vw,24px)}
}
@media(orientation:portrait) and (max-width:760px){
 #app .character,#app[data-state="greet"] .character{left:64%}
 .speech,.speech:has(.order-list:not([hidden])){width:43%;max-width:230px;left:9px}
 .speech:after{right:-6px;left:auto;top:62%;bottom:auto;width:9px;height:9px;background:#fff9e9;border:0;border-right:2px solid #687861;border-top:2px solid #687861;transform:rotate(45deg)}
 .stage-strip span{padding:0 6px;gap:3px}.stage-strip svg{width:13px;height:13px}
 .counter-mat{left:4%;right:4%;top:12%;bottom:9%;border-radius:13px}
 .counter-mat:after{border-radius:9px}
}
@media(orientation:landscape) and (max-height:550px){
 #app .character{left:68%;width:58%;height:88%;bottom:-8px}
 .speech,.speech:has(.order-list:not([hidden])){left:8px;top:9px;width:43%;padding:6px 8px}
 .patience-hud{top:auto;bottom:8px;left:8px;right:auto}
 .stage-strip svg{width:12px;height:12px}.mode-meter{display:none}
 .counter-mat{left:3%;right:3%;top:12%;bottom:10%;border-radius:14px}
}
@media(max-height:620px) and (orientation:portrait){.mode-meter{display:none}.stage-strip span{font-size:10px}.speech #repeat{min-height:20px;min-width:22px}}

/* The mystery item sits in the existing shopping list until it is identified. */
.order-list li.secret-item{border:1.5px dashed #9a7743;background:#fff0c7;color:#6a482a}
.secret-item>b{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#966230;color:#fff6d6;line-height:1}
.scanner.rejected .scanner-bed{box-shadow:inset 0 0 0 3px #dd9568}
.scanner.rejected .scan-line,.scanner.rejected #scannerLed{background:#f09a63}
@media(prefers-reduced-motion:no-preference){
 .scanner.rejected .scanner-bed{animation:scan-reject .28s ease-out}
 @keyframes scan-reject{20%{transform:translateX(-3px)}55%{transform:translateX(2px)}80%{transform:translateX(-1px)}}
}
.mystery-album{margin-top:12px;border-top:1px dashed #a7a889;padding-top:8px}
.mystery-album h3{display:flex;align-items:baseline;justify-content:space-between;font-size:15px;margin:0 0 7px}
.mystery-album small{font-size:12px;color:#655e43;font-variant-numeric:tabular-nums}
.mystery-album ul{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.mystery-album li{width:100%;max-width:49px;aspect-ratio:1;justify-self:center;display:grid;place-items:center;border-radius:50%;color:#938563;border:1.5px dashed #b5a67e;background:#f6eac9}
.mystery-album li.inked{background:#e2ecd2;border:2px solid #588271;box-shadow:inset 0 0 0 2px #fff6df;transform:rotate(-5deg)}
.mystery-album li svg{height:78%;width:78%}.stamp b svg{height:24px;width:24px;vertical-align:middle}
@media(max-height:550px) and (orientation:landscape){
 dialog.album{width:min(640px,96vw)}
 .album-pages{grid-template-columns:repeat(6,minmax(0,1fr))}
 .mystery-album li{max-width:35px}
}

#settingsModal .sample-row{display:flex;gap:8px;align-items:center}
#settingsModal .sample-row select{flex:1;min-width:0}
#settingsModal .sample-row button{width:auto;min-width:64px;margin:0}
@media(min-width:760px) and (min-height:551px){
 #app .patience-hud{top:auto;bottom:15px;left:20px}
}
