/* Fixed game viewport. Text explanations live in shared hover/focus tooltips. */
html,body{height:100%;overflow:hidden}
body{overscroll-behavior:none}
.ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:5px;color:#a69b9d;background:none;border:1px solid transparent}
.icon-button:hover,.icon-button[aria-pressed=true]{color:#fff;border-color:#593039;background:#1b0b10}
#view-home.unified-game{height:100dvh;min-height:0;overflow:hidden}
.game-workspace{position:relative;z-index:2;display:grid;grid-template-columns:145px minmax(0,1fr) 290px;gap:22px;width:95%;max-width:1800px;height:100dvh;margin:0 auto;padding:116px 0 14px;box-sizing:border-box;min-height:0;overflow:hidden;align-items:stretch}
.game-play-column{min-width:0;min-height:0;position:relative;display:grid;grid-template-rows:minmax(0,1fr) 42px 130px;gap:10px}
.game-play-column::before{content:'禁域';position:absolute;top:10%;left:2%;writing-mode:vertical-rl;color:#c9001d;font-size:74px;opacity:.13;pointer-events:none}
#view-home.unified-game .hero-stage{position:relative;inset:auto;transform:none;width:100%;height:100%;min-height:0;margin:0}
#view-home.unified-game .case-viewer{height:100%;width:100%;cursor:pointer}
.case-funds{position:absolute;z-index:30;bottom:14px;left:50%;transform:translateX(-50%);width:min(390px,94%);box-sizing:border-box;padding:18px 20px 16px;background:#170a10f5;border:1px solid #c5415a;border-left:3px solid #ef4665;box-shadow:0 12px 45px #000c,0 0 30px #bd163322;pointer-events:auto;text-align:left}
.case-funds[hidden]{display:none}.case-funds strong{display:block;padding-right:16px;font:600 18px/1.3 var(--font-ui);color:#ffced7}.case-funds p{font:11px var(--font-mono);color:#c8a8b2;margin:8px 0 14px}.case-funds-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.case-funds-actions .button{padding:11px 14px;font-size:11px;background:#a6203c;border-color:#e64a69;color:#fff}.case-funds-actions .button:disabled{opacity:.45;background:#362128;border-color:#76505c;cursor:default}.case-funds-actions .text-button{font-size:10px;color:#f0c7d1}.case-funds small{display:block;margin-top:11px;color:#c9aeb7;font:11px/1.5 var(--font-ui)}.case-funds-close{position:absolute;right:9px;top:7px;font-size:20px;color:#cf9dab}
@media(max-width:700px){.case-funds{bottom:4px;padding:12px 14px}.case-funds strong{font-size:15px}.case-funds p{margin:6px 0 9px}.case-funds small{font-size:10px}.case-funds-actions .button{padding:9px 11px;font-size:10px}}
#view-home.unified-game .viewer-toolbar{bottom:2px;font-size:8px;gap:12px;opacity:.7;width:100%;justify-content:center}
#view-home.unified-game .viewer-toolbar .text-button{font-size:10px}
#view-home.unified-game .case-action{position:static;inset:auto;transform:none;width:100%;padding:0;border:0;margin:0;pointer-events:auto;align-self:center}
.newgame-controls{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:nowrap;font-size:9px}
.newgame-controls label{font-size:9px;gap:6px;white-space:nowrap;color:#b6aaad}
.newgame-controls select{padding:6px 9px;font-size:10px;background:#0a0809;border-color:#3c2b30}
.case-price{display:inline-flex;align-items:center;gap:5px;color:#a99b9b;font:10px var(--font-mono)}
.scrap-glyph{color:#caac8a;font-size:17px}.case-price b{font-weight:400;color:#e7d6c9}
#game-boss{position:absolute;right:8px;top:calc(100% - 173px);display:flex;align-items:center;gap:6px;padding:5px;font:10px var(--font-mono)}
#batch-stop{color:#f8495e;font-size:12px}
#pending-warning,#batch-status,#result{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);padding:0!important;margin:0!important;white-space:nowrap}
.build-panel{min-width:0;min-height:0;margin:0;padding:8px 0 0;border-top:1px solid #2e2024}
.build-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.build-heading h2{font-size:11px;font-weight:400;color:#b5a7a9;margin:0}.build-heading .technical-label{font-size:8px;color:#736469}
.build-panel>.small-note,#loadout-stats{display:none}
#view-home.unified-game #loadout-slots{display:grid;position:static;grid-template-columns:repeat(3,minmax(0,1fr));height:94px;gap:9px;padding:0;margin:0;background:none}
#view-home.unified-game .newgame-slot{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:94px;padding:5px 8px;border:1px solid #3a292f;background:linear-gradient(120deg,#10090c,#060506);overflow:hidden}
#view-home.unified-game .newgame-slot:before{display:none}
#view-home.unified-game .newgame-slot>.technical-label{position:absolute;top:5px;left:6px;margin:0;padding:0;color:#9b838a;line-height:1}
#view-home.unified-game .newgame-slot>.technical-label .ui-icon{width:15px;height:15px}
#view-home.unified-game .newgame-slot>.small-note{display:none}
#view-home.unified-game .newgame-slot>.text-button{width:100%;height:100%;min-height:0;border:0;background:none;color:#76515d;font-size:23px;margin:0}
#view-home.unified-game #loadout-slots .newgame-card{width:100%;height:100%;min-height:0;border:0;box-shadow:none;background:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;overflow:visible}
#view-home.unified-game #loadout-slots .newgame-card::before,#view-home.unified-game #loadout-slots .newgame-card::after{display:none}
#view-home.unified-game #loadout-slots .hat-art{width:100%;height:65px!important;margin:7px 0 0;min-height:0}
#view-home.unified-game #loadout-slots .hat-art img{max-width:70px;max-height:66px;width:70px;height:66px;object-fit:contain}
#view-home.unified-game #loadout-slots .newgame-card>span:not(.gear-level){display:none}
#view-home.unified-game #loadout-slots .gear-level{position:absolute;bottom:2px;right:3px;font:8px var(--font-mono);margin:0}
.slot-remove{position:absolute;top:2px;right:2px;z-index:3;color:#af7d89;border:0;background:none;padding:3px;line-height:1}
.slot-remove .ui-icon{width:12px;height:12px}.slot-remove:hover{color:#fff}
.game-sidebar{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}
#view-home.unified-game #player-stat-panel{position:relative;width:100%;margin:0;pointer-events:auto;flex-shrink:0}
#view-home.unified-game .player-stat-panel .player-level{font:18px var(--font-mono);margin:0 0 9px}
#view-home.unified-game .player-stat-panel progress{width:100%;height:2px}
#view-home.unified-game .player-stat-panel .small-note{font-size:9px;line-height:1.7;margin:8px 0}
#player-stat-panel details{position:absolute;right:0;top:0;z-index:8}
#player-stat-panel details>summary{font-size:16px;list-style:none;cursor:pointer;padding:0 3px}
#player-stat-panel details[open]{background:#100c0f;border:1px solid #55313d;width:210px;padding:8px}
#view-home.unified-game .leaderboard-trigger{position:static;inset:auto;width:100%;height:32px;min-height:0;padding:6px;transform:none;margin:0;display:flex;justify-content:center;align-items:center}
#view-home.unified-game .community-controls{position:relative;inset:auto;display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between;width:100%;min-height:0;flex:1;padding:0;align-content:start}
#view-home.unified-game .community-controls>button{font-size:9px;display:flex;align-items:center;gap:6px;padding:3px}
#view-home.unified-game .game-sidebar .chat-panel{position:relative;inset:auto;display:flex;flex-direction:column;width:100%;height:clamp(150px,35vh,310px);max-height:100%;min-height:0;margin:0;padding:10px 7px;box-shadow:none}
#view-home.unified-game .game-sidebar .chat-panel[hidden]{display:none}
.chat-panel #chat-header-actions{flex-shrink:0}.chat-panel #chat-log{min-height:0;flex:1;font-size:10px}.chat-panel .chat-message p{font-size:10px}.chat-panel #chat-input{font-size:9px;padding:8px 4px}.chat-panel #chat-older{font-size:8px}
#view-home.unified-game #view-inventory{display:flex;flex-direction:column;min-height:0;height:100%;min-width:0;padding:0 0 0 15px;border-left:1px solid #302128;overflow:hidden;gap:0}
.play-inventory .page-heading{display:flex;align-items:center;gap:8px;padding:0;margin:0 0 8px;border:0;flex-shrink:0;min-height:28px}
.play-inventory .page-heading h2{font:13px var(--font-ui);margin:0;color:#d9cdd1}.play-inventory .page-heading p{display:none}
#inventory-capacity{font-size:8px;color:#8d7880;margin-left:auto;white-space:nowrap}
.inventory-sort-corner{display:flex;align-items:center}.inventory-sort-corner select{background:#080609;border:1px solid #34242c;color:#a99a9f;padding:4px;max-width:86px;font:8px var(--font-mono)}
.slot-filters{display:flex;gap:8px;margin:0 0 7px;flex-shrink:0}.slot-filters .ui-icon{width:15px;height:15px}.slot-filters .icon-button{padding:4px 7px}
.play-inventory .newgame-inventory-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:0;margin:0 0 9px;flex-shrink:0}
.recycle-toggle{display:flex;align-items:center;gap:6px;font:10px var(--font-ui);color:#b9a9af;background:none;border:1px solid #59333d;padding:5px 9px}
.recycle-toggle .ui-icon{width:14px;height:14px}.recycle-toggle[aria-pressed=true]{color:#fff;background:#6f1528;border-color:#e64160}
.play-inventory .newgame-inventory-toolbar{flex-wrap:wrap;gap:5px 8px}
.recycle-dropzone{position:relative;flex:1;justify-content:center;min-height:35px;border-style:dashed;transition:background .18s,border-color .18s,box-shadow .18s}
.recycle-dropzone::after{content:attr(data-drop-value);position:absolute;bottom:100%;right:0;white-space:nowrap;color:#f4cfaa;background:#140d10;font:10px var(--font-mono);padding:4px 7px;pointer-events:none;opacity:0}
.newgame-dragging .recycle-dropzone{border-color:#ce6c4c;background:#29130f;box-shadow:inset 0 0 20px #e05c2618}
.newgame-dragging .recycle-dropzone::after{opacity:1}.recycle-dropzone.is-drag-over{box-shadow:0 0 22px #e0764240!important;background:#492114!important;border-color:#ffb781!important}
.recycle-dropzone.is-drag-blocked{border-color:#6d6468;background:#201c20}.recycle-dropzone.is-recycling{border-color:#eaa078;background:#3a1c14;color:#ffdabd}
.recycle-bulk-actions{display:flex;gap:6px;flex:1 0 100%}.recycle-bulk-actions button{flex:1;border:1px solid #4b3036;background:#160d11;color:#c7aab2;padding:5px 3px;font:9px var(--font-ui)}
.recycle-bulk-actions button:hover{border-color:#d68a60;color:#ffd4af}.recycle-bulk-actions button:disabled{opacity:.35;cursor:default}
.recycle-departed{visibility:hidden!important}.recycle-scrap-particle{position:fixed;z-index:21000;pointer-events:none;color:#ffdab3;font:700 15px var(--font-mono);text-shadow:0 0 12px #ea7d4f;will-change:transform,opacity}
.play-inventory .newgame-item-grid{overflow-x:hidden}
.play-inventory .newgame-item-grid>.small-note{grid-column:1/-1;line-height:1.5;margin:8px 0;align-self:start}
.pending-auto-label{margin-left:8px;font:9px var(--font-ui);color:#c89d86}
.newgame-recycle-flight{z-index:21000!important;overflow:hidden}.recycle-preview,.recycle-shake{border-color:#d68a60!important}.recycle-preview .hat-art img,.recycle-shake .hat-art img{animation:recycle-rattle .28s ease-in-out infinite!important;transform-origin:50% 60%}
@keyframes recycle-rattle{0%,100%{transform:translate3d(0,0,0) rotate(0)}25%{transform:translate3d(-2px,1px,0) rotate(-3deg)}50%{transform:translate3d(0,-1px,0) rotate(1deg)}75%{transform:translate3d(2px,-1px,0) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.recycle-preview .hat-art img{animation:none!important}.recycle-preview{outline:1px solid #d68a60}.recycle-dropzone{transition:none}}
.inventory-menu{position:relative;z-index:10}.inventory-menu summary{list-style:none;cursor:pointer;color:#a8959d;padding:4px}.inventory-menu-content{position:absolute;right:0;top:100%;width:195px;display:flex;flex-direction:column;gap:4px;padding:9px;background:#130b10;border:1px solid #68404e;box-shadow:0 12px 30px #000}
.inventory-menu-content button{text-align:left;padding:8px 5px;font-size:10px;background:none;color:#d5c5ca;border:0}.inventory-menu-content button:hover{background:#3b1220}
.play-inventory .newgame-item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:72px;gap:6px;min-height:0;overflow:auto;align-content:start;scrollbar-width:thin;flex-shrink:1}
.play-inventory .newgame-card{height:72px;min-height:0;padding:4px;cursor:grab;display:flex;justify-content:center;align-items:center;overflow:hidden;flex-direction:column;background:#0c090b;border-bottom-width:1px}
.play-inventory .newgame-card .hat-art{height:39px!important;width:100%;min-height:0;margin:0}
.play-inventory .newgame-card .hat-art img{width:38px;height:38px;max-width:38px;max-height:38px;object-fit:contain}
.play-inventory .newgame-card .item-name{font:8px/1.2 var(--font-ui);max-width:100%;min-height:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;text-align:center;margin:3px 0 0}
.play-inventory .newgame-card .gear-level{position:absolute;top:3px;left:4px;font:7px var(--font-mono);margin:0}
.play-inventory .newgame-card .gear-effect,.play-inventory .newgame-card .gear-price,.play-inventory .newgame-card .gear-mods,.play-inventory .newgame-card .gear-compare,.play-inventory .effect-label,.play-inventory .gear-locked{display:none}
.play-inventory .newgame-card::after{display:none}
.play-inventory .newgame-card.recycle-ready{border-color:#7a263c;cursor:pointer;background:#1b0a12}.recycle-card-value{position:absolute;bottom:3px;right:4px;font:9px var(--font-mono);color:#eaa38c;background:#13090bd9;padding:2px}.recycle-ready .item-name{visibility:hidden}
.play-inventory .newgame-pager{display:flex;justify-content:center;gap:16px;align-items:center;margin:8px 0 6px;min-height:18px;flex-shrink:0}.newgame-pager .small-note{font:8px var(--font-mono);margin:0}.newgame-pager button{font-size:11px}
.inventory-overflow{border-top:1px solid #34202a;font-size:9px;color:#a48a95;margin-top:6px;min-height:22px;flex-shrink:0}.inventory-overflow summary{padding:6px 0;cursor:pointer;list-style:none}.inventory-overflow summary span{margin-left:6px;color:#e47792}.inventory-overflow[hidden]{display:none!important}.inventory-overflow .newgame-item-grid{max-height:125px;overflow:auto}.inventory-overflow>#recycle-locked{font-size:9px;margin:3px 0 7px}
.item-tooltip{position:fixed;inset:auto;margin:0;padding:14px 16px;width:min(310px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;box-sizing:border-box;background:#130c10f5;color:#e6d9df;border:1px solid #70404f;box-shadow:0 10px 38px #000b;z-index:20000;pointer-events:none;text-align:left;font:12px/1.6 var(--font-ui)}
.item-tooltip[hidden]{display:none}.item-tooltip strong{display:block;font-size:14px;font-weight:500}.item-tooltip small{display:block;color:#bc8d9c;font:9px/1.6 var(--font-mono);margin:5px 0 10px}.item-tooltip p{margin:0 0 8px}.item-tooltip .tooltip-note{font-size:10px;color:#bba5ad}.item-tooltip footer{font-size:10px;color:#d8b6a4;border-top:1px solid #4b2b36;margin-top:10px;padding-top:8px}
.item-tooltip b,.inspect-description b,#gear-detail>.small-note b{font-weight:700;color:#f4f0f2}.item-tooltip p:first-of-type b,.inspect-description b{color:#f5becb}.item-tooltip .item-help-warning,#gear-detail>.item-help-warning{color:#e7ad84;border-left:2px solid #b86645;padding-left:8px}.item-tooltip .item-help-warning b,#gear-detail>.item-help-warning b{color:#ffcca8}.item-tooltip{line-height:1.5}.item-tooltip>strong{font-weight:650}.item-tooltip small{margin-bottom:8px}.item-tooltip footer{color:#d3b9a5}
.inspect-identity{display:flex;align-items:center;gap:14px;margin:8px 0 16px}.inspect-identity h2{font-size:22px;margin:0!important}.inspect-identity .hat-art{height:50px!important;width:56px;flex:0 0 56px;margin:0}.inspect-identity .hat-art img{max-height:48px;max-width:48px}.inspect-identity .effect-label{display:none}.inspect-description{font-size:14px;line-height:1.75;color:#e1d3d8;margin:12px 0 18px}.newgame-detail-actions .recycle-primary{flex:1 0 100%;padding:12px;background:#4b1120;border:1px solid #a6324e;color:#f4d7df}.newgame-detail-actions .recycle-primary:disabled{background:#20161b;color:#8a767f}
#view-home.unified-game #opening-dialog{position:absolute;inset:10px 0 auto;width:100%;margin:0;max-height:calc(100% - 150px);padding:16px;overflow:auto;z-index:15;background:#10080cf5;border-color:#682739;box-shadow:0 10px 38px #000b}
#view-home.unified-game #opening-dialog h2{font-size:21px;margin:5px 0 14px}#newgame-rewards{max-height:210px!important}#newgame-rewards .hat-art{height:55px!important}#newgame-rewards .newgame-card{height:150px;padding:8px}#newgame-rewards .item-name{font-size:10px}#opening-status{font-size:8px}#newgame-procs{font-size:9px}
.app-page-dialog{width:min(1100px,94vw);max-height:90dvh;overflow:auto;padding:38px 26px;background:#0a0709;border:1px solid #56303e}.app-page-dialog .page-heading{margin:0 0 20px;padding:0 0 15px}.app-page-dialog .page-heading h1{font-size:30px}.app-page-dialog .profile-layout{grid-template-columns:260px minmax(0,1fr)}
.navigation{height:70px}.resource-bar{top:80px!important;gap:14px!important;font-size:9px!important}.resource-bar #show-shop{padding:0}.resource-bar #show-shop .ui-icon{width:16px;height:16px}.resource-bar #exchange-keys{font-size:8px}
#toggle-community{display:none}
@media(min-width:1600px){.game-workspace{grid-template-columns:170px minmax(0,1fr) 330px;gap:28px}.play-inventory .newgame-item-grid{grid-auto-rows:80px}.play-inventory .newgame-card{height:80px}}
@media(max-width:1100px){.game-workspace{grid-template-columns:125px minmax(0,1fr) 250px;gap:14px}.play-inventory .newgame-item-grid{gap:5px}.play-inventory .newgame-card .item-name{font-size:7px}.recycle-toggle{font-size:9px;padding:5px}.inventory-sort-corner select{max-width:65px}.newgame-controls{gap:10px}.newgame-controls label{font-size:8px}}
@media(max-width:899px){.game-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:15px}.game-sidebar{display:none}#toggle-community{display:inline-flex}.community-expanded .game-sidebar{display:flex;position:fixed;top:112px;left:12px;bottom:14px;width:210px;z-index:40;padding:14px;background:#100a0ef5;border:1px solid #58303e;box-shadow:10px 0 50px #000}.community-expanded #view-home.unified-game .game-sidebar .chat-panel{height:auto;flex:1;max-height:100%}.game-play-column{grid-template-rows:minmax(0,1fr) 42px 130px}}
@media(max-width:600px){.game-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,56fr) minmax(0,44fr);gap:9px;padding:110px 0 9px;width:94%;}.game-play-column{grid-template-rows:minmax(0,1fr) 31px 83px;gap:4px}#view-home.unified-game .hero-stage{height:100%;margin:0;inset:auto}#view-home.unified-game .viewer-toolbar{font-size:6px;bottom:0}.game-play-column::before{font-size:48px;left:0;top:15%}.build-panel{padding-top:4px}.build-heading{display:none}#view-home.unified-game #loadout-slots{height:76px;gap:7px}#view-home.unified-game .newgame-slot{height:76px;padding:3px 5px}#view-home.unified-game #loadout-slots .hat-art{height:49px!important;margin:3px 0 0}#view-home.unified-game #loadout-slots .hat-art img{max-height:48px;width:50px;height:48px}#view-home.unified-game .newgame-slot>.technical-label .ui-icon{width:12px;height:12px}#game-boss{top:calc(100% - 111px);right:0;font-size:8px}#game-boss .ui-icon{width:13px;height:13px}.newgame-controls{gap:10px}.newgame-controls label{font-size:7px}.newgame-controls select{padding:3px 6px;font-size:9px}.case-price{font-size:9px}#view-home.unified-game #view-inventory{padding:7px 0 0;border-left:0;border-top:1px solid #3a2430;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:25px 25px minmax(0,1fr) 18px;gap:4px 8px}.play-inventory .page-heading{grid-column:1/-1;margin:0;min-height:0}.play-inventory .page-heading h2{font-size:11px}.slot-filters{margin:0;gap:5px;align-items:center}.slot-filters .icon-button{padding:2px 7px}.slot-filters .ui-icon{width:14px;height:14px}.play-inventory .newgame-inventory-toolbar{margin:0;justify-content:flex-end;gap:8px}.recycle-toggle{font-size:9px;padding:3px 7px}.recycle-toggle .ui-icon{width:12px;height:12px}.play-inventory>#inventory-grid{grid-column:1/-1;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(48px,1fr);height:100%;overflow:auto}.play-inventory .newgame-card{height:100%;min-height:48px;max-height:74px;padding:3px}.play-inventory .newgame-card .hat-art{height:30px!important}.play-inventory .newgame-card .hat-art img{max-height:29px;width:29px;height:29px;max-width:29px}.play-inventory .newgame-card .item-name{display:none}.play-inventory .newgame-card .gear-level{font-size:6px;left:2px;top:2px}.play-inventory .newgame-pager{grid-column:1/-1;margin:0;min-height:0;gap:16px}.inventory-overflow{position:absolute;right:3%;bottom:10px;z-index:12;background:#10090e;padding:0 7px;max-width:65%;margin:0}.inventory-overflow[open]{bottom:31px;width:70%;border:1px solid #673142;padding:8px}.inventory-overflow:has(#locked-grid){right:auto;left:3%}.inventory-overflow .newgame-item-grid{grid-auto-rows:60px;grid-template-columns:repeat(4,minmax(0,1fr));max-height:125px}.app-page-dialog .profile-layout{grid-template-columns:1fr}.app-page-dialog{padding:32px 15px 20px}.navigation nav{gap:10px}.resource-bar{top:83px!important}.navigation{height:85px}#show-shop{margin-left:0!important}}
@media(max-height:650px) and (min-width:601px){.game-workspace{padding-top:100px}.game-play-column{grid-template-rows:minmax(0,1fr) 34px 110px;gap:6px}#view-home.unified-game #loadout-slots,#view-home.unified-game .newgame-slot{height:78px}#view-home.unified-game #loadout-slots .hat-art{height:53px!important}.build-panel{padding-top:3px}.build-heading{margin-bottom:3px}.game-sidebar .chat-panel{height:170px!important}.play-inventory .newgame-item-grid{grid-auto-rows:62px}.play-inventory .newgame-card{height:62px}.play-inventory .newgame-card .hat-art{height:31px!important}.play-inventory .newgame-card .hat-art img{max-height:30px}#game-boss{top:calc(100% - 147px)}}
@media(prefers-reduced-motion:reduce){.item-tooltip{scroll-behavior:auto}}
#view-home.unified-game #player-stat-panel{inset:auto}

@media(max-width:600px){.play-inventory>#inventory-grid{max-height:132px}}
.inventory-overflow summary{display:flex;align-items:center;gap:5px}.inventory-overflow summary .ui-icon{width:13px;height:13px}
#view-home.unified-game .viewer-toolbar{left:auto;right:4px;top:4px;bottom:auto;width:auto;transform:none}
#view-home.unified-game #viewer-help{display:none}

/* Stable inventory cells: item feedback never moves the grid itself. */
.play-inventory #inventory-grid{overflow-x:hidden;padding:2px;box-sizing:border-box}
.inventory-cell{position:relative;min-width:0;min-height:0;height:100%;border:1px solid #35282e;background:linear-gradient(140deg,#110d10,#080709);box-sizing:border-box;isolation:isolate;overflow:hidden}
.inventory-cell.is-empty{border-color:#30232a;background:linear-gradient(145deg,#0f0b0e,#070608)}
.inventory-cell.is-empty::before{content:'+';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:16px var(--font-mono);color:#3a2932}
.play-inventory .inventory-cell>.newgame-card{width:100%;height:100%;max-height:none;min-height:0;box-sizing:border-box;margin:0}
.awaiting-reward{visibility:hidden!important}
.inventory-cell.slot-arrival::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;background:radial-gradient(ellipse,#fff,#fff8 45%,transparent 75%);animation:inventory-slot-flash .55s ease-out both}
.slot-arrival:not(.inventory-cell){animation:inventory-slot-label .55s ease-out}
@keyframes inventory-slot-flash{0%{opacity:.95}100%{opacity:0}}
@keyframes inventory-slot-label{0%{color:white;filter:brightness(2);text-shadow:0 0 12px #fff}100%{filter:brightness(1)}}
/* Compact reveal panel; concealed rewards do not reserve any height. */
#view-home.unified-game #opening-dialog{padding:12px;min-height:0;height:auto;max-height:calc(100% - 145px);box-sizing:border-box}
#opening-dialog>.technical-label,#opening-status:empty{display:none}
#view-home.unified-game #opening-dialog h2{font-size:18px;line-height:1.2;margin:0 0 8px}
#newgame-procs{margin:5px 0;gap:4px;max-height:42px;overflow:auto}#newgame-procs:empty{display:none}#newgame-procs .overload-event{padding:4px 6px;font-size:8px}
#newgame-rewards[hidden]{display:none!important}
#newgame-rewards{grid-template-columns:repeat(auto-fit,minmax(78px,110px));justify-content:center;gap:6px;margin-top:0;max-height:255px!important}
#newgame-rewards .newgame-card{height:88px;min-height:0;padding:5px;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center}
#newgame-rewards .hat-art{height:36px!important;min-height:0;margin:0}#newgame-rewards .hat-art img{height:34px;width:40px;object-fit:contain}
#newgame-rewards .item-name{font-size:8px;line-height:1.2;margin:3px 0;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
#newgame-rewards .gear-effect,#newgame-rewards .gear-price,#newgame-rewards .gear-mods,#newgame-rewards .effect-label,#newgame-rewards .gear-compare{display:none}
#newgame-rewards .overload-origin{font-size:7px;min-height:0;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}
#newgame-reels{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
#newgame-reels:empty{display:none}#newgame-reels.multi-reels{grid-template-columns:repeat(2,minmax(0,1fr))}
#newgame-reels .roulette{height:96px;margin:0;min-width:0;border:1px solid #44232d;background:#0c080b}
#newgame-reels.multi-reels .roulette{height:58px;box-sizing:border-box}
#newgame-reels .reel{gap:6px;flex-shrink:0}
.reel-cosmetic{width:84px;height:86px;flex:0 0 84px;display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;border-bottom:2px solid #776d73;background:#151014;padding:4px}
.reel-cosmetic img{width:48px;height:48px;object-fit:contain}.reel-cosmetic span{display:block;font:8px var(--font-ui);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d9c9d0}
.multi-reels .reel-cosmetic{width:70px;height:54px;flex-basis:70px}.multi-reels .reel-cosmetic img{height:32px;width:36px}.multi-reels .reel-cosmetic span{font-size:7px}
.reel-cosmetic.uncommon{border-color:#5b9a78}.reel-cosmetic.rare{border-color:#a47de4}.reel-cosmetic.legendary{border-color:#efb855}
#opening-stop-batch{font-size:8px;margin:8px 0 0;padding:4px 0}
.reward-art-flight .gear-effect,.reward-art-flight .gear-price,.reward-art-flight .gear-mods,.reward-art-flight .gear-compare,.reward-art-flight .effect-label{display:none!important}
.reward-art-flight .hat-art{height:50%!important;min-height:0;margin:0}.reward-art-flight .hat-art img{max-height:100%;max-width:100%;object-fit:contain}
.xp-flight-layer{position:fixed;inset:0;width:100vw;height:100dvh;margin:0;padding:0;border:0;overflow:visible;background:transparent;pointer-events:none;z-index:22000}
.xp-orb{position:absolute;display:block;width:7px;height:7px;border-radius:50%;background:#ff6177;box-shadow:0 0 6px #ff324d,0 0 18px #ff002e;pointer-events:none}
#player-xp{height:4px!important;overflow:visible}#player-stat-panel.xp-arrival #player-xp{filter:drop-shadow(0 0 6px #ff164a);animation:xp-bar-pulse .7s ease-out}#player-stat-panel.xp-arrival .player-level{color:#ffc9d2}
@keyframes xp-bar-pulse{0%{filter:drop-shadow(0 0 10px #ff164a)}100%{filter:drop-shadow(0 0 2px #d90018)}}
@media(max-width:600px){#view-home.unified-game #opening-dialog{inset:0 0 auto;max-height:100%;padding:8px}#view-home.unified-game #opening-dialog h2{font-size:14px}#newgame-reels.multi-reels .roulette{height:42px}.multi-reels .reel-cosmetic{height:38px;width:55px;flex-basis:55px}.multi-reels .reel-cosmetic img{width:25px;height:25px}.multi-reels .reel-cosmetic span{display:none}#newgame-rewards{grid-template-columns:repeat(auto-fit,minmax(55px,72px));justify-content:center;max-height:180px!important}#newgame-rewards .newgame-card{height:65px}#newgame-rewards .hat-art{height:25px!important}#newgame-rewards .hat-art img{height:24px;width:28px}}
@media(prefers-reduced-motion:reduce){.inventory-cell.slot-arrival::after,.slot-arrival:not(.inventory-cell),#player-stat-panel.xp-arrival #player-xp{animation:none}.inventory-cell.slot-arrival{outline:1px solid #ddd}.xp-orb{display:none}}

@media(max-width:600px){#view-home.unified-game #view-inventory{grid-template-rows:25px 25px 56px minmax(0,1fr) 18px}.slot-filters{grid-column:1/-1}.play-inventory .newgame-inventory-toolbar{grid-column:1/-1;align-content:start}.play-inventory>#inventory-grid{grid-row:4}.play-inventory .newgame-pager{grid-row:5}.recycle-dropzone{min-height:28px}.recycle-bulk-actions button{padding:3px}}
