/* Readable, fluid workspace. Roulette geometry and odds are unchanged. */
:root:not([data-theme=light]){--bg:#101113;--surface:#191b1e;--well:#24272c;--card:#17191c;--hover:#30343a;--border:#373c44;--text:#fafbfc;--muted:#bdc3cc;--subtle:#909aa8}
body{background:var(--bg)}
.topbar{border-bottom:1px solid var(--border);background:var(--surface)}
.brand{letter-spacing:-.8px}.brand small{letter-spacing:1.3px}
.picker-panel{background:var(--surface);border-color:var(--border)}
.sort-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:98px;height:40px;min-height:40px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:var(--well);color:var(--muted);font:inherit;font-size:11px;white-space:nowrap;flex-shrink:0;cursor:pointer}
.sort-toggle:hover{background:var(--hover);border-color:var(--accent-border);color:var(--text)}
.sort-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.skin-card{transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.skin-card:hover{border-color:var(--rarity);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rarity) 30%,transparent)}
.skin-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 10%,transparent)}
#arena .panel-eyebrow{font-size:12px;font-weight:700;letter-spacing:0;display:flex;align-items:center;gap:8px}
#arena .panel-eyebrow:before{display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid var(--border);border-radius:8px;background:var(--well);font:600 10px/1 Manrope,sans-serif;color:var(--muted);flex-shrink:0}
#arena .stake-panel .panel-eyebrow:before{content:'01'}
#arena .target-panel .panel-eyebrow:before{content:'02'}
#arena .panel-eyebrow .panel-link{margin-left:auto;font-size:11px}
#arena .balance-controls label{font-size:11px}
#arena .amount-field input{font-size:15px;font-weight:700}
#arena .empty-selection p{font-size:14px;line-height:1.7;color:var(--muted)}
#arena .empty-selection svg{width:40px;height:40px;color:var(--subtle)}
.balance-stake-art{display:grid;place-items:center;flex:1;min-height:0}
.balance-stake-art>span{display:grid;place-items:center;width:84px;height:84px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(145deg,var(--well),var(--surface));box-shadow:0 14px 30px #0002}
.balance-stake-art svg{width:36px;height:36px;color:var(--accent)}
#arena .round-status{height:22px;min-height:22px;line-height:22px;margin-top:6px}
.fair-hash-button{height:22px;min-height:22px;line-height:22px;font-size:11px;gap:7px;padding:0 8px;border-radius:6px}
.fair-hash-button code{font-size:11px}.fair-hash-button svg{width:13px;height:13px}
.fair-hash-button:not(:disabled):hover{background:var(--well)}
.fair-intro,.fair-footnote{font-size:12px}.fair-field-label,.fair-meta,.fair-checks{font-size:11px}
.fair-value{font-size:12px}.fair-actions button,.fair-actions a{font-size:11px;min-height:38px}
#upgradeView #inventoryGrid>.inventory-empty{min-height:0;background:var(--card);border:1px solid color-mix(in srgb,var(--border) 65%,transparent);isolation:isolate}
#upgradeView .empty-preview-grid{inset:-6px;gap:10px;opacity:.55;filter:blur(3px);user-select:none;z-index:-2}
#upgradeView .empty-preview-grid>div{background:radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--rarity) 22%,transparent),transparent 85%),var(--well);border-color:color-mix(in srgb,var(--rarity) 32%,var(--border));border-radius:10px}
#upgradeView .empty-preview-grid img{width:86%;height:100%;max-height:140px;opacity:.9}
#upgradeView .inventory-empty:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--card) 86%,transparent) 12%,color-mix(in srgb,var(--card) 25%,transparent) 80%);pointer-events:none;z-index:-1}
#upgradeView .inventory-empty-card{flex-direction:column;max-width:calc(100% - 24px);width:min(100%,380px);padding:24px;border:1px solid var(--border);background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 16px 40px #0004;gap:16px;text-align:center;border-radius:14px}
.empty-inventory-symbol{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;border:1px solid var(--border);background:var(--well);color:var(--muted)}
.empty-inventory-symbol svg{width:23px;height:23px}
.empty-inventory-copy strong{font-size:17px;line-height:1.5;font-weight:700}
.empty-inventory-copy p{font-size:12px;line-height:1.7;color:var(--muted);margin:5px 0 0}
.empty-inventory-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
#upgradeView .empty-inventory-actions .primary-button,#upgradeView .empty-inventory-actions .inventory-shop{height:40px;min-height:40px;width:auto;min-width:100px;gap:7px;padding:0 14px;font-size:11px;border-radius:9px}
#upgradeView .empty-inventory-actions .inventory-shop{background:var(--well);color:var(--text);border:1px solid var(--border)}
.empty-inventory-actions svg{width:15px;height:15px}
#upgradeView .inventory-picker>.picker-bottom{display:none}
@media(min-width:751px) and (min-height:620px){
 body[data-view=upgrade] main{max-width:none;width:100%;padding:12px 20px 16px;margin-inline:0}
 #upgradeView .page-heading h1{font-size:24px}
 #upgradeView .setting-button,#upgradeView .volume-popover summary{height:30px;min-height:30px;font-size:10px}
 #arena .upgrade-button{font-size:16px;letter-spacing:-.3px;border-radius:12px}
 #arena .item-weapon{font-size:12px}#arena .item-finish{font-size:26px;line-height:1.2}
 #arena .item-condition{font-size:10px}#arena .item-value{font-size:11px}#arena .item-value b{font-size:22px}
 #arena .target-shortcuts button{font-size:13px;border-radius:9px}
 #upgradeView .picker-panel{padding:12px 12px 0;border-radius:14px}
 #upgradeView .section-title{height:32px;min-height:32px;margin-bottom:8px}
 #upgradeView .section-title h2{font-size:15px;letter-spacing:-.3px}
 #upgradeView .inventory-shop{height:30px;min-height:30px;font-size:11px;width:96px;min-width:96px}
 #upgradeView #selectAll{height:30px;min-height:30px;font-size:10px;width:96px}
 #upgradeView #clearSelection{width:30px;height:30px}
 #upgradeView .inventory-tools,#upgradeView .catalog-tools{height:36px;min-height:36px;margin-bottom:10px;gap:8px}
 #upgradeView .search-field,#upgradeView .filter-toggle,#upgradeView .inventory-tools select,#catalogSort{height:36px;min-height:36px;font-size:11px;border-radius:9px}
 #upgradeView .search-field input{font-size:12px}
 #upgradeView .inventory-tools select,#catalogSort{width:100px;min-width:100px}
 #upgradeView .filter-toggle{width:105px;min-width:105px}
 #upgradeView .skin-grid{grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:8px}
 #upgradeView .skin-card{display:flex;flex-direction:column;height:158px;min-height:158px;padding:10px;border-radius:10px;gap:0}
 #upgradeView .skin-card .wear{display:block;font-size:9px;height:12px;min-height:12px;line-height:12px;padding-left:5px}
 #upgradeView .skin-card:before{top:14px;left:9px;width:3px;height:3px}
 #upgradeView .skin-card img{height:58px;min-height:58px;width:100%;margin:3px 0 4px;grid-area:auto}
 #upgradeView .card-weapon{font-size:9px;line-height:13px;min-height:13px;grid-area:auto}
 #upgradeView .card-finish{font-size:11px;line-height:14px;min-height:28px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;grid-area:auto}
 #upgradeView .card-price{font-size:12px;line-height:17px;min-height:17px;padding-right:15px;margin-top:auto;gap:4px;grid-area:auto}
 #upgradeView .card-price small{font-size:8px;width:20px}
 #upgradeView .card-check{width:17px;height:17px;bottom:10px;right:6px;font-size:10px}
 #upgradeView .picker-bottom{font-size:10px}.picker-bottom .text-button{font-size:10px}
}
@media(min-width:1100px){
 .live-feed{left:12px;width:156px;top:72px;bottom:16px;border-radius:14px}
 body[data-view=upgrade] main{width:calc(100% - 184px);margin-left:184px;margin-right:0;padding-left:0;padding-right:20px}
 .live-feed-head{height:40px}.live-feed-head strong{font-size:12px}.live-word{font-size:8px}
 .live-feed-caption{font-size:9px;height:30px}.live-drop{height:146px;padding:10px}
 .live-drop img{height:52px}.live-drop-chance,.live-drop-weapon{font-size:9px}
 .live-drop strong{font-size:11px;line-height:16px}.live-drop-value{font-size:11px}.live-drop time{font-size:8px}
}
@media(min-width:751px) and (min-height:620px) and (max-height:780px){
 #upgradeView{--wheel-size:clamp(212px,calc(46dvh - 85px),270px);grid-template-rows:30px calc(var(--wheel-size) + 102px) auto minmax(0,1fr);gap:8px}
 #arena .item-finish{font-size:22px}#arena .item-value b{font-size:19px}
 #upgradeView .picker-panel{padding-top:8px}#upgradeView .section-title{margin-bottom:5px}
 #upgradeView .inventory-tools,#upgradeView .catalog-tools{margin-bottom:7px;height:32px;min-height:32px}
 #upgradeView .search-field,#upgradeView .filter-toggle,#upgradeView .inventory-tools select,#catalogSort{height:32px;min-height:32px}
 #upgradeView .inventory-empty-card{padding:12px;gap:10px}.empty-inventory-symbol{display:none}
 .empty-inventory-copy strong{font-size:14px}.empty-inventory-copy p{font-size:11px}
}
@media(min-width:751px) and (max-width:1099px){
 #upgradeView .section-title h2{font-size:13px}#upgradeView .inventory-shop{width:78px;min-width:78px;font-size:10px}
 #upgradeView #selectAll{width:76px;font-size:9px}#upgradeView .filter-toggle{width:88px;min-width:88px}
 #upgradeView .inventory-tools select,#catalogSort{width:88px;min-width:88px}
}
@media(min-width:751px) and (min-height:620px) and (max-height:680px){
 #upgradeView .skin-grid{grid-template-columns:repeat(auto-fill,minmax(162px,1fr))}
 #upgradeView .skin-card{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:12px 28px 18px;height:72px;min-height:72px;padding:6px 8px;gap:0 6px}
 #upgradeView .skin-card .wear{display:none}
 #upgradeView .skin-card img{grid-column:1;grid-row:1/3;width:42px;height:40px;min-height:40px;margin:0}
 #upgradeView .card-weapon{grid-column:2;grid-row:1;font-size:10px;line-height:12px;min-height:12px}
 #upgradeView .card-finish{grid-column:2;grid-row:2;font-size:11px;line-height:14px;min-height:28px}
 #upgradeView .card-price{grid-column:1/-1;grid-row:3;font-size:12px;margin:0;min-height:18px;line-height:18px;padding-right:18px}
 #upgradeView .card-check{bottom:6px}
}
@media(max-width:750px){
 #arena .panel-eyebrow{font-size:10px;gap:5px}#arena .panel-eyebrow:before{width:18px;height:18px;border-radius:5px;font-size:8px}
 #arena .panel-eyebrow .panel-link{font-size:9px}#arena .balance-controls label{font-size:9px}
 #arena .empty-selection p{font-size:10px;line-height:1.5}#arena .empty-selection svg{width:23px;height:23px}
 #arena .round-status{height:20px;min-height:20px;line-height:20px;margin-top:5px}
 .fair-hash-button,.fair-hash-button code{font-size:10px}.fair-hash-button{height:20px;min-height:20px;padding-inline:3px;gap:4px}.fair-hash-button svg{width:11px;height:11px}
 #upgradeView .skin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #upgradeView .skin-card{display:flex;flex-direction:column;height:152px;min-height:152px;padding:9px;border-radius:9px;gap:0}
 #upgradeView .skin-card .wear{display:block;font-size:9px;height:12px;min-height:12px;line-height:12px}
 #upgradeView .skin-card img{width:100%;height:54px;min-height:54px;margin:3px 0;grid-area:auto}
 #upgradeView .card-weapon{font-size:10px;line-height:13px;min-height:13px;grid-area:auto}
 #upgradeView .card-finish{font-size:12px;line-height:15px;min-height:30px;white-space:normal;grid-area:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #upgradeView .card-price{font-size:13px;line-height:18px;min-height:18px;margin-top:auto;padding-right:19px;grid-area:auto}
 #upgradeView .card-price small{font-size:8px;width:20px}#upgradeView .card-check{width:17px;height:17px;bottom:9px;right:5px;font-size:10px}
 #upgradeView .inventory-empty-card{padding:14px;gap:12px}.empty-inventory-copy strong{font-size:15px}.empty-inventory-copy p{font-size:11px}
 #upgradeView .empty-inventory-actions .primary-button,#upgradeView .empty-inventory-actions .inventory-shop{font-size:11px;height:36px;min-height:36px;padding-inline:10px;min-width:80px}
 .balance-stake-art{flex:0 0 26px;height:26px}.balance-stake-art>span{width:24px;height:24px;border-radius:7px;background:none;border:0;box-shadow:none}.balance-stake-art svg{width:17px;height:17px}
 .balance-stake-art+.item-meta .item-weapon{display:none}
 .fair-checks{grid-template-columns:1fr}.fair-check{font-size:11px}.fair-value{font-size:11px}
 .shop-grid,.account-collection .full-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container empty-inventory (max-height:220px){
 #upgradeView .inventory-empty-card{padding:12px;gap:8px}
 #upgradeView .inventory-empty-card .empty-inventory-symbol{display:none}
 .empty-inventory-copy strong{font-size:14px;line-height:1.4}
 .empty-inventory-copy p{font-size:11px;line-height:1.4}
}
@container empty-inventory (max-height:160px){
 #upgradeView .inventory-empty-card{padding:6px;gap:6px}
 .empty-inventory-copy strong{font-size:12px;line-height:1.3}
 .empty-inventory-copy p{display:none}
 #upgradeView .empty-inventory-actions .primary-button,#upgradeView .empty-inventory-actions .inventory-shop{height:32px;min-height:32px;font-size:10px;padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){.skin-card{transition:none}}
#upgradeView>.page-heading h1,#arena .panel-eyebrow{display:none}
#arena .panel-eyebrow:before{content:none}
#upgradeView .game-settings{margin-left:auto}
#upgradeView .inventory-navigation{display:flex;align-items:center;gap:6px;flex-shrink:0}
@media(max-width:1200px){
 #upgradeView .inventory-picker .section-title{display:grid;grid-template-columns:minmax(0,1fr) auto auto;height:auto;min-height:32px;gap:6px}
 #upgradeView .inventory-picker .section-title h2{grid-column:1;grid-row:1;min-width:0}
 #upgradeView .inventory-navigation{grid-column:1/-1;grid-row:2}
 #upgradeView .inventory-navigation .inventory-shop{width:98px;min-width:98px;height:30px;min-height:30px;font-size:11px}
 #upgradeView .inventory-picker #selectAll{grid-column:2;grid-row:1;margin-left:0}
 #upgradeView .inventory-picker #clearSelection{grid-column:3;grid-row:1}
}
@media(min-width:751px) and (min-height:620px){
 #arena .stake-panel,#arena .target-panel{grid-template-rows:minmax(0,1fr) 74px}
 #arena .item-display{grid-row:1}
 #arena .balance-controls,#arena .target-tuning{grid-row:2}
}
