body[data-theme="market"]{background:radial-gradient(ellipse at 50% 0,#fff7d7,#f3dfba 65%);--font-display:'Baloo 2','Trebuchet MS',sans-serif}
body[data-theme="market"] .game-shell{max-width:960px;padding-bottom:16px}
body[data-theme="market"] .game-heading{padding-bottom:12px}
.market-world{position:relative;max-width:930px;margin:auto;border-radius:28px;overflow:hidden;background:linear-gradient(110deg,#e8f9ea,#c4ebe2);border:1px solid #fff9;box-shadow:0 20px 50px #68432624;isolation:isolate}
.market-awning{position:absolute;inset:0 0 auto;height:28px;z-index:4;background:repeating-linear-gradient(90deg,#f46e5c 0 66px,#fff1cb 66px 132px);border-radius:0 0 15px 15px;box-shadow:0 5px 0 #be603328,0 9px 18px #54432616}
.customer-area{position:relative;height:225px;display:flex;align-items:flex-start;justify-content:center;gap:30px;padding:31px 30px 0;overflow:hidden;background:radial-gradient(ellipse at 48% 10%,#f1ffe5,transparent 55%)}
.customer-area:after{content:'';position:absolute;inset:auto -15px -28px;height:50px;border-radius:50%;background:#a7c885;z-index:-1}
.shop-window{position:absolute;left:7%;top:45px;width:170px;height:160px;border:10px solid #fff7df;border-radius:80px 80px 10px 10px;background:linear-gradient(#9cdef0,#c5eeed);box-shadow:0 5px 0 #7ba68f26;z-index:-1;overflow:hidden}
.shop-window span{position:absolute;left:20px;top:20px;background:#fff7b9;border-radius:50%;width:40px;height:40px;box-shadow:0 0 20px #fff5ad}
.shop-window i{position:absolute;left:-20px;right:-20px;bottom:-25px;height:75px;background:#6cab65;border-radius:50% 60% 0 0}
.glee-wrap{position:relative;align-self:flex-end;width:170px;height:193px;flex:none}
.market-glee{width:180px;height:193px;object-fit:contain;filter:drop-shadow(0 8px 7px #365a3d2e);transform-origin:bottom center}
.request-bubble{position:relative;align-self:center;background:#fffdf2;border-radius:24px 24px 24px 5px;padding:10px 22px 12px;box-shadow:0 5px 0 #8bb3a32b;min-width:240px;margin-top:3px}
.request-bubble:before{content:'';position:absolute;left:-13px;bottom:17px;border-right:19px solid #fffdf2;border-top:10px solid transparent;border-bottom:10px solid transparent}
.request-copy{display:block;font-size:20px;font-weight:800;color:#24584e;text-align:center;line-height:1.15}
.request-foods{display:flex;justify-content:center;gap:23px;margin-top:4px}
.request-food{position:relative;display:flex;flex-direction:column;align-items:center;font-size:13px;font-weight:600;line-height:1.1}
.food-art{display:block;width:83px;height:83px;flex:none;filter:drop-shadow(0 3px 2px #6e4a1412)}
.request-food b,.produce-picture b{position:absolute;right:-4px;bottom:17px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#167c69;color:#fff;border:3px solid #fffbe8;font-size:14px}
.market-worktop{position:relative;padding:19px 28px 9px;background:linear-gradient(#f3c38b,#e7aa6f);border-top:9px solid #fbd6a4;box-shadow:inset 0 5px 0 #bb82482e}
.market-worktop:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 84px,#9c5d2510 84px 86px);z-index:-1}
.market-worktop h2{font-size:29px;text-align:center;color:#234e45;margin:0 0 13px;line-height:1.1;font-weight:800}
.market-worktop h2:focus{outline:none}
.produce-shelves{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;border-bottom:9px solid #c8874b;padding-bottom:8px;box-shadow:0 3px 1px #74492720}
.produce{display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative;padding:7px 3px 8px;border-radius:20px 20px 6px 6px;border:2px solid #b8793e;background:linear-gradient(#fff9dc,#f7d8a4);box-shadow:0 4px 0 #a56835;transition:transform .15s,border-color .15s;min-width:44px;min-height:44px;color:#3c4d38}
.produce-picture{position:relative;display:block}
.produce.is-picked{background:linear-gradient(#e7fcd5,#a7d8ae);border-color:#3e8b72;box-shadow:0 4px 0 #3f856c}
.produce.is-picked .food-art{transform:scale(.92)}
.produce.is-wrong{animation:soft-no .22s ease 1;border-color:#dd735b}
.produce:hover{transform:translateY(-3px)}
.produce-name{font-size:13px;font-weight:700;line-height:1.1}
.price-pips{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:4px;min-height:20px}
.price-pips strong{font-size:16px;line-height:1;color:#795218}
.count-pips{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap}
.count-pips i{display:block;width:10px;height:10px;background:#f4b62e;border:1px solid #ad7718;border-radius:50%;box-shadow:inset 1px 1px 0 #fff0ac}
.pack-counter{display:flex;align-items:center;justify-content:center;gap:30px;margin-top:13px;height:100px}
.shop-basket{position:relative;display:flex;align-items:flex-end;justify-content:center;width:170px;height:83px;flex:none}
.basket-foods{display:flex;position:absolute;bottom:14px;z-index:1;justify-content:center}
.basket-foods .food-art{width:66px;height:66px}
.empty-fruit{width:50px;height:43px;border:2px dashed #91cab97a;border-radius:40%;margin:7px 6px}
.basket-handle{position:absolute;inset:12px 8px 8px;border:7px solid #177d7a;border-radius:26px 26px 8px 8px;z-index:0}
.basket-front{position:absolute;inset:39px 0 0;display:flex;align-items:center;justify-content:space-evenly;background:linear-gradient(#36b8a4,#179884);border:4px solid #127d76;border-top:6px solid #52c9ad;border-radius:4px 4px 16px 16px;z-index:2;box-shadow:0 6px 0 #815c3b21}
.basket-front i{display:block;height:23px;width:9px;background:#b7ecd17d;border-radius:4px;box-shadow:inset 2px 1px 0 #055f612a}
.basket-count{display:flex;gap:7px}
.basket-count i{display:grid;place-items:center;width:25px;height:25px;border:2px dashed #966a40;border-radius:50%;font-style:normal;font-size:16px;font-weight:800;color:#fff}
.basket-count i.done{background:#237b68;border:2px solid #237b68}
.market-worktop .primary,.market-worktop .secondary{min-height:48px;font-size:18px;padding:11px 24px;line-height:1.1;white-space:normal}
.market-worktop .primary{background:#176e67;box-shadow:0 4px 0 #0b4c4c;border-radius:18px}
.market-worktop .secondary{background:#fff3d1;border-color:#bd8f55;box-shadow:0 3px 0 #c7965f}
.market-worktop button:disabled{opacity:.5;cursor:default;transform:none}
.market-feedback{text-align:center;min-height:20px;line-height:1.15;font-size:14px;color:#59422e;margin:10px 0 0;font-weight:600}
.basket-payment{max-width:600px;margin:auto}
.basket-price-view{display:flex;justify-content:center;align-items:center;gap:15px}
.food-price{display:grid;grid-template-columns:58px 20px;align-items:center;position:relative}
.food-price .food-art{width:58px;height:58px;grid-row:1/3}
.food-price .count-pips{grid-column:2;flex-direction:column;gap:3px}
.food-price strong{position:absolute;right:-5px;bottom:-2px;font-size:13px}
.price-plus,.price-equals{color:#70502f;font-size:26px;font-weight:800}
.total-price{display:flex;align-items:center;gap:10px;color:#176e67}
.total-price strong{font-size:38px;line-height:1}
.total-price .count-pips{max-width:37px;gap:4px}
.total-price .count-pips i{width:13px;height:13px}
.counting-tray{display:flex;align-items:center;justify-content:center;gap:15px;min-height:75px;margin:13px 0;background:#fdf3d1;border:3px solid #cd9d54;box-shadow:inset 0 4px 0 #d2ad6a26,0 4px 0 #956e3c22;border-radius:26px;padding:12px}
.unit-slots{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:390px}
.unit-slot{display:grid;place-items:center;width:35px;height:35px;flex:none;border:2px dashed #bd9c5d;border-radius:50%;background:#e8dab6}
.unit-slot i,.coin-group i{display:block;width:29px;height:29px;border:3px solid #d8a128;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff3a4,#ffd33e 55%,#e6a820);box-shadow:inset 0 0 0 2px #ffe990,0 2px 0 #b38214}
.unit-slot.filled{background:transparent;border-color:transparent}
.unit-slot.extra{background:#ffc5aa;border-color:#c76a41}
.tray-count{font-size:17px;white-space:nowrap;color:#82642d}
.tray-count strong{font-size:24px;color:#176e67}
.token-bank{display:flex;align-items:stretch;justify-content:center;gap:15px}
.add-token{display:flex;align-items:center;justify-content:center;gap:10px;min-height:63px;padding:10px 18px;background:#fff3c8;border:2px solid #b88535;border-radius:18px;box-shadow:0 4px 0 #bc863a;font-size:17px;font-weight:700;min-width:108px}
.add-token:hover{background:#fff9dd}
.coin-group{display:flex;gap:4px}
.coin-group i{width:26px;height:26px}
.payment-actions{display:flex;justify-content:center;gap:16px;margin-top:17px}
.payment-actions>*{min-width:180px}
.handover-counter,.thanks-counter{position:relative;display:flex;align-items:center;justify-content:center;gap:45px;min-height:191px}
.shop-basket.large{width:230px;height:125px}
.shop-basket.large .basket-foods{bottom:28px}
.shop-basket.large .food-art{width:91px;height:91px}
.shop-basket.large .basket-front{top:59px;border-width:5px;border-top-width:7px}
.shop-basket.large .basket-front i{height:35px;width:13px}
.shop-basket.large .basket-handle{border-width:9px;top:19px}
.exact-badge{display:flex;flex-direction:column;align-items:center;font-size:22px;color:#285a42;line-height:1.25}
.exact-badge>span{font-size:36px;background:#d4e9ad;border:4px solid #fff2c8;width:59px;height:59px;border-radius:50%;display:grid;place-items:center;color:#25815f}
.exact-badge small{font-size:15px}
.handover-button,.next-order{display:block;width:min(400px,100%);margin:5px auto 0}
.packed-stars{display:flex;gap:10px;font-size:44px;color:#9d846044;text-shadow:0 2px 0 #7c553a20}
.packed-stars .earned{color:#ffd34f;text-shadow:0 3px 0 #c18d23}
.glee-heart{position:absolute;top:0;right:-7px;color:#f25b70;font-size:45px;transform:rotate(10deg);filter:drop-shadow(0 3px 0 #fff1cc)}
.happy-spark{position:absolute;font-size:35px;color:#ffd351;text-shadow:0 2px 0 #e4a534}
.s1{top:29px;left:-12px}.s2{right:-13px;bottom:39px}
.is-thanking .market-glee{animation:glee-happy .65s ease-out 1}
.is-thanking .glee-heart{animation:heart-pop .5s ease-out 1}
.delivered{animation:deliver-basket .65s ease-out 1}
.market-symbols{position:absolute;width:0;height:0;overflow:hidden}
.market-worktop button:focus-visible{outline:3px solid #143e5a;outline-offset:3px;box-shadow:0 0 0 5px #fff6d7}
@keyframes soft-no{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@keyframes glee-happy{35%{transform:translateY(-9px) rotate(-5deg)}70%{transform:translateY(0) rotate(4deg)}100%{transform:none}}
@keyframes heart-pop{0%{transform:scale(.2) rotate(10deg);opacity:0}100%{transform:scale(1) rotate(10deg);opacity:1}}
@keyframes deliver-basket{0%{transform:translateY(22px) scale(1.08)}100%{transform:translateY(0) scale(1)}}
@media(max-width:760px){
body[data-theme="market"] .game-shell{padding:2px 10px 10px}
body[data-theme="market"] .game-nav{padding:5px 10px 3px}
body[data-theme="market"] .game-heading{padding:2px 2px 8px;min-height:43px;align-items:center}
body[data-theme="market"] .game-subtitle{display:none}
body[data-theme="market"] h1{font-size:27px;line-height:1.1}
body[data-theme="market"] .game-progress{font-size:11px}
body[data-theme="market"] .progress-dots{margin-bottom:2px}
.market-world{max-width:480px;border-radius:22px}
.market-awning{height:18px;background:repeating-linear-gradient(90deg,#f46e5c 0 43px,#fff1cb 43px 86px);border-radius:0 0 9px 9px}
.customer-area{height:141px;padding:18px 10px 0;gap:13px}
.glee-wrap{width:105px;height:118px}
.market-glee{width:110px;height:118px}
.request-bubble{min-width:158px;border-radius:17px 17px 17px 4px;padding:8px 11px;margin-top:0}
.request-copy{font-size:16px;line-height:1.1}
.request-foods{gap:13px;margin-top:3px}
.request-food{font-size:10px}
.request-food .food-art{width:48px;height:48px}
.request-food b{right:-7px;bottom:11px;width:19px;height:19px;font-size:11px;border-width:2px}
.shop-window{left:12px;top:24px;width:106px;height:100px;border-width:6px;border-radius:60px 60px 6px 6px}
.shop-window span{width:25px;height:25px;left:10px;top:8px}
.market-worktop{padding:12px 15px 7px;border-top-width:7px}
.market-worktop h2{font-size:24px;margin-bottom:9px}
.produce-shelves{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 9px;border-bottom-width:6px;padding-bottom:5px}
.produce{padding:2px 2px 3px;border-width:1.5px;min-height:84px;border-radius:13px 13px 4px 4px}
.produce .food-art{width:45px;height:45px}
.produce-name{font-size:11px}
.produce-picture b{width:17px;height:17px;right:-9px;bottom:1px;font-size:10px;border-width:2px}
.price-pips{margin-top:2px;min-height:15px;gap:4px}
.price-pips strong{font-size:13px}.count-pips i{width:8px;height:8px}
.pack-counter{height:70px;margin-top:8px;gap:12px;justify-content:space-between}
.shop-basket{width:96px;height:61px}
.basket-foods{bottom:14px}.basket-foods .food-art{width:42px;height:42px}
.basket-handle{inset:10px 4px 6px;border-width:5px;border-radius:17px 17px 6px 6px}
.basket-front{top:30px;border-width:3px;border-top-width:4px;border-radius:3px 3px 12px 12px}
.basket-front i{height:16px;width:6px}
.empty-fruit{width:29px;height:29px;margin:5px 4px}
.basket-count{gap:4px}.basket-count i{width:17px;height:17px;font-size:11px;border-width:1px}
.market-worktop .primary,.market-worktop .secondary{min-height:44px;font-size:15px;padding:10px 13px;border-radius:14px}
.pack-counter .primary{flex:1;max-width:160px}
.market-feedback{font-size:11px;min-height:13px;margin-top:5px}
.basket-price-view{gap:8px}.food-price{grid-template-columns:47px 18px}.food-price .food-art{width:47px;height:47px}.food-price .count-pips{gap:2px}.food-price strong{font-size:11px;right:-3px;bottom:-2px}
.price-plus,.price-equals{font-size:21px}.total-price{gap:7px}.total-price strong{font-size:29px}.total-price .count-pips{max-width:26px;gap:3px}.total-price .count-pips i{width:9px;height:9px}
.counting-tray{min-height:62px;margin:11px 0 12px;padding:10px;gap:10px;border-width:2px;border-radius:20px}.unit-slots{gap:5px;max-width:230px}.unit-slot{width:25px;height:25px;border-width:1.5px}.unit-slot i{width:22px;height:22px;border-width:2px}.tray-count{font-size:12px}.tray-count strong{font-size:19px}
.token-bank{gap:9px}.add-token{gap:7px;flex-direction:column;padding:8px 12px;min-height:65px;min-width:74px;border-radius:14px;font-size:13px}.coin-group{gap:4px}.coin-group i{width:21px;height:21px;border-width:2px}.undo-button{align-self:center;min-width:61px}
.payment-actions{gap:10px;margin-top:14px}.payment-actions>*{min-width:0;flex:1}.payment-actions .secondary{font-size:13px}
.handover-counter,.thanks-counter{min-height:199px;gap:20px}.shop-basket.large{width:160px;height:100px}.shop-basket.large .basket-foods{bottom:25px}.shop-basket.large .food-art{width:65px;height:65px}.shop-basket.large .basket-front{top:50px;border-width:4px;border-top-width:5px}.shop-basket.large .basket-front i{height:24px;width:9px}.shop-basket.large .basket-handle{border-width:7px;top:20px}
.exact-badge{font-size:17px}.exact-badge>span{width:45px;height:45px;font-size:28px;border-width:3px}.exact-badge small{font-size:13px}.packed-stars{gap:2px;font-size:30px}.glee-heart{font-size:28px;top:1px;right:-8px}.happy-spark{font-size:23px}.s1{left:-6px;top:17px}.s2{right:-8px;bottom:22px}
}
@media(max-width:360px){
body[data-theme="market"] .game-nav{padding:4px 10px 2px}
body[data-theme="market"] .game-shell{padding:0 8px 8px}
body[data-theme="market"] .game-heading{padding:0 1px 6px;min-height:38px}
body[data-theme="market"] h1{font-size:25px}
body[data-theme="market"] .game-progress{font-size:10px}
.customer-area{height:116px;gap:9px;padding:17px 8px 0}
.glee-wrap{width:90px;height:99px}.market-glee{width:94px;height:99px}
.request-bubble{min-width:150px;padding:7px 9px}
.request-copy{font-size:14px}.request-foods{gap:13px}.request-food .food-art{width:42px;height:42px}.request-food{font-size:9px}
.shop-window{width:92px;height:89px;left:8px;top:22px}
.market-worktop{padding:10px 10px 6px}.market-worktop h2{font-size:22px;margin-bottom:8px}
.produce{min-height:76px}.produce .food-art{width:39px;height:39px}.produce-name{font-size:10px}.price-pips{margin-top:1px}.produce-shelves{gap:6px 8px}
.pack-counter{margin-top:6px;height:61px;gap:8px}.market-worktop .primary,.market-worktop .secondary{font-size:14px;padding:10px 11px;min-height:44px}.shop-basket{width:82px}.basket-count{display:none}
.market-feedback{font-size:10px;min-height:13px;margin-top:5px}
.basket-price-view{gap:7px}.food-price{grid-template-columns:43px 16px}.food-price .food-art{width:43px;height:43px}.total-price{gap:5px}.total-price strong{font-size:27px}.price-plus,.price-equals{font-size:18px}
.counting-tray{margin:10px 0 11px;padding:9px 8px;gap:6px;min-height:58px}.unit-slots{gap:4px;max-width:205px}.unit-slot{width:24px;height:24px}.unit-slot i{width:21px;height:21px}.tray-count{font-size:11px}.tray-count strong{font-size:17px}
.token-bank{gap:8px}.add-token{min-width:76px;padding:8px 11px}.undo-button{min-width:64px}.payment-actions .secondary{font-size:12px}
.handover-counter,.thanks-counter{min-height:185px;gap:13px}.shop-basket.large{width:144px}.packed-stars{font-size:27px}
}
@media(prefers-reduced-motion:reduce){.market-world *, .market-world *:before,.market-world *:after{animation:none!important;transition:none!important}.produce:hover{transform:none}}
@media(max-width:360px){
.customer-area{height:100px}.glee-wrap{width:83px;height:84px}.market-glee{width:88px;height:84px}.request-bubble{min-width:148px;padding:6px 9px}.request-food .food-art{width:34px;height:34px}.request-copy{font-size:13px}.request-food{font-size:9px}.shop-window{height:75px;top:20px}
.market-worktop{padding:6px 10px 5px}.market-worktop h2{font-size:21px;margin-bottom:6px}.produce{min-height:64px;padding-top:1px;padding-bottom:2px}.produce .food-art{width:32px;height:32px}.price-pips{min-height:14px}.pack-counter{height:52px;margin-top:4px}.pack-counter .shop-basket{height:50px}.pack-counter .basket-front{top:25px}.pack-counter .basket-foods{bottom:12px}.pack-counter .basket-handle{top:4px}.pack-counter .basket-foods .food-art{width:36px;height:36px}.pack-counter .basket-front i{height:13px}
}
/* The basket travels from the worktop into Glee's arms. */
.customer-area.is-thanking{overflow:visible;z-index:3}
.shop-basket.customer-basket{position:absolute;left:11px;bottom:-2px;width:128px;height:77px;z-index:5;animation:give-to-glee .7s cubic-bezier(.2,.7,.2,1) both}
.customer-basket .basket-foods .food-art{width:51px;height:51px}
.customer-basket .basket-foods{bottom:16px}
.customer-basket .basket-front{top:34px}
.thanks-counter .packed-stars{font-size:64px;gap:16px}
@keyframes give-to-glee{from{transform:translate(65px,260px) scale(1.6)}to{transform:translate(0,0) scale(1)}}
@media(max-width:760px){.shop-basket.customer-basket{left:9px;bottom:0;width:81px;height:49px}.customer-basket .basket-foods .food-art{width:34px;height:34px}.customer-basket .basket-foods{bottom:12px}.customer-basket .basket-front{top:23px}.customer-basket .basket-front i{height:14px}.customer-basket .basket-handle{top:4px}.thanks-counter .packed-stars{font-size:51px;gap:13px}@keyframes give-to-glee{from{transform:translate(55px,170px) scale(1.7)}to{transform:translate(0,0) scale(1)}}}
@media(max-width:360px){.shop-basket.customer-basket{left:8px;bottom:-2px;width:74px;height:47px}.customer-basket .basket-foods .food-art{width:31px;height:31px}.thanks-counter .packed-stars{font-size:47px}}
@media(prefers-reduced-motion:reduce){.shop-basket.customer-basket{animation:none!important}}
.customer-area.is-thanking:after{bottom:0;height:18px}
/* Use the remaining small-phone height for clearer pictures. */
@media(max-width:360px){
.customer-area{height:116px}.glee-wrap{width:90px;height:100px}.market-glee{width:96px;height:100px}.request-copy{font-size:14px}.request-food .food-art{width:42px;height:42px}.shop-window{height:88px}
.produce{min-height:76px}.produce .food-art{width:42px;height:42px}.shop-basket.customer-basket{left:10px;bottom:-2px;width:78px;height:49px}
}
