:root {
  --bg1: #141a3a; --bg2: #2a1a4a; --panel: rgba(17, 22, 48, .88); --panel2: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .12);
  --text: #eef1ff; --mute: #9aa3c7; --blue: #3d8bff; --red: #ff4d5e; --gold: #ffcc33; --green: #4ee08a;
  --common: #a9b4c2; --rare: #3e9bff; --epic: #b263ff; --legendary: #ffb02e; --perk: #3fd6a0;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: radial-gradient(ellipse at 30% 0%, #2c3a8a 0%, var(--bg1) 45%, var(--bg2) 100%); color: var(--text); font-family: 'Nunito', system-ui, sans-serif; font-weight: 700; }
button { font-family: inherit; font-weight: 800; cursor: pointer; border: 0; border-radius: 12px; padding: 10px 18px; font-size: 15px; color: #fff; background: #3a4680; transition: transform .08s, filter .15s, background .15s; }
button:hover:not(:disabled) { filter: brightness(1.15); }
button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: linear-gradient(180deg, #ffd34d, #ff9f1a); color: #3a2000; box-shadow: 0 4px 0 #b86a00; }
button.blue { background: linear-gradient(180deg, #5aa2ff, #2f6fe0); box-shadow: 0 4px 0 #1d4799; }
button.red { background: linear-gradient(180deg, #ff6b7a, #e0334a); box-shadow: 0 4px 0 #9a1d2e; }
button.ghost { background: var(--panel2); border: 1px solid var(--line); }
button.small { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
input, select { font-family: inherit; font-weight: 700; font-size: 15px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); outline: none; }
input:focus { border-color: var(--gold); }
h1, h2, h3, .title { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }
.hidden { display: none !important; }
#app { position: fixed; inset: 0; overflow: auto; }
.screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 22px 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.row { display: flex; gap: 10px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; }
.mute { color: var(--mute); }
.grow { flex: 1; }

/* ---------- home ---------- */
.logo { font-family: 'Lilita One'; font-size: 76px; line-height: .95; text-align: center; margin: 5vh 0 6px; background: linear-gradient(180deg, #fff27a, #ff9a1f 60%, #ff5e3a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #4a1d6b) drop-shadow(0 10px 20px rgba(0,0,0,.5)); transform: rotate(-3deg); }
.tagline { color: var(--mute); margin-bottom: 28px; font-size: 17px; }
.home-box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.home-box .row > * { flex: 1; }
.home-box input.code { text-transform: uppercase; letter-spacing: 4px; text-align: center; }
.floating-cards { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.floating-cards .card { position: absolute; opacity: .22; transform: scale(.6); }

/* ---------- lobby ---------- */
.lobby { width: min(1300px, 100%); display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 16px; align-items: start; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.settings-grid .setting span { line-height: 1.15; }
.lobby-head { width: min(1250px, 100%); display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.room-code { font-family: 'Lilita One'; font-size: 30px; letter-spacing: 3px; background: var(--panel); padding: 6px 18px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.room-code small { font-family: Nunito; font-size: 12px; letter-spacing: 0; color: var(--mute); display: block; margin-top: -4px; }
.team { min-height: 320px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; }
.team.drag-over { box-shadow: 0 0 0 3px var(--gold) inset; }
.team h2 { font-size: 30px; display: flex; justify-content: space-between; align-items: center; }
.team.t0 h2 { color: var(--blue); } .team.t1 h2 { color: var(--red); }
.pchip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pchip[draggable=true] { cursor: grab; }
.pchip .av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; }
.team.t0 .av { background: var(--blue); } .team.t1 .av { background: var(--red); }
.pchip .nm { flex: 1; font-size: 16px; }
.badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--mute); }
.badge.host { background: var(--gold); color: #3a2a00; }
.badge.you { background: var(--green); color: #003a18; }
.settings { display: flex; flex-direction: column; gap: 7px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.setting input[type=number] { width: 74px; padding: 6px 8px; text-align: right; }
.setting input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
.setting .val { font-weight: 900; }
.pref-box { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- cards ---------- */
.card { --rc: var(--common); width: 250px; border-radius: 18px; background: linear-gradient(180deg, #232a55, #151a38); border: 3px solid var(--rc); box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45), 0 0 24px color-mix(in srgb, var(--rc) 35%, transparent); overflow: hidden; position: relative; text-align: left; }
.card.common { --rc: var(--common); } .card.rare { --rc: var(--rare); } .card.epic { --rc: var(--epic); } .card.legendary { --rc: var(--legendary); } .card.perk { --rc: var(--perk); }
.card .rar { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 8px; background: var(--rc); color: #10122a; text-transform: uppercase; letter-spacing: .5px; }
.card .typ { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; }
.card .art { height: 156px; position: relative; overflow: hidden; background: #0b0e24; }
.card .art::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(21,26,56,.9), transparent 30%); }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 14px 14px; }
.card .nm { font-family: 'Lilita One'; font-size: 24px; line-height: 1.05; }
.card .ds { font-size: 13.5px; color: #c9cff0; margin-top: 6px; min-height: 36px; }
.card table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.card td { padding: 3px 0; border-top: 1px solid var(--line); }
.card td:last-child { text-align: right; font-weight: 900; }
.card.legendary .art::before { content: ''; position: absolute; inset: -50%; z-index: 1; mix-blend-mode: screen; background: conic-gradient(from 0deg, transparent, rgba(255,220,120,.35), transparent 30%); animation: spin 4s linear infinite; }
.card.epic .art::before { content: ''; position: absolute; inset: -50%; z-index: 1; mix-blend-mode: screen; background: conic-gradient(from 0deg, transparent, rgba(200,140,255,.25), transparent 30%); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card.mini { width: 150px; border-width: 2px; border-radius: 12px; }
.card.mini .art { height: 86px; }
.card.mini .nm { font-size: 16px; }
.card.mini .ds, .card.mini table { display: none; }
.card.mini .body { padding: 6px 9px 9px; }
/* value pips (shared/card_values.js): absolute strength, label on hover */
.val { display: flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 10.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #8f97c4; cursor: help; }
.val span { margin-right: 4px; }
.val i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.14); }
.val i.on { background: #ffd36b; box-shadow: 0 0 4px rgba(255,211,107,.45); }
.card.mini .val { margin-top: 3px; font-size: 9px; gap: 2px; } .card.mini .val i { width: 6px; height: 6px; }
.pg-card .val { margin: 0; } .pg-card .val span { display: none; } .pg-card .val i { width: 5px; height: 5px; }
.card.mini .rar, .card.mini .typ { font-size: 9px; top: 5px; padding: 2px 5px; }
.card.mini .rar { left: 5px; } .card.mini .typ { right: 5px; }
.card.excluded { filter: grayscale(1) brightness(.55); }
.card.excluded::after { content: 'EXCLUDED'; position: absolute; inset: auto 0 40% 0; text-align: center; font-family: 'Lilita One'; font-size: 20px; color: #ff6b7a; transform: rotate(-12deg); text-shadow: 0 2px 4px #000; }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; font-size: 17px; overflow: hidden; border: 2px solid var(--rc, #888); background: rgba(0,0,0,.35); position: relative; cursor: help; }
.chip.common, .chip.r-common { --rc: var(--common); } .chip.rare, .chip.r-rare { --rc: var(--rare); } .chip.epic, .chip.r-epic { --rc: var(--epic); } .chip.legendary, .chip.r-legendary { --rc: var(--legendary); } .chip.perk, .chip.r-perk { --rc: var(--perk); }
.chip img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.tip { position: fixed; z-index: 1000; pointer-events: none; }

/* ---------- picker modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5,8,25,.7); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(1200px, 100%); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; }
.picker-grid { overflow: auto; flex: 1 1 auto; min-height: 0; grid-auto-rows: max-content; align-content: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px; }
.picker-grid .card { cursor: pointer; width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters button.on { background: var(--gold); color: #3a2a00; }

/* ---------- auction ---------- */
.auction { width: 100%; height: 100%; display: grid; grid-template-columns: 300px 1fr 300px; gap: 16px; padding: 16px; }
.auction .side { display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.auction .side h2 { font-size: 28px; }
.auction .t0 h2 { color: var(--blue); } .auction .t1 h2 { color: var(--red); }
.bidder { padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.bidder.leading { border-color: var(--gold); transform: scale(1.02); box-shadow: 0 0 22px rgba(255,204,51,.35); }
.bidder .top { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.bidder .money { font-family: 'Lilita One'; font-size: 22px; color: var(--green); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.bidder .money .after { font-size: 15px; color: #ff9a6b; opacity: .92; }
.bid-btn small.left { display: block; font-size: 13px; font-family: Nunito, sans-serif; font-weight: 800; opacity: .75; margin-top: -2px; }
.bidder.away { opacity: .6; }
.badge.away { background: #6b6f80; color: #fff; }
.badge.skipped { background: rgba(255,255,255,.08); color: var(--mute); font-style: italic; }
.skip-btn { font-size: 18px; padding: 12px 20px; border-radius: 14px; }
.skip-line { font-size: 13px; min-height: 18px; text-align: center; }
.tag .n .away { font-size: 11px; color: #ffcf7a; font-weight: 800; }
.conn-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9999; padding: 8px 16px; border-radius: 10px; background: rgba(20,24,44,.92); color: #fff; font: 800 15px Nunito, sans-serif; box-shadow: 0 4px 18px rgba(0,0,0,.45); display: flex; gap: 10px; align-items: center; }
.conn-bar.hidden { display: none; }
.bidder .won { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; min-height: 30px; }
.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
.stage .counter { font-family: 'Lilita One'; font-size: 22px; color: var(--mute); }
.upcoming { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.upcoming i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; opacity: .85; }
.big-card-wrap { perspective: 1200px; }
.big-card-wrap .card { width: 340px; }
.big-card-wrap .card .art { height: 206px; }
.big-card-wrap .card .nm { font-size: 32px; }
.big-card-wrap .card .ds { font-size: 15px; }
.big-card-wrap .card table { font-size: 14.5px; }
.flip-in { animation: flipIn .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes flipIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.sold-out { animation: soldOut .5s ease-in both; animation-delay: 1.3s; }
@keyframes soldOut { to { transform: translateY(-40px) scale(.7); opacity: 0; } }
.bidline { display: flex; align-items: center; gap: 18px; }
.cur-bid { font-family: 'Lilita One'; font-size: 54px; color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.4); min-width: 110px; text-align: center; }
.cur-bid.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.cur-by { font-size: 17px; min-height: 24px; }
.timer { width: 380px; height: 14px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.timer i { display: block; height: 100%; background: linear-gradient(90deg, #4ee08a, #ffcc33); border-radius: 8px; transition: width .1s linear; }
.timer.low i { background: linear-gradient(90deg, #ff4d5e, #ff9a3c); }
.bid-btn { font-size: 26px; padding: 14px 40px; border-radius: 16px; font-family: 'Lilita One'; font-weight: 400; letter-spacing: .5px; }
.bid-note { color: var(--mute); font-size: 14px; min-height: 20px; }
.sold-banner { font-family: 'Lilita One'; font-size: 40px; text-shadow: 0 4px 0 rgba(0,0,0,.4); animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.sold-banner.over { position: absolute; top: 40%; z-index: 5; background: rgba(10,14,35,.9); padding: 12px 28px; border-radius: 18px; border: 2px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.log { font-size: 13px; color: var(--mute); max-height: 120px; overflow: auto; width: 100%; text-align: center; }

/* ---------- game ---------- */
#game { position: fixed; inset: 0; animation: fadeIn .5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
#game canvas { display: block; width: 100%; height: 100%; }
#hud { position: absolute; inset: 0; pointer-events: none; font-family: 'Nunito'; }
#hud .pe { pointer-events: auto; }
.hud-top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.score-box { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, rgba(14,18,44,.85), rgba(8,10,28,.75)); padding: 6px 20px; border-radius: 16px; font-family: 'Lilita One'; font-size: 34px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.score-box .b { color: var(--blue); } .score-box .r { color: var(--red); }
.score-box .mid { font-size: 14px; color: var(--mute); font-family: Nunito; text-align: center; line-height: 1.15; min-width: 70px; }
.score-box .clock { color: #fff; font-size: 17px; font-weight: 900; }
.hotbar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: flex-end; }
.slot { --rc: #5a6288; width: 78px; height: 78px; border-radius: 16px; background: rgba(10,14,35,.85); border: 3px solid var(--rc); position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 14px color-mix(in srgb, var(--rc) 30%, transparent); transition: transform .12s; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.r-common { --rc: var(--common); } .slot.r-rare { --rc: var(--rare); } .slot.r-epic { --rc: var(--epic); } .slot.r-legendary { --rc: var(--legendary); } .slot.r-perk { --rc: var(--perk); }
.slot .key { position: absolute; top: 3px; left: 4px; min-width: 20px; padding: 0 5px; height: 20px; line-height: 20px; border-radius: 6px; text-align: center; font-size: 13px; font-weight: 900; color: #fff; background: rgba(0,0,0,.62); z-index: 4; }
.slot .nm { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; line-height: 1.1; padding: 10px 3px 3px; text-align: center; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); z-index: 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .cd { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-size: 26px; font-family: 'Lilita One'; color: #fff; text-shadow: 0 2px 3px #000; }
.slot .chg { position: absolute; top: 3px; right: 5px; font-size: 15px; font-weight: 900; z-index: 6; color: var(--gold); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.slot .rc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; font-family: 'Lilita One'; font-size: 13px; padding: 3px 7px; border-radius: 8px; background: var(--gold); color: #3a2000; white-space: nowrap; max-width: 74px; overflow: hidden; text-overflow: ellipsis; animation: rcPulse 1s infinite; }
@keyframes rcPulse { 50% { box-shadow: 0 0 14px var(--gold); } }
.slot.recast { border-color: var(--gold); }
.slot.util { width: 56px; height: 56px; border-radius: 14px; }
.slot.util .ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; padding-bottom: 8px; }
.slot.util .nm { font-size: 10px; }
.slot.dash .pips { position: absolute; left: 6px; right: 6px; bottom: 16px; display: flex; gap: 3px; z-index: 4; }
.slot.dash .pips i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; display: block; }
.slot.dash .pips i b { display: block; height: 100%; background: #7fd8ff; }
.slot.flash { animation: slotFlash .25s; }
@keyframes slotFlash { 50% { transform: scale(.9); filter: brightness(1.7); } }
.slot.deny { animation: deny .25s; }
@keyframes deny { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.slot.ready-pop { animation: readyPop .4s; }
@keyframes readyPop { 50% { box-shadow: 0 0 24px var(--rc); transform: scale(1.1) translateY(-4px); } }
.slot.sealed::after { content: 'SEALED'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(120,0,90,.6); font-size: 13px; font-weight: 900; z-index: 7; }
.self-box { position: absolute; bottom: 18px; left: 18px; max-width: 260px; }
/* own HP: big bar above the hotbar */
.me-hud { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); width: min(500px, 70vw); }
.me-top { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 4px; min-height: 24px; }
.me-nm { font-family: 'Lilita One'; font-size: 19px; line-height: 1; text-shadow: 0 2px 3px #000; white-space: nowrap; }
.me-st { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.me-st span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 900; padding: 2px 8px 2px 5px; border-radius: 8px; background: rgba(10,14,35,.82); border: 1px solid rgba(110,255,170,.45); animation: pop .25s; white-space: nowrap; }
.me-st span.bad { border-color: rgba(255,95,110,.6); }
.me-st span i { font-style: normal; font-size: 14px; }
.me-bar { position: relative; height: 28px; border-radius: 9px; background: rgba(8,10,28,.88); border: 2px solid rgba(255,255,255,.28); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.me-bar > div { position: absolute; top: 0; bottom: 0; left: 0; }
.me-bar .trail { width: 100%; background: rgba(255,255,255,.92); }
.me-bar .fill { width: 100%; background: linear-gradient(180deg, #8dfbb4 0%, #2fc46c 55%, #1f9c52 100%); }
.me-bar .fill::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: rgba(255,255,255,.22); }
.me-bar .shield { background: repeating-linear-gradient(-45deg, rgba(190,235,255,.95) 0 6px, rgba(120,200,255,.95) 6px 12px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.me-bar .glow { right: 0; opacity: 0; background: linear-gradient(90deg, rgba(120,255,170,.0), rgba(170,255,200,.75)); }
.me-bar .num { right: 0; display: flex; align-items: baseline; justify-content: center; gap: 5px; line-height: 24px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.8); }
.me-bar .num b { font-family: 'Lilita One'; font-weight: 400; font-size: 21px; }
.me-bar .num span { font-size: 13px; opacity: .85; }
.me-bar .num em { font-style: normal; font-size: 14px; color: #bfe9ff; }
.me-hud.healed .glow { animation: healFlash .5s ease-out; }
.me-hud.healed .me-bar { animation: healRing .5s ease-out; }
@keyframes healFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes healRing { 0% { border-color: #9dffbf; box-shadow: 0 0 22px rgba(110,255,160,.8); } }
.me-hud.low .fill { background: linear-gradient(180deg, #ff9a8a 0%, #f2394c 55%, #b8162c 100%); }
.me-hud.low .me-bar { animation: lowPulse .9s ease-in-out infinite; }
@keyframes lowPulse { 50% { border-color: #ff5a6a; box-shadow: 0 0 20px rgba(255,40,60,.75), 0 6px 18px rgba(0,0,0,.45); } }
.me-hud.dead { opacity: .55; }
/* team-mates (compact, top left) */
.team-hp { position: absolute; top: 14px; left: 16px; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(10,14,35,.7); border: 1px solid rgba(255,255,255,.1); }
.team-hp .tm { display: grid; grid-template-columns: 92px 120px 40px; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; }
.team-hp .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.team-hp .b { position: relative; height: 10px; border-radius: 5px; background: rgba(0,0,0,.6); overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.team-hp .b b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #8dfbb4, #22b35e); transition: width .2s; }
.team-hp .b s { position: absolute; top: 0; bottom: 0; background: rgba(170,225,255,.95); }
.team-hp .v { text-align: right; font-size: 12px; color: #dfe6ff; }
.team-hp .tm.low .b b { background: linear-gradient(180deg, #ff9a8a, #e8344a); }
.team-hp .tm.dead { opacity: .45; }
.statuses { display: none; }
.passives { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.passives .chip { width: 34px; height: 34px; overflow: hidden; }
.passives .chip img { width: 100%; height: 100%; object-fit: cover; }
.killfeed { position: absolute; top: 14px; right: 16px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.killfeed div { background: rgba(10,14,35,.78); padding: 5px 12px; border-radius: 10px; font-size: 14px; animation: pop .3s; }
.killfeed .ko { font-family: 'Lilita One'; color: #ffcc33; margin: 0 4px; }
.banner { position: absolute; top: 26%; left: 0; right: 0; text-align: center; font-family: 'Lilita One'; font-size: 84px; text-shadow: 0 6px 0 rgba(0,0,0,.45), 0 0 30px rgba(0,0,0,.4); animation: bannerIn .45s cubic-bezier(.2,1.6,.4,1); }
.banner small { display: block; font-size: 24px; font-family: Nunito; font-weight: 900; }
@keyframes bannerIn { from { transform: scale(2.2); opacity: 0; } }
.tag { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; will-change: transform; }
.tag .n { font-size: 13px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.tag .bar { width: 80px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.6); margin: 2px auto 0; overflow: hidden; position: relative; border: 1px solid rgba(0,0,0,.6); }
.tag .bar.small { width: 46px; height: 5px; }
.tag .bar b { position: absolute; left: 0; top: 0; bottom: 0; transition: width .12s; }
.tag .bar s { position: absolute; top: 0; bottom: 0; background: rgba(170,225,255,.9); }
.tag .st { font-size: 15px; height: 18px; filter: drop-shadow(0 1px 1px #000); }
.tag .cast { height: 14px; width: 96px; margin: 3px auto 0; background: rgba(0,0,0,.55); border-radius: 4px; overflow: hidden; position: relative; }
.tag .cast b { display: block; height: 100%; background: linear-gradient(90deg, #fff27a, #ffb02e); }
.tag .cast span { position: absolute; inset: 0; font-size: 10px; line-height: 14px; color: #fff; text-shadow: 0 1px 2px #000; }
.dmgnum { position: absolute; left: 0; top: 0; font-family: 'Lilita One'; font-size: 24px; text-shadow: 0 2px 0 #000, 0 0 4px #000; pointer-events: none; white-space: nowrap; will-change: transform; }
.dmgnum.big { text-shadow: 0 3px 0 #000, 0 0 10px rgba(255,120,0,.8); }
.hint { position: absolute; bottom: 172px; left: 50%; transform: translateX(-50%); font-size: 15px; color: #fff; background: rgba(10,14,35,.7); padding: 6px 14px; border-radius: 10px; white-space: nowrap; }
.spec { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); font-size: 16px; background: rgba(10,14,35,.7); padding: 6px 14px; border-radius: 10px; }
.callout { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); font-size: 22px; padding: 6px 18px; border-radius: 12px; background: linear-gradient(90deg, transparent, rgba(10,14,35,.8) 20%, rgba(10,14,35,.8) 80%, transparent); opacity: 0; white-space: nowrap; }
.callout b { font-family: 'Lilita One'; font-weight: 400; color: #ffb02e; font-size: 26px; }
.callout.show { animation: callout 1.6s ease-out; }
@keyframes callout { 0% { opacity: 0; transform: translateX(-50%) scale(1.4); } 12% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.fps { position: absolute; bottom: 6px; right: 10px; font-size: 13px; color: #9f9; text-shadow: 0 1px 2px #000; }
.menu { position: absolute; inset: 0; background: rgba(5,8,25,.55); backdrop-filter: blur(3px); display: grid; place-items: center; pointer-events: auto; animation: fadeIn .2s; }
.menu .panel { width: min(470px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.menu label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.menu input[type=range], .pref-box input[type=range] { width: 160px; accent-color: var(--gold); padding: 0; }
.results-wrap { background: rgba(5,8,25,.7); }
.vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(255,0,30,0); transition: box-shadow .3s; }
.vignette.hurt { box-shadow: inset 0 0 150px rgba(255,0,30,.55); transition: none; }
.lowhp .vignette { box-shadow: inset 0 0 110px rgba(255,0,30,.35); }
.screenflash, .blindfx { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.blindfx { background: radial-gradient(circle, #fff 0%, #fffbe8 60%, #ffe9a8 100%); }
.chat-in { position: absolute; left: 16px; bottom: 150px; width: 320px; }
/* key bindings */
.binds { width: min(760px, 100%); }
.bind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; overflow: auto; }
.bind-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bind-keys { display: flex; gap: 6px; }
.bind { min-width: 62px; padding: 4px 10px; font-size: 13px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.bind.listen { background: var(--gold); color: #3a2000; }
.loading { margin-top: 32vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading .bar { width: 320px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.loading .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #ff9f1a); width: 0; transition: width .2s; }

/* ---------- results ---------- */
.results { width: min(900px, 100%); }
.results h1 { font-size: 64px; text-align: center; }
.results table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.results td, .results th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.results th { color: var(--mute); font-size: 13px; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toast div { background: #222a55; border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; animation: pop .3s; }
.chat { position: absolute; left: 16px; bottom: 150px; width: 320px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.chat div { background: rgba(10,14,35,.55); padding: 3px 8px; border-radius: 7px; width: fit-content; }

@media (max-width: 1000px) {
  .lobby { grid-template-columns: 1fr; }
  .auction { grid-template-columns: 1fr; height: auto; }
  .logo { font-size: 52px; }
}

.screen { animation: fadeIn .35s ease-out; }
.auction { animation: fadeIn .35s ease-out; }
.results-wrap .panel.results { width: min(820px, 94vw); }

/* Originals pack: card badge, pack selector, auction chip, doom tally, fog */
.card .pk { position: absolute; top: 36px; right: 10px; z-index: 2; font-size: 13px; color: #3dffd0; text-shadow: 0 0 6px #3dffd0, 0 1px 2px #000; }
.card.mini .pk { top: 22px; right: 6px; font-size: 10px; }
.pack-sel { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pack-sel button { min-width: 70px; } .pack-sel button i { font-style: normal; opacity: .65; font-size: 11px; margin-left: 2px; }
.pack-sel button.on { background: linear-gradient(180deg, #3dffd0, #19a888); color: #062a22; border-color: #3dffd0; }
.packchip { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 10px; font-size: 14px; vertical-align: middle; background: rgba(255,255,255,.1); color: #fff; }
.packchip.p-original { background: rgba(61,255,208,.18); color: #3dffd0; } .packchip.p-classic { background: rgba(169,180,194,.2); color: #dfe6f0; } .packchip.p-mixed { background: rgba(178,99,255,.2); color: #e0c8ff; }
.doomtag { position: absolute; left: 0; top: 0; font-family: "Lilita One", sans-serif; font-size: 22px; color: #7dfcff; text-shadow: 0 0 8px #2f6bff, 0 2px 3px #000; pointer-events: none; }
.fogfx { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(ellipse at center, rgba(220,226,236,.35) 0%, rgba(214,220,230,.9) 55%, rgba(205,212,224,.97) 100%); }

/* Free-for-all: compact opponent HP list (everyone is an enemy), lobby seat list, per-seat colour dot */
.ffa-match .team-hp { gap: 4px; padding: 6px 8px; }
.ffa-match .team-hp .tm { grid-template-columns: 78px 92px 34px; gap: 6px; font-size: 12px; }
.ffa-match .team-hp .b b { background: linear-gradient(180deg, #ff8a95, #d8323f); }
.panel.team.ffa { grid-column: span 2; }
.pchip .seat { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 6px currentColor; background: currentColor; flex: none; }
.ffa-res td.w { color: #ffd23d; font-weight: 900; }
@media (max-width: 1000px) { .panel.team.ffa { grid-column: auto; } }
.auction .bidder.opener { outline: 2px dashed rgba(255,210,61,.7); }

/* lobby map picker */
.map-row { margin-top: 6px; }
.map-row .mute { font-size: 12px; margin-left: 6px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.map-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 3px 5px; border-radius: 10px; border: 2px solid transparent; background: rgba(255,255,255,.06); cursor: pointer; font: 800 11px Nunito, sans-serif; color: inherit; line-height: 1.15; text-align: center; }
.map-tile img { width: 100%; aspect-ratio: 1; border-radius: 7px; display: block; image-rendering: auto; }
.map-tile.on { border-color: #ffd23d; background: rgba(255,210,61,.16); }
.map-tile:disabled { cursor: default; opacity: .55; } .map-tile.on:disabled { opacity: 1; }
.map-tile:not(:disabled):hover { background: rgba(255,255,255,.14); }

/* ---------- card systems (client/acquire.js): same look as the auction ---------- */
.acq { width: 100%; height: 100%; display: grid; grid-template-columns: 300px 1fr 300px; gap: 16px; padding: 16px; animation: fadeIn .35s ease-out; }
.acq .side { display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.acq .side h2 { font-size: 28px; }
.acq .t0 h2 { color: var(--blue); } .acq .t1 h2 { color: var(--red); }
.acq-stage { justify-content: flex-start; padding-top: 8px; overflow: auto; min-height: 0; }
.acq-status { font-size: 18px; text-align: center; min-height: 26px; }
.acq-status .you-turn { color: var(--gold); font-size: 22px; }
.acq-status .money-big { font-family: 'Lilita One'; font-size: 30px; color: var(--green); vertical-align: middle; }
.acq-timer.hidden { visibility: hidden; }
.acq-main { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.acq-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.acq-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1000px; }
.acq-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 14px; transition: transform .15s, filter .2s; }
.acq-slot.can { cursor: pointer; }
.acq-slot.can:hover { transform: translateY(-6px) scale(1.03); }
.acq-slot.can:hover .card { box-shadow: 0 0 0 3px var(--gold), 0 14px 34px rgba(0,0,0,.5); }
.acq-slot.taken .card, .acq-slot.banned .card, .acq-slot.dim .card { filter: grayscale(.85) brightness(.5); }
.acq-slot.kept .card { box-shadow: 0 0 0 3px var(--green), 0 0 26px rgba(78,224,138,.5); }
.acq-grid.big .card { width: 230px; }
.slot-tag { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 4; background: rgba(10,14,35,.92); border: 2px solid var(--pc, var(--line)); border-radius: 10px; padding: 3px 9px; font-weight: 900; font-size: 13px; white-space: nowrap; pointer-events: none; }
.slot-tag.ban { border-color: #ff6b7a; color: #ff9aa5; } .slot-tag.ok { border-color: var(--green); color: var(--green); }
.buy-btn { font-family: 'Lilita One'; font-weight: 400; font-size: 19px; padding: 6px 18px; }
.acq-odds { font-size: 13px; color: var(--mute); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.rar-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--rc); margin-left: 4px; }
.badge.acq-badge.ok { background: rgba(78,224,138,.25); color: var(--green); }
.badge.acq-badge.hot { background: var(--gold); color: #3a2a00; }
.sys-sel { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.sys-hint { font-size: 12.5px; margin: -2px 0 6px; }
.sys-settings { margin-bottom: 6px; padding-left: 10px; border-left: 2px solid rgba(255,204,51,.35); }
.acq-sub { font-size: 18px; color: var(--mute); }
.chip.tpl { width: 26px; height: 26px; font-size: 12px; font-weight: 900; cursor: default; vertical-align: middle; margin: 0 1px; color: var(--rc); }
/* sealed bid */
.sb-entry { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sb-entry .sb-amt { min-width: 100px; font-size: 46px; }
.sb-quick { display: inline-flex; gap: 4px; }
.sealed-show { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sb-bids { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.sb-bid { display: flex; justify-content: space-between; gap: 18px; padding: 9px 14px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); font-size: 18px; animation: sbFlip .45s cubic-bezier(.2,1.4,.4,1) both; }
.sb-bid b { font-family: 'Lilita One'; font-weight: 400; font-size: 24px; color: var(--gold); }
.sb-bid.win { border-color: var(--gold); box-shadow: 0 0 24px rgba(255,204,51,.45); transform-origin: center; }
@keyframes sbFlip { from { transform: rotateX(90deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-result { display: inline-block; font-family: 'Lilita One'; font-size: 30px; animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
/* countdown */
.dutch-price { font-family: 'Lilita One'; font-size: 72px; color: var(--gold); text-shadow: 0 5px 0 rgba(0,0,0,.4); line-height: 1; animation: bump .3s; }
.dutch-price.low { color: #ff9a6b; }
.grab-btn { font-size: 30px; padding: 14px 54px; }
/* roguelike: picks between rounds, over the arena */
.acq-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(5,8,25,.62); backdrop-filter: blur(3px); animation: fadeIn .3s ease-out; padding: 16px; }
.acq-ov-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1000px, 96vw); max-height: 94vh; overflow: auto; }
.acq-ov-panel .acq-main { display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (max-width: 1000px) { .acq { grid-template-columns: 1fr; height: auto; } .acq-grid.big .card { width: 180px; } }
.sys-settings .setting.opt { grid-column: 1 / -1; }
.acq-grid .card.mini { width: 132px; }
.acq-grid .card.mini .art { height: 74px; }
.acq-grid .card.mini .nm { font-size: 15px; }
.acq-stage > * { flex-shrink: 0; }
.acq-grid.big.row { flex-wrap: nowrap; }
.acq-grid.big.row .acq-slot { flex: 0 1 230px; min-width: 0; }
.acq-grid.big.row .card { width: 100%; }
.acq .big-card-wrap .card { width: 300px; }
.acq .big-card-wrap .card .art { height: 170px; }
.acq .big-card-wrap .card .nm { font-size: 28px; }
.buy-btn small.left { display: inline; font-size: 12px; }
.acq-grid { align-items: flex-start; }

/* ---------- cosmetics: customize panel + lobby portraits ---------- */
.cust { width: min(980px, 100%); max-height: 92vh; display: flex; gap: 18px; padding: 18px; }
.cust-prev { flex: none; width: 340px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.cust-prev canvas { width: 340px; height: 440px; border-radius: 14px; background: radial-gradient(ellipse at 50% 35%, #3c4f86 0%, #1d2550 75%); cursor: grab; touch-action: none; }
.cust-loading { position: absolute; top: 200px; width: 100%; text-align: center; color: var(--mute); }
.cust-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cust-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.cust-slots button.on { background: var(--gold); color: #3a2a00; }
.cust-items { flex: 1; min-height: 160px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; padding-right: 4px; }
.cust-it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: var(--panel2); border: 2px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--text); }
.cust-it img { width: 76px; height: 76px; border-radius: 9px; background: rgba(255,255,255,.05); }
.cust-it.on { border-color: var(--gold); background: rgba(255,204,51,.14); }
.cust-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.cust-sw span { width: 100%; font-size: 13px; color: var(--mute); }
.cust-sw .sw { width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 2px solid rgba(255,255,255,.18); }
.cust-sw .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.cust-sw .sw.def { background: repeating-linear-gradient(45deg, #59607e 0 5px, #2b3152 5px 10px); }
.pchip .av img { width: 34px; height: 34px; border-radius: 9px; display: block; }
@media (max-width: 760px) { .cust { flex-direction: column; overflow-y: auto; } .cust-prev { width: 100%; align-items: center; } }

/* ---------------- Playground (client/playground.js): small dark panels ---------------- */
#hud.pg .score-box .b, #hud.pg .score-box .r, #hud.pg .rnd { display: none; }
#hud.pg.pg-notimer .score-box { display: none; }
.pg-root { position: absolute; inset: 0; pointer-events: none; font: 600 13px Nunito, sans-serif; color: #dfe4ee; }
.pg-mini { position: absolute; left: 12px; top: 64px; max-width: 330px; background: rgba(12,14,20,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 6px 9px; line-height: 1.45; }
.pg-root.open .pg-mini { display: none; }
.pg-mini-top { color: #aab3c5; font-size: 12px; } .pg-mini-top b { color: #fff; margin-right: 6px; }
.pg-key { display: inline-block; padding: 0 5px; margin-right: 4px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; font-size: 11px; color: #fff; }
.pg-mini-m:not(:empty) { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 4px; }
.pg-wrap { position: absolute; inset: 0; pointer-events: none; }
.pg-panel { position: absolute; top: 56px; bottom: 120px; background: rgba(12,14,20,.94); border: 1px solid rgba(255,255,255,.09); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.pg-pick { left: 12px; width: 430px; }
.pg-test { right: 12px; width: 330px; overflow-y: auto; }
.pg-h { display: flex; align-items: center; gap: 8px; } .pg-h b { font-size: 15px; color: #fff; flex: 1; }
.pg-h2 { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 7px; }
.pg-root button { font: 700 12px Nunito, sans-serif; padding: 5px 9px; border-radius: 6px; background: #2a3042; border: 1px solid rgba(255,255,255,.1); box-shadow: none; color: #e8ecf4; }
.pg-root button:hover { background: #343c54; }
.pg-root input, .pg-root select { font: 600 12px Nunito, sans-serif; padding: 5px 7px; border-radius: 6px; background: #1a1e2a; border: 1px solid rgba(255,255,255,.12); color: #e8ecf4; }
.pg-root .pg-x { padding: 2px 8px; font-size: 15px; }
.pg-seg { display: flex; } .pg-seg button { border-radius: 0; } .pg-seg button:first-child { border-radius: 6px 0 0 6px; } .pg-seg button:last-child { border-radius: 0 6px 6px 0; }
.pg-seg button.on { background: #3d6fd6; border-color: #3d6fd6; color: #fff; }
.pg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pg-row select { flex: 1; min-width: 0; }
.pg-end { margin-top: auto; padding-top: 6px; } .pg-end button { width: 100%; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.pg-ck { display: flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; } .pg-ck input { margin: 0; }
.pg-dim { color: #8a93a6; font-size: 12px; } .pg-row .pg-dim { flex: 1; }
.pg-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pg-slot { position: relative; height: 58px; border-radius: 6px; background: #1a1e2a; border: 1px solid rgba(255,255,255,.1); overflow: hidden; cursor: pointer; }
.pg-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.pg-slot .k { position: absolute; left: 3px; top: 1px; z-index: 1; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.pg-slot .n { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-size: 10px; line-height: 1.15; padding: 1px 3px; background: rgba(0,0,0,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-slot .rm { position: absolute; right: 2px; top: 0; z-index: 2; font-size: 14px; color: #fff; text-shadow: 0 1px 2px #000; display: none; padding: 0 3px; }
.pg-slot:hover .rm { display: block; } .pg-slot.sel { outline: 2px solid #ffd34d; }
.pg-slot.r-common { border-color: #a9b4c2; } .pg-slot.r-rare { border-color: #3e9bff; } .pg-slot.r-epic { border-color: #b263ff; } .pg-slot.r-legendary { border-color: #ffb02e; }
.pg-pas { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.pg-chip { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: #232838; border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.pg-chip.r-legendary { border-color: #ffb02e; } .pg-chip.r-epic { border-color: #b263ff; }
.pg-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 4px; } .pg-filters > * { min-width: 0; }
.pg-list { flex: 1; min-height: 80px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 4px; }
.pg-card { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 5px; cursor: pointer; }
.pg-card:hover { background: #222838; }
.pg-card img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; }
.pg-card .n { flex: 1; color: #eef1f7; } .pg-card .t { font-size: 11px; }
.pg-detail { height: 150px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); padding-top: 4px; }
.pg-detail:empty { display: none; }
.pg-detail .card { transform: scale(.62); transform-origin: top left; }
.pg-tot { display: flex; justify-content: space-between; } .pg-tot b { color: #fff; font-size: 14px; }
.pg-tab { width: 100%; border-collapse: collapse; font-size: 12px; }
.pg-tab th { text-align: left; color: #8a93a6; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.pg-tab td:not(:first-child), .pg-tab th:not(:first-child) { text-align: right; }
.pg-log { font-size: 12px; } .pg-ll { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pg-ll b { color: #fff; } .pg-ll.miss { color: #ff8c8c; } .pg-ll.miss b { color: #ffb3b3; }
@media (max-width: 900px) { .pg-pick { width: calc(100% - 24px); bottom: 50%; } .pg-test { top: 52%; width: calc(100% - 24px); bottom: 12px; } }
