* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ct: #6ea8ff;
  --t: #ffc46e;
  --bg: rgba(12, 14, 18, 0.82);
  --bg2: rgba(20, 24, 32, 0.9);
  --review-w: clamp(360px, 31vw, 560px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0c10; color: #e8eaf0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* The stage holds the canvas + all in-world HUD. Its own `transform` makes it
   the containing block for the fixed-positioned HUD inside, so shrinking the
   stage compacts the whole game view instead of cropping it. */
#stage { position: fixed; inset: 0; left: 0; transform: translateZ(0); z-index: 1;
  transition: left .28s var(--ease); }
body.review-open #stage { left: var(--review-w); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---- top bar ---- */
#topbar {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: stretch; z-index: 10; user-select: none;
  background: rgba(12,15,20,.94); border: 1px solid #2a323d; border-radius: 8px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
/* Score blocks: solid team-color tiles flanking the clock, so the colour reads
   as a deliberate block rather than a thin edge stripe. */
.score { display: flex; align-items: stretch; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.score > span { display: flex; align-items: center; }
#ct-name, #t-name { padding: 0 14px; color: #c7cdd6; }
#ct-score, #t-score { justify-content: center; min-width: 54px; font-size: 25px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
#ct-score { background: #34619f; }
#t-score { background: #9c7733; }
#clock { background: rgba(0,0,0,.22); padding: 5px 20px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; }
#round-label { font-size: 10px; letter-spacing: 1px; color: #9aa3b2; }
#round-timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
#round-timer.bomb { color: #ff5a5a; }
#objective-status { min-height: 9px; color: #e8c75d; font-size: 8px; font-weight: 700; letter-spacing: .04em; }

/* ---- kill feed ---- */
#killfeed { position: fixed; top: 56px; right: 14px; z-index: 10; display: flex; flex-direction: column;
  gap: 4px; align-items: flex-end; user-select: none; }
.kf-entry { background: var(--bg); border-radius: 4px; padding: 4px 10px; font-size: 13px; font-weight: 600;
  display: flex; gap: 6px; align-items: center; }
.kf-entry .ct { color: var(--ct); } .kf-entry .t { color: var(--t); }
.kf-entry .wpn { color: #fff; display: inline-flex; align-items: center; gap: 5px; padding: 0 2px; }
.kf-entry .wpn .kf-mod { color: #e6e9ef; }
.kf-entry.highlight { outline: 1.5px solid #ff5a5a; }

/* ---- team panels ---- */
/* ---- broadcast-style team rosters (bottom corners) ---- */
.team-panel { position: fixed; bottom: 128px; z-index: 9; display: flex; flex-direction: column; gap: 4px;
  width: 270px; max-height: calc(100vh - 150px); user-select: none; }
.team-panel.left { left: 12px; } .team-panel.right { right: 12px; }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 1px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.team-panel.left .pp-head { color: var(--ct); } .team-panel.right .pp-head { color: var(--t); flex-direction: row-reverse; }
.pp-alive { color: #8a93a2; font-size: 9.5px; font-weight: 600; }
.pp { display: flex; align-items: stretch; background: rgba(14,17,23,.82); border-radius: 4px;
  padding: 6px 11px; cursor: pointer; border: 0; transition: opacity .15s; width: 100%;
  color: #e6e9ef; font: inherit; text-align: left; }
/* team colour now reads as an edge accent (the keybind badge is gone) */
.team-panel.right .pp { flex-direction: row-reverse; text-align: right; }
.pp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-top { display: flex; align-items: center; gap: 7px; }
.team-panel.right .pp-top { flex-direction: row-reverse; }
.pp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 600; }
.pp-wpn { flex: none; display: flex; align-items: center; color: #cfd5de; }
.pp-wpn .weapon-icon { height: 14px; }
.pp-hp { flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 30px;
  text-align: right; }
.team-panel.right .pp-hp { text-align: left; }
.pp-sub { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #9aa3b2;
  font-variant-numeric: tabular-nums; }
.team-panel.right .pp-sub { flex-direction: row-reverse; }
.pp-money { color: #7fc081; }
.pp-kd { color: #c4ccd6; }
.pp-extra { color: #b9c1cd; }
.pp .c4 { padding: 0 3px; border-radius: 2px; background: #e8c75d; color: #1a1407; font-size: 8px; }
.pp .hpbar { height: 3px; border-radius: 2px; background: #2a313c; overflow: hidden; }
.team-panel.right .pp .hpbar { transform: scaleX(-1); }
.pp .hpbar i { display: block; height: 100%; background: #62d56e; }
.pp .hpbar i.low { background: #e05050; }
.pp:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pp.dead { opacity: 0.4; }
.pp.dead .pp-hp { color: #7d8088; }
.pp.followed { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---- minimap ---- */
#minimap { position: fixed; left: 12px; top: 12px; z-index: 9; border-radius: 6px;
  background: rgba(10,12,16,.65); }
#radar-layer { position: fixed; left: 18px; top: 266px; z-index: 10; min-width: 48px;
  padding: 4px 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px;
  background: rgba(10,12,16,.8); color: #eef1f6; font-size: 10px; font-weight: 700;
  letter-spacing: .05em; cursor: pointer; }
#radar-layer:hover, #radar-layer:focus-visible { border-color: var(--ct); outline: none; }

/* ---- controls ---- */
#controls { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  background: linear-gradient(transparent, rgba(8,10,14,.92) 30%); padding: 8px 14px 10px; }
#timeline { position: relative; height: 18px; background: rgba(255,255,255,.08); border-radius: 4px;
  cursor: pointer; margin-bottom: 8px; }
#timeline-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px;
  background: rgba(110,168,255,.35); pointer-events: none; }
#timeline-markers { position: absolute; inset: 0; pointer-events: none; }
#timeline-markers button { pointer-events: auto; border: 0; background: transparent; cursor: pointer; padding: 0; }
.tl-round { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.45); }
.tl-round span { position: absolute; top: -1px; left: 4px; font-size: 9px; color: #aab; }
.tl-kill { position: absolute; bottom: -1px; color: #ff5a5a; font-size: 10px; font-weight: 800;
  line-height: 10px; transform: translateX(-50%); text-shadow: 0 0 3px #000; }
.tl-mvp { position: absolute; top: -1px; color: #ffd24a; font-size: 9px; line-height: 10px;
  transform: translateX(-50%); text-shadow: 0 0 3px #000; }
.tl-bomb { position: absolute; top: 2px; width: 5px; height: 5px; border-radius: 50%; }
#timeline-markers button.tl-bomb { background: #ffd24a; }
#timeline-markers button:hover, #timeline-markers button:focus-visible { transform: translateX(-50%) scale(1.7); outline: none; z-index: 3; }
#controls-row { display: flex; align-items: center; gap: 10px; }
#controls-row button { background: var(--bg2); color: #fff; border: 1px solid #39414f; border-radius: 5px;
  padding: 5px 12px; font-size: 14px; cursor: pointer; }
#controls-row button:hover { background: #2a3140; }
#controls-row select { background: var(--bg2); color: #fff; border: 1px solid #39414f; border-radius: 5px;
  padding: 5px 6px; font-size: 13px; }
#time-label { font-variant-numeric: tabular-nums; font-size: 13px; color: #cdd3dd; min-width: 110px; }
#follow-label { font-size: 13px; color: #ffd24a; }
.spacer { flex: 1; }
#map-label { color: #9aa3b2; font-size: 13px; }
#viewer-tools { position: fixed; right: 12px; top: 12px; z-index: 13; }
#btn-settings { width: 34px; height: 34px; border: 1px solid #39414f; border-radius: 6px;
  background: var(--bg2); color: #dce1ea; font-size: 16px; cursor: pointer; line-height: 1; }
#btn-settings:hover, #btn-settings:focus-visible, #btn-settings[aria-expanded="true"] {
  border-color: var(--ct); outline: none; background: #283140; }
#settings-menu { position: absolute; right: 0; top: 40px; display: flex; flex-direction: column; gap: 2px;
  padding: 5px; min-width: 156px; border: 1px solid #39414f; border-radius: 7px;
  background: rgba(18,21,28,.97); box-shadow: 0 14px 36px rgba(0,0,0,.5); }
#settings-menu.hidden { display: none; }
#settings-menu button { padding: 8px 11px; border: 0; border-radius: 5px; background: transparent;
  color: #dce1ea; font-size: 13px; text-align: left; cursor: pointer; }
#settings-menu button:hover, #settings-menu button:focus-visible { outline: none; background: rgba(110,168,255,.14); color: #fff; }

/* ---- match review ---- */
#review-panel { position: fixed; top: 0; left: 0; bottom: 0; z-index: 24; width: var(--review-w);
  display: flex; flex-direction: column; background: rgba(10,12,17,.97);
  border-right: 1px solid #303847; box-shadow: 18px 0 48px rgba(0,0,0,.38);
  transform: translateX(-100%); transition: transform .28s var(--ease);
  will-change: transform; pointer-events: none; }
body.review-open #review-panel { transform: translateX(0); pointer-events: auto; }
.review-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px 11px;
  border-bottom: 1px solid #2b3240; }
.review-head strong { display: block; font-size: 17px; }
.review-head span { display: block; margin-top: 2px; color: #7d8797; font-size: 11px; }
.review-head button { width: 30px; height: 30px; border: 1px solid #39414f; border-radius: 5px;
  background: transparent; color: #dce1ea; font-size: 21px; cursor: pointer; }
#review-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #2b3240; }
#review-tabs button { padding: 10px 5px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: #8993a3; font-weight: 600; cursor: pointer; }
#review-tabs button.active { color: #fff; border-bottom-color: var(--ct); background: rgba(110,168,255,.07); }
#review-content { overflow-y: auto; padding: 14px 16px 24px; }
.summary-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  margin-bottom: 16px; padding: 14px; border: 1px solid #2d3543; border-radius: 8px; background: rgba(255,255,255,.025); }
.summary-score div { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.summary-score div:last-child { justify-content: flex-start; }
.summary-score span { color: #99a2b1; font-size: 12px; }
.summary-score b { font-size: 30px; }
.summary-score i { color: #697486; font-size: 10px; font-style: normal; letter-spacing: .08em; }
#summary-watch { width: 100%; margin: -5px 0 14px; padding: 9px; border: 1px solid #527cb5; border-radius: 6px;
  background: rgba(110,168,255,.14); color: #eaf3ff; font-weight: 700; cursor: pointer; }
#summary-watch:hover, #summary-watch:focus-visible { background: rgba(110,168,255,.24); outline: 2px solid var(--ct); }
.summary-exports { display: flex; gap: 6px; margin: -8px 0 14px; }
.summary-exports button { flex: 1; padding: 6px; border: 1px solid #394657; border-radius: 5px;
  background: rgba(255,255,255,.035); color: #aab3c1; font-size: 10px; cursor: pointer; }
.summary-exports button:hover, .summary-exports button:focus-visible { border-color: var(--ct); color: #fff; outline: none; }
.review-team { margin-bottom: 14px; border: 1px solid #2d3543; border-radius: 8px; overflow: hidden; }
.review-team h3 { display: flex; justify-content: space-between; padding: 9px 11px; font-size: 13px; background: rgba(255,255,255,.04); }
.review-team.ct h3 { border-left: 3px solid var(--ct); } .review-team.t h3 { border-left: 3px solid var(--t); }
.stat-head, .stat-row { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(6, 43px); align-items: center; gap: 5px; }
.stat-head { padding: 7px 9px; color: #697486; font-size: 9px; text-align: right; text-transform: uppercase; }
.stat-head span:first-child { text-align: left; }
.stat-row { width: 100%; padding: 7px 9px; border: 0; border-top: 1px solid rgba(255,255,255,.05);
  background: transparent; color: #dce1ea; text-align: right; cursor: pointer; }
.stat-row:hover, .stat-row:focus-visible { background: rgba(110,168,255,.1); outline: none; }
.stat-row > span:first-child { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.stat-row small { display: block; color: #697486; font-size: 9px; font-weight: 400; }
.review-note { color: #687282; font-size: 10px; line-height: 1.45; }
.round-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.round-card { border: 1px solid #2d3543; border-radius: 8px; background: rgba(255,255,255,.025); overflow: hidden; }
.round-card header { display: flex; justify-content: space-between; padding: 9px 10px; border-bottom: 1px solid #2d3543; font-size: 12px; }
.round-card .winner.ct { color: var(--ct); } .round-card .winner.t { color: var(--t); }
.round-econ { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; color: #cbd1db; font-size: 11px; }
.round-econ span:last-child { text-align: right; }
.round-econ small { display: block; color: #717c8d; }
.round-card dl { padding: 0 10px 8px; font-size: 10px; }
.round-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.round-card dt { color: #707b8b; } .round-card dd { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.round-card footer { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #2d3543; }
.round-card footer button { flex: 1; padding: 5px; border: 1px solid #394657; border-radius: 4px;
  background: rgba(255,255,255,.04); color: #dce1ea; font-size: 10px; cursor: pointer; }
.event-tools { position: sticky; top: -14px; z-index: 2; margin: -14px -16px 8px; padding: 12px 16px 9px;
  background: rgba(10,12,17,.98); border-bottom: 1px solid #2b3240; }
#event-search { width: 100%; padding: 9px 10px; border: 1px solid #39414f; border-radius: 6px;
  background: rgba(255,255,255,.05); color: #fff; }
.event-filters { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 8px; color: #9da6b4; font-size: 10px; }
.event-filters label { cursor: pointer; }.event-filters input { margin-right: 3px; vertical-align: -1px; }
.event-count { margin: 8px 0; color: #727d8d; font-size: 10px; }
.event-list { display: flex; flex-direction: column; gap: 3px; }
.event-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; width: 100%; padding: 8px 9px;
  border: 1px solid transparent; border-left: 2px solid #4b5565; border-radius: 4px;
  background: rgba(255,255,255,.025); color: #dce1ea; text-align: left; cursor: pointer; }
.event-row:hover, .event-row:focus-visible { border-color: #46556a; outline: none; background: rgba(110,168,255,.08); }
.event-row.combat { border-left-color: #e45c5c; } .event-row.objective { border-left-color: #f0c34e; }
.event-row.utility { border-left-color: #83c786; } .event-row.damage { border-left-color: #b579d1; }
.event-row time { color: #7b8696; font-size: 10px; font-variant-numeric: tabular-nums; }
.event-row b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-row small { display: block; margin-top: 2px; color: #727d8d; font-size: 9px; }
.utility-summary { margin-bottom: 12px; padding: 12px; border: 1px solid #2d3543; border-radius: 8px; }
.utility-summary h3 { margin-bottom: 10px; font-size: 14px; }
.utility-totals { display: flex; flex-wrap: wrap; gap: 6px; }
.utility-totals span { min-width: 74px; padding: 7px; border-radius: 5px; background: rgba(255,255,255,.04); color: #8993a3; font-size: 9px; }
.utility-totals b { display: block; color: #fff; font-size: 17px; }
.path-toggle { display: block; margin: 12px 0 8px; color: #cbd1db; font-size: 11px; }
.utility-summary p { color: #727d8d; font-size: 10px; }
.utility-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.lineup-export { padding: 0 9px; border: 1px solid #394657; border-radius: 4px; background: rgba(255,255,255,.04);
  color: #aab3c1; font-size: 9px; cursor: pointer; }
.lineup-export:hover, .lineup-export:focus-visible { color: #fff; border-color: var(--ct); outline: none; }

/* ---- full scoreboard: CS2-style ---- */
#scoreboard { position: fixed; left: 50%; top: 50%; z-index: 32; width: min(1060px, 95%);
  transform: translate(-50%,-50%); }
.sb2 { --sb-rail: 132px; padding: 16px 20px 18px; border-radius: 4px; color: #cfd5de;
  background-color: #0e1116;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1.4px),
    linear-gradient(180deg, rgba(31,37,47,.65), rgba(14,17,22,.2));
  background-size: 3px 3px, 100% 100%;
  box-shadow: 0 28px 80px rgba(0,0,0,.7); border: 1px solid #2c3340; }
.sb2-top { display: flex; justify-content: space-between; align-items: center; color: #c4ccd6; font-size: 13px; }
.sb2-mode { display: flex; align-items: center; gap: 9px; letter-spacing: .02em; }
.sb2-bars { width: 15px; height: 12px; flex: none; background:
  linear-gradient(to top, #7d8694 35%, transparent 35%) 0 0/3px 100% no-repeat,
  linear-gradient(to top, #7d8694 55%, transparent 55%) 6px 0/3px 100% no-repeat,
  linear-gradient(to top, #7d8694 80%, transparent 80%) 12px 0/3px 100% no-repeat; }
.sb2-clock { color: #aeb6c2; font-variant-numeric: tabular-nums; }
.sb2-sub { margin-top: 3px; color: #6f7886; font-size: 11px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06); }
.sb2-grid { display: grid; grid-template-columns: var(--sb-rail) 1fr; align-items: stretch; }
.sb2-colhead, .sb2-row { display: grid;
  grid-template-columns: 20px 26px minmax(120px,1fr) 78px 48px 52px 56px 50px 56px;
  align-items: center; gap: 2px; }
.sb2-colhead { grid-column: 2; padding: 11px 8px 7px; color: #93a0b2; font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; text-align: right; }
.sb2-colhead .sb2-h-name { text-align: left; }
/* rails: rounded badge with round score + team identity */
.sb2-railhead { grid-column: 1; }
.sb2-rail { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px; text-align: center; }
.sb2-rail.ct { background: linear-gradient(180deg, rgba(94,138,214,.12), transparent); }
.sb2-rail.t { background: linear-gradient(180deg, rgba(196,154,86,.12), transparent); }
.sb2-score { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff; border: 3px solid; background: rgba(0,0,0,.25); }
.sb2-rail.ct .sb2-score { border-color: var(--ct); box-shadow: inset 0 0 18px rgba(110,168,255,.22); }
.sb2-rail.t .sb2-score { border-color: var(--t); box-shadow: inset 0 0 18px rgba(255,196,110,.22); }
.sb2-label { margin-top: 8px; font-size: 10px; letter-spacing: .04em; line-height: 1.2; color: #b9c1cd; }
.sb2-rail.ct .sb2-label { color: var(--ct); } .sb2-rail.t .sb2-label { color: var(--t); }
.sb2-alive { margin-top: 4px; font-size: 9.5px; color: #6f7886; }
.sb2-rows { grid-column: 2; display: flex; flex-direction: column; }
.sb2-rows.ct { background: linear-gradient(90deg, rgba(94,138,214,.05), transparent 60%); }
.sb2-rows.t { background: linear-gradient(90deg, rgba(196,154,86,.05), transparent 60%); }
.sb2-row { width: 100%; padding: 6px 8px; border: 0; border-top: 1px solid rgba(255,255,255,.04);
  background: transparent; color: #d6dbe3; font-size: 13px; text-align: right; cursor: pointer;
  font-variant-numeric: tabular-nums; }
.sb2-rows > .sb2-row:first-child { border-top: 0; }
.sb2-x { color: #b5404a; font-size: 11px; text-align: center; }
.sb2-av { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #0c0f14; }
.sb2-rows.ct .sb2-av { background: var(--ct); } .sb2-rows.t .sb2-av { background: var(--t); }
.sb2-nm { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; color: #eef1f6; }
.sb2-money { color: #7fc081; }
.sb2-mvp { color: #e8c75d; }
.sb2-mvp sup { font-size: 8px; }
.sb2-sc { color: #fff; font-weight: 700; }
.sb2-row.dead { color: #79808c; }
.sb2-row.dead .sb2-av { opacity: .4; } .sb2-row.dead .sb2-nm { color: #828a96; }
.sb2-row.dead .sb2-money { color: #4f6b50; } .sb2-row.dead .sb2-sc { color: #9aa1ac; }
.sb2-row:hover, .sb2-row:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.sb2-row.me { background: rgba(110,168,255,.16); box-shadow: inset 2px 0 0 var(--ct); }
.sb2-rows.t .sb2-row.me { background: rgba(255,196,110,.16); box-shadow: inset 2px 0 0 var(--t); }
.sb2-nm .c4 { margin-left: 5px; padding: 0 4px; border-radius: 2px; background: #e8c75d; color: #1a1407; font-size: 8px; }
.weapon-icon { height: 15px; width: auto; fill: currentColor; vertical-align: middle; }
.kf-mod { height: 13px; width: auto; fill: currentColor; vertical-align: middle; }
.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; }
#capability-warning { position: fixed; z-index: 26; top: 82px; left: 50%; transform: translateX(-50%);
  max-width: min(820px, 90vw); border: 1px solid #826b36; border-radius: 6px; padding: 6px 6px 6px 12px;
  background: rgba(36,29,16,.92); color: #e9d79c; font-size: 11px; text-align: center;
  display: flex; align-items: center; gap: 8px; }
#capability-warning.hidden { display: none; }
#capability-dismiss { flex: none; width: 20px; height: 20px; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.08); color: #e9d79c; font-size: 15px; line-height: 1; }
#capability-dismiss:hover, #capability-dismiss:focus-visible { background: rgba(255,255,255,.16); outline: none; }
.hint-note { color: #5a6473; }

@media (max-width: 900px) {
  :root { --review-w: min(92vw, 440px); }
  .team-panel { width: 210px; }
  #minimap { width: 210px; height: 210px; }
  #radar-layer { top: 190px; }
  #controls-row { gap: 5px; overflow-x: auto; }
  #controls-row button { padding: 5px 8px; }
  #map-label, #follow-label, #help-hint { display: none; }
  #scoreboard { width: 96%; overflow-x: auto; }
  .sb2 { min-width: 760px; }
}
@media (max-width: 600px) {
  .team-panel { width: 150px; }.team-panel.left { left: 4px; }.team-panel.right { right: 4px; }
  .pp { padding: 4px 5px; }.pp-sub { display: none; }
  #minimap { left: 6px; top: 6px; width: 150px; height: 150px; }
  #radar-layer { top: 132px; left: 10px; }
  .round-list { grid-template-columns: 1fr; }
  .stat-head, .stat-row { grid-template-columns: minmax(100px, 1fr) repeat(6, 38px); font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---- overlay: Leetify-style dashboard (nav rail + demo cards) ----
   #overlay is the whole front page (also the demo load screen). The nav rail
   (#overlay-box) is docked left; the dashboard (#landing) fills the rest and
   scrolls. Selecting a demo adds .hidden to #overlay (display:none !important
   wins over the flex below), revealing the 3D stage. */
#overlay { position: fixed; inset: 0; z-index: 50; display: flex; background: #06070a;
  color: #e9ecf1; font-family: 'Saira', system-ui, sans-serif; overflow: hidden; }

/* loading indicator — sits above the overlay (50) and the HUD so it stays
   visible through the post-overlay exact-geometry decode window */
#loading-indicator { position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px;
  border-radius: 999px; background: rgba(10,13,18,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  color: #e9ecf1; font-family: 'Saira', system-ui, sans-serif; font-size: 13px;
  letter-spacing: 0.02em; pointer-events: none; }
#loading-indicator.hidden { display: none; }
#loading-indicator .spinner { width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18); border-top-color: #e8a13a;
  animation: ld-spin 0.7s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #loading-indicator .spinner { animation-duration: 1.6s; } }

/* nav rail */
#overlay-box { position: relative; z-index: 4; flex: 0 0 248px; width: 248px; max-width: 100%;
  height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 18px;
  background: linear-gradient(180deg, rgba(11,14,19,0.97), rgba(8,10,14,0.98));
  border-right: 1px solid rgba(255,255,255,0.07); }
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 6px 14px; }
.lib-brand { display: flex; align-items: center; gap: 11px; }
.lib-badge { width: 30px; height: 30px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e8a13a, #c47a1e); clip-path: polygon(0 0,100% 0,100% 70%,70% 100%,0 100%); }
.lib-tri { width: 0; height: 0; border-left: 8px solid #0a0c10; border-top: 5px solid transparent;
  border-bottom: 5px solid transparent; margin-left: 2px; }
.lib-brand-name { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 1px; color: #fff; line-height: 1; }
.lib-brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 2.5px; color: #7c8696; margin-top: 3px; text-transform: uppercase; }
.lib-close { display: none; width: 32px; height: 32px; border: 1px solid #2a3140; background: rgba(255,255,255,.05);
  color: #c7ced9; border-radius: 7px; font-size: 20px; line-height: 1; cursor: pointer; }
.lib-close:hover { background: #1b2836; color: #fff; }
.rail-nav { display: flex; flex-direction: column; gap: 3px; }
.rail-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: transparent; color: #aab2bf; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left; }
.rail-link svg { width: 18px; height: 18px; flex: none; }
.rail-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.rail-link.is-active { background: rgba(224,162,58,.12); color: #fff; box-shadow: inset 2px 0 0 var(--lp-orange); }
.rail-link.is-active svg { color: var(--lp-orange); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.rail-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#language { background: #151b25; color: #cbd5e1; border: 1px solid #39414f; border-radius: 5px; padding: 5px 6px; }
.acct-link { border: 0; padding: 0; background: transparent; color: #9fb7da; text-decoration: underline; font: inherit; cursor: pointer; }
.acct-link.danger { color: #e99a9a; }
.policy-links { color: #778196; font-size: 10.5px; }
.policy-links a { color: #8da7ca; }

/* dashboard main */
#landing { position: relative; z-index: 1; flex: 1 1 auto; height: 100%; overflow-y: auto; overflow-x: hidden;
  font-family: var(--lp-body); }
.dash-head { display: flex; align-items: flex-start; gap: 16px; padding: 30px 40px 18px; }
.dash-burger { display: none; width: 40px; height: 40px; flex: none; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: #dbe6f2; border-radius: 9px; cursor: pointer; align-items: center; justify-content: center; }
.dash-burger svg { width: 20px; height: 20px; }
.dash-title { flex: 1 1 auto; min-width: 0; }
.dash-title h1 { font-family: var(--lp-disp); font-weight: 800; font-size: clamp(28px,3vw,40px); text-transform: uppercase;
  letter-spacing: .5px; color: #fff; margin: 0; line-height: 1; }
.dash-sub { font-size: 14px; color: var(--lp-text2); margin: 8px 0 0; }
.dash-sub code { font-family: var(--lp-mono); font-size: 12px; color: #dbe6f2; }
.dash-actions { display: flex; align-items: center; gap: 10px; flex: none; }
#overlay-actions { display: none; }
#overlay-actions:has(> button:not(.hidden)) { display: flex; }
#overlay-upload, #dash-upload, #landing .btn-solid { display: inline-flex; align-items: center; gap: 9px;
  background: var(--lp-orange); color: #0a0c10; border: none; cursor: pointer;
  font-family: var(--lp-disp); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; padding: 11px 18px; }
#overlay-upload:hover, #dash-upload:hover, #landing .btn-solid:hover { filter: brightness(1.08); }
#overlay-close { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #c7ced9;
  font: inherit; font-weight: 600; font-size: 13px; padding: 10px 14px; cursor: pointer; }
#overlay-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.dash-status { color: #9aa3b2; font-size: 13.5px; margin: 0 40px 14px; min-height: 18px; }
#upload-cancel { margin: 0 40px 14px; border: 1px solid #4a5568; background: transparent; color: #cbd5e1;
  border-radius: 6px; padding: 6px 12px; cursor: pointer; }
#upload-cancel.hidden { display: none; }
#login-gate:not(.hidden) { margin: 0 40px 18px; padding: 22px 24px; border: 1px solid rgba(109,167,230,.25);
  background: linear-gradient(135deg, rgba(13,26,38,.7), rgba(10,14,20,.7)); }
.dash-section { padding: 8px 40px 26px; }
.dash-section .sec-title { font-family: var(--lp-disp); font-weight: 800; font-size: 22px; text-transform: uppercase;
  letter-spacing: .5px; color: #fff; margin: 14px 0 4px; }
.dash-section .sec-sub { font-size: 14px; color: var(--lp-muted); margin: 0 0 16px; max-width: 640px; }

/* demo card grid */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
#overlay-list { display: contents; }
.demo-row { position: relative; }
.demo-item, .demo-card--upload { position: relative; display: flex; width: 100%; aspect-ratio: 16 / 10; min-height: 118px;
  border: 1px solid rgba(255,255,255,.08); background: #0c0f15; cursor: pointer; overflow: hidden;
  font: inherit; color: inherit; text-align: left; padding: 0; }
.demo-item { flex-direction: column; justify-content: flex-end; }
.demo-item:hover, .demo-item:focus-visible { border-color: var(--lp-orange); outline: none; }
.card-thumb { position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(8,10,14,.12) 30%, rgba(8,10,14,.92)), var(--thumb, none);
  background-size: cover; background-position: center; transition: transform .3s ease; }
.card-thumb[data-empty] { background: linear-gradient(135deg, #18222e, #0a0e14); }
.demo-item:hover .card-thumb { transform: scale(1.05); }
.card-info { position: relative; z-index: 1; padding: 12px 14px; }
.card-title { display: block; font-family: var(--lp-disp); font-weight: 700; font-size: 16.5px; text-transform: uppercase;
  letter-spacing: .4px; color: #fff; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: block; font-size: 12px; color: #aeb6c2; margin-top: 3px; }
.card-status { position: absolute; top: 9px; left: 9px; z-index: 1; font-family: var(--lp-mono); font-size: 9.5px;
  letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; background: rgba(6,8,12,.72); color: #aeb6c2; }
.card-status--ready { color: #7ee0a8; } .card-status--parsing { color: var(--lp-orange); }
.card-status--pending { color: #9aa3b0; } .card-status--sample { color: var(--lp-blue); }
.demo-delete { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border: 0;
  color: #e6edf5; background: rgba(6,8,12,.72); cursor: pointer; font-size: 16px; line-height: 1; }
.demo-delete:hover, .demo-delete:focus-visible { color: #fff; background: #b3434f; outline: none; }
/* upload tile (first cell of the grid) */
.demo-card--upload { flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 14px; border-style: dashed; border-color: rgba(140,160,190,.4);
  background: linear-gradient(160deg, rgba(20,26,34,.55), rgba(12,15,20,.55)); }
.demo-card--upload:hover { border-color: var(--lp-orange); background: linear-gradient(160deg, rgba(28,34,42,.7), rgba(16,20,26,.7)); }
.upload-tile-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(224,162,58,.12); border: 1px solid rgba(224,162,58,.4); color: var(--lp-orange); }
.upload-tile-icon svg { width: 20px; height: 20px; }
.upload-tile-title { font-family: var(--lp-disp); font-weight: 700; font-size: 15px; text-transform: uppercase; color: #fff; }
.upload-tile-title b { color: var(--lp-orange); }
.upload-tile-sub { font-size: 11.5px; color: var(--lp-muted); }
#overlay.dragging .demo-card--upload { border-color: var(--lp-orange); background: linear-gradient(160deg, rgba(28,34,42,.8), rgba(16,20,26,.8)); }
#overlay-drop { margin-top: 14px; border: 1.5px dashed #39414f; padding: 12px; text-align: center; color: #9aa3b2; font-size: 13px; }
#overlay.dragging #overlay-drop { border-color: var(--lp-orange); color: var(--lp-orange); }

/* busy: dim the dashboard + foreground the status while a demo loads/uploads */
#overlay.busy .dash-section, #overlay.busy #login-gate:not(.hidden) { opacity: .35; pointer-events: none; filter: blur(1px); }
#overlay.busy .dash-status { color: var(--lp-orange); font-size: 15px; font-weight: 600; }
#comms-panel { position: fixed; left: 18px; bottom: 88px; z-index: 24; width: min(430px, calc(100vw - 36px));
  pointer-events: none; }
#comms-panel.hidden { display: none; }
#comms-controls { display: flex; gap: 5px; margin-bottom: 6px; pointer-events: auto; }
#comms-controls button { border: 1px solid #465066; border-radius: 5px; padding: 4px 7px; background: #151b25;
  color: #aab5c8; font-size: 11px; }
#comms-controls button[aria-pressed="true"] { color: #fff; border-color: var(--ct); }
#comms-feed { display: flex; flex-direction: column; gap: 3px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px #000; }
.comms-line { background: rgba(8,11,16,.72); border-radius: 4px; padding: 4px 7px; width: fit-content; max-width: 100%; }
#overlay-add { display: flex; gap: 8px; margin-top: 14px; }
#overlay-add.hidden { display: none; }
#add-input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid #2a3140; border-radius: 7px;
  padding: 10px 12px; color: var(--fg); font-size: 13px; }
#add-input:focus { outline: none; border-color: var(--ct); }
#add-btn { background: var(--ct); color: #06121f; border: none; border-radius: 7px; padding: 0 16px;
  font-weight: 600; font-size: 13px; cursor: pointer; }
#add-btn:disabled { opacity: .5; cursor: default; }
#overlay-connect { margin-top: 12px; padding-top: 12px; border-top: 1px solid #2a3140; }
#overlay-connect.hidden { display: none; }
.connect-title { font-size: 12px; color: #9aa3b2; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.connect-row { display: flex; gap: 8px; flex-wrap: wrap; }
.connect-row input { flex: 1 1 160px; background: rgba(255,255,255,.05); border: 1px solid #2a3140;
  border-radius: 7px; padding: 9px 11px; color: var(--fg); font-size: 13px; }
.connect-row input:focus { outline: none; border-color: var(--ct); }
#connect-btn { background: rgba(255,255,255,.08); color: var(--fg); border: 1px solid #2a3140;
  border-radius: 7px; padding: 0 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
#connect-btn:disabled { opacity: .5; cursor: default; }
.connect-hint { color: #6b7280; font-size: 11px; margin-top: 7px; }

#help-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 126px; z-index: 8;
  max-width: 52vw; text-align: center; color: #6c7686; font-size: 11px; user-select: none; }

/* ---- localhost smoke tuning ---- */
#smoke-dev-toggle {
  position: fixed; right: 14px; bottom: 104px; z-index: 30;
  background: rgba(20,24,32,.94); color: #e8eaf0; border: 1px solid #465265;
  border-radius: 5px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
#smoke-dev-toggle:hover { background: #2a3140; }
#smoke-dev-panel {
  position: fixed; right: 14px; top: 72px; bottom: 128px; z-index: 31;
  width: 380px; max-width: calc(100vw - 28px); background: rgba(12,14,18,.94);
  border: 1px solid #39414f; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.38);
  display: flex; flex-direction: column;
}
.smoke-dev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #2a3140; }
.smoke-dev-head strong { display: block; font-size: 13px; }
.smoke-dev-head span { display: block; margin-top: 1px; font-size: 10px; color: #7c8798; text-transform: uppercase; letter-spacing: .05em; }
.smoke-dev-head button { width: 26px; height: 26px; background: transparent; color: #cdd3dd;
  border: 1px solid #39414f; border-radius: 5px; cursor: pointer; }
.smoke-dev-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 9px 10px;
  border-bottom: 1px solid #2a3140; }
.smoke-dev-actions button { background: rgba(255,255,255,.06); color: #e8eaf0; border: 1px solid #39414f;
  border-radius: 5px; padding: 6px 8px; font-size: 12px; cursor: pointer; }
.smoke-dev-actions button:hover { background: rgba(110,168,255,.14); }
.smoke-dev-color { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid #2a3140; font-size: 12px; color: #cdd3dd; }
.smoke-dev-color input { width: 100%; height: 26px; background: transparent; border: 0; cursor: pointer; }
.smoke-dev-fields { overflow-y: auto; padding: 4px 0 8px; }
#smoke-dev-panel details { border-bottom: 1px solid rgba(255,255,255,.06); }
#smoke-dev-panel summary { cursor: pointer; padding: 8px 10px; color: #9aa3b2; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; user-select: none; }
.smoke-dev-row { display: grid; grid-template-columns: 110px 1fr 68px; gap: 8px; align-items: center;
  padding: 4px 10px; font-size: 12px; color: #d6dbe5; }
.smoke-dev-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smoke-dev-row input[type="range"] { width: 100%; }
.smoke-dev-row input[type="number"] { width: 68px; background: rgba(255,255,255,.06); color: #e8eaf0;
  border: 1px solid #39414f; border-radius: 4px; padding: 4px 5px; font-size: 11px; }
#smoke-dev-stats { margin: 0; padding: 9px 10px; border-top: 1px solid #2a3140; color: #9ff0c8;
  background: rgba(0,0,0,.24); font-size: 11px; line-height: 1.35; min-height: 86px; white-space: pre-wrap; }

#flash-overlay { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none;
  z-index: 40; transition: opacity .12s; }

#win-banner { position: fixed; top: 18%; left: 50%; transform: translateX(-50%); z-index: 12;
  font-size: 34px; font-weight: 800; letter-spacing: 1px; padding: 10px 34px; border-radius: 10px;
  background: rgba(10,12,18,.78); user-select: none; }
#win-banner.ct { color: var(--ct); } #win-banner.t { color: var(--t); }

#scope-overlay { position: fixed; inset: 0; z-index: 39; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 28%, rgba(0,0,0,.97) 40%); }
#scope-overlay .ring { position: absolute; left: 50%; top: 50%; width: 62vmin; height: 62vmin;
  transform: translate(-50%,-50%); border: 2px solid rgba(0,0,0,.85); border-radius: 50%; }
#scope-overlay .hline { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.8); }
#scope-overlay .vline { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0,0,0,.8); }

/* POV crosshair: classic static cross with a center gap */
#crosshair { position: fixed; left: 50%; top: 50%; z-index: 38; pointer-events: none; }
#crosshair i { position: absolute; background: #3df53d; outline: 1px solid rgba(0,0,0,.55); }
#crosshair .l { right: 4px; top: -1px; width: 8px; height: 2px; }
#crosshair .r { left: 4px; top: -1px; width: 8px; height: 2px; }
#crosshair .u { left: -1px; bottom: 4px; width: 2px; height: 8px; }
#crosshair .d { left: -1px; top: 4px; width: 2px; height: 8px; }

/* ---- account chip ---- */
#account { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.acct { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.acct-av { width: 26px; height: 26px; border-radius: 5px; flex: none; object-fit: cover; }
.acct-av-ph { background: linear-gradient(135deg, #2a3850, #1b2433); }
.acct-name { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-out { color: #9aa3b2; text-decoration: none; border: 1px solid #39414f; border-radius: 5px; padding: 3px 8px; }
.acct-out:hover { background: #2a3140; color: #fff; }
.acct-dev { color: #ffd24a; border: 1px solid #5a4d24; border-radius: 5px; padding: 2px 7px; font-size: 11px; }

/* rail account chip — opens the account settings modal */
.acct-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; background: rgba(255,255,255,.03); color: #e6edf5; cursor: pointer; font: inherit; text-align: left; }
.acct-chip:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.acct-chip .acct-name { font-size: 13.5px; flex: 1 1 auto; min-width: 0; }
.acct-gear { color: #8c97a8; font-size: 14px; flex: none; }

/* account settings modal */
#account-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4,6,10,.72); }
#account-modal.hidden { display: none; }
.account-card { width: 440px; max-width: 100%; max-height: 88vh; overflow-y: auto; background: #0c0f15;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 22px 24px 24px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.account-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.account-card-head h2 { font-family: var(--lp-disp); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .5px; color: #fff; margin: 0; }
.account-close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #cbd5e1; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; }
.account-close:hover { background: #1b2330; color: #fff; }
.acct-id { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.acct-av-lg { width: 52px; height: 52px; border-radius: 9px; flex: none; object-fit: cover; }
.acct-id-text { min-width: 0; }
.acct-name-lg { font-family: var(--lp-disp); font-weight: 700; font-size: 20px; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.acct-rows { display: flex; flex-direction: column; gap: 8px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.02); color: #e6edf5;
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.acct-row:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.acct-row .acct-row-cta { color: #8c97a8; font-size: 12.5px; flex: none; }
.acct-row.danger { border-color: rgba(224,90,90,.3); }
.acct-row.danger:hover { background: rgba(180,60,70,.16); border-color: rgba(224,90,90,.55); }
.acct-row.danger .acct-row-label { color: #f0a3a3; }
.account-section-label { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6c7686; margin: 20px 0 10px; }
.account-card #usage .usage-card { margin: 0; }

/* ---- login gate ---- */
#login-gate { text-align: center; padding: 18px 0 6px; }
.gate-text { color: #cdd3dd; font-size: 15px; margin-bottom: 16px; }
#steam-login { display: inline-block; transition: filter .15s; }
#steam-login:hover { filter: brightness(1.15); }
.steam-fallback { display: inline-block; background: #1b2838; color: #66c0f4; border: 1px solid #66c0f4;
  border-radius: 6px; padding: 10px 22px; font-weight: 600; cursor: pointer; }
.gate-sub { color: #6c7686; font-size: 12px; margin-top: 16px; }
.gate-or { color: #6c7686; font-size: 12px; margin: 20px 0 10px; }
.gate-samples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gate-sample { background: transparent; color: var(--ct);
  border: 1px solid var(--ct); border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; }
.gate-sample:hover { background: rgba(110,168,255,.12); }

/* ---- usage panel (billing-style) ---- */
.usage-card { background: rgba(255,255,255,.04); border: 1px solid #2a3140; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px; }
.usage-title { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #6c7686; margin-bottom: 12px; }
.usage-row { margin-bottom: 12px; }
.usage-row:last-child { margin-bottom: 0; }
.usage-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.usage-label { font-size: 13px; color: #cdd3dd; }
.usage-count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #e8eaf0; }
.usage-count.full { color: #ff7a6e; }
.usage-bar { height: 6px; border-radius: 3px; background: #232a36; overflow: hidden; }
.usage-fill { height: 100%; border-radius: 3px; background: var(--ct); transition: width .3s; }
.usage-fill.full { background: #e05050; }
.usage-reset { font-size: 11px; color: #6c7686; margin-top: 5px; font-variant-numeric: tabular-nums; min-height: 13px; }

/* =========================================================================
   RE/WATCH landing (front page), scoped under #overlay / #landing so none of
   it leaks onto the in-game HUD. Ported from the design handoff.
   ========================================================================= */
#overlay { --lp-orange: #e8a13a; --lp-orange-light: #f2ad42; --lp-orange-dark: #c47a1e;
  --lp-blue: #6da7e6; --lp-navy: #14233d; --lp-text2: #aeb6c2; --lp-muted: #9aa3b0;
  --lp-disp: 'Saira Condensed', sans-serif; --lp-body: 'Saira', system-ui, sans-serif; --lp-mono: 'JetBrains Mono', monospace; }

/* decorative background layers */
.lp-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lp-bg-ambient { background:
  radial-gradient(1100px 700px at 78% -8%, rgba(224,162,58,0.16), transparent 60%),
  radial-gradient(900px 760px at 8% 18%, rgba(77,143,214,0.14), transparent 62%),
  radial-gradient(700px 700px at 50% 120%, rgba(224,162,58,0.07), transparent 60%); }
.lp-bg-grid { opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); }
.lp-bg-vignette { box-shadow: inset 0 0 320px rgba(0,0,0,0.9); }
#lib-backdrop { display: none; }

#landing { position: relative; z-index: 1; flex: 1 1 auto; height: 100%; overflow-y: auto; overflow-x: hidden;
  font-family: var(--lp-body); }
#landing .wrap, #landing .nav, #landing .features, #landing .cta, #landing .foot { max-width: 1280px; margin: 0 auto; }

/* keyframes */
@keyframes lp-pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lp-wedgeIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lp-hatch { from { background-position: 0 0; } to { background-position: 88px 0; } }
@keyframes lp-sweep { 0% { transform: translateX(-120%) skewX(-12deg); } 60%,100% { transform: translateX(420%) skewX(-12deg); } }
@keyframes lp-glowPulse { 0%,100% { opacity: 0.55; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 50% { opacity: 0.95; filter: drop-shadow(0 0 26px rgba(255,255,255,0.35)); } }
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes lp-scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* nav */
#landing .nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; }
#landing .brand { display: flex; align-items: center; gap: 13px; }
#landing .badge { width: 34px; height: 34px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--lp-orange), var(--lp-orange-dark)); clip-path: polygon(0 0,100% 0,100% 70%,70% 100%,0 100%); }
#landing .badge .tri { width: 0; height: 0; border-left: 9px solid #0a0c10; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
#landing .brand-name { font-family: var(--lp-disp); font-weight: 800; font-size: 20px; letter-spacing: 1px; color: #fff; line-height: 1; }
#landing .brand-sub { font-family: var(--lp-mono); font-size: 9px; letter-spacing: 3px; color: #7c8696; margin-top: 2px; line-height: 1; }
#landing .nav-links { display: flex; align-items: center; gap: 30px; }
#landing .nav-link { font-family: var(--lp-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #aab2bf; text-decoration: none; transition: color .18s; }
#landing .nav-link:hover { color: #fff; }
#landing .btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: #16202c; border: 1px solid rgba(140,170,210,0.28);
  color: #dbe6f2; font-family: var(--lp-disp); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 9px 16px; cursor: pointer; transition: border-color .18s, background .18s; }
#landing .btn-ghost:hover { border-color: rgba(140,170,210,0.6); background: #1b2836; }
#landing .steam-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lp-blue); display: inline-block; }

/* hero */
#landing .hero { position: relative; overflow: hidden; }
#landing .wedge { position: absolute; top: 0; bottom: 0; right: 0; width: 52%; pointer-events: none; clip-path: polygon(26% 0,100% 0,100% 100%,7% 100%); }
#landing .wedge-fill { background: linear-gradient(150deg, var(--lp-orange-light), var(--lp-orange-dark) 80%); box-shadow: 0 0 180px rgba(232,161,58,0.28); animation: lp-wedgeIn .9s ease both; }
#landing .wedge-hatch { background: repeating-linear-gradient(118deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 26px); animation: lp-hatch 7s linear infinite; }
#landing .wedge-seam { clip-path: polygon(26% 0,26.7% 0,7.7% 100%,7% 100%); background: rgba(255,255,255,0.6); }
#landing .wedge-sweep { overflow: hidden; }
#landing .wedge-sweep > i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 24%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-12deg); animation: lp-sweep 7s ease-in-out infinite; }
#landing .giant2 { position: absolute; right: 3%; top: 50%; transform: translateY(-53%); font-family: var(--lp-disp); font-weight: 800;
  font-size: min(540px, 40vw); line-height: 0.7; color: transparent; -webkit-text-stroke: 4px rgba(255,255,255,0.85);
  animation: lp-glowPulse 3.6s ease-in-out infinite; pointer-events: none; user-select: none; z-index: 1; }
#landing .cs-wordmark { position: absolute; right: 40px; bottom: 34px; text-align: right; pointer-events: none; z-index: 2; }
#landing .cs-wordmark div { font-family: var(--lp-disp); font-weight: 800; font-size: 24px; color: var(--lp-navy); line-height: 1.04; }
#landing .cs-wordmark .l1 { letter-spacing: 8px; }
#landing .cs-wordmark .l2 { letter-spacing: 13px; }
#landing .hero-grid { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 26px 40px 0;
  display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,0.96fr); gap: 36px; align-items: stretch; min-height: 560px; }
#landing .hero-left { align-self: center; padding-bottom: 48px; }
#landing .eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(224,162,58,0.35); padding: 7px 13px; margin-bottom: 24px; }
#landing .pulse-dot { width: 7px; height: 7px; background: var(--lp-orange); animation: lp-pulseDot 1.6s ease-in-out infinite; }
#landing .eyebrow-pill span:last-child { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--lp-orange); text-transform: uppercase; }
#landing .hero h2 { font-family: var(--lp-disp); font-weight: 800; font-size: clamp(34px,3.6vw,60px); line-height: 1.0; letter-spacing: 0.5px;
  text-transform: uppercase; margin: 0 0 22px; color: #fff; max-width: 9ch; }
#landing .hero h2 .accent { color: var(--lp-orange); }
#landing .lead { font-size: 17px; line-height: 1.55; color: var(--lp-text2); max-width: 410px; margin: 0 0 28px; }
#landing .lead code { font-family: var(--lp-mono); font-size: 14px; color: #dbe6f2; }
#landing .hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#landing .btn-solid { display: inline-flex; align-items: center; gap: 9px; background: var(--lp-orange); color: #0a0c10;
  font-family: var(--lp-disp); font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 20px;
  border: none; cursor: pointer; transition: filter .18s; }
#landing .btn-solid:hover { filter: brightness(1.08); }
#landing .play-tri { width: 0; height: 0; border-left: 8px solid #0a0c10; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
#landing .btn-text { background: none; border: none; color: var(--lp-blue); font-family: var(--lp-disp); font-weight: 600; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer; padding: 6px 2px; }
#landing .btn-text:hover { color: #fff; }
#landing .hero-hint { font-size: 12.5px; color: #6e7787; margin: 16px 0 0; max-width: 360px; }
#landing .hero-right { position: relative; min-height: 560px; }
#landing .operative { position: absolute; left: -6%; right: -6%; bottom: 0; top: 30px; animation: lp-float 5.6s ease-in-out infinite;
  filter: drop-shadow(0 30px 44px rgba(0,0,0,0.5)); z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
#landing .operative svg { width: auto; height: 100%; max-width: 100%; display: block; }
#landing .operative img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom center; display: block; user-select: none; -webkit-user-drag: none; }

/* showcase */
#landing .showcase { max-width: 1060px; margin: 0 auto; padding: 10px 40px 70px; position: relative; }
#landing .showcase-eyebrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
#landing .showcase-eyebrow .l { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 3px; color: var(--lp-orange); text-transform: uppercase; }
#landing .showcase-eyebrow .r { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 1px; color: #6e7787; }
#landing .monitor { position: relative; border: 1px solid rgba(255,255,255,0.1); background: #0a0c10; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(224,162,58,0.06); }
#landing .monitor-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(12,15,20,0.9); }
#landing .monitor-bar .left { display: flex; align-items: center; gap: 9px; }
#landing .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #e8434f; animation: lp-pulseDot 1.4s ease-in-out infinite; }
#landing .monitor-bar .replay { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 2px; color: #dbe6f2; }
#landing .monitor-bar .meta { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 1px; color: #6e7787; }
#landing .monitor-bar .geo { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 1px; color: var(--lp-orange); }
#landing .monitor-shot { position: relative; overflow: hidden; aspect-ratio: 1604 / 920; }
#landing .monitor-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
#landing .shot-grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 40%, rgba(6,7,10,0.35)); }
#landing .shot-scan { position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; background: linear-gradient(rgba(224,162,58,0.07), transparent); animation: lp-scan 5.5s linear infinite; }
#landing .bracket { position: absolute; width: 18px; height: 18px; }
#landing .bracket.tl { top: 10px; left: 10px; border-left: 2px solid rgba(224,162,58,0.7); border-top: 2px solid rgba(224,162,58,0.7); }
#landing .bracket.tr { top: 10px; right: 10px; border-right: 2px solid rgba(224,162,58,0.7); border-top: 2px solid rgba(224,162,58,0.7); }
#landing .bracket.bl { bottom: 10px; left: 10px; border-left: 2px solid rgba(224,162,58,0.7); border-bottom: 2px solid rgba(224,162,58,0.7); }
#landing .bracket.br { bottom: 10px; right: 10px; border-right: 2px solid rgba(224,162,58,0.7); border-bottom: 2px solid rgba(224,162,58,0.7); }

/* features */
#landing .features { padding: 30px 40px 80px; }
#landing .features-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 34px; }
#landing .features-head .eyebrow { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 3px; color: var(--lp-orange); text-transform: uppercase; margin-bottom: 12px; }
#landing .features-head h2 { font-family: var(--lp-disp); font-weight: 800; font-size: clamp(34px,4vw,52px); line-height: 0.95; text-transform: uppercase; margin: 0; color: #fff; max-width: 620px; }
#landing .features-head .count { font-family: var(--lp-mono); font-size: 12px; color: #7c8696; text-align: right; line-height: 1.7; flex: none; }
#landing .feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.09); }
#landing .cell { background: #0a0c11; padding: 30px 28px; transition: background .18s; }
#landing .cell:hover { background: #10141b; }
#landing .cell .idx { font-family: var(--lp-mono); font-size: 12px; color: #3f4856; margin-bottom: 20px; }
#landing .cell svg { margin-bottom: 18px; }
#landing .cell h3 { font-family: var(--lp-disp); font-weight: 700; font-size: 23px; text-transform: uppercase; margin: 0 0 10px; color: #fff; letter-spacing: 0.5px; }
#landing .cell p { font-size: 15px; line-height: 1.55; color: var(--lp-muted); margin: 0; }

/* steam cta */
#landing .cta { padding: 0 40px 80px; }
#landing .cta-panel { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: linear-gradient(135deg, #0d1a26, #0a0e14 65%); padding: 56px 48px; }
#landing .cta-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; background: radial-gradient(700px 400px at 90% 20%, rgba(109,167,230,0.25), transparent 60%); }
#landing .cta-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
#landing .cta-copy { max-width: 560px; }
#landing .cta-copy .eyebrow { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 3px; color: var(--lp-blue); text-transform: uppercase; margin-bottom: 16px; }
#landing .cta-copy h2 { font-family: var(--lp-disp); font-weight: 800; font-size: clamp(32px,4vw,50px); line-height: 0.95; text-transform: uppercase; margin: 0 0 16px; color: #fff; }
#landing .cta-copy p { font-size: 17px; line-height: 1.55; color: var(--lp-text2); margin: 0; }
#landing .cta-actions { flex: none; display: flex; flex-direction: column; gap: 14px; }
#landing .btn-steam { display: inline-flex; align-items: center; gap: 13px; background: linear-gradient(180deg, #2a475e, #1b2838); border: 1px solid rgba(140,180,220,0.4); color: #fff; text-decoration: none; padding: 16px 26px; transition: border-color .18s; }
#landing .btn-steam:hover { border-color: rgba(140,180,220,0.8); }
#landing .steam-glyph { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cfe0f2; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
#landing .steam-glyph i { width: 7px; height: 7px; border-radius: 50%; background: #cfe0f2; }
#landing .btn-steam .sub { display: block; font-family: var(--lp-mono); font-size: 10px; letter-spacing: 2px; color: #9fc0e0; }
#landing .btn-steam .big { font-family: var(--lp-disp); font-weight: 700; font-size: 22px; letter-spacing: 1px; }
#landing .cta-local { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 1px; color: #6e7787; text-align: center; }

/* footer */
#landing .foot { padding: 30px 40px 50px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#landing .foot-brand { display: flex; align-items: center; gap: 12px; }
#landing .foot-badge { width: 26px; height: 26px; background: linear-gradient(145deg, var(--lp-orange), var(--lp-orange-dark)); clip-path: polygon(0 0,100% 0,100% 70%,70% 100%,0 100%); }
#landing .foot-name { font-family: var(--lp-disp); font-weight: 800; font-size: 16px; letter-spacing: 1px; color: #fff; }
#landing .foot-legal { font-family: var(--lp-mono); font-size: 11px; line-height: 1.6; color: #6e7787; margin: 0; max-width: 560px; }

/* About section: holds the hero/showcase/features/CTA marketing below the
   dashboard. Reset the .dash-section padding so those keep their own full-bleed
   layout; separate it from the dashboard above. */
#sec-about.dash-about { padding: 0; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---- responsive: tablet ---- */
@media (max-width: 1100px) {
  #landing .hero-right { display: none; }
  #landing .wedge { width: 60%; opacity: 0.45; }
  #landing .hero h2 { max-width: 16ch; }
  #landing .feature-grid { grid-template-columns: repeat(2,1fr); }
  .demo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ---- responsive: phone — nav rail becomes an off-canvas drawer ---- */
@media (max-width: 760px) {
  #overlay-box { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; flex-basis: 80vw; width: 80vw; max-width: 320px;
    transform: translateX(-102%); transition: transform .26s var(--ease); }
  #overlay.library-open #overlay-box { transform: translateX(0); }
  .lib-close { display: inline-flex; align-items: center; justify-content: center; }
  .dash-burger { display: inline-flex; }
  #lib-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity .26s; }
  #overlay.library-open #lib-backdrop { opacity: 1; pointer-events: auto; }
  .dash-head { padding: 20px 20px 14px; flex-wrap: wrap; }
  .dash-actions { width: 100%; }
  .dash-status, #upload-cancel, #login-gate:not(.hidden) { margin-left: 20px; margin-right: 20px; }
  .dash-section { padding: 8px 20px 22px; }
  #landing .hero-grid { padding: 20px 22px 0; min-height: 0; }
  #landing .showcase, #landing .features, #landing .cta { padding-left: 22px; padding-right: 22px; }
  #landing .feature-grid { grid-template-columns: 1fr; }
  #landing .cta-panel { padding: 36px 24px; }
  #landing .giant2 { opacity: 0.3; }
  .demo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  #landing .wedge-fill, #landing .wedge-hatch, #landing .wedge-sweep > i, #landing .giant2,
  #landing .operative, #landing .shot-scan, #landing .pulse-dot, #landing .rec-dot { animation: none !important; }
  #overlay-box, #lib-backdrop { transition: none !important; }
}
