/* The shop is the game world; controls are objects on its counter. */
.reward-bag-scene{display:flex;align-items:center;justify-content:center;gap:8px;margin:-7px -8px 13px;animation:bag-appear .6s ease-out both}
.reward-bag-art{display:block;width:59%;max-width:275px;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 8px 7px #64421c22)}
.reward-bag-name{color:#315f54;text-align:left;min-width:0;font-family:Georgia,"Times New Roman",serif;line-height:1.14;letter-spacing:-.02em;padding:10px 0 0}
.reward-bag-name>span{display:block;font-size:23px;font-style:italic;margin-bottom:7px;color:#947142}
.reward-bag-name strong{display:block;font-size:32px;font-weight:normal;text-shadow:0 1px #fff9e7}
.collected-screen:has(.reward-bag-scene){top:18%}
@media(max-width:900px){.collected-screen:has(.reward-bag-scene){top:330px}.reward-bag-art{max-width:265px}.reward-bag-name strong{font-size:31px}}
@media(max-width:580px){.reward-bag-scene{gap:3px;margin:-4px -9px 14px}.reward-bag-art{width:59%;max-width:205px}.reward-bag-name>span{font-size:18px;margin-bottom:5px}.reward-bag-name strong{font-size:25px}.collected-screen:has(.reward-bag-scene){top:330px}}
body[data-phase="home"] .shop-scene,body[data-phase="basket"] .shop-scene{background-image:url('assets/aisles.png');background-position:center;background-size:cover}
body[data-phase="home"] .counter-surface,body[data-phase="basket"] .counter-surface{display:none}
html,body{min-height:100%;background:#6d492b}body{overflow-x:hidden}.game-shell{display:block;position:relative;min-height:720px;height:100svh;isolation:isolate;overflow:hidden}.shop-scene{position:absolute;inset:0;top:0;width:100%;height:100%;background-position:center;background-size:cover;z-index:-3}.shop-scene:after{background:linear-gradient(180deg,#30250f25,transparent 25%,transparent 60%,#36241444)}.shop-brand,.scene-caption,.page-footer{display:none}.speaking-light{display:block;inset:0;box-shadow:none}.is-speaking .speaking-light{animation:game-voice 1.8s ease-in-out infinite}.game-hud{position:absolute;z-index:20;top:21px;left:27px;right:29px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;pointer-events:none}.game-hud>*{pointer-events:auto}.wordmark{display:block;transform:rotate(-2deg);padding:10px 25px 12px;border:4px solid #b58a50;border-radius:15px;background:linear-gradient(140deg,#9b6937,#623f25);box-shadow:0 5px 0 #402e1e,0 12px 25px #36241455;color:#fff0c9;font:bold clamp(26px,2.7vw,37px)/1 Georgia,serif;text-shadow:0 2px #392917}.wordmark span{font:9px/1.3 var(--font);letter-spacing:.16em;color:#efd7aa;text-align:center;margin-top:6px}.game-hud nav{display:flex;gap:8px}.game-hud .icon-button{width:43px;height:43px;border:3px solid #c6a16b;background:linear-gradient(#fff8df,#ead6ac);box-shadow:0 4px 0 #5d3b22;color:#67502f}.game-hud .icon-button:hover{background:linear-gradient(#fffce9,#f4dfb4);transform:translateY(-1px)}.game-hud .icon-button .icon{width:18px;height:18px}.counter-surface{position:absolute;z-index:-1;bottom:0;left:0;right:0;height:146px;border-top:10px solid #bd884c;background:repeating-linear-gradient(0deg,#8c5e36 0,#8c5e36 4px,#885930 5px,#93643c 8px);box-shadow:0 -4px 0 #6a4525,inset 0 10px 30px #4c301d44}#game{position:relative;width:100%;max-width:none;min-height:720px;height:100svh;margin:0;padding:0;display:block;pointer-events:none;outline:none}#game>*{pointer-events:auto}#game form{pointer-events:none}.storage-notice{position:absolute;top:85px;left:28px;width:250px;z-index:25;font-size:10px}#progress{display:none}.game-board{position:absolute;right:39px;top:118px;width:min(560px,48%);padding:30px 28px;border:7px solid #956638;border-top-color:#bc8d52;border-radius:22px;background:linear-gradient(140deg,#fff7e1,#f3e1b8);box-shadow:inset 0 0 0 2px #e8cfa0,0 8px 0 #593e24,0 15px 40px #31210f55;color:#604424}.game-board h1,.game-board h2{color:#624725;font-family:var(--serif);font-weight:bold;letter-spacing:-.03em}.game-board h1{font-size:39px;margin-bottom:17px}.game-board h2{font-size:33px;margin-bottom:10px}.game-board .lead{color:#8a7350;font-size:13px;margin-bottom:23px}.board-pin{position:absolute;left:calc(50% - 7px);top:-5px;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f4cd80,#8a5b22 80%);box-shadow:0 3px 3px #623d2355}.menu-board{top:34%;transform:rotate(1deg);padding:36px 34px 27px}.game-menu-hint{margin:22px 0 0;font:12px/1.75 var(--font);text-align:center;color:#907756}.primary{border:2px solid #8fba7b;border-radius:13px;background:linear-gradient(#648b56,#3d6a40);box-shadow:0 5px 0 #244329;color:#fff2d4;min-height:49px;font-weight:700}.primary:hover:not(:disabled){background:linear-gradient(#759d64,#4c7a4c);transform:translateY(-1px)}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #244329}.secondary{border:2px solid #b39562;background:#fff6dc;box-shadow:0 3px 0 #987044;color:#79552d}.secondary:hover:not(:disabled){background:#fff9e8}.quiet-button{color:#876c47}.result-board{top:120px;max-height:calc(100svh - 165px);overflow:auto}.result-board .result-emblem{background:#e4e8c6;border:2px solid #94a679;width:58px;height:58px;margin-bottom:18px}.result-board .receipt{margin:18px 0 22px;max-height:calc(100svh - 420px);overflow:auto;background:#fff9e8;padding:12px 15px}.receipt:after{display:none}.result-board .receipt-row{font-size:11px}.result-board .receipt-total strong{color:#456c43}.collected-screen{top:24%;text-align:center}.collected-screen .bag-illustration{margin-top:5px}.collected-screen .lead{text-align:center}.collected-screen .quiet-button{margin-top:17px}.basket-preview{top:112px;padding:24px 22px 23px;width:min(650px,53%);max-height:calc(100svh - 165px);display:flex;flex-direction:column}.basket-preview .basket-card{overflow:auto;max-height:calc(100svh - 345px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 18px;padding:3px 3px 9px}.basket-preview .basket-item{min-width:0;display:flex;flex-direction:column;gap:3px;text-align:center;padding:7px 4px;border:2px solid #c8ad78;border-radius:12px;background:#fff7df;box-shadow:0 3px 0 #aa8652}.basket-preview .basket-item .sprite{width:62px}.basket-preview .basket-item-text{font-size:10px}.basket-preview .basket-item-text>span[lang]{display:none}.basket-preview .basket-item-quantity{font-size:10px}.basket-preview .screen-description{color:#8d7758;font-size:12px;margin-bottom:12px}.basket-preview .primary{flex-shrink:0}.npc-speech{position:absolute;z-index:5;bottom:181px;left:32px;width:255px;pointer-events:auto;padding:17px 18px 14px;border:3px solid #ba9867;border-radius:27px 27px 27px 6px;background:#fff9e9;box-shadow:0 6px 0 #6d47293d,0 10px 25px #48341c33;text-align:center}.npc-speech:before{content:"";position:absolute;right:25px;top:-18px;width:27px;height:27px;transform:skewY(35deg);background:#fff9e9;border-top:3px solid #ba9867;border-right:3px solid #ba9867;z-index:-1}.npc-speech h2{font:23px/1.15 var(--serif);color:#644b2d;margin:0 0 13px;letter-spacing:-.025em}.listen-button{position:relative;border:2px solid #d4a662;border-radius:12px;background:linear-gradient(#f5d98e,#e8b857);box-shadow:0 4px 0 #a6752c;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px;color:#5d3f1d;font-weight:700;font-size:13px;margin:auto;min-width:143px;min-height:43px}.listen-button:hover{background:linear-gradient(#ffe9b0,#edc66e)}.listen-button:active{transform:translateY(2px);box-shadow:0 2px 0 #a6752c}.listen-button .icon{width:18px;height:18px}.npc-speech .waveform{justify-content:center;margin:13px 0 2px;height:18px}.npc-speech .waveform i{background:#cbb18a}.npc-speech.playing .waveform i{background:#997142;animation:wave .8s ease-in-out infinite alternate}.npc-speech.playing .waveform i:nth-child(3n){animation-delay:-.3s}.npc-speech.playing .waveform i:nth-child(4n){animation-delay:-.5s}.npc-speech .replay-button{display:inline-flex;justify-content:center;color:#927754;font-size:10px;padding:4px 7px;min-height:26px}.npc-speech .feedback{font-size:10px;line-height:1.45;min-height:15px;margin:7px 0 0;color:#947b59}.npc-speech .feedback.error{color:#a54530;font-weight:600}.goods-tray{pointer-events:auto;position:absolute;right:32px;top:108px;width:53%;padding:16px 17px 14px;border:8px solid #86582f;border-top-color:#a87942;border-radius:24px;background:linear-gradient(135deg,#dfb77e,#b8844b);box-shadow:inset 0 0 0 2px #e2bf8e,0 8px 0 #583c24,0 15px 30px #39261355}.goods-tray h2{margin:0 3px 14px;color:#fff4d8;text-shadow:0 1px #694621;font:23px/1.15 var(--serif);letter-spacing:-.015em}.goods-tray .products-grid,.goods-tray .products-grid.many{display:grid;grid-template-columns:repeat(var(--goods-columns),minmax(0,1fr));gap:9px;margin:0;max-height:calc(100svh - 334px);overflow:auto;padding:1px 2px 6px;scrollbar-width:thin;scrollbar-color:#76512c #d5ad73}.goods-tray .product-tile{aspect-ratio:1.05;min-width:0;border:2px solid #b39462;border-radius:14px;background:#fff9e9;box-shadow:0 4px 0 #765633;overflow:hidden;transition:transform .15s,border-color .15s}.goods-tray .product-tile.selected{background:#e2ebce;border-color:#3c6a51;box-shadow:0 4px 0 #3d6248,inset 0 0 0 1px #769567;transform:translateY(-1px)}.goods-tray .product-toggle,.goods-tray .products-grid.many .product-toggle{height:100%;min-height:0;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:11px}.goods-tray .sprite,.goods-tray .products-grid.many .sprite{width:80%;max-width:105px}.goods-tray .tick{left:5px;top:5px;width:14px;height:14px;border-radius:5px;font-size:9px;line-height:1;background:#fff8e7;border-color:#a99370}.goods-tray .selected .tick{background:#39664d;border-color:#39664d}.goods-tray .quantity-control{position:absolute;z-index:2;bottom:3px;left:50%;transform:translateX(-50%);height:19px;min-width:62px;gap:5px;border:1px solid #a8b894;border-radius:10px;padding:0 3px;background:#fff9e5;color:#315c45;font-size:9px;line-height:1}.goods-tray .quantity-control button{border:0;background:transparent;width:18px;height:18px;font-size:14px}.goods-tray .quantity-placeholder{display:none}.goods-tray .product-name{font-size:9px;bottom:5px;color:#715537}.goods-tray .with-labels .product-toggle{padding-bottom:17px}.goods-tray .with-labels .selected .product-name{bottom:24px}.goods-tray .with-labels .sprite{width:69%}.counter-controls{position:absolute;left:0;right:0;bottom:0;height:146px;pointer-events:none}.counter-controls>*{pointer-events:auto}.basket-crate{position:absolute;left:42px;bottom:27px;padding:14px 20px;background:linear-gradient(#f8e0ac,#dfbb77);border:4px solid #9e733d;border-radius:18px;box-shadow:0 5px 0 #5b3e24;display:flex;align-items:center;gap:13px;color:#684824;font:bold 20px var(--serif);transform:rotate(-3deg)}.basket-crate:hover{background:linear-gradient(#fff0c4,#edcf95)}.basket-crate>.icon{width:43px;height:43px;stroke:#8b602d}.basket-crate small{display:block;font:10px var(--font);margin-top:5px;color:#836337}.answer-bubble{position:absolute;bottom:49px;left:30%;background:#fff8e7;border:3px solid #b1905f;border-radius:24px 24px 5px 24px;padding:13px 19px;font:17px var(--serif);color:#76502d;box-shadow:0 4px 0 #68432455}.answer-bubble:hover:not(:disabled){background:#fffdf1;transform:translateY(-1px)}.cash-terminal{position:absolute;bottom:17px;right:34px;width:min(365px,31%);display:flex;align-items:stretch;gap:10px;padding:13px 14px;border:5px solid #475148;border-radius:23px;background:linear-gradient(135deg,#526155,#303e35);box-shadow:0 7px 0 #243026,0 12px 20px #38281688;transform:rotate(-1deg)}.terminal-screen{flex:1;min-width:0;background:#dfe9be;border:4px solid #273d2f;border-radius:9px;padding:7px 10px;min-height:74px;box-shadow:inset 0 2px 8px #7c8e6766}.terminal-screen label{display:block;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#5c6b47;font-weight:600;white-space:nowrap}.terminal-input{display:flex;align-items:center;gap:2px;margin-top:5px}.terminal-input input{width:100%;min-width:0;background:transparent;border:0;outline:0!important;box-shadow:none;font:30px/1.1 var(--serif);color:#344c32;text-align:right;letter-spacing:.03em;padding:0}.terminal-input>span{color:#5b7048;font:26px var(--serif)}.terminal-screen:focus-within{background:#eef3d3}.terminal-pay{width:100px;flex-shrink:0;border:2px solid #9db47b;border-radius:12px;box-shadow:0 4px 0 #203e25;background:linear-gradient(#648b56,#3d6a40);color:#fff1ce;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:750;gap:5px;padding:6px}.terminal-pay .icon{width:26px;height:26px;stroke-width:3}.terminal-pay:hover:not(:disabled){background:linear-gradient(#759c65,#4c7a4b)}.terminal-pay:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #203e25}dialog{border:6px solid #a47b45;border-radius:23px;background:linear-gradient(130deg,#fff8e4,#f2e0b7);box-shadow:0 10px 0 #5f4126,0 25px 100px #2e1c1290}dialog::backdrop{background:#2d1e1280;backdrop-filter:blur(3px)}.modal-heading{border-color:#d4b984}.modal-heading h2{font-weight:bold;color:#725332}.modal-heading .icon-button{background:#e5c992;color:#79572e}.setting-row{border-color:#ddc598}.setting-row label{color:#71512f}.setting-row select{background:#fff7df;border:2px solid #c5a977}.basket-card .basket-item{background:#fff6dc}.review-event .mn-transcript{background:#e5e6c7;color:#496044}.history-entry{background:#fff7e0;border-color:#d5b982}.bag-paper{box-shadow:0 7px 10px #5c3c2055}.menu-board,.result-board{animation:board-enter .4s ease-out both}.game-board .level-badge,.level-badge{display:none}
@keyframes game-voice{50%{box-shadow:inset 0 0 40px #ffe0a522}}@keyframes board-enter{from{opacity:0;transform:translateY(15px) rotate(2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(min-width:1500px){.game-shell,#game{min-height:800px}.goods-tray{width:53%;right:42px;top:120px}.goods-tray .products-grid{max-height:calc(100svh - 350px)}.npc-speech{left:4%;bottom:195px;width:285px}.npc-speech h2{font-size:27px}.cash-terminal{width:400px;right:42px}.terminal-screen{min-height:81px}.terminal-input input{font-size:34px}.basket-crate{left:4%}.game-board{right:5%;width:540px}.basket-preview{width:53%;max-width:720px}.basket-preview .basket-item .sprite{width:75px}}
@media(max-width:1100px) and (min-width:901px){.goods-tray{right:20px;width:56%;padding:13px;border-width:6px}.goods-tray h2{font-size:21px}.goods-tray .products-grid,.goods-tray .products-grid.many{gap:7px}.npc-speech{left:22px;bottom:180px;width:215px;padding:14px 13px}.npc-speech h2{font-size:22px}.basket-crate{left:23px;padding:12px 15px;font-size:17px}.basket-crate>.icon{width:34px;height:34px}.answer-bubble{left:27%;font-size:15px;padding:13px 14px;bottom:48px}.cash-terminal{right:21px;width:34%;padding:10px;gap:7px}.terminal-pay{width:83px}.terminal-screen{padding:7px}.terminal-input input{font-size:26px}.game-board{right:24px;width:52%}.basket-preview{width:56%}.game-hud{left:22px;right:22px}.game-hud .wordmark{font-size:28px}}
@media(max-width:900px){.game-shell{height:auto;min-height:1050px;overflow:hidden}.shop-scene{position:absolute;height:100%;background-size:auto 780px;background-position:24% top;background-color:#8f633a;background-repeat:no-repeat}.shop-scene:after{background:linear-gradient(180deg,#30250f22,transparent 250px,#50341f44 580px,#5e3d29 950px)}.game-hud{top:17px;left:18px;right:18px}.wordmark{font-size:28px;padding:8px 17px 11px;border-width:3px}.wordmark span{font-size:8px}.game-hud .icon-button{width:36px;height:36px;border-width:2px}.game-hud nav{gap:5px}.game-hud .icon-button .icon{width:16px;height:16px}.counter-surface{height:164px}#game{height:auto;min-height:1050px}.goods-tray{top:345px;left:18px;right:18px;width:auto;padding:13px 13px 11px;border-width:6px}.goods-tray h2{font-size:25px;text-align:center;margin-bottom:12px}.goods-tray .products-grid,.goods-tray .products-grid.many{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:470px}.goods-tray .product-tile{aspect-ratio:1.05}.goods-tray .tick{width:14px;height:14px}.npc-speech{top:123px;bottom:auto;left:auto;right:25px;width:255px;padding:13px 17px 11px}.npc-speech:before{left:-16px;right:auto;top:27px;transform:skewX(35deg);width:24px;height:24px;border:0;border-left:3px solid #ba9867;border-top:3px solid #ba9867}.npc-speech h2{font-size:23px;margin-bottom:10px}.npc-speech .waveform{margin-top:10px;height:15px}.npc-speech .feedback{font-size:10px}.counter-controls{height:164px;bottom:0}.cash-terminal{bottom:27px;right:20px;width:48%;max-width:365px}.basket-crate{left:22px;bottom:83px;font-size:18px;padding:10px 17px;gap:8px;border-width:3px}.basket-crate>.icon{width:29px;height:29px}.basket-crate small{font-size:9px}.answer-bubble{left:24px;bottom:25px;font-size:15px;padding:11px 16px;border-width:2px}.game-board{position:absolute;top:340px;left:8%;right:8%;width:auto;max-width:none;max-height:none;padding:28px;border-width:6px}.menu-board{top:370px}.menu-board h1{font-size:36px}.basket-preview{top:325px;max-height:650px;left:22px;right:22px;padding:21px}.basket-preview .basket-card{max-height:470px;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.basket-preview .basket-item .sprite{width:65px}.basket-preview .basket-item-text{font-size:11px}.result-board{top:330px;left:12%;right:12%;max-height:650px;overflow:auto}.result-board .receipt{max-height:340px}.collected-screen{top:360px}.phase-home .counter-surface{height:100px}.game-board .lead{font-size:13px}.goods-tray .quantity-control{gap:4px;min-width:58px}.goods-tray .quantity-control button{width:17px;height:17px}.goods-tray .product-name{font-size:8px}.goods-tray .with-labels .product-toggle{padding-bottom:14px}}
@media(max-width:580px){.game-shell,#game{min-height:1070px}.shop-scene{background-size:auto 530px;background-position:25% top}.game-hud{left:12px;right:12px;top:12px}.wordmark{font-size:24px;padding:9px 14px;border-radius:12px}.wordmark span{font-size:6px;margin-top:5px;letter-spacing:.14em}.game-hud nav{gap:3px}.game-hud .icon-button{width:30px;height:31px}.game-hud .icon-button .icon{width:14px;height:14px}#fullscreen-button{display:none}.npc-speech{top:125px;right:14px;width:185px;padding:12px 10px 8px;border-width:2px;border-radius:20px 20px 20px 5px}.npc-speech:before{border-width:2px}.npc-speech h2{font-size:20px;margin-bottom:10px}.listen-button{min-width:128px;min-height:38px;font-size:12px;padding:8px 10px}.listen-button .icon{width:15px;height:15px}.npc-speech .waveform{height:13px;margin-top:9px}.npc-speech .waveform i{width:2px}.npc-speech .replay-button{font-size:9px;padding:3px 5px;min-height:23px}.npc-speech .feedback{font-size:9px;min-height:13px;margin-top:2px}.goods-tray{top:333px;left:11px;right:11px;padding:12px 9px 10px;border-width:5px;border-radius:20px}.goods-tray h2{font-size:22px;margin-bottom:12px}.goods-tray .products-grid,.goods-tray .products-grid.many{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:440px}.goods-tray .product-tile{aspect-ratio:1.02;border-width:1.5px;border-radius:11px}.goods-tray .quantity-control{min-width:55px;bottom:2px;height:18px;font-size:9px;gap:3px}.goods-tray .quantity-control button{font-size:14px;width:17px}.goods-tray .tick{left:4px;top:4px;width:12px;height:12px;font-size:8px;border-radius:4px}.goods-tray .sprite,.goods-tray .products-grid.many .sprite{width:82%}.goods-tray .product-name{font-size:7px;line-height:1.2}.goods-tray .with-labels .sprite{width:70%}.counter-surface{height:210px;border-top-width:7px}.counter-controls{height:210px}.cash-terminal{left:auto;right:12px;bottom:70px;width:calc(100% - 24px);max-width:none;border-width:4px;border-radius:19px;padding:10px 12px;gap:9px;transform:rotate(-1deg)}.terminal-screen{min-height:63px;border-width:3px;padding:5px 9px}.terminal-screen label{font-size:8px}.terminal-input{margin-top:5px}.terminal-input input{font-size:29px}.terminal-input>span{font-size:23px}.terminal-pay{width:91px;border-radius:10px;font-size:12px}.terminal-pay .icon{width:23px;height:23px}.basket-crate{left:15px;bottom:13px;padding:8px 12px;font-size:16px;border-width:3px;border-radius:13px;gap:7px}.basket-crate>.icon{width:25px;height:25px}.basket-crate small{display:none}.answer-bubble{left:auto;right:14px;bottom:14px;padding:10px 12px;font-size:14px;border-width:2px;border-radius:18px 18px 4px 18px;max-width:48%;line-height:1.1}.game-board{top:330px;left:13px;right:13px;border-width:5px;border-radius:20px;padding:24px 20px}.menu-board{top:365px}.game-board h1{font-size:31px}.game-board h2{font-size:29px}.game-board .lead{font-size:12px}.game-menu-hint{font-size:11px}.basket-preview{top:320px;padding:21px 13px;max-height:700px}.basket-preview .basket-card{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:490px}.basket-preview .basket-item{padding:5px 3px;gap:1px;border-width:1px}.basket-preview .basket-item .sprite{width:55px;max-width:95%}.basket-preview .basket-item-text{font-size:9px;line-height:1.3}.basket-preview .basket-item-quantity{font-size:8px}.basket-preview .screen-description{font-size:11px}.result-board{top:330px;max-height:690px}.result-board .receipt{max-height:350px;padding:10px 11px}.result-board .receipt-row{font-size:10px}.receipt-total{font-size:12px}.receipt-total strong{font-size:20px}.game-board .primary{font-size:13px}.game-board .quiet-button{font-size:11px}.collected-screen{top:350px}.collected-screen .bag-illustration{transform:scale(.85);margin-top:0;margin-bottom:14px}.storage-notice{top:95px;left:14px;width:170px;font-size:8px}}
@media(max-width:360px){.wordmark{font-size:21px;padding:9px 11px}.game-hud .icon-button{width:27px;height:29px}.game-hud nav{gap:2px}.npc-speech{width:169px;right:11px;top:130px}.npc-speech h2{font-size:19px}.goods-tray h2{font-size:20px}.goods-tray .products-grid{gap:6px}.basket-crate{font-size:14px;left:13px;padding:8px 9px}.answer-bubble{font-size:12px;padding:11px 10px;right:12px}}
@media(prefers-reduced-motion:reduce){.menu-board,.result-board,.bag-illustration,.speaking-light,.waveform i{animation:none!important}}

/* Readable product labels keep their own space beneath the illustration. */
.goods-tray .products-grid.with-labels{grid-template-columns:repeat(auto-fit,minmax(min(108px,100%),1fr))}
.goods-tray .with-labels .product-tile{aspect-ratio:auto;display:flex;flex-direction:column;min-height:164px}
.goods-tray .with-labels .product-toggle,.goods-tray .products-grid.many.with-labels .product-toggle{height:auto;min-height:0;flex:1;flex-direction:column;justify-content:flex-start;gap:5px;padding:10px 6px 7px}
.goods-tray .with-labels .sprite,.goods-tray .products-grid.many.with-labels .sprite{width:82%;max-width:82px}
.goods-tray .with-labels .product-name,.goods-tray .with-labels .selected .product-name{position:static;display:flex;align-items:center;justify-content:center;width:100%;min-height:2.5em;padding:0 2px;font-size:18px;font-weight:600;line-height:1.25;color:#4b3825;overflow-wrap:anywhere}
.goods-tray .with-labels .quantity-control{position:static;align-self:center;transform:none;flex-shrink:0;min-width:80px;height:28px;margin:0 3px 7px;font-size:14px;gap:7px}
.goods-tray .with-labels .quantity-control button{width:24px;height:24px;font-size:18px}
.basket-card .basket-item-text>span[lang="mn"]{font-size:16px;font-weight:600;line-height:1.4;color:#4b3825}
.speech-help-actions{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:3px}
.npc-speech .speech-help-actions .replay-button,.npc-speech .hint-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:5px 6px;border:0;border-radius:8px;background:transparent;color:#765635;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}
.npc-speech .hint-button:hover:not(:disabled){background:#eee1c5}
.npc-speech .hint-button .icon{width:16px;height:16px;flex-shrink:0}
.hint-transcript{font-size:20px;font-weight:500;line-height:1.65;padding:15px 16px;margin:15px 0;color:#315346}
.hint-translation{border:1px solid #cbb184;border-radius:12px;background:#fff8e5;margin:15px 0;overflow:hidden}
.hint-translation>summary{padding:13px 15px;cursor:pointer;font-size:15px;font-weight:650;color:#684925}
.hint-goods{list-style:none;margin:0;padding:0 15px 6px;display:grid;gap:8px;font-size:16px}
.hint-goods li{display:flex;justify-content:space-between;gap:16px}
.hint-goods strong{white-space:nowrap}
.hint-total{margin:0 15px 15px;padding-top:10px;border-top:1px solid #dfcba6;font-size:16px}
.hint-note{margin:15px 0 20px;color:#806746;font-size:13px;line-height:1.6}
@media(max-width:580px){
  .goods-tray .products-grid.with-labels{grid-template-columns:repeat(3,minmax(0,1fr))}
  .goods-tray .with-labels .product-tile{min-height:151px}
  .goods-tray .with-labels .product-toggle,.goods-tray .products-grid.many.with-labels .product-toggle{padding:8px 4px 6px}
  .goods-tray .with-labels .sprite,.goods-tray .products-grid.many.with-labels .sprite{max-width:68px}
  .goods-tray .with-labels .product-name,.goods-tray .with-labels .selected .product-name{font-size:16px}
  .goods-tray .with-labels .quantity-control{min-width:72px;gap:4px}
  .npc-speech .speech-help-actions{gap:3px}
  .npc-speech .speech-help-actions .replay-button,.npc-speech .hint-button{font-size:11px;padding:5px 3px;gap:3px}
  .npc-speech .hint-button .icon{width:14px;height:14px}
  .hint-transcript{font-size:18px;padding:12px}
}
/* On narrow screens the whole checkout scrolls together, without cut-off rows. */
@media(max-width:900px){
  body[data-phase="answering"] .game-shell{height:auto;min-height:100svh}
  body[data-phase="answering"] #game{height:auto;min-height:100svh;display:flex;flex-direction:column;padding:345px 0 0}
  body[data-phase="answering"] #answer-form{display:flex;flex:1;flex-direction:column;gap:18px;min-width:0}
  body[data-phase="answering"] .goods-tray{position:relative;top:auto;bottom:auto;left:auto;right:auto;width:auto;flex-shrink:0;margin:0 18px}
  body[data-phase="answering"] .goods-tray .products-grid{max-height:none;overflow:visible}
  body[data-phase="answering"] .counter-controls{position:relative;left:auto;right:auto;bottom:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;height:auto;min-height:218px;margin-top:auto;padding:18px 18px 20px;align-items:stretch}
  body[data-phase="answering"] .cash-terminal{position:relative;grid-column:1/-1;grid-row:1;justify-self:center;top:auto;left:auto;right:auto;bottom:auto;width:100%;max-width:520px;transform:none;margin:0}
  body[data-phase="answering"] .basket-crate,body[data-phase="answering"] .answer-bubble{position:static;align-self:stretch;display:flex;align-items:center;justify-content:center;width:100%;max-width:none;min-height:56px;margin:0;padding:10px 9px;transform:none;border-width:2px;border-radius:13px;font-size:16px;line-height:1.25;text-align:center;white-space:normal}
  body[data-phase="answering"] .basket-crate{grid-row:2;grid-column:1;gap:7px}
  body[data-phase="answering"] .basket-crate>.icon{width:23px;height:23px;flex-shrink:0}
  body[data-phase="answering"] .basket-crate small{display:none}
  body[data-phase="answering"] .answer-bubble{grid-row:2;grid-column:2}
  body[data-phase="answering"] .answer-bubble:hover:not(:disabled){transform:none}
  body[data-phase="answering"] .terminal-screen label{font-size:11px;letter-spacing:.025em}
  body[data-phase="answering"] .terminal-pay{font-size:14px}
  body[data-phase="answering"] .counter-surface{height:238px}
}
@media(max-width:580px){
  body[data-phase="answering"] #game{padding-top:333px}
  body[data-phase="answering"] .goods-tray{margin:0 11px}
  body[data-phase="answering"] .counter-controls{padding:18px 12px 20px}
  body[data-phase="answering"] .answer-bubble{font-size:15px}
}

.review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stats-note{margin:0 0 16px;font-size:12px;line-height:1.5;color:#806746}
.review-hint{margin:8px 0;color:#80602b;font-size:13px;font-weight:600}
@media(max-width:580px){.review-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.history-entry>summary{align-items:flex-start}.history-status{max-width:55%;text-align:right;line-height:1.4}}

/* A collection of medals on the shop's paper board. */
.menu-achievements{display:inline-flex;align-items:center;gap:7px;margin-top:15px;font-size:12px}
.menu-achievements .icon{width:17px;height:17px;color:#9b702c}
.achievement-entry{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:13px 15px;margin:0 0 20px;border:2px solid #c7a26a;border-radius:14px;background:linear-gradient(120deg,#fff3c7,#f1d8a2);box-shadow:0 3px 0 #b28b52;color:#705022}
.achievement-entry>.icon:first-child{width:34px;height:34px;color:#a87b25}
.achievement-entry>span{display:grid;gap:3px;flex:1}
.achievement-entry strong{font-size:17px}
.achievement-entry small{font-size:13px;color:#8b6d43}
.achievement-entry>.icon:last-child{width:22px;height:22px}
#modal:has(.achievements-content){width:min(800px,calc(100vw - 24px))}
.achievements-intro{display:flex;align-items:center;gap:17px;margin-bottom:14px}
.achievements-emblem{display:grid;place-items:center;flex-shrink:0;width:66px;height:66px;border:3px solid #ba913b;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff1ab,#d6ac51);box-shadow:0 4px 0 #9c7330,inset 0 0 0 3px #fff0b777;color:#825a1d}
.achievements-emblem .icon{width:38px;height:38px}
.achievements-intro h3{margin:0 0 3px;font:30px/1.2 var(--serif);font-weight:bold;color:#674822}
.achievements-intro p{margin:0;color:#806746;font-size:14px;line-height:1.5}
.achievement-guidance{font-size:13px;line-height:1.6;color:#8a704d;margin:0 0 18px}
.achievement-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
.achievement-filter{border:1px solid #c2a16b;border-radius:20px;padding:8px 15px;min-height:38px;background:#fff6df;color:#7c5b30;font-size:14px;font-weight:600}
.achievement-filter.active{background:#426b55;border-color:#426b55;color:#fff5db;box-shadow:0 2px 0 #244b35}
.achievements-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.achievement-card{min-width:0;display:flex;align-items:flex-start;gap:13px;padding:16px 13px;border:2px solid #d0b68a;border-radius:16px;background:#f5ead2;box-shadow:0 3px 0 #c8ad80}
.achievement-card.is-unlocked{border-color:#b69a53;background:linear-gradient(130deg,#fff6d8,#eee3b8);box-shadow:0 3px 0 #9a8146,inset 0 0 0 1px #fff8dc}
.achievement-medal{position:relative;display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:2px solid #baa785;border-radius:50%;background:#e3d7bf;color:#9e9078;box-shadow:inset 0 0 0 3px #f4eddd}
.is-unlocked .achievement-medal{border-color:#b18a35;background:radial-gradient(circle at 35% 25%,#fff1a4,#d6ad4a);color:#7c571c;box-shadow:inset 0 0 0 3px #fff0b7,0 3px 0 #9b7733}
.achievement-medal>.icon{width:26px;height:26px}
.achievement-seal{position:absolute;bottom:-5px;right:-5px;display:grid;place-items:center;width:20px;height:20px;background:#ede1c8;border:1px solid #b6a181;border-radius:50%;color:#9a8562}
.achievement-seal .icon{width:12px;height:12px}
.is-unlocked .achievement-seal{color:#fff5da;background:#4b7256;border-color:#4b7256}
.achievement-copy{min-width:0;flex:1}
.achievement-group{font-size:11px;line-height:1.4;color:#9a7a4d;margin:0 0 4px;letter-spacing:.03em}
.achievement-copy h3{font-size:17px;line-height:1.3;color:#684a26;margin:0 0 7px;font-weight:750}
.achievement-description{font-size:14px;line-height:1.5;color:#8c7553;margin:0 0 13px}
.achievement-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#9a805c;margin-bottom:6px}
.achievement-progress strong{font-weight:600;color:#9a805c}
.is-unlocked .achievement-progress strong{color:#4d7350}
.achievement-copy progress{display:block;width:100%;height:7px;border:0;border-radius:10px;background:#d9c9a8;appearance:none}
.achievement-copy progress::-webkit-progress-bar{background:#d9c9a8;border-radius:10px}
.achievement-copy progress::-webkit-progress-value{background:#b2a17d;border-radius:10px}
.is-unlocked .achievement-copy progress::-webkit-progress-value{background:#69865b}
.achievement-copy progress::-moz-progress-bar{background:#b2a17d;border-radius:10px}
.is-unlocked .achievement-copy progress::-moz-progress-bar{background:#69865b}
.achievement-empty{grid-column:1/-1;color:#8a704d;padding:22px 12px;font-size:15px;line-height:1.6;text-align:center}
.achievement-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:70;display:flex;align-items:center;gap:12px;width:min(560px,calc(100vw - 24px));padding:15px 42px 15px 15px;border:3px solid #b99350;border-radius:17px;background:linear-gradient(120deg,#fff5d6,#efd8a5);box-shadow:0 5px 0 #76522d,0 10px 28px #34220d55;color:#6e4d24;animation:achievement-pop .35s ease-out}
.achievement-toast[hidden]{display:none}
.achievement-toast-medal{display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;border:2px solid #b89140;border-radius:50%;background:#f0cc6e;color:#88601e}
.achievement-toast-medal .icon{width:26px;height:26px}
.achievement-toast>div{min-width:0;flex:1}
.achievement-toast strong{font-size:15px}
.achievement-toast p{font-size:13px;line-height:1.45;margin:3px 0 0}
.achievement-toast-view{border:1px solid #b08b4c;border-radius:9px;background:#fff8e3;padding:9px 10px;min-height:38px;color:#725025;font-weight:600;font-size:13px}
.achievement-toast-close{position:absolute;top:7px;right:7px;border:0;background:transparent;color:#947448;padding:4px}
.achievement-toast-close .icon{width:17px;height:17px}
@keyframes achievement-pop{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@media(max-width:580px){
  .game-hud nav{display:grid;grid-template-columns:repeat(2,30px);gap:4px}
  .game-hud .icon-button{width:30px;height:31px}
  .achievements-grid{grid-template-columns:minmax(0,1fr);gap:11px}
  .achievement-card{padding:15px 12px;gap:13px}
  .achievement-description{font-size:14px}
  .achievements-intro{gap:12px}
  .achievements-emblem{width:56px;height:56px}
  .achievements-emblem .icon{width:32px;height:32px}
  .achievements-intro h3{font-size:27px}
  .achievement-toast{gap:9px;padding:13px 32px 13px 12px;flex-wrap:wrap}
  .achievement-toast-view{margin-left:50px}
  .achievement-toast strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.achievement-toast{animation:none}}
@media(max-width:360px){
  .achievement-card{gap:9px;padding:14px 10px}
  .achievement-medal{flex-basis:36px;width:36px;height:36px}
  .achievement-medal>.icon{width:23px;height:23px}
  .achievement-copy h3{font-size:16px;overflow-wrap:anywhere;hyphens:auto}
  .achievement-description{overflow-wrap:anywhere;hyphens:auto}
}

/* Fifty painted characters, one illustration for each achievement. */
.achievement-art{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size:500% 500%;flex-shrink:0}
.achievement-art.atlas-a{background-image:url('assets/achievements/characters-a-v1.png')}
.achievement-art.atlas-b{background-image:url('assets/achievements/characters-b-v1.png')}
.achievement-medal,.is-unlocked .achievement-medal{flex-basis:84px;width:84px;height:84px;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;cursor:pointer;transition:transform .16s}
.achievement-medal:hover{transform:translateY(-2px)}
.achievement-medal:focus-visible{outline:3px solid #9d7d34;outline-offset:3px;border-radius:12px}
.is-locked .achievement-medal .achievement-art{filter:saturate(.82);opacity:.9}
.achievement-seal{right:-2px;bottom:-2px;width:23px;height:23px;background:#f2e4c8;border:2px solid #c5aa7d}
.achievement-seal .icon{width:13px;height:13px}
.achievement-toast-illustration{display:block;flex:0 0 60px;width:60px;height:60px}
.achievement-detail{text-align:center}
.achievement-art-large{width:min(250px,80%);height:auto;aspect-ratio:1;margin:0 auto 17px}
.achievement-detail-state{font-size:13px;font-weight:600;color:#8b704b;margin:0 0 8px}
.achievement-detail h3{font:29px/1.2 var(--serif);font-weight:bold;color:#674a25;margin:0 0 12px}
.achievement-detail-description{font-size:16px;line-height:1.6;color:#816b4b;margin:0 auto 12px;max-width:430px}
.achievement-detail-count{font-size:15px;color:#927a54;margin:0 0 22px}
@media(max-width:360px){.achievement-medal,.is-unlocked .achievement-medal{flex-basis:65px;width:65px;height:65px}.achievement-copy h3{font-size:16px;overflow-wrap:anywhere}.achievement-description{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.achievement-medal{transition:none}.achievement-medal:hover{transform:none}}
.achievement-group{overflow-wrap:anywhere;hyphens:auto}
