/* cspub-web 2026-10-17 - CS 1.6 PUBLIC server "SwedenCode | CS2 Skins & Cases" (port 27016).
   Homepage monitor card (#cspubCard) + player panel flow (#flowCsPub) + its panel choice card.
   Own .cspub-* namespace on purpose: the homepage .node cards are rebuilt by several 2026-09-12
   scripts that expect exactly four of them, so this card is NOT a .node and borrows no .node rules.
   Measurements follow the live CS world card (8px radius, Inter 28/750 name, 48px Chakra buttons).
   Accent: DEEP PURPLE, picked by the owner 2026-10-17 ("Use B, deep purple #9A34E6"), and the SAME
   tokens as launcher NODE-05 (#9A34E6 / #C9A0FF / #26103D) - change both together or neither.
   SWGC gold (#FFD24A) stays reserved for the site coin. */

.cspub-card, #flowCsPub, .pp-choice__card--cspub {
  --cp-accent: #c9a0ff;          /* launcher --c-cs2-2: labels, counts, links */
  --cp-strong: #9a34e6;          /* launcher --c-cs2: the art's neon rim */
  --cp-button: #7526b4;          /* darker step so white button text keeps contrast */
  --cp-hover: #611e96;
  --cp-band: #26103d;            /* launcher --c-cs2-deep */
  /* rgb triplets of the same colours, for the translucent layers below */
  --cp-rgb: 154, 52, 230;        /* = --cp-strong */
  --cp-accent-rgb: 201, 160, 255; /* = --cp-accent */
  --cp-band-rgb: 38, 16, 61;     /* = --cp-band */
  --cp-band2-rgb: 22, 9, 36;     /* a darker step of the band */
  --cp-ink: #14052a;             /* text on a solid --cp-strong fill */
  --cp-soft: #e6d8fd;            /* pale tint for small unit labels */
  --cp-line: rgba(var(--cp-accent-rgb), .42);
  --cp-photo: url('/assets/cspub-20261017/scene.webp');
  --node-accent: var(--cp-strong);
}

/* ---------------------------------------------------------------- homepage card */
/* v2 (owner: "should be same size as other monitors"): one grid cell with the world cards' geometry,
   measured on the live CS card at 1440px - 179px photo head, full-bleed players band, two icon
   highlights, a "More details" row, then a 48px button row and the IP line. */
.cspub-card {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; container-type: inline-size;
  display: flex; flex-direction: column;
  border: .8px solid var(--cp-line); border-radius: 8px;
  background: #080a0d; box-shadow: 0 16px 40px rgba(0, 0, 0, .333);
  color: #f2f5f9; font-family: var(--font-body, Inter, system-ui, sans-serif);
}
.cspub-card__head {
  position: relative; flex: none; min-height: 152px; aspect-ratio: 3.5 / 1; padding: 14px 18px;   /* = world cards: 179px at 1440, 152px on phones */
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--cp-photo) 80% 32% / cover no-repeat;
}
.cspub-card__head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 12, .12) 0%, rgba(7, 9, 12, 0) 38%, rgba(7, 9, 12, .82) 100%),
              linear-gradient(90deg, rgba(7, 9, 12, .6) 0%, rgba(7, 9, 12, 0) 62%);
}
.cspub-card__head > .cspub-tag, .cspub-card__head > .cspub-card__live { position: relative; }
.cspub-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cspub-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 9px; border-radius: 4px; border: .8px solid rgba(var(--cp-accent-rgb), .55);
  background: var(--cp-band); color: var(--cp-accent);
  font: 600 11px/1.2 var(--font-body, Inter, system-ui, sans-serif); text-transform: uppercase;
}
.cspub-tag svg { width: 14px; height: 14px; flex: none; }
.cspub-tag--new { background: var(--cp-strong); border-color: var(--cp-strong); color: var(--cp-ink); font-weight: 700; }
.cspub-card__live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 9px; border-radius: 4px; border: .8px solid rgba(255, 255, 255, .15);
  background: rgba(11, 16, 23, .91); color: #bcdfcd;
  font: 500 11px/1.2 var(--font-body, Inter, system-ui, sans-serif);
}
.cspub-dot { width: 7px; height: 7px; border-radius: 50%; background: #46d6a0; box-shadow: 0 0 0 3px rgba(70, 214, 160, .18); flex: none; }
[data-state="locked"] .cspub-dot { background: var(--cp-strong); box-shadow: 0 0 0 3px rgba(var(--cp-rgb), .2); }
[data-state="offline"] .cspub-dot, [data-state="unavailable"] .cspub-dot { background: #ff3b47; box-shadow: 0 0 0 3px rgba(255, 59, 71, .18); }
[data-state="loading"] .cspub-dot { background: #8295ac; box-shadow: none; }
.cspub-card[data-state="locked"] .cspub-card__live { color: var(--cp-accent); }

.cspub-card__head .cspub-identity { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.cspub-emblem { width: 48px; height: 48px; flex: none; color: var(--cp-strong); filter: drop-shadow(0 0 10px rgba(var(--cp-rgb), .55)); }
.cspub-name { margin: 0; font: 750 28px/34px var(--font-body, Inter, system-ui, sans-serif); color: #f7f9fc; letter-spacing: 0; text-transform: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.cspub-name span { display: block; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--cp-accent); }

.cspub-card__body { position: relative; isolation: isolate; flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow: hidden; }
.cspub-card__body::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--cp-photo) 70% 50% / cover no-repeat; filter: blur(3px); transform: scale(1.04); pointer-events: none; }
.cspub-card__body::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(4, 7, 10, .5) 0%, rgba(4, 7, 10, .65) 55%, rgba(4, 7, 10, .72) 100%); pointer-events: none; }

.cspub-lobby {
  margin: -18px -18px 0; padding: 14px 18px 12px;
  background: rgba(var(--cp-band-rgb), .6);
  border-top: .8px solid rgba(var(--cp-accent-rgb), .65); border-bottom: .8px solid rgba(255, 255, 255, .15);
}
.cspub-lobby__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px 18px; align-items: start; }   /* = world cards; bots count as players, no bot column */
.cspub-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cspub-stat b { font: 700 22px/36px var(--font-body, Inter, system-ui, sans-serif); color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cspub-stat em { font: 400 13px/20px var(--font-body, Inter, system-ui, sans-serif); color: #f0f2f7; font-style: normal; }
.cspub-stat--players b { font-size: 30px; color: var(--cp-accent); }
.cspub-stat--players b small { font-size: 15px; font-weight: 500; color: #e0dfe6; margin-left: 5px; }
.cspub-stat--map { padding-top: 6px; gap: 5px; }
.cspub-stat--map { border-left: .8px solid rgba(255, 255, 255, .098); padding-left: 18px; }
.cspub-stat--map em { font-size: 12px; line-height: 18px; color: #d1d5df; }
.cspub-stat--map b { font: 600 14px/21px var(--font-body, Inter, system-ui, sans-serif); }
.cspub-lobby__hint { display: block; margin-top: 4px; min-height: 20px; font: 400 12px/20px var(--font-body, Inter, system-ui, sans-serif); color: #d1d5df; }

.cspub-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; min-height: 36px; }
.cspub-highlights li { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 14px/22px var(--font-body, Inter, system-ui, sans-serif); color: #f2f5f9; }
.cspub-tick {
  width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: rgba(var(--cp-band-rgb), .8); border: .8px solid rgba(var(--cp-accent-rgb), .32); color: var(--cp-accent);
}
.cspub-tick svg { width: 18px; height: 18px; }

.cspub-details { border-top: .8px solid rgba(255, 255, 255, .07); }
.cspub-details summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 0;
  cursor: pointer; list-style: none; font: 400 14px/1.4 var(--font-body, Inter, system-ui, sans-serif); color: #e0e8f2;
}
.cspub-details summary::-webkit-details-marker { display: none; }
.cspub-details summary img { width: 16px; height: 16px; filter: brightness(0) invert(.85); opacity: .65; transition: transform .2s ease; }
.cspub-details[open] summary img { transform: rotate(90deg); }
.cspub-details summary:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 2px; }
.cspub-details p { margin: 0 0 8px; font: 400 14px/1.55 var(--font-body, Inter, system-ui, sans-serif); color: #c9d4e2; }
.cspub-details ul { margin: 0 0 10px; padding-left: 18px; font: 400 14px/1.6 var(--font-body, Inter, system-ui, sans-serif); color: #e3ebf4; }

.cspub-card__footer { margin: auto -18px -18px; padding: 6px 18px 12px; display: grid; gap: 8px; }
.cspub-actions { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; }
.cspub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 16px; border-radius: 7px; cursor: pointer; text-decoration: none;
  font: 700 13px/1 var(--font-display, 'Chakra Petch', Inter, system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase;
}
.cspub-btn--primary {
  color: #fff; border: .8px solid rgba(var(--cp-accent-rgb), .7);
  background: var(--cp-button) linear-gradient(rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .02) 52%, rgba(0, 0, 0, .12) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .3), inset 0 -1px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .35), 0 10px 24px -12px rgba(0, 0, 0, .7);
}
.cspub-btn--primary:hover { background-color: var(--cp-hover); }
.cspub-btn svg { width: 18px; height: 18px; flex: none; }
.cspub-btn:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 3px; }

/* ids beat the sitewide action-button rules (body.sc-actions .sc-action[data-action-kind] = 46px) */
#cspubCard .cspub-iconbtn {
  width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: .8px solid rgba(181, 209, 236, .22);
  background: linear-gradient(rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)), linear-gradient(rgba(26, 36, 54, .64), rgba(10, 16, 28, .78));
}
#cspubCard .cspub-iconbtn:hover { border-color: var(--cp-line); }
.cspub-ipline {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 3px 8px;
  border-top: .8px solid rgba(255, 255, 255, .15); padding-top: 6px; font-family: var(--font-body, Inter, system-ui, sans-serif);
}
.cspub-ipline > span { grid-column: 1; font-size: 12px; line-height: 16px; color: #c5d2df; }
.cspub-ipline code { grid-column: 1; font: 500 13px/20px var(--font-mono, 'JetBrains Mono', monospace); color: #f1f5fa; background: none; padding: 0; }
#cspubCard .cspub-ipcopy {
  grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; min-height: 44px; padding: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 7px; border: .8px solid transparent; background: transparent;
}
/* the site paint system (network-20260909.css, body.sc-actions .sc-action) sets background/border with
   !important from --action-* variables, so the button is themed through those, as the world cards do */
#cspubCard .cspub-ipcopy { --action-surface: transparent; --action-hover: rgba(var(--cp-band-rgb), .8); --action-border: transparent; --action-hover-border: var(--cp-accent); --action-text: var(--cp-accent); }
#cspubCard .cspub-iconbtn:focus-visible, #cspubCard .cspub-ipcopy:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 3px; }
#cspubCard .cspub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: -1px; border: 0; }
#cspubCard .cspub-ico-check { display: none; }
#cspubCard .is-copied .cspub-ico-copy { display: none; }
#cspubCard .is-copied .cspub-ico-check { display: block; }
#cspubCard .copybtn img { width: 18px; height: 18px; filter: brightness(0) invert(.85); }
/* the IP copy icon is tinted with the accent, like the other cards (their icon is an svg in currentColor) */
#cspubCard .cspub-mask { display: block; width: 18px; height: 18px; background: var(--cp-accent); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
#cspubCard .cspub-mask--copy { --m: url('/assets/home-studio-20260909/copy.svg'); }
#cspubCard .cspub-mask--check { --m: url('/assets/home-finish-20260909/check.svg'); display: none; }
#cspubCard .is-copied .cspub-mask--copy { display: none; }
#cspubCard .is-copied .cspub-mask--check { display: block; }
/* primary button like the world cards: label left, icon right behind a thin divider */
#cspubCard .cspub-btn--primary { justify-content: space-between; text-align: left; }
#cspubCard .cspub-btn--primary svg { width: 34px; height: 20px; padding-left: 12px; box-sizing: border-box; border-left: .8px solid rgba(255, 255, 255, .7); }

/* same responsive steps as the world cards (server-compact-20260912.css) */
@container (max-width: 580px) {
  .cspub-highlights { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .cspub-card__head { padding: 14px 16px; }
  .cspub-card__head .cspub-identity { left: 16px; right: 16px; }
  .cspub-card__head .cspub-tag, .cspub-card__live { font-size: 10px; }
  .cspub-card__live { padding: 4px 7px; }
  .cspub-emblem { width: 40px; height: 40px; }
  .cspub-name { font-size: 26px; line-height: 32px; }
  .cspub-card__body { padding: 16px; }
  .cspub-lobby { margin: -16px -16px 0; padding: 14px 16px 12px; }
  .cspub-lobby__row { column-gap: 12px; }
  .cspub-stat--map { padding-left: 12px; }
  .cspub-card__footer { margin: auto -16px -16px; padding: 6px 16px 12px; }
  #cspubCard .cspub-btn--primary { padding-inline: 12px; }
}

/* ---------------------------------------------------------------- panel: choice card */
body.sc-network[data-net-page=panel] .pp-choice.pp-choice--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; }
body.sc-network[data-net-page=panel] .pp-choice__card .net-choice-art--cspub { background-image: var(--cp-photo); background-size: cover; background-position: 78% center; }
@media (max-width: 1100px) {
  body.sc-network[data-net-page=panel] .pp-choice.pp-choice--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sc-network[data-net-page=panel] .pp-choice--5 .pp-choice__card--cspub { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- panel: flow */
#flowCsPub { display: grid; gap: 16px; }
#flowCsPub[hidden] { display: none !important; }
#flowCsPub .cspub-box {
  position: relative; min-width: 0; padding: 24px; border-radius: 8px;
  border: .8px solid rgba(181, 209, 236, .14); background: rgba(7, 18, 29, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cspub-h { margin: 0; font: 650 20px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #f2f5f9; letter-spacing: 0; text-transform: none; }
.cspub-sub { margin: 6px 0 0; font: 400 14px/1.5 var(--font-body, Inter, system-ui, sans-serif); color: #b9c6d8; }
.cspub-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 250px; padding: 26px 28px; border-radius: 8px; border: .8px solid var(--cp-line);
  display: flex; align-items: flex-end; background: #080a0d;
}
.cspub-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--cp-photo) 70% center / cover no-repeat; }
.cspub-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 12, .94) 0%, rgba(7, 9, 12, .82) 36%, rgba(7, 9, 12, .2) 64%, rgba(7, 9, 12, 0) 100%),
              linear-gradient(0deg, rgba(7, 9, 12, .55) 0%, rgba(7, 9, 12, 0) 40%);
}
.cspub-hero__copy { max-width: 620px; display: grid; gap: 10px; }
.cspub-hero__title { margin: 0; font: 750 30px/1.15 var(--font-body, Inter, system-ui, sans-serif); color: #f7f9fc; }
.cspub-hero__title span { color: var(--cp-accent); }
.cspub-hero__text { margin: 0; font: 400 15px/1.55 var(--font-body, Inter, system-ui, sans-serif); color: #d8e2ee; }
.cspub-hero__live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 13px/1.4 var(--font-body, Inter, system-ui, sans-serif); color: #e0e8f2; }
.cspub-hero__live b { color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; }
.cspub-hero__live .cspub-live-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 4px; border: .8px solid rgba(255, 255, 255, .15); background: rgba(11, 16, 23, .85); }

.cspub-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cspub-col { display: grid; gap: 16px; min-width: 0; }

.cspub-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.cspub-form label { flex: 1 1 280px; display: grid; gap: 7px; }
.cspub-form label > span { font: 600 11px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #c0c6ce; text-transform: uppercase; }
.cspub-form input {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 7px;
  border: .8px solid rgba(181, 209, 236, .28); background: rgba(4, 12, 22, .82); color: #eaf0f7;
  font: 500 15px/1.2 var(--font-mono, 'JetBrains Mono', monospace);
}
.cspub-form input:focus { outline: none; border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(var(--cp-rgb), .25); }
.cspub-form .cspub-btn--primary { flex: 0 0 auto; }
.cspub-status { min-height: 20px; margin: 10px 0 0; font: 500 13px/1.45 var(--font-body, Inter, system-ui, sans-serif); color: #aeb8c6; }
.cspub-status.is-bad { color: #ff8a8f; }
.cspub-chooser { display: grid; gap: 8px; margin-top: 10px; }
.cspub-chooser button {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 7px; border: .8px solid rgba(181, 209, 236, .22); background: rgba(4, 20, 35, .72); color: #eaf0f7;
  font: 500 14px/1.3 var(--font-body, Inter, system-ui, sans-serif);
}
.cspub-chooser button:hover, .cspub-chooser button:focus-visible { border-color: var(--cp-line); outline: none; }
.cspub-chooser small { font: 500 12px/1.3 var(--font-mono, 'JetBrains Mono', monospace); color: #9fb0c6; }

/* profile */
.cspub-profile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cspub-profile__name { margin: 4px 0 0; font: 750 26px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #f7f9fc; overflow-wrap: anywhere; }
.cspub-kv { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font: 500 12px/1.5 var(--font-mono, 'JetBrains Mono', monospace); color: #9fb0c6; }
.cspub-kv b { color: #e3ebf4; font-weight: 500; }
.cspub-badge { padding: 5px 9px; border-radius: 4px; border: .8px solid var(--cp-line); background: var(--cp-band); color: var(--cp-accent); font: 600 11px/1.2 var(--font-body, Inter, system-ui, sans-serif); text-transform: uppercase; white-space: nowrap; }
.cspub-money { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cspub-money > div { padding: 14px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .16); background: rgba(4, 20, 35, .6); display: grid; gap: 4px; min-width: 0; }
.cspub-money b { font: 700 22px/1.15 var(--font-body, Inter, system-ui, sans-serif); color: #fff; font-variant-numeric: tabular-nums; }
.cspub-money em { font: 600 11px/1.3 var(--font-body, Inter, system-ui, sans-serif); font-style: normal; color: #9fb0c6; text-transform: uppercase; }
.cspub-money .cspub-money__main { border-color: var(--cp-line); background: linear-gradient(180deg, rgba(var(--cp-band-rgb), .62), rgba(var(--cp-band2-rgb), .5)); }
.cspub-money .cspub-money__main b { font-size: 32px; color: var(--cp-accent); }
.cspub-money .cspub-money__main b small { font-size: 13px; font-weight: 600; margin-left: 6px; color: var(--cp-soft); letter-spacing: .06em; }
.cspub-note { margin: 12px 0 0; font: 400 13px/1.5 var(--font-body, Inter, system-ui, sans-serif); color: #aeb8c6; }

/* history */
.cspub-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--font-body, Inter, system-ui, sans-serif); }
.cspub-table th { text-align: left; font: 600 10px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; text-transform: uppercase; padding: 8px 10px; border-bottom: .8px solid rgba(255, 255, 255, .1); }
.cspub-table td { padding: 10px; font-size: 13px; color: #d8e2ee; border-bottom: .8px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.cspub-table td.num, .cspub-table th.num { text-align: right; font-family: var(--font-mono, 'JetBrains Mono', monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cspub-table td.when { font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 12px; color: #9fb0c6; white-space: nowrap; }
.cspub-table .is-in { color: #46d6a0; font-weight: 600; }
.cspub-table .is-out { color: #ff8a8f; font-weight: 600; }
.cspub-empty { margin: 12px 0 0; font: 400 13px/1.5 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; }

/* inventory */
.cspub-inv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cspub-inv-head p { margin: 0; font: 400 12px/1.4 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; }
.cspub-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cspub-counts > div { padding: 12px 14px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .16); background: rgba(4, 20, 35, .6); display: grid; gap: 2px; }
.cspub-counts b { font: 700 22px/1.15 var(--font-body, Inter, system-ui, sans-serif); color: #fff; }
.cspub-counts em { font: 600 11px/1.3 var(--font-body, Inter, system-ui, sans-serif); font-style: normal; color: #9fb0c6; text-transform: uppercase; }
.cspub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cspub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: .8px solid rgba(181, 209, 236, .2); background: rgba(4, 20, 35, .7); font: 500 12px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #e3ebf4; }
.cspub-chip svg { width: 14px; height: 14px; color: var(--cp-accent); }
.cspub-chip b { font-family: var(--font-mono, 'JetBrains Mono', monospace); color: var(--cp-accent); font-weight: 600; }
.cspub-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.cspub-skin {
  --rar: #8295ac; position: relative; overflow: hidden; display: grid; gap: 3px; min-width: 0;
  padding: 12px 12px 12px 16px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .14);
  background: linear-gradient(135deg, color-mix(in srgb, var(--rar) 16%, transparent), rgba(4, 20, 35, .7) 60%);
}
.cspub-skin::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rar); box-shadow: 0 0 14px var(--rar); }
.cspub-skin__weapon { font: 600 11px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; text-transform: uppercase; }
.cspub-skin__name { font: 650 15px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #f7f9fc; overflow-wrap: anywhere; }
.cspub-skin__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 500 12px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: var(--rar); }
.cspub-skin__meta span:not(:first-child) { color: #9fb0c6; }
.cspub-skin__qty { position: absolute; top: 10px; right: 10px; font: 600 12px/1 var(--font-mono, 'JetBrains Mono', monospace); color: #d8e2ee; }
.cspub-skin__eq { justify-self: start; margin-top: 4px; padding: 3px 7px; border-radius: 4px; background: rgba(70, 214, 160, .14); border: .8px solid rgba(70, 214, 160, .45); color: #7fe3bd; font: 600 10px/1.2 var(--font-body, Inter, system-ui, sans-serif); text-transform: uppercase; }

/* shop */
.cspub-shop-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 14px;
  padding: 16px; border-radius: 6px; border: .8px solid var(--cp-line);
  background: radial-gradient(120% 140% at 0% 50%, rgba(var(--cp-rgb), .16), rgba(4, 20, 35, .72) 60%);
}
.cspub-shop-item img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(var(--cp-rgb), .28)); }
.cspub-shop-item__body { display: grid; gap: 8px; min-width: 0; }
.cspub-shop-item__name { font: 750 20px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #f7f9fc; }
.cspub-shop-item__name span { margin-left: 8px; font: 600 12px/1 var(--font-mono, 'JetBrains Mono', monospace); color: var(--cp-accent); }
.cspub-shop-item__text { margin: 0; font: 400 13px/1.5 var(--font-body, Inter, system-ui, sans-serif); color: #c9d4e2; }
.cspub-shop-item__buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cspub-shop-item__price { display: inline-flex; align-items: center; gap: 6px; font: 650 24px/1 var(--font-body, Inter, system-ui, sans-serif); color: #efc673; font-variant-numeric: tabular-nums; }
#flowCsPub .cspub-shop-item .pp-buy {
  min-height: 48px; padding: 12px 26px; border-radius: 7px; cursor: pointer;
  border: .8px solid #f2f6fb; color: #0b1220;
  background: #eef3f9 linear-gradient(#f7faff 0%, #e4ebf3 100%);
  font: 700 13px/1 var(--font-display, 'Chakra Petch', Inter, system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase;
}
#flowCsPub .cspub-shop-item .pp-buy:hover { background: #fff; }
#flowCsPub .cspub-shop-item .pp-buy:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 3px; }

/* leaders */
.cspub-top { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: cspubtop; }
.cspub-top li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: .8px solid rgba(255, 255, 255, .07); font: 500 14px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #e3ebf4; }
.cspub-top li::before { counter-increment: cspubtop; content: counter(cspubtop); font: 600 12px/1 var(--font-mono, 'JetBrains Mono', monospace); color: #9fb0c6; text-align: center; }
.cspub-top li:nth-child(1)::before { color: var(--cp-accent); }
.cspub-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cspub-top li b { font: 600 13px/1 var(--font-mono, 'JetBrains Mono', monospace); color: var(--cp-accent); }
.cspub-eco { margin: 10px 0 0; font: 400 12px/1.4 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; }

@media (max-width: 980px) {
  .cspub-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cspub-hero { min-height: 300px; padding: 18px; align-items: flex-end; }
  .cspub-hero::before { background-position: 82% center; }
  .cspub-hero::after { background: linear-gradient(0deg, rgba(7, 9, 12, .96) 0%, rgba(7, 9, 12, .85) 52%, rgba(7, 9, 12, .15) 100%); }
  .cspub-hero__title { font-size: 24px; }
  .cspub-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cspub-money .cspub-money__main { grid-column: 1 / -1; }
  .cspub-shop-item { grid-template-columns: 80px minmax(0, 1fr); padding: 12px; }
  .cspub-shop-item img { width: 80px; height: 80px; }
  .cspub-table th:nth-child(4), .cspub-table td:nth-child(4) { display: none; }
}

/* ---------------------------------------------------------------- panel v4: ZP-parity sections (2026-10-17) */
#flowCsPub .cspub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cspub-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 8px; border: .8px solid rgba(181, 209, 236, .14); background: rgba(7, 18, 29, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cspub-nav button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 7px; cursor: pointer;
  border: .8px solid transparent; background: transparent; color: #dbe5f0; font: 600 13px/1.2 var(--font-body, Inter, system-ui, sans-serif);
}
.cspub-nav button:hover { background: rgba(var(--cp-band-rgb), .7); border-color: var(--cp-line); color: #fff; }
.cspub-nav button:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 2px; }
.cspub-nav svg { width: 18px; height: 18px; color: var(--cp-accent); }
#cspubSecOverview, #cspubSecActivity, #cspubSecRankings, #cspubSecShop { scroll-margin-top: 90px; }

.cspub-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cspub-box__head img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(var(--cp-rgb), .35)); }
.cspub-h3 { margin: 0 0 6px; font: 600 14px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #c9d4e2; text-transform: uppercase; letter-spacing: .04em; }

.cspub-vipbadge { padding: 6px 10px; border-radius: 999px; font: 700 11px/1.2 var(--font-body, Inter, system-ui, sans-serif); text-transform: uppercase; white-space: nowrap;
  border: .8px solid var(--cp-line); background: var(--cp-band); color: var(--cp-accent); }
.cspub-vipbadge[data-vip="vip"], .cspub-vipbadge[data-vip="admin"] { background: var(--cp-strong); border-color: var(--cp-strong); color: #fff; }

.cspub-today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cspub-today > div { padding: 12px 14px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .16); background: rgba(4, 20, 35, .6); display: grid; gap: 4px; min-width: 0; align-content: start; }
.cspub-today em { font: 600 11px/1.3 var(--font-body, Inter, system-ui, sans-serif); font-style: normal; color: #9fb0c6; text-transform: uppercase; }
.cspub-today b { font: 700 20px/1.15 var(--font-body, Inter, system-ui, sans-serif); color: #fff; font-variant-numeric: tabular-nums; }
.cspub-today b small { font-size: 12px; font-weight: 600; color: #9fb0c6; }
.cspub-today__rank { font: 600 11px/1.3 var(--font-mono, monospace); color: var(--cp-accent); }
.cspub-meter__bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; }
.cspub-meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cp-button), var(--cp-accent)); transition: width .4s ease; }

.cspub-live__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.cspub-live__main > div, .cspub-live__grid > div { display: grid; gap: 4px; min-width: 0; }
.cspub-live em, .cspub-eco em { font: 600 11px/1.3 var(--font-body, Inter, system-ui, sans-serif); font-style: normal; color: #9fb0c6; text-transform: uppercase; }
.cspub-live b { font: 650 16px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #fff; overflow-wrap: anywhere; }
.cspub-live b.cspub-live__count { font-size: 40px; line-height: 1.05; font-weight: 750; color: var(--cp-accent); font-variant-numeric: tabular-nums; }
.cspub-live__count small { font-size: 18px; color: #c9d4e2; margin-left: 4px; }
.cspub-live__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cspub-live__grid > div { padding: 10px 12px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .16); background: rgba(4, 20, 35, .6); }
.cspub-live__bar { margin-top: 12px; height: 8px; }
.cspub-live__addr { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1.4 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; }
.cspub-live__addr code { font: 500 12px/1.4 var(--font-mono, monospace); color: #e3ebf4; background: rgba(4, 20, 35, .7); padding: 4px 8px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .14); }
.cspub-live .cspub-live-state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 4px; border: .8px solid rgba(255, 255, 255, .15); background: rgba(11, 16, 23, .85); font: 500 12px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #e0e8f2; }
.cspub-live-state[data-state="locked"] .cspub-dot, #cspubPanelLive[data-state="locked"] .cspub-dot { background: var(--cp-strong); }
.cspub-live-state[data-state="offline"] .cspub-dot, .cspub-live-state[data-state="unavailable"] .cspub-dot { background: #ff3b47; }

#flowCsPub .cspub-vipcard { background: radial-gradient(120% 120% at 100% 0%, rgba(var(--cp-rgb), .18), rgba(7, 18, 29, .86) 55%); border-color: var(--cp-line); }
.cspub-perks { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 8px; }
.cspub-perks li { display: flex; gap: 10px; align-items: flex-start; font: 500 13.5px/1.45 var(--font-body, Inter, system-ui, sans-serif); color: #e3ebf4; }
.cspub-perks svg { width: 18px; height: 18px; flex: none; color: var(--cp-accent); margin-top: 1px; }
.cspub-btn--ghost2 { width: 100%; justify-content: space-between; color: #fff; border: .8px solid var(--cp-line); background: rgba(var(--cp-band-rgb), .75); }
.cspub-btn--ghost2:hover { background: rgba(var(--cp-rgb), .3); }

.cspub-eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cspub-eco > div { padding: 12px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .16); background: rgba(4, 20, 35, .6); display: grid; gap: 4px; min-width: 0; }
.cspub-eco b { font: 700 18px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.cspub-count { min-width: 28px; padding: 4px 8px; border-radius: 999px; text-align: center; border: .8px solid var(--cp-line); color: var(--cp-accent); font: 700 12px/1 var(--font-mono, monospace); }
.cspub-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 10px; padding: 4px; border-radius: 8px; background: rgba(4, 12, 22, .7); border: .8px solid rgba(181, 209, 236, .12); }
.cspub-tabs button { min-height: 34px; border-radius: 6px; border: .8px solid transparent; background: transparent; color: #b9c6d8; cursor: pointer; font: 600 12px/1 var(--font-body, Inter, system-ui, sans-serif); }
.cspub-tabs button[aria-selected="true"] { background: rgba(var(--cp-band-rgb), .9); border-color: var(--cp-line); color: #fff; }
.cspub-tabs button:focus-visible { outline: 2px solid #e3f0ff; outline-offset: 1px; }
.cspub-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow: auto; }
.cspub-events li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; border: .8px solid rgba(181, 209, 236, .12); background: rgba(4, 20, 35, .6); font: 500 13px/1.3 var(--font-body, Inter, system-ui, sans-serif); color: #9fb0c6; }
.cspub-events li b { color: #f2f5f9; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cspub-ev__dot { width: 8px; height: 8px; border-radius: 50%; background: #8295ac; }
.cspub-events .is-join .cspub-ev__dot { background: #46d6a0; }
.cspub-events .is-left .cspub-ev__dot { background: #ff8a8f; }
.cspub-events .is-map .cspub-ev__dot { background: var(--cp-accent); }
.cspub-ev__kind { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.cspub-ev__time { font: 500 11px/1 var(--font-mono, monospace); color: #8295ac; }

.cspub-rankings__head { flex-wrap: wrap; }
.cspub-rank-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cspub-search input { width: 220px; max-width: 60vw; min-height: 40px; padding: 8px 12px; border-radius: 7px; border: .8px solid rgba(181, 209, 236, .24); background: rgba(4, 12, 22, .82); color: #eaf0f7; font: 500 13px/1.2 var(--font-body, Inter, system-ui, sans-serif); }
.cspub-search input:focus { outline: none; border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(var(--cp-rgb), .25); }
.cspub-mine { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 13px/1.2 var(--font-body, Inter, system-ui, sans-serif); color: #c9d4e2; }
.cspub-mine input { width: 16px; height: 16px; accent-color: var(--cp-strong); }
.cspub-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
#flowCsPub .cspub-top li { grid-template-columns: 40px minmax(0, 1fr) auto; }
#flowCsPub .cspub-top li::before { content: none; }
.cspub-top__pos { font: 600 12px/1 var(--font-mono, monospace); color: #9fb0c6; }
.cspub-top li:first-child .cspub-top__pos { color: var(--cp-accent); }
.cspub-top li.is-me { background: rgba(var(--cp-rgb), .2); border-radius: 6px; box-shadow: inset 3px 0 var(--cp-strong); }

.cspub-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cspub-shop-grid .cspub-shop-item { margin-top: 14px; }
.cspub-inv-head .cspub-tag { margin-bottom: 8px; }

@media (max-width: 980px) {
  .cspub-today, .cspub-eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cspub-shop-grid, .cspub-rank-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cspub-nav { overflow-x: auto; flex-wrap: nowrap; }
  .cspub-nav button { flex: none; }
  .cspub-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cspub-search input { width: 100%; max-width: none; }
  .cspub-rank-tools, .cspub-search { width: 100%; }
}

/* ---- 2026-10-18: own page. js page() puts body.pp-logged + body.cspub-page on while the public server is open:
   style.css then hides the panel intro and the server choice, exactly as for a signed-in ZP / SFG / GRPLS player.
   The bar mirrors their "change game account" row; the button copies that control's look (network actions). */
.cspub-pagebar { display: none; }
body.cspub-page .cspub-pagebar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
#flowCsPub .cspub-allservers {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 18px; margin: 0;
  border: 0; border-radius: 7px; cursor: pointer;
  font: 600 13px/20px "Chakra Petch", Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #eaf0f7;
  background: linear-gradient(rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)), linear-gradient(rgba(26, 36, 54, .64), rgba(10, 16, 28, .78));
  box-shadow: inset 0 1px 0 rgba(233, 242, 250, .1), 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .75);
  transition: box-shadow .15s ease, color .15s ease;
}
#flowCsPub .cspub-allservers svg { width: 20px; height: 20px; flex: none; color: #c5d2e0; transition: transform .15s ease; }
#flowCsPub .cspub-allservers:hover { box-shadow: inset 0 0 0 .8px var(--cp-line), inset 0 1px 0 rgba(233, 242, 250, .1), 0 10px 24px -14px rgba(0, 0, 0, .75); }
#flowCsPub .cspub-allservers:hover svg { transform: translateX(-2px); color: var(--cp-accent); }
#flowCsPub .cspub-allservers:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 3px; }
#flowCsPub .cspub-hero__title:focus { outline: none; }
.net-breadcrumb.cspub-crumbs > span[aria-current]:not(.cspub-crumb-here) { display: none; }
.net-breadcrumb .cspub-crumb-back { color: inherit; text-decoration: none; }
.net-breadcrumb .cspub-crumb-back:hover { color: #eaf0f7; text-decoration: underline; text-underline-offset: 3px; }
.net-breadcrumb .cspub-crumb-here { color: #eaf0f7; }
@media (max-width: 640px) {
  body.cspub-page .cspub-pagebar { justify-content: stretch; }
  #flowCsPub .cspub-allservers { flex: 1; justify-content: center; }
}
