/* cs.parsabr.com — CS2 servers + launcher. Built on the X-mono tokens (tokens.css).
   Monochrome. Colour appears only for measured status: ok / warn / danger. RTL, Latin digits. */


/* ---------- base */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; background: var(--paper); transition: background-color .25s var(--ease), color .25s var(--ease); }
.container { width: 100%; padding-inline: var(--gutter); }
.en { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--strong); color: var(--paper); font-weight: 700; }
.skip:focus { top: 12px; }
.btn-xs .ico { width: 16px; height: 16px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1.02rem; font-weight: 800; gap: 10px; }
.btn-lg .ico { width: 20px; height: 20px; stroke-width: 2; }
.chip { color: var(--muted-ink); }
/* cs always used the browser default line height inside keys (the kit sets 1); keep the look */
.btn { line-height: normal; }

/* ---------- hero */
.hero-txt { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.h1 { font-size: clamp(2.15rem, 1rem + 4.6vw, 4.6rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.03em; color: var(--strong); text-wrap: balance; }
.h1 > span { display: block; }
.h1-2 { color: var(--text-2); }
.lede { font-size: clamp(1rem, .96rem + .25vw, 1.12rem); color: var(--text-2); line-height: 2; max-width: 56ch; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; width: 100%; }
.feat li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.feat .ico { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--chip-bg); border: 1px solid var(--line); color: var(--text); stroke-width: 1.7; }
.feat div { display: grid; gap: 0; min-width: 0; line-height: 1.7; }
.feat b { font-weight: 700; color: var(--strong); font-size: .97rem; }
.feat span { font-size: .86rem; color: var(--muted-ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-file { display: grid; line-height: 1.6; font-size: .85rem; }
.cta-file .mono { color: var(--text); font-size: .85rem; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }

/* live strip: real status + the visitor's real HTTPS ping */
.strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; min-height: 64px; padding: 10px 10px 10px 10px; padding-inline-start: 22px;
  border-radius: 22px; background: var(--header-glass); border: 1px solid var(--line);
  box-shadow: var(--ghost-inset), 0 18px 40px -28px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color .15s ease; color: var(--text); }
.strip:hover { border-color: var(--hair-2); }
.st-seg { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding-inline-end: 22px; margin-inline-end: 22px; border-inline-end: 1px solid var(--line); font-size: .92rem; line-height: 1.6; }
.st-status { font-weight: 700; color: var(--strong); }
.st-meta { color: var(--muted-ink); gap: 18px; flex-wrap: wrap; }
.st-meta b { color: var(--text); font-weight: 700; }
.st-ping { border-inline-end: 0; flex: 1 1 auto; }
.st-k { color: var(--muted-ink); white-space: nowrap; }
.st-k .en { font-size: .8em; }
.st-v { direction: ltr; unicode-bidi: isolate; font-weight: 800; font-size: 1.05rem; color: var(--strong); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.6ch; }
.st-v small { font-size: .74rem; font-weight: 700; color: var(--muted-ink); margin-left: 3px; }
.st-v.ok { color: var(--ok-ink); } .st-v.warn { color: var(--warn-ink); } .st-v.down { color: var(--danger-ink); font-size: .92rem; }
.st-spark { width: clamp(80px, 14vw, 180px); height: 28px; flex: none; overflow: visible; color: var(--faint); }
.st-spark.ok { color: var(--ok); } .st-spark.warn { color: var(--warn); } .st-spark.down { color: var(--danger); }
.st-spark path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-go { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: var(--radius-pill); margin-inline-start: auto;
  background: var(--ghost-bg); border: 1px solid var(--ghost-border); box-shadow: var(--ghost-inset); font-weight: 700; font-size: .9rem; }
.st-go .ico { width: 16px; height: 16px; }

/* hero motion: one orchestrated load sequence */
@media (prefers-reduced-motion: no-preference) {
  .rv { animation: rv-in .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }
}

/* ---------- sections */
.section { padding-block: var(--sec-pad); }
.section > .container, .footer > .container { max-width: 1180px; }
.section-tight { padding-block: clamp(8px, 2vw, 24px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-title { display: grid; gap: 8px; min-width: 0; max-width: 640px; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.35rem); font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; color: var(--strong); }
.sec-lede { color: var(--text-2); line-height: 1.95; max-width: 60ch; }
.sec-note { margin-top: 0; font-size: .84rem; color: var(--muted-ink); line-height: 1.9; max-width: 64ch; padding-inline-start: 12px; border-inline-start: 2px solid var(--hair-2); }

/* ---------- live servers */
.sync { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--chip-bg); border: 1px solid var(--line); font-size: .84rem; color: var(--muted-ink); max-width: 100%; }
.sync-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.led { flex: none; }
.led.idle { background: #7b868e; color: #7b868e; box-shadow: none; animation: none; }
:root[data-theme="dark"] .led.idle { background: #5c656c; color: #5c656c; }
.led.ok { background: var(--ok); color: var(--ok); }
.led.warn { background: var(--warn); color: var(--warn); }
.led.down { background: var(--danger); color: var(--danger); animation: none; }

.srv-grid { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.srv-grid.solo { grid-template-columns: minmax(0, 1fr); }
.srv { container: srv / inline-size; min-width: 0; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; align-content: start;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pg" "info" "bo"; }
.srv:hover { border-color: var(--line); box-shadow: var(--shadow-card); }
.srv-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.srv-info { grid-area: info; display: grid; gap: 12px; min-width: 0; }
.srv-name { font-size: 1.25rem; font-weight: 800; color: var(--strong); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.srv-state { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--chip-bg); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--text); flex: none; }

/* live ping block (real measurements from this browser) */
.pg { grid-area: pg; display: grid; gap: 10px; min-width: 0; color: var(--faint); }
.pg.ok { color: var(--ok); } .pg.warn { color: var(--warn); } .pg.down { color: var(--danger); }
.pg-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.pg-k { font-size: .82rem; color: var(--muted-ink); font-weight: 600; line-height: 1.6; }
.pg-k .en { font-size: .9em; }
.pg-v { direction: ltr; unicode-bidi: isolate; white-space: nowrap; line-height: 1.05; display: inline-flex; align-items: baseline; gap: 4px; }
.pg-v b { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--strong); }
.pg.ok .pg-v b { color: var(--ok-ink); } .pg.warn .pg-v b { color: var(--warn-ink); } .pg.down .pg-v b { color: var(--danger-ink); }
.pg-v small { font-size: .82rem; font-weight: 700; color: var(--muted-ink); }
.pg-v .fail { font-size: 1.05rem; font-weight: 800; direction: rtl; color: var(--danger-ink); }
.pg-plot { position: relative; height: 128px; border-radius: 12px; background: var(--chip-bg); border: 1px solid var(--line); overflow: hidden; }
.pg-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; direction: ltr; }
.pg-plot .gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.pg-plot .ax { fill: var(--muted-ink); font-size: 9px; font-family: var(--font-mono); }
.pg-plot .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pg-plot .loss { fill: var(--danger); opacity: .28; }
.pg-plot .dot { fill: currentColor; }
.pg-plot .halo { fill: currentColor; opacity: .5; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .pg-plot .halo { animation: pg-pulse 1.8s ease-out infinite; }
}
@keyframes pg-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.6); opacity: 0; } }
.pg-plot .hl { stroke: var(--hair-2); stroke-width: 1; stroke-dasharray: 3 3; }
.pg-plot .hd { fill: var(--white); stroke: currentColor; stroke-width: 2; }
.pg-tip { position: absolute; top: 6px; transform: translateX(-50%); display: inline-flex; gap: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--header-glass); border: 1px solid var(--hair-2); font-size: .75rem; font-weight: 700; color: var(--text); white-space: nowrap; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pg-tip .ms { direction: ltr; unicode-bidi: isolate; }
.pg-tip .ago { color: var(--muted-ink); font-weight: 600; }
.pg-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-size: .85rem; color: var(--muted-ink); pointer-events: none; }
.pg-msg:empty { display: none; }
.pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pg-stats > div { display: grid; padding: 6px 10px; border-radius: .7rem; background: var(--chip-bg); border: 1px solid var(--line); min-width: 0; }
.pg-stats dt { font-size: .72rem; color: var(--muted-ink); line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-stats dd { justify-self: start; direction: ltr; unicode-bidi: isolate; font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-stats dd small { font-size: .7rem; font-weight: 600; color: var(--muted-ink); margin-left: 2px; }
.pg-stats dd.bad { color: var(--danger-ink); }

.addr { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding-inline: 16px 6px; border-radius: var(--radius-pill);
  background: var(--input); border: 1px solid var(--line); box-shadow: none; }
.addr-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: .9rem; font-weight: 400; color: var(--text); }
.copy { flex: none; }
.copy .c-ok { display: none; }
.copy.done .c-ok { display: block; }
.copy.done .c-copy { display: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--chip-bg); border: 1px solid var(--line); min-width: 0; align-content: start; }
.fact dt { font-size: .76rem; color: var(--muted-ink); font-weight: 600; }
.fact dd { font-weight: 800; color: var(--strong); font-size: 1.05rem; line-height: 1.6; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact dd.mono { font-size: .95rem; text-align: right; }
.pl { font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); min-width: 0; border-radius: inherit; background: var(--strong); transition: width .5s var(--ease); }
.bo { grid-area: bo; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.8;
  background: var(--chip-bg); border: 1px solid var(--hair-2); color: var(--text); font-weight: 600; }
.bo .ico { width: 18px; height: 18px; color: var(--text-2); }
.srv.is-off .srv-name { color: var(--muted-ink); }
.srv.is-off .fact dd { color: var(--muted-ink); }
.srv-grid.stale .srv-head, .srv-grid.stale .srv-info { opacity: .6; transition: opacity .3s ease; }

/* wide card (one server on a wide screen): details on one side, the live ping on the other */
.srv-grid { container: grid / inline-size; }
@container grid (min-width: 760px) {
  .srv-grid.solo .srv { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head pg" "info pg" "bo bo";
    grid-template-rows: auto 1fr auto; column-gap: clamp(28px, 5cqi, 64px); row-gap: 20px; padding: 30px 32px; }
  .srv-grid.solo .srv-name { font-size: 1.55rem; }
  .srv-grid.solo .srv-info { align-content: end; }
  .srv-grid.solo .pg-plot { height: 172px; }
}
@container srv (max-width: 300px) {
  .copy span { display: none; }
  .copy { width: 36px; padding: 0; }
  .fact { padding: 10px 12px; }
}
@container srv (max-width: 380px) {
  .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container srv (max-width: 230px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}
.fact dd.none { font-family: var(--font); color: var(--muted-ink); }

/* loading skeleton: same structure as a real card, so nothing jumps */
.srv.is-loading [data-f="name"], .srv.is-loading [data-f="state"], .srv.is-loading [data-f="addr"],
.srv.is-loading [data-f="map"], .srv.is-loading [data-f="pl"] {
  color: transparent; border-radius: 8px; background: var(--chip-bg); }
.srv.is-loading [data-f="name"] { width: 9ch; }
.srv.is-loading .copy { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .srv.is-loading [data-f="name"], .srv.is-loading [data-f="state"], .srv.is-loading [data-f="addr"], .srv.is-loading [data-f="map"], .srv.is-loading [data-f="pl"] { animation: skel 1.4s ease-in-out infinite; }
}
@keyframes skel { 50% { opacity: .45; } }

.srv-msg { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 6px; min-height: 300px; padding: 36px 24px; border-style: dashed; }
.srv-msg:hover { border-color: var(--line); box-shadow: var(--shadow-card); }
.srv-msg .t { font-size: 1.15rem; font-weight: 800; color: var(--strong); }
.srv-msg p { color: var(--muted-ink); max-width: 46ch; font-size: .92rem; }
.srv-msg .btn { margin-top: 10px; }

/* ---------- download (ink panel, dark in both themes) */
.dl { display: grid; gap: 28px 56px; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4.4vw, 52px); border-radius: 24px; position: relative; overflow: hidden; }
.dl::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 70%); }
.dl > * { position: relative; }
.dl .h2 { color: #fff; }
.dl-main { display: grid; gap: 14px; align-content: start; justify-items: start; }
.dl-main p { line-height: 1.95; max-width: 46ch; }
.dl-cta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-ink:hover { filter: brightness(1.04); }
.btn-on-ink:focus-visible { outline-color: #fff; }
.dl-spec { display: grid; align-content: start; border-top: 1px solid var(--line-ink); }
.dl-spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-ink); }
.dl-spec dt { color: var(--text-2-on-ink); font-size: .88rem; flex: none; }
.dl-spec dd { color: var(--text-on-ink); font-weight: 700; text-align: left; font-size: .95rem; }
.dl-note { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-ink); }
.dl-note .ico { width: 22px; height: 22px; color: #fbbf24; margin-top: 5px; }
.dl-note p { font-size: .9rem; line-height: 1.95; color: var(--text-2-on-ink); }
.dl-note b { color: var(--text-on-ink); }
.dl-note .en { color: var(--text-on-ink); font-weight: 600; }
@media (min-width: 900px) {
  .dl { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ---------- steps: a real sequence */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); align-content: start; }
.step-n { grid-row: 1 / span 2; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 900; line-height: 1; color: var(--strong); font-variant-numeric: tabular-nums;
  width: 1.3ch; letter-spacing: -0.04em; padding-top: 4px; }
.step h3 { font-size: 1.15rem; font-weight: 800; color: var(--strong); line-height: 1.6; }
.step p { color: var(--text-2); font-size: .94rem; line-height: 1.95; max-width: 52ch; }
.step .mono { color: var(--text); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: minmax(0, 1fr); padding: 32px 0 34px; padding-inline: 0 32px; border-bottom: 0; row-gap: 10px; }
  .step + .step { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
  .step-n { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- faq: bare hairline list */
.section-faq { padding-top: 0; }
.faq-wrap { display: grid; gap: 24px 64px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .faq-wrap { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
  .faq-head { position: sticky; top: calc(var(--head-total) + 24px); }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-weight: 700; font-size: 1.05rem; color: var(--strong); line-height: 1.7; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--text-2); transition: transform .2s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:hover .ico { color: var(--text); }
.ans { padding: 0 2px 22px; display: grid; gap: 10px; max-width: 68ch; }
.ans p, .ans li { color: var(--text-2); line-height: 2; }
.ans .mono { color: var(--text); }
.ticks { display: grid; gap: 6px; }
.ticks li { position: relative; padding-inline-start: 22px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .95em; width: 8px; height: 2px; border-radius: 2px; background: var(--text-2); }

/* ---------- mobile dock */
.mdock { display: none; }
@media (max-width: 700px) {
  .mdock { display: flex; position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 56px; padding: 6px; gap: 4px; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--paper) 82%, transparent); border: 1px solid var(--hair-2);
    box-shadow: var(--ghost-inset), 0 16px 40px -18px rgba(0,0,0,.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
  .mdock a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill);
    font-weight: 700; font-size: .92rem; color: var(--muted-ink); transition: background-color .15s ease, color .15s ease; }
  .mdock a[aria-current="true"] { background: var(--strong); color: var(--paper); }
  body { padding-bottom: 84px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1179.98px) {
  /* below desktop: the live strip comes right after the download button, the feature list after it */
  .hero-main { display: contents; }
  .hero-txt { order: 1; }
  .strip { order: 2; }
  .feat { order: 3; }
}
@media (max-width: 700px) {
  .strip { padding: 14px 14px 12px 14px; gap: 12px; border-radius: 20px; }
  .st-seg { padding-inline-end: 0; margin-inline-end: 0; border-inline-end: 0; }
  .st-status { flex: 1 1 100%; }
  .st-meta { flex: 1 1 100%; margin-top: -6px; font-size: .86rem; }
  .st-ping { flex: 1 1 100%; padding-top: 12px; border-top: 1px solid var(--line); }
  .st-spark { flex: 1 1 auto; width: auto; min-width: 60px; }
  .st-go { flex: 1 1 100%; justify-content: center; margin-inline-start: 0; }
}
@media (max-width: 560px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cta { width: 100%; }
  .cta .btn-lg { width: 100%; }
  .dl-cta, .dl-cta .btn { width: 100%; }
  .dl-spec > div { flex-direction: column; gap: 2px; align-items: flex-start; }
  .dl-spec dd { text-align: right; }
}

/* ---------- toast */
.toast { position: fixed; z-index: 90; inset-inline: 12px; bottom: 24px; margin-inline: auto; width: fit-content; max-width: min(520px, calc(100vw - 24px));
  padding: 10px 20px; border-radius: var(--radius-pill); background: var(--header-glass); border: 1px solid var(--hair-2);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 700; font-size: .9rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: rv-in .25s var(--ease) both; }
}

/* map preview + server password */
.mapfig { margin: 0; display: grid; gap: 8px; }
.mapfig[hidden], .cmd[hidden] { display: none; }
.mapfig img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--line); }
.mapfig figcaption { color: var(--muted-ink); font-size: .82rem; }
.cmd { display: grid; gap: 6px; }
.cmd-k { color: var(--muted-ink); font-size: .8rem; font-weight: 600; }
.cmd .addr-v { font-size: .84rem; }
/* one server on a wide screen: the ping block fills the card height instead of leaving gaps between its parts */
@container grid (min-width: 760px) {
  .srv-grid.solo .pg { grid-template-rows: auto 1fr auto; align-content: stretch; }
  .srv-grid.solo .pg-plot { height: auto; min-height: 172px; }
}
/* the full command may wrap instead of being cut; the ping block keeps a sensible height and sits in the middle of the card */
.cmd .addr { height: auto; min-height: 48px; padding-block: 8px; }
.cmd .addr-v { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.mapfig img { max-width: none; }
@container grid (min-width: 760px) {
  .srv-grid.solo .pg { align-self: center; grid-template-rows: auto auto auto; }
  .srv-grid.solo .pg-plot { height: 260px; min-height: 0; }
}

/* grouped, compact server list (several servers) */
.srv-group { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: clamp(10px, 2vw, 22px); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.srv-group:first-child { margin-top: 0; }
.srv-group b { font-size: 1.1rem; font-weight: 800; color: var(--strong); }
.srv-group span { font-size: .85rem; color: var(--muted-ink); }
.srv-grid.multi .srv { gap: 14px; padding: clamp(16px, 2vw, 22px); }
.srv-grid.multi .pg-plot, .srv-grid.multi .pg-stats { display: none; }
.srv-grid.multi .pg-top { align-items: center; }
.srv-grid.multi .pg-v b { font-size: 1.5rem; }
.srv-grid.multi .mapfig img { max-height: 120px; object-fit: cover; width: 100%; }
