*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#cedbce;color:#213e32;font-family:'Trebuchet MS',system-ui,sans-serif}button{font:inherit;cursor:pointer;border:0;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:4px solid #ffc95f;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}button:not(:disabled):active{transform:translateY(2px)}[hidden]{display:none!important}#world{display:block;width:100%;height:100%;touch-action:none;outline:none}#hud{position:fixed;inset:0;pointer-events:none}header{display:flex;align-items:center;gap:14px;padding:24px 30px;background:linear-gradient(#f7f8efdd,transparent);pointer-events:none}button{pointer-events:auto}.wordmark{font-weight:900;font-size:26px;letter-spacing:-1px;text-shadow:0 1px #fff8}.wordmark small{display:block;font-size:10px;letter-spacing:2px;margin-top:5px}.topright{margin-left:auto;display:flex;align-items:center;gap:10px}.round{width:44px;height:44px;border-radius:50%;background:#fffaf0eb;color:#284f3d;box-shadow:0 3px 16px #294f3920;font-size:23px}.cartpill{display:flex;gap:22px;align-items:center;padding:15px 22px;border-radius:30px;background:#244e3d;color:#fff5df;box-shadow:0 6px 20px #123d2920}.cartpill span{font-size:14px}.cartpill b{font-size:19px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2.6px;font-weight:800;color:#798a65}#objective{margin:14px 30px;max-width:285px;background:#fffaf0ed;border-radius:20px;padding:20px 24px;box-shadow:0 8px 30px #1c422e15;border:1px solid #ffffffb0}#objective h2{font-size:22px;letter-spacing:-.6px;margin:8px 0}#objective p{font-size:14px;line-height:1.6;margin:0;color:#657663}#controls{position:absolute;left:0;right:0;bottom:24px;padding:0 30px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.keyhint{background:#fff9e7dd;padding:12px 17px;border-radius:14px;font-size:13px;backdrop-filter:blur(8px)}.keyhint span{font-weight:bold;letter-spacing:3px}.primary{background:#f7ce77;color:#284431;padding:17px 26px;border-radius:18px;font-weight:bold;font-size:17px;box-shadow:0 5px 0 #b98e42,0 10px 30px #183c3433;transition:transform .15s}.primary kbd{font:inherit;font-size:12px;border:1px solid #b99e65;border-radius:5px;padding:3px 6px;margin-right:10px}.secondary{background:#e9eddf;color:#35533e;border-radius:14px;padding:14px 20px;font-weight:bold}#joystick{display:none;pointer-events:auto;width:112px;height:112px;border-radius:50%;background:#ffffff66;border:2px solid #fffc;backdrop-filter:blur(6px);position:relative;touch-action:none}#stick{width:52px;height:52px;background:#315c49de;border:3px solid #fcf1d4;border-radius:50%;position:absolute;left:28px;top:28px;box-shadow:0 3px 15px #162f3929}.checkout-shortcut{position:absolute;right:30px;bottom:104px;background:#fff9e7f5;border-radius:14px;padding:13px 20px;color:#2a4e3c;box-shadow:0 4px 20px #183c3422;font-weight:bold}.checkout-shortcut span{margin-left:16px;color:#458665}#menu{position:fixed;inset:0;background:#315443 url('assets/shop.webp') center/cover no-repeat;display:flex;align-items:center}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#102e27f5,#123c2bbd 36%,#123c2b15 80%)}.menu-content{position:relative;padding:4vh 6vw;color:#fff8e7;max-width:760px}.menu-content .eyebrow{color:#dcd4a1}h1{font-size:clamp(64px,7vw,108px);letter-spacing:-5px;line-height:.94;margin:24px 0}h1 em{font-style:normal;color:#f7d896}.menu-content p{font-size:18px;line-height:1.65;color:#e1e7cf}.modecards{display:flex;gap:12px;margin-top:30px}.modecard{width:245px;text-align:left;border:1px solid #ffffff3b;background:#faf5e9ee;color:#244535;border-radius:20px;padding:22px;box-shadow:0 12px 40px #061b2933;transition:transform .2s}.modecard:hover{transform:translateY(-5px)}.modecard:nth-child(2){background:#305e4de8;color:#fff9e7}.modeicon{display:block;font-size:28px;height:40px}.modecard strong{display:block;font-size:21px;margin:8px 0}.modecard>span:not(.modeicon){display:block;font-size:13px;line-height:1.5;opacity:.75;min-height:40px}.modecard b{display:block;font-size:13px;border-top:1px solid #7b92764f;padding-top:13px;margin-top:15px}.menu-foot{font-size:12px;color:#c1d2bb;margin-top:25px}.loading{position:absolute;bottom:20px;right:24px;color:white;background:#214c3b;padding:12px 18px;border-radius:12px}.menu-content .modecard:disabled{opacity:.4}#panel{position:fixed;inset:0;background:#183e2955;backdrop-filter:blur(5px);display:grid;place-items:center;padding:24px}.sheet{background:#fcf9ef;color:#284834;width:min(640px,100%);max-height:90svh;overflow:auto;border-radius:28px;padding:28px;box-shadow:0 24px 100px #14352544;border:1px solid white}.sheethead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.sheet h2{font-size:32px;letter-spacing:-1px;margin:8px 0 10px}.sheet p{color:#71816b;font-size:15px;line-height:1.6;margin-top:0}.close{background:#ecedde;border-radius:50%;min-width:36px;height:36px;font-size:22px;color:#49634c}.products{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.product-card{background:#f3eddf;border:1px solid #e7e2d3;border-radius:16px;padding:10px;text-align:center}.product-card .pic{background-image:url('assets/products.webp');background-size:400% 300%;aspect-ratio:1;border-radius:12px;display:block;margin-bottom:8px;mix-blend-mode:multiply}.product-card strong{font-size:14px;display:block}.price{font-size:14px;display:block;margin:5px 0 12px;color:#778466}.add{border-radius:10px;padding:10px 8px;width:100%;background:#2d5b44;color:#fff4dd;font-size:13px;font-weight:bold}.sheetfooter{margin-top:20px;border-top:1px solid #e1e5d5;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.sheetfooter b{font-size:21px}.sheetfooter small{display:block;font-size:12px;color:#75826c;margin-top:5px}.cartrow{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #e4e6d8}.cartrow strong{flex:1}.cartrow button{border-radius:50%;width:30px;height:30px;background:#e8ecd9;color:#39553f;font-size:18px}.receipt{background:#fff;border:1px dashed #bdc9b0;padding:22px;margin:18px 0;border-radius:12px}.receipt .line{display:flex;justify-content:space-between;font-size:14px;padding:6px 0}.receipt .sum{border-top:1px solid #b9c6af;margin-top:12px;padding-top:14px;font-size:23px;font-weight:bold}.success{text-align:center}.success .star{font-size:55px}.success h2{font-size:34px}#toast{position:fixed;left:50%;bottom:105px;transform:translate(-50%,20px);background:#234e3ef5;color:#fff4d7;padding:13px 22px;border-radius:15px;box-shadow:0 6px 24px #14332533;pointer-events:none;opacity:0;transition:.2s;font-size:15px;text-align:center;max-width:90vw;z-index:5}#toast.show{opacity:1;transform:translate(-50%,0)}#curtain{position:fixed;inset:0;background:#f5efd9;pointer-events:none;opacity:0;transition:opacity .3s}#reticle{position:absolute;width:14px;height:14px;left:-100px;border-radius:50%;border:2px solid #fff5be;box-shadow:0 0 0 6px #fff5be44;pointer-events:none}.help-keys{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.help-keys div{padding:14px;background:#eef0e3;border-radius:12px}.help-keys b{display:block;margin-bottom:6px}.charbanner{height:110px;object-fit:contain;float:right;margin-top:-20px;max-width:180px}.statusline{font-size:12px;color:#80916b;margin-top:8px}@media(pointer:coarse){#joystick{display:block}.keyhint{display:none}.primary kbd{display:none}}@media(max-width:700px){header{padding:14px;gap:9px}.wordmark{font-size:20px}.wordmark small{font-size:8px;letter-spacing:1px}.topright{gap:6px}.round{width:36px;height:36px;font-size:20px}.cartpill{padding:10px 13px;gap:12px}.cartpill span{font-size:12px}.cartpill b{font-size:15px}#objective{margin:0 14px;padding:13px 16px;max-width:220px}#objective h2{font-size:18px;margin:5px 0}#objective p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:2px}#controls{padding:0 18px;bottom:24px}.keyhint{display:none}#joystick{display:block;width:100px;height:100px}#stick{left:22px;top:22px}.primary{font-size:14px;padding:15px 18px}.primary kbd{display:none}.checkout-shortcut{right:18px;bottom:96px;font-size:13px;padding:11px 14px}.menu-content{padding:30px 7vw;width:100%}h1{font-size:70px;margin:22px 0}.menu-content p{font-size:15px}.modecards{gap:10px;margin-top:20px}.modecard{width:50%;padding:15px;border-radius:17px}.modecard strong{font-size:17px}.modecard>span:not(.modeicon){font-size:12px}.menu-shade{background:linear-gradient(90deg,#12392df5,#123c2b70)}.menu-foot{font-size:10px}.sheet{padding:20px;border-radius:22px;max-height:87svh}.sheet h2{font-size:26px}.products{grid-template-columns:repeat(2,1fr)}.product-card{padding:8px}.product-card .pic{width:80px;margin:0 auto 5px}.price{margin:4px 0 7px}.sheetfooter b{font-size:18px}.sheetfooter .primary{padding:13px}.sheetfooter{margin-top:14px}#toast{bottom:155px;font-size:13px}.loading{font-size:12px;bottom:14px;right:14px}.charbanner{height:75px;max-width:110px}}@media(max-height:550px){.menu-content{padding:20px 5vw;max-width:900px}h1{font-size:48px;margin:8px 0;display:inline-block}.menu-content>p{display:none}.modecards{margin-top:10px}.modecard{padding:12px 20px;width:220px}.modeicon{display:none}.modecard>span:not(.modeicon){min-height:0}.modecard b{padding-top:8px;margin-top:8px}.menu-foot{margin-top:12px}#objective{padding:10px 16px}#objective p{display:none}.sheet{max-height:92svh}.products{grid-template-columns:repeat(4,1fr)}header{padding:10px 18px}#controls{bottom:18px}#joystick{height:86px;width:86px}#stick{left:15px;top:15px}}
/* The complete illustrated scene stays visible at every screen size. */
#menu{background-image:url('assets/store-scene.webp');background-size:contain;background-color:#264735}
#menu:before{content:'';position:absolute;inset:-30px;background:url('assets/store-scene.webp') center/cover;filter:blur(20px);opacity:.55;z-index:-1}
header{padding:16px 24px;background:linear-gradient(#fdf8ebef,#fff9e775,transparent)}
#objective{position:absolute;left:24px;bottom:100px;margin:0;max-width:260px;padding:13px 17px;background:#fff9eceb;border-radius:16px;backdrop-filter:blur(8px)}
#objective>.eyebrow{display:none}#objective h2{font-size:18px;margin:0 0 4px}#objective p{font-size:12px;line-height:1.5}
.checkout-view #objective{left:24px;top:92px;bottom:auto;max-width:300px}.checkout-view #joystick,.checkout-view .keyhint{display:none}.checkout-view #controls{justify-content:flex-end}.keyhint{font-size:11px;padding:10px 14px}.wordmark{font-size:24px}
@media(max-width:700px){header{padding:12px;gap:8px}.wordmark{font-size:18px}.wordmark small{display:none}.topright{gap:5px}.cartpill{gap:8px;padding:10px}.topright .round{width:32px;height:32px}.round{width:34px;height:34px}#objective{left:16px;bottom:144px;max-width:calc(100% - 32px);padding:12px 15px}#objective h2{font-size:17px}#objective p{font-size:12px}.checkout-view #objective{top:80px;left:16px;max-width:calc(100% - 32px)}.checkout-shortcut{bottom:96px}#menu{background-size:cover}.menu-shade{background:linear-gradient(90deg,#12392de8,#123c2b88)}.menu-content{padding:24px}h1{font-size:64px}}
@media(max-height:550px){header{padding:8px 16px}.wordmark{font-size:18px}.wordmark small{display:none}#objective{left:16px;bottom:82px;padding:9px 13px;max-width:210px}#objective h2{font-size:14px;margin:0}#objective p{display:none}.checkout-view #objective{top:65px;left:16px;max-width:250px}#controls{bottom:16px}.primary{padding:12px 17px;font-size:14px}.checkout-shortcut{bottom:72px;font-size:12px;padding:9px 14px}}
@media(min-width:701px) and (min-height:551px){.shopping-view #objective{top:98px;bottom:auto;max-width:245px;background:#fff9e8e8}}
/* Direct shelf picking and a persistent wallet. */
.walletpill{padding:8px 16px;border-radius:18px;background:#fff9e9f2;border:1px solid #d6dfbd;min-width:105px}.walletpill small{display:block;font-size:11px;color:#5c7457}.walletpill b{font-size:20px}.menu-money{margin-top:22px;color:#f8d996;font-size:15px;font-weight:bold}.shelf-view #joystick,.shelf-view .keyhint{display:none}.shelf-view #controls{justify-content:flex-end}.shelf-view #objective{top:92px;bottom:auto;left:24px;max-width:300px}.checkout-view #controls{justify-content:flex-end}#shelfItems{position:fixed;pointer-events:none;z-index:1}.shelf-product{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:none;padding:0;pointer-events:auto;transition:filter .15s;touch-action:manipulation}.shelf-food{display:block;width:100%;height:85%;background-image:url('assets/groceries.webp');background-size:400% 300%;background-repeat:no-repeat;filter:drop-shadow(0 6px 3px #233e3440);transition:transform .14s;pointer-events:none}.shelf-price{background:#fff9e9f5;color:#284a38;border:1px solid #d5c69c;border-radius:6px;font-size:clamp(10px,1.05vw,15px);line-height:1.1;padding:4px 8px;white-space:nowrap;box-shadow:0 2px 3px #5d482630;pointer-events:none}.shelf-price b{margin-left:7px}.shelf-product:hover:not(:disabled) .shelf-food,.shelf-product:focus-visible .shelf-food{transform:translateY(-5px);filter:drop-shadow(0 0 5px #ffdb79)}.shelf-product:disabled{opacity:.75;cursor:default}.shelf-product.picked .shelf-food{opacity:0}.shelf-product:active:not(:disabled){transform:none}#hud{z-index:2}#panel{z-index:4}#menu{z-index:3}#toast{z-index:6}
#menu{background-image:url('assets/store-scene.webp')}
@media(max-width:700px){.walletpill{min-width:75px;padding:6px 9px;border-radius:12px}.walletpill b{font-size:16px}.walletpill small{font-size:9px}.cartpill{padding:8px;gap:6px}.cartpill b{font-size:13px}.cartpill span{font-size:10px}.wordmark{font-size:16px}.topright{gap:4px}.topright .round{width:28px;height:28px;font-size:17px}header{gap:6px;padding:10px}.shelf-view #objective{left:14px;top:70px;max-width:calc(100% - 28px)}.shelf-price{font-size:9px;padding:3px 4px}.shelf-price b{margin-left:3px}.menu-money{font-size:13px}}@media(max-width:460px){.wordmark{max-width:65px;line-height:1.05}.topright .round[data-act=help]{display:none}.cartpill{flex-direction:column;gap:1px}.walletpill{min-width:65px}}
@media(max-height:550px){.shelf-view #objective{top:62px;padding:8px 12px}.walletpill{padding:5px 12px}.walletpill b{font-size:16px}}
.shelf-food{width:auto;aspect-ratio:1;max-width:100%;flex-shrink:0;transform:translateY(10px)}.shelf-product:hover:not(:disabled) .shelf-food,.shelf-product:focus-visible .shelf-food{transform:translateY(5px)}.shelf-price{position:relative;z-index:1}
/* Version 5: one scene, dedicated portrait framing, and actual shelf inventory. */
html,body{height:100dvh;background:#234536}#world{height:100dvh}#menu{background-size:cover}#menu:before{content:none}
header{padding:16px max(18px,env(safe-area-inset-right)) 16px max(18px,env(safe-area-inset-left));gap:12px}.wordmark{white-space:nowrap;max-width:none;font-size:23px}.wordmark small{font-size:11px}.walletpill small{font-size:12px}.cartpill span{font-size:14px}.topright .round{width:40px;height:40px;font-size:22px}.cartpill{flex-direction:row;gap:14px}.cartpill b{font-size:17px}.walletpill b{font-size:20px}#objective p{font-size:14px}.shelf-view #objective,.checkout-view #objective{top:90px;left:20px;max-width:330px}#controls{bottom:max(20px,env(safe-area-inset-bottom));padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}.primary{min-height:48px}.shelf-product{transform:none!important}.shelf-food{height:calc(100% - 25px);max-width:100%;aspect-ratio:1;transform:none;filter:drop-shadow(0 4px 2px #233e3433)}.shelf-price{font-size:clamp(12px,1vw,16px);padding:4px 7px;line-height:1.2}.shelf-product:disabled{opacity:1}.shelf-product.empty .shelf-food{visibility:hidden}.shelf-product.empty .shelf-price{background:#eee6d4df;color:#7d725f;box-shadow:none}.shelf-product.empty .shelf-price b{font-weight:normal}.shelf-product:hover:not(:disabled) .shelf-food{transform:translateY(-3px)}.shelf-view #toast{bottom:85px}
@media (pointer:fine) and (min-width:701px){#joystick{display:none}.primary kbd{display:inline-block}}
@media (max-aspect-ratio: 85/100){
 header{padding:10px 10px 8px;gap:7px;flex-wrap:wrap;background:#234536;color:#fff8e8;height:68px;align-content:center}.wordmark{font-size:16px;max-width:83px;white-space:normal;line-height:1.1;text-shadow:none}.wordmark small{display:none}.round{width:34px;height:34px;flex-shrink:0}.topright{gap:5px}.topright .round{width:30px;height:30px;font-size:19px}.topright .round[data-act=help]{display:none}.walletpill{padding:5px 9px;min-width:66px;border-radius:12px;color:#244535}.walletpill b{font-size:16px}.walletpill small{font-size:10px}.cartpill{padding:7px 9px;flex-direction:column;gap:2px;border:1px solid #f9e8bf55;box-shadow:none}.cartpill span{font-size:11px}.cartpill b{font-size:14px}
 .shelf-view #objective,.checkout-view #objective{top:72px;left:12px;right:12px;max-width:none;background:none;border:0;box-shadow:none;padding:0;color:#fff4db;backdrop-filter:none}.shelf-view #objective h2,.checkout-view #objective h2{font-size:17px;margin:0 0 3px}.shelf-view #objective p,.checkout-view #objective p{font-size:12px;color:#dce5d0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #controls{bottom:max(16px,env(safe-area-inset-bottom));padding:0 14px}.shelf-view #controls,.checkout-view #controls{justify-content:center}.shelf-view #interact,.checkout-view #interact{min-width:230px;max-width:100%;font-size:15px}.shelf-food{height:calc(100% - 21px)}.shelf-price{font-size:12px;padding:3px 5px}.shelf-price b{margin-left:4px}.shelf-product{min-width:44px;min-height:44px}.shopping-view #objective{bottom:150px;left:14px;right:14px;max-width:none}.shopping-view #objective p{font-size:13px}.checkout-shortcut{bottom:100px}#toast{bottom:83px;font-size:13px;white-space:normal}.keyhint{display:none}#joystick{display:block}.primary kbd{display:none}
 .menu-content{padding:24px}.menu-content h1{font-size:clamp(56px,16vw,76px)}.menu-content .modecard{padding:14px}.menu-content .modecard strong{font-size:17px}.menu-content .modecard>span:not(.modeicon){font-size:13px}.menu-foot{font-size:12px}.sheet{max-height:calc(100dvh - 32px)}
}
@media (min-aspect-ratio:85/100) and (max-height:550px){
 header{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:9px}.wordmark{font-size:18px}.wordmark small{display:none}.walletpill{padding:4px 10px;min-width:80px}.walletpill b{font-size:16px}.walletpill small{font-size:10px}.cartpill{padding:8px 12px;gap:8px}.cartpill span{font-size:12px}.cartpill b{font-size:15px}.topright .round{width:34px;height:34px;font-size:20px}.shelf-view #objective,.checkout-view #objective{top:62px;left:14px;max-width:260px;padding:8px 12px}.shelf-view #objective h2,.checkout-view #objective h2{font-size:14px;margin:0}.shelf-view #objective p,.checkout-view #objective p{display:none}#controls{bottom:max(12px,env(safe-area-inset-bottom))}.primary{padding:10px 16px;font-size:14px;min-height:44px}.shelf-price{font-size:12px;padding:2px 5px}.shelf-food{height:calc(100% - 20px)}.shelf-view #toast{bottom:65px}.menu-content{padding:14px 5vw}.menu-money{margin-top:10px}.sheet{max-height:calc(100dvh - 20px);padding:18px}.sheet h2{font-size:25px}.success .star{display:none}
}

@media(max-width:360px) and (max-aspect-ratio:85/100){header .wordmark{display:none}.topright{flex:1;justify-content:flex-end}}

/* Price labels sit on shelf lips; the goods themselves rest on the shelf surface. */
.shelf-food{height:100%;max-height:100%}.shelf-price{position:absolute;top:100%;left:50%;transform:translateX(-50%);z-index:1}
@media(max-aspect-ratio:85/100){.shopping-view #objective{top:82px;bottom:auto;max-width:calc(100% - 28px)}.shopping-view #objective p{font-size:12px;line-height:1.3}}

@media(min-aspect-ratio:85/100){.shelf-view #objective{top:auto;bottom:24px;left:20px;max-width:330px}}

.shelf-food{width:100%;aspect-ratio:auto;background-size:contain;background-position:center bottom;filter:drop-shadow(0 3px 2px #233e3425)}

.park-home{position:absolute;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));z-index:10;padding:10px 16px;border-radius:30px;background:#fffbea;color:#214d3d;text-decoration:none;font:700 16px system-ui;}
