/* IMPERIVM itemshop: native proportions, clear currency hierarchy, light item trays. */
.itemshop-page{--shop-gold:#edc67d;--shop-muted:#d5c4aa;--shop-line:#826643;background:#2c241c;color:#f3eadb}
.itemshop-page::before{content:none}.itemshop-page #content{min-height:75vh;background:linear-gradient(180deg,#30251cc9,#2c241c 490px),url('../media/home-hero-imperivm.webp') center top/1440px auto no-repeat}
.shop-shell{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:62px 0 60px;font-family:Tahoma,Arial,sans-serif;font-size:15px;line-height:1.5}
.shop-shell *{box-sizing:border-box}.shop-shell a{text-decoration:none}.shop-shell h1,.shop-shell h2{color:#fff0d0}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0 25px}.shop-heading>div{min-width:0}.shop-heading h1{font-family:Georgia,serif;font-weight:400;font-size:44px;line-height:1.1;margin:5px 0 10px}.shop-heading p{margin:0;max-width:420px;color:#e1d1b9;font-size:15px}.shop-eyebrow{font-size:12px!important;letter-spacing:.14em;text-transform:uppercase;color:var(--shop-gold)!important;font-weight:700}
.shop-wallet{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px;width:590px;max-width:100%}
.shop-wallet-entry{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:10px;align-items:center;padding:13px 16px;border:1px solid #97794c;background:#3b3025;box-shadow:inset 0 0 0 2px #2a2119;color:#f4e3bc;min-width:0}
.shop-wallet-entry img{width:44px;height:44px;object-fit:contain;grid-row:1/3}.shop-wallet-entry small{display:block;font-size:15px;font-weight:700;line-height:1.3}.shop-wallet-entry em{display:block;font-size:12px;font-style:normal;color:#d5c5aa;margin-top:3px}.shop-wallet-entry strong{grid-column:2;font-size:23px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin-top:4px}.shop-wallet-coins{background:linear-gradient(120deg,#665031,#423322);border-color:#d4aa60}.shop-wallet-coins small{color:#ffe4a6}.shop-wallet-entry:hover,.shop-wallet-entry[aria-current]{border-color:#ffe1a0;box-shadow:inset 0 0 0 2px #735735}.shop-wallet-imperivm strong{font-size:19px;color:#e7d9bf}
.shop-tabs{display:flex;align-items:stretch;gap:4px;border:1px solid #987445;background:linear-gradient(#4f3c29,#33261b);box-shadow:inset 0 1px #d9bc7140;margin-bottom:22px;padding:0 8px}.shop-tabs a{color:#e9d8bb;font-size:15px;padding:13px 17px;border-bottom:3px solid transparent}.shop-tabs a:hover,.shop-tabs a[aria-current]{color:#fff2d2;border-bottom-color:#f1c879;background:#75543155}.shop-admin-link{margin-left:auto}
.shop-layout{display:grid;grid-template-columns:198px minmax(0,1fr);gap:22px;align-items:start}.shop-sidebar{border:1px solid #957446;background:#3b2f23;padding:16px 9px;box-shadow:inset 0 0 0 3px #2a2119}.shop-sidebar h2{font-family:Georgia,serif;font-size:21px;font-weight:400;margin:0 10px 12px;padding-bottom:12px;border-bottom:1px solid #886a42}.shop-sidebar>a{display:block;padding:11px 12px;margin:3px 0;font-size:15px;color:#e6d4b6;border:1px solid transparent;overflow-wrap:anywhere}.shop-sidebar>a:hover,.shop-sidebar>a[aria-current]{color:#fff0c9;background:linear-gradient(90deg,#795830,#4a3725);border-color:#b88c4e}.shop-sidebar .shop-market-link{display:flex;align-items:center;gap:8px;margin-top:23px;border-top:1px solid #866a43;padding:17px 5px 2px;color:#f4d593;font-size:14px}.shop-market-link img{object-fit:contain;flex-shrink:0}
.shop-catalog{min-width:0}.shop-catalog-heading{display:flex;align-items:baseline;gap:10px 20px;flex-wrap:wrap;margin:0 0 13px}.shop-catalog-heading h2{font-family:Georgia,serif;font-size:25px;font-weight:400;line-height:1.2;margin:0}.shop-catalog-heading p{font-size:14px;color:#ddccb2;margin:0}
.shop-filters{display:flex;gap:10px;margin-bottom:18px}.shop-search{flex:1;min-width:0}.shop-shell input:not([type=checkbox]):not([type=hidden]),.shop-shell select,.shop-shell textarea{background:#f0e4cd;border:1px solid #a58451;color:#30251c;border-radius:2px;padding:10px 12px;width:100%;font:inherit;font-size:15px;min-height:44px;box-shadow:inset 0 1px 3px #21170c25}.shop-shell input::placeholder{color:#79674d}.shop-shell textarea{resize:vertical}.shop-shell input:focus-visible,.shop-shell select:focus-visible,.shop-shell textarea:focus-visible,.shop-shell a:focus-visible,.shop-shell button:focus-visible{outline:2px solid #ffe3a1;outline-offset:3px}.shop-shell input[type=checkbox]{accent-color:#977036;width:18px;height:18px;flex-shrink:0}
.shop-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 17px;border:1px solid #b89557;border-radius:3px;background:linear-gradient(#826540,#604529 48%,#4f3822 50%,#684d2d);box-shadow:inset 0 1px #f2d29780,inset 0 -2px #2b1b0f;color:#fff0cd;font:inherit;font-size:15px;line-height:1.3;text-align:center;text-decoration:none;cursor:pointer}.shop-button:hover{background:linear-gradient(#987a4d,#755737 48%,#63482a 50%,#7d5e37);color:#fff6df}.shop-button:active{box-shadow:inset 0 2px 3px #29170d}.shop-button:disabled{opacity:.5;cursor:default}.shop-button-small{min-width:100px}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shop-card{display:flex;flex-direction:column;min-width:0;border:1px solid #bc995e;background:#e2d3b6;box-shadow:inset 0 0 0 3px #f3e8d150,0 3px 7px #120b0530}.shop-card:hover{border-color:#ffe0a0}.shop-card-art{display:grid;place-items:center;position:relative;margin:10px 10px 0;min-height:104px;background:linear-gradient(145deg,#d3bd92,#eee0c1);border:1px solid #b39766;box-shadow:inset 0 1px 5px #50341025}.shop-item-icon{display:block;width:auto;height:auto;max-width:100%;object-fit:contain;image-rendering:pixelated}.shop-card-art .shop-item-icon{max-height:96px;max-width:96px}.shop-count{position:absolute;right:8px;bottom:6px;color:#4c3923;font-size:13px;font-weight:700}.shop-card-content{display:flex;flex-direction:column;flex:1;padding:14px}.shop-card h2{font-family:Tahoma,Arial,sans-serif;font-size:17px;font-weight:700;line-height:1.35;color:#392719;margin:0 0 8px;overflow-wrap:anywhere}.shop-card h2 a{color:inherit}.shop-card-content>p{font-size:14px;line-height:1.45;color:#685237;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.shop-card-price{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:auto 0 12px;color:#624316}.shop-card-price img{object-fit:contain;flex-shrink:0}.shop-card-price strong{font-size:23px;line-height:1.2;color:#493013}.shop-card-price span{font-size:12px;color:#674e2c}.shop-card-price del{font-size:13px;color:#826d4d}.shop-card .shop-button{width:100%}
.shop-empty{padding:45px 25px;text-align:center;border:1px solid #947346;background:#3c2e20}.shop-empty>img{width:170px;margin:0 auto 22px;display:block}.shop-empty h2{font-family:Georgia,serif;font-weight:400;color:#edddbd;font-size:23px;line-height:1.5;margin:0 0 20px}.shop-pages{display:flex;justify-content:flex-end;gap:22px;margin-top:22px}.shop-pages a,.shop-back{color:#f3d08c;font-size:15px}.shop-back{display:inline-block;margin-bottom:18px}
.shop-panel{border:1px solid #a5824c;box-shadow:inset 0 0 0 3px #493723;background:#392c20;padding:28px}.shop-detail{display:grid;grid-template-columns:230px minmax(0,1fr);gap:30px}.shop-detail-art{display:grid;place-items:center;align-self:start;min-height:240px;background:linear-gradient(145deg,#d0bb94,#ecddbd);border:1px solid #b79760}.shop-detail-art .shop-item-icon{max-height:192px;max-width:128px;min-height:64px;image-rendering:pixelated}.shop-detail h2{font-family:Georgia,serif;font-weight:400;font-size:32px;line-height:1.25;margin:8px 0 17px;color:#ffebc2;overflow-wrap:anywhere}.shop-description{line-height:1.6;max-height:210px;overflow-y:auto;padding-right:12px;color:#ebdcc3;scrollbar-color:#a28251 #392c20;scrollbar-width:thin}.shop-specs{display:flex;flex-wrap:wrap;gap:15px 25px;padding:15px 0;border-block:1px solid #826440}.shop-specs dt{font-size:13px;color:#cbb896}.shop-specs dd{font-size:15px;color:#f5e4c5;margin:4px 0 0}.shop-detail-price{font-size:15px;color:#f6d99b;margin:20px 0}.shop-detail-price strong{font-size:30px;margin-inline:7px}.shop-detail-price del{font-size:16px;color:#c0a57d}.shop-purchase{display:grid;gap:12px}.shop-confirm,.shop-bonus-options label{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-size:14px;color:#edd9b6}.shop-confirm{margin:8px 0}.shop-note{font-size:14px;line-height:1.5;color:#d7c3a0}.shop-bonus-options{display:grid;gap:12px;border:1px solid #a1814e;padding:15px}.shop-bonus-options legend{padding:0 8px;color:#efcf90}.shop-bonus-list{padding:0;list-style:none;color:#d0e2a3;font-size:15px;line-height:1.8}.shop-redeem{max-width:560px;margin:35px auto;display:grid;gap:18px}.shop-redeem h2{font-family:Georgia,serif;font-weight:400;color:#f5e1b8;margin:0 0 8px}.shop-history-row{display:flex;align-items:center;gap:18px;padding:18px;border-bottom:1px solid #927047;background:#3b2f23}.shop-history-row .shop-item-icon{max-width:64px;max-height:96px}.shop-history-row h2{font-size:17px;color:#f4e1ba;margin:0 0 7px;font-weight:500}.shop-history-row p{font-size:13px;color:#d2bd99;margin:3px 0}.shop-order-result{display:grid;gap:6px;text-align:right;margin-left:auto}.shop-order-result strong{color:#f0cc84;font-size:15px}.shop-order-result span{font-size:13px;color:#dfccab}
.shop-admin{display:grid;gap:24px}.shop-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shop-admin-grid label{display:grid;gap:7px;font-size:13px;color:#cebd9a}.shop-admin details{padding:14px 0;border-top:1px solid #493620}.shop-admin summary{cursor:pointer;color:#d1b477;padding:8px 0}.shop-admin .shop-wide{grid-column:1/-1}.shop-admin textarea{font-family:monospace;min-height:90px}.shop-admin .shop-localized textarea{font-family:inherit}.shop-admin table{width:100%;border-collapse:collapse;font-size:14px}.shop-admin td,.shop-admin th{padding:12px;text-align:left;border-bottom:1px solid #493620}.shop-admin .shop-table-wrap{overflow-x:auto}.shop-admin h2{font-family:Georgia,serif;color:#e5d2a8;font-size:24px;font-weight:400}.shop-code-output{word-break:break-all;font-family:monospace;font-size:19px;color:#ebcb81}.shop-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.shop-shell .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

@media(max-width:1050px){.shop-heading{flex-wrap:wrap}.shop-heading>div:first-child{flex:1}.shop-heading .shop-wallet{width:100%}.shop-layout{grid-template-columns:178px minmax(0,1fr);gap:16px}.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-detail{grid-template-columns:170px minmax(0,1fr);gap:23px}.shop-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.shop-shell{width:calc(100% - 24px);padding-top:46px}.shop-heading{gap:18px;padding:10px 0 18px}.shop-heading h1{font-size:36px}.shop-wallet{gap:7px}.shop-wallet-entry{grid-template-columns:30px minmax(0,1fr);padding:10px 8px;gap:6px}.shop-wallet-entry img{width:30px;height:30px}.shop-wallet-entry small{font-size:13px}.shop-wallet-entry em{font-size:11px}.shop-wallet-entry strong,.shop-wallet-imperivm strong{font-size:18px}.shop-tabs{gap:0;padding:0;overflow-x:auto;margin-bottom:15px}.shop-tabs a{padding:12px 10px;white-space:nowrap;font-size:14px}.shop-layout{display:block}.shop-sidebar{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:5px;margin-bottom:16px}.shop-sidebar h2{display:none}.shop-sidebar>a{white-space:nowrap;font-size:14px;padding:9px;margin:0}.shop-sidebar .shop-market-link{display:none}.shop-catalog-heading{gap:6px;margin-bottom:12px}.shop-catalog-heading h2{font-size:23px}.shop-catalog-heading p{font-size:14px}.shop-grid{gap:10px}.shop-card-art{min-height:104px;margin:7px 7px 0}.shop-card-content{padding:11px 9px}.shop-card h2{font-size:16px}.shop-card-content>p{font-size:13px}.shop-card-price strong{font-size:21px}.shop-card-price span{font-size:11px}.shop-card-price img{width:21px;height:21px}.shop-card .shop-button{font-size:14px;padding-inline:5px}.shop-filters{gap:7px}.shop-button-small{min-width:72px;padding-inline:10px}.shop-detail{display:block;padding:19px}.shop-detail-art{min-height:150px;margin-bottom:20px}.shop-detail h2{font-size:27px}.shop-panel{padding:20px 16px}.shop-admin-grid{grid-template-columns:1fr}.shop-history-row{flex-wrap:wrap;gap:12px;padding:15px 10px}.shop-order-result{width:100%;text-align:left;margin-left:0}.shop-redeem{margin:24px 0}}
/* CEF: small initial paint, no fixed backgrounds or animated filters. */
.shop-embedded{background:#30261c;scrollbar-color:#af8a4e #392c20;scrollbar-width:thin}.shop-embedded #content{min-height:100vh;background:#30261c}.shop-embedded .shop-shell{width:calc(100% - 24px);padding:0 0 20px}.shop-embedded .shop-game-bar{display:flex;align-items:center;justify-content:space-between;padding:5px 12px;border-bottom:1px solid #80633e;background:#403120;color:#ead7b3;font:14px Tahoma,Arial,sans-serif}.shop-embedded .shop-game-languages summary{height:30px;padding:4px 8px;min-height:28px}.shop-embedded .shop-game-languages .language-menu{z-index:20;right:0;left:auto}.shop-embedded .shop-heading{padding:10px 0;gap:0}.shop-embedded .shop-heading>div:first-child{display:none}.shop-embedded .shop-heading .shop-wallet{width:100%;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.shop-embedded .shop-wallet-entry{grid-template-columns:40px minmax(0,1fr) auto;padding:10px 13px;gap:10px}.shop-embedded .shop-wallet-entry img{width:40px;height:40px;grid-row:1}.shop-embedded .shop-wallet-entry strong{grid-column:3;font-size:23px;margin:0;max-width:230px}.shop-embedded .shop-wallet-imperivm strong{font-size:20px}.shop-embedded .shop-tabs{margin-bottom:15px}.shop-embedded .shop-tabs a{padding:9px 14px}.shop-embedded .shop-layout{grid-template-columns:170px minmax(0,1fr);gap:14px}.shop-embedded .shop-sidebar{padding:12px 7px}.shop-embedded .shop-sidebar>a{padding:9px}.shop-embedded .shop-sidebar .shop-market-link{padding:14px 3px 2px}.shop-embedded .shop-catalog-heading{margin-bottom:10px;gap:5px 14px}.shop-embedded .shop-catalog-heading h2{font-size:23px}.shop-embedded .shop-catalog-heading p{font-size:13px}.shop-embedded .shop-filters{margin-bottom:13px}.shop-embedded .shop-grid{gap:12px}.shop-embedded .shop-card-art{min-height:100px;margin-top:8px}.shop-embedded .shop-card-content{padding:11px}.shop-embedded .shop-card h2{font-size:16px}.shop-embedded .shop-card-content>p{font-size:13px;margin-bottom:10px;min-height:38px}.shop-embedded .shop-card-price{margin-bottom:10px}.shop-embedded .shop-card .shop-button{min-height:38px;padding:8px}.shop-embedded .shop-detail{grid-template-columns:165px minmax(0,1fr);padding:19px;gap:22px}.shop-embedded .shop-detail-art{min-height:180px}.shop-embedded .shop-description{max-height:145px}.shop-embedded .shop-empty{padding:25px}
.shop-embedded ::-webkit-scrollbar{width:9px;height:9px}.shop-embedded ::-webkit-scrollbar-track{background:#392c20}.shop-embedded ::-webkit-scrollbar-thumb{background:#a4824e;border:2px solid #392c20;border-radius:5px}
@media(max-width:480px){.shop-embedded .shop-wallet-entry{grid-template-columns:32px minmax(0,1fr);padding:8px;gap:5px 8px}.shop-embedded .shop-wallet-entry img{width:32px;height:32px;grid-row:1/3}.shop-embedded .shop-wallet-entry strong{grid-column:2;font-size:18px;max-width:100%}.shop-embedded .shop-wallet-entry small{font-size:14px}.shop-embedded .shop-wallet-entry em{font-size:12px}}
@media(max-width:700px){.shop-embedded .shop-layout{display:block}.shop-embedded .shop-sidebar{display:flex;overflow-x:auto;margin-bottom:13px;padding:5px}.shop-embedded .shop-sidebar h2,.shop-embedded .shop-sidebar .shop-market-link{display:none}.shop-embedded .shop-sidebar>a{white-space:nowrap}.shop-embedded .shop-detail{display:block}}
@media(prefers-reduced-motion:reduce){.shop-shell *{scroll-behavior:auto!important;transition:none!important}}

.itemshop-page #content .shop-card h2{font-family:Tahoma,Arial,sans-serif}.itemshop-page #content .shop-wallet small,.itemshop-page #content .shop-wallet strong{font-family:Tahoma,Arial,sans-serif}

/* Explicit layout/control baseline also covers Alloy without native form paint. */
.shop-shell [hidden],.shop-game-bar [hidden],.shop-product-dialog[hidden]{display:none!important}
.shop-shell p,.shop-shell h1,.shop-shell h2,.shop-shell dl,.shop-shell dt,.shop-shell dd,.shop-shell .shop-empty{display:block}
.shop-shell input[type=hidden]{display:none}
.shop-shell button{appearance:none;-webkit-appearance:none}
.shop-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.shop-card-actions .shop-button{width:auto;min-width:82px;flex:0 0 auto}
.shop-card-details{font-size:13px;line-height:1.4;color:#674e2c;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:anywhere}
.shop-card-details:hover{color:#392719}
.shop-tabs{flex-wrap:wrap;overflow:visible}.shop-tabs a{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.shop-sidebar{flex-wrap:wrap;overflow:visible}.shop-sidebar>a{white-space:normal}}
.shop-modal-open{overflow:hidden!important}
.shop-product-dialog{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:#000a;box-sizing:border-box}
.shop-modal-panel.shop-shell{display:flex;flex-direction:column;width:560px;max-width:100%;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);min-width:0;margin:0;padding:0;border:1px solid #85765d;background:#202225;color:#eee8dc;box-shadow:0 10px 40px #0009;overflow:hidden;line-height:1.5}
.shop-modal-heading{display:flex;align-items:flex-start;gap:16px;padding:14px 16px;border-bottom:1px solid #494b4e;background:#292c2f;flex:0 0 auto}
.shop-modal-heading h2{min-width:0;flex:1;margin:0;font:700 19px/1.35 Tahoma,Arial,sans-serif;color:#f0eade;overflow-wrap:anywhere}
.shop-modal-close{display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;padding:0;border:1px solid #67645d;border-radius:2px;background:#35383b;color:#f0eade;font:22px/1 Tahoma,Arial,sans-serif;cursor:pointer}
.shop-modal-close:hover{background:#44474a}
.shop-modal-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px;scrollbar-width:thin;scrollbar-color:#89857c #202225}
.shop-modal-summary{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:start}
.shop-modal-art{display:grid;place-items:center;min-height:96px;padding:8px;border:1px solid #535458;background:#2b2e31}
.shop-modal-art .shop-item-icon{max-width:54px;max-height:96px}
.shop-modal-description{margin:0 0 12px;color:#e3dfd7;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.shop-modal-panel .shop-specs{margin:0;padding:10px 0;border-color:#4e5053;gap:8px 18px}
.shop-modal-panel .shop-specs dt,.shop-modal-panel .shop-note{color:#bfc0bd}.shop-modal-panel .shop-specs dd{color:#eee8dc}
.shop-modal-options{display:grid;gap:10px;margin-top:14px}.shop-modal-options p{margin:0}.shop-modal-options .shop-bonus-options{border-color:#626264}
.shop-gift{display:grid;gap:10px;min-width:0}
.shop-gift-fields{display:grid;gap:6px;padding-left:30px;min-width:0}
.shop-gift-fields>label{margin:0;line-height:1.4}
.shop-shell [data-shop-gift] input[name=character]{display:block;width:260px;max-width:100%;min-width:0;height:32px;min-height:32px;padding:5px 8px;font-size:14px;line-height:20px}
.shop-gift-fields .shop-note{margin:0;max-width:38ch;line-height:1.4}
.shop-modal-panel .shop-note{font-size:13px;margin-bottom:0;overflow-wrap:anywhere}
.shop-modal-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;align-items:center;padding:12px 16px;border-top:1px solid #535458;background:#292c2f;flex:0 0 auto}
.shop-modal-price{grid-column:1/-1;margin:0;font-size:14px;color:#e6d9bd}.shop-modal-price strong{font-size:22px}.shop-modal-price del{font-size:14px;color:#bbb4a5}
.shop-modal-footer .shop-confirm{margin:0;color:#eee8dc}.shop-modal-footer .shop-button{width:100%;min-width:0;font-size:15px;overflow-wrap:anywhere;background:linear-gradient(#45484b,#303336);border-color:#817763;box-shadow:inset 0 1px #ffffff14,inset 0 -1px #0006}
.shop-modal-footer .shop-button:hover{background:linear-gradient(#56595c,#3d4043)}
.shop-modal-footer>[role=status]{grid-column:1/-1;margin:0;font-size:13px}
@media(max-width:480px){.shop-product-dialog{padding:8px}.shop-modal-panel.shop-shell{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.shop-modal-heading{padding:12px}.shop-modal-heading h2{font-size:17px}.shop-modal-scroll{padding:12px}.shop-modal-summary{grid-template-columns:54px minmax(0,1fr);gap:10px}.shop-modal-art{padding:4px;min-height:76px}.shop-modal-art .shop-item-icon{max-width:44px}.shop-modal-footer{padding:12px;gap:8px;grid-template-columns:1fr}.shop-modal-price{grid-column:1}}
.shop-check{position:relative;display:flex;align-items:flex-start;gap:10px;cursor:pointer;min-width:0}
.shop-shell .shop-check input[type=checkbox]{position:absolute;left:0;top:1px;width:20px;height:20px;margin:0;opacity:0;cursor:pointer}
.shop-check-box{position:relative;display:block;pointer-events:none;flex:0 0 20px;width:20px;height:20px;margin-top:1px;border:1px solid #b89557;border-radius:2px;background:#181a1c;box-shadow:inset 0 1px 3px #0008}
.shop-check input:checked+.shop-check-box{background:#383b3e;border-color:#edc67d}
.shop-check input:checked+.shop-check-box::after{content:"";display:block;position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff0cd;border-width:0 2px 2px 0;transform:rotate(45deg)}
.shop-check input:focus-visible+.shop-check-box{outline:2px solid #ffe3a1;outline-offset:3px}
.shop-check>span:last-child{min-width:0;overflow-wrap:anywhere}
.shop-bonus-options{min-width:0;margin:0}
.shop-embedded{min-width:0;margin:0;font-family:Tahoma,Arial,sans-serif;font-size:14px;line-height:1.5}
.shop-game-page{display:block;width:100%;scroll-padding-top:0}
.shop-game-page head,.shop-game-page script,.shop-game-page style{display:none!important}
.shop-game-page body{display:block}
.shop-embedded #content{display:block;width:100%;min-width:0}
.shop-embedded .shop-game-bar>span{min-width:0;overflow-wrap:anywhere;padding-right:10px}
.shop-embedded .shop-heading,.shop-embedded .shop-game-bar,.shop-embedded .shop-detail-copy,.shop-embedded .shop-card-content{min-width:0}
.shop-embedded .shop-shell,.shop-embedded .shop-detail-copy{overflow-wrap:anywhere}
.shop-embedded .shop-tabs{flex-wrap:wrap;overflow:visible}
.shop-embedded .shop-tabs a{min-width:0;white-space:normal}
.shop-embedded .shop-sidebar>a{overflow-wrap:anywhere}
.shop-embedded .shop-game-languages{margin-left:auto;flex:0 0 auto}
.shop-language-toggle{display:flex;align-items:center;justify-content:center;gap:6px;width:64px;min-height:30px;padding:4px 8px;border:1px solid var(--line);border-radius:5px;background:#25282b;color:var(--gold-bright);font:700 12px Tahoma,Arial,sans-serif;cursor:pointer;appearance:none}
.shop-language-toggle:hover,.shop-language-toggle[aria-expanded=true]{border-color:var(--line-strong);background:#303337}
.shop-embedded .shop-detail-copy>.shop-eyebrow{margin:0 0 8px}
.shop-embedded .shop-detail-copy>h2{margin:0 0 14px}
.shop-embedded .shop-description{margin:0 0 16px}
.shop-embedded .shop-specs{margin:0}
@media(max-width:700px){.shop-embedded .shop-sidebar{flex-wrap:wrap;overflow:visible}.shop-embedded .shop-sidebar>a{white-space:normal}}
@media(max-width:480px){.shop-card-actions{gap:7px;flex-wrap:wrap}.shop-card-actions .shop-button{min-width:0;flex:1}.shop-embedded .shop-wallet{grid-template-columns:minmax(0,1fr)!important}.shop-embedded .shop-wallet-entry{grid-template-columns:32px minmax(0,1fr) auto}.shop-embedded .shop-wallet-entry img{grid-row:1}.shop-embedded .shop-wallet-entry strong{grid-column:3}.shop-embedded .shop-wallet-entry em{display:none}.shop-embedded .shop-filters{flex-wrap:wrap}.shop-embedded .shop-search{flex-basis:100%}}
/* Compact catalog: keep native icon proportions and move full copy to Details. */
.shop-grid .shop-card-art{min-height:96px;margin:8px 8px 0}
.shop-grid .shop-card-content{padding:10px;gap:0}
.shop-grid .shop-card h2{font-size:15px;line-height:1.4;margin:0 0 10px;min-height:42px}
.shop-grid .shop-card-content>p{display:none}
.shop-grid .shop-card-price{gap:4px;margin:auto 0 10px}
.shop-grid .shop-card-price strong{font-size:21px}
.shop-grid .shop-card-price span{font-size:11px}
.shop-grid .shop-card-price img{width:22px;height:22px}
.shop-grid .shop-card .shop-button{min-height:36px;padding:7px 10px;font-size:14px}
.shop-grid .shop-card-actions{gap:6px;flex-wrap:wrap}
.shop-grid .shop-card-details{font-size:12px}
.shop-embedded .shop-layout{grid-template-columns:150px minmax(0,1fr);gap:12px}
.shop-embedded .shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.shop-embedded .shop-wallet-entry{padding:7px 10px}
.shop-embedded .shop-wallet-entry img{width:32px;height:32px}
.shop-embedded .shop-tabs{margin-bottom:10px}
.shop-embedded .shop-tabs a{padding:7px 12px}
.shop-embedded .shop-filters{margin-bottom:10px}
@media(max-width:900px){.shop-embedded .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.shop-embedded .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.shop-grid .shop-card-actions{align-items:stretch;flex-direction:column}.shop-grid .shop-card-actions .shop-button{width:100%}.shop-grid .shop-card-details{text-align:center}}

/* Category management uses compact neutral panels and explicit shop labels. */
.shop-category-manager,.shop-category-editor{background:#232528;border-color:#69655b;box-shadow:inset 0 0 0 2px #1c1e20;color:#e9e4d8;min-width:0}
.shop-category-manager .shop-note,.shop-category-editor .shop-note{color:#c8c6bf}
.shop-category-heading{display:flex;gap:20px;justify-content:space-between;align-items:flex-start}
.shop-category-heading>div{min-width:0;max-width:700px}
.shop-category-heading h2,.shop-category-editor h2{font-size:22px;line-height:1.4;margin:0 0 8px;color:#e9e4d8}
.shop-category-heading .shop-button{flex-shrink:0}
.shop-category-list{display:grid;gap:8px}
.shop-category-row{display:grid;grid-template-columns:92px minmax(120px,1fr) minmax(170px,1fr) 130px;align-items:center;gap:16px;padding:14px;border:1px solid #4c4e50;background:#2b2d30;scroll-margin-top:110px}
.shop-category-move{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.shop-category-move>span{grid-column:1/-1;text-align:center;font-size:13px;color:#c2bfb6}
.shop-category-manager .shop-button,.shop-category-editor .shop-button{background:linear-gradient(#45484b,#303336);border-color:#817763;box-shadow:inset 0 1px #ffffff14,inset 0 -1px #0006}
.shop-category-manager .shop-button:hover,.shop-category-editor .shop-button:hover{background:linear-gradient(#56595c,#3d4043)}
.shop-category-move .shop-button{padding:6px;min-height:34px;font-size:18px}
.shop-category-name,.shop-category-markets{min-width:0;overflow-wrap:anywhere}
.shop-category-name h3{font-size:16px;line-height:1.4;margin:0 0 7px}
.shop-category-name a,.shop-category-markets a{color:#eee8dc}
.shop-category-state{display:inline-block;font-size:12px;padding:2px 7px;border:1px solid #696b6d;border-radius:3px;color:#ddd9cf}
.shop-category-name p{font-size:12px;line-height:1.5;margin:7px 0 0;color:#c5c3bd}
.shop-category-markets{display:grid;gap:9px;font-size:13px}
.shop-category-markets small{display:block;color:#bbbcb9;font-size:12px;margin-top:3px}
.shop-category-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}
.shop-category-row .shop-category-actions{flex-direction:column;align-items:stretch;text-align:center;gap:8px}
.shop-category-editor .shop-category-actions{margin-top:22px}
.shop-category-editor .shop-admin-grid label{color:#dad7cf}
.shop-category-editor .shop-confirm{display:flex;align-items:center}
.shop-category-editor input:not([type=hidden]):not([type=checkbox]),.shop-category-editor select{background:#181a1c;color:#ede9df;border-color:#66686b}
.shop-category-editor h3{font-size:16px;margin:20px 0 14px}
@media(max-width:950px){.shop-category-row{grid-template-columns:80px minmax(0,1fr) minmax(150px,1fr)}.shop-category-row .shop-category-actions{grid-column:2/-1;flex-direction:row;align-items:center}.shop-category-heading{flex-wrap:wrap}}
@media(max-width:600px){.shop-category-row{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:12px}.shop-category-markets{grid-column:2}.shop-category-row .shop-category-actions{grid-column:1/-1;justify-content:flex-end}.shop-category-heading .shop-button{width:100%}}
