/* Games occupy the viewport; app navigation returns through the toolbar. */
body.games-open{overflow:hidden}body.games-open>.app-sidebar,body.games-open>#friendsDock{visibility:hidden}
.games-workspace{position:fixed;inset:0;z-index:45;display:grid;grid-template-rows:58px minmax(0,1fr);background:radial-gradient(ellipse at 40% 35%,#263021,#0b100e 70%);padding:0;color:var(--text);overflow:hidden}
.games-workspace[hidden],.games-workspace [hidden]{display:none!important}.games-workspace:fullscreen{width:100%;height:100%;background:#101711}
.games-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 18px;border-bottom:1px solid #3d4936;background:#101810;z-index:2}.games-toolbar>button{font-size:12px;background:transparent}.games-workspace button:focus-visible,.match-tile:focus-visible{outline:2px solid #e0efba;outline-offset:2px}
.stash-game{min-height:0;padding:16px}.stash-cabinet{height:100%}.stash-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;height:100%;min-height:0}.stash-play{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(ellipse,#2b352455,transparent 70%);border:1px solid #34422d;border-radius:10px;padding:8px}
.stash-frame{position:relative;flex:none;overflow:hidden;border:1px solid #8b9d6d;border-radius:5px;background:#0b120f;box-shadow:0 0 40px #0005}.stash-board{display:block;width:100%;height:100%;outline-offset:-3px;touch-action:none}.stash-board:focus-visible{outline:2px solid var(--accent)}
.stash-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px;background:#0a100ddd;backdrop-filter:blur(3px);z-index:2}.stash-overlay h2,.stash-overlay h3{font-size:clamp(24px,3vw,40px);margin:0 0 12px}.stash-overlay p{font-size:14px;line-height:1.6;color:#becbac;max-width:280px;margin:0 0 24px}.stash-overlay button{min-height:46px}
.stash-side{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto;padding:8px 6px 8px 0}.stash-heading .eyebrow{font-size:9px}.stash-heading h2{font-size:28px;margin:8px 0}.stash-heading p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.stash-stats,.match-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:14px;border:1px solid #394431;border-radius:7px;background:#182016}.stash-stats span,.match-stats span{display:block;color:#a1af95;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.stash-stats strong,.match-stats strong{display:block;font-size:25px;color:#d4eaa6;font-variant-numeric:tabular-nums;font-weight:500;margin-top:4px}
.stash-side-card{padding:12px;border:1px solid #394431;border-radius:7px;background:#111b12}.stash-side h3{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#a3b194;margin:0 0 8px}.stash-preview{display:flex;align-items:center;gap:10px;margin:4px 0}.stash-preview canvas{width:100px;height:auto;display:block}.stash-preview span{font-size:11px;color:#c4cfb9}.stash-held{min-height:44px}.stash-side-card>button{width:100%;margin-top:6px;font-size:12px;min-height:38px}.stash-help>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin:7px 0}.stash-help kbd{font:11px inherit;padding:2px 6px;border:1px solid #46503e;border-radius:4px;background:#0e150e}.stash-help .hint{line-height:1.5}.stash-actions{display:flex;gap:8px}.stash-actions button{flex:1;font-size:12px;min-height:42px}.stash-status{font-size:12px;color:var(--accent);margin:0}.stash-credit{font-size:10px;color:var(--muted);margin:0}
.stash-touch{display:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:min(100%,520px);flex:none}.stash-touch button{min-height:44px;padding:5px;touch-action:none;user-select:none;font-size:19px}.stash-touch button:nth-child(4),.stash-touch button:last-child{font-size:12px}
.match-game{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;padding:16px;min-height:0}.match-stage{display:grid;place-items:center;min-height:0;min-width:0;padding:6px}.match-frame{position:relative;max-width:100%;max-height:100%;flex:none}.match-board{height:100%;width:100%;display:grid;grid-template-columns:repeat(var(--match-size,10),minmax(0,1fr));grid-template-rows:repeat(var(--match-size,10),minmax(0,1fr));gap:6px;padding:10px;background:linear-gradient(145deg,#222f20,#0f1b16);border:1px solid #697d52;border-radius:13px;box-shadow:0 18px 80px #0006;touch-action:none}
.match-tile{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:3px;border:1px solid color-mix(in srgb,var(--loot-color) 60%,#243627);background:color-mix(in srgb,var(--loot-color) 23%,#142016);border-radius:9px;box-shadow:inset 0 2px 0 #ffffff10,0 3px 4px #0004;touch-action:none;overflow:hidden;transition:background .12s,transform .12s}.match-tile:hover{filter:brightness(1.18)}.match-tile:disabled{opacity:1;cursor:default}.match-tile[aria-pressed=true]{border:3px solid #f2e7a9;background:#727044;box-shadow:0 0 18px #dada6a55;transform:scale(.95)}.match-tile img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 3px #0006)}.match-item-label{font-size:clamp(8px,1vw,14px);color:#ffffff90;font-weight:600}.match-special{position:absolute;right:3px;bottom:3px;background:#e6d273;color:#1d220c;border:1px solid #fbefad;border-radius:5px;font-size:clamp(12px,2vw,24px);font-weight:bold;line-height:1;padding:3px;box-shadow:0 0 12px #ead85f88}.match-tile[data-special=wild]{background:linear-gradient(135deg,#718863,#847148,#675272);border-color:#f2dd8c}.match-hint{outline:3px solid #f3e79b;outline-offset:-3px}.match-clearing{animation:loot-clear .18s ease-in forwards}.match-board[aria-busy=true]{pointer-events:none}
@keyframes loot-clear{to{transform:scale(.2);opacity:0}}
.match-side{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto;padding:8px 6px 8px 0}.match-heading .eyebrow{font-size:9px}.match-heading h2{font-size:30px;margin:6px 0 0}.match-target{display:grid;gap:8px;font-size:12px;color:#ccdcbc}.match-target progress{width:100%;height:9px;accent-color:#d7dc84}.match-side>h3{font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin:0;color:#a6b696}.match-boosters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-boosters button{position:relative;min-height:78px;padding:12px 28px 12px 10px;text-align:left;background:linear-gradient(150deg,#38412a,#1c2b1a);border-color:#596645}.match-boosters strong{display:block;font-size:12px}.match-boosters span{display:block;font-size:10px;line-height:1.5;color:#aebb9e;margin-top:5px}.match-boosters b{position:absolute;right:7px;top:10px;background:#c8d796;color:#152012;min-width:18px;text-align:center;border-radius:4px;font-size:11px;padding:2px}.match-boosters button[aria-pressed=true]{outline:2px solid #eee0a0;background:#555637}.match-boosters button:disabled{opacity:.4}.match-side>.hint{margin:-5px 0 0}.match-status{min-height:34px;font-size:13px;line-height:1.5;margin:0;color:#dbe7b8}.match-actions{display:flex;gap:8px}.match-actions button{flex:1;font-size:12px}.match-level-picker{display:flex!important;align-items:center;gap:10px;font-size:12px}.match-level-picker select{margin:0!important;width:auto!important;min-width:80px}.match-help{font-size:12px;line-height:1.5;color:#9bac90}.match-help summary{cursor:pointer;color:#c9d8b7}.match-help p{margin:8px 0}
@media(pointer:coarse){.stash-touch{display:grid}}
@media(max-width:760px){
  .games-workspace{grid-template-rows:54px minmax(0,1fr)}.games-toolbar{padding:6px 8px;gap:6px}.games-toolbar>button{font-size:10px;padding:8px}.games-fullscreen{display:none}
  .stash-game{padding:8px}.stash-layout{grid-template-columns:1fr;grid-template-rows:48px 44px minmax(0,1fr) 40px;gap:6px}.stash-side{display:contents}.stash-heading,.stash-help,.stash-credit,.stash-status,.stash-hold-card{display:none}.stash-stats{grid-row:1;grid-template-columns:repeat(4,1fr);padding:5px 12px;gap:4px}.stash-stats strong{font-size:18px;margin:1px 0 0}.stash-stats span{font-size:9px}.stash-incoming{grid-row:2;padding:0 8px;display:flex;align-items:center;gap:10px}.stash-incoming h3{margin:0;font-size:9px}.stash-next{display:flex;gap:6px}.stash-preview{margin:0}.stash-preview canvas{width:56px}.stash-preview span{display:none}.stash-play{grid-row:3;padding:2px;gap:6px}.stash-actions{grid-row:4}.stash-actions button{min-height:36px;font-size:11px;padding:5px}.stash-touch{display:grid;gap:4px;width:min(100%,480px)}.stash-touch button{min-height:40px}
  .match-game{padding:8px;gap:8px;grid-template-columns:1fr;grid-template-rows:40px 24px minmax(0,1fr) 64px 28px 36px}.match-side{display:contents}.match-heading,.match-side>h3,.match-side>.hint,.match-help,.match-level-picker{display:none}.match-stats{grid-row:1;grid-template-columns:repeat(4,1fr);padding:3px 10px;gap:4px}.match-stats span{font-size:9px}.match-stats strong{font-size:18px;margin-top:1px}.match-target{grid-row:2;display:flex;align-items:center;gap:10px;font-size:10px}.match-target span{white-space:nowrap}.match-target progress{flex:1;min-width:0}.match-stage{grid-row:3;padding:0;min-height:0}.match-board{padding:5px;gap:3px;border-radius:8px}.match-tile{border-radius:5px;padding:0}.match-tile img{inset:4%;width:92%;height:92%}.match-special{font-size:12px;padding:2px;right:1px;bottom:1px}.match-boosters{grid-row:4;grid-template-columns:repeat(4,1fr);gap:5px}.match-boosters button{min-height:60px;padding:20px 4px 4px;text-align:center}.match-boosters strong{font-size:10px}.match-boosters span{display:none}.match-boosters b{top:3px;right:calc(50% - 9px);font-size:9px}.match-status{grid-row:5;min-height:0;font-size:11px;line-height:1.2;align-self:center}.match-actions{grid-row:6}.match-actions button{font-size:11px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.match-clearing{animation:none}.match-tile{transition:none}}

@media(max-width:760px) and (max-height:500px) and (orientation:landscape){
  .stash-layout{grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:minmax(0,1fr);gap:10px}.stash-play{grid-row:1;grid-column:1}.stash-side{display:flex;grid-column:2;grid-row:1;overflow:auto;gap:8px;padding:0}.stash-stats{flex:none;grid-template-columns:repeat(2,1fr)}.stash-incoming{flex:none;padding:5px}.stash-next .stash-preview:not(:first-child){display:none}.stash-actions{flex:none}.stash-hold-card{display:block;padding:5px}.stash-hold-card>button{display:none}
  .match-game{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:minmax(0,1fr);gap:10px}.match-stage{grid-column:1;grid-row:1}.match-side{display:flex;grid-column:2;grid-row:1;overflow:auto;gap:8px;padding:0}.match-stats,.match-target,.match-boosters,.match-actions,.match-level-picker{flex:none}.match-stats{grid-template-columns:repeat(2,1fr)}.match-target{display:grid;gap:5px}.match-target progress{width:100%}.match-status{min-height:26px}
}

/* Arcade finish: warm equipment-room lighting for Tetriz, jewel tiles for snacks. */
.games-workspace{--arcade-gold:#edc985;background:radial-gradient(ellipse at 35% 42%,#273b354f,transparent 60%),linear-gradient(135deg,#101b1d,#091112 65%,#182019)}
.games-workspace[data-game=match]{--accent:#dccba1;background:radial-gradient(ellipse at 38% 45%,#38436377,transparent 65%),linear-gradient(135deg,#161c2c,#0e1521 70%,#232330)}
.games-toolbar{background:#0a1215e8;border-bottom-color:#8a98732b;box-shadow:0 5px 30px #0004}.games-toolbar>button{border-color:#839b8633;color:#c8d1c9;border-radius:7px}
.stash-play{position:relative;background:radial-gradient(ellipse at center,#7d95630c,transparent 65%),repeating-linear-gradient(90deg,#78928a06 0 1px,transparent 1px 70px),linear-gradient(140deg,#1b292625,#080e1266);border-color:#758b6838;border-radius:14px;box-shadow:inset 0 0 90px #0005}.stash-frame{border-color:#9b967266;box-shadow:0 0 0 4px #071015,0 0 0 5px #9b967222,0 15px 65px #0008,0 0 90px #90b8780c;border-radius:8px}
.stash-heading h2{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:850;font-size:42px;letter-spacing:.09em;text-transform:uppercase;color:#f1d6a0;text-shadow:0 2px 0 #624d2c}.stash-heading .eyebrow{color:#9bbaa6;letter-spacing:.2em}.stash-heading p{color:#a3b4a9}.stash-side{gap:16px}.stash-stats{background:linear-gradient(145deg,#26342fbb,#121e1eee);border-color:#a8b5912e;box-shadow:inset 0 1px 0 #e2edd70c}.stash-stats strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#efcd88;font-size:28px}.stash-stats span{color:#98ada0;letter-spacing:.15em}.stash-side-card{background:linear-gradient(140deg,#23322e99,#0e1a1ee6);border-color:#9cad852c;box-shadow:inset 0 1px 0 #fff06}.stash-side h3{color:#a1b6a6;letter-spacing:.16em}.stash-preview canvas{width:112px}.stash-preview span{color:#d1dace;line-height:1.45}.stash-actions button,.stash-side-card>button{background:linear-gradient(150deg,#334139,#202c29);border-color:#8b9e7250;border-radius:7px}.stash-actions button:first-child{border-color:#bdab7560;color:#ead399}.stash-touch button{background:linear-gradient(#2c3c35,#1a2824);border-color:#80976b66;border-radius:7px}.stash-help kbd{background:#0a1618;color:#d0dccc;border-color:#8b9e7233}.stash-emblem{font-size:70px;line-height:1;color:#d7c087;margin-bottom:15px;text-shadow:0 0 30px #dcc48344}.stash-overlay:not([data-phase=ready]) .stash-emblem{display:none}.stash-overlay{background:radial-gradient(ellipse,#111f20ee,#071213e8);backdrop-filter:blur(5px)}.stash-overlay .primary{background:linear-gradient(145deg,#e5c487,#b89d68);border-color:#f4db99;color:#18211c;font-weight:650;box-shadow:inset 0 1px 0 #fff6,0 5px 22px #0006}.stash-overlay h3{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#f0d9aa;letter-spacing:-.04em}.stash-overlay p{color:#a8beb4}.game-burst{position:absolute;top:38%;left:0;right:0;text-align:center;z-index:4;pointer-events:none;opacity:0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(18px,3vw,34px);font-weight:850;letter-spacing:.1em;color:#ffe5a5;text-shadow:0 3px 0 #403b23,0 0 28px #f0bd4788}
.match-stage{background:radial-gradient(ellipse,#9a7eba12,transparent 68%)}.match-board{background:linear-gradient(145deg,#3b4356,#1d293c 60%,#273148);border-color:#e0cf974a;padding:12px;gap:7px;border-radius:18px;box-shadow:inset 0 1px 0 #fff2,0 0 0 4px #121c2c,0 0 0 5px #ddc79926,0 25px 70px #0008}.match-tile{background:radial-gradient(ellipse at 36% 15%,color-mix(in srgb,var(--loot-color) 48%,#35445c),color-mix(in srgb,var(--loot-color) 17%,#1e293b) 80%);border-color:color-mix(in srgb,var(--loot-color) 55%,#384054);border-radius:15px;box-shadow:inset 0 2px 1px #ffffff25,inset 0 -4px 4px #070c213b,0 4px 5px #080c1d88}.match-tile:before{content:'';position:absolute;inset:4px;border-radius:11px;border-top:1px solid #ffffff20;pointer-events:none}.match-tile img{inset:6%;width:88%;height:88%;filter:drop-shadow(0 5px 3px #060e1966)}.match-tile[aria-pressed=true]{background:radial-gradient(ellipse at top,#b9a980,#5b5975);border-color:#ffedb6;box-shadow:0 0 0 2px #d6bb85,inset 0 2px 3px #fff5,0 0 28px #c6af6677;transform:scale(.96)}.match-special{color:#2e263c;background:linear-gradient(145deg,#fff0b6,#d3a34c);border-color:#fff0b6;border-radius:50%;min-width:24px;min-height:24px;display:grid;place-items:center;right:4px;bottom:4px;box-shadow:0 2px 5px #0007,0 0 16px #f6d78480}.match-tile[data-special=row]:after,.match-tile[data-special=column]:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 13px,#f9e5a91c 13px 17px);pointer-events:none}.match-tile[data-special=column]:after{background:repeating-linear-gradient(90deg,transparent 0 13px,#f9e5a91c 13px 17px)}.match-tile[data-special=bomb]{box-shadow:inset 0 0 24px #f5bd8a55,0 0 10px #d9a57c55}.match-tile[data-special=wild]{background:conic-gradient(from 45deg,#716687,#60859c,#8d9d70,#bd9966,#966a83,#716687);border-color:#ffedaf}.match-hint{outline-color:#ffe2a2;box-shadow:inset 0 0 18px #ffe5a54d}
.match-heading h2{font-size:36px;letter-spacing:-.04em;font-weight:650;color:#f1e2c4;margin-top:8px}.match-heading .eyebrow{color:#a7a6c8;letter-spacing:.2em}.match-side{gap:15px}.match-stats{background:linear-gradient(145deg,#343b50aa,#1a2535);border-color:#b3a8c333;border-radius:11px;box-shadow:inset 0 1px 0 #fff08}.match-stats strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#f2d9a2}.match-stats span{color:#acaec2}.match-target{color:#d3cde0}.match-target progress{height:10px;border-radius:8px;overflow:hidden;accent-color:#d9b97b}.match-target progress::-webkit-progress-bar{background:#2d3549}.match-target progress::-webkit-progress-value{background:linear-gradient(90deg,#9b8ac5,#e6c887);border-radius:8px}.match-target progress::-moz-progress-bar{background:linear-gradient(90deg,#9b8ac5,#e6c887)}.match-side>h3{color:#b0a9c6}.match-boosters button{padding:14px 21px 14px 45px;min-height:90px;background:linear-gradient(145deg,#45445b,#293244);border-color:#a69ac24f;border-radius:10px;box-shadow:inset 0 1px 0 #fff1,0 3px 8px #0003}.match-boosters strong{color:#eee1c7;font-size:12px}.match-boosters span:not(.booster-icon){color:#b7b3c8}.booster-icon{position:absolute;left:10px;top:22px;width:25px;height:25px;color:#e9c88a!important}.booster-icon svg{display:block;width:100%;height:100%}.match-boosters b{background:#ecd092;color:#353047;border-radius:50%;width:20px;height:20px;top:6px;right:6px;display:grid;place-items:center;padding:0;border:1px solid #ffefb6}.match-boosters button[aria-pressed=true]{outline-color:#efd392;background:linear-gradient(135deg,#6a5c66,#44435d)}.match-status{color:#dcd0ed}.match-actions button{background:linear-gradient(145deg,#3c4154,#242d3e);border-color:#a39dbc44;color:#dfd8e8;border-radius:7px}.match-level-picker{color:#b7aec9}.match-level-picker select{background:#273046;border-color:#a39dbc44}.match-help{color:#aca9c2}.match-help summary{color:#d6c8e4}.match-game .stash-overlay{border-radius:16px;background:radial-gradient(ellipse,#2d2c41ee,#111c2dee)}.match-game .stash-overlay h2{color:#f3ddad;letter-spacing:-.04em}.match-game .stash-overlay p{color:#c2b8d4}.match-game .stash-overlay .primary{background:linear-gradient(145deg,#edcf94,#b8a0be)}.match-burst{color:#ffe7b1;text-shadow:0 3px 0 #584461,0 0 35px #e6b59488}
@media(max-width:760px){.games-toolbar>button{font-size:10px}.stash-side{gap:6px}.stash-stats strong{font-size:18px}.stash-preview canvas{width:56px}.stash-incoming{padding:0 8px}.stash-touch button{border-radius:6px}.match-board{padding:5px;gap:4px;border-radius:12px;box-shadow:0 0 0 3px #101b2a,0 0 0 4px #ddc79926,0 15px 35px #0005}.match-tile{border-radius:8px}.match-tile:before{inset:2px;border-radius:6px}.match-tile img{inset:5%;width:90%;height:90%}.match-special{font-size:12px;min-width:17px;min-height:17px;padding:2px;right:1px;bottom:1px}.match-stats strong{font-size:18px}.match-side{gap:8px}.match-boosters button{min-height:60px;padding:34px 4px 4px}.match-boosters strong{font-size:10px}.booster-icon{width:21px;height:21px;left:calc(50% - 11px);top:8px;margin:0!important}.match-boosters b{width:15px;height:15px;min-width:15px;font-size:9px;right:4px;top:4px}.match-stats{border-radius:7px}.match-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.game-burst{display:none}.match-tile{transition:none}}

.match-boosters .booster-icon{display:block}

/* A larger board with tracked, column-by-column gravity. */
.match-board{overflow:hidden;isolation:isolate}.match-tile{will-change:auto}.match-board[aria-busy=true] .match-tile{transition:none}
.match-board[data-armed=hammer] .match-tile{cursor:crosshair}.match-board[data-armed=hammer] .match-tile:hover{outline:2px solid #edc98b;outline-offset:-3px}
.match-boosters button[data-booster=hammer]{padding:47px 10px 10px;min-height:96px}.match-boosters button[data-booster=hammer] .booster-icon{left:10px;top:6px;width:calc(100% - 20px);height:37px;margin:0}.booster-icon img{width:100%;height:100%;object-fit:contain;filter:brightness(1.4) drop-shadow(0 2px 2px #0008)}
@media(max-width:760px){.match-board{gap:3px;padding:4px}.match-tile{border-radius:6px}.match-tile img{inset:2%;width:96%;height:96%}.match-boosters button[data-booster=hammer]{min-height:60px;padding:34px 4px 4px}.match-boosters button[data-booster=hammer] .booster-icon{left:4px;top:7px;width:calc(100% - 8px);height:24px}.match-special{min-width:14px;min-height:14px;font-size:10px}}
/* Loot Match: base camp, trader contracts and collectible raids. */
.loot-campaign{min-width:0;min-height:0;height:100%;overflow:hidden}.loot-campaign>.match-game{height:100%}
.loot-menu{height:100%;overflow:auto;padding:28px clamp(18px,3vw,54px) 36px;background:radial-gradient(ellipse at 80% 0%,#5e756b24,transparent 60%),linear-gradient(135deg,#101d20,#101823);color:#e2e7df}
.loot-menu-header{height:auto;min-height:0;padding:0 0 24px;background:transparent;border:0;display:flex;justify-content:space-between;gap:20px;align-items:center}.loot-menu .eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em;color:#b4cbb2}.loot-menu h1{font-size:clamp(30px,3.4vw,52px);font-weight:550;letter-spacing:-.045em;margin:8px 0}.loot-menu-header p{font-size:13px;color:#9fb2b3;margin:0}.loot-menu-controls{display:flex;gap:10px}.loot-menu button{border-radius:8px;font-size:12px;background:#203234;border-color:#64808050;min-height:38px}.loot-menu button:hover{background:#2d4344}.loot-menu button:focus-visible{outline:2px solid #ecd69b;outline-offset:3px}.loot-menu .primary{background:linear-gradient(130deg,#e6d4a4,#b5c9a3);color:#172626;border-color:#ede0b2;font-weight:650}.loot-menu .primary:hover{background:#f1e0b6}.loot-menu-nav{display:flex;gap:7px;border-bottom:1px solid #869d9930;padding-bottom:16px;margin-bottom:26px;align-items:center}.loot-menu-nav button{padding:10px 22px;background:transparent;border-color:transparent}.loot-menu-nav button[aria-pressed=true]{background:#63796a30;border-color:#adbea36b;color:#e1dcb1}.loot-menu-nav>span{margin-left:auto;font-size:11px;color:#a4b6ac}.loot-menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start;max-width:1700px;margin:0 auto}.loot-menu h2{font-size:23px;font-weight:550;margin:0 0 18px;letter-spacing:-.02em}.loot-menu-content{min-width:0}.loot-task-list{display:grid;gap:12px}.loot-task-card{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px;border:1px solid #8fada434;border-radius:12px;background:linear-gradient(110deg,#2a403947,#17282d80);box-shadow:inset 0 1px 0 #ffffff06}.loot-task-card[data-state=locked]{opacity:.52}.loot-task-card[data-state=complete]{border-color:#8faa7444}.loot-task-art{height:88px;display:grid;place-items:center;background:radial-gradient(ellipse,#b7b37324,transparent 72%)}.loot-task-art img{max-width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #0006)}.loot-task-body small{font-size:10px;color:#b8cba9}.loot-task-body h3{font-size:20px;font-weight:550;margin:6px 0}.loot-task-body p{font-size:12px;line-height:1.55;color:#9eafb3;margin:6px 0 12px;max-width:470px}.loot-task-footer{display:flex;gap:18px;align-items:center;font-size:11px}.loot-task-footer strong{color:#e5d7b1}.loot-task-footer span{color:#8fa5a3}.loot-task-card>button{max-width:160px}.loot-briefing{position:sticky;top:0;padding:24px;border:1px solid #b3bf9250;border-radius:12px;background:linear-gradient(145deg,#2d3c35,#182629 75%);display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 28px #0002}.loot-briefing h3{font-size:22px;letter-spacing:-.025em;line-height:1.2;margin:0;font-weight:550}.loot-briefing p{font-size:12px;color:#b3c0b4;line-height:1.6;margin:0}.loot-briefing>small{font-size:10px;letter-spacing:.12em;color:#a4b5a5}.loot-loadout{color:#9faea5;font-size:10px;line-height:1.6}.loot-deploy{min-height:44px!important}.loot-footnote{font-size:10px!important;line-height:1.6;color:#839899!important;letter-spacing:0!important}.loot-trader-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.loot-trader-card{padding:26px 20px;border:1px solid color-mix(in srgb,var(--contact) 35%,transparent);background:radial-gradient(ellipse at top,color-mix(in srgb,var(--contact) 15%,transparent),transparent 65%),#14252c;border-radius:12px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px}.loot-trader-card h3{font-size:23px;margin:5px 0}.loot-trader-card p{font-size:12px;line-height:1.6;color:#a4b6b4;margin:0}.loot-trader-card small{font-size:11px;color:#98ada0}.loot-trader-card button{margin-top:12px;width:100%}.loot-poi-card[aria-pressed=true]{outline:2px solid #cfbf8e;outline-offset:-2px}.loot-poi-title{font-size:16px;margin:26px 0 14px;font-weight:550}.loot-poi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.loot-poi-card{text-align:left;padding:18px!important;display:flex;align-items:start;flex-direction:column;gap:6px;background:linear-gradient(130deg,#29403c66,#18252f)!important}.loot-poi-card small{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#b4c6a6}.loot-poi-card strong{font-size:19px;font-weight:550;color:#e5e3ce}.loot-poi-card p{font-size:11px;line-height:1.6;color:#9daeb0;margin:4px 0}.loot-poi-items{display:flex;gap:10px;margin:4px 0}.loot-poi-items img{width:45px;height:45px;object-fit:contain;filter:drop-shadow(0 4px 3px #0004)}.loot-backpack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.loot-backpack-slot{display:flex;flex-direction:column;align-items:center;padding:24px 15px;background:linear-gradient(140deg,#35443b80,#172831);border:1px solid #a5b69b3b;border-radius:12px}.loot-backpack-slot img{width:100%;height:105px;object-fit:contain;filter:drop-shadow(0 8px 6px #0006)}.loot-backpack-slot h3{font-size:15px;margin:16px 0 8px}.loot-backpack-slot strong{font:25px ui-monospace,monospace;color:#ddc68f}.loot-subtitle{font-size:13px;color:#9eb1ac}.loot-notice{padding:14px;border:1px solid #adc27a66;border-radius:8px;background:#77966420;color:#d7e4b9;font-size:13px}
.match-home{min-height:32px;font-size:11px;align-self:start;padding:6px 10px}.match-raid .match-stage{grid-template-rows:minmax(0,1fr) 26px}.match-exit-strip{align-self:end;font-size:10px;color:#d8c18a;letter-spacing:.12em;line-height:20px;text-align:center}.match-raid .match-heading h2{font-size:27px}.match-tile.has-art .match-item-label{visibility:hidden}.match-tile[data-loot]:not([data-loot=""]){background:radial-gradient(ellipse at top,#887b48,#3c4635 70%);border:2px solid #e5cd88;box-shadow:inset 0 0 18px #e5cf9530,0 0 7px #e5c07438}.match-cargo-mark{position:absolute;right:3px;bottom:1px;color:#fff0b8;font-size:18px;text-shadow:0 1px 3px #000;font-weight:bold}.match-backpack{padding:13px;border:1px solid #ccb78255;background:#d8c28a0d;border-radius:8px;font-size:11px}.match-backpack>strong{color:#ecd19a;font-size:12px}.match-pack-items{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;color:#ced3bb}.match-pack-items span{padding:3px 6px;background:#131d2280;border-radius:4px}.match-backpack small{display:block;margin-top:8px;color:#ddaaa0;font-size:10px}
@media(max-width:1100px){.loot-menu{padding:24px}.loot-menu-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.loot-task-card{grid-template-columns:60px minmax(0,1fr);gap:12px;padding:16px}.loot-task-card>button{grid-column:2;justify-self:start}.loot-trader-grid{grid-template-columns:1fr}.loot-trader-card{display:grid;grid-template-columns:60px 1fr;text-align:left;padding:16px;gap:8px 18px}.loot-trader-card button{margin:0;grid-column:2}.loot-poi-grid{grid-template-columns:1fr}}
@media(max-width:760px){.loot-menu{padding:20px 14px}.loot-menu-header{display:block;padding-bottom:18px}.loot-menu-header p{font-size:11px}.loot-menu-controls{margin-top:16px}.loot-menu h1{font-size:34px}.loot-menu-nav{flex-wrap:wrap;margin-bottom:20px;gap:4px}.loot-menu-nav button{padding:8px 13px;min-height:34px}.loot-menu-nav>span{width:100%;margin:8px 0 0}.loot-menu-layout{grid-template-columns:minmax(0,1fr);gap:20px}.loot-briefing{position:static;padding:20px}.loot-task-footer{flex-wrap:wrap;gap:8px}.loot-backpack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.loot-backpack-slot img{height:90px}.loot-task-card>button{max-width:100%}.loot-poi-grid{grid-template-columns:1fr}.match-game{grid-template-rows:32px 40px 24px minmax(0,1fr) 64px 28px 36px}.match-home{grid-row:1;grid-column:1}.match-stats{grid-row:2}.match-target{grid-row:3}.match-stage{grid-row:4}.match-boosters{grid-row:5}.match-status{grid-row:6}.match-actions{grid-row:7}.match-backpack{display:none}.match-exit-strip{font-size:8px;letter-spacing:.07em}.match-raid .match-stage{grid-template-rows:minmax(0,1fr) 26px}.match-cargo-mark{font-size:13px;right:1px;bottom:0}.match-level-picker{display:none!important}}
@media(max-width:760px) and (max-height:500px) and (orientation:landscape){.match-game{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:minmax(0,1fr)}.match-stage{grid-row:1}.match-home{flex:none}.match-level-picker{display:flex!important}.match-raid .match-level-picker{display:none!important}.match-exit-strip{font-size:7px}}

.match-raid .match-stage{display:flex;flex-direction:column;justify-content:center;gap:6px}.match-exit-strip{align-self:center;flex:none;height:20px;max-width:100%;border-radius:3px;background:linear-gradient(90deg,transparent,#c6ac6520,transparent);border-top:1px solid #cbb2793b}

/* Constrain replaced images inside each task's fixed art slot. */
.loot-task-art{display:flex;align-items:center;justify-content:center;min-width:0;height:88px;overflow:hidden}.loot-task-art img{display:block;flex:none;width:72px;height:80px;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.loot-trader-portrait{position:relative;width:132px;height:148px;flex:none;overflow:hidden;border:1px solid color-mix(in srgb,var(--contact) 65%,transparent);border-radius:10px;background:#102025;box-shadow:0 8px 22px #0005;margin:4px 0 8px}.loot-trader-portrait img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.loot-portrait-fallback{position:absolute;inset:0;display:grid;place-items:center;font:24px ui-monospace,monospace;color:#c3c7ac}.loot-trader-card>button:disabled{opacity:.5;cursor:default}
@media(max-width:1100px){.loot-trader-card{grid-template-columns:80px minmax(0,1fr)}.loot-trader-portrait{width:80px;height:92px;grid-row:span 4;margin:0;align-self:center}.loot-trader-card h3,.loot-trader-card p,.loot-trader-card small{grid-column:2}}

/* Loot Match raids: enemies, drops, scenes, extraction */
.match-stage.has-scene{background:linear-gradient(180deg,#0a1220d9,#0a1220f0),var(--scene) center/cover no-repeat}
.match-tile.is-enemy{background:radial-gradient(ellipse at top,#5d2a2a,#2a1418 75%);border:2px solid #e0644f;box-shadow:inset 0 0 14px #ff5a4430,0 0 8px #d8403a55;padding:0;overflow:hidden}
.match-tile.is-enemy img{inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:saturate(.9) contrast(1.05)}
.match-tile.is-enemy[data-rank=boss]{border:3px solid #f0b54a;box-shadow:inset 0 0 0 1px #6b1d18,0 0 14px #f07a3a88}
.match-tile.is-enemy[data-rank=guard]{border-color:#e98a5a}
.match-tile.is-enemy::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,#1a0708d9);pointer-events:none;border-radius:inherit}
.match-tile.is-enemy[data-rank=boss]::before{content:'BOSS';position:absolute;left:2px;top:2px;z-index:2;inset:auto;border:0;font:700 clamp(6px,.75vw,9px)/1 system-ui,sans-serif;letter-spacing:.06em;padding:2px 3px;border-radius:3px;background:#f0b54a;color:#3a1308}
.match-hp{position:absolute;left:0;right:0;bottom:3px;z-index:2;display:flex;justify-content:center;gap:2px;pointer-events:none}
.match-hp i{width:clamp(5px,.8vw,10px);height:clamp(4px,.55vw,7px);border-radius:2px;background:#ffffff30;border:1px solid #ffb4a3aa}
.match-hp i.is-full{background:#ff5a47;border-color:#ffd0c4;box-shadow:0 0 4px #ff5a47}
.match-tile.match-danger{animation:enemy-danger 1s ease-in-out infinite alternate}
@keyframes enemy-danger{to{box-shadow:inset 0 0 20px #ff3b2f80,0 0 16px #ff3b2fcc}}
.match-tile.match-hit{animation:enemy-hit .4s ease-out}
.match-tile.match-killed{animation:enemy-killed .42s ease-in forwards}
@keyframes enemy-hit{0%,100%{transform:none}20%{transform:translateX(-8%) rotate(-4deg);filter:brightness(1.8)}50%{transform:translateX(7%) rotate(3deg)}75%{transform:translateX(-3%)}}
@keyframes enemy-killed{30%{filter:brightness(2) saturate(0)}100%{transform:scale(.3) rotate(8deg);opacity:0}}
.match-damage{position:absolute;inset:0;z-index:3;display:grid;place-items:center;font:800 clamp(12px,1.8vw,24px)/1 system-ui,sans-serif;color:#fff;text-shadow:0 0 6px #ff2d1f,0 2px 0 #5a0f0a;pointer-events:none;animation:damage-float .42s ease-out forwards}
@keyframes damage-float{from{transform:translateY(10%);opacity:1}to{transform:translateY(-40%);opacity:.2}}
.match-tile.is-drop{background:radial-gradient(ellipse at top,#2f7f8c,#1a3440 72%)!important;border:2px solid #7fe6f2!important;box-shadow:inset 0 0 16px #7fe6f255,0 0 10px #62d8e888!important}
.match-tile.is-drop .match-cargo-mark{font-size:clamp(6px,.8vw,9px);letter-spacing:.06em;background:#7fe6f2;color:#0d2a30;border-radius:3px;padding:1px 3px;right:2px;bottom:2px;text-shadow:none}
.match-tile.is-drop .booster-icon{position:absolute;inset:18%;width:64%;height:64%;color:#dffbff}
.match-tile.is-drop .booster-icon svg{width:100%;height:100%}
.match-drop-new{animation:drop-pop .32s ease-out}
@keyframes drop-pop{from{transform:scale(.4);opacity:0}}
.match-alert{position:absolute;left:50%;top:10%;transform:translateX(-50%);z-index:6;padding:10px 18px;border-radius:10px;background:#3a0f0cee;border:1px solid #ff8a70;color:#ffe6dc;font:700 clamp(12px,1.5vw,18px)/1.3 system-ui,sans-serif;text-align:center;box-shadow:0 10px 40px #0009;pointer-events:none;max-width:90%}
.match-exit-strip[data-danger=true]{color:#ffb2a1;background:linear-gradient(90deg,transparent,#8a1d1440,transparent);animation:enemy-danger-text 1s ease-in-out infinite alternate}
@keyframes enemy-danger-text{to{color:#ff6d57}}
.match-threat{display:flex;flex-wrap:wrap;gap:5px;padding:10px 12px;border:1px solid #e0644f44;border-radius:8px;background:#5a1e1a1c;font-size:11px;color:#e9c9bf}
.match-threat strong{width:100%;font-size:12px;color:#ffc7b8}
.match-threat span{padding:2px 6px;border-radius:4px;background:#1a0f1480}
.match-threat .is-boss{color:#ffd78a}
.match-threat .is-warning{background:#8a2a1a66;color:#fff0e6;font-weight:600}
.match-backpack[data-state=playing]>strong{color:#f2c06f}
.match-backpack[data-state=failed]{border-color:#e0644f66;background:#5a1e1a1c}
.match-backpack[data-state=extracted]{border-color:#9bd38a66;background:#3f6a3420}
.match-pack-items .is-drop{outline:1px solid #7fe6f288}
.match-extract{min-height:40px}
.match-extract:disabled{opacity:.55}
.match-overlay-list{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:420px;font-size:12px;color:#e6dcc4}
.match-overlay-list:empty{display:none}
.match-overlay-list li{padding:3px 8px;border-radius:5px;background:#ffffff12}
.match-game .stash-overlay[data-outcome=failed] h2{color:#ff9b86}
.match-game .stash-overlay[data-outcome=extracted] h2{color:#bfe6a2}
@media(prefers-reduced-motion:reduce){.match-tile.match-danger,.match-tile.match-hit,.match-tile.match-killed,.match-damage,.match-drop-new,.match-exit-strip[data-danger=true]{animation:none}.match-tile.match-killed{opacity:.35}.match-tile.match-hit{outline:3px solid #ff7a62;outline-offset:-3px}}

/* Base camp additions */
.loot-money{font:600 16px ui-monospace,SFMono-Regular,Consolas,monospace;color:#f0d9a0;align-self:center;padding:0 6px}
.loot-live{padding:12px 14px;border:1px solid #f0b54a66;border-radius:8px;background:#6b4a1a26;color:#f4dcae;font-size:13px}
.loot-icon{display:inline-grid;place-items:center;width:44px;height:44px;flex:none;overflow:hidden;border-radius:6px}
.loot-icon>img,.loot-icon>span{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block}
.loot-icon[data-rank]{border:2px solid #e0644f;background:#2a1418}
.loot-icon[data-rank]>img{object-fit:cover}
.loot-icon[data-rank=boss]{border-color:#f0b54a}
.loot-icon.is-small{width:30px;height:30px}
.loot-icon.is-tiny{width:30px;height:30px;padding:2px;background:#0b171b99}
.loot-icon.is-tiny.is-loot{outline:1px solid #e5cd8888;background:#4a432a88}
.loot-icon .booster-icon{position:static;width:100%;height:100%;margin:0;color:#dffbff}
.loot-task-art{height:88px;width:100%;overflow:hidden}
.loot-task-art .loot-icon{width:78px;height:78px}
.loot-objectives{list-style:none;padding:0;margin:4px 0 12px;display:grid;gap:6px}
.loot-objectives li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:4px 10px;font-size:12px;color:#c9d6cf}
.loot-objectives li[data-done=true]>span{color:#a9d59a}
.loot-objectives li>strong{font:600 12px ui-monospace,monospace;color:#e5d7b1}
.loot-objectives li[data-done=true]>strong{color:#a9d59a}
.loot-where{grid-column:2/-1;font-size:10px!important;color:#e2a58f!important}
.loot-objectives.is-compact li{font-size:11px}
.loot-reward{color:#f0d9a0!important;font:600 13px ui-monospace,monospace}
.loot-task-card[data-state=ready]{border-color:#d7c27b88;box-shadow:0 0 0 1px #d7c27b33,inset 0 1px 0 #ffffff08}
.loot-poi-card{background-image:linear-gradient(0deg,#08141af2 25%,#08141a80),var(--scene)!important;background-size:cover!important;background-position:center!important}
.loot-poi-card{min-height:250px;justify-content:end}
.loot-poi-card>p,.loot-poi-card>small,.loot-poi-card>strong{text-shadow:0 1px 3px #000}
.loot-poi-items{flex-wrap:wrap;gap:5px}
.loot-briefing-scene{margin:-24px -24px 0;padding:70px 20px 14px;border-radius:12px 12px 0 0;background:linear-gradient(0deg,#162427 5%,#16242700 90%),var(--scene) center/cover;display:flex;flex-direction:column;gap:4px}
.loot-briefing-scene small{font-size:9px;letter-spacing:.14em;color:#d8e3c7;text-shadow:0 1px 3px #000}
.loot-briefing-scene span{font-size:11px;color:#c8d4c6}
.loot-boost-row,.loot-shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.loot-boost-owned,.loot-shop-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #6fd6e833;border-radius:10px;background:linear-gradient(140deg,#1f3c4455,#132228)}
.loot-boost-owned .booster-icon,.loot-shop-card .booster-icon{position:static;width:40px;height:40px;margin:0;color:#dffbff}
.loot-boost-owned .booster-icon img,.loot-shop-card .booster-icon img{width:100%;height:100%;object-fit:contain}
.loot-boost-owned small,.loot-shop-card small{font-size:10px;color:#9fb5b0}
.loot-shop-card h3{font-size:15px;margin:0}
.loot-shop-card p{font-size:11px;color:#a7b7b4;margin:0}
.loot-sell-list{display:grid;gap:8px}
.loot-sell-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 14px;border:1px solid #8fada434;border-radius:10px;background:#17282d80}
.loot-sell-row strong{display:block;font-size:13px}
.loot-sell-row small{font-size:11px;color:#a3b5b0}
.loot-backpack-slot .loot-icon{width:100%;height:105px}
@media(max-width:1100px){.loot-boost-row,.loot-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.loot-sell-row{grid-template-columns:36px minmax(0,1fr);gap:8px}.loot-sell-row button{grid-column:span 1}.loot-sell-row .loot-icon{width:36px;height:36px}.loot-briefing-scene{margin:-20px -20px 0}.loot-poi-card{min-height:0}.loot-backpack-slot .loot-icon{height:80px}}
/* Portrait phones: the raid adds a threat line next to Base camp and Extract beside the actions. */
@media(max-width:760px){.match-game{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.match-game>*,.match-side>*{grid-column:1/-1}.match-home{grid-column:1}.match-threat{grid-row:1;grid-column:2;flex-wrap:nowrap;overflow:hidden;padding:3px 6px;font-size:9px;align-items:center;white-space:nowrap;gap:3px}.match-threat strong{width:auto;font-size:9px}.match-threat span:not(.is-warning){display:none}.match-raid .match-actions{grid-column:1}.match-extract{grid-row:7;grid-column:2;min-height:0;font-size:11px;padding:6px}.match-alert{font-size:12px;padding:8px 12px}}
@media(max-width:760px) and (max-height:500px) and (orientation:landscape){.match-game{grid-template-columns:minmax(0,1fr) 210px}.match-side>*{grid-column:auto}.match-stage{grid-column:1}.match-side{grid-column:2}.match-threat{display:none}.match-extract{grid-row:auto}}
.match-tile.is-empty{visibility:hidden}
.loot-boost-owned .booster-icon:has(img),.loot-shop-card .booster-icon:has(img){width:110px}
/* Icons: images are pinned inside their frame so tall (1×2) renders can never overflow. */
.loot-icon{position:relative}
.loot-menu .loot-icon>img,.loot-menu .loot-icon>span{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);max-width:none;max-height:none;object-fit:contain;margin:0}
.loot-menu .loot-icon[data-rank]>img{inset:0;width:100%;height:100%;object-fit:cover}

/* ---- Loot Match v3: loadouts, results, feedback, tutorial, challenges ---- */
.match-panel{position:absolute;inset:6% 8%;z-index:8;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:14px;border:1px solid #d9c38a66;background:linear-gradient(160deg,#1d2433f7,#111823f7);box-shadow:0 20px 60px #000a;color:#e9e3d2}
.match-panel h2{margin:0;font-size:20px;color:#f3ddad}
.match-panel p{margin:0;font-size:13px;line-height:1.5;color:#c9c2d6}
.match-panel-section{padding:10px 12px;border-radius:9px;background:#ffffff0a;border:1px solid #ffffff14}
.match-panel-section[data-kind=lose]{border-color:#e0644f88;background:#5a1e1a33}
.match-panel-section[data-kind=keep],.match-panel-section[data-kind=secure]{border-color:#9bd38a66;background:#3f6a3426}
.match-panel-section strong{font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.match-panel-section[data-kind=lose] strong::before{content:'✖ '}
.match-panel-section[data-kind=keep] strong::before,.match-panel-section[data-kind=secure] strong::before{content:'✔ '}
.match-panel-section ul{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.6}
.match-panel-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;justify-content:center}
.match-panel .danger,.match-game .danger{background:linear-gradient(145deg,#b8483a,#7c2a22);border-color:#ff9a86;color:#fff}
.match-extract[data-fight=true]{background:linear-gradient(145deg,#a8503e,#6d2a22);border-color:#ff9a86;color:#fff}
.match-objectives{display:grid;gap:6px;padding:10px 12px;border:1px solid #d7c27b44;border-radius:8px;background:#d7c27b0d;font-size:11px}
.match-objectives>strong{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#e3cc95}
.match-objective{display:grid;gap:2px}
.match-objective-task{font-weight:600;color:#efe2bd}
.match-objective small{color:#b9c2c8}
.match-objective[data-done=true] .match-objective-task{color:#a9d59a}
.match-objective-note{color:#e2a58f!important}
.match-rank{position:absolute;left:2px;top:2px;z-index:2;font:700 clamp(5px,.7vw,9px)/1 system-ui,sans-serif;letter-spacing:.05em;padding:2px 3px;border-radius:3px;background:#2a1418e6;color:#ffd0c4;border:1px solid #e0644f}
.match-tile.is-enemy[data-rank=boss] .match-rank{background:#f0b54a;color:#3a1308;border-color:#fff0c2}
.match-tile.is-enemy[data-rank=boss]::before{content:none}
.match-hp{align-items:center}
.match-hp b{margin-left:3px;font:700 clamp(7px,.8vw,11px)/1 system-ui,sans-serif;color:#fff;text-shadow:0 1px 2px #000}
.match-eta{position:absolute;right:2px;top:2px;z-index:2;font:700 clamp(7px,.8vw,11px)/1 system-ui,sans-serif;padding:2px 3px;border-radius:3px;background:#ff5a47;color:#fff}
.match-tile.match-near{outline:2px dashed #f7d27a;outline-offset:-3px}
.match-damage.is-miss{color:#f7d27a;text-shadow:0 0 6px #7a5a0c}
.match-tile.match-coach{outline:3px solid #7fe6f2;outline-offset:-3px;animation:coach-pulse 1s ease-in-out infinite alternate;z-index:3}
@keyframes coach-pulse{to{box-shadow:0 0 18px #7fe6f2}}
.match-backpack.is-pulse{animation:pack-pulse .5s ease-out}
@keyframes pack-pulse{30%{transform:scale(1.04);box-shadow:0 0 18px #e5cd8866}}
.match-coach-card{position:absolute;left:16px;bottom:16px;z-index:9;max-width:min(420px,calc(100% - 32px));padding:14px 16px;border-radius:12px;border:1px solid #7fe6f288;background:#0d1d24f2;box-shadow:0 10px 30px #0009;color:#e6f4f6}
.match-coach-card h3{margin:4px 0;font-size:16px;color:#bff4fb}
.match-coach-card p{margin:0 0 10px;font-size:12px;line-height:1.5}
.match-coach-card small{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8fc9d2}
.match-coach-actions{display:flex;flex-wrap:wrap;gap:6px}
.match-coach-actions button{font-size:11px;min-height:32px}
.match-sound{display:flex;align-items:center;gap:8px;font-size:11px}
.match-sound button{min-height:30px;padding:4px 10px;font-size:11px;white-space:nowrap}
.match-sound input{width:90px;accent-color:#d9b97b}
.match-game .stash-overlay[data-outcome=ditched] h2{color:#f2c06f}
.match-game .stash-overlay[data-outcome=cleared] h2{color:#bfe6a2}
.match-alert{transform:translateX(-50%)}
@media(prefers-reduced-motion:reduce){.match-tile.match-coach,.match-backpack.is-pulse{animation:none}}
/* Base camp */
.loot-intro{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px;border:1px solid #7fe6f266;border-radius:10px;background:#1f3c4433;margin-bottom:14px}
.loot-intro p{flex:1 1 260px;margin:0;font-size:13px}
.loot-lock{font-size:11px!important;color:#e2b08f!important;margin:0 0 8px!important}
.loot-task-actions{display:flex;flex-direction:column;gap:6px;min-width:120px}
.loot-task-state{display:flex;align-items:center;justify-content:center;min-height:38px;padding:10px 15px;border:1px solid #64808050;border-radius:8px;background:#203234;color:var(--text);font-size:12px;opacity:.45}
.loot-task-card{grid-template-columns:80px minmax(0,1fr) auto}
.loot-menu-nav button[data-badge=ready]{box-shadow:inset 0 -2px 0 #a9d59a}
.loot-loyalty{display:grid;gap:4px;width:100%;margin-top:8px;font-size:11px;text-align:left}
.loot-loyalty progress{width:100%;height:7px;accent-color:#d9b97b}
.loot-loyalty span,.loot-loyalty small{color:#a7b7b4}
.loot-shop-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important}
.loot-shop-card[data-locked=true]{opacity:.55}
.loot-shop-trader{display:flex;align-items:center;gap:8px}
.loot-shop-portrait{width:30px;height:34px;flex:none;border-radius:6px;overflow:hidden;position:relative}
.loot-shop-portrait img{width:100%;height:100%;object-fit:cover}
.loot-shop-portrait .loot-portrait-fallback{display:none}
.loot-prep,.loot-results{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.loot-prep>button:first-child,.loot-results>button:first-child{align-self:start}
.loot-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.loot-results-card{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #8fada434;border-radius:12px;background:linear-gradient(140deg,#2a403947,#17282d80)}
.loot-results-card h2{font-size:16px;margin:0}
.loot-results h1,.loot-prep h1{margin:0}
.loot-results[data-outcome=extracted] h1{color:#bfe6a2}
.loot-results[data-outcome=failed] h1,.loot-results[data-outcome=abandoned] h1{color:#ff9b86}
.loot-results[data-outcome=ditched] h1{color:#f2c06f}
.loot-results-card[data-kind=lost]{border-color:#e0644f55}
.loot-results-card[data-kind=secured]{border-color:#9bd38a55}
.loot-results-items{display:grid;gap:6px}
.loot-results-items>div,.loot-results-row{display:flex;align-items:center;gap:8px;font-size:12px}
.loot-results-card p{margin:0;font-size:12px;line-height:1.5}
.loot-ready{color:#a9d59a!important;font-weight:600}
.loot-results-actions{display:flex;flex-wrap:wrap;gap:8px}
.loot-challenge-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.loot-challenge-card{display:flex;flex-direction:column;gap:6px;padding:16px;min-height:220px;justify-content:end;border-radius:12px;border:1px solid #8fada434;background:linear-gradient(0deg,#08141af5 40%,#08141a80),var(--scene) center/cover}
.loot-challenge-card h3{margin:0;font-size:18px}
.loot-challenge-card p,.loot-challenge-card span{margin:0;font-size:12px;color:#c9d2cf}
.loot-challenge-card small{font-size:10px;color:#b4c6a6;letter-spacing:.06em}
.loot-challenge-card button{align-self:start}
.loot-menu-controls{flex-wrap:wrap;justify-content:end}
@media(max-width:900px){.loot-results-grid{grid-template-columns:1fr}}
@media(max-width:760px){.loot-task-card{grid-template-columns:60px minmax(0,1fr)}.loot-task-actions{grid-column:2;flex-direction:row;flex-wrap:wrap}.match-panel{inset:3%;padding:14px}.match-coach-card{left:8px;right:8px;bottom:8px;max-width:none;padding:10px 12px}.match-objectives,.match-sound{display:none}.loot-menu-controls .match-sound{display:flex}.match-rank{display:none}}
.match-eta.is-exit{background:#fff;color:#b3261e;animation:enemy-danger-text .6s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.match-eta.is-exit{animation:none}}
/* Clear primary actions; details stay available without crowding the raid. */
.loot-menu{padding:22px clamp(14px,3vw,42px) 30px}.loot-menu-header{padding-bottom:16px}.loot-menu h1{font-size:32px;margin:5px 0}.loot-menu-nav{margin-bottom:20px;padding-bottom:12px}.loot-menu-layout.is-wide{grid-template-columns:minmax(0,1fr);max-width:1200px}.loot-menu-layout.is-wide .loot-task-list{max-width:1080px}.loot-more{position:relative}.loot-more>summary,.match-options>summary{cursor:pointer;list-style:none;border:1px solid #71898155;border-radius:7px;padding:10px 15px;font-size:12px;color:#c4d2cc}.loot-more[open]{z-index:12}.loot-more[open]>button,.loot-more[open]>.match-sound{display:flex;width:200px;margin:5px 0}.loot-more[open]{position:absolute;right:clamp(14px,3vw,42px);top:38px;padding:8px;background:#18292f;border:1px solid #667e7266;border-radius:10px;box-shadow:0 12px 36px #0009}.loot-menu-controls{padding-right:0}.loot-menu .loot-money{font-size:20px}.loot-task-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.loot-task-filters select{background:#192b30;border:1px solid #70887855;border-radius:7px;padding:10px 12px;color:#e3e7dc;font-size:13px;max-width:100%}.loot-task-filters select{min-width:170px}.loot-task-card{padding:16px;gap:14px}.loot-task-body h3{font-size:18px;margin:5px 0 9px}.loot-task-details summary,.loot-route-info summary,.loot-briefing-objectives summary,.loot-prep-intel>summary,.loot-result-details>summary{cursor:pointer;font-size:12px;color:#aebeb4;padding:8px 0}.loot-task-details p{margin:6px 0}.loot-task-details small{color:#8b9e98;font-size:10px}.loot-task-footer{margin:8px 0 0}.loot-poi-card{min-height:180px!important;padding:16px!important;gap:6px}.loot-poi-card .loot-poi-items{margin:5px 0}.loot-briefing{gap:12px;padding:20px}.loot-briefing .loot-extract-tip{color:#b8d39d;font-size:12px}.loot-briefing-scene{min-height:150px}.loot-briefing-objectives h4{font-size:12px;margin:12px 0 5px}.loot-route-info p{font-size:12px}.loot-shop-tabs{display:flex;gap:7px;margin-bottom:20px}.loot-shop-tabs button[aria-pressed=true]{background:#526b5044;border-color:#b3c093;color:#e8dbb2}.loot-prep{max-width:960px}.loot-prep>.loot-deploy{position:sticky;bottom:8px;min-height:48px;box-shadow:0 6px 25px #0007}.loot-prep-intel,.loot-result-details{border-top:1px solid #7f938333;padding-top:4px}.loot-prep-intel>summary,.loot-result-details>summary{padding:14px 0}.loot-results{max-width:960px}.loot-result-details>.loot-results-card{margin-top:10px}.loot-results-actions{position:sticky;bottom:8px;padding:10px;background:#152329f5;border:1px solid #7d95813b;border-radius:10px}.match-side{gap:10px}.match-raid .match-heading h2{font-size:24px}.match-extract{min-height:44px;background:linear-gradient(135deg,#d8d4a0,#aacb9e);color:#19261e;font-weight:700;border-color:#dce7b4}.match-extract:disabled{background:#24332e;color:#9baa9f;border-color:#78866a44;opacity:1}.match-backpack{padding:10px}.match-pack-items{max-height:86px;overflow:auto}.match-options{font-size:12px}.match-options>summary{padding:8px 10px}.match-options[open]>*:not(summary){margin-top:12px}.match-options .match-help{display:block}.match-objectives{display:block}.match-objectives>summary{cursor:pointer;color:#d5d6b6;font-size:12px;list-style:none}.match-objectives .match-objective{margin-top:10px}.match-run{width:100%;font-size:11px!important}.match-status{min-height:20px;font-size:11px}.loot-live{font-size:12px;padding:9px 12px}.loot-intro{padding:10px 14px}.loot-intro p{font-size:12px}
@media(min-width:1101px){.loot-menu-layout.is-wide .loot-trader-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.loot-trader-card{padding:18px 14px}.loot-trader-card h3{font-size:20px}}
@media(max-width:760px){.loot-menu-header{display:flex;align-items:center;gap:10px}.loot-menu h1{font-size:25px}.loot-menu-header .eyebrow{font-size:8px;letter-spacing:.1em}.loot-menu-controls{gap:6px;margin:0;max-width:58%}.loot-menu-controls .loot-money{font-size:16px;width:100%;text-align:right}.loot-menu-controls>button{font-size:10px;padding:6px 9px;min-height:32px}.loot-more>summary{padding:8px;font-size:10px}.loot-more[open]{top:30px}.loot-menu-nav{gap:3px;flex-wrap:nowrap}.loot-menu-nav>span{display:none}.loot-menu-nav button{padding:8px 11px;font-size:11px}.loot-menu-nav button:last-of-type{margin-left:auto}.loot-menu-layout{gap:14px}.loot-task-filters{gap:6px}.loot-task-filters select{flex:1;min-width:0;width:45%;font-size:11px;padding:8px}.loot-task-card{grid-template-columns:48px minmax(0,1fr);padding:12px;gap:10px}.loot-task-actions{grid-column:2}.loot-task-body h3{font-size:17px}.loot-briefing{position:static}.loot-menu-layout:has(>.loot-briefing){display:flex;flex-direction:column}.loot-menu-content{width:100%}.loot-briefing{width:100%}.loot-poi-card{min-height:155px!important}.match-raid.match-game{grid-template-rows:32px 40px minmax(0,1fr) 64px 34px 36px;gap:7px}.match-raid .match-stage{grid-row:3}.match-raid .match-boosters{grid-row:4}.match-raid .match-extract{grid-row:5;grid-column:1/-1;min-height:34px;font-size:12px}.match-raid .match-actions{grid-row:6;grid-column:1}.match-raid .match-options{grid-row:6;grid-column:2;align-self:start}.match-options>summary{text-align:center;font-size:11px;padding:9px 5px}.match-options[open]{position:absolute;right:8px;bottom:8px;width:min(340px,calc(100% - 16px));max-height:70%;overflow:auto;z-index:12;padding:12px;background:#13242df5;border:1px solid #78938599;border-radius:10px;box-shadow:0 0 25px #0008}.match-options .match-sound{display:flex}.match-raid .match-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.match-objectives{display:none}.match-game:not(.match-raid) .match-options{grid-row:8}.loot-prep .loot-deploy{width:100%}}
@media(max-width:760px) and (max-height:500px) and (orientation:landscape){.match-raid.match-game{grid-template-columns:minmax(0,1fr) 210px;grid-template-rows:minmax(0,1fr)}.match-raid .match-stage{grid-row:1}.match-side{display:flex;grid-column:2;gap:7px}.match-side>*{flex:none}.match-options[open]{position:static;width:100%;max-height:none}.match-raid .match-status{position:static;width:auto;height:auto;clip-path:none}.match-raid .match-extract{min-height:34px}}

.loot-route-actions{display:none}@media(max-width:760px){.loot-menu{padding-bottom:90px}.loot-route-actions{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:8;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#14262bf5;border-top:1px solid #91a87b66;box-shadow:0 -8px 28px #0005}.loot-route-actions strong{font-size:12px;line-height:1.4}.loot-route-actions button{min-width:110px}.loot-briefing .loot-deploy{display:none}}

.match-threat[data-clear=true]{background:#74995714;border-color:#99bd7444}.match-threat[data-clear=true] strong{color:#c6d7aa}.match-boosters .booster-detail{display:none!important}.match-boosters button{min-height:76px}.match-boosters button[data-booster=hammer]{min-height:76px}.match-options>button{display:block;width:100%}.match-options>button[hidden]{display:none!important}@media(max-width:760px){.match-boosters button,.match-boosters button[data-booster=hammer]{min-height:60px}}

@media(max-width:760px){.loot-menu-header{flex-wrap:nowrap}.loot-menu-header>div:first-child{min-width:0}.loot-menu-controls{flex:1}.loot-menu-controls .loot-money{white-space:nowrap}.loot-task-details>button{margin-top:8px}}
/* One map raid: choose or revisit a POI without resetting the raid. */
.loot-raid-map{max-width:1300px;margin:0 auto;padding:20px;border-radius:18px;background:linear-gradient(180deg,#0c1c21b8,#0c1c21ee 330px),var(--scene) center top/cover}
.loot-raid-map h1{margin:16px 0 8px}
.loot-map-controls{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.loot-raid-map .loot-poi-grid{margin-top:24px}
.loot-raid-poi{min-height:210px}
.loot-poi-action{align-self:flex-start;margin-top:auto;padding:7px 12px;border:1px solid #dbcd9755;border-radius:7px;background:#101d22d9;color:#eee2b6;font-weight:700}
.loot-raid-poi:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:700px){.loot-raid-map{padding:12px}.loot-raid-poi{min-height:175px}.loot-map-controls>button{flex:1}.loot-raid-map .loot-poi-grid{margin-top:16px}}

.loot-equipment-card>.loot-icon,.loot-shop-card[data-access]>.loot-icon{width:110px;height:100px;margin:8px auto;display:flex;align-items:center;justify-content:center}.loot-equipment-card>.loot-icon img{max-width:100%;max-height:100%;object-fit:contain}
.loot-equipment-owned{display:flex;flex-wrap:wrap;gap:12px}.loot-equipment-owned>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #78938555;border-radius:10px}
.match-boosters button[data-booster=m4] .booster-icon img,.match-boosters button[data-booster=sniper] .booster-icon img{width:100%;max-height:44px;object-fit:contain}.match-boosters button[data-booster=flash] .booster-icon img{height:36px;max-width:100%;object-fit:contain}
@media(max-width:760px) and (orientation:portrait){.match-boosters{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.match-boosters button{padding:3px;min-width:0}.match-boosters button strong{font-size:8px}.match-boosters .booster-icon{width:30px;height:27px}.match-boosters button[data-booster=flash] .booster-icon img{height:26px}}

.match-boosters button[hidden]{display:none!important}@media(max-width:760px) and (orientation:portrait){.match-game:not(.match-raid) .match-boosters{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:760px) and (orientation:portrait){
 .match-game .match-boosters button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 3px 4px;min-height:60px;text-align:center}
 .match-game .match-boosters button .booster-icon{position:static;display:flex;align-items:center;justify-content:center;width:36px;height:25px;margin:0;flex:none}
 .match-game .match-boosters button strong{width:100%;font-size:8px;line-height:1.15}
 .match-game .match-boosters button b{right:3px;top:3px;z-index:1}
 .match-game .match-boosters button[data-booster=m4] .booster-icon img,.match-game .match-boosters button[data-booster=sniper] .booster-icon img{filter:brightness(2.2);height:25px}
}
.match-gear-status{font-size:12px;line-height:1.5;color:#becdb3}

/* Two-game entrance; backgrounds are captures of these games, not mock-ups. */
.games-current{margin-right:auto;font-size:14px;font-weight:700;color:#dbe5d9}.games-toolbar{gap:12px}.games-chooser{min-height:0;display:flex;gap:18px;padding:20px;overflow:hidden;background:radial-gradient(ellipse at top,#263934,#0b1316 75%)}
.games-choice{position:relative;isolation:isolate;display:flex;align-items:end;flex:1 1 0;min-width:0;overflow:hidden;text-align:left;border:1px solid #82918470;border-radius:18px;background:#172d2d;color:#f4f0da;padding:clamp(24px,4vw,68px);transition:flex .35s ease,border-color .25s,box-shadow .25s}
.games-choice-shot{position:absolute;inset:0;z-index:0;pointer-events:none;width:100%;height:100%;object-fit:cover;object-position:center 35%;filter:brightness(.85);transition:transform .5s,filter .3s}
.games-choice::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,#071114fa 0%,#081517c9 24%,#091a2333 65%)}
.games-choice-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:start;gap:14px}.games-choice-copy>strong{font-size:clamp(42px,5vw,82px);line-height:1.05;letter-spacing:-.04em}.games-choice-copy>span:not(.eyebrow){font-size:clamp(13px,1.3vw,18px)}.games-choice .eyebrow{color:#d5dda6;letter-spacing:.2em}.games-choice-play{margin-top:12px;padding:12px 28px;background:#ced8a7;color:#172827;border-radius:7px;font-weight:800}
.games-choice:focus-visible{outline:3px solid #e3dfb0;outline-offset:-5px}.games-choice:focus-visible .games-choice-shot{filter:brightness(1)}
@media(hover:hover) and (min-width:761px){.games-choice:hover{flex:1.15 1 0;border-color:#c5d19d;box-shadow:0 18px 60px #0007}.games-choice:hover .games-choice-shot{transform:scale(1.025);filter:brightness(1)}}
.loot-map-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:14px}.loot-menu button.loot-map-choice{position:relative;min-height:180px;display:flex;flex-direction:column;align-items:start;justify-content:end;text-align:left;gap:6px;padding:20px;border-radius:12px;border:1px solid #81978b55;background:linear-gradient(0deg,#061216f5 0%,#08182080 55%,#08182018),var(--scene) center/cover;color:#ecf0dd;transition:border-color .2s,box-shadow .2s}
.loot-menu button.loot-map-choice strong{font-size:23px}.loot-menu button.loot-map-choice span{font-size:12px;color:#c6d5d0}.loot-menu button.loot-map-choice small{font-size:11px;color:#a6bfb1}.loot-menu button.loot-map-choice[aria-pressed=true]{border-color:#d3dd9f;box-shadow:inset 0 0 0 2px #d3dd9f}.loot-menu button.loot-map-choice[aria-pressed=true] small{color:#e1e8b6}.loot-menu button.loot-map-choice:hover,.loot-menu button.loot-map-choice:focus-visible{border-color:#e1e8b6;outline:2px solid #c7dab399;outline-offset:2px}
@media(max-width:760px){.games-chooser{flex-direction:column;padding:12px;gap:12px}.games-choice{padding:24px;min-height:0}.games-choice-shot{object-position:center 45%}.games-choice-copy{gap:7px}.games-choice-copy>strong{font-size:38px}.games-choice-copy .games-choice-play{font-size:12px;padding:8px 20px;margin-top:4px}.games-current{display:none}.games-toolbar{gap:6px}.games-toolbar button{font-size:11px;padding:8px}.loot-map-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.loot-menu button.loot-map-choice{min-height:150px;padding:12px;gap:5px}.loot-menu button.loot-map-choice strong{font-size:18px}.loot-menu button.loot-map-choice span{font-size:10px}.loot-menu button.loot-map-choice small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.games-choice,.games-choice-shot,.loot-menu button.loot-map-choice{transition:none}}
/* Raid preparation: compact equipment rack and inventory cells. */
.loot-menu.is-loadout{padding:24px clamp(16px,3vw,48px);background:radial-gradient(ellipse at 80% 0%,#5e756b24,transparent 60%),linear-gradient(135deg,#101d20,#101823);color:#e2e7df}
.loot-prep.is-equipment{display:block;max-width:1240px;width:100%;margin:0 auto}
.loadout-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:116px;padding:24px 28px;margin-bottom:20px;border:1px solid #8fada444;background:linear-gradient(90deg,#162427fa 20%,#162427b8 65%,#16242750),var(--scene) center 48%/cover;border-radius:3px}
.loot-menu .loadout-header h1{font-size:36px;margin:6px 0 0;letter-spacing:-.03em;font-weight:650}.loadout-header .eyebrow{font-size:10px;letter-spacing:.16em;color:#d3c58d}.loadout-header-actions{display:flex;align-items:center;gap:24px}.loadout-money{font:15px ui-monospace,monospace;color:#ddd0a7;white-space:nowrap}.loot-menu .loadout-header button{background:#203234d9;border-radius:3px}
.loadout-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:0 24px;align-items:start}.loadout-equipped,.loadout-stash{min-width:0}.loadout-equipped{padding:0 24px 0 0;border-right:1px solid #68705a40}
.loadout-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;margin:0 0 10px}.loot-menu .loadout-section-head h2,.loot-menu .loadout-boost-section h2{font-size:12px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;font-weight:600;margin:0;color:#cbcbbc}.loadout-section-head>span{font-size:10px;color:#929889}.loot-menu .loadout-shop-link{min-height:30px;padding:5px 12px;border-radius:2px;font-size:11px;color:#e3d9b2;background:#46493244}
.loadout-paperdoll{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:22px}
.loot-menu button.loadout-slot{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 7px 10px;border:1px solid #5a605555;border-radius:2px;background:linear-gradient(135deg,#2a403947,#17282d);color:#c8d3c9;text-align:center;transition:border-color .15s,background-color .15s}
.loot-menu button.loadout-gear-slot{height:160px}.loadout-slot>small{position:absolute;top:9px;left:10px;font:9px ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;color:#a9ad9b}.loadout-slot>strong{font-size:11px;font-weight:500;line-height:1.25}.loadout-slot>span:not(.booster-icon):not(.loadout-slot-ghost){font-size:10px;line-height:1.2;color:#c2bf98}.loadout-slot-ghost{display:grid;place-items:center;color:#789487;height:60px;font-size:25px;font-weight:300}.loadout-slot-ghost svg{width:58px;height:58px}.loadout-slot:not(.is-filled)>strong{color:#93a99f;font-size:10px}.loadout-gear-slot>img{width:100%;height:78px;object-fit:contain;filter:drop-shadow(0 4px 4px #0008);margin-top:8px}.loadout-slot .loadout-item-detail{max-width:100%}
.loot-menu button.loadout-slot.is-filled{background:linear-gradient(135deg,#47635370,#203234);border-color:#8fada480}.loot-menu button.loadout-slot:hover{border-color:#c8c19b;background-color:#2d4344}.loot-menu button.loadout-slot.is-selected{border-color:#e4d6a6;box-shadow:inset 0 0 0 1px #e4d6a6}.loot-menu button.loadout-slot:focus-visible,.loot-menu button.loadout-stock-item:focus-visible{outline:2px solid #ead5a0;outline-offset:2px}
.loadout-pockets{display:grid;grid-template-columns:repeat(var(--slots),minmax(0,1fr));gap:8px;margin-top:12px}.loot-menu button.loadout-boost-slot{height:112px;padding-top:23px;gap:6px}.loadout-boost-slot .booster-icon{width:100%;height:35px}.loadout-boost-slot .loadout-slot-ghost{height:35px}.loadout-boost-slot>span:last-child:not(.loadout-slot-ghost){font-size:9px}
.loadout-editor .booster-icon{position:static;display:flex;align-items:center;justify-content:center;flex:none;margin:0}.loadout-editor .booster-icon img{width:100%;height:100%;object-fit:contain}.loadout-editor .booster-icon svg{max-width:30px;max-height:30px}
.loadout-stash>.loadout-section-head{margin-bottom:16px}.loadout-stock-group{margin-bottom:16px}.loot-menu .loadout-stock-group h3{font-size:9px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#939a89;margin:0 0 8px}.loadout-stock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.loot-menu button.loadout-stock-item{position:relative;min-width:0;height:120px;padding:19px 8px 21px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:repeating-linear-gradient(0deg,#7f86690a 0 1px,transparent 1px 30px),repeating-linear-gradient(90deg,#7f86690a 0 1px,transparent 1px 30px),#192b30;border:1px solid #8fada466;border-radius:1px;color:#e0ddc5;text-align:center}.loot-menu button.loadout-stock-item.is-weapon{grid-column:span 2}.loadout-stock-item>small{position:absolute;left:6px;top:6px;font:8px ui-monospace,monospace;letter-spacing:.03em;text-transform:uppercase;color:#9da486}.loadout-stock-item>strong{font-size:10px;line-height:1.15;font-weight:500}.loadout-stock-item>img,.loadout-stock-item>.booster-icon{width:100%;height:62px;object-fit:contain}.loadout-stock-item.is-weapon>.booster-icon{height:57px}.loadout-stock-count{position:absolute;right:6px;bottom:5px;font:10px ui-monospace,monospace;color:#d6c58f}.loot-menu button.loadout-stock-item:disabled{opacity:.38;cursor:default;background:#14252c}.loot-menu button.loadout-stock-item:not(:disabled):hover{border-color:#d5c99d;background-color:#2d4344}.loadout-stock-item[draggable=true],.loadout-slot[draggable=true]{cursor:grab}.loadout-stock-item[draggable=true]:active,.loadout-slot[draggable=true]:active{cursor:grabbing}
.loadout-stock-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 10px;border:1px solid #5f68553b;background:#242a2233}.loadout-stock-empty p{font-size:11px;color:#949d89;margin:0}.loot-menu .loadout-stock-empty button{font-size:10px;min-height:28px;padding:5px 8px;border-radius:2px;background:transparent;border-color:#686d5044;color:#d3c9a4}.loadout-risk{font-size:10px;color:#8a927f;margin:16px 0 0}.loadout-feedback{grid-column:1/-1;min-height:16px;font-size:11px;color:#c4bd97;margin:16px 0 0}
.loadout-stash.can-drop,.loot-menu button.loadout-slot.can-drop{outline:1px solid #b5c485;outline-offset:2px}.loadout-stash.is-over,.loot-menu button.loadout-slot.can-drop.is-over{background-color:#61743a55}.loadout-editor.is-dragging .loadout-slot:not(.can-drop){opacity:.45}.loadout-editor.is-dragging .loadout-stock-item:disabled{pointer-events:none}
.loot-prep.is-equipment>.loot-prep-intel{margin-top:10px}.loot-prep.is-equipment>.loot-prep-intel>summary{font-size:11px;padding:10px 0;color:#999f8d}.loadout-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:15px 18px;background:#182c32f7;border:1px solid #82826677;border-radius:2px;box-shadow:0 -8px 24px #101d2080}.loadout-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;color:#aeb49c;font-size:11px}.loadout-summary span:first-child{font-weight:600;color:#ded6b2}.loadout-footer .loot-deploy{position:static;min-width:195px;min-height:44px;border-radius:2px;box-shadow:none}.loot-menu .loadout-footer .primary{background:linear-gradient(130deg,#e6d4a4,#b5c9a3);color:#172626;border-color:#ede0b2}
@media(min-width:1100px){.loadout-stash{min-height:480px;background:linear-gradient(#101d2033,#101d20dd),repeating-linear-gradient(0deg,#8d98730a 0 1px,transparent 1px 30px),repeating-linear-gradient(90deg,#8d98730a 0 1px,transparent 1px 30px)}}
@media(max-width:980px){.loadout-editor{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px}.loadout-equipped{padding-right:16px}.loadout-stock-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.loadout-slot>strong{font-size:10px}.loadout-slot>small{font-size:8px;left:6px}.loadout-slot>span:not(.booster-icon):not(.loadout-slot-ghost){font-size:9px}}
@media(max-width:700px){.loot-menu.is-loadout{padding:12px 12px 16px}.loadout-header{padding:16px;min-height:100px;margin-bottom:16px;gap:10px}.loot-menu .loadout-header h1{font-size:29px}.loadout-header .eyebrow{font-size:8px;letter-spacing:.08em}.loadout-header-actions{flex-direction:column-reverse;align-items:end;gap:10px}.loadout-money{font-size:12px}.loot-menu .loadout-header button{font-size:10px;padding:6px 10px;min-height:30px}.loadout-editor{grid-template-columns:1fr;gap:18px}.loadout-equipped{padding:0;border:0}.loadout-paperdoll{margin-bottom:16px}.loot-menu button.loadout-gear-slot{height:142px}.loadout-gear-slot>img{height:63px}.loadout-slot-ghost{height:48px}.loadout-slot-ghost svg{width:48px;height:48px}.loadout-stock-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.loadout-stock-item>strong{font-size:9px}.loadout-stock-item>small{font-size:7px}.loot-menu button.loadout-stock-item{height:110px;padding-left:4px;padding-right:4px}.loadout-feedback{margin:0;font-size:10px}.loadout-footer{gap:12px;padding:12px;flex-direction:column;align-items:stretch;margin-top:12px}.loadout-summary{gap:6px 14px;font-size:10px}.loadout-footer .loot-deploy{min-width:0;width:100%}.loadout-stash{border-top:1px solid #656e5244;padding-top:16px}.loadout-risk{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.loot-menu button.loadout-slot{transition:none}}

.loadout-weapons{margin-bottom:22px}.loadout-rig-pockets{margin-top:20px}.loadout-weapons .booster-icon{height:48px}.loadout-weapons .loadout-boost-slot{height:126px}.loadout-base-pockets .loadout-pockets{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:980px){.loadout-paperdoll{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:701px){.loadout-stash{max-height:calc(100dvh - 285px);min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px 0;scrollbar-width:thin;scrollbar-color:#637c70 #15262b}.loadout-stash>.loadout-section-head{position:sticky;top:0;z-index:2;background:#16262bf5;padding:6px 0}}

@media(max-width:700px){.loadout-stock-item>img,.loadout-stock-item>.booster-icon,.loadout-stock-item.is-weapon>.booster-icon{height:48px}}

.loot-prep-access{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px;background:#20323488;border:1px solid #64808050;border-radius:6px;font-size:12px}.loot-prep-access>span:not(.loot-icon){flex:1}.loot-prep-access button{flex:none}.match-game:not(.match-raid) [data-booster=pistol],.match-game:not(.match-raid) [data-booster=smg]{display:none}
@media(max-width:760px) and (orientation:portrait){.match-raid .match-boosters{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.match-raid.match-game{grid-template-rows:32px 40px minmax(0,1fr) 84px 34px 36px}.match-raid .match-boosters button{min-height:39px}.match-raid .match-boosters .booster-icon{height:19px}.loot-prep-access{flex-wrap:wrap}}

/* Ordinary supply caches use the same centered booster art as boss drops. */
.match-tile .booster-icon{position:absolute;inset:12%;width:76%;height:76%;margin:0!important}
.match-tile .booster-icon img{position:static;inset:auto;width:100%;height:100%;display:block;filter:brightness(1.8)}
.match-tile[data-quantity] .match-cargo-mark{font:700 clamp(8px,.9vw,12px)/1.1 system-ui,sans-serif;white-space:nowrap;padding:2px 3px;background:#302e18dd;border-radius:3px;right:1px;bottom:1px}

/* Tetriz friends standings stay in the scrolling sidebar, preserving the full playfield. */
.stash-scoreboard{min-width:0}.stash-scoreboard-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.stash-scoreboard-head h3{margin:0}.stash-scoreboard-head button{padding:4px 9px;font-size:17px}.stash-scoreboard-note,.stash-scoreboard-status{font-size:11px;color:var(--muted);margin:7px 0}.stash-scoreboard-status:empty{display:none}.stash-scoreboard-list{list-style:none;padding:0;margin:8px 0 0;max-height:220px;overflow:auto}.stash-scoreboard-list li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 7px;border-bottom:1px solid #aab99322;font-size:12px}.stash-scoreboard-list li[data-you=true]{background:#d5c58414;border-radius:5px;color:#e6d28e}.stash-scoreboard-rank{color:var(--muted);font-variant-numeric:tabular-nums}.stash-scoreboard-name{overflow-wrap:anywhere}.stash-scoreboard-value{font-variant-numeric:tabular-nums;white-space:nowrap}.stash-scoreboard button:focus-visible{outline:2px solid #e6d28e;outline-offset:2px}
.match-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.match-raid .match-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.stash-scoreboard{grid-column:1/-1}}
.stash-scoreboard-wrap{flex:none;min-width:0}.stash-scores-open{display:none}.stash-scoreboard-dialog{max-width:min(94vw,440px);width:440px;max-height:85vh;padding:14px;background:#12201c;color:var(--text);border:1px solid #697d52;border-radius:10px}.stash-scoreboard-dialog::backdrop{background:#000a}.stash-scoreboard-dialog .stash-scoreboard-list{max-height:55vh}.stash-scores-close{display:block;margin-left:auto;margin-bottom:10px}
@media(max-width:760px){.stash-scoreboard-wrap{display:contents}.stash-scoreboard-wrap>.stash-scoreboard{display:none}.stash-scores-open{display:inline-block}}
.stash-scoreboard-top-title{margin:14px 0 4px;font-size:13px;color:var(--accent)}
.stash-scoreboard-public{display:flex!important;align-items:center;gap:7px;margin:4px 0;font-size:11px;color:var(--muted);cursor:pointer}
.stash-scoreboard-public input{accent-color:var(--accent);flex:none;width:14px!important;height:14px;margin:0!important;padding:0}
.stash-scoreboard-public span{flex:1;text-align:left}
.stash-scoreboard-top{max-height:none}
.stash-scoreboard-list li.stash-scoreboard-empty{display:block;color:var(--muted)}
