.game-window[data-kind=shop]{width:574px;max-width:96vw;max-height:92dvh;margin:4dvh auto 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.game-window[data-kind=shop]:has(.native-shop)>.game-window-bar{display:none}
.game-window[data-kind=shop]>.game-window-content{background:transparent;color:#ddd;scrollbar-width:thin}
.native-shop.inventory-browser{padding:0;background:transparent;font:12px/1.4 Tahoma,Arial,sans-serif;color:#ddd}
.native-shop .inventory-layout{grid-template-columns:244px minmax(0,310px);gap:16px;align-items:start}
.client-board{position:relative;isolation:isolate;background:
 url('/assets/client-ui/board_corner_lefttop.webp') left top/32px 32px no-repeat,
 url('/assets/client-ui/board_corner_righttop.webp') right top/32px 32px no-repeat,
 url('/assets/client-ui/board_corner_leftbottom.webp') left bottom/32px 32px no-repeat,
 url('/assets/client-ui/board_corner_rightbottom.webp') right bottom/32px 32px no-repeat}
.client-board::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
 clip-path:polygon(32px 0,calc(100% - 32px) 0,calc(100% - 32px) 32px,100% 32px,100% calc(100% - 32px),calc(100% - 32px) calc(100% - 32px),calc(100% - 32px) 100%,32px 100%,32px calc(100% - 32px),0 calc(100% - 32px),0 32px,32px 32px);
 background:
 url('/assets/client-ui/board_line_top.webp') left top/128px 32px repeat-x,
 url('/assets/client-ui/board_line_bottom.webp') left bottom/128px 32px repeat-x,
 url('/assets/client-ui/board_line_left.webp') left top/32px 128px repeat-y,
 url('/assets/client-ui/board_line_right.webp') right top/32px 128px repeat-y,
 url('/assets/client-ui/board_base.webp') left top/128px 128px repeat}
.native-shop .inventory-bag{padding:9px 15px 13px;border:0;box-shadow:none}
.client-title{position:relative;display:block;height:23px;margin:0 -5px 8px;padding:0;background:
 url('/assets/client-ui/titlebar_left.webp') left top/32px 32px no-repeat,
 url('/assets/client-ui/titlebar_right.webp') right top/32px 32px no-repeat}
.client-title::before{content:'';position:absolute;inset:0 32px;pointer-events:none;background:url('/assets/client-ui/titlebar_center.webp') left top/32px 32px repeat-x}
.client-title h2{position:absolute;inset:1px 27px auto;height:18px;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:11px/18px Tahoma,Arial,sans-serif;color:#fff2d6;text-shadow:1px 1px #000;margin:0;padding:0}
.client-close{position:absolute;top:3px;right:3px;width:15px;height:15px;padding:0;border:0;background:url('/assets/client-ui/close_button_01.webp') center/15px 15px no-repeat;cursor:pointer}
.client-close:hover{background-image:url('/assets/client-ui/close_button_02.webp')}.client-close:active{background-image:url('/assets/client-ui/close_button_03.webp')}
.game-window .client-close:focus-visible{outline:1px solid #e8b85d;outline-offset:1px}
.client-back{position:absolute;top:1px;left:9px;height:18px;font:16px/18px Tahoma;color:#e9dcc2;background:none;border:0;padding:0 2px;cursor:pointer}.client-back[hidden]{display:none}
.native-shop .inventory-search{height:25px;padding:4px 6px;margin:0 0 5px;border:1px solid #6d634a66;background:#080a08bc;gap:5px}
.native-shop .inventory-search .icon{width:12px;height:12px}.native-shop .inventory-search input{font:10px Tahoma;color:#e1dfd5}
.native-shop .inventory-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
.native-shop .inventory-slot{aspect-ratio:1;padding:1px;border:0;border-radius:0;background:url('/assets/client-ui/slot_base.webp') center/100% 100% no-repeat;box-shadow:none;cursor:pointer}
.native-shop .inventory-slot img{width:40px;height:40px;max-width:100%;max-height:100%;filter:drop-shadow(1px 1px 1px #000)}
.native-shop .inventory-slot:hover,.native-shop .inventory-slot[aria-pressed=true]{background-image:linear-gradient(#dbc57225,#dbc57210),url('/assets/client-ui/slot_base.webp');box-shadow:inset 0 0 0 1px #c2a85f}
.native-shop .slot-empty{opacity:1;cursor:default;box-shadow:none!important;background-image:url('/assets/client-ui/slot_base.webp')!important}
.native-shop .slot-count{font:9px/1 Tahoma;right:2px;bottom:2px;color:#fff;text-shadow:1px 1px 1px #000,-1px -1px 1px #000}
.native-shop .inventory-pager{margin-top:7px;font:10px Tahoma;color:#c7bfa6;gap:3px}.native-shop .inventory-pager button{width:22px;height:21px;font-size:17px;background:#20221b}
.native-shop .inventory-note{font:9px/1.4 Tahoma;text-align:center;color:#9b9a8a;margin-top:6px}
.native-shop .inventory-admin{display:block;margin:7px 0 0;text-align:center;font-size:9px;border:0;padding:0;max-width:none}
.native-shop .inventory-inspector{margin-top:33px;min-height:0;max-height:calc(92dvh - 33px);overflow:auto;padding:17px 16px 16px;border:1px solid #8c835b;background:#080b09f2;box-shadow:inset 0 0 0 2px #171c16,0 5px 18px #0007;color:#ddd}
.native-shop .inventory-selection-heading{gap:10px;border-bottom-color:#6d715052;padding-bottom:12px}.native-shop .inventory-selection-icon{width:44px;height:48px;flex-shrink:0;border:0;background:none}.native-shop .inventory-selection-icon>img{width:40px;height:46px;object-fit:contain}
.native-shop .inventory-selection-heading h3{font:600 13px/1.5 Tahoma;color:#e7ce6c}.native-shop .inventory-selection-heading p{font:10px/1.5 Tahoma;color:#c5c4ba;margin-top:6px}
.native-shop .inventory-price h4{font:10px Tahoma;color:#b0aa91;margin:14px 0 8px;letter-spacing:0}.native-shop .inventory-price li{font:12px Tahoma;color:#eee;border-bottom-color:#4a49374d;padding:7px 0}
.native-shop .inventory-price li strong{color:#e8dc9b;font-weight:400}.native-shop .inventory-price .game-item-link{color:#ddd;font-size:11px}.native-shop .inventory-price .game-item-link img{width:25px;height:30px}
.native-shop .inventory-inspector>.game-button{font:11px Tahoma;padding:8px;margin-top:15px;color:#e5dbc1;background:linear-gradient(#454437,#24281d);border-color:#76715b;box-shadow:inset 0 0 0 1px #111710}
.native-shop .inventory-bonuses{font:11px/1.7 Tahoma;color:#8bdc98;padding-left:14px}
.source-list .source-thumb{width:36px;height:40px;object-fit:contain;flex-shrink:0}.source-list:has(.source-thumb) .source-kind{min-width:0}
@media(max-width:600px){.game-window[data-kind=shop]{width:96vw}.native-shop .inventory-layout{grid-template-columns:minmax(0,244px);justify-content:center;gap:8px}.native-shop .inventory-inspector{margin-top:0}.native-shop .inventory-browser{padding:0}.native-shop .inventory-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.native-shop .inventory-slot img{width:40px;height:40px}}
.shop-touch-preview{display:none}
@media(max-width:600px),(hover:none) and (pointer:coarse){
 .native-shop .inventory-layout{grid-template-columns:minmax(0,244px);justify-content:center;gap:8px}
 .native-shop .inventory-inspector{display:none}
 .shop-touch-preview{display:block;position:fixed;z-index:5;width:min(310px,calc(100vw - 24px));max-height:min(340px,calc(100dvh - 24px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:15px;border:1px solid #a9915c;background:#080d0bf7;box-shadow:inset 0 0 0 2px #23291c,0 8px 28px #000c;color:#e8e3d3;font:12px/1.5 Tahoma,Arial,sans-serif}
 .shop-preview-close{position:absolute;right:4px;top:4px;width:30px;height:30px;border:0;background:transparent;color:#d9c698;font:24px/1 Tahoma;cursor:pointer}
 .shop-touch-preview .inventory-selection-heading{padding-right:20px}
 .shop-touch-preview .inventory-selection-heading h3{font-size:13px}
 .shop-touch-preview .inventory-bonuses{margin:10px 0}
 .shop-touch-preview .inventory-price h4{margin-top:12px}
 .shop-touch-preview .shop-costs{list-style:none;margin:0;padding:0}
 .shop-touch-preview .inventory-price li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #4a49374d}
 .shop-touch-preview .inventory-price .game-item-link{min-width:0}
 .shop-touch-preview .inventory-price li strong{white-space:nowrap}
 .shop-touch-content>.game-button{width:100%;margin-top:12px;padding:8px;font:11px/1.4 Tahoma;color:#e5dbc1;background:linear-gradient(#454437,#24281d);border-color:#76715b;box-shadow:inset 0 0 0 1px #111710}
 .shop-touch-help{margin:11px 0 0;font:10px/1.5 Tahoma;color:#ada78d;text-align:center}
}
