/* Game HUD pass (Vova 2026-11-30): "a game, not a website". Loaded after layout.css.
   Flat frosted glass (no bevels, no gradients on controls), strips that drag like carousels, one frame and one gap
   scale for every screen, and the screens composed over the whole window (Camp first). */

/* ---------- strips (js/hs-nav.js): no scrollbar anywhere, the mouse drags them ---------- */
/* the Yard's district strip is hidden from the first paint too: its Windows scrollbar showed for a few frames, then went,
   and the sortie banner above grew by 15 px - Vova's "the red block twitches" (2026-11-30) */
.hs-on, .yd-dist { scrollbar-width: none; -ms-overflow-style: none; }
.hs-on::-webkit-scrollbar, .yd-dist::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .hs-on.hs-r, .hs-on.hs-l { cursor: grab; } }
.hs-on.hs-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hs-on.hs-drag > * { pointer-events: none; }
#app #main { scrollbar-width: thin; scrollbar-color: rgba(236, 230, 218, .16) transparent; }

/* section icons: the one with news turns red */
.tabs-main .tab:has(.dot) .ti { color: #ff4a3a; }

/* ---------- one frame for every screen (Vova 2026-11-30): the top bar, the section tabs, the sub-tabs and the content
   share the same left and right edge; the bottom margin equals the side margin; one gap scale between blocks ---------- */
:root { --m: var(--gut, 16px); --edge: var(--m); --gap: clamp(16px, 1.6vw, 30px);
  --glass-flat: rgba(14, 15, 17, .58); --glass-hover: rgba(30, 32, 35, .66); --blur: blur(16px) saturate(1.1); }
@media (min-width: 900px) {
  :root { --m: clamp(19px, calc(2.6vw - 5px), 43px); --edge: var(--m); --step: var(--gap); }
  #app > #top { padding-left: var(--edge); padding-right: var(--edge); }
  #app > #nav, html #app > #nav { padding: var(--m) var(--edge) 0; }
  #app > #nav .tabs-main { max-width: none; margin: 0; gap: clamp(24px, 2.4vw, 40px); }
  #app > #nav .tabs-main .tab { padding: 0; }
  #app > #nav .tabs-main .tab.on, #app > #nav .tabs-main .tab.on:hover { box-shadow: none; font-weight: 600; }
  #app > #nav .tabs-main .tab .dot { top: -3px; right: -9px; }
  #app > #subnav { padding: calc(var(--step) - 2px) var(--edge) 0; max-width: none; }
  #app > #subnav .subtabs { padding: 0; }
  #app > #main { padding: var(--step) var(--edge) var(--m); }
}

/* ======================= CAMP / THE YARD ======================= */
/* left: the big sortie button, six game buttons, the districts; right: the survivor with his name plate */
#app #main:has(> .yard) { overflow: hidden; }
@media (max-width: 899px) { #app #main:has(> .yard) { padding-left: var(--edge); padding-right: var(--edge); } }
#app:has(.yard) { --me-w: clamp(260px, calc((100dvh - 200px) * .74), 620px); }
/* wide enough: two columns with the same top and bottom edges - the survivor card rises to the section tabs row
   (--lift is measured by the camp view), the tabs and sub-tabs keep to the left column */
@media (min-width: 1200px) {
  #app:has(.yard) { --me-w: clamp(300px, calc((100dvh - 58px - 2 * var(--m)) * .7), 640px); }
  #app #main:has(> .yard) { overflow: visible; position: relative; z-index: 2; }
  #app:has(.yard) > #subnav, #app:has(.yard) > #nav { padding-right: calc(var(--edge) + var(--me-w) + var(--gap)); }
  .yard .yd-me { margin-top: calc(-1 * var(--lift, 0px)); }
}
.yard { position: relative; height: 100%; margin: 0; display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr) var(--me-w); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "acts me" "dist me"; }
.yard > .camp-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.yard > :not(.camp-fx, .hs-arr, .gdrawer, .gscrim) { position: relative; z-index: 1; }
@keyframes hud-pulse { 50% { opacity: .45; } }

/* the actions: one big illustrated sortie button, the rest as game buttons in a row */
.yd-acts { grid-area: acts; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.yd-acts > .hd-banner, .yd-warn { flex: none; margin: 0; }
.yd-warn { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border-radius: 12px; color: #fff; text-decoration: none !important;
  background: rgba(150, 24, 16, .55); box-shadow: 0 0 22px rgba(255, 74, 58, .25); font-weight: 600; }
.yd-warn .aic { width: 20px; height: 20px; }
/* hunger: a chip over the sortie card's top-right corner, not a row of its own - the row pushed the tiles onto the
   districts at 1265x600 and moved the banner whenever hunger came or went (2026-11-30) */
.yd-acts { position: relative; }
.yd-acts > .yd-warn { position: absolute; z-index: 3; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: rgba(150, 24, 16, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.yd-acts > .yd-warn .aic { width: 16px; height: 16px; }
.yd-go { position: relative; flex: 1 1 auto; min-height: 120px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 20px;
  color: #fff; text-decoration: none !important; background: #0c0d0f; isolation: isolate; transition: background-color .2s; }
.yd-go:hover { color: #fff; } .yd-go:hover .yd-go-t .aic { background: rgba(255, 255, 255, .26); }
.yd-go .yd-go-bg { position: absolute; inset: 0; z-index: -2; filter: saturate(.7) brightness(.62); }
.yd-go::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(150, 18, 10, .94) 0%, rgba(120, 14, 8, .78) 34%, rgba(60, 8, 5, .2) 62%, rgba(10, 8, 8, 0) 74%); }
/* the enemy waiting there: on the right, head always in (anchored to the top of the picture) */
.yd-go .yd-foe { position: absolute; right: 3%; top: 4%; height: 150%; width: auto; aspect-ratio: 3 / 4; z-index: -1; background-size: cover; background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(180deg, #000 50%, transparent 66%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(180deg, #000 50%, transparent 66%); mask-composite: intersect; }
.yd-go .yd-foe::after, .yd-go .yd-go-bg::after { display: none; }
.yd-go-t { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: clamp(18px, 2.2vw, 32px); max-width: 68%; }
.yd-go-t .aic { grid-row: span 2; width: 52px; height: 52px; padding: 13px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .16); transition: background-color .2s; }
.yd-go-t b { font: 700 clamp(26px, 2.6vw, 44px)/1 var(--fd); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.yd-go-t > span { color: rgba(236, 230, 218, .82); font-size: 15px; margin-top: 6px; }
.yd-go.rest::before { background: linear-gradient(90deg, rgba(14, 15, 17, .92) 0%, rgba(14, 15, 17, .7) 38%, rgba(10, 8, 8, 0) 72%); }

/* six game buttons in two rows of three: a flat icon square, the title, one status line */
.yd-tiles { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--gap) * .7); }
.yd-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  font: inherit; text-decoration: none !important; color: var(--bone); background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .2s; }

.yd-tile:hover { background: var(--glass-hover); color: #fff; }
.yd-ti { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; color: var(--bone); background: rgba(255, 255, 255, .07); }
.yd-ti .aic { width: 22px; height: 22px; }
.yd-ti .badge { position: absolute; top: -6px; right: -8px; }
.yd-tile b { font: 600 15.5px/1.15 var(--fd); letter-spacing: .02em; max-width: 100%; }
.yd-tile > span:last-child { font-size: 12.5px; line-height: 1.3; color: var(--bone2); max-width: 100%; overflow-wrap: anywhere; }
.yd-tile.new .yd-ti { color: #ff6a5a; background: rgba(212, 41, 31, .2); }
.yd-tile.busy .yd-ti { background: rgba(255, 255, 255, .16); }
.yd-jbtn.glow::after { content: ''; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #ff4a3a; animation: hud-pulse 1.8s ease-in-out infinite; }

/* the survivor: one card like the other blocks - his picture on its own backdrop, the name plate inside at the bottom */
.yd-me { grid-area: me; position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 20px; background: #0c0d0f; }
.yd-me .yd-fig { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.yd-me .yd-fig::after { display: none; }
.yd-me::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 10, .85) 60%, rgba(8, 9, 10, .96)); pointer-events: none; }
.yd-plate { position: relative; z-index: 2; display: grid; gap: 4px; padding: 16px 20px 18px; text-align: center; color: var(--bone); text-decoration: none !important; }
.yd-plate:hover { color: #fff; }
.yd-nm { font: 700 clamp(24px, 2.2vw, 36px)/1 var(--fd); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.yd-cl { font-size: 13.5px; color: var(--bone2); }
.yd-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; text-align: left; }
/* both bars on one line always: rows start at the top, and the "Full in ..." line under HP has the same reserved row under
   Stamina too, so nothing moves when the countdown comes or goes (Vova 2026-11-30) */
.yd-bars > span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto 15px; justify-content: space-between; align-content: start; align-items: baseline; row-gap: 5px; font-size: 12px; color: var(--bone2); }
.yd-bars > span > i { font-style: normal; }
.yd-bars b { font-size: 15px; color: var(--bone); }
.yd-crew { position: relative; z-index: 2; align-self: center; display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 7px 14px; border-radius: 12px;
  font-size: 13.5px; color: var(--bone); text-decoration: none !important; background: rgba(255, 255, 255, .08); transition: background-color .2s; }
.yd-crew:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.yd-crew .aic { width: 15px; height: 15px; }
.yd-crew.in { background: none; padding-top: 2px; padding-bottom: 2px; color: var(--bone2); }
.yd-bars .meter { grid-column: 1 / -1; grid-row: 2; height: 6px; background: rgba(255, 255, 255, .12); }

/* districts: a strip under the actions (a column on the right on wide screens) */
.yd-dist { grid-area: dist; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, calc((100% - 3 * var(--gap)) / 4)); gap: var(--gap);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.yd-dist > li { position: relative; scroll-snap-align: start; height: clamp(116px, 21.5dvh, 215px); border-radius: 20px; overflow: hidden; background: #0c0d0f; }
.yd-dist .cr-art { position: absolute; inset: 0; filter: saturate(.7) brightness(.85); transition: filter .3s; }
.yd-dist .cr-art::after { display: none; }
.yd-dist > li::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6, 7, 8, .95) 0%, rgba(6, 7, 8, .55) 50%, rgba(6, 7, 8, .05) 100%); pointer-events: none; }
.yd-d-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 12px 14px; color: #fff; text-decoration: none !important; }
.yd-d-in b { font: 600 17px/1.1 var(--fd); letter-spacing: .03em; text-shadow: 0 2px 8px #000; }
.yd-d-in .small { font-size: 12.5px; color: var(--bone2); white-space: nowrap; }
.yd-dist > li:hover .cr-art { filter: saturate(.85) brightness(1); }
.yd-dist > li.here { }
.yd-dist > li.here::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 2px #d4291f; pointer-events: none; }
.yd-dist > li.lock .cr-art { filter: grayscale(1) brightness(.4); }
.yd-dist > li.lock { cursor: pointer; }
.yd-dist > li.lock > .aic { position: absolute; top: 10px; right: 10px; z-index: 2; width: 18px; height: 18px; color: var(--bone2); }

.yd-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: clamp(10px, 1.6dvh, 18px) 16px; }
.yd-tile .yd-ti { grid-row: 1 / 3; margin: 0; }
/* wide screens: three parts - actions | survivor | the districts as a column */
@media (min-width: 1500px) {
  #app:has(.yard) { --dist-w: clamp(260px, 17vw, 340px); }
  #app:has(.yard) > #subnav, #app:has(.yard) > #nav { padding-right: calc(var(--edge) + var(--me-w) + var(--dist-w) + 2 * var(--gap)); }
  .yard { grid-template-columns: minmax(0, 1fr) var(--me-w) var(--dist-w); grid-template-rows: minmax(0, 1fr); grid-template-areas: "acts me dist"; }
  .yard .yd-dist { margin-top: calc(-1 * var(--lift, 0px)); }
  .yd-dist { grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; gap: 10px; }
  .yd-dist > li { height: auto; min-height: 64px; }
}
/* short desktop windows */
@media (min-width: 900px) and (max-height: 760px) {
  .yd-go { min-height: 120px; }
  .yd-ti { width: 38px; height: 38px; } .yd-tile { grid-template-columns: 38px minmax(0, 1fr); }
  .yd-dist > li { height: clamp(108px, 20.5dvh, 150px); }
  .yd-plate { padding: 10px 14px 12px; } .yd-bars { margin-top: 4px; }
}

/* tablets and foldables (below 900): survivor beside the actions, districts under both */
@media (max-width: 899px) {
  #app #main:has(> .yard) { overflow-y: auto; padding-bottom: 96px; }
  .yard { height: auto; min-height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-rows: auto auto; grid-template-areas: "acts me" "dist dist"; }
  .yd-me { min-height: 420px; }
  .yd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yd-go { min-height: 170px; }
  .yd-dist { grid-auto-columns: minmax(200px, 42%); }
  .yd-dist > li { height: clamp(150px, 20dvh, 210px); }
  .yd-plate { padding: 10px 12px 12px; } .yd-bars { gap: 10px; }
}
/* phones: survivor first with his plate, then the actions */
@media (max-width: 599px) {
  .yard { grid-template-columns: minmax(0, 1fr); grid-template-areas: "me" "acts" "dist"; gap: 14px; }
  .yd-me { min-height: 300px; }
  .yd-go { min-height: 128px; } .yd-go-t { max-width: 78%; padding: 16px; } .yd-go-t .aic { display: none; }
  .yd-tile { padding: 10px 12px; } .yd-tile b { font-size: 14px; }
  .yd-dist { grid-auto-columns: minmax(180px, 70%); }
}

/* ======================= shared game-UI kit (js/hud.js) ======================= */
/* line icons drawn by G.ICON.svg(name, 'aic'): stroked, never filled */
svg.aic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* a game panel: flat frosted glass */
.gp { position: relative; border-radius: 18px; padding: 16px 18px; color: var(--bone); background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* section header inside a screen: a clear title, no kicker */
.gh { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 clamp(18px, 1.5vw, 22px)/1.1 var(--fd); letter-spacing: .03em; color: var(--bone); }
.gh .aic { width: 20px; height: 20px; color: var(--red2); }
.gh .sp { flex: 1; }
/* item slot: a flat square */
.gslot { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--bone2); }
/* reward chips */
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; color: var(--bone); white-space: nowrap; }
.gchip .coin { width: 16px; height: 16px; } .gchip .aic { width: 15px; height: 15px; color: #ffcf6a; }
.gchip.xp { padding-left: 10px; color: #cfe0ff; } .gchip.xp b { color: #fff; }
.gchip.sx { color: #ffcf6a; }
/* (i) help button */
.ghelp { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--bone); background: rgba(255, 255, 255, .08); flex: none; }
.ghelp:hover { background: rgba(255, 255, 255, .14); }
.ghelp .hw-i { font: italic 700 15px/1 Georgia, serif; }
.gd-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--bone); }
.gd-row .aic { width: 22px; height: 22px; color: var(--red2); margin-top: 1px; }

/* the drawer: slides in from the right over the screen */
.gscrim { position: fixed; inset: 0; z-index: 70; background: rgba(4, 5, 6, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.gscrim.open { opacity: 1; pointer-events: auto; }
.gdrawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: rgba(14, 15, 17, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: -20px 0 50px rgba(0, 0, 0, .45);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s .32s; visibility: hidden; }
.gdrawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.gd-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.gd-h b { font: 600 24px var(--fd); letter-spacing: .03em; }
.gd-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--bone); background: rgba(255, 255, 255, .08); font-size: 16px; }
.gd-x:hover { background: rgba(255, 255, 255, .14); }
.gd-b { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px 24px; display: grid; align-content: start; gap: 14px; scrollbar-width: thin; }
.gd-b .side-card { background: rgba(255, 255, 255, .045); box-shadow: none; }
.gd-b .side-card.warm { background: rgba(212, 41, 31, .16); }
.gd-b .side-card.glow { box-shadow: inset 0 0 0 1px rgba(255, 74, 58, .55); }
.gd-b .log-ln { font-size: 13.5px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .gdrawer, .gscrim { transition: none; } .yd-jbtn.glow::after { animation: none; } }

/* camp at laptop widths: the sub-tabs stay in the left column, so they are a little more compact */
@media (min-width: 1200px) and (max-width: 1499px) {
  #app:has(.yard) > #subnav .subtabs { gap: 5px; }
  #app:has(.yard) > #subnav .sub { padding-left: 12px; padding-right: 12px; font-size: 13.5px; }
}

/* ======================= BEYOND THE WALL / RUNS ======================= */
/* the chosen district is the whole page: crisp on top, dark at the bottom where the cards sit; it fades when you switch */
body:has(#main > .runs)::before { filter: none; transition: background-image .6s ease;
  background: linear-gradient(180deg, rgba(6, 7, 8, .55) 0%, rgba(6, 7, 8, .12) 20%, rgba(6, 7, 8, .1) 42%, rgba(6, 7, 8, .72) 70%, rgba(6, 7, 8, .94) 100%),
    var(--scene, none) center 35% / cover no-repeat, #060708; }
@media (max-width: 699px) { body:has(#main > .runs)::before { background-image: linear-gradient(180deg, rgba(6, 7, 8, .5) 0%, rgba(6, 7, 8, .15) 22%, rgba(6, 7, 8, .8) 60%, rgba(6, 7, 8, .95) 100%), var(--scene-m, var(--scene, none)); } }
@media (min-width: 900px) { #app #main:has(> .runs) { overflow: hidden; } }
.runs { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.rn-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); }
.rn-title { min-width: 0; }
.rn-title h1 { margin: 0; font: 700 clamp(34px, 4.2vw, 72px)/.95 var(--fd); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .65); }
.rn-title p { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; line-height: 1.4; color: rgba(236, 230, 218, .9); text-shadow: 0 2px 12px #000; }
.rn-title p b { padding: 4px 10px; border-radius: 8px; font: 600 14px var(--fb); color: #fff; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); text-shadow: none; }
.rn-st { flex: none; display: flex; align-items: center; gap: 10px; }
.rn-cd { padding: 8px 14px; border-radius: 12px; font-size: 14px; color: var(--bone); background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.rn-st .ghelp { width: 40px; height: 40px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
/* district tabs: a picture, the name, a lock with the level */
.rn-tabs { flex: none; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 0; }
.rn-tab { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; text-align: left;
  color: var(--bone); background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .2s; }
.rn-tab:hover { background: var(--glass-hover); }
.rn-tab-art { width: 42px; height: 42px; flex: none; border-radius: 10px; }
.rn-tab-art::after { display: none; }
.rn-tab-t { display: grid; gap: 1px; }
.rn-tab-t b { font: 600 15px/1.15 var(--fd); letter-spacing: .02em; white-space: nowrap; }
.rn-tab-t > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--bone2); white-space: nowrap; }
.rn-tab-t .aic { width: 13px; height: 13px; }
.rn-tab.on { background: var(--bone); color: #0b0c0d; }
.rn-tab.on .rn-tab-t > span { color: rgba(11, 12, 13, .6); }
.rn-tab.lock { color: var(--bone2); }
.rn-tab.lock .rn-tab-art { filter: grayscale(1) brightness(.45); }
.rn-first { flex: none; align-self: flex-start; margin: 0; padding: 8px 14px; border-radius: 12px; font-size: 14px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.runs > .hint-bar { flex: none; margin: 0; }
/* the enemies: tall cards filling the rest of the screen, head always in */
#app #main .runs .rn-row { flex: 1 1 auto; min-height: 0; --hs-w: minmax(180px, calc((100% - 5 * 14px) / 6)); gap: 14px; padding: 0; align-items: stretch; }
#app #main .runs .rn-row > .enemy { position: relative; height: 100%; max-height: none; justify-content: flex-end; border-radius: 18px; box-shadow: none; background: #0c0d0f; }
#app #main .runs .rn-row > .enemy > .art { position: absolute; inset: 0; min-height: 0; aspect-ratio: auto; background-size: cover !important; background-position: center 6% !important; }
#app #main .runs .rn-row > .enemy::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 10, .86) 55%, rgba(8, 9, 10, .96)); pointer-events: none; }
#app #main .runs .rn-row > .enemy .body { position: relative; z-index: 1; flex: none; padding: 12px 14px 14px; gap: 6px; background: none; }
#app #main .runs .rn-row > .enemy .nm { font: 600 17px/1.15 var(--fd); }
@media (max-width: 1199px) { #app #main .runs .rn-row { --hs-w: minmax(170px, calc((100% - 3 * 14px) / 4)); } }
@media (max-width: 899px) {
  .runs { height: auto; }
  #app #main .runs .rn-row { --hs-w: minmax(170px, 44%); flex: none; }
  #app #main .runs .rn-row > .enemy { height: auto; min-height: 300px; }
  .rn-head { flex-wrap: wrap; }
}
@media (min-width: 900px) and (max-height: 760px) { .rn-title h1 { font-size: clamp(30px, 3.4vw, 48px); } .rn-title p { margin-top: 6px; } }
/* short laptop screens: a tighter head so the enemy cards keep their faces above the text */
@media (min-width: 900px) and (max-height: 760px) {
  .rn-tab { padding-top: 4px; padding-bottom: 4px; } .rn-tab-art { width: 36px; height: 36px; }
  #app #main .runs .rn-row > .enemy .body { padding: 10px 12px 12px; gap: 4px; }
  #app #main .runs .rn-row > .enemy .nm { font-size: 15.5px; }
}

/* ======================= SURVIVOR ======================= */
/* the same survivor card as on Camp on the right (rises to the section tabs row); his gear, infection, attributes on the left */
#app #main:has(> .sv) { overflow: hidden; }
#app:has(.sv) { --me-w: clamp(260px, calc((100dvh - 200px) * .74), 620px); }
@media (min-width: 1200px) {
  #app:has(.sv) { --me-w: clamp(300px, calc((100dvh - 58px - 2 * var(--m)) * .7), 640px); }
  #app #main:has(> .sv) { overflow: visible; position: relative; z-index: 2; }
  #app:has(.sv) > #subnav, #app:has(.sv) > #nav { padding-right: calc(var(--edge) + var(--me-w) + var(--gap)); }
  .sv .yd-me { margin-top: calc(-1 * var(--lift, 0px)); }
}
.sv { position: relative; height: 100%; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) var(--me-w); grid-template-rows: minmax(0, 1fr); grid-template-areas: "l me"; }
.sv > .yd-me { grid-area: me; }
.sv-l { grid-area: l; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.sv-bar { flex: none; display: flex; align-items: center; gap: 10px; }
#app #main .sv-bar .op-tabs { margin: 0; padding: 0; min-width: 0; }
.sv-bar > .sv-ob + .sv-ob { margin-left: 0; }
.sv-ob { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.sv-ob .aic { width: 16px; height: 16px; }
.sv-ob.glow::after { content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff4a3a; animation: hud-pulse 1.8s ease-in-out infinite; }
.sv-body { flex: 1 1 auto; min-height: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) clamp(250px, 29%, 300px); }
.sv-on-stats .sv-body, .sv-on-bag .sv-body { grid-template-columns: minmax(0, 1fr); }
/* the worn kit: its name and totals, then six parts by body (head, body, weapon / elbows, knees, boots) */
.sv-gear { min-height: 0; display: flex; flex-direction: column; gap: calc(var(--gap) * .7); }
.sv-kit { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.sv-kn { display: grid; gap: 1px; } .sv-kn > span { font-size: 12px; color: var(--bone2); } .sv-kn b { font: 600 19px/1.1 var(--fd); letter-spacing: .02em; }
.sv-ks { display: grid; gap: 1px; } .sv-ks > span { font-size: 12px; color: var(--bone2); } .sv-ks b { font-size: 17px; color: var(--bone); }
.sv-kit .sp { flex: 1; }
.sv-parts { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: calc(var(--gap) * .7); }
.sv-part { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 0; overflow: hidden; padding: 10px 16px; border-radius: 16px; color: var(--bone); text-decoration: none !important;
  background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .2s; }
.sv-part:hover { background: var(--glass-hover); color: #fff; }
.sv-pi { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sv-pi .aic { width: 24px; height: 24px; }
.sv-pt { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; } .sv-pt b { font: 600 15.5px/1.15 var(--fd); letter-spacing: .02em; }
.sv-pr { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--bone2); } .sv-pr b { color: var(--bone); font-size: 13px; }


/* infection and the med pouch */
.sv-inf { min-height: 0; display: flex; flex-direction: column; gap: calc(var(--gap) * .7); }
.sv-inf .inf-card { flex: 1 1 auto; min-height: 0; margin: 0; overflow: hidden auto; border: 0; border-radius: 16px; box-shadow: none; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); scrollbar-width: none; }
.sv-inf .inf-card::-webkit-scrollbar { display: none; }
.sv-inf .inf-empty { display: none; }
.sv-inf .inf-links { flex-wrap: wrap; gap: 8px; }
.sv-heal { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--glass-flat); }
/* attributes and the combat profile */
.sv-stats { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.sv-stats .gp, .sv-bag { min-height: 0; max-height: 100%; overflow: auto; scrollbar-width: none; }
.sv-stats .stat-row { border: 0; }
.sv-bag .op-items { margin-top: 12px; }
/* tablets and foldables: the page scrolls, the card beside the left part */
@media (max-width: 1199px) {
  .sv-body { grid-template-columns: minmax(0, 1fr); }
  .sv-parts { grid-template-rows: none; grid-auto-rows: auto; }
  .sv-part { min-height: 76px; }
}
@media (max-width: 899px) {
  #app #main:has(> .sv) { overflow-y: auto; padding-bottom: 96px; }
  .sv { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-rows: auto; align-items: start; }
  .sv > .yd-me { min-height: 420px; position: sticky; top: 0; }
  .sv-stats { grid-template-columns: minmax(0, 1fr); }
  .sv-stats .gp, .sv-bag { max-height: none; overflow: visible; }
}
@media (max-width: 599px) {
  .sv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "me" "l"; }
  .sv > .yd-me { min-height: 300px; position: relative; }
}
.yd-me > .yd-plate { padding-bottom: 12px; }

/* ======================= UNDERGROUND: THE COLLECTOR ======================= */
/* one glass block on the left (title, tabs, goods), the trader on the right at the height of the section tabs */
#app #main:has(> .mk) { overflow: hidden; }
#app:has(.mk) { --me-w: clamp(240px, 24vw, 420px); }
@media (min-width: 1200px) {
  #app:has(.mk) { --me-w: clamp(280px, calc((100dvh - 58px - 2 * var(--m)) * .58), 460px); }
  #app #main:has(> .mk) { overflow: visible; position: relative; z-index: 2; }
  #app:has(.mk) > #subnav, #app:has(.mk) > #nav { padding-right: calc(var(--edge) + var(--me-w) + var(--gap)); }
  .mk .mk-trader { margin-top: calc(-1 * var(--lift, 0px)); }
}
.mk { position: relative; height: 100%; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) var(--me-w); grid-template-rows: minmax(0, 1fr); }
.mk-box { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: calc(var(--gap) * .8); padding: clamp(16px, 1.7vw, 28px); border-radius: 22px;
  background: rgba(12, 12, 14, .55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.mk-head { flex: none; display: flex; align-items: center; gap: 12px; }
.mk-t { display: grid; gap: 2px; }
.mk-t h1 { margin: 0; font: 700 clamp(28px, 2.6vw, 44px)/1 var(--fd); letter-spacing: .03em; }
.mk-t > span { font-size: 13px; color: var(--bone2); }
.mk-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mk-act:empty { display: none; }
.mk-box > .p2p-tabs { flex: none; margin: 0; padding: 0; }
.mk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.mk-body::-webkit-scrollbar { display: none; }
/* the kits fill the block: five cards in a row, picture on top, the buy button always in */
.mk-on-kits .mk-body { overflow: hidden; display: flex; flex-direction: column; }
.mk .mk-body > .kt-strip { flex: 1 1 auto; min-height: 0; grid-auto-columns: minmax(150px, calc((100% - 4 * 12px) / 5)); padding: 0; margin: 0; }
.mk .kt-card { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; box-shadow: none; background: rgba(255, 255, 255, .05); }
.mk .kt-card.on { box-shadow: inset 0 0 0 2px #d4291f; }
.mk .kt-art { aspect-ratio: auto; min-height: 0; background-position: center 12%; }
.mk .kt-b { margin-top: -28px; gap: 6px; padding: 8px 12px 12px; }
.mk .kt-d, .mk .mk-body > .kt-foot { display: none; }
.mk .kt-op { font-size: 11px; }
/* the trader: his picture fills the card, name, trade and today's line at the bottom */
.mk-trader { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 20px; background: #0c0d0f; }
.mk-trader .mk-face { position: absolute; inset: 0; background-size: cover; background-position: center 15%; }
.mk-trader .mk-face::after { display: none; }
.mk-trader::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 10, .88) 55%, rgba(8, 9, 10, .97)); pointer-events: none; }
.mk-who { position: relative; z-index: 2; display: grid; gap: 4px; padding: 16px 20px 20px; }
.mk-who b { font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--fd); letter-spacing: .03em; text-transform: uppercase; }
.mk-who > span { font-size: 13px; color: var(--bone2); }
.mk-who q { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: rgba(236, 230, 218, .92); font-style: italic; }
/* below 1200: the trader is a short card above the block */
@media (max-width: 1199px) {
  #app #main:has(> .mk) { overflow-y: auto; }
  .mk { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .mk-trader { order: -1; min-height: 150px; flex-direction: row; align-items: flex-end; }
  .mk-trader .mk-face { inset: 0 auto 0 0; width: 150px; }
  .mk-trader::after { inset: 0; background: linear-gradient(90deg, transparent 90px, rgba(8, 9, 10, .9) 160px); }
  .mk-who { margin-left: 150px; }
  .mk .mk-body > .kt-strip { grid-auto-columns: minmax(190px, 30%); }
  .mk .kt-art { aspect-ratio: 4 / 5; }
  .mk-on-kits .mk-body { overflow: visible; }
}
@media (max-width: 599px) { .mk .mk-body > .kt-strip { grid-auto-columns: minmax(180px, 64%); } .mk-trader .mk-face { width: 110px; } .mk-who { margin-left: 110px; } }
/* kit cards: one compact text block so the picture keeps most of the height */
.mk .kt-sts { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.mk .kt-st { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; }
.mk .kt-st b { font-size: 14px; }
.mk .kt-act { flex-wrap: nowrap; gap: 6px; }
.mk .kt-act .btn { padding: 7px 8px; font-size: 12.5px; min-width: 0; }
.mk .kt-act .tag { white-space: nowrap; }
@media (min-width: 900px) and (max-height: 760px) { .mk .kt-op { display: none; } }
.mk-box { position: relative; }
/* Traders / Players tabs: the goods row fits the block; the cross-link panel is the tabs themselves */
.mk-on-store .mk-body, .mk-on-players .mk-body { display: flex; flex-direction: column; gap: 12px; }
.mk-on-store .mk-body > p { margin: 0; }
.mk .p2p-hint { display: none; }
.mk .mk-body > .p2p-bar { margin: 0; }
/* the legal pages in the "RU · €" menu */
#loc-menu .loc-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
#loc-menu .loc-docs a { padding: 7px 9px; border-radius: 8px; font: 13px var(--fb); color: inherit; text-decoration: none; background: var(--card2); }
#loc-menu .loc-docs a:hover { filter: brightness(1.15); }

/* ======================= SALTGATE: BUILDINGS, HORDE NIGHT ======================= */

/* Buildings: the head row, then all six cards (3 x 2; one row on very wide screens) filling the height */
#app #main:has(> .bd) { overflow: hidden; }
.bd { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.bd-head, .hd-head { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.bd-t, .hd-t { display: grid; gap: 4px; min-width: 0; }
.bd-t h1, .hd-t h1 { margin: 0; font: 700 clamp(28px, 2.6vw, 44px)/1 var(--fd); letter-spacing: .03em; }
.bd-t > span, .hd-t > span { font-size: 14px; color: var(--bone2); }
.bd-head .cp-tabs { margin: 0; }
.bd-grid { flex: 1 1 auto; min-height: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
@media (min-width: 1700px) { .bd-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bd .bld { min-height: 0; gap: 10px; padding: clamp(14px, 1.6vw, 22px); border: 0; border-radius: 18px; box-shadow: none; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.bd .bld.on { background: var(--glass-flat); }
.bd .bld-h { align-items: center; gap: 14px; }
.bd .bld-ic { width: clamp(44px, 4dvh, 60px); height: clamp(44px, 4dvh, 60px); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.bd .bld-ic svg { width: 26px; height: 26px; }
.bd .bld.on .bld-ic { background: rgba(212, 41, 31, .18); }
.bd .bld-n { display: grid; gap: 2px; }
.bd .bld-n b { font: 700 clamp(17px, 1.4vw, 22px)/1.1 var(--fd); }
.bd .bld-pips i { width: 28px; height: 5px; }
.bd .bld-fx { gap: 4px; font-size: 14px; }
.bd .bld-now { color: var(--bone); }
.bd .bld-f { margin-top: auto; }
/* the infirmary: its meds as cards in a row */
.bd-on-inf .inf-shop { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; }
.bd-on-inf .inf-item { border: 0; border-radius: 18px; box-shadow: none; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
@media (max-width: 1199px) { .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  #app #main:has(> .bd) { overflow-y: auto; padding-bottom: 96px; }
  .bd { height: auto; } .bd-grid { grid-auto-rows: auto; }
}
@media (max-width: 599px) { .bd-grid { grid-template-columns: minmax(0, 1fr); } }

/* Horde Night: progress on the left, the night's card in the survivor-card column on the right */
#app #main:has(> .hd) { overflow: hidden; }
#app:has(.hd) { --me-w: clamp(240px, 26vw, 420px); }
@media (min-width: 1200px) {
  #app:has(.hd) { --me-w: clamp(280px, calc((100dvh - 58px - 2 * var(--m)) * .58), 460px); }
  #app #main:has(> .hd) { overflow: visible; position: relative; z-index: 2; }
  #app:has(.hd) > #subnav, #app:has(.hd) > #nav { padding-right: calc(var(--edge) + var(--me-w) + var(--gap)); }
  .hd > .hd-when { margin-top: calc(-1 * var(--lift, 0px)); }
}
.hd { position: relative; height: 100%; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) var(--me-w); grid-template-rows: minmax(0, 1fr); }
.hd-l { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.hd-box { display: flex; flex-direction: column; gap: clamp(12px, 2dvh, 22px); padding: clamp(16px, 1.8vw, 28px); border-radius: 20px;
  background: rgba(12, 12, 14, .55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.hd-l > .hd-box:first-child { flex: 1 1 auto; min-height: 0; }
.hd .hd-num { margin: 0; } .hd .hd-num b { font-size: clamp(48px, 5vw, 88px); } .hd .hd-num span { font-size: 16px; }
.hd .hd-track { height: 10px; border-radius: 5px; } .hd .hd-track > i { border-radius: 5px; } .hd .hd-mark { top: -5px; height: 20px; }
.hd .hd-tiers { gap: 12px; } .hd .hd-tiers div { padding: 14px 16px; border-radius: 14px; font-size: 13.5px; }
.hd .hd-tiers b { font-size: 15px; }
.hd-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--bone2); }
.hd .hd-me { display: inline-flex; align-items: center; gap: 8px; } .hd .hd-me svg { width: 18px; height: 18px; }
.hd-crews { flex: none; gap: 6px; } .hd-ch { font: 600 16px var(--fd); }
.hd-when { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 20px; background: #0c0d0f; }
.hd-when .hd-art { position: absolute; inset: 0; background-size: cover; background-position: center 15%; }
.hd-when .hd-art::after { display: none; }
.hd-when::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 10, .88) 55%, rgba(8, 9, 10, .97)); pointer-events: none; }
.hd-w { position: relative; z-index: 2; display: grid; justify-items: start; gap: 4px; padding: 18px 20px 22px; color: var(--bone2); font-size: 14px; }
.hd-w > b { font: 700 clamp(36px, 3.4vw, 56px)/1 var(--fd); color: #fff; }
.hd-w .hd-on { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.hd-w .btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
.hd-w .btn svg { width: 18px; height: 18px; }
@media (max-width: 1199px) {
  #app #main:has(> .hd) { overflow-y: auto; padding-bottom: 96px; }
  .hd { height: auto; grid-template-columns: minmax(0, 1fr); }
  .hd-when { order: -1; min-height: 200px; }
}

/* ---------- a first-time hint (G.CAMP.intro) in a screen's head row: a compact note in the free space between the title
   and the (i), never over the content; gone after Got it, the (i) keeps the rules (Vova 2026-11-30) ---------- */
:is(.mk-head, .bd-head, .hd-head) > .intro { flex: 0 1 460px; min-width: 260px; margin: 0; padding: 8px 10px 8px 12px; align-items: center; gap: 10px; border: 0; border-radius: 14px;
  background: rgba(150, 24, 16, .32); box-shadow: none; }
:is(.mk-head, .bd-head, .hd-head) > .intro > svg { width: 16px; height: 16px; margin: 0; }
:is(.mk-head, .bd-head, .hd-head) > .intro b { font-size: 13px; margin: 0 0 1px; }
:is(.mk-head, .bd-head, .hd-head) > .intro span { font-size: 12px; line-height: 1.35; }
:is(.mk-head, .bd-head, .hd-head) > .intro > .btn { flex: none; padding: 5px 10px; font-size: 12px; }
:is(.mk-head, .bd-head, .hd-head) > .intro + .sp { display: none; }
/* kit cards: the same text block on all five - name, Armour/Damage, buttons - so heights and name lines match */
.mk .kt-card { grid-template-rows: minmax(0, 1fr) 104px; }
.mk .kt-b { grid-template-rows: auto auto 1fr; align-content: stretch; overflow: hidden; }
.mk .kt-b > .kt-op { display: none; }
.mk .kt-n b { white-space: nowrap; }
.mk .kt-act { align-self: end; }
.mk .kt-act .btn { white-space: nowrap; }
.mk .kt-sts { flex-wrap: nowrap; gap: 10px; }
.mk .kt-st { font-size: 11.5px; white-space: nowrap; }
.mk .kt-act .btn { white-space: normal; line-height: 1.15; font-size: 12px; }
@media (min-width: 900px) and (max-height: 760px) {
  .bd .bld { padding: 12px 16px; gap: 6px; }
  .bd .bld-ic { width: 40px; height: 40px; }
  .bd .bld-fx { font-size: 13px; gap: 2px; }
}
/* Horde Night: a real bar - the track, the fill, three round stops on it, each stop's reward right under it */
#app #main .hd .hd-track { height: 14px; margin: 10px 11px 0; border-radius: 7px; background: rgba(255, 255, 255, .12); overflow: visible; }
#app #main .hd .hd-track > i { border-radius: 7px; background: linear-gradient(90deg, #8f160d, #ff4a3a); }
#app #main .hd .hd-mark { top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #17181b; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .3); }
#app #main .hd .hd-mark.on { background: #ff4a3a; box-shadow: 0 0 14px rgba(255, 74, 58, .6); }
#app #main .hd .hd-tiers { position: relative; display: block; min-height: 64px; margin: 0 11px; }
#app #main .hd .hd-tiers > div { position: absolute; top: 0; left: var(--at); transform: translateX(-50%); width: max-content; max-width: 32%; display: grid; justify-items: center; gap: 3px; padding: 0; background: none; text-align: center; }
#app #main .hd .hd-tiers > div:last-child { transform: translateX(-100%); justify-items: end; text-align: right; }
#app #main .hd .hd-tiers > div > span { color: var(--bone2); }
#app #main .hd .hd-tiers > div.on b { color: #ff6a5a; }
/* kit cards (Vova 2026-11-30): the worn kit's frame around the whole card, the name below the picture with normal
   padding (name + level, then Armour · Damage, then the buttons right under them) */
.mk .kt-card { position: relative; grid-template-rows: minmax(0, 1fr) 112px; }
.mk .kt-card.on { box-shadow: none; }
.mk .kt-card.on::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 2px #d4291f; pointer-events: none; }
.mk .kt-art::after { display: none; }
.mk .kt-b { margin-top: 0; padding: 10px 12px 12px; grid-template-rows: auto auto auto; align-content: start; gap: 6px; }
.mk .kt-act { align-self: start; margin-top: 2px; }
/* head rows keep one line on desktop: the title block gives way, the note sits beside it */
@media (min-width: 1000px) {
  :is(.mk-head, .bd-head, .hd-head) { flex-wrap: nowrap; }
  :is(.mk-t, .bd-t, .hd-t) { flex: 1 1 260px; }
  :is(.mk-head, .bd-head, .hd-head) > .intro { flex: 0 1 420px; min-width: 240px; }
}
/* very short laptop windows (bookmarks bar + taskbar, ~600 px high): smaller heads, the secondary lines go */
@media (min-width: 900px) and (max-height: 660px) {
  .rn-title h1 { font-size: clamp(26px, 2.8vw, 38px); }
  .rn-title p { margin-top: 4px; }
  .runs > .rn-first { display: none; }
  .rn-tab-art { width: 32px; height: 32px; }
  #app #main .runs .rn-row > .enemy .en-rw { display: none; }
  .bd .bld-per { display: none; }
  .bd .bld { gap: 4px; padding: 10px 14px; }
  :is(.bd-t, .hd-t, .mk-t) h1 { font-size: clamp(24px, 2.2vw, 34px); }
}
@media (min-width: 900px) and (max-height: 660px) {
  .bd-grid { gap: 12px; }
  .bd .bld-pips i { height: 4px; }
  :is(.mk-head, .bd-head, .hd-head) > .intro { padding-top: 6px; padding-bottom: 6px; }
  :is(.mk-head, .bd-head, .hd-head) > .intro span { font-size: 11.5px; line-height: 1.3; }
}
@media (min-width: 900px) and (max-height: 660px) { .bd .bld-ic { width: 34px; height: 34px; border-radius: 10px; } .bd .bld-ic svg { width: 20px; height: 20px; } }

/* ======================= SALTGATE: CHORES ======================= */
/* the 7-day reward as a full-width track, the five jobs as a board of big cards under it */
#app #main:has(> .ch) { overflow: hidden; }
.ch { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.ch-head { flex: none; display: flex; align-items: center; gap: 12px 16px; }
.ch-t { display: grid; gap: 4px; min-width: 0; }
.ch-t h1 { margin: 0; font: 700 clamp(28px, 2.6vw, 44px)/1 var(--fd); letter-spacing: .03em; }
.ch-t > span { font-size: 14px; color: var(--bone2); }
.ch-daily { flex: none; display: grid; grid-template-columns: clamp(170px, 16vw, 240px) minmax(0, 1fr); gap: var(--gap); align-items: stretch; padding: clamp(14px, 1.5vw, 22px); border-radius: 20px;
  background: rgba(12, 12, 14, .55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.ch-dh { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.ch-dh b { font: 600 19px/1.1 var(--fd); } .ch-dh > span { font-size: 13px; color: var(--bone2); }
.ch-dh .btn { margin-top: 6px; }
.ch-daily.can .ch-dh .btn { box-shadow: 0 0 22px rgba(255, 74, 58, .45); }
.ch-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ch-day { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.ch-dn { font: 600 13px var(--fd); color: var(--bone2); }
.ch-dr { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-day.got { opacity: .55; }
.ch-day.now { background: rgba(212, 41, 31, .22); box-shadow: inset 0 0 0 2px #d4291f; }
.ch-day.now .ch-dn { color: #fff; }
.ch-day.big { background: rgba(255, 196, 80, .08); }
.ch-ok { position: absolute; top: 8px; right: 8px; color: #7bd88f; } .ch-ok .aic { width: 16px; height: 16px; }
.ch-board { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.ch-job { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 1.5vw, 22px); border-radius: 20px;
  background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.ch-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.ch-ic .aic { width: 24px; height: 24px; }
.ch-jt { font: 600 clamp(16px, 1.25vw, 20px)/1.2 var(--fd); letter-spacing: .01em; }
.ch-pr { display: grid; gap: 6px; margin-top: auto; font-size: 13px; color: var(--bone2); }
.ch-bar { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ch-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8f160d, #ff4a3a); }
.ch-rw { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-job .btn { width: 100%; }
.ch-job.ready { background: rgba(60, 14, 10, .62); box-shadow: inset 0 0 0 2px rgba(255, 74, 58, .7); }
.ch-job.ready .ch-ic { color: #ff6a5a; background: rgba(212, 41, 31, .2); }
.ch-job.ready .btn { box-shadow: 0 0 24px rgba(255, 74, 58, .55); }
.ch-job.got { opacity: .6; }
@media (min-width: 900px) and (max-height: 660px) {
  .ch-day { padding: 8px 10px; } .ch-ic { width: 40px; height: 40px; } .ch-job { gap: 8px; }
}
@media (max-width: 1199px) { .ch-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  #app #main:has(> .ch) { overflow-y: auto; padding-bottom: 96px; }
  .ch { height: auto; } .ch-daily { grid-template-columns: minmax(0, 1fr); }
  .ch-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ch-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) { .ch-board { grid-template-columns: minmax(0, 1fr); } .ch-head { flex-wrap: wrap; } }
/* chores: compact day tiles (chips small, side by side) and job cards with the icon beside the title */
.ch-day { gap: 6px; padding: 8px 10px; }
.ch-dr .gchip { padding: 3px 7px 3px 5px; gap: 4px; font-size: 12px; } .ch-dr .gchip .coin { width: 13px; height: 13px; }
.ch-job { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; column-gap: 12px; row-gap: 10px; align-items: start; }
.ch-ic { flex: none; grid-row: 1; }
.ch-jt { grid-column: 2; align-self: center; }
.ch-pr, .ch-rw, .ch-job .btn { grid-column: 1 / -1; }
.ch-pr { margin-top: 0; align-self: end; }
.ch-rw .gchip { padding: 4px 8px 4px 6px; font-size: 12.5px; }
@media (min-width: 900px) and (max-height: 760px) { .ch-dh { gap: 4px; } .ch-dh b { font-size: 17px; } .ch-job { row-gap: 8px; padding: 14px; } }
@media (min-width: 900px) and (max-height: 660px) { .ch-daily:not(.can) .ch-dh > span { display: none; } .ch-daily { padding: 12px 16px; } .ch-day { padding: 6px 8px; gap: 4px; } }

/* ======================= SALTGATE: RADIO TOWER (MAIL) ======================= */
/* the list on the left, the open message on the right as a big transcript card */
#app #main:has(> .rt) { overflow: hidden; }
.rt { height: 100%; min-height: 0; display: grid; gap: var(--gap); grid-template-columns: clamp(320px, 36%, 520px) minmax(0, 1fr); }
.rt-list { min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 1.5vw, 22px); border-radius: 20px;
  background: rgba(12, 12, 14, .55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.rt-head { flex: none; display: flex; align-items: center; gap: 12px; }
.rt-t { display: grid; gap: 4px; min-width: 0; }
.rt-t h1 { margin: 0; font: 700 clamp(26px, 2.4vw, 40px)/1 var(--fd); letter-spacing: .03em; }
.rt-t > span { font-size: 13px; color: var(--bone2); }
.rt-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 6px; scrollbar-width: none; }
.rt-rows::-webkit-scrollbar { display: none; }
.rt-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px;
  font: inherit; text-align: left; color: var(--bone2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: background-color .2s; }
.rt-row:hover { background: rgba(255, 255, 255, .09); }
.rt-row.on { background: rgba(255, 255, 255, .14); color: var(--bone); }
.rt-row.unread { color: var(--bone); }
.rt-row.unread::before { content: ''; position: absolute; left: 5px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 10px rgba(255, 74, 58, .8); }
.rt-row .mic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.rt-row .mic svg { width: 20px; height: 20px; }
.rt-rt { display: grid; gap: 2px; min-width: 0; }
.rt-rt b { font: 600 14.5px/1.25 var(--fb); color: inherit; }
.rt-row.unread .rt-rt b { color: #fff; }
.rt-rt > span { font-size: 12px; color: var(--bone2); } .rt-rt em { font-style: normal; color: #ff6a5a; }
.rt-rw { font-size: 11.5px; color: var(--bone2); white-space: nowrap; align-self: start; }
.rt-msg, .rt-empty { min-height: 0; display: flex; flex-direction: column; gap: clamp(12px, 2dvh, 22px); padding: clamp(20px, 2.4vw, 40px); border-radius: 20px;
  background: rgba(12, 12, 14, .62); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); overflow-y: auto; scrollbar-width: none; }
.rt-msg::-webkit-scrollbar { display: none; }
.rt-empty { align-items: center; justify-content: center; color: var(--bone2); } .rt-empty .aic { width: 40px; height: 40px; }
.rt-from { display: flex; align-items: center; gap: 12px; color: var(--bone2); }
.rt-from .mic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.rt-from .mic svg { width: 24px; height: 24px; }
.rt-from b { font: 600 17px var(--fd); color: var(--bone); }
.rt-when { font-size: 13px; }
.rt-msg h2 { margin: 0; font: 700 clamp(24px, 2.3vw, 38px)/1.1 var(--fd); letter-spacing: .02em; }
.rt-body p { margin: 0 0 12px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(236, 230, 218, .92); max-width: 70ch; }
.rt-note { color: var(--bone2) !important; font-size: 14.5px !important; } .rt-done { color: #7bd88f !important; }
.rt-act { margin-top: auto; display: flex; gap: 10px; } .rt-act:empty { display: none; }
@media (max-width: 899px) {
  #app #main:has(> .rt) { overflow-y: auto; padding-bottom: 96px; }
  .rt { height: auto; grid-template-columns: minmax(0, 1fr); } .rt-msg { order: -1; } .rt-rows { max-height: none; overflow: visible; }
}

/* fight in progress: a compact pill in the header next to HP, a pulsing red dot; never in the page flow (Vova 2026-11-30) */
#subnav .fightnow { display: none; }
#top .pill.fightnow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px 0 12px; border-radius: 999px; text-align: left; letter-spacing: 0;
  background: rgba(212, 41, 31, .22); box-shadow: inset 0 0 0 1px rgba(255, 74, 58, .55); color: #fff !important; font: 600 13px/1 var(--fb); white-space: nowrap; transition: background-color .2s, box-shadow .2s; }
#top .pill.fightnow:hover { background: rgba(212, 41, 31, .38); box-shadow: inset 0 0 0 1px rgba(255, 74, 58, .8), 0 6px 18px rgba(212, 41, 31, .35); }
.fn-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff4a3a; animation: fn-pulse 1.4s ease-out infinite; }
@keyframes fn-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 74, 58, .75); } 100% { box-shadow: 0 0 0 9px rgba(255, 74, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .fn-dot { animation: none; } }

/* survivor card: three equal quick actions at the bottom (Patch up, Antidote, Crew), G above them, M-ish inset (Vova 2026-11-30) */
.yd-me > .yd-plate { padding-bottom: 0; }
.yd-qa { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: var(--gap) 14px 14px; }
.ya { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 58px; padding: 8px 6px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .09); color: var(--bone) !important; font: 600 12px/1.15 var(--fb); text-align: center; text-decoration: none !important; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.ya .aic { width: 18px; height: 18px; flex: none; }
.ya > span { overflow-wrap: anywhere; }
.ya:hover:not(:disabled) { background: rgba(255, 255, 255, .17); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); color: #fff !important; }
.ya:disabled { opacity: .45; cursor: default; }
.ya.hot { background: rgba(212, 41, 31, .3); box-shadow: inset 0 0 0 1px rgba(255, 74, 58, .6); }
.ya.hot:hover { background: rgba(212, 41, 31, .45); }
.ya.in { color: var(--bone2) !important; }
@media (min-width: 900px) and (max-height: 700px) { .yd-qa { margin-top: 12px; } .ya { min-height: 50px; padding: 6px 4px; gap: 3px; } }
/* chat: the header icon everywhere, the floating bubble never covers a card corner */
@media (min-width: 1320px) { #top .top-chat { display: inline-flex; } }
#chat-fab, .chat-fab { display: none !important; }
/* camp at ~600 px high: smaller sortie banner, tiles and district cards so the rows keep the G gap */
@media (min-width: 900px) and (max-height: 660px) { .yd-go { min-height: 100px; } .yd-go-t { padding: 16px 22px; } .yd-go-t .aic { width: 44px; height: 44px; padding: 11px; } .yd-tile { padding-top: 8px; padding-bottom: 8px; } .yd-dist > li { height: 100px; } }
/* radio tower: the sender's portrait fills the right part of the open letter, the text stays left */
.rt-msg.has-face { position: relative; isolation: isolate; padding-right: calc(38% + 12px); }
.rt-msg .rt-face { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: -1; background-size: cover; background-position: center top; border-radius: 0 20px 20px 0; }
.rt-msg .rt-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 16, 1) 0%, rgba(14, 14, 16, .55) 30%, rgba(14, 14, 16, 0) 60%); }
.rt-msg.has-face .rt-from .mic { display: none; }
@media (max-width: 899px) { .rt-msg.has-face { padding-right: clamp(20px, 2.4vw, 40px); padding-top: 220px; } .rt-msg .rt-face { width: 100%; bottom: auto; height: 240px; border-radius: 20px 20px 0 0; }
  .rt-msg .rt-face::after { background: linear-gradient(180deg, rgba(14, 14, 16, 0) 40%, rgba(14, 14, 16, 1)); } }
#app #main .rt-msg .rt-face::after { display: block; z-index: 1; }

/* ======================= SALTGATE: SCARS ======================= */
/* a trophy wall: nine badge cards 3x3, the medal takes the colour of the tier reached */
#app #main:has(> .sc) { overflow: hidden; }
.sc { --bz: #c98a55; --sv: #cfd3da; --gd: #f2c14e; --pt: #8fe0dc;
  height: 100%; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.sc-head { flex: none; display: flex; align-items: center; gap: 12px 16px; }
.sc-t { display: grid; gap: 4px; min-width: 0; }
.sc-t h1 { margin: 0; font: 700 clamp(28px, 2.6vw, 44px)/1 var(--fd); letter-spacing: .03em; }
.sc-t > span { font-size: 14px; color: var(--bone2); }
.sc-total { display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 16px; border-radius: 999px; background: rgba(12, 12, 14, .55); color: var(--bone2); font-size: 14px; }
.sc-total b { font: 700 22px/1 var(--fd); color: #fff; } .sc-total > span { margin-left: 4px; }
.sc-wait { padding: 8px 14px; border-radius: 999px; background: rgba(212, 41, 31, .25); color: #fff; font: 600 13px var(--fb); }
.sc-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: calc(var(--gap) * .7); }
.sc-card { min-width: 0; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 8px; align-items: center;
  padding: clamp(12px, 1.6dvh, 20px) clamp(14px, 1.3vw, 20px); border-radius: 18px; background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); overflow: hidden; }
.sc-medal { grid-row: 1 / 3; display: grid; place-items: center; width: clamp(54px, 9dvh, 76px); aspect-ratio: 1; border-radius: 50%; color: rgba(236, 230, 218, .45);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08); }
.sc-medal .aic { width: 45%; height: 45%; }
.sc-card.t1 .sc-medal { color: var(--bz); box-shadow: inset 0 0 0 3px var(--bz), 0 0 22px rgba(201, 138, 85, .25); background: radial-gradient(circle at 35% 30%, rgba(201, 138, 85, .3), rgba(201, 138, 85, .06)); }
.sc-card.t2 .sc-medal { color: var(--sv); box-shadow: inset 0 0 0 3px var(--sv), 0 0 22px rgba(207, 211, 218, .22); background: radial-gradient(circle at 35% 30%, rgba(207, 211, 218, .28), rgba(207, 211, 218, .05)); }
.sc-card.t3 .sc-medal { color: var(--gd); box-shadow: inset 0 0 0 3px var(--gd), 0 0 24px rgba(242, 193, 78, .3); background: radial-gradient(circle at 35% 30%, rgba(242, 193, 78, .3), rgba(242, 193, 78, .06)); }
.sc-card.t4 .sc-medal { color: var(--pt); box-shadow: inset 0 0 0 3px var(--pt), 0 0 26px rgba(143, 224, 220, .35); background: radial-gradient(circle at 35% 30%, rgba(143, 224, 220, .3), rgba(143, 224, 220, .06)); }
.sc-tx { display: grid; gap: 2px; min-width: 0; align-self: end; }
.sc-tx b { font: 600 clamp(16px, 1.25vw, 20px)/1.15 var(--fd); letter-spacing: .01em; }
.sc-tx span { font-size: 12.5px; color: var(--bone2); }
.sc-pips, .sc-pr { grid-column: 2; }
.sc-pips { display: flex; align-items: center; gap: 6px; align-self: start; }
.sc-pip { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sc-pip.on.t1 { background: var(--bz); } .sc-pip.on.t2 { background: var(--sv); } .sc-pip.on.t3 { background: var(--gd); } .sc-pip.on.t4 { background: var(--pt); }
.sc-tier { margin-left: 4px; font-size: 12px; color: var(--bone2); }
.sc-pr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; align-self: start; font-size: 12.5px; color: var(--bone2); }
.sc-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sc-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8f160d, #ff4a3a); }
.sc-pr .btn { grid-column: 1 / -1; justify-self: start; }
.sc-max { grid-column: 1 / -1; color: var(--pt); font-weight: 600; }
.sc-card.can { background: rgba(60, 14, 10, .6); box-shadow: inset 0 0 0 2px rgba(255, 74, 58, .65); }
.sc-card.can .btn { box-shadow: 0 0 22px rgba(255, 74, 58, .55); }
@media (min-width: 900px) and (max-height: 660px) { .sc-tx span { display: none; } .sc-card { row-gap: 6px; } }
@media (max-width: 1099px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1099px), (max-height: 520px) {
  #app #main:has(> .sc) { overflow-y: auto; padding-bottom: 96px; } .sc { height: auto; } .sc-grid { grid-auto-rows: auto; }
}
@media (max-width: 599px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } .sc-head { flex-wrap: wrap; } }

/* ======================= SALTGATE: LONG WINTER PASS ======================= */
/* a banner card on the left, the 30 tiers as a draggable track with Free and Premium rows on the right */
#app #main:has(> .pa) { overflow: hidden; }
.pa { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); }
.pa-head { flex: none; display: flex; align-items: center; gap: 12px 16px; }
.pa-ti { display: grid; gap: 4px; min-width: 0; }
.pa-ti h1 { margin: 0; font: 700 clamp(26px, 2.4vw, 40px)/1 var(--fd); letter-spacing: .03em; }
.pa-ti > span { font-size: 14px; color: var(--bone2); }
.pa-on { padding: 8px 14px; border-radius: 999px; background: rgba(242, 193, 78, .16); color: #f2c14e; font: 600 13px var(--fb); }
.pa-head .btn:not(:disabled) { box-shadow: 0 0 22px rgba(255, 74, 58, .4); }
.pa-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: clamp(220px, 21vw, 340px) minmax(0, 1fr); gap: var(--gap); }
.pa-side { position: relative; isolation: isolate; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 20px; overflow: hidden; background: #0c0d0f; }
.pa-side .pa-art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.pa-side .pa-art::after { content: ''; display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, .1) 0%, rgba(8, 9, 10, .55) 45%, rgba(8, 9, 10, .95) 100%); }
.pa-me { display: grid; gap: 8px; padding: clamp(14px, 1.6vw, 24px); }
.pa-k { font-size: 13px; color: var(--bone2); }
.pa-me > b { font: 700 clamp(44px, 4.4vw, 72px)/.9 var(--fd); color: #fff; } .pa-me > b small { font-size: .4em; color: var(--bone2); margin-left: 4px; }
.pa-xp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bone2); }
.pa-xp .pa-bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pa-xp .pa-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8f160d, #ff4a3a); }
.pa-me p { margin: 0; font-size: 13px; color: #f2c14e; }
.pa-track { min-width: 0; min-height: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); border-radius: 20px; overflow: hidden;
  background: rgba(12, 12, 14, .55); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.pa-lbl, .pa-t { display: grid; grid-template-rows: 34px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; padding: 14px 0; }
.pa-lbl { padding-left: 16px; font: 600 14px var(--fd); color: var(--bone2); align-items: center; }
.pa-lbl .prem { display: inline-flex; align-items: center; gap: 6px; color: #f2c14e; } .pa-lbl .aic { width: 14px; height: 14px; }
.pa-scroll { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(104px, 8.6vw, 140px); gap: 10px; padding-right: 16px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.pa-scroll::-webkit-scrollbar { display: none; }

.pa-n { justify-self: center; align-self: center; min-width: 34px; padding: 6px 10px; border-radius: 999px; text-align: center; font: 700 14px/1 var(--fd); color: var(--bone2); background: rgba(255, 255, 255, .06); }
.pa-t.reached .pa-n { color: #fff; background: rgba(255, 255, 255, .14); }
.pa-t.here .pa-n { color: #fff; background: #d4291f; box-shadow: 0 0 18px rgba(255, 74, 58, .6); }
.pa-c { position: relative; min-height: 0; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.pa-t.reached .pa-c { background: rgba(255, 255, 255, .1); }
.pa-c.prem { background: rgba(242, 193, 78, .07); } .pa-t.reached .pa-c.prem { background: rgba(242, 193, 78, .14); }
.pa-t.here .pa-c { box-shadow: inset 0 0 0 2px rgba(255, 74, 58, .7); }
.pa-t.big .pa-c.prem { box-shadow: inset 0 0 0 2px rgba(224, 168, 58, .7); background: radial-gradient(circle at 50% 40%, rgba(224, 168, 58, .28), rgba(242, 193, 78, .06)); }
.pa-rw { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pa-rw .coin { width: 26px; height: 26px; }
.pa-rw b { font: 700 17px/1 var(--fd); color: var(--bone); }
.pa-rw small { font-size: 11.5px; color: var(--bone2); }
.pa-rw.gear .aic { width: 30px; height: 30px; color: var(--rc); filter: drop-shadow(0 0 10px var(--rc)); }
.pa-rw.gear small { color: var(--rc); font-weight: 600; }
.pa-c.got .pa-rw, .pa-c.locked .pa-rw { opacity: .45; }
.pa-ok, .pa-lk { position: absolute; top: 8px; right: 8px; } .pa-ok .aic, .pa-lk .aic { width: 15px; height: 15px; }
.pa-ok { color: #7bd88f; } .pa-lk { color: var(--bone2); }
.pa-f { display: grid; place-items: center; } .pa-f .btn { width: 100%; box-shadow: 0 0 20px rgba(255, 74, 58, .5); }
@media (min-width: 900px) and (max-height: 660px) {
  .pa-lbl, .pa-t { grid-template-rows: 28px minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 6px; padding: 10px 0; }
  .pa-me p { display: none; } .pa-rw .coin { width: 22px; height: 22px; } .pa-rw.gear .aic { width: 26px; height: 26px; }
}
@media (max-width: 899px) {
  #app #main:has(> .pa) { overflow-y: auto; padding-bottom: 96px; }
  .pa { height: auto; } .pa-body { grid-template-columns: minmax(0, 1fr); } .pa-side { min-height: 220px; } .pa-track { height: 360px; } .pa-head { flex-wrap: wrap; }
}
/* radio tower: the portrait melts into the letter - a mask fades it in from the left over ~40% of its width and out at the bottom */
#app #main .rt-msg .rt-face { width: 50%; border-radius: 0 20px 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
#app #main .rt-msg .rt-face::after { display: none; }
@media (max-width: 899px) {
  #app #main .rt-msg .rt-face { width: 100%; border-radius: 20px 20px 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
}

/* ======================= CREWS: YOUR CREW ======================= */
/* the Wall of Names family (.mk.wn from hud-b.css): the top three crews as tall cards, the rest as rows that scroll inside
   with a fade, a right card at the nav row - "Join a crew" without a crew, your crew's card in one */
.crw { --au: #f2c14e; --ag: #cfd3da; --cu: #c98a55; }
/* the crew emblem: a shield in the crew's own colour with its tag */
.cr-sh { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 46px; padding-bottom: 4px;
  clip-path: polygon(50% 0, 100% 12%, 100% 58%, 50% 100%, 0 58%, 0 12%);
  background: linear-gradient(170deg, hsl(var(--h) 62% 52%), hsl(var(--h) 58% 24%)); }
.cr-sh::before { content: ''; position: absolute; inset: 3px; clip-path: inherit; background: linear-gradient(170deg, hsl(var(--h) 50% 34%), hsl(var(--h) 55% 16%)); }
.cr-sh > b { position: relative; font: 700 11.5px/1 var(--fd); letter-spacing: .04em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.cr-sh.big { width: 64px; height: 74px; } .cr-sh.big > b { font-size: 17px; }
/* podium: district art, the shield on top, a gold / silver / bronze rim */
.cr-pod .wn-p { box-shadow: inset 0 0 0 2px var(--rim, transparent); }
.cr-pod .wn-p.p1 { --rim: var(--au); } .cr-pod .wn-p.p2 { --rim: var(--ag); } .cr-pod .wn-p.p3 { --rim: var(--cu); }
.cr-pod .wn-p.me { --rim: #d4291f; }
.cr-pod .wn-p.p2 .wn-n { color: var(--ag); } .cr-pod .wn-p.p3 .wn-n { color: var(--cu); }
.cr-pod .wn-p .wn-pi { opacity: .55; }
.cr-pod .wn-p > .cr-sh { position: absolute; z-index: 1; top: 18px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.cr-pn { font: 600 17px/1.12 var(--fd); letter-spacing: .02em; color: var(--bone); overflow-wrap: anywhere; }
.cr-pa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; min-height: 30px; }
/* rows: shield instead of a portrait, the action on the right; the list fades out at the bottom, never a cut row */
.cr-rows { padding-bottom: 26px; -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
.crw .wn-r { grid-template-columns: 30px 40px minmax(0, 1fr) auto; min-height: 52px; }
.crw .wn-rn > b { font: 600 15px/1.15 var(--fd); letter-spacing: .02em; }
.crw .wn-r.cr-m { grid-template-columns: 10px minmax(0, 1fr) auto; padding: 8px 14px; }
.cr-ra { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.cr-lock { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; color: var(--bone2); white-space: nowrap; }
.cr-lock .aic { width: 13px; height: 13px; opacity: .7; }
.cr-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--bone2); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.cr-empty .aic { width: 40px; height: 40px; opacity: .4; }
/* right card: art banner on top, what a crew gives, the two buttons at the bottom */
.crw > .cr-side { align-self: start; max-height: 100%; }
.cr-side { position: relative; overflow-x: hidden; padding-top: 88px !important; }
.cr-side > .cr-art { position: absolute; top: 0; left: 0; right: 0; height: 130px; border: 0; border-radius: 0;
  background-size: cover; background-position: center 40%; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.cr-side > .cr-art::after { display: none; }
.cr-side .wn-sh { position: relative; }
.cr-gives { display: grid; gap: 8px; }
.cr-gives > div { display: flex; align-items: center; gap: 10px; } .cr-gives > div > span:last-child { min-width: 0; font-size: 13.5px; line-height: 1.3; }
.cr-gives small { font-size: 12px; color: var(--bone2); }
.cr-gi { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .07); } .cr-gi .aic { width: 16px; height: 16px; }
.cr-cta { margin-top: 6px; display: grid; gap: 8px; }
.cr-cta .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; } .cr-cta .btn .aic { width: 16px; height: 16px; }
.cr-cta .btn small { font-size: 12px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* in a crew: your crew's card on the right, buildings 2 x 2 on the left */
.cr-me { position: relative; display: flex; align-items: center; gap: 12px; } .cr-me .wn-sh { margin: 0; }
.cr-tre > b small { font-size: .5em; color: var(--bone2); } .cr-don { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cr-leave { margin-top: 4px; align-self: flex-start; }
.cr-bld { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; }
.cr-b { min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 1.4vw, 20px); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.cr-b .btn { margin-top: auto; align-self: flex-start; }
.cr-bt { display: flex; align-items: center; gap: 10px; } .cr-bt b { flex: 1; font: 600 18px var(--fd); }
.cr-lv { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 600 12px var(--fb); }
.cr-rules { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 16px; padding: clamp(14px, 1.6vw, 22px); border-radius: 16px; background: rgba(255, 255, 255, .05); scrollbar-width: none; }
.cr-rules .syn-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.cr-rules .btn { justify-self: start; }
.gdrawer .cr-form { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) and (max-height: 690px) {
  .cr-side { padding-top: 64px !important; } .cr-side > .cr-art { height: 100px; } .cr-gives { gap: 5px; } .cr-gi { width: 28px; height: 28px; }
  .cr-gives small { font-size: 11.5px; } .cr-pod .wn-p > .cr-sh { top: 12px; } .cr-sh.big { width: 54px; height: 62px; } .cr-sh.big > b { font-size: 15px; }
  .crw .wn-r { min-height: 46px; } .cr-pn { font-size: 15.5px; } .cr-b { padding: 10px 14px; gap: 4px; }
}
@media (max-width: 899px) { .cr-bld { grid-template-columns: minmax(0, 1fr); } .cr-rules .syn-form { grid-template-columns: minmax(0, 1fr); } .cr-rows { -webkit-mask-image: none; mask-image: none; padding-bottom: 0; } }
/* survivor card: when HP is down, the time to full sits right under the HP bar */
.yd-bars .yd-eta { grid-column: 1 / -1; grid-row: 3; font-size: 11.5px; color: var(--bone2); }
.yd-bars .yd-eta { white-space: nowrap; }
/* crew rules: label above its field, four columns, the about line and Save on the last row - one screen at 1265x600 */
#app #main .cr-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 14px 16px; }
#app #main .cr-rules .syn-form { display: contents; }
#app #main .cr-rules .syn-f { display: grid; gap: 6px; align-content: end; margin: 0; min-width: 0; }
#app #main .cr-rules .syn-f > .small { font-size: 12px; line-height: 1.25; }
#app #main .cr-rules .syn-f > .small:last-child:not(:first-child) { display: none; }
#app #main .cr-rules .syn-f .p2p-in { width: 100%; height: 38px; margin: 0; }
#app #main .cr-rules .syn-chk { display: flex; align-items: center; gap: 8px; align-self: center; font-size: 13px; }
#app #main .cr-rules .syn-wide { grid-column: span 3; }
#app #main .cr-rules > .btn { justify-self: stretch; height: 38px; }
#app #main .cr-rules:not(:has(.syn-form)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { #app #main .cr-rules { grid-template-columns: minmax(0, 1fr); } #app #main .cr-rules .syn-wide { grid-column: auto; } }
.gdrawer .cr-form .syn-f { display: grid; gap: 6px; align-content: start; margin: 0; min-width: 0; } .gdrawer .cr-form .p2p-in { width: 100%; height: 40px; margin: 0; } .gdrawer .cr-form + .btn { width: 100%; }
/* survivor: the empty med pouch says where meds come from instead of leaving a hole */
#app #main .sv-inf .inf-empty { display: block; margin: 0; font-size: 13px; line-height: 1.5; color: var(--bone2); }
/* Buildings -> Infirmary: three med cards across the width - icon, name, what it does, then price and Buy at the bottom */
#app #main .bd .inf-shop { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--gap); margin: 0; overflow: visible; }
#app #main .bd .inf-item { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(16px, 1.8vw, 26px); border-radius: 20px;
  background: var(--glass-flat); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
#app #main .bd .inf-item .inf-ic.big { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
#app #main .bd .inf-item .inf-ic.big svg { width: 28px; height: 28px; }
#app #main .bd .inf-it { display: grid; gap: 6px; min-width: 0; }
#app #main .bd .inf-it b { font: 600 clamp(18px, 1.5vw, 24px)/1.15 var(--fd); }
#app #main .bd .inf-it .small { font-size: 14px; line-height: 1.5; }
#app #main .bd .inf-buy { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#app #main .bd .inf-buy .num { font: 700 20px var(--fd); color: var(--bone); }
#app #main .bd .inf-buy .btn { margin-left: auto; }
@media (max-width: 899px) { #app #main .bd .inf-shop { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } }
/* survivor bag: empty Gadget / Load slots show their outline icon, not a bone-filled block */
#app #main .op-gs .slot .ph { display: grid; place-items: center; width: 100%; height: 100%; background: none; color: rgba(236, 230, 218, .4); border-radius: inherit; }
#app #main .op-gs .slot .ph svg { width: 24px; height: 24px; }
/* survivor attributes at ~600 px high: tighter rows so all five fit with the bottom margin */
@media (min-width: 900px) and (max-height: 660px) {
  #app #main .sv-attr .stat-row { padding-top: 2px; padding-bottom: 2px; }
  #app #main .sv-attr .gh { margin-bottom: 4px; }
}
/* one-tap antidote (card quick button, Survivor infection card, fight result note): price chip, muted when short of tokens */
.inf-anti svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inf-ap { display: inline-flex; align-items: center; gap: 4px; } .inf-ap .coin { width: 13px; height: 13px; }
.inf-anti.poor { opacity: .55; } .ya.inf-anti.poor { background: rgba(255, 255, 255, .05); box-shadow: none; }
.inf-cure { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(212, 41, 31, .12); }
.inf-cure > b { font: 600 16px var(--fd); }
.inf-cure .inf-anti { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn.inf-anti.poor { background: rgba(255, 255, 255, .08); color: var(--bone2); box-shadow: none; }
/* legal window: the title and the close button on one row (the close sat under the title) */
.legal-modal .legal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.legal-modal .legal-head h2 { margin: 0; font: 700 clamp(22px, 2vw, 30px)/1.1 var(--fd); letter-spacing: .02em; }
.legal-modal .legal-head [data-x] { flex: none; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
/* tour card: fixed again (the dossier sheet rule made it position: relative, so it fell to the bottom of the page and focusing
   its Next button scrolled the whole game frame up by ~250 px) */
body > .tour-card { position: fixed; z-index: 701; }
/* survivor builder (onboarding) on a desktop: one screen, no page scroll down to 1265x600 - the hero picture fills the left
   column, the choice grid shrinks its pictures, Next always visible at the bottom */
@media (min-width: 900px) {
  .create2.cr3 { height: 100dvh; display: flex; flex-direction: column; padding: 18px 28px 28px; box-sizing: border-box; }
  .create2.cr3 > .cr2-top { flex: none; padding-bottom: 14px; }
  .cr3 .cr3-grid { flex: 1 1 auto; min-height: 0; grid-template-columns: min(38%, calc((100dvh - 110px) * .75)) minmax(0, 1fr); align-items: stretch; gap: 28px; }
  .cr3 .cr3-hero { position: relative; top: 0; min-height: 0; }
  .cr3 .cr3-hero > .cr3-pic { height: 100%; aspect-ratio: auto; }
  .cr3 .cr3-main { min-height: 0; gap: 12px; }
  .cr3 .cr3-h { display: none; }   /* the lit step chip already says it */
  .cr3 .cr2-looks { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  .cr3 .look-card { min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; }
  .cr3 .look-card .art { aspect-ratio: auto; min-height: 0; height: 100%; }
  .cr3 .cr2-roles { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); overflow: hidden; }
  .cr3 .role2 { min-height: 0; overflow: hidden; }
  .cr3 .cr3-desc { flex: none; }
  .cr3 .cr3-nav { flex: none; margin-top: auto; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .cr3 .cr2-intro p { display: none; }
  .cr3 .cr2-intro h1 { font-size: 30px; }
  .cr3 .role2 { padding: 10px 12px; gap: 2px; } .cr3 .role2 .small { line-height: 1.3; }
  .cr3 .cr3-desc { display: none; }
}
/* builder hero on a desktop: the column is taller than the picture, so it fills (cover) instead of sitting on a blurred copy */
@media (min-width: 900px) { .cr3 .cr3-hero > .cr3-pic.loaded::after { background-size: cover !important; background-position: center 30% !important; } }
/* a badge or timer inside a section tab must not make that tab row 1 px taller (the row jumped between sections) */
.subtabs .sub > :is(.badge, .tmr) { margin-block: -4px; }
/* survivor card: the player's crew as a small badge in the picture's top-right corner (only when in a crew; Vova 2026-11-30) */
.yd-crew { position: absolute; z-index: 3; top: 14px; right: 14px; max-width: 58%; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px;
  border-radius: 999px; background: rgba(12, 13, 15, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--bone, #ece6da) !important;
  font-size: 13px; font-weight: 600; text-decoration: none !important; transition: background-color .2s, box-shadow .2s; }
.yd-crew:hover { background: rgba(12, 13, 15, .75); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.yd-crew .cr-sh { width: 28px; height: 32px; padding-bottom: 3px; }
.yd-crew .cr-sh > b { font-size: 9px; }
.yd-crew-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ya.ya-buy.poor { opacity: .55; background: rgba(255, 255, 255, .05); box-shadow: none; }
/* Survivor's narrow Infection column: a pouch row puts the med's full name on top, the count and Use under it (no "…") */
.sv-inf .inf-pr { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 4px; }
.sv-inf .inf-pr > .inf-ic { grid-row: span 2; }
.sv-inf .inf-pr > .inf-pn { grid-column: 2 / 4; }
.sv-inf .inf-pr > b { grid-column: 2; justify-self: start; }
.sv-inf .inf-pr > .btn { grid-column: 3; }
/* the card's quick row: one layout for every button and state - icon, title, price line (kept empty when there is no price),
   so icons, titles and prices of Heal / Antidote / Eat sit on the same lines (Vova 2026-11-30) */
#app .ya { display: grid; grid-template-rows: 18px 15px 15px; justify-items: center; align-content: center; gap: 4px; }
#app .ya > .aic, #app .ya > svg { grid-row: 1; width: 18px; height: 18px; display: block; }
#app .ya > span:not(.inf-ap) { grid-row: 2; max-width: 100%; white-space: nowrap; overflow-wrap: normal; line-height: 15px; }
#app .ya > .inf-ap { grid-row: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 15px; }
#app .ya > .inf-ap .coin { width: 13px; height: 13px; }
#app .ya > svg:not(.aic) { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) and (max-height: 700px) { #app .ya { grid-template-rows: 16px 14px 14px; gap: 3px; } #app .ya > .aic, #app .ya > svg { width: 16px; height: 16px; } }
/* Settings: the documents are a visible list of links in the App panel (Vova could not find them behind a button, 2026-11-30) */
.set-docs { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.set-docs > b { width: 100%; font: 600 13px/1.2 var(--fb); color: var(--bone); margin-bottom: 2px; }
.set-docs .set-doc { padding: 0; border-radius: 0; background: none; font-size: 13px; line-height: 1.3; color: var(--bone2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 230, 218, .3); }
.set-docs .set-doc:hover { background: none; color: #fff; text-decoration-color: currentColor; }
#top .top-set svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
