/* Google Maps-like viewport ownership; Garden Galaxy-like art remains inside the canvases. */
html,body,#app-root{width:100%;height:100%;min-width:0;min-height:0;margin:0;overflow:hidden}
.app-shell{position:fixed;inset:0;display:block;width:100vw;height:100dvh;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:#b4cbb7}
.game-main{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:0;border-radius:0}
.community-world{position:absolute;inset:0;isolation:isolate;--sky-top:#80b6d8;--sky-bottom:#d8e5cf;--world-ground:#8fa960;width:100%;height:100%;max-width:none;max-height:none;min-height:0;margin:0;overflow:hidden;border:0;border-radius:0;background:var(--world-ground)}
#community-webgl,#community-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;min-height:0;margin:0;border:0;border-radius:0}#community-canvas{touch-action:none}
.world-clock{position:absolute;z-index:3;top:82px;right:20px;padding:.38rem .62rem;border:1px solid #fff1c9;border-radius:999px;background:#243b35b8;box-shadow:0 4px 18px #1a2a2433;color:#fff3cf;font-size:.68rem;font-weight:800;pointer-events:none}
.world-asset-status{position:absolute;z-index:3;top:118px;right:20px;padding:.28rem .5rem;border-radius:999px;background:#fff7dfcf;color:#315b50;font-size:.58rem;font-weight:800;pointer-events:none}.world-asset-status[data-status="READY"]{background:#dff3d9dc}.world-asset-status[data-status="FALLBACK"]{background:#ffe6c9dc}
.community-music{position:absolute;z-index:7;top:150px;right:20px;display:grid;gap:3px;max-width:220px;padding:6px;border:1px solid #fff1c9;border-radius:10px;background:#243b35d9;box-shadow:0 4px 18px #1a2a2433;color:#fff3cf}.community-music>div{display:flex;gap:4px}.community-music button{min-height:30px;padding:4px 7px;border:1px solid #f3e6bf;border-radius:7px;background:#fff8e5;color:#315b50;font-family:inherit;font-size:.65rem;font-weight:700}.community-music span{font-size:.56rem;font-weight:800;line-height:1.25}.community-music[data-state="BLOCKED"]{border-color:#ef9c7c}.community-music[data-state="BLOCKED"] span{color:#ffd4c1}#app-root:not([data-active-scene="community"]) .community-music{visibility:hidden}
.site-header{position:absolute;z-index:5;top:12px;right:16px;left:16px;min-height:54px;padding:.55rem .8rem;border:1px solid #f8f5dfb3;border-radius:14px;background:#fff9e8e8;box-shadow:0 5px 20px #3a594425}
.brand-mark{border-radius:10px;background:#55765b}.brand strong{font-size:.95rem}.header-actions{gap:.4rem}.prototype-badge{font-size:.65rem}
.journey{position:absolute;top:80px;left:50%;z-index:4;width:max-content;max-width:calc(100% - 24px);padding:.45rem .8rem;border-radius:30px;background:#fff8e4db;transform:translateX(-50%)}
.journey ol{gap:1rem}.journey li{font-size:.68rem}.journey li span{width:18px;height:18px}
.game-scene{position:absolute;z-index:6;top:128px;right:24px;display:block;width:min(440px,calc(100% - 32px));height:min(520px,calc(100dvh - 225px));grid-template-columns:none;overflow:hidden;border:1px solid #fdf5d8;border-radius:16px;background:#fffaeaf5;box-shadow:0 15px 50px #304c3f33}
.game-scene>.scene-card{height:100%;min-height:0}
.scene-card{padding:1.1rem;justify-content:flex-start}.scene-card h1,.scene-card h2{font-size:1.6rem}.scene-copy{font-size:.81rem}.scene-card .scene-actions{margin-top:.2rem}
#location-panel{left:24px;right:auto;width:min(390px,calc(100% - 32px))}
#community-panel{top:126px;left:20px;right:auto;width:320px;height:224px;max-height:224px;border:none;background:#fff9e4de;box-shadow:0 5px 22px #3a594421;overflow:hidden}
#community-panel .scene-card{padding:.75rem}#community-panel h2{font-size:1rem}#community-panel .eyebrow,#community-panel .tag{display:none}#community-panel .scene-copy{font-size:.69rem;margin:.4rem 0}
#community-panel .map-instruction{margin:.25rem 0;padding:.3rem .45rem;font-size:.7rem}
#community-panel .button{min-height:34px;padding:.35rem .5rem;font-size:.72rem}
.town-summary,.town-promotion-notice{margin:.15rem 0;font-size:.69rem;line-height:1.35}.town-summary{font-weight:800;color:#365e50}.town-promotion-notice{color:#795c24}.home-preview{position:fixed;z-index:16;inset:50% auto auto 50%;width:min(380px,calc(100vw - 24px));height:min(590px,calc(100dvh - 24px));padding:14px;border:1px solid #fff0c5;border-radius:18px;background:#fff9eaf5;box-shadow:0 20px 65px #2c493f55;transform:translate(-50%,-50%);overflow:hidden}.home-preview[hidden]{display:none}.home-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-preview header div{display:grid;gap:2px}.home-preview header small{color:#876b37}.home-preview header strong{font-size:18px}.home-preview button{min-height:34px;border:1px solid #6f8b73;border-radius:9px;background:#fff;color:#365e50}.home-preview-model{--home-wall:#f0d8a6;--home-shade:#c99b78;--home-roof:#d98562;--home-trim:#315d52;--home-glass:#477f79;--home-awning:#d75e45;position:relative;height:154px;margin:10px 0;border-radius:14px;background:linear-gradient(#cce1d4 0 58%,#aeba7b 58%);overflow:hidden}.preview-roof{position:absolute;z-index:3;left:50%;bottom:119px;width:0;height:0;border-right:70px solid transparent;border-bottom:38px solid var(--home-roof);border-left:70px solid transparent;transform:translateX(-50%)}.preview-upper,.preview-ground{position:absolute;left:50%;width:122px;transform:translateX(-50%);box-shadow:inset -18px 0 var(--home-shade)}.preview-upper{bottom:60px;height:60px;background:var(--home-wall)}.preview-upper i{position:absolute;top:18px;width:25px;height:24px;border:4px solid #f8edcf;background:var(--home-glass)}.preview-upper i:first-child{left:14px}.preview-upper i:last-child{right:16px}.preview-ground{bottom:10px;height:49px;border-top:5px solid var(--home-trim);background:var(--home-shade)}.preview-ground i{position:absolute;left:7px;bottom:5px;width:68px;height:34px;border:4px solid #f8e8c8;background:linear-gradient(145deg,#fff0a7,var(--home-glass) 54%,#44756e);box-shadow:0 0 12px #ffd982}.preview-ground b{position:absolute;right:10px;bottom:0;width:28px;height:41px;background:var(--home-trim);color:#fff5d4;text-align:center;line-height:41px}.preview-awning{position:absolute;z-index:5;left:50%;bottom:47px;width:138px;height:18px;border-radius:3px 3px 7px 7px;background:repeating-linear-gradient(90deg,var(--home-awning) 0 17px,#ffe6b1 17px 34px);box-shadow:0 7px 0 -3px #764a39,0 8px 10px #61433466;transform:translateX(-50%) skewX(-8deg)}.preview-table{position:absolute;z-index:6;left:calc(50% - 7px);bottom:2px;width:28px;height:12px;border-radius:50%;background:#d8a666;box-shadow:0 5px 0 -2px #6b5140}.preview-seat{position:absolute;z-index:6;bottom:1px;width:15px;height:10px;border-radius:4px 4px 2px 2px;background:#4f786b;box-shadow:0 5px 0 -3px #4a443b}.preview-seat-left{left:calc(50% - 35px)}.preview-seat-right{left:calc(50% + 18px)}.preview-garden{position:absolute;left:calc(50% + 70px);bottom:5px;color:#f3d16d;font-size:34px}.home-preview p{margin:6px 0;font-size:12px;line-height:1.4}.home-editor-page{height:70px;padding:8px;border:1px solid #d7d6b9;border-radius:10px;background:#fff}.home-editor-page label{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:8px;font-size:12px;font-weight:800}.home-editor-page label+label{margin-top:7px}.home-editor-page select{min-width:0;min-height:32px;border:1px solid #9fac9f;border-radius:7px;background:#fff;font:inherit}.home-editor-pager,.home-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px}.home-editor-actions span{color:#586b61}.home-editor-actions .button{padding:5px 9px}.home-editor-notice{color:#806837}.home-preview-model[data-roof="FLAT_GARDEN"] .preview-roof{width:138px;height:24px;border:0;border-radius:9px 9px 3px 3px;background:var(--home-roof)}.home-preview-model[data-roof="PAGODA"] .preview-roof{width:148px;height:25px;border:0;border-radius:50% 50% 8px 8px;background:var(--home-roof);clip-path:polygon(3% 70%,16% 32%,50% 0,84% 32%,97% 70%,88% 58%,50% 36%,12% 58%)}.home-preview-model[data-seating="NONE"] .preview-table,.home-preview-model[data-seating="NONE"] .preview-seat{display:none}.home-preview-model[data-seating="BENCH"] .preview-table{width:58px;height:11px;border-radius:4px}.home-preview-model[data-seating="BENCH"] .preview-seat{display:none}
.map-hud{z-index:3;right:auto;left:max(20px,env(safe-area-inset-left));bottom:max(45px,calc(env(safe-area-inset-bottom) + 40px));display:flex;flex-direction:column;align-items:start;gap:.5rem;transition:left .18s ease,bottom .18s ease}.app-shell.chat-open .map-hud{left:max(340px,calc(env(safe-area-inset-left) + 320px))}
.map-hud>span{max-width:250px;border-radius:8px;font-size:.65rem;background:#fff8e3d9}
.direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,42px);gap:4px}
.direction-pad button{min-width:44px;min-height:42px;border:1px solid #fff4cf;border-radius:10px;background:#fff8dfeb;box-shadow:0 3px 0 #78916c55;color:#4a6950;font-size:1.05rem}
#app-root:not([data-active-scene="community"]) .map-hud{visibility:hidden}
.app-shell>footer{position:absolute;z-index:4;bottom:0;left:0;right:0;min-height:24px;align-items:center;padding:.35rem 1rem;color:#496650;background:#e8edcfb8;font-size:.61rem;pointer-events:none}
.delivery-map-dock{right:max(16px,env(safe-area-inset-right));bottom:max(40px,calc(env(safe-area-inset-bottom) + 32px));width:230px;max-height:180px;border-color:#fbf4d7;background:#fff9e8ef;box-shadow:0 5px 22px #3a594425}
.delivery-map-dock header{background:#55765b}.delivery-map-dock.is-collapsed{width:220px}.delivery-map-content{min-height:0;max-height:105px;overflow:hidden;font-size:.73rem}
.community-chat{position:fixed;z-index:7;left:max(16px,env(safe-area-inset-left));bottom:max(40px,calc(env(safe-area-inset-bottom) + 32px));width:304px;height:190px;overflow:hidden;border:1px solid #f5e4b4;border-radius:12px;background:#18251fe8;box-shadow:0 8px 28px #17261f55;color:#f8f0d7}.community-chat[hidden]{display:none}.community-chat header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;height:48px;padding:.5rem .65rem;background:#29483feF}.community-chat header strong,.community-chat header small{display:block}.community-chat header strong{font-size:.8rem}.community-chat header small{margin-top:.08rem;color:#c8d8ce;font-size:.6rem}.community-chat header button{padding:.25rem .45rem;border:1px solid #cbd9cf;border-radius:6px;background:transparent;color:#fff;font-size:.65rem}.chat-content{display:grid;height:142px;grid-template-rows:26px 1fr 38px;overflow:hidden}.chat-channel{padding:.35rem .65rem;color:#cfddce;background:#20332ccb;font-size:.62rem}.chat-channel span{color:#8ed17e}.chat-messages{display:grid;align-content:start;gap:4px;margin:0;padding:6px 10px;overflow:hidden;list-style:none;font-size:.64rem}.chat-messages li{display:grid;grid-template-columns:34px 1fr;gap:5px}.chat-messages b{color:#f2c66e}.chat-messages p{margin:0;color:#eef3e9;line-height:1.35}.chat-composer{display:grid;grid-template-columns:1fr 48px;gap:5px;padding:5px 7px;background:#20332c}.chat-composer input,.chat-composer button{min-width:0;height:28px;border:1px solid #60776c;border-radius:6px;font:inherit}.chat-composer input{padding:0 8px;background:#eef1e9;color:#637269}.chat-composer button{background:#536a60;color:#dbe3dc}.community-chat.is-collapsed{width:220px;height:48px}.community-chat.is-collapsed .chat-content{display:none}
.account-workbench{top:80px;right:18px;width:min(380px,calc(100vw - 36px));height:min(540px,calc(100dvh - 120px));display:flex;flex-direction:column;gap:.2rem;border-color:#fff3d0;background:#fff9eaf7}
.account-workbench[hidden]{display:none}.account-workbench [role="tabpanel"]{height:auto;min-height:0;flex:1;overflow:hidden}.workbench-pager{position:static;flex-shrink:0;margin-top:.5rem}.workbench-card small{overflow-wrap:anywhere}.workbench-header,.line-boundary,.workbench-tabs{flex-shrink:0}.toast{bottom:190px;z-index:14}
.menu-grid,.cart-lines{grid-template-columns:1fr}.menu-item{min-height:108px}.menu-item footer{padding-inline:0;background:none;color:inherit}.location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-option span{min-height:55px}.result-card dl{flex-wrap:wrap;gap:.6rem}.result-card dd{overflow-wrap:anywhere}
@media (max-width:680px){
  .site-header{top:7px;left:7px;right:7px;min-height:48px;padding:.4rem .5rem;gap:.3rem}.brand{gap:.35rem}.brand-mark{width:29px;height:29px}.brand strong{font-size:.76rem}.brand small{font-size:.55rem}.cart-shortcut{padding:.35rem .4rem;font-size:.7rem}.account-shortcut{font-size:.68rem;padding:.35rem}.header-actions{gap:.25rem}
  .journey{top:67px;padding:.3rem .65rem}.journey ol{gap:.65rem}.journey li{font-size:0}.journey li.is-current{font-size:.63rem}.world-clock{top:102px;right:10px;font-size:.56rem;padding:.28rem .45rem}.world-asset-status{top:130px;right:10px;font-size:.5rem}.community-music{top:280px;right:10px;max-width:185px;padding:5px}.community-music button{min-height:28px;padding:3px 6px;font-size:.58rem}.community-music span{font-size:.51rem}
  .game-scene,#location-panel{top:107px;left:10px;right:10px;width:calc(100% - 20px);height:calc(100dvh - 190px)}
  #community-panel{top:107px;left:10px;width:calc(100% - 20px);height:172px;max-height:172px;background:#fff9e4e8}
  #community-panel .scene-card{padding:.5rem .6rem;gap:3px}#community-panel .scene-copy{display:none}#community-panel h2{font-size:.83rem}#community-panel .map-instruction{font-size:.64rem;margin:.15rem 0;padding:.15rem .35rem}#community-panel .scene-actions{justify-content:space-between;padding-top:0;gap:4px}#community-panel .button{padding:.25rem .35rem;font-size:.65rem}.town-summary,.town-promotion-notice{font-size:.61rem}
  .map-hud{left:10px;bottom:max(102px,calc(env(safe-area-inset-bottom) + 94px))}.app-shell.chat-open .map-hud{left:10px;bottom:max(252px,calc(env(safe-area-inset-bottom) + 244px))}.map-hud>span{max-width:135px;font-size:.58rem}.direction-pad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,40px);gap:3px}.direction-pad button{min-width:40px;min-height:40px}
  .delivery-map-dock,.delivery-map-dock.is-collapsed{right:8px;bottom:max(42px,calc(env(safe-area-inset-bottom) + 34px));width:160px;max-height:170px}.delivery-map-dock header{gap:.25rem;padding:.4rem}.delivery-map-dock header strong{font-size:.65rem}.delivery-map-dock header small{font-size:.49rem}.delivery-map-dock header button{font-size:.58rem;padding:.3rem .2rem}.delivery-map-content{padding:.4rem;font-size:.65rem}
  .community-chat{left:8px;bottom:max(42px,calc(env(safe-area-inset-bottom) + 34px));width:min(286px,calc(100vw - 16px));height:190px}.community-chat.is-collapsed{width:180px;height:48px}.community-chat header{height:48px;padding:.4rem .5rem}.community-chat header strong{font-size:.7rem}.community-chat header small{font-size:.52rem}
  .account-workbench{top:64px;right:6px;width:calc(100vw - 12px);height:calc(100dvh - 100px)}.account-workbench [role="tabpanel"]{height:auto}.app-shell>footer{padding:.3rem .5rem;font-size:.51rem;gap:.3rem}.scene-card h1,.scene-card h2{font-size:1.4rem}.scene-card{padding:.85rem}.scene-copy{font-size:.76rem}.toast{max-width:calc(100% - 20px);right:10px}
}
@media (max-height:620px){.journey{display:none}.game-scene,#location-panel,#community-panel{top:76px;height:calc(100dvh - 150px)}#community-panel{height:130px}.community-music{top:220px}.account-workbench{top:66px;height:calc(100dvh - 104px)}.scene-card{padding:.65rem}.scene-copy{margin:.25rem 0}.fine-print{display:none}.delivery-map-dock .delivery-map-content{display:block}.delivery-map-dock.is-collapsed .delivery-map-content{display:none}.community-chat:not(.is-collapsed){height:164px}.community-chat:not(.is-collapsed) .chat-content{height:116px;grid-template-rows:24px 1fr 36px}.chat-messages li:nth-child(n+2){display:none}}

/* Fixed pages reserve space for controls; every list is paginated in app.mjs. */
[hidden]{display:none!important}
.object-editor{position:absolute;z-index:12;top:78px;left:16px;display:grid;gap:8px;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 106px);padding:14px;overflow:auto;border:1px solid #f1e1b5;border-radius:14px;background:#fff9eaf5;box-shadow:0 12px 36px #22392b55;color:#294b3c;font-size:13px}
.object-editor header{display:flex;align-items:center;justify-content:space-between;gap:8px}.object-editor header strong{font-size:16px}
.object-editor p{margin:0;line-height:1.45}.object-editor label{font-weight:700}
.object-editor select,.object-editor button{min-height:36px;border:1px solid #9db59f;border-radius:7px;padding:6px 9px;background:#fff;color:#294b3c;font:inherit}
.object-editor select[size]{height:min(168px,24dvh)}.object-editor button{cursor:pointer;font-weight:700}
.object-editor button:disabled{opacity:.5;cursor:default}.object-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.object-editor #place-object{background:#4c7863;color:#fff}.object-editor #object-editor-status{min-height:18px}
@media(max-width:680px){.object-editor{top:61px;left:8px;width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 84px);padding:10px}.site-header .prototype-badge{display:none}.site-header .header-actions{min-width:0}.site-header #open-object-editor{font-size:.65rem;padding:.35rem}}
.game-scene{height:min(560px,calc(100dvh - 180px));max-height:none}
.scene-card>*{flex-shrink:0}
.scene-card{gap:8px;padding:16px}
.scene-card .eyebrow,.scene-card .scene-copy,.scene-card fieldset,.scene-card .consent,.scene-card .menu-grid,.scene-card .cart-summary,.scene-card .fine-print{margin:0}
.scene-card h1,.scene-card h2{font-size:23px}
#location-form{display:flex;flex-direction:column;gap:12px}
.location-grid{grid-template-columns:1fr}
.location-option span{min-height:62px}
.scene-card .scene-actions{margin-top:0;padding-top:0}
.scene-card .button{min-height:36px;padding:7px 10px;font-size:14px}
.scene-card .cart-cta{margin-top:0;align-self:stretch}
#cart-panel .scene-card{gap:8px}
.cart-line{padding:8px}.cart-summary{padding:4px 0}
.quantity button{height:32px;width:32px}
.eligibility{margin:0;padding:8px}
.result-card{justify-content:center}.result-card dl{max-width:100%;font-size:13px;gap:6px;margin:6px 0}.result-card dd{max-width:100%;overflow-wrap:anywhere}
.account-workbench{height:min(610px,calc(100dvh - 102px));gap:6px;padding:12px}
.workbench-header,.workbench-tabs,.line-boundary,.order-sync-status{margin:0;padding-bottom:0}
.workbench-header strong{font-size:16px}.workbench-header small{font-size:11px}
.line-boundary{padding:6px;font-size:12px;line-height:1.4}
.order-sync-status{flex-shrink:0;min-height:26px;font-size:12px}
.workbench-tabs{margin-bottom:0}.workbench-pager{margin-top:0;min-height:36px}
.account-workbench [role="tabpanel"]{min-height:0}
.binding-status{grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
.status-row{padding:6px;font-size:12px;line-height:1.45}
.account-workbench label{font-size:13px;margin:4px 0}
.account-workbench select{min-height:36px;font:inherit;font-size:14px}
.workbench-actions .button{min-height:34px;font-size:13px;padding:5px 8px}
.workbench-card{padding:8px}.workbench-card strong{font-size:14px}.workbench-card small{font-size:12px;line-height:1.45}
.detail-head{align-items:flex-start}.detail-head strong{min-width:0;font-size:12px}.detail-head button{flex-shrink:0}
#order-recovery{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px;background:#fff0c9;font-size:12px;flex-shrink:0}
#order-recovery button{border:1px solid #856227;background:white;border-radius:5px;min-height:30px;font:inherit}
.delivery-map-content{max-height:none;padding:8px}.delivery-map-content p{margin:0;font-size:12px;line-height:1.5}
@media(max-width:680px){
 .buyer-badge{display:none}.brand{flex-shrink:0}
 .game-scene,#location-panel{top:100px;left:10px;right:10px;height:calc(100dvh - 164px);width:calc(100% - 20px)}
 #community-panel{top:100px;height:172px;max-height:none}
 .account-workbench{top:62px;height:calc(100dvh - 78px)}
 .scene-card{padding:12px}.scene-copy{font-size:13px}
}
@media(max-height:620px){
 .journey{display:none}
 .site-header{top:5px;min-height:44px;padding:5px 8px}
 .game-scene,#location-panel{top:60px;height:calc(100dvh - 80px)}
 #community-panel{top:60px;height:154px}
 .account-workbench{top:56px;height:calc(100dvh - 66px);gap:4px;padding:8px}
 .workbench-header small{display:none}.line-boundary{font-size:11px;padding:4px}.order-sync-status{min-height:22px;font-size:11px}
 .workbench-tabs button,.workbench-pager button{min-height:30px}
 .scene-card{gap:6px;padding:10px}.scene-card h1,.scene-card h2{font-size:20px}
 .scene-card .eyebrow{display:none}.scene-card .scene-copy{font-size:12px;line-height:1.4}
 #location-form{gap:7px}.location-option span{min-height:50px;padding:6px 8px}.location-option strong{font-size:14px}.location-option small{font-size:11px}
 .scene-card .consent{font-size:12px}.scene-card .button{min-height:32px;padding:5px 8px;font-size:13px}
 .menu-item{min-height:90px;padding:8px}.menu-item h3{font-size:16px}.menu-item p{font-size:12px}
 .shop-name,.cart-store{margin:0;font-size:12px}
 .result-icon{width:32px;height:32px;font-size:20px}
 .binding-status{margin:5px 0}.status-row{font-size:11px;padding:4px}
 .account-workbench select{min-height:30px}.workbench-actions .button{min-height:30px}
 .workbench-card small{font-size:11px}.task-actions{margin-top:4px}.task-actions button{min-height:28px;font-size:12px}
}
@media(max-height:620px){.account-workbench{gap:2px}.workbench-pager{min-height:32px}.account-workbench label{margin:2px 0}}
@media(max-height:620px){
 .home-preview{height:calc(100dvh - 12px);padding:8px}.home-preview header small,#home-preview-style,.home-editor-notice{display:none}
 .home-preview-model{height:104px;margin:4px 0}.preview-roof{bottom:76px}.preview-upper{bottom:31px;height:46px}.preview-upper i{top:10px;height:19px}.preview-ground{bottom:1px;height:29px}.preview-ground i{height:20px}.preview-ground b{height:25px;line-height:25px}.preview-awning{bottom:25px}.preview-table{bottom:1px}.preview-seat{bottom:0}.preview-garden{bottom:1px}
 .home-editor-page{height:66px}.home-editor-pager,.home-editor-actions{margin-top:5px}
}

/* Staging #38 shop window refresh: intentionally scoped away from the 3D world. */
#shop-panel{
  --shop-ink:#20372f;
  --shop-muted:#6f776e;
  --shop-paper:#fffdf5;
  --shop-line:#dfe5d5;
  --shop-green:#356b55;
  --shop-green-dark:#285342;
  width:min(540px,calc(100% - 32px));
  height:min(640px,calc(100dvh - 152px));
  border:0;
  overflow:visible;
  background:transparent;
  box-shadow:none;
  color:var(--shop-ink);
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei UI","Microsoft JhengHei",system-ui,sans-serif;
}
#shop-panel>.scene-card{
  box-sizing:border-box;
  gap:12px;
  height:100%;
  padding:21px;
  overflow:hidden;
  border:1px solid #f1ead7;
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 5%,#e8f2df 0 12%,transparent 31%),
    linear-gradient(145deg,#fffdf6 0%,#fbf8ec 100%);
  box-shadow:0 24px 64px #233e3445,0 2px 0 #ffffff inset;
}
#shop-panel .scene-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
#shop-panel .scene-title-row>div{min-width:0}
#shop-panel .eyebrow{
  margin:0 0 3px;
  color:#8b6735;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}
#shop-panel #shop-title{
  margin:0;
  color:var(--shop-ink);
  font-size:27px;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1.18;
}
#shop-panel .shop-name{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  margin:8px 0 0;
  padding:3px 10px;
  border:1px solid #dce6d5;
  border-radius:999px;
  background:#f0f5e9;
  color:#3f654f;
  font-size:13px;
  font-weight:800;
}
#shop-panel .scene-copy{
  margin:0;
  color:var(--shop-muted);
  font-size:12px;
  line-height:1.55;
}
#shop-panel .button{
  min-height:38px;
  border:1px solid #cdd9ca;
  border-radius:11px;
  font:700 13px/1.2 inherit;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease;
}
#shop-panel .button:hover:not(:disabled){transform:translateY(-1px)}
#shop-panel .button:focus-visible{outline:3px solid #d6a74c66;outline-offset:2px}
#shop-panel .button.secondary{
  padding:8px 12px;
  background:#fffef9;
  color:#476356;
  box-shadow:0 3px 10px #314f3c12;
}
#shop-panel .menu-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:11px;
  min-height:0;
}
#shop-panel .menu-item{
  position:relative;
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:15px;
  min-height:122px;
  box-sizing:border-box;
  padding:11px;
  overflow:visible;
  border:1px solid var(--shop-line);
  border-radius:17px;
  background:#ffffffd9;
  box-shadow:0 7px 20px #2c4b3711;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
#shop-panel .menu-item:hover,
#shop-panel .menu-item:focus,
#shop-panel .menu-item:focus-within{
  z-index:3;
  border-color:#a9bea8;
  box-shadow:0 13px 30px #2c4b3726;
  transform:translateY(-2px);
  outline:0;
}
#shop-panel .menu-item:focus-visible{box-shadow:0 0 0 3px #d6a74c66,0 13px 30px #2c4b3726}
#shop-panel .menu-item-media{
  position:relative;
  align-self:center;
  width:112px;
  height:96px;
  margin:0;
  overflow:hidden;
  border:1px solid #d9dfd1;
  border-radius:13px;
  background:
    linear-gradient(135deg,transparent 42%,#ffffff80 43% 57%,transparent 58%),
    linear-gradient(145deg,#e5ead8,#cbd9c2);
  box-shadow:0 5px 14px #314c3d20;
  transform-origin:center;
  transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s ease;
}
#shop-panel .menu-item:hover .menu-item-media,
#shop-panel .menu-item:focus .menu-item-media,
#shop-panel .menu-item:focus-within .menu-item-media{
  z-index:4;
  transform:scale(1.13);
  box-shadow:0 15px 28px #213b2f38;
}
#shop-panel .menu-item-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .35s ease;
}
#shop-panel .menu-item-media img[hidden]{display:none}
#shop-panel .menu-item:hover .menu-item-media img,
#shop-panel .menu-item:focus .menu-item-media img,
#shop-panel .menu-item:focus-within .menu-item-media img{transform:scale(1.12)}
#shop-panel .menu-photo-placeholder{
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  gap:3px;
  padding:8px;
  color:#5c7564;
  text-align:center;
}
#shop-panel .menu-photo-placeholder[hidden]{display:none}
#shop-panel .menu-photo-placeholder::before{
  content:"▧";
  color:#7f9a84;
  font-size:25px;
  line-height:1;
}
#shop-panel .menu-photo-placeholder b{font-size:12px;letter-spacing:.05em}
#shop-panel .menu-photo-placeholder small{color:#7b877c;font-size:9px}
#shop-panel .menu-item-body{
  display:flex;
  min-width:0;
  flex-direction:column;
}
#shop-panel .menu-item h3{
  margin:1px 0 5px;
  color:var(--shop-ink);
  font-size:17px;
  font-weight:900;
  line-height:1.3;
}
#shop-panel .menu-item p{
  display:-webkit-box;
  margin:0;
  overflow:hidden;
  color:#68736a;
  font-size:12px;
  line-height:1.48;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
#shop-panel .menu-item footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding:8px 0 0;
  background:none;
}
#shop-panel .price-pending{
  color:#8a6b39;
  font-size:11px;
  font-weight:800;
}
#shop-panel .add-item{
  min-width:68px;
  padding:8px 13px;
  border-color:var(--shop-green);
  background:var(--shop-green);
  color:#fff;
  box-shadow:0 5px 12px #356b5530;
}
#shop-panel .add-item:hover:not(:disabled){background:var(--shop-green-dark);box-shadow:0 7px 16px #28534240}
#shop-panel .add-item:disabled{border-color:#d3d7d0;background:#e5e7e2;color:#8b918b;cursor:not-allowed}
#shop-panel .pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0;
  color:#66736a;
  font-size:12px;
  font-weight:800;
}
#shop-panel .pager .button{min-height:34px;padding:6px 10px}
#shop-panel .pager .button:disabled{opacity:.42;cursor:not-allowed}
#shop-panel .cart-cta{
  align-self:stretch;
  margin-top:0;
  border-color:var(--shop-green-dark);
  background:linear-gradient(135deg,#416f5a,#2e5a48);
  color:#fff;
  box-shadow:0 8px 19px #2d55452e;
  font-size:14px;
  letter-spacing:.03em;
}
#shop-panel .cart-cta:hover{background:linear-gradient(135deg,#4c7b65,#315e4b)}
@media(max-width:680px){
  #shop-panel{top:100px;right:10px;left:10px;width:calc(100% - 20px);height:calc(100dvh - 164px)}
  #shop-panel>.scene-card{gap:9px;padding:14px;border-radius:17px}
  #shop-panel #shop-title{font-size:23px}
  #shop-panel .eyebrow{font-size:10px}
  #shop-panel .scene-copy{font-size:11px}
  #shop-panel .menu-item{grid-template-columns:90px minmax(0,1fr);gap:11px;min-height:108px;padding:9px}
  #shop-panel .menu-item-media{width:90px;height:84px}
  #shop-panel .menu-item h3{font-size:15px}
  #shop-panel .menu-item p{font-size:11px}
  #shop-panel .price-pending{font-size:10px}
  #shop-panel .add-item{min-width:60px;padding:7px 10px}
}
@media(max-height:620px){
  #shop-panel{top:60px;height:calc(100dvh - 80px)}
  #shop-panel>.scene-card{gap:6px;padding:10px}
  #shop-panel .shop-name{min-height:22px;margin-top:4px;font-size:11px}
  #shop-panel .menu-grid{gap:7px}
  #shop-panel .menu-item{grid-template-columns:86px minmax(0,1fr);min-height:92px;padding:7px}
  #shop-panel .menu-item-media{width:86px;height:74px}
  #shop-panel .menu-item h3{margin-bottom:2px;font-size:14px}
  #shop-panel .menu-item p{font-size:10px}
  #shop-panel .menu-item footer{padding-top:4px}
  #shop-panel .button{min-height:30px}
}
@media(prefers-reduced-motion:reduce){
  #shop-panel .menu-item,#shop-panel .menu-item-media,#shop-panel .menu-item-media img,#shop-panel .button{transition:none}
}

/* Nostalgic Taiwanese game panels: translucent parchment, jade title bars and brass trim. */
:root{
  --wujia-panel-paper:rgba(250,244,218,.56);
  --wujia-panel-paper-soft:rgba(255,251,232,.48);
  --wujia-panel-jade:rgba(31,67,54,.7);
  --wujia-panel-jade-soft:rgba(43,83,67,.64);
  --wujia-panel-brass:#b58d46;
  --wujia-panel-brass-light:#ead39a;
  --wujia-panel-ink:#28463a;
  --wujia-panel-shadow:0 12px 28px rgba(18,39,31,.24),inset 0 1px rgba(255,255,255,.7);
}

/* Scene geometry stays unchanged; only its inner text card receives the artwork. */
.game-scene{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
.game-scene>.scene-card,
.home-preview,
.object-editor,
.account-workbench,
.delivery-map-dock,
dialog{
  border:2px solid var(--wujia-panel-brass)!important;
  outline:1px solid rgba(255,247,211,.72);
  outline-offset:-5px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.12),rgba(226,204,146,.04)),
    var(--wujia-panel-paper)!important;
  box-shadow:var(--wujia-panel-shadow)!important;
  color:var(--wujia-panel-ink)!important;
  -webkit-backdrop-filter:saturate(1.05);
  backdrop-filter:saturate(1.05);
}

/* The reference uses a dark-jade top bar above lighter parchment content. */
.site-header{
  border:2px solid var(--wujia-panel-brass)!important;
  background:linear-gradient(180deg,rgba(45,82,67,.78),rgba(25,57,46,.72))!important;
  box-shadow:0 8px 24px rgba(13,33,26,.28),inset 0 1px rgba(255,255,255,.16)!important;
  color:#fff6d9!important;
  -webkit-backdrop-filter:saturate(1.08);
  backdrop-filter:saturate(1.08);
}
.site-header .brand,.site-header .brand small{color:#fff6d9!important}
.site-header .brand-mark{border:1px solid var(--wujia-panel-brass-light);background:#7b6338!important;box-shadow:inset 0 1px #fff3bf}
.journey{
  border:1px solid var(--wujia-panel-brass)!important;
  background:var(--wujia-panel-paper-soft)!important;
  box-shadow:0 5px 16px rgba(22,45,35,.16)!important;
  -webkit-backdrop-filter:saturate(1.05);
  backdrop-filter:saturate(1.05);
}
.journey .is-current{color:#214f3d!important}.journey .is-current span{background:#315f4d;color:#fff8dc;border-color:#d3b66e}

/* Keep authentication and game actions visible inside the single-row header. */
.header-actions{min-width:0;flex-wrap:nowrap;justify-content:flex-end}
.site-header .buyer-badge,.site-header .prototype-badge{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-color:#d8bc78;color:#fff0c8;background:rgba(11,37,28,.26)}
.site-header .account-shortcut,.site-header .cart-shortcut{
  flex:0 0 auto;
  min-height:34px;
  border:1px solid #d0ad62!important;
  border-radius:8px!important;
  background:linear-gradient(#fff8dc,#e9d59e)!important;
  box-shadow:0 2px 0 #765b2f,inset 0 1px #fff!important;
  color:#244b3b!important;
}
#line-login-shortcut{order:1;font-weight:900!important}
#open-object-editor{order:2}.site-header .cart-shortcut{order:3}
#game-audio-settings{order:4;flex:0 0 auto}

/* Floating utility windows get an inset title band rather than a white glass wash. */
.object-editor>header,
.home-preview>header,
.account-workbench>.workbench-header,
.delivery-map-dock>header,
.community-chat>header{
  border-bottom:1px solid var(--wujia-panel-brass-light)!important;
  background:linear-gradient(180deg,var(--wujia-panel-jade-soft),var(--wujia-panel-jade))!important;
  color:#fff5d4!important;
  text-shadow:0 1px #142d24;
}
.object-editor>header{margin:-14px -14px 4px;padding:10px 12px;border-radius:11px 11px 0 0}
.home-preview>header{margin:-14px -14px 8px;padding:10px 12px;border-radius:15px 15px 0 0}
.account-workbench>.workbench-header{margin:-12px -12px 3px;padding:10px 12px;border-radius:10px 10px 0 0}
.account-workbench>.workbench-header small,.home-preview>header small{color:#eadcb7!important}

.map-instruction,
.line-boundary,
.workbench-card,
.status-row,
.home-editor-page,
.location-option span,
.cart-line,
.cart-summary,
.eligibility,
#product-photo-editor,
#map-audio-editor,
.product-photo-preview-wrap,
.menu-item{
  border:1px solid rgba(144,112,55,.5)!important;
  background:rgba(255,252,235,.46)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.72);
  -webkit-backdrop-filter:saturate(1.04);
  backdrop-filter:saturate(1.04);
}

.object-editor select,
.object-editor button,
.home-preview button,
.scene-card .button,
.account-workbench button,
.account-workbench select,
dialog button,
dialog input,
dialog select{
  border-color:#9c793d!important;
  background:linear-gradient(180deg,#fffdf0,#ead9aa)!important;
  box-shadow:0 2px 0 #8a6b38,inset 0 1px #fff!important;
  color:#24493a!important;
}
.object-editor button:hover:not(:disabled),
.home-preview button:hover:not(:disabled),
.scene-card .button:hover:not(:disabled),
.account-workbench button:hover:not(:disabled),
dialog button:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}
.scene-card .primary,.scene-card .confirm,.object-editor #place-object,.account-workbench button[aria-selected="true"]{
  background:linear-gradient(#4f7b63,#2a5947)!important;
  color:#fff8dc!important;
  text-shadow:0 1px #17362a;
}

.community-chat,#game-audio-settings{
  border:1px solid var(--wujia-panel-brass)!important;
  background:linear-gradient(145deg,rgba(43,82,66,.72),rgba(20,48,38,.64))!important;
  box-shadow:0 10px 28px rgba(11,30,23,.32),inset 0 1px rgba(255,255,255,.13)!important;
  color:#fff4d5!important;
  -webkit-backdrop-filter:saturate(1.08);
  backdrop-filter:saturate(1.08);
}
.community-chat .chat-channel,.community-chat .chat-composer{background:rgba(22,52,41,.52)!important}
.map-hud>span,.world-clock,.world-asset-status,.toast{
  border:1px solid rgba(181,141,70,.82)!important;
  background:rgba(250,244,218,.64)!important;
  box-shadow:0 5px 14px rgba(17,38,30,.18)!important;
  color:#274a3c!important;
  -webkit-backdrop-filter:saturate(1.05);
  backdrop-filter:saturate(1.05);
}
dialog::backdrop{background:rgba(11,27,21,.42);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}

@media(max-width:980px){
  .site-header .buyer-badge,.site-header .prototype-badge{display:none}
  .site-header .header-actions{gap:4px}
  .site-header .account-shortcut,.site-header .cart-shortcut{padding:.35rem .48rem;font-size:.7rem}
}
@media(max-width:680px){
  .object-editor>header{margin:-10px -10px 4px}
  .site-header .brand small{display:none}
  #line-login-shortcut{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:520px){
  .site-header .brand>span:not(.brand-mark){display:none}
  .site-header .header-actions{gap:2px}
  .site-header .account-shortcut,.site-header .cart-shortcut{padding:.28rem .34rem;font-size:.62rem}
}
@media(prefers-reduced-transparency:reduce){
  .site-header,.journey,.game-scene>.scene-card,.home-preview,.object-editor,.account-workbench,.delivery-map-dock,.community-chat,.map-hud>span,.world-clock,.world-asset-status,.toast,#game-audio-settings,dialog{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .game-scene>.scene-card,.home-preview,.object-editor,.account-workbench,.delivery-map-dock,dialog{background:#faf4da!important}
}
