/* Game HUD pass, second set of screens (UI agent B, 2026-11-30). Loaded after hud.css and builds on its kit:
   flat frosted glass (--glass-flat, --blur), one margin M (--m) and one gap G (--gap), the Collector's two-column shell
   (.mk: glass block on the left, the trader card on the right at the height of the section tabs). */

/* ======================= UNDERGROUND: THE LAST ROW ======================= */
/* five food cards (picture fills the card, text over its bottom), then the pantry slots and the meds under the counter */
.lr .mk-box { gap: calc(var(--gap) * .7); }
.lr-food { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lr-card { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 16px; background: #0c0d0f; }
.lr-card .lr-art { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.lr-card .lr-art::after { display: none; }
.lr-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 10, .86) 50%, rgba(8, 9, 10, .96)); pointer-events: none; }
.lr-cb { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px 12px; }
.lr-n { font: 600 16px/1.15 var(--fd); letter-spacing: .02em; color: #fff; }
.lr-fx { font-size: 12.5px; color: var(--bone2); } .lr-fx b { font-size: 14px; color: var(--bone); }
.lr-buff { font-size: 12px; line-height: 1.3; color: #ffb27a; }
.lr-cb .btn { align-self: stretch; margin-top: 6px; padding: 7px 8px; font-size: 13px; white-space: nowrap; }
/* pantry and meds: two flat boxes side by side */
.lr-low { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lr-box { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.lr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lr-h b { font: 600 16px/1.1 var(--fd); letter-spacing: .02em; } .lr-h > span { font-size: 13px; color: var(--bone2); }
.lr-empty { margin: 0; font-size: 13px; color: var(--bone2); }
/* the pantry: item slots (picture, count, Eat) */
.lr-pan { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-slot { position: relative; display: grid; gap: 5px; width: 64px; }
.lr-slot .lr-pa { width: 64px; height: 46px; border-radius: 10px; background-size: cover; background-position: center; }
.lr-slot .lr-pa::after { display: none; }
.lr-slot > b { position: absolute; top: 3px; right: 4px; padding: 1px 6px; border-radius: 8px; font-size: 12px; color: #fff; background: rgba(8, 9, 10, .75); }
.lr-slot .btn { padding: 4px 6px; font-size: 12px; }
/* meds: icon, name with one short line, count, the price button */
.lr-meds { display: grid; gap: 6px; }
.lr-pi { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.lr-mi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--bone); background: rgba(255, 255, 255, .07); }
.lr-mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lr-pi > span:nth-child(2) { display: grid; font-size: 14px; line-height: 1.2; } .lr-pi small { font-size: 12px; color: var(--bone2); }
.lr-pi > b { font-size: 13px; color: var(--bone2); }
.lr-pi .btn { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
@media (min-width: 900px) and (max-height: 760px) { .lr-n { font-size: 15px; } .lr-cb { padding: 8px 10px 10px; gap: 2px; } .lr-cb .btn { margin-top: 4px; padding: 6px 8px; } }
/* laptop windows with a bookmarks bar (down to 600 high): the food pictures give up height first, the rest gets tighter */
@media (min-width: 900px) and (max-height: 690px) {
  .lr .mk-box { padding: 16px 20px; gap: 12px; }
  .lr .mk-t h1 { font-size: 28px; }
  .lr-food { gap: 10px; }
  .lr-cb { padding: 6px 10px 8px; gap: 1px; } .lr-n { font-size: 14.5px; } .lr-fx { font-size: 12px; } .lr-fx b { font-size: 13px; } .lr-buff { font-size: 11.5px; }
  .lr-cb .btn { margin-top: 3px; padding: 5px 8px; font-size: 12.5px; }
  .lr-low { gap: 10px; } .lr-box { gap: 6px; padding: 8px 12px 10px; }
  .lr-h b { font-size: 15px; }
  .lr-slot { width: 56px; gap: 4px; } .lr-slot .lr-pa { width: 56px; height: 34px; } .lr-slot .btn { padding: 3px 6px; font-size: 11.5px; }
  .lr-meds { gap: 4px; } .lr-pi { grid-template-columns: 30px minmax(0, 1fr) auto auto; } .lr-mi { width: 30px; height: 30px; }
  .lr-pi > span:nth-child(2) { font-size: 13px; } .lr-pi small { font-size: 11.5px; } .lr-pi .btn { padding: 5px 10px; }
  .lr .mk-who { padding: 12px 16px 16px; } .lr .mk-who q { margin-top: 4px; font-size: 13px; line-height: 1.4; }
}
/* below 1200 the page scrolls (Kessel is a short card above the block, as on the Collector): cards get a fixed height */
@media (max-width: 1199px) {
  .lr-food { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .lr .mk-box { min-height: 0; }
}
/* big screens: bigger type in the cards and boxes */
@media (min-width: 1700px) and (min-height: 900px) {
  .lr-n { font-size: 20px; } .lr-fx, .lr-buff { font-size: 14px; } .lr-fx b { font-size: 16px; } .lr-cb { padding: 14px 16px 16px; gap: 5px; } .lr-cb .btn { font-size: 14.5px; padding: 9px; }
  .lr-h b { font-size: 19px; } .lr-pi > span:nth-child(2) { font-size: 16px; } .lr-pi small { font-size: 13px; }
  .lr-slot, .lr-slot .lr-pa { width: 84px; } .lr-slot .lr-pa { height: 60px; }
}
@media (max-width: 699px) { .lr-food { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; } .lr-low { grid-template-columns: minmax(0, 1fr); } }

/* ======================= UNDERGROUND: SUPPLY DROP ======================= */
/* six tall pack cards (a coin pile that grows with the pack, the tokens, the bonus, the price) and Ingot spending on the right */
.sd .mk-t > span b { color: var(--bone); }
.sd-demo { padding: 6px 12px; border-radius: 10px; font-size: 13px; color: var(--bone2); background: rgba(255, 255, 255, .06); }
.sd .mk-box > .pay-test { flex: none; margin: 0; }
#app #main .sd .sd-packs { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row; gap: 12px; overflow: visible; margin: 0; }
#app #main .sd .sd-pack { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 16px; box-shadow: none; background: rgba(255, 255, 255, .05); }
#app #main .sd .sd-pack.has-bonus { background: rgba(212, 41, 31, .12); }
#app #main .sd .sd-custom { background: rgba(255, 255, 255, .08); }
.sd-pile { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; padding-top: 10px; }
.sd-pile .coin { width: clamp(56px, 62%, 120px); height: auto; aspect-ratio: 10 / 3; border-radius: 50%; background: #b8862a; box-shadow: inset 0 -3px 0 #8a5f14, inset 0 2px 0 #f1d58e; }
.sd-pile .coin + .coin { margin-bottom: calc(clamp(56px, 62%, 120px) * -.2); }
.sd-custom .sd-pile { opacity: .35; }
.sd-custom .sd-b > .small { line-height: 1.3; }
#app #main .sd .sd-b { flex: none; gap: 6px; padding: 12px 12px 14px; }
#app #main .sd .sd-b > b { font: 600 15px/1.15 var(--fd); letter-spacing: .02em; }
#app #main .sd .sd-tk { font: 700 clamp(19px, 1.6vw, 26px)/1.05 var(--fd); white-space: nowrap; }
#app #main .sd .sd-bonus { align-self: flex-start; padding: 3px 9px; font-size: 12.5px; color: #8fe39a; }
#app #main .sd .sd-b .btn { margin-top: 6px; padding: 8px; }
#app #main .sd .sd-custom .sd-b { flex: 1 1 auto; justify-content: flex-end; }
#app #main .sd .sd-in-row { gap: 6px; } #app #main .sd .sd-in { min-width: 0; padding: 6px 8px; font-size: 18px; }
/* Spend Ingots: a glass card in the right column, at the height of the section tabs */
.sd-side { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.7vw, 28px); border-radius: 20px; overflow: auto; scrollbar-width: none;
  background: rgba(12, 12, 14, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (min-width: 1200px) { .sd .sd-side { margin-top: calc(-1 * var(--lift, 0px)); } }
.sd-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sd-sh > b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; }
.sd-sp { flex: 1 1 auto; max-height: 120px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; align-content: center;
  padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.sd-si { grid-row: 1 / 3; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sd-si .aic { width: 20px; height: 20px; }
.sd-st { display: grid; gap: 2px; } .sd-st b { font: 600 15px/1.15 var(--fd); letter-spacing: .02em; } .sd-st > span { font-size: 12.5px; color: var(--bone2); }
.sd-sp .btn { justify-self: start; }
@media (min-width: 900px) and (max-height: 690px) {
  .sd .mk-box { padding: 16px 20px; gap: 12px; } .sd .mk-t h1 { font-size: 28px; }
  .sd-pile .coin { width: clamp(48px, 56%, 80px); } .sd-pile .coin + .coin { margin-bottom: calc(clamp(48px, 56%, 80px) * -.2); }
  #app #main .sd .sd-b { padding: 10px 10px 12px; gap: 4px; }
  .sd-side { gap: 8px; padding: 16px; } .sd-sp { padding: 8px 12px; row-gap: 6px; }
}
@media (max-width: 1199px) {
  .sd-side { order: 2; }
  #app #main .sd .sd-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; }
  .sd-sp { flex: none; }
}
@media (max-width: 599px) { #app #main .sd .sd-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================= BEYOND THE WALL: SWEEPS, BIG GAME, LEVEL ZERO, ODD JOBS ======================= */
/* all four are the Runs screen (css/hud.css .runs): the place as the background, big title, (i), tall cards with the head in */
.bw .rn-st { flex-wrap: wrap; justify-content: flex-end; }
.bw .rn-st .btn.bw-glass { color: var(--bone); background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: none; }
.bw .rn-st .btn.bw-glass:hover { background: var(--glass-hover); }
.bw .rn-title p b .num { margin-left: 4px; color: #fff; }
.bw .rn-title p b.inf-tag { color: #ff8a7a; }
.bw-where { font-size: 12px; color: var(--bone2); }
.bw-tag { padding: 2px 8px; border-radius: 8px; font-size: 11.5px; color: #9fe3a8; background: rgba(120, 220, 140, .14); margin-left: 4px; }
.bw-tag.inf { color: #ff8a7a; background: rgba(255, 74, 58, .16); } .bw-tag.ok { color: #9fe3a8; }
#app #main .bw .rn-row > .enemy .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#app #main .bw .rn-row > .enemy .btn .aic { width: 14px; height: 14px; }
#app #main .bw .rn-row > .enemy.bw-lock > .art { filter: grayscale(1) brightness(.5); }
#app #main .bw .rn-row > .enemy.bw-lock .nm { color: var(--bone2); }
.bw-hp { height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.bw-hp > i { display: block; height: 100%; border-radius: inherit; background: #d4291f; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bw-chips .gchip { padding: 3px 9px 3px 6px; font-size: 12px; background: rgba(255, 255, 255, .1); }
.bw-chips .gchip .aic { color: var(--bone2); width: 14px; height: 14px; }
.bw-chips { flex-wrap: nowrap; align-items: center; } .bw-plus { font-size: 12px; color: var(--bone2); white-space: nowrap; }
.bw-raid .bw-where { display: none; }
.bw-d { font-size: 12.5px; line-height: 1.35; color: var(--bone2); }
.bw-dmg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--bone2); } .bw-dmg .me { color: #fff; }
.bw-btns { display: flex; gap: 6px; } .bw-btns .btn:first-child { flex: 1; }
/* Big Game tabs: the Runs district tabs without a picture */
.bw .rn-tab.bw-tab { padding: 10px 16px; }
.bw .rn-tab.bw-tab .num { margin-left: 4px; color: inherit; opacity: .6; }
/* how many cards share the row */
#app #main .bw-gig .rn-row { --hs-w: minmax(200px, calc((100% - 3 * 14px) / 4)); }
#app #main .bw-pit .rn-row { --hs-w: minmax(180px, calc((100% - 4 * 14px) / 5)); }
#app #main .bw-gig .rn-row > .enemy > .art { background-position: center !important; }
#app #main .bw-gig .rn-row > .enemy.on { box-shadow: inset 0 0 0 2px #d4291f; }
#app #main .bw-gig .rn-row > .enemy::after { inset: 25% 0 0; }
/* a hunt in progress is a wide card: three in a row */
#app #main .bw-hunts .rn-row { --hs-w: minmax(260px, calc((100% - 2 * 14px) / 3)); }
#app #main .bw-hunts .rn-row > .enemy > .art { background-position: center 12% !important; }
.bw-tags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; }
.bw-tags .bw-tag { margin: 0; background: rgba(8, 9, 10, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#app #main .bw .en-rw { white-space: normal; overflow: visible; text-overflow: clip; }
/* tablets and foldables: the cards take the rest of the window instead of a short strip */
@media (max-width: 899px) {
  .bw.runs { height: 100%; min-height: 520px; }
  #app #main .bw .rn-row { flex: 1 1 auto; min-height: 330px; }
  #app #main .bw .rn-row > .enemy { height: 100%; min-height: 330px; }
}
@media (max-width: 1199px) { #app #main .bw-gig .rn-row, #app #main .bw-pit .rn-row { --hs-w: minmax(180px, calc((100% - 2 * 14px) / 3)); } }
@media (max-width: 899px) { #app #main .bw-gig .rn-row, #app #main .bw-pit .rn-row { --hs-w: minmax(170px, 44%); } }

/* ======================= SURVIVOR: JOURNAL ======================= */
/* the chapters as four columns of note slots in the glass block, the radio logs as the right-hand card; a note opens in the drawer */
.jr .mk-t { gap: 6px; }
.jr-prog { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; color: var(--bone2); }
.jr-prog b { color: var(--bone); font-size: 14px; }
.jr-bar { display: block; width: 140px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.jr-bar > i { display: block; height: 100%; background: #d4291f; border-radius: inherit; }
#app #main .jr .jr-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
#app #main .jr .jr-ch { margin: 0; }
#app #main .jr-side .jr-log { margin: 0; }
.jr-ch { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.jr-ch.done { background: rgba(212, 41, 31, .12); }
.jr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.jr-h b { font: 600 17px/1.15 var(--fd); letter-spacing: .02em; } .jr-h > span { font-size: 13px; color: var(--bone2); }
.jr-notes { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; }
#app #main .jr .jr-note { display: flex; align-items: center; gap: 10px; min-height: 0; max-height: none; overflow: hidden; padding: 4px 12px; border: 0; border-radius: 12px; font: inherit; font-size: 13px; line-height: 1.2;
  text-align: left; color: var(--bone); background: rgba(255, 255, 255, .08); box-shadow: none; clip-path: none; cursor: pointer; transition: background-color .2s; }
#app #main .jr button.jr-note:hover { background: rgba(255, 255, 255, .14); }
#app #main .jr .jr-note .aic { width: 18px; height: 18px; color: #ff6a5a; }
#app #main .jr .jr-note.lock { cursor: default; color: rgba(236, 230, 218, .45); background: rgba(255, 255, 255, .03); }
#app #main .jr .jr-note.lock .aic { color: rgba(236, 230, 218, .45); width: 15px; height: 15px; }
/* the chapter reward: chips and the button on one line */
.jr-rw { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.jr-chips .gchip { padding: 3px 8px 3px 6px; font-size: 12px; }
.jr-rw .btn { flex: none; padding: 5px 10px; font-size: 12px; }
.jr-got { font-size: 12px; color: #9fe3a8; }
/* a drawer must cover the top bar too: lift the screen above it while one is open (the screen is its stacking context) */
#app #main:has(.gdrawer.open) { z-index: 80; }
/* the radio logs: one row per district (its picture, the log or how to get it) */
.jr-side { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.7vw, 28px); border-radius: 20px;
  background: rgba(12, 12, 14, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (min-width: 1200px) { .jr .jr-side { margin-top: calc(-1 * var(--lift, 0px)); } }
.jr-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.jr-sh > b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; } .jr-sh > span { font-size: 14px; color: var(--bone2); }
.jr-logs { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; overflow-y: auto; scrollbar-width: none; }
.jr-log { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 5px 10px 5px 5px; border: 0; border-radius: 12px; font: inherit; text-align: left; color: var(--bone);
  background: rgba(255, 255, 255, .07); cursor: pointer; transition: background-color .2s; }
button.jr-log:hover { background: rgba(255, 255, 255, .13); }
.jr-log .jr-la { width: 44px; height: 100%; max-height: 52px; min-height: 30px; flex: none; border-radius: 9px; background-size: cover; background-position: center; }
.jr-log .jr-la::after { display: none; }
.jr-log > span { display: grid; gap: 1px; min-width: 0; } .jr-log b { font: 600 14px/1.15 var(--fd); letter-spacing: .02em; } .jr-log > span > span { font-size: 12px; color: var(--bone2); }
.jr-log.lock { cursor: default; background: rgba(255, 255, 255, .03); } .jr-log.lock .jr-la { filter: grayscale(1) brightness(.45); } .jr-log.lock b { color: var(--bone2); }
.jr-read { display: grid; gap: 10px; } .jr-read > span { font-size: 13px; color: var(--bone2); } .jr-read p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--bone); }
@media (min-width: 900px) and (max-height: 690px) {
  .jr .mk-box { padding: 16px 20px; gap: 12px; } .jr .mk-t h1 { font-size: 28px; }
  .jr-ch { padding: 10px; gap: 6px; } .jr-note { padding: 4px 10px; font-size: 12.5px; } .jr-h b { font-size: 15.5px; }
  .jr-side { padding: 16px; gap: 8px; } .jr-log b { font-size: 13px; }
}
@media (max-width: 1199px) {
  .jr-side { order: 2; }
  .jr-notes { grid-auto-rows: 44px; }
  .jr-logs { grid-auto-rows: 52px; }
}
@media (max-width: 699px) { #app #main .jr .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================= SURVIVOR: WORKSHOP AND SETTINGS ======================= */
/* the Survivor screen's frame (css/hud.css .sv): one glass block on the left, the survivor card on the right */
:is(.wk, .set) > .sv-l > .mk-box { flex: 1 1 auto; min-height: 0; }
/* Workshop: two big slot cards (the gadget and the rig), gear load in the head row, the tuning table behind (i) */
.wk-load { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; font-size: 13px; color: var(--bone2); background: rgba(255, 255, 255, .06); }
.wk-load b { color: var(--bone); font-size: 14px; }
.wk-lb { display: block; width: 110px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.wk-lb > i { display: block; height: 100%; border-radius: inherit; background: var(--bone); }
.wk-load.over .wk-lb > i { background: #d4291f; } .wk-load.over b { color: #ff6a5a; }
.wk-slots { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wk-slot { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.wk-slot .wk-art { min-height: 0; height: 100%; border: 0; border-radius: 12px; background-color: #0c0d0f; background-size: contain; background-repeat: no-repeat; background-position: center; }
.wk-slot .wk-art::after { display: none; }
.wk-sil { display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .04); color: rgba(236, 230, 218, .25); }
.wk-sil svg { width: 46%; height: auto; max-height: 70%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.wk-b { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.wk-k { font-size: 12.5px; color: var(--bone2); }
.wk-n { font: 600 19px/1.15 var(--fd); letter-spacing: .02em; }
.wk-b > p { margin: 0; font-size: 13.5px; color: var(--bone2); }
.wk-lines { line-height: 1.45; }
.wk-pips { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.wk-pips i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); } .wk-pips i.on { background: #d4291f; }
.wk-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .wk-ch { font-size: 12.5px; color: var(--bone2); } .wk-ch b { color: var(--bone); }
.wk-b > .btn { margin-top: auto; align-self: stretch; }
.wk-max { margin-top: auto; font-size: 13px; color: #9fe3a8; }
.wk-fit { display: grid; gap: 6px; }
.wk-fi { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.wk-fi .slot, .wk-fi .item-tile { width: 44px; height: 44px; }
.wk-fi > span { display: grid; min-width: 0; font-size: 13px; } .wk-fi > span > span { font-size: 12px; color: var(--bone2); }
.wk-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.wk-tt { margin: 4px 0; }
/* Settings: four panels in the block; the email and password form is in a drawer, the documents open in the legal window */
#app #main:has(> .set):has(#snd-panel) .site-foot.in-game { display: none; }
.set-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); gap: 14px;
  grid-template-areas: "snd app" "acc app"; }
.set-grid > #snd-panel { grid-area: snd; } .set-grid > #pwa-panel { grid-area: app; } .set-grid > .set-acc { grid-area: acc; } .set-grid > .set-dev { grid-column: 1 / -1; }
.set-p { min-width: 0; min-height: 0; overflow: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.set-p h3 { margin: 0 0 2px; font: 600 18px/1.1 var(--fd); letter-spacing: .02em; }
.set-p p { margin: 0; }
.set-p .snd-row { margin: 0; }
.set-p .set-h { margin: 4px 0 0; }
.set-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.set-p > .btn { align-self: flex-start; }
.set-dl { display: grid; gap: 8px; }
.set-ob { display: inline-flex; align-items: center; gap: 8px; } .set-ob .aic { width: 16px; height: 16px; }
.set-doc { padding: 12px 14px; border: 0; border-radius: 12px; font: inherit; font-size: 14.5px; text-align: left; color: var(--bone); background: rgba(255, 255, 255, .06); cursor: pointer; transition: background-color .2s; }
.set-doc:hover { background: rgba(255, 255, 255, .12); color: #fff; }
#app #main .gdrawer[data-drawer="setacc"] .acc-f { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 900px) and (max-height: 690px) {
  :is(.wk, .set) .mk-box { padding: 16px 20px; gap: 12px; } :is(.wk, .set) .mk-t h1 { font-size: 28px; }
  .wk-slot { padding: 12px; gap: 12px; } .wk-n { font-size: 17px; } .wk-b { gap: 6px; }
  .set-p { padding: 12px 14px; gap: 6px; } .set-p h3 { font-size: 16.5px; }
}
@media (max-width: 1199px) { .wk-slots, .set-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; } .set-grid > .set-p { grid-area: auto; } .wk-slot { min-height: 260px; } }

/* ======================= CREWS: FRIENDS AND WALL OF NAMES ======================= */
/* the right-hand glass card of both, at the height of the section tabs */
:is(.fq-side, .wn-side) { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.7vw, 28px); border-radius: 20px; overflow: auto; scrollbar-width: none;
  background: rgba(12, 12, 14, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (min-width: 1200px) { :is(.fq, .wn) > :is(.fq-side, .wn-side) { margin-top: calc(-1 * var(--lift, 0px)); } }
:is(.fq-sh, .wn-sh) { display: grid; gap: 2px; margin-bottom: 4px; }
:is(.fq-sh, .wn-sh) > b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; } :is(.fq-sh, .wn-sh) > span { font-size: 13px; color: var(--bone2); }
:is(.fq, .wn) .rn-tab.bw-tab { padding: 8px 14px; } :is(.fq, .wn) .rn-tab.bw-tab .num { margin-left: 4px; color: inherit; opacity: .6; }
:is(.fq, .wn) .p2p-who { color: var(--bone); font-weight: 600; text-decoration: none; } :is(.fq, .wn) .p2p-who:hover { color: #fff; }
/* Friends: portrait cards; the add field in the head row */
.fq-add { display: flex; align-items: center; gap: 8px; } .fq-add .p2p-in { width: 200px; height: 40px; margin: 0; }
.fq-tabs { flex: none; display: flex; gap: 8px; }
.fq-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.fq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(150px, calc((100% - 14px) / 2)); gap: 14px; height: 100%; }
.fq-card { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.fq-card .fq-pic { min-height: 0; height: 100%; border: 0; border-radius: 0; background-size: cover; background-position: center 15%; } .fq-card .fq-pic::after { display: none; }
.fq-b { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.fq-b > .p2p-who { font: 600 17px/1.15 var(--fd); letter-spacing: .02em; }
.fq-l { font-size: 12.5px; color: var(--bone2); } .fq-l b { color: var(--bone); }
.fq-st { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bone2); }
.fq-st .fr-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); } .fq-st .fr-dot.on { background: #6fd47c; }
.fq-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; } .fq-btns .aic { width: 14px; height: 14px; }
.fq-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--bone2); }
.fq-empty .aic { width: 44px; height: 44px; opacity: .4; } .fq-empty b { font: 600 20px/1.1 var(--fd); color: var(--bone); }
.fq-sug { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.fq-sr { min-height: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.fq-sr .fq-sp { width: 52px; height: 100%; max-height: 70px; min-height: 40px; border: 0; border-radius: 10px; background-size: cover; background-position: center 15%; } .fq-sr .fq-sp::after { display: none; }
.fq-sn { display: grid; gap: 1px; min-width: 0; font-size: 14.5px; } .fq-sn > span { font-size: 12px; color: var(--bone2); }
/* Wall of Names: the top three as big portrait cards, the rest as rows beside them */
.wn-tabs { display: flex; gap: 8px; margin-left: 12px; }
.wn-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.wn-pod { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.wn-p { position: relative; min-height: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 16px; background: #0c0d0f; }
.wn-p.p2, .wn-p.p3 { height: 88%; }
.wn-p .wn-pi { position: absolute; inset: 0; border: 0; border-radius: 0; background-size: cover; background-position: center 12%; } .wn-p .wn-pi::after { display: none; }
.wn-p::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8, 8, 10, .92)); }
.wn-pb { position: relative; z-index: 1; display: grid; gap: 2px; padding: 12px; }
.wn-n { font: 700 26px/1 var(--fd); color: var(--bone); } .wn-p.p1 .wn-n { color: #e8c46a; }
.wn-pb > .p2p-who { font: 600 16px/1.15 var(--fd); letter-spacing: .02em; overflow-wrap: anywhere; }
.wn-l { font-size: 12px; color: var(--bone2); } .wn-v { font-size: 12.5px; color: var(--bone2); } .wn-v b { color: var(--bone); }
.wn-p.me { box-shadow: inset 0 0 0 2px #d4291f; }
.wn-rows { min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; }
.wn-rows::-webkit-scrollbar, .fq-body::-webkit-scrollbar, :is(.fq-side, .wn-side)::-webkit-scrollbar { display: none; }
.wn-r { flex: none; display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 14px 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.wn-r.me { background: rgba(212, 41, 31, .22); }
.wn-rk { font-size: 13px; color: var(--bone2); text-align: center; }
.wn-r .wn-ra { width: 40px; height: 40px; border: 0; border-radius: 9px; background-size: cover; background-position: center 15%; } .wn-r .wn-ra::after { display: none; }
.wn-rn { display: grid; min-width: 0; font-size: 14px; } .wn-rn > span { font-size: 12px; color: var(--bone2); }
.wn-rv { font-size: 15px; }
.wn-me { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.wn-me > span { font-size: 12.5px; color: var(--bone2); } .wn-me > b { font: 700 30px/1.05 var(--fd); letter-spacing: .02em; } .wn-me b b, .wn-me span b { color: var(--bone); }
.wn-rw { display: grid; gap: 6px; } .wn-rw > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13px; }
.wn-side > .wn-rw { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(30px, 1fr); }
.wn-lad > div.got { color: var(--bone2); } .wn-lad > div.on { background: var(--bone); color: #0b0c0d; } .wn-lad > div.on b { color: inherit; }
.wn-last { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--bone2); } .wn-last b { color: var(--bone); }
.wn-sh > span b { color: var(--bone); }
.wn-bar { display: block; height: 6px; margin: 6px 0 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); } .wn-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--bone); }
:is(.fq, .wn) .rn-tab.bw-tab:not(.on) { background: rgba(255, 255, 255, .06); } :is(.fq, .wn) .rn-tab.bw-tab:not(.on):hover { background: rgba(255, 255, 255, .12); }
@media (min-width: 900px) and (max-height: 690px) {
  :is(.fq, .wn) .mk-box { padding: 16px 20px; gap: 12px; } :is(.fq, .wn) .mk-t h1 { font-size: 28px; }
  :is(.fq-side, .wn-side) { gap: 8px; padding: 16px; } .wn-me { padding: 8px 12px; } .wn-me > b { font-size: 24px; } .wn-rw > div { padding: 4px 10px; }
}
@media (max-width: 1199px) {
  :is(.fq-side, .wn-side) { order: 2; }
  .fq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; height: auto; }
  .wn-body { grid-template-columns: minmax(0, 1fr); } .wn-pod { height: 300px; } .wn-rows { max-height: 480px; } .fq-body { min-height: 280px; }
  .fq-sug { grid-auto-rows: 64px; }
}
@media (max-width: 699px) { .mk-head:has(.fq-add) { flex-wrap: wrap; } .fq-add { width: 100%; } .fq-add .p2p-in { flex: 1; width: auto; } .wn-tabs { margin-left: 0; } }

/* ======================= UNDERGROUND: WORKBENCH ======================= */
/* one glass block (slot switch in the head, the four blueprints as a row, the picked one in focus), salvage on the right */
.wb-slots { display: flex; gap: 8px; margin-left: 12px; }
.wb .rn-tab.bw-tab { padding: 8px 14px; } .wb .rn-tab.bw-tab:not(.on) { background: rgba(255, 255, 255, .06); } .wb .rn-tab.bw-tab:not(.on):hover { background: rgba(255, 255, 255, .12); }
.wb-tiers { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wb-t { position: relative; display: grid; gap: 3px; padding: 10px 14px; border: 0; border-radius: 14px; font: inherit; text-align: left; color: var(--bone); background: rgba(255, 255, 255, .05); cursor: pointer; transition: background-color .2s; }
.wb-t:hover { background: rgba(255, 255, 255, .1); }
.wb-t b { font: 600 16px/1.1 var(--fd); letter-spacing: .02em; }
.wb-t > span { display: flex; align-items: center; font-size: 12.5px; color: var(--bone2); } .wb-t .aic { width: 13px; height: 13px; margin-right: 6px; }
.wb-dot { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--rc); }
.wb-t.on { background: var(--bone); color: #0b0c0d; } .wb-t.on > span { color: rgba(11, 12, 13, .65); }
.wb-t.lock { color: var(--bone2); } .wb-t.lock b { color: rgba(236, 230, 218, .55); }
.wb-ready { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #d4291f; }
.wb-hero { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.wb-res { position: relative; min-height: 0; overflow: hidden; border-radius: 14px; background: #0c0d0f; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, transparent), 0 0 40px -12px var(--rc); }
.wb-res .wb-ra { position: absolute; inset: 0; border: 0; border-radius: 0; background-size: cover; background-position: center; } .wb-res .wb-ra::after { display: none; }
.wb-rk { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 10px; font-size: 12.5px; background: rgba(8, 8, 10, .7); }
.wb-hb { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.wb-hb h2 { margin: 0; font: 700 clamp(24px, 2.2vw, 36px)/1.05 var(--fd); letter-spacing: .03em; }
.wb-hb > p { margin: 0; font-size: 13.5px; color: var(--bone2); }
.wb-odds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; max-width: 320px; }
.wb-odds i { height: 6px; border-radius: 3px; background: var(--rc); } .wb-odds i.no { background: rgba(255, 255, 255, .1); }
.wb-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 2px; }
.wb-mt { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 10px 7px 7px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.wb-mt .wb-ma { grid-row: 1 / 3; width: 40px; height: 40px; border: 0; border-radius: 9px; background-size: cover; background-position: center; } .wb-mt .wb-ma::after { display: none; }
.wb-mn { font-size: 12px; color: var(--bone2); line-height: 1.15; } .wb-mt > b { font-size: 14.5px; }
.wb-mt.no > b { color: #ff6a5a; }
.wb-ic { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--bone); } .wb-ic .aic { width: 55%; height: 55%; } .wb-ic .coin { width: 60%; height: 60%; }
.wb-go { margin-top: auto; align-self: stretch; padding: 13px; font-size: 16px; }
.wb-go:disabled { opacity: 1; color: var(--bone2); background: rgba(255, 255, 255, .08); box-shadow: none; }
.wb-side { min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 1.7vw, 28px); border-radius: 20px; overflow: auto; scrollbar-width: none;
  background: rgba(12, 12, 14, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.wb-side::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .wb > .wb-side { margin-top: calc(-1 * var(--lift, 0px)); } }
.wb-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wb-sh > b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; } .wb-sh > span { font-size: 13px; color: var(--bone2); }
.wb-sh2 { margin-top: 6px; } .wb-sh2 > b { font-size: clamp(18px, 1.5vw, 24px); }
.wb-stock { flex: 1 1 auto; min-height: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.wb-st { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.wb-st .wb-sa { width: 38px; height: 38px; border: 0; border-radius: 9px; background-size: cover; background-position: center; } .wb-st .wb-sa::after { display: none; }
.wb-sn { display: grid; min-width: 0; } .wb-sn b { font: 600 14px/1.15 var(--fd); letter-spacing: .02em; } .wb-sn > span { font-size: 11.5px; color: var(--bone2); }
.wb-st > b { font-size: 15px; }
.wb-made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wb-none { margin: 0; font-size: 12.5px; color: var(--bone2); }
@media (min-width: 900px) and (max-height: 690px) {
  .wb .mk-box { padding: 16px 20px; gap: 12px; } .wb .mk-t h1 { font-size: 28px; }
  .wb-t { padding: 8px 12px; } .wb-hero { padding: 12px; gap: 14px; } .wb-hb { gap: 6px; } .wb-hb h2 { font-size: 24px; }
  .wb-mt { padding: 5px 8px 5px 5px; } .wb-mt .wb-ma { width: 34px; height: 34px; } .wb-mt { grid-template-columns: 34px minmax(0, 1fr); } .wb-go { padding: 10px; }
  .wb-side { gap: 6px; padding: 14px; } .wb-st { padding: 3px 10px 3px 3px; } .wb-st .wb-sa { width: 32px; height: 32px; } .wb-st { grid-template-columns: 32px minmax(0, 1fr) auto; }
}
@media (max-width: 1199px) {
  .wb-side { order: 2; } .wb-hero { min-height: 380px; }
  .wb-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) { .wb-hero { grid-template-columns: minmax(0, 1fr); } .wb-res { min-height: 220px; } .wb-slots { margin-left: 0; } }

/* one-time notes in a head row: neutral glass, not red (red is only for the main action and badges; Vova 2026-11-30) */
:is(.mk-head, .bd-head, .hd-head) > .intro { background: rgba(255, 255, 255, .08); }
:is(.mk-head, .bd-head, .hd-head) > .intro > svg { color: var(--bone2); }

/* ======================= UNDERGROUND: NOTICE WALL ======================= */
/* one glass block: inner tabs and Post a swap in the head, one filter row, a grid of item cards that scrolls inside;
   the right-hand card shows the picked post with one Make an offer */
.nw-tabs { display: flex; gap: 8px; margin-left: 12px; }
.nw .rn-tab.bw-tab { padding: 8px 14px; } .nw .rn-tab.bw-tab .num { margin-left: 4px; color: inherit; opacity: .6; }
.nw .rn-tab.bw-tab:not(.on) { background: rgba(255, 255, 255, .06); } .nw .rn-tab.bw-tab:not(.on):hover { background: rgba(255, 255, 255, .12); }
.nw-pb { display: inline-flex; align-items: center; gap: 8px; } .nw-pb .aic { width: 15px; height: 15px; }
.nw-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.nw-filt { flex: none; display: flex; align-items: center; gap: 10px; }
.nw-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow-x: auto; scrollbar-width: none; }
.nw-seg button { flex: none; padding: 6px 12px; border: 0; border-radius: 9px; font: inherit; font-size: 13px; color: var(--bone2); background: none; cursor: pointer; }
.nw-seg button:hover { color: var(--bone); } .nw-seg button.on { color: #0b0c0d; background: var(--bone); }
.nw-rar select { height: 34px; padding: 0 30px 0 12px; border: 0; border-radius: 12px; font: inherit; font-size: 13px; color: var(--bone); background: rgba(255, 255, 255, .06); cursor: pointer; }
.nw-rar select option { color: #111; }
.nw-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: minmax(150px, calc((100% - 32px) / 2)); gap: 12px;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); padding-bottom: 20px; }
.nw-grid::-webkit-scrollbar, .nw-list::-webkit-scrollbar, .nw-side::-webkit-scrollbar { display: none; }
.nw-card { position: relative; min-height: 0; white-space: normal; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0; border: 0; border-radius: 16px; font: inherit; text-align: left; color: var(--bone); cursor: pointer;
  background: #0c0d0f; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 45%, transparent), inset 0 -40px 60px -30px color-mix(in srgb, var(--rc) 35%, transparent); transition: box-shadow .2s; }
.nw-card:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 70%, transparent), 0 10px 26px rgba(0, 0, 0, .45); }
.nw-card.on { box-shadow: inset 0 0 0 2px var(--bone), 0 10px 26px rgba(0, 0, 0, .45); }
.nw-card .nw-art { position: absolute; inset: 0 0 22%; border: 0; border-radius: 0; background-size: cover; background-position: center; } .nw-card .nw-art::after { display: none; }
.nw-cb { position: relative; display: grid; gap: 2px; padding: 8px 10px 10px; background: linear-gradient(transparent, rgba(8, 8, 10, .85) 30%); }
.nw-n { font: 600 14px/1.15 var(--fd); letter-spacing: .02em; }
.nw-o { font-size: 11.5px; color: var(--bone2); overflow-wrap: anywhere; }
.nw-empty { flex: 1 1 auto; min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--bone2); }
.nw-empty .aic { width: 40px; height: 40px; opacity: .4; } .nw-empty b { font: 600 19px/1.1 var(--fd); color: var(--bone); }
.nw-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; }
.nw-h { margin: 4px 0 0; font: 600 15px/1.1 var(--fd); letter-spacing: .03em; color: var(--bone2); }
.nw-list .p2p-offer { margin: 0; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: none; }
.nw-gift { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.nw-gift .nw-ga { width: 72px; height: 72px; border: 0; border-radius: 12px; background-color: #0c0d0f; background-size: contain; background-repeat: no-repeat; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 50%, transparent); } .nw-gift .nw-ga::after { display: none; }
.nw-gb { min-width: 0; display: grid; gap: 2px; } .nw-gbtn { display: flex; gap: 6px; }
.nw-side { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.7vw, 28px); border-radius: 20px; overflow: auto; scrollbar-width: none;
  background: rgba(12, 12, 14, .55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (min-width: 1200px) { .nw > .nw-side { margin-top: calc(-1 * var(--lift, 0px)); } }
.nw-pic { position: relative; flex: 1 1 auto; min-height: 120px; overflow: hidden; border-radius: 16px; background: #0c0d0f; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, transparent), 0 0 40px -14px var(--rc); }
.nw-pic .nw-pa { position: absolute; inset: 8px; border: 0; background-size: contain; background-repeat: no-repeat; background-position: center; } .nw-pic .nw-pa::after { display: none; }
.nw-sd { flex: none; display: grid; gap: 4px; white-space: normal; overflow-wrap: anywhere; }
.nw-pn { font: 700 21px/1.1 var(--fd); letter-spacing: .02em; } .nw-pm { font-size: 12.5px; color: var(--bone2); }
.nw-lines { line-height: 1.4; }
.nw-kv { display: flex; align-items: baseline; gap: 8px; font-size: 13px; } .nw-kv > span:first-child { flex: none; min-width: 74px; color: var(--bone2); }
.nw-w { overflow-wrap: anywhere; }
.nw-go { flex: none; align-self: stretch; padding: 13px; font-size: 16px; justify-content: center; }
.nw-sent { flex: none; font-size: 13px; color: #9fe3a8; }
.nw-sh { display: grid; gap: 2px; } .nw-sh > b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; } .nw-sh > span { font-size: 13px; color: var(--bone2); }
.nw-mine { flex: none; display: flex; flex-direction: column; gap: 6px; }
.nw-mp { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.nw-mp .nw-ma { width: 44px; height: 44px; border: 0; border-radius: 9px; background-color: #0c0d0f; background-size: contain; background-repeat: no-repeat; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 50%, transparent); } .nw-mp .nw-ma::after { display: none; }
.nw-mb { display: grid; min-width: 0; font-size: 13px; } .nw-mb b { font: 600 13.5px/1.15 var(--fd); } .nw-mb > span { font-size: 11.5px; color: var(--bone2); }
.nw-none { margin: 0; font-size: 13px; color: var(--bone2); }
.nw-form { display: grid; gap: 10px; } .nw-form p { margin: 0; } .nw-form .btn { justify-self: start; }
@media (min-width: 900px) and (max-height: 690px) {
  .nw .mk-box { padding: 16px 20px; gap: 12px; } .nw .mk-t h1 { font-size: 28px; }
  .nw-side { gap: 8px; padding: 16px; } .nw-pn { font-size: 18px; } .nw-go { padding: 10px; }
}
@media (max-width: 1199px) {
  .nw-side { order: 2; } .nw-pic { min-height: 260px; }
  .nw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; max-height: 620px; }
  .nw-list { max-height: 640px; }
}
@media (max-width: 699px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-tabs { margin-left: 0; } .mk-head:has(.nw-tabs) { flex-wrap: wrap; } }
.gdrawer .p2p-form { margin: 0; padding: 0; background: none; box-shadow: none; min-width: 0; }
.gdrawer .p2p-form .p2p-step { white-space: normal; overflow-wrap: anywhere; }
.gdrawer .p2p-crrow { flex-wrap: wrap; } .gdrawer .p2p-num { flex: 1 1 90px; min-width: 0; width: auto; } .gdrawer .p2p-wide { width: 100%; box-sizing: border-box; }
.gdrawer .p2p-seg button { padding: 7px 12px; border-radius: 9px; }
.gdrawer .p2p-form { grid-template-columns: minmax(0, 1fr); white-space: normal; } .gdrawer .p2p-form > * { min-width: 0; max-width: 100%; }
.gdrawer .p2p-form .row { flex-wrap: wrap; } .gdrawer .p2p-form .small { overflow-wrap: anywhere; }
.gdrawer .p2p-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.gdrawer .p2p-seg button { border: 0; box-shadow: none; font: inherit; font-size: 13px; color: var(--bone2); background: none; cursor: pointer; }
.gdrawer .p2p-seg button.on { color: #0b0c0d; background: var(--bone); }
.nw-how { margin-top: 4px; white-space: normal; display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
.nw-hr { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 1.35; color: var(--bone2); }
.nw-hr .aic { width: 18px; height: 18px; color: var(--bone); opacity: .7; }
/* the whole title row stays inside the panel: tabs and Post a swap give way before (i) is pushed out */
.nw .mk-head { min-width: 0; gap: 10px; } .nw .mk-t { flex: 0 1 auto; min-width: 0; } .nw-tabs { flex: 0 1 auto; min-width: 0; gap: 6px; margin-left: 4px; }
.nw .mk-head > .ghelp, .nw-pb { flex: none; }
@media (max-width: 1440px) { .nw .rn-tab.bw-tab { padding: 7px 11px; } .nw-pb { padding-left: 12px; padding-right: 12px; } .nw .mk-t > span { font-size: 12px; } }
.nw-side:has(.nw-how) { align-self: start; }

/* ======================= CREWS: PLAYER PROFILE ======================= */
/* kit and gadgets on the left, badges and their Notice Wall items on the right; portrait, stats and the two actions
   in the lifted right-hand card (same frame as the Notice Wall) */
.pf-msg .mk-box { min-height: 300px; }
.pf-tag { padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--bone2); background: rgba(255, 255, 255, .06); }
.pf-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.55fr); gap: 16px; }
.pf-kit, .pf-right { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-right { overflow: hidden; }
.pf-sub { flex: none; display: flex; align-items: baseline; gap: 8px; } .pf-sub b { font: 600 15px/1.1 var(--fd); letter-spacing: .03em; } .pf-sub span { font-size: 12.5px; color: var(--bone2); }
.pf-parts { flex: none; display: grid; gap: 4px; }
.pf-part { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.pf-pi { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); } .pf-pi svg { width: 14px; height: 14px; }
.pf-pn { min-width: 0; display: grid; white-space: normal; } .pf-pn > span { font-size: 11px; color: var(--bone2); } .pf-pn b { font: 600 13px/1.15 var(--fd); }
.pf-gad { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pf-g { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 12px; background: rgba(255, 255, 255, .05); white-space: normal; }
.pf-g .pf-ga { width: 44px; height: 44px; border: 0; border-radius: 9px; background-color: #0c0d0f; background-size: cover; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 50%, transparent); } .pf-g .pf-ga::after { display: none; }
.pf-g > span:last-child { min-width: 0; display: grid; } .pf-g b { font: 600 12.5px/1.15 var(--fd); } .pf-g > span:last-child > span { font-size: 11px; color: var(--bone2); }
.pf-gi { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .05); } .pf-gi .aic { width: 18px; height: 18px; opacity: .45; }
.pf-badges { flex: none; display: flex; flex-wrap: wrap; gap: 6px; max-height: 76px; overflow-y: auto; scrollbar-width: none; }
.pf-badges::-webkit-scrollbar { display: none; }
.pf-badges .ach-badge { margin: 0; border: 0; background: rgba(255, 255, 255, .06); }
.pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-none { min-height: 120px; }
.pf-side { gap: 12px; }
.pf-pic { position: relative; flex: 1 1 auto; min-height: 110px; overflow: hidden; border-radius: 16px; background: #0c0d0f; }
.pf-pic .pf-pa { position: absolute; inset: 0; border: 0; border-radius: 0; background-size: cover; background-position: center 18%; } .pf-pic .pf-pa::after { display: none; }
.pf-kv { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; white-space: normal; }
.pf-kv > span { color: var(--bone2); } .pf-kv > b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.pf-acts { flex: none; display: grid; gap: 8px; }
.pf-me { flex: none; margin: 0; font-size: 13px; color: var(--bone2); white-space: normal; }
.pf .nw-card[disabled] { opacity: .55; cursor: default; }
@media (min-width: 900px) and (max-height: 690px) {
  .pf .mk-box { padding: 16px 20px; gap: 12px; } .pf .mk-t h1 { font-size: 28px; }
  .pf-part { padding-top: 3px; padding-bottom: 3px; } .pf-side { gap: 8px; padding: 16px; } .pf-kv { font-size: 12.5px; gap: 2px 10px; }
  .pf-side .nw-go { padding: 9px; font-size: 15px; }
}
@media (max-width: 1199px) { .pf-side { order: 2; } .pf-pic { min-height: 300px; } .pf-grid { max-height: 420px; } }
@media (max-width: 699px) { .pf-body { grid-template-columns: 1fr; } .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pf > .pf-side { margin-top: calc(-1 * var(--lift, 0px)); } }
.pf-badges .ach-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 10px; font-size: 12.5px; line-height: 1.1; color: var(--bone); box-shadow: none; }
.pf-badges .ach-ic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; background: rgba(255, 255, 255, .08); }
.pf-pi svg { width: 16px; height: 16px; color: var(--bone); }
.pf-grid { grid-auto-rows: minmax(120px, calc(100% - 20px)); } .pf-pi .aic { width: 16px; height: 16px; opacity: .8; }
