/* Live (ps2tracker.com/live). The squads look like rollagain.org's (its SquadBoard and MemberCard: the same tokens,
   fonts, corners, spacing), copied here: nothing is imported from that site. Dark only, like the rest of PS2 Tracker's
   live pages. */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("/live/fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("/live/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("/live/fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/live/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/live/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/live/fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/live/fonts/ibm-plex-sans-700.woff2") format("woff2"); }

:root {
  --bg: #0b0f14; --surface: #121821; --surface-2: #1a2230; --line: #263041; --line-strong: #36435a;
  --fg: #e6edf3; --muted: #8b98a9; --accent: #2bd9c8; --accent-ink: #03211e;
  --success: #3fb950; --warning: #f5b83d; --danger: #f85149; --gold: #f5c518;
  --vs: #8b5cf6; --nc: #3b82f6; --tr: #ef4444; --nso: #9ca3af;
  --c-inf: oklch(0.8 0.15 125); --c-la: oklch(0.84 0.13 90); --c-med: oklch(0.74 0.15 350); --c-eng: oklch(0.75 0.15 55); --c-ha: oklch(0.72 0.11 225); --c-max: oklch(0.74 0.05 70);
  --display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--text); font-variant-numeric: tabular-nums; min-height: 100vh; overflow-x: hidden;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  background-image: radial-gradient(color-mix(in oklab, var(--line) 55%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.label { margin: 0; font: 600 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 var(--display); letter-spacing: .08em; color: var(--fg); text-decoration: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px color-mix(in oklab, var(--danger) 25%, transparent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.top-links { display: flex; gap: 16px; margin-left: 6px; font-size: 14px; }
.top-links a { color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--fg); }
.top .btn.primary { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg); font: 600 14px/1 var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); }
.btn.danger { background: color-mix(in oklab, var(--danger) 16%, var(--surface)); border-color: color-mix(in oklab, var(--danger) 55%, var(--line)); color: #ffb3ae; }
.btn.big { height: 46px; padding: 0 20px; font-size: 16px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-bar { margin: 0; padding: 6px 20px; text-align: center; font: 600 13px/1.4 var(--text); color: #1b1300; background: var(--warning); }

/* ---------------------------------------------------------------- lobby */
main { padding-top: 28px; padding-bottom: 40px; }
.title { margin: 0; font: 700 clamp(28px, 4.2vw, 44px)/1.1 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.title em { font-style: normal; color: var(--accent); }
.title small { font: 600 .55em/1 var(--display); color: var(--accent); margin-left: .25em; white-space: nowrap; }
.lead { max-width: 820px; margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; max-width: 980px; }
.way { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: color-mix(in oklab, var(--surface) 60%, transparent); }
.way p { margin: 6px 0 0; }
.way-note { color: var(--warning); font-size: 14px; }
.find { margin-top: 26px; max-width: 480px; }
.find-row { display: flex; gap: 8px; margin-top: 8px; }
.find input { flex: 1; min-width: 0; height: 36px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); padding: 0 12px; font: 400 16px/1 var(--text); }
.list-head { display: flex; align-items: baseline; gap: 10px; margin-top: 32px; }
.count { font: 700 20px/1 var(--display); }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 12px; }
.room-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); text-decoration: none; min-width: 0; }
.room-card:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }
.room-card.stale { opacity: .6; }
.rc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-name { font: 700 20px/1.2 var(--display); overflow-wrap: anywhere; }
.rc-what { color: var(--accent); font: 600 14px/1 var(--display); }
.rc-meta { color: var(--muted); font-size: 14px; }
.rc-names { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { margin-top: 18px; padding: 26px 20px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); max-width: 820px; }
.empty-big { margin: 0 0 6px; font: 700 20px/1.2 var(--display); color: var(--fg); }
.empty p { margin: 0; }

/* ---------------------------------------------------------------- room */
.back { margin: 0 0 14px; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--fg); }
.room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.room-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-tools { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; flex-basis: 100%; order: 3; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--display); letter-spacing: .06em; white-space: nowrap;
  color: var(--muted); background: color-mix(in oklab, var(--muted) 16%, transparent); }
.pill.f1 { color: var(--vs); background: color-mix(in oklab, var(--vs) 18%, transparent); }
.pill.f2 { color: var(--nc); background: color-mix(in oklab, var(--nc) 18%, transparent); }
.pill.f3 { color: var(--tr); background: color-mix(in oklab, var(--tr) 18%, transparent); }
.pill.ok { color: var(--success); background: color-mix(in oklab, var(--success) 16%, transparent); }
.pill.live { color: var(--danger); background: color-mix(in oklab, var(--danger) 16%, transparent); }
.pill.stale { color: var(--warning); background: color-mix(in oklab, var(--warning) 16%, transparent); }
.pill.demo { color: #1b1300; background: var(--warning); }
.pill .dot { width: 7px; height: 7px; box-shadow: none; }
.pill svg { width: 13px; height: 13px; fill: currentColor; }
.totals { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.totals b { color: var(--fg); font: 700 18px/1 var(--display); margin-right: 4px; }
.note { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--warning); background: color-mix(in oklab, var(--warning) 10%, transparent); border: 1px solid color-mix(in oklab, var(--warning) 35%, var(--line)); }
.squads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: start; margin-top: 18px; }
.squads.one { grid-template-columns: minmax(0, 560px); }
/* rollagain's column: rounded-md border p-2.5, gap-1.5, a translucent surface */
.squad { display: flex; flex-direction: column; gap: 6px; min-height: 128px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in oklab, var(--surface) 60%, transparent); }
.squad.stale { opacity: .62; }
.squad-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; font-family: var(--display); }
.squad-name { font-size: 14px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.squad-n { font-size: 20px; font-weight: 700; }
.squad-n.full { color: var(--warning); }
.squad-fresh { margin-left: auto; font: 400 12px/1 var(--text); color: var(--muted); white-space: nowrap; }
.squad-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0 4px 2px; font-size: 13px; color: var(--muted); min-height: 20px; }
.squad-sub .mk { display: inline-flex; align-items: center; gap: 4px; }
.squad-empty { padding: 12px 4px; font-size: 14px; color: var(--muted); font-style: italic; }
.colhead { display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; padding: 2px 13px 0; font: 600 11px/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.colhead .hg { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.colhead .hg b { color: var(--fg); font-weight: 700; font-size: 12px; }
.colhead .hg small { font: 400 9px/1 var(--text); letter-spacing: 0; white-space: nowrap; }
.colhead .hkd { width: 40px; text-align: center; color: var(--fg); font-weight: 700; font-size: 12px; }

/* rollagain's member card: rounded-md border, px-3 py-2.5, the name bold, a 13 px muted second line */
.member { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.member.pl { outline: 2px solid var(--nc); outline-offset: -1px; background: color-mix(in oklab, var(--nc) 8%, var(--surface)); }
.member.sl { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); }
.member.dead .m-name { color: var(--muted); }
.m-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.m-name { font-weight: 700; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
a.m-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-name.unsure { text-decoration: underline dashed var(--muted); text-underline-offset: 4px; font-weight: 600; }
.m-q { color: var(--warning); font-weight: 700; cursor: help; }
.m-tag { font-size: 13px; color: var(--muted); }
.m-tag.other { color: var(--danger); }
.crown { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.member.pl .crown { color: var(--nc); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 700 11px/1 var(--text); letter-spacing: .06em; white-space: nowrap; flex: none; }
.badge.sl { color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, transparent); }
.badge.pl { color: var(--nc); background: color-mix(in oklab, var(--nc) 18%, transparent); }
.badge.ft { color: var(--muted); background: color-mix(in oklab, var(--muted) 14%, transparent); padding: 0 6px; }
.badge.dead { color: var(--danger); background: color-mix(in oklab, var(--danger) 14%, transparent); }
.fdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sharing { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-row { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.m-sub { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.m-sub > span { white-space: nowrap; }
.m-sub strong { color: var(--fg); font-weight: 600; }
.cls { display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor; vertical-align: -0.15em; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cls.infiltrator { --i: url("/live/classes/infiltrator.png"); color: var(--c-inf); }
.cls.light-assault { --i: url("/live/classes/light-assault.png"); color: var(--c-la); }
.cls.medic { --i: url("/live/classes/combat-medic.png"); color: var(--c-med); }
.cls.engineer { --i: url("/live/classes/engineer.png"); color: var(--c-eng); }
.cls.heavy-assault { --i: url("/live/classes/heavy-assault.png"); color: var(--c-ha); }
.cls.max { --i: url("/live/classes/max.png"); color: var(--c-max); }
.skull { width: 14px; height: 14px; flex: none; fill: var(--danger); vertical-align: -0.15em; }
/* the columns: kills, revives, deaths (5, 10, 15 minutes each), K/D */
.stats { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.g { display: inline-grid; grid-template-columns: repeat(3, 20px); width: 60px; height: 22px; border-radius: 4px; overflow: hidden; background: var(--surface-2); cursor: help; }
.g i { display: grid; place-items: center; font: 600 12px/1 var(--text); font-style: normal; color: var(--fg); }
.g i.z { color: color-mix(in oklab, var(--muted) 55%, transparent); }
.g.k i:not(.z) { background: color-mix(in oklab, var(--success) calc(var(--a) * 1%), transparent); }
.g.r i:not(.z) { background: color-mix(in oklab, var(--c-med) calc(var(--a) * 1%), transparent); }
.g.d i:not(.z) { background: color-mix(in oklab, var(--danger) calc(var(--a) * 1%), transparent); }
.kd { width: 40px; text-align: center; font: 700 13px/22px var(--text); color: var(--fg); border-radius: 4px; background: var(--surface-2); cursor: help; }
.kd.none { color: var(--muted); font-weight: 400; }
.kd.good { color: var(--success); }
.veh { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 4px; border-radius: 4px; font: 600 12px/1 var(--text); color: var(--muted); background: var(--surface-2); cursor: help; white-space: nowrap; }
.veh svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.veh.now { color: var(--accent-ink); background: var(--accent); }
.legend { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 820px; }
.legend summary { cursor: pointer; }
.legend ul { margin: 8px 0 0; padding-left: 20px; }
.legend b { color: var(--fg); }

/* ---------------------------------------------------------------- a platoon: rollagain's platoon layout
   (rollagain.org/<outfit>/<event>, its PlannerPage): "PLATOON n / 48", then the squads as columns (one, two from
   600 px of room, four from 1160), each a box of compact rows with dashed open slots up to 12; a row's details slide
   in from the right. */
.is-platoon .room-head { display: grid; grid-template-columns: minmax(0, auto) auto minmax(0, 1fr); grid-template-areas: "chips chips chips" "title tools ."; align-items: center; gap: 8px 10px; }
.is-platoon .chips { grid-area: chips; }
.is-platoon .room-title { grid-area: title; gap: 10px; }
.is-platoon .room-tools { grid-area: tools; margin: 0; }
.is-platoon .title { font-size: clamp(24px, 3vw, 30px); }
.is-platoon #copy { width: 34px; height: 34px; padding: 0; }   /* rollagain's copy button: an icon next to the title */
.is-platoon #copyT { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-platoon #copy.done { border-color: var(--success); color: var(--success); }
.is-platoon .totals { margin-top: 8px; font-size: 14px; gap: 4px 18px; }
.is-platoon .totals b { font-size: 15px; font-family: var(--text); }
.platoon-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 12px; }
.platoon-bar h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 600; }
.pb-label { font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.pb-n { font-size: 22px; font-weight: 700; white-space: nowrap; }
.pb-note { font-size: 14px; color: var(--muted); white-space: nowrap; }
.pb-note b { color: var(--fg); }
.pb-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-right .pill { height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); font: 600 13px/1 var(--text); letter-spacing: 0; }
.platoon { container-type: inline-size; }
.platoon-grid { display: grid; align-items: start; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 600px) { .platoon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 1160px) { .platoon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.psquad { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in oklab, var(--surface) 45%, var(--bg)); }
.psquad.stale { opacity: .62; }
.psquad-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 6px; }
.psquad-head h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 600; white-space: nowrap; }
.ps-label { font-size: 13px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.ps-n { font-size: 19px; font-weight: 700; }
.ps-n.full, .ps-open.full { color: var(--warning); }
.ps-open { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }
.psquad-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 0 2px 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.psquad-sub .mk { display: inline-flex; align-items: center; gap: 3px; }
.psquad-sub .cls, .psquad-sub .skull { width: 12px; height: 12px; }
.psquad-sub .ps-fresh { margin-left: auto; white-space: nowrap; }
.pcard { position: relative; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; padding: 0; gap: 0; transition: box-shadow .15s; }
.pcard.pl { outline: 2px solid var(--nc); outline-offset: -1px; background: var(--surface); }
.pcard.sl { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--line); background: var(--surface); }
.pcard.sel { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcard-in { display: flex; align-items: center; gap: 6px; padding: 5px 6px 8px 8px; }
.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-top { display: flex; min-width: 0; align-items: center; gap: 5px; }
.pc-top .m-name { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.25; font-weight: 700; overflow-wrap: normal; }
.pc-top .m-tag { font-size: 12px; min-width: 0; overflow: hidden; white-space: nowrap; flex: 0 1 auto; }
.pc-top .fdot { width: 7px; height: 7px; }
.pc-top .sharing { width: 14px; height: 14px; }
.lb { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 999px; font: 700 11px/1 var(--text); letter-spacing: .06em; flex: none; }
.lb.pl { color: var(--nc); background: color-mix(in oklab, var(--nc) 16%, transparent); }
.lb.sl { color: #c99a00; background: color-mix(in oklab, #c99a00 16%, transparent); }
.lb.ft { color: var(--muted); background: color-mix(in oklab, var(--muted) 14%, transparent); }
.pc-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.pc-sub > span { white-space: nowrap; }
.pc-sub strong { color: var(--fg); font-weight: 600; }
.pc-sub .cls, .pc-sub .skull { width: 13px; height: 13px; margin-right: 3px; }
.pc-sub .veh { height: 17px; padding: 0 5px 0 3px; font-size: 11px; }
.pc-sub .veh svg { width: 13px; height: 13px; }
.pcard.dead .m-name { color: var(--muted); }
.pc-chip { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 22px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface-2); font: 700 12px/1 var(--text); cursor: help; }
.pc-chip b.k { color: var(--success); } .pc-chip b.r { color: var(--c-med); } .pc-chip b.d { color: var(--danger); }
.pc-chip b.z { color: color-mix(in oklab, var(--muted) 60%, transparent); font-weight: 600; }
.pc-more { flex: none; width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .pc-more { color: var(--fg); background: var(--surface-2); }
.pc-bar { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; display: flex; gap: 1px; overflow: hidden; border-radius: 1px; }
.pc-bar i { display: block; height: 100%; }
.pc-bar .k { background: var(--success); } .pc-bar .r { background: var(--c-med); } .pc-bar .d { background: var(--danger); }
.open-slot { display: flex; align-items: center; height: 34px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 12px; color: var(--muted); }
.open-slots-one { display: none; height: 40px; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); }

/* a member's details, from the right (rollagain's details panel) */
.details { position: fixed; top: 61px; right: 0; bottom: 0; z-index: 45; width: 400px; max-width: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); background: var(--surface);
  transform: translateX(100%); visibility: hidden; transition: transform .2s cubic-bezier(.2, .7, .2, 1), visibility 0s .2s; }
.details.open { transform: none; visibility: visible; box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.d-head { position: relative; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.d-tick { position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.d-top { display: flex; align-items: flex-start; gap: 10px; }
.d-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.d-name { margin: 0; font: 700 24px/1.2 var(--display); overflow-wrap: anywhere; color: var(--fg); text-decoration: none; }
a.d-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.d-name-row .m-tag { font-size: 14px; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.d-meta strong { color: var(--fg); font-weight: 600; }
.d-meta .fdot { width: 8px; height: 8px; display: inline-block; margin-right: 6px; }
.d-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.d-close:hover { background: var(--surface-2); color: var(--fg); }
.d-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.d-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface-2); font: 600 13px/1 var(--text); white-space: nowrap; }
.d-chip svg { width: 14px; height: 14px; fill: currentColor; color: var(--accent); }
.d-chip.bad { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, transparent); background: color-mix(in oklab, var(--danger) 13%, transparent); }
.d-chip.warn { color: var(--warning); border-color: color-mix(in oklab, var(--warning) 40%, transparent); background: color-mix(in oklab, var(--warning) 13%, transparent); }
.d-note { font-size: 13px; color: var(--muted); }
.d-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 22px; padding: 16px 18px 32px; }
.d-sec { display: flex; flex-direction: column; gap: 9px; }
.d-label { font: 600 12px/1.2 var(--display); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.d-grid { display: grid; grid-template-columns: 92px repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; font-size: 13px; }
.d-grid .hd { font: 600 11px/1 var(--display); letter-spacing: .1em; color: var(--muted); text-align: center; }
.d-grid .lab { display: inline-flex; align-items: center; gap: 6px; }
.d-grid .lab i { width: 8px; height: 8px; border-radius: 2px; }
.d-cell { height: 28px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-2); font: 700 14px/1 var(--text); }
.d-cell.z { color: color-mix(in oklab, var(--muted) 55%, transparent); font-weight: 400; }
.d-cell.k:not(.z) { background: color-mix(in oklab, var(--success) calc(var(--a) * 1%), var(--surface-2)); }
.d-cell.r:not(.z) { background: color-mix(in oklab, var(--c-med) calc(var(--a) * 1%), var(--surface-2)); }
.d-cell.d:not(.z) { background: color-mix(in oklab, var(--danger) calc(var(--a) * 1%), var(--surface-2)); }
.d-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.d-rows span:nth-child(odd) { color: var(--muted); }
.d-rows span:nth-child(even) { text-align: right; font-weight: 600; white-space: nowrap; }
.d-veh { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.d-veh .veh { align-self: flex-start; height: 24px; font-size: 13px; }
.d-link { align-self: flex-start; }

/* ---------------------------------------------------------------- footer */
.foot { padding-top: 22px; padding-bottom: 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.links a { color: var(--muted); }
.small { margin: 10px 0 0; font-size: 13px; }
.small a { color: inherit; }
.nojs { padding: 20px; text-align: center; }

/* ---------------------------------------------------------------- the consent screen and the help window */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 10, .72); overflow-y: auto; overscroll-behavior: contain; }
.overlay.over2 { z-index: 70; }
.sheet { position: relative; width: min(100%, 620px); margin: auto; padding: 28px 28px 22px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); animation: in .18s ease; }
.small-sheet { width: min(100%, 460px); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.x:hover { background: var(--surface-2); color: var(--fg); }
.x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-title { margin: 0 36px 0 0; font: 700 26px/1.15 var(--display); }
.sheet-lead { margin: 12px 0 0; font-size: 16px; }
.points { margin: 14px 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: color-mix(in oklab, var(--fg) 82%, var(--muted)); }
.points b { color: var(--fg); }
.sheet .btn.big { width: 100%; }
.sheet-err { margin: 12px 0 0; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: #ffb3ae; background: color-mix(in oklab, var(--danger) 12%, transparent); border: 1px solid color-mix(in oklab, var(--danger) 40%, var(--line)); }
.sheet-links { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.demo-note { margin: 12px 0 0; padding: 6px 10px; border-radius: 6px; font: 600 13px/1.4 var(--text); color: #1b1300; background: var(--warning); }
.kicker { margin: 18px 0 6px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.likely { padding: 12px 14px; border-radius: 6px; border: 1px solid color-mix(in oklab, var(--accent) 55%, var(--line)); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.tip-title { margin: 0 0 6px; font: 700 16px/1.3 var(--text); }
.steps, .more ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.more { border-top: 1px solid var(--line); padding: 10px 0; }
.more summary { cursor: pointer; font-weight: 600; }
.more ol { margin-top: 8px; color: color-mix(in oklab, var(--fg) 82%, var(--muted)); }
.help-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- while sharing: the status panel */
.panel { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(360px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.state { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: color-mix(in oklab, var(--muted) 16%, transparent); }
.state.live { color: var(--danger); background: color-mix(in oklab, var(--danger) 18%, transparent); }
.state.verified { color: var(--success); background: color-mix(in oklab, var(--success) 18%, transparent); }
.state.paused, .state.checking { color: var(--warning); background: color-mix(in oklab, var(--warning) 16%, transparent); }
.state.refused { color: #ffb3ae; background: color-mix(in oklab, var(--danger) 26%, transparent); }
.panel-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.panel-min { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.panel-min:hover { background: var(--surface-2); color: var(--fg); }
.panel-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.panel-hint { margin: 0; color: color-mix(in oklab, var(--fg) 85%, var(--muted)); }
.panel-hint.bad { color: #ffb3ae; }
.panel-rows { margin: 0; display: grid; gap: 4px; }
.panel-rows div { display: flex; gap: 10px; }
.panel-rows dt { width: 86px; flex: none; color: var(--muted); }
.panel-rows dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chk { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; white-space: nowrap; }
.chk.ok { color: var(--success); } .chk.fail { color: var(--danger); } .chk.wait { color: var(--muted); } .chk.paused { color: var(--warning); }
.panel-preview { margin: 0; }
.panel-preview canvas { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #000; }
.panel-preview { position: relative; }
.panel-preview.stopped canvas { opacity: .3; filter: grayscale(1); }
.preview-stopped { position: absolute; left: 0; right: 0; top: 0; margin: 0; aspect-ratio: 320 / 134; display: grid; place-items: center; font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); pointer-events: none; }
.panel-preview figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- tooltips (one element; data-tip, data-tip-title) */
.tip { position: fixed; left: 0; top: 0; z-index: 80; max-width: 280px; pointer-events: none; opacity: 0; will-change: transform, opacity; transition: opacity .15s ease; }
.tip-body { padding: 8px 12px 9px; border-radius: 8px; color: var(--fg); font-size: 13px; line-height: 1.4; text-align: left; background: #1f2937; border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); transform: translateY(4px) scale(.96); transition: transform .15s cubic-bezier(.2, .9, .3, 1); overflow-wrap: anywhere; white-space: pre-line; }
.tip[data-side="bottom"] .tip-body { transform: translateY(-4px) scale(.96); }
.tip.in { opacity: 1; }
.tip.in .tip-body { transform: none; }
.tip-h { margin: 0 0 3px; font-weight: 700; }
.tip-t { margin: 0; color: #c5cfdb; }
.tip-arrow { position: absolute; left: 0; width: 12px; height: 12px; background: #1f2937; border: 1px solid var(--line-strong); border-top: 0; border-left: 0; bottom: -7px; z-index: 1; }
.tip[data-side="bottom"] .tip-arrow { bottom: auto; top: -7px; }
[data-tip] { cursor: help; }
a[data-tip], button[data-tip] { cursor: pointer; }

@media (max-width: 759px) {   /* rollagain's phone layout for the platoon: one row for the open slots, bigger rows, details over everything */
  .open-slot { display: none; }
  .open-slots-one { display: flex; }
  .details { width: 100%; top: 0; z-index: 55; }
  .pc-more { width: 44px; height: 44px; padding: 13px; }
  .platoon-grid { gap: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .top-in { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .top-links { order: 3; flex-basis: 100%; margin: 0; gap: 14px; }
  .brand { font-size: 22px; }
  .btn.primary span { font-size: 13px; }
  .sheet { padding: 22px 18px 18px; }
  .sheet-title { font-size: 22px; }
  .panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .room-tools { margin-left: 0; }
  .member { padding: 9px 10px; }
  .colhead { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* the consent screen's "your character's name" */
.me-row { margin: 14px 0 16px; }
.me-row .find-row input { width: 100%; }
.me-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; opacity: .75; }
