html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,a,select{touch-action:manipulation}button,footer a{min-height:44px}button:focus-visible,select:focus-visible{outline:2px solid #f1d490;outline-offset:3px}#world{width:100%;height:100dvh}header{z-index:1}#openBag,#exhibitStrip,#actions,footer{z-index:2}#focusAdd{position:absolute;z-index:3;right:24px;top:150px;min-width:104px;min-height:44px;font:11px monospace;background:#e9e7df;color:#252b26;box-shadow:0 3px 16px #0004}#commerceBackdrop{position:fixed;inset:0;z-index:10;background:#10161055;touch-action:none}#quickPurchase{position:fixed;z-index:12;right:24px;top:150px;width:290px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;padding:20px;background:#eeeae1;color:#252b26;box-shadow:0 12px 40px #0007}#quickPurchase>button{position:absolute;right:6px;top:6px;min-width:44px;font-size:22px}#quickPurchase h2{font-size:17px;margin:35px 0 12px}#quickPurchase p{font:12px/1.5 monospace}.quick-options select,#garmentPurchase select,#bagRows select{min-height:44px;width:100%;font-size:16px;padding:9px;color:#252b26;background:white;border:1px solid #777e72}.quick-options button{width:100%;margin-top:8px}#quickPurchase select{display:block}#panel,#sculpturePanel,#sculptureViewer{z-index:5;overscroll-behavior:contain}body.card-open #world,body.viewer-open #world,body.commerce-open #world{pointer-events:none}#bagPanel{position:fixed;overscroll-behavior:contain}#bagRows button{min-height:44px}#close,#closeSculpture,#closeViewer,#closeBag{min-height:44px;min-width:44px}#sculptureEntries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:370px}#actions{align-items:center;flex-wrap:wrap}#panel{max-height:calc(100dvh - 180px)}
@media(max-width:650px){header{padding:16px;padding-top:max(16px,env(safe-area-inset-top))}header b{font-size:18px}header span{display:none}#openBag{right:12px;top:max(10px,env(safe-area-inset-top));min-height:44px;min-width:84px}#status{top:66px;left:12px;right:12px;max-width:calc(100vw - 24px);font-size:9px}#exhibitStrip{top:90px;left:12px;right:12px;max-width:none;gap:6px}#pieceSwipe{flex:1;min-width:0;max-width:none;gap:6px}#pieceName{width:auto;flex:1;min-width:0;max-width:none;padding:10px 7px;text-align:left;font-size:10px}#pieceCount{flex:none}#previousPiece,#nextPiece{flex:none;min-width:44px}#browseHint{top:48px;left:50px;white-space:normal}#focusAdd{right:12px;top:160px}#quickPurchase{top:156px;right:12px;width:270px;max-height:calc(100dvh - 264px)}footer{padding:8px 12px max(8px,env(safe-area-inset-bottom));min-height:82px}footer nav{gap:4px;margin-bottom:7px}footer nav button,footer nav a{min-height:44px;padding:10px 3px;font-size:8px}footer small{font-size:8px}#actions{left:12px;right:12px;bottom:112px;gap:6px}#actions button{min-height:44px}#gestureHint{left:12px;bottom:82px;font-size:8px;line-height:1.4;margin:8px 0}#sculptureEntries{width:100%;max-width:350px;gap:6px}#sculptureEntries button{white-space:normal;text-align:left;padding:8px;font-size:9px}#panel{top:150px;bottom:auto;right:12px;width:min(290px,calc(100vw - 24px));max-height:calc(100dvh - 246px)}#panel img{height:125px}#bagPanel{top:72px;bottom:92px;right:12px;max-width:calc(100vw - 24px)}#bagRows .bag-item{grid-template-columns:60px minmax(0,1fr);gap:10px}#bagRows img{width:60px;height:85px}#bagRows h3{overflow-wrap:anywhere}#sculpturePanel,body.viewer-open #sculpturePanel{top:88px;right:12px;width:240px;max-height:calc(100dvh - 220px);overflow:auto;padding:16px}#sculpturePanel .plaque-kicker{padding-right:28px}#sculptureTitle{font-size:19px;padding-right:15px}#sculptureDetails{bottom:112px;right:12px}body.viewer-open #sculpturePanel{display:none}#sculptureViewer{top:110px;bottom:auto;right:12px;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 214px);overflow:auto}#sculptureViewer canvas{height:clamp(120px,38dvh,250px)}.intro{top:155px;left:12px}.intro h1{font-size:23px}}
@media(max-height:500px) and (orientation:landscape){header{padding:10px 12px}header b{font-size:16px}header span{display:none}#status{top:48px;left:12px;font-size:9px}#openBag{top:8px;right:12px}#exhibitStrip{top:70px;left:12px;max-width:340px}#focusAdd{top:74px;right:12px}#quickPurchase{top:64px;right:12px;max-height:calc(100dvh - 145px);width:260px}#quickPurchase h2{margin-top:28px}footer{padding:6px 12px;min-height:58px;display:flex}footer nav{margin:0}footer small{display:none}#actions{bottom:72px;left:12px}#gestureHint{display:none}#sculptureEntries{display:flex;max-width:none}#sculptureEntries button{font-size:8px;padding:8px}#bagPanel{top:60px;bottom:65px}#panel{top:62px;max-height:calc(100dvh - 130px)}#sculpturePanel,body.viewer-open #sculpturePanel{top:66px;max-height:calc(100dvh - 133px)}#sculptureViewer{top:66px;max-height:calc(100dvh - 133px)}#sculptureViewer canvas{height:130px}#sculptureDetails{bottom:72px}.intro{top:75px}.intro h1{font-size:20px}}
@media(max-width:360px){header b{font-size:16px}}
@media(max-height:500px) and (orientation:landscape){#sculpturePanel,body.viewer-open #sculpturePanel{max-height:calc(100dvh - 190px)}}
#panel #close{position:sticky;top:0;display:block;margin-left:auto;margin-bottom:-44px;z-index:1}#panel img{margin-top:50px}#quickPurchase>button{position:sticky;top:0;display:block;margin-left:auto;margin-bottom:-44px;z-index:1}
