/* replay.css — the 2D replay (replay.php, drawn by replay.js).
 *
 * One glass frame: the map and its timeline on the left, a tabbed side panel
 * (Moments, Squad, Feed, Streams) on the right. A container query folds it into one
 * column under 760px, which is how phones and the in-page viewer on small screens
 * get it. The map is square and sized to the screen's height as well as its width,
 * so the timeline under it stays in view on a laptop.
 *
 * Colours come from shared.css's tokens (DESIGN.md). Three only exist here: knocked
 * yellow, Twitch purple, and HUD cyan for the Wolf Grounds players layer (the map is
 * a telemetry surface, which is what HUD cyan is for). System fonts only. */

.rp-body {
  --rp-yellow: #ffd60a; --rp-twitch: var(--twitch); --rp-wg: var(--hud-cyan, var(--hud-cyan));
  --rp-panel: var(--bg3); --rp-panel2: #141c27; --rp-line2: rgba(255,255,255,.14);
}
.rp-wrap { max-width: 1340px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 26px max(16px, env(safe-area-inset-left)); }
.rp-embedded .rp-wrap { max-width: none; padding: 0; }
.rp-embedded { background: var(--bg); }
.rp-embedded .rp-hint { display: none; }

.rp {
  container-type: inline-size; outline: none;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  /* the map's side: as wide as there's room for, never so tall the timeline drops off screen */
  --map: max(420px, min(880px, calc(100dvh - 300px)));
}
.rp-embedded .rp { border: 0; border-radius: 0; --map: max(360px, calc(100dvh - 205px)); }
.rp-embedded .rp-eyebrow { display: none; }   /* the viewer around it already says what this is */

/* ── top bar ─────────────────────────────────────────────────────────────── */
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rp-head { min-width: 0; }
.rp-eyebrow { margin: 0 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; line-height: 1; text-transform: uppercase; color: var(--brand); }
.rp-title { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--fg); text-wrap: balance; }
.rp-sub { margin: 3px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.rp-sub b { color: var(--fg2); font-weight: 700; }
.rp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rp-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rp-line2); background: rgba(255,255,255,.05);
  color: var(--fg); border-radius: var(--radius-sm); padding: 6px 11px; font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.rp-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(50,167,235,.5); text-decoration: none; }
.rp-btn--quiet { color: var(--muted); border-color: var(--border); background: none; }
.rp-btn--quiet:hover { color: var(--fg2); }
.rp-btn[hidden] { display: none; }

/* ── layout ──────────────────────────────────────────────────────────────── */
.rp-main { display: grid; grid-template-columns: minmax(0, var(--map)) minmax(300px, 1fr); grid-template-areas: "map side" "time side"; }
.rp-map { grid-area: map; position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--bg2); overflow: hidden; touch-action: none; cursor: grab; }
.rp-map.drag { cursor: grabbing; }
.rp-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.rp-hud { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; pointer-events: none; }
.rp-hud span { font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #dfe7f2;
  background: rgba(8,14,22,.8); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.rp-hud b { font-size: 1.05rem; font-weight: 800; color: #fff; margin-right: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.rp-hud i { font-style: normal; }
.rp-watch { position: absolute; left: 10px; top: 46px; max-width: calc(100% - 130px); font-size: .76rem; color: var(--fg);
  background: rgba(8,14,22,.84); border: 1px solid rgba(255,214,10,.45); border-radius: 7px; padding: 4px 8px; pointer-events: none; }
.rp-watch b { color: var(--rp-yellow); }

.rp-tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.rp-tools button { border: 1px solid rgba(255,255,255,.14); background: rgba(8,14,22,.82); color: var(--fg2); border-radius: 7px;
  padding: 5px 9px; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; min-width: 86px; text-align: left; }
.rp-tools button[hidden] { display: none; }
.rp-tools button.on { color: #fff; border-color: rgba(50,167,235,.65); background: rgba(16,40,60,.92); }
.rp-tools button::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3b4656; margin-right: 6px; vertical-align: 1px; }
.rp-tools button.on::before { background: var(--brand); }
.rp-tools .rp-tg-wg.on { border-color: rgba(28,229,255,.6); }
.rp-tools .rp-tg-wg.on::before { background: var(--rp-wg); box-shadow: 0 0 5px var(--rp-wg); }
.rp-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.rp-zoom button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(8,14,22,.82);
  color: var(--fg); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.rp-tip { position: absolute; pointer-events: none; background: rgba(8,14,22,.95); border: 1px solid var(--rp-line2); border-radius: 8px;
  padding: 7px 9px; font-size: .76rem; line-height: 1.45; color: var(--fg2); min-width: 120px; max-width: 230px; z-index: 3; }
.rp-tip b { font-size: .84rem; color: #fff; }
.rp-tag { display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; margin-left: 5px; vertical-align: 1px; }
.rp-tag.bot { background: #3b4656; color: var(--fg-soft); }
.rp-tag.tw { background: var(--rp-twitch); color: #fff; }
.rp-tag.sq { background: var(--brand); color: var(--cyan-ink); }
.rp-tag.wg { background: rgba(28,229,255,.16); color: var(--rp-wg); border: 1px solid rgba(28,229,255,.4); }
.rp-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; border-radius: 999px; padding: 14px 24px;
  background: var(--brand); color: var(--cyan-ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 32px rgba(50,167,235,.35); }
.rp-bigplay[hidden] { display: none; }

.rp-loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg2); padding: 20px; text-align: center; }
.rp-loading[hidden] { display: none; }
.rp-load-in { width: min(360px, 100%); display: grid; gap: 10px; }
.rp-load-t { font-size: .95rem; font-weight: 700; color: var(--fg); }
.rp-load-bar { height: 6px; border-radius: 3px; background: #1d2734; overflow: hidden; }
.rp-load-bar i { display: block; height: 100%; width: 4%; border-radius: 3px; background: linear-gradient(90deg, var(--brand-dim), var(--brand)); transition: width .25s; }
.rp-load-s { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.rp-load-s a { color: var(--brand); }
.rp-load-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

/* ── timeline ────────────────────────────────────────────────────────────── */
.rp-time { grid-area: time; padding: 10px 12px 12px; border-top: 1px solid var(--border); display: grid; gap: 10px; background: rgba(255,255,255,.015);
  container: rptime / inline-size; }
/* the controls sit under the map, so they get as narrow as it does: keep them on one row */
@container rptime (max-width: 640px) { .rp-next span { display: none; } .rp-speed button { padding: 6px 7px; } }
.rp-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-ctl .rp-btn { padding: 6px 9px; }
.rp-ctl .rp-play { width: 44px; height: 34px; justify-content: center; padding: 0; background: var(--brand); color: var(--cyan-ink); border-color: transparent; font-size: .95rem; }
.rp-ctl .rp-play:hover { background: var(--brand); filter: brightness(1.1); }
.rp-clock { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-clock b { color: #fff; font-weight: 800; }
.rp-speed { margin-left: auto; display: inline-flex; border: 1px solid var(--rp-line2); border-radius: var(--radius-sm); overflow: hidden; }
.rp-speed button { border: 0; background: none; padding: 6px 8px; font: inherit; font-size: .76rem; font-weight: 700; color: var(--fg2); cursor: pointer; }
.rp-speed button.on { background: rgba(50,167,235,.2); color: #fff; }
.rp-track { position: relative; height: 30px; cursor: pointer; touch-action: none; outline: none; }
.rp-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.rp-rail { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: #243040; }
.rp-fill { position: absolute; left: 0; top: 12px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-dim), var(--brand)); }
.rp-playhead { position: absolute; top: 6px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(50,167,235,.35); }
.rp-mk { position: absolute; transform: translateX(-50%); pointer-events: none; }
.rp-mk.tick { top: 4px; width: 3px; height: 10px; border-radius: 2px; }
.rp-mk.seg { top: 20px; height: 5px; border-radius: 3px; transform: none; }
.rp-mk.kill, .lg-kill { background: var(--green); }
.rp-mk.death, .lg-death { background: var(--red); }
.rp-mk.death { height: 14px; top: 2px; }
.rp-mk.circle, .lg-circle { background: rgba(255,255,255,.55); }
.rp-mk.circle { width: 2px; height: 7px; top: 6px; }
.rp-mk.land { background: var(--brand); }
.rp-mk.win { background: var(--gold); height: 14px; top: 2px; }
.rp-mk.seg.won, .lg-won { background: rgba(52,211,153,.75); }
.rp-mk.seg.lost, .lg-lost { background: rgba(224,82,96,.8); }
.rp-mk.seg.even, .lg-even { background: rgba(242,169,0,.8); }
.rp-mk.seg.skirm, .lg-skirm { background: rgba(148,163,184,.65); }
.rp-legend { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: .7rem; color: var(--muted); }
.rp-legend i { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }

/* ── side panel ──────────────────────────────────────────────────────────── */
.rp-side { grid-area: side; border-left: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(0,0,0,.18); }
.rp-tabs { display: flex; border-bottom: 1px solid var(--border); }
.rp-tabs button { flex: 1; border: 0; background: none; padding: 11px 6px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.rp-tabs button:hover { color: var(--fg2); }
.rp-tabs button.on { color: #fff; border-bottom-color: var(--brand); }
.rp-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rp-twitch); margin-left: 5px; vertical-align: 1px; animation: rp-pulse 1.8s infinite; }
@keyframes rp-pulse { 0% { box-shadow: 0 0 0 0 rgba(145,70,255,.7); } 70% { box-shadow: 0 0 0 7px rgba(145,70,255,0); } 100% { box-shadow: 0 0 0 0 rgba(145,70,255,0); } }
@media (prefers-reduced-motion: reduce) { .rp-live { animation: none; } }
.rp-panes { position: relative; flex: 1; min-height: 0; }
.rp-pane { position: absolute; inset: 0; overflow: auto; padding: 12px; overscroll-behavior: contain; }
.rp-pane[hidden] { display: none; }
.rp-empty { color: var(--muted); font-size: .82rem; padding: 10px; line-height: 1.55; }
.rp-sect { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.rp-sect:first-child { margin-top: 2px; }

/* moments */
.rp-mo { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.rp-mo:hover { background: rgba(255,255,255,.04); }
.rp-mo.cur { background: rgba(50,167,235,.1); border-color: rgba(50,167,235,.35); }
.rp-mo .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; background: #1d2734; }
.rp-mo.fight .ic { background: rgba(242,169,0,.16); }
.rp-mo.kill .ic { background: rgba(52,211,153,.16); }
.rp-mo.death .ic { background: rgba(224,82,96,.18); }
.rp-mo.win .ic { background: rgba(242,169,0,.22); }
.rp-mo .tt { font-size: .84rem; font-weight: 700; line-height: 1.3; color: var(--fg); }
.rp-mo .ss { font-size: .74rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.rp-mo .tm { font-size: .9rem; font-weight: 800; color: var(--fg2); font-variant-numeric: tabular-nums; }
.rp-chip { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; margin: 5px 4px 0 0; }
.rp-chip.won { background: rgba(52,211,153,.16); color: var(--green); }
.rp-chip.lost { background: rgba(224,82,96,.18); color: var(--red-text); }
.rp-chip.even { background: rgba(242,169,0,.16); color: var(--gold); }
.rp-chip.skirm { background: rgba(148,163,184,.16); color: var(--fg-soft); }
.rp-chip.dual { background: rgba(145,70,255,.2); color: #c4a5ff; }
.rp-chip.wg { background: rgba(28,229,255,.12); color: var(--rp-wg); }

/* squad + Wolf Grounds players */
.rp-sq { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 10px;
  background: var(--rp-panel); border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; }
.rp-sq:hover { border-color: rgba(255,255,255,.14); }
.rp-sq.sel { border-color: rgba(50,167,235,.6); }
.rp-sq .dot { width: 12px; height: 12px; border-radius: 50%; }
.rp-sq .nm { font-weight: 700; font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.rp-sq .st { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st.alive { color: var(--green); } .st.knocked { color: var(--rp-yellow); } .st.dead { color: var(--red-text); } .st.veh { color: var(--brand); } .st.wait { color: var(--muted); }
.rp-sq .hp { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: #243040; overflow: hidden; }
.rp-sq .hp i { display: block; height: 100%; border-radius: 3px; transition: width .2s; }
.rp-sq .nums { grid-column: 2 / 4; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.rp-sq .nums b { color: var(--fg); font-variant-numeric: tabular-nums; }
.rp-sq .nums .bk { font-style: normal; color: #9aa6b8; }
.rp-sq .lnk { grid-column: 2 / 4; font-size: .74rem; font-weight: 700; }
.rp-sq.wg { border-color: rgba(28,229,255,.22); }
.rp-sq.wg .dot { background: transparent; border: 2px solid var(--rp-wg); box-shadow: 0 0 5px rgba(28,229,255,.6); }
.rp-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--rp-panel); font-size: .8rem; color: var(--fg2); line-height: 1.55; margin-bottom: 8px; }
.rp-box h4 { margin: 0 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rp-box b { color: var(--fg); }

/* feed */
.rp-fd { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: .78rem; line-height: 1.4;
  cursor: pointer; border-left: 3px solid transparent; color: var(--fg2); }
.rp-fd:hover { background: rgba(255,255,255,.04); }
.rp-fd.us { border-left-color: var(--brand); background: rgba(50,167,235,.06); }
.rp-fd.them { border-left-color: var(--red); background: rgba(224,82,96,.06); }
.rp-fd .tm { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-fd b { font-weight: 700; color: var(--fg); }
.rp-fd .w { color: var(--muted); }
.rp-fd .bt { font-size: .56rem; font-weight: 800; background: #3b4656; color: var(--fg-soft); border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }

/* streams */
.rp-tw { border-radius: 12px; overflow: hidden; border: 1px solid rgba(145,70,255,.45); margin-bottom: 10px; background: #0d0b16; }
.rp-tw-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: radial-gradient(120% 120% at 20% 10%, rgba(145,70,255,.4), transparent 60%), #120e1f; }
.rp-tw-screen iframe, .rp-tw-screen > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-tw-idle { display: grid; place-items: center; text-align: center; padding: 14px; color: #d9c8ff; font-size: .82rem; line-height: 1.5; }
.rp-tw-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid rgba(145,70,255,.3); font-size: .74rem; color: #c9b8f0; }
.rp-tw-bar b { color: #fff; }
.rp-sync { display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--rp-twitch); border-radius: 4px; padding: 2px 6px; }
.rp-sync .d { text-transform: none; }
.rp-tw-bar .sp { flex: 1; }
.rp-tw-bar button { font: inherit; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 4px 8px; border: 1px solid rgba(145,70,255,.45);
  background: rgba(145,70,255,.12); color: #d9c8ff; cursor: pointer; }
.rp-st { border: 1px solid var(--border); border-radius: 10px; background: var(--rp-panel); padding: 10px; margin-bottom: 8px; display: grid; gap: 7px; }
.rp-st.on { border-color: rgba(145,70,255,.6); }
.rp-st .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-st .av { width: 30px; height: 30px; border-radius: 8px; background: var(--rp-twitch); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; flex-shrink: 0; }
.rp-st .nm { font-weight: 700; font-size: .86rem; color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-st .rl { font-size: .72rem; color: var(--muted); }
.rp-st .vt { margin-left: auto; font-weight: 800; font-size: .95rem; color: #d9c8ff; font-variant-numeric: tabular-nums; }
.rp-acts2 { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-acts2 a, .rp-acts2 button { font: inherit; font-size: .76rem; font-weight: 700; text-decoration: none; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.rp-acts2 a { border: 1px solid rgba(145,70,255,.5); color: #d9c8ff; background: rgba(145,70,255,.12); }
.rp-acts2 a:hover { background: rgba(145,70,255,.22); text-decoration: none; }
.rp-acts2 button { border: 1px solid var(--rp-line2); background: none; color: var(--fg2); }
.rp-acts2 button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.rp-acts2 button.on { color: #fff; border-color: rgba(145,70,255,.7); background: rgba(145,70,255,.18); }
.rp-dualbox { border: 1px dashed rgba(145,70,255,.45); border-radius: 10px; padding: 10px; font-size: .78rem; color: var(--fg2); line-height: 1.5; display: grid; gap: 8px; margin-bottom: 8px; }

.rp-hint { color: var(--muted); font-size: .78rem; margin: 10px 2px 0; }
.rp-hint kbd { font-family: inherit; font-size: .72rem; border: 1px solid var(--rp-line2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--fg2); }

/* ── one column (phones, the narrow in-page viewer) ──────────────────────── */
@container (max-width: 760px) {
  .rp-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "time" "side"; }
  .rp-side { border-left: 0; border-top: 1px solid var(--border); }
  .rp-panes { height: min(520px, 70dvh); flex: none; }
  .rp-tools { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; left: 10px; top: auto; bottom: 10px; right: 54px; }
  .rp-tools button { min-width: 0; padding: 6px 8px; font-size: .7rem; }
  .rp-hud span { font-size: .72rem; padding: 2px 6px; } .rp-hud b { font-size: .95rem; }
  .rp-watch { top: 40px; max-width: calc(100% - 20px); }
  .rp-speed { margin-left: 0; }
  .rp-next span { display: none; }
  .rp-title { font-size: 1.1rem; }
  .rp-top { padding: 10px 12px; }
}
@media (pointer: coarse) {
  .rp-ctl .rp-btn, .rp-speed button { min-height: 38px; }
  .rp-zoom button { width: 40px; height: 40px; }
}

/* ── strip: the map under a Dual POV (dual.php, sync=1) ─────────────────────
   The iframe's height is the strip's: header, then the map beside this moment's
   kill feed, then the timeline. While synced the videos are the clock, so play,
   ±10 s, Next moment and speed are gone; dragging the timeline moves the videos.
   rp-synced comes off when the map can't be lined up with the videos, and the
   replay's own controls come back. */
.rp-strip, .rp-strip .rp-wrap { height: 100vh; height: 100dvh; }
.rp-strip .rp { height: 100%; display: flex; flex-direction: column; background: var(--inset); }
.rp-strip .rp-top { padding: 10px 14px; flex-wrap: nowrap; }
.rp-strip .rp-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.rp-strip .rp-eyebrow { display: block; margin: 0; }
.rp-strip .rp-title { font-size: 1rem; }
.rp-strip .rp-sub { display: none; }
.rp-cur { margin: 0; font-size: .84rem; color: var(--muted); }
.rp-strip #rp-share, .rp-strip #rp-pubgsh { display: none !important; }
.rp-synced-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.rp-synced-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rp-strip:not(.rp-synced) .rp-synced-chip { color: var(--muted); }

.rp-strip .rp-main { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "map side" "time time"; }
.rp-strip .rp-map { aspect-ratio: auto; height: 100%; min-height: 0; }
.rp-strip .rp-tabs { display: none; }
.rp-strip-h { padding: 10px 14px 0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-strip .rp-tools [data-tg="bots"], .rp-strip .rp-tools [data-tg="tracers"],
.rp-strip .rp-tools [data-tg="trails"], .rp-strip .rp-tools [data-tg="wg"] { display: none; }
.rp-strip .rp-legend { display: none; }
.rp-strip .rp-time { padding: 8px 14px 10px; }
.rp-strip.rp-synced .rp-time { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rp-strip.rp-synced #rp-back, .rp-strip.rp-synced #rp-play, .rp-strip.rp-synced #rp-fwd,
.rp-strip.rp-synced #rp-next, .rp-strip.rp-synced #rp-speed, .rp-strip.rp-synced .rp-bigplay { display: none !important; }
.rp-strip.rp-synced .rp-clock { margin-left: 0; }
.rp-strip-tip { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.rp-strip:not(.rp-synced) .rp-strip-tip { display: none; }

@container (max-width: 760px) {
  .rp-strip .rp-top { flex-wrap: wrap; padding: 10px 12px; }
  .rp-strip .rp-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto 150px;
    grid-template-areas: "map" "time" "side"; }
  .rp-strip .rp-side { border-left: 0; }
  .rp-strip .rp-panes { height: auto; flex: 1; }
  .rp-strip.rp-synced .rp-time { grid-template-columns: auto minmax(0, 1fr); }
  .rp-strip-tip { display: none; }
}

/* ── the home page's 2D Replay slide (replay.php?embed=1&slide=1) ────────────
   showcase.js frames this on index.php, desktop only. Just the map, filling the frame:
   no header, timeline, side panel, toggles or zoom, and no loading card (the slide's
   still map shows until the replay is drawn). Nothing here takes a click; the page
   around it opens the full replay. The HUD sits bottom left with the match clock first
   (hidden while the end card is up), the squad's kills and deaths top right. */
.rp-slide, .rp-slide .rp-wrap, .rp-slide .rp, .rp-slide .rp-main { height: 100vh; height: 100dvh; }
.rp-slide { overflow: hidden; background: #081018; }
.rp-slide .rp { border: 0; border-radius: 0; background: none; }
.rp-slide .rp-main { display: block; }
.rp-slide .rp-map { aspect-ratio: auto; height: 100%; cursor: pointer; }
.rp-slide .rp-top, .rp-slide .rp-time, .rp-slide .rp-side, .rp-slide .rp-tools, .rp-slide .rp-zoom, .rp-slide .rp-tip,
.rp-slide .rp-watch, .rp-slide .rp-bigplay, .rp-slide .rp-loading, .rp-slide .rp-hint { display: none !important; }
.rp-slide .rp-hud { top: auto; bottom: 10px; gap: 4px; transition: opacity .4s; }
.rp-slide .rp-hud span { font-size: .64rem; padding: 3px 7px; background: rgba(5,9,14,.78); }
.rp-slide .rp-hud b { font-size: .8rem; }
.rp-slide .rp-hud .rp-hud-clock b { margin-right: 0; }
.rp-slide .rp-hud.rp-hud-off { opacity: 0; }
.rp-slidefeed { position: absolute; right: 10px; top: 10px; width: min(250px, 50%); display: grid; gap: 4px; pointer-events: none; }
.rp-slidefeed div { font-size: .7rem; line-height: 1.35; color: var(--fg); background: rgba(5,9,14,.92); border-radius: 5px; padding: 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--brand); }
.rp-slidefeed div.d { border-left-color: var(--red); }
.rp-slidefeed b { color: var(--brand); font-weight: 800; }
.rp-slidefeed div.d b { color: var(--red-soft); }
.rp-slidefeed span { color: var(--muted); }
.rp-slidefeed .bt { font-style: normal; font-size: .55rem; font-weight: 800; letter-spacing: .06em; padding: 0 4px; margin-left: 4px; border-radius: 3px;
  background: #3b4656; color: var(--fg-soft); vertical-align: 1px; }
/* older rows fade their text, never their background: a see-through row let the map's name tags
   show through it (2026-11-11) */
.rp-slidefeed div:nth-child(2) { color: color-mix(in srgb, var(--fg) 85%, transparent); } .rp-slidefeed div:nth-child(2) > * { opacity: .85; }
.rp-slidefeed div:nth-child(3) { color: color-mix(in srgb, var(--fg) 65%, transparent); } .rp-slidefeed div:nth-child(3) > * { opacity: .65; }
.rp-slidefeed div:nth-child(4) { color: color-mix(in srgb, var(--fg) 50%, transparent); } .rp-slidefeed div:nth-child(4) > * { opacity: .5; }
/* record mode (the Discord clip): the feed fades out with the end card, and the wolfgrounds.com tag */
.rp-slidefeed { transition: opacity .4s; } .rp-slidefeed.rp-feed-off { opacity: 0; }
.rp-wm { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 5px;
  background: rgba(5,9,14,.78); color: #e8eaf0; font: 800 .72rem/1 "Barlow Condensed", Impact, sans-serif; letter-spacing: .08em;
  text-transform: uppercase; pointer-events: none; }
.rp-wm img { width: 16px; height: 16px; }
/* the clip is seen ~330 px wide on phones: weapon names a step brighter than on the website */
.rp-clip .rp-slidefeed span { color: #b4bdca; }
