/* EXT site prototype v2: same design language as extclub.com (tokens copied from site/index.html).
   bg #0A0A0C, surfaces #131318/#1A1A21, accent #FF4D00, system sans, mono wordmark.
   Team colors: CT #7CC4FF, T #E3B341. */
:root {
  --night: #0A0A0C;
  --slate: rgba(20, 20, 26, .58);
  --steel: rgba(30, 30, 38, .7);
  --raise: #22222B;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --signal: #FF4D00;
  --signal-2: #FF6A00;
  --signal-soft: rgba(255, 77, 0, .12);
  --frost: #7CC4FF;
  --brass: #E3B341;
  --bone: #F1F2F6;
  --body: #C9CAD3;
  --ash: #9A9CAA;
  --ash-2: #63656F;
  --win: #3ECF7F;
  --loss: #F0555B;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 11px;
  --pill: 999px;
  --gut: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { position: relative; z-index: 0; }
html, body { margin: 0; color: var(--bone); font: 400 14px/1.45 var(--sans); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.num { font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* header: identical to extclub.com */
.top { display: flex; align-items: center; gap: 10px; padding: 14px 48px; min-height: 69px; box-sizing: border-box; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 12, .82); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo { font-family: var(--mono); font-weight: 800; font-size: 18px; letter-spacing: .12em; color: var(--bone); }
.logo b { color: var(--signal); }
.logo-sub { font-size: 11px; letter-spacing: .14em; color: var(--ash-2); text-transform: uppercase; }
.menu { display: flex; gap: 2px; margin-left: 18px; }
.menu a { font-size: 13px; font-weight: 600; color: var(--ash); text-decoration: none; padding: 8px 10px; border-radius: var(--pill); }
.menu a:hover { color: var(--bone); }
.menu a[aria-current="page"] { color: var(--bone); background: var(--slate); box-shadow: inset 0 0 0 1px var(--line-2); }
.top .grow { flex: 1; }
.lang { display: flex; gap: 2px; padding: 3px; background: var(--slate); border: 1px solid var(--line); border-radius: var(--pill); }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; color: var(--ash); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--signal); color: #0A0A0C; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--slate); padding: 10px 16px; border-radius: var(--pill); text-decoration: none; cursor: pointer; font-weight: 700; font-size: 13px; }
.btn:hover { border-color: var(--signal); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #0A0A0C; box-shadow: 0 10px 30px -14px rgba(255, 77, 0, .9); }
.btn.primary:hover { background: var(--signal-2); }

.wrap { max-width: 1560px; margin: 0 auto; padding: 0 var(--gut); }

/* match header */
.mhead { display: flex; align-items: flex-end; gap: 28px; padding: 26px 0 18px; flex-wrap: wrap; }
.mhead .map { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; }
.mhead .meta { color: var(--ash); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.vs { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.vs .tn { font-weight: 700; font-size: 15px; text-align: right; }
.vs .tn small { display: block; color: var(--ash); font-weight: 500; font-size: 12px; }
.vs .tn.r { text-align: left; }
.score { display: flex; align-items: center; gap: 10px; font-size: 54px; line-height: 1; }
.score .sep { color: var(--ash-2); font-weight: 400; font-size: 40px; }
.score .lost { opacity: .4; }
.mhead .acts { display: flex; gap: 8px; }

/* stage */
.stage { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 14px; align-items: start; }
.roster { display: flex; flex-direction: column; gap: 6px; }
.roster h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.roster h3 .side { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; color: #0A0A0C; }
.roster h3 .side.CT { background: var(--frost); }
.roster h3 .side.T { background: var(--brass); }
.roster h3 .eq { margin-left: auto; font-weight: 600; font-size: 11.5px; color: var(--ash); white-space: nowrap; }
.roster h3 > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prow { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 3px 9px; align-items: center; padding: 8px 9px 10px; background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: opacity .25s, border-color .15s; cursor: pointer; }
.prow:hover { border-color: var(--line-2); }
.prow.me { box-shadow: inset 0 0 0 1px var(--signal); }
.prow.follow { border-color: var(--bone); }
.prow.dead { opacity: .4; }
.prow .av.av-x { display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--ash); background: rgba(255, 255, 255, .08); }
.prow .av { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; grid-row: span 2; background: var(--steel); }
.prow .nm { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; min-width: 0; }
.prow .nm .t { overflow: hidden; text-overflow: ellipsis; }
.prow .kd { font-size: 13px; font-weight: 800; color: var(--ash); text-align: right; white-space: nowrap; }
.prow .kd b { color: var(--bone); }
.prow .gear { display: flex; gap: 4px; align-items: center; min-width: 0; height: 18px; overflow: hidden; }
.prow .money { color: var(--win); font-weight: 700; text-align: right; font-size: 12px; }
.prow .hp { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--team); transition: width .2s; }
.prow .hp.low { background: var(--loss); }
.prow .tag { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #0A0A0C; background: var(--team); flex: none; }
.prow .mic { width: 14px; height: 14px; flex: none; opacity: 0; transition: opacity .1s; color: var(--team); }
.prow.talk .mic { opacity: 1; }
.prow.talk { border-color: var(--team); }
.wi { display: inline-block; height: 15px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.gear .wi { color: var(--bone); }
.gear .wi.dim { color: var(--ash-2); }
.lvl { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 9.5px; font-weight: 800; border: 2px solid currentColor; flex: none; }

/* radar */
.radar-card { position: relative; background: radial-gradient(120% 90% at 50% 40%, #15151c 0%, var(--night) 70%); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - 236px); min-height: 520px; }
.radar-card canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.radar-card canvas.drag { cursor: grabbing; }
.hud-top { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; align-items: stretch; pointer-events: none; }
.hud-top .clock { background: rgba(10, 10, 12, .82); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px 14px; text-align: center; }
.hud-top .clock .rn { color: var(--ash); font-size: 11px; font-weight: 600; }
.hud-top .clock .tm { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.hud-top .clock .tm.bomb { color: var(--loss); }
.hud-top .phase { align-self: center; color: var(--body); font-size: 12px; font-weight: 600; background: rgba(10, 10, 12, .82); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 11px; }
.zoomctl { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.mapstyle { position: absolute; right: 56px; bottom: 12px; display: flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(10, 10, 12, .82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.mapstyle button { border: 0; background: none; color: var(--ash); font: 600 12px var(--sans); padding: 5px 11px; border-radius: var(--pill); cursor: pointer; }
.mapstyle button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.mapstyle button:focus-visible { outline: 2px solid var(--accent); }
.zoomctl button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10, 10, 12, .82); cursor: pointer; font-weight: 800; }
.follow-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(10, 10, 12, .86); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 6px 12px; font-size: 12px; font-weight: 600; display: none; gap: 8px; align-items: center; }
.follow-tag.on { display: flex; }
.follow-tag button { border: 0; background: none; color: var(--ash); cursor: pointer; font-weight: 700; }

/* CS-style kill feed */
.feed { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; max-width: 62%; }
.kf { display: flex; gap: 7px; align-items: center; background: rgba(10, 10, 12, .78); border-radius: 6px; padding: 4px 9px; font-size: 13px; font-weight: 700; white-space: nowrap; animation: kfin .2s ease-out; }
.kf.mine { box-shadow: inset 0 0 0 1.5px var(--signal); background: rgba(40, 12, 0, .82); }
.kf .wi { height: 16px; color: var(--bone); }
.kf .mk { height: 15px; color: var(--bone); }
.kf .as { color: var(--ash); font-weight: 600; }
.kf.ev { font-weight: 600; color: var(--body); }
@keyframes kfin { from { opacity: 0; transform: translateX(10px); } }
.toast-moment { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); background: var(--signal); color: #160500; font-size: 18px; font-weight: 800; padding: 9px 16px; border-radius: var(--pill); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.toast-moment.on { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* transport */
.transport { display: grid; grid-template-columns: auto auto auto auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--slate); border: 1px solid var(--line-2); cursor: pointer; }
.ibtn:hover { border-color: var(--signal); }
.ibtn.play { background: var(--signal); border-color: var(--signal); color: #0A0A0C; }
.ibtn.voice { width: auto; padding: 0 14px; gap: 8px; display: inline-flex; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ibtn.voice[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }
.ibtn.vol { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.ibtn.vol > * { position: relative; }
.ibtn.vol .vlvl { position: absolute; inset: 0 auto 0 0; height: auto; border-radius: 0; display: block; background: rgba(255, 255, 255, .06); pointer-events: none; transition: background .15s; }
.ibtn.vol[aria-pressed="true"] .vlvl { background: rgba(255, 77, 0, .16); }
.ibtn.vol.dragging .vlvl { background: rgba(255, 77, 0, .32); transition: none; }
.ibtn.vol.dragging > span { opacity: 0; }
.ibtn.vol.dragging::after { content: attr(data-vol); position: absolute; inset: 0; display: grid; place-items: center; padding-left: 22px; font-size: 13px; font-weight: 800; color: #fff; }
.stage:fullscreen { background: var(--night); padding: 16px; align-items: stretch; }
.stage:fullscreen .radar-card { height: calc(100vh - 120px); }
.ibtn svg { width: 18px; height: 18px; }
.speed { min-width: 48px; height: 40px; border-radius: 12px; background: var(--slate); border: 1px solid var(--line-2); cursor: pointer; font-weight: 800; }
.scrub { position: relative; height: 40px; background: var(--slate); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.scrub .freeze { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .035) 6px 12px); border-right: 1px dashed var(--ash-2); border-radius: 12px 0 0 12px; }
.scrub .fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--signal-soft); border-right: 2px solid var(--signal); }
.scrub .tick { position: absolute; top: 8px; width: 4px; height: 24px; border-radius: 2px; transform: translateX(-2px); }
.scrub .tick.mine { box-shadow: 0 0 0 2px var(--signal); }
.scrub .tick.bomb { width: 10px; height: 10px; top: 15px; border-radius: 2px; transform: translateX(-5px) rotate(45deg); background: var(--loss); }
.scrub .tip { position: absolute; bottom: 48px; transform: translateX(-50%); background: rgba(10, 10, 12, .95); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; pointer-events: none; white-space: nowrap; font-size: 12.5px; font-weight: 700; display: none; z-index: 5; }
.scrub .tip.on { display: flex; gap: 7px; align-items: center; }
.scrub .tip .wi { height: 14px; }
.scrub .tip .tt { color: var(--ash); font-weight: 600; margin-right: 4px; }
.rchips { display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.rchip { flex: none; min-width: 38px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--slate); cursor: pointer; font-weight: 800; font-size: 12px; position: relative; padding: 0 6px; }
.rchip i { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 2px; }
.rchip.on { border-color: var(--signal); background: var(--signal-soft); }
.rchip.half { margin-left: 10px; }

/* economy ribbon */
.ribbon { margin: 18px 0 8px; background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 10px; position: relative; }
.ribbon-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.ribbon-head h4 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ribbon-head .legend { color: var(--ash); font-size: 12px; display: flex; gap: 14px; }
.ribbon-head .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ribbon svg { width: 100%; height: 150px; display: block; overflow: visible; }
.ribbon .col { cursor: pointer; }
.ribbon .col:hover .hit { fill: rgba(255, 255, 255, .04); }
.rtip { position: absolute; background: rgba(10, 10, 12, .96); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; pointer-events: none; display: none; min-width: 230px; z-index: 5; }
.rtip.on { display: block; }
.rtip b { font-size: 14px; }
.rtip .row { display: flex; justify-content: space-between; gap: 12px; color: var(--ash); margin-top: 3px; }
.rtip .row span:last-child { color: var(--bone); font-weight: 700; }

/* analysis */
.tabs { display: flex; gap: 4px; margin: 34px 0 18px; padding: 4px; background: var(--slate); border: 1px solid var(--line); border-radius: var(--pill); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 16px; color: var(--ash); font-weight: 700; font-size: 13px; cursor: pointer; border-radius: var(--pill); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #0A0A0C; background: var(--signal); }
.panel[hidden] { display: none; }
.ov { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.mvp { position: relative; background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; overflow: hidden; min-height: 320px; }
.mvp .bgav { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .2; transform: scale(1.2); }
.mvp > * { position: relative; }
.mvp .who { display: flex; gap: 16px; align-items: center; }
.mvp .who img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 2px var(--signal); }
.mvp .who h2 { margin: 4px 0 2px; font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.mvp .who .sub { color: var(--ash); font-size: 13px; }
.mvp .rating { position: absolute; right: 24px; top: 20px; text-align: right; }
.mvp .rating b { display: block; font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--signal); }
.mvp .rating span { color: var(--ash); font-size: 12px; }
.mvp .nums { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 16px; }
.mvp .nums div { padding: 0 14px; border-left: 1px solid var(--line-2); }
.mvp .nums div:first-child { border-left: 0; padding-left: 0; }
.mvp .nums b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.mvp .nums span { color: var(--ash); font-size: 12px; }
.moments { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moment { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; text-align: left; font-size: 13px; }
.moment:hover { border-color: var(--signal); }
.moment .r { margin-left: auto; color: var(--ash); font-size: 12px; white-space: nowrap; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead { background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px; }
.lead .lbl { color: var(--ash); font-size: 12px; grid-column: 1 / -1; }
.lead b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.lead .p { display: flex; align-items: center; gap: 7px; font-weight: 700; justify-content: flex-end; font-size: 13px; }
.lead .p img { width: 24px; height: 24px; border-radius: 7px; }
h3.blk { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 26px 0 12px; }

table.st { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
table.st caption { text-align: left; font-size: 20px; font-weight: 800; letter-spacing: -.02em; padding: 6px 0 12px; }
table.st caption .res { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: var(--pill); margin-left: 8px; vertical-align: 3px; }
table.st caption .res.w { background: rgba(62, 207, 127, .15); color: var(--win); }
table.st caption .res.l { background: rgba(240, 85, 91, .15); color: var(--loss); }
table.st th { color: var(--ash); font-weight: 600; font-size: 12px; text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.st th:first-child, table.st td:first-child { text-align: left; }
table.st td { padding: 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
table.st tr.me td { background: var(--signal-soft); }
table.st td .pl { display: flex; align-items: center; gap: 10px; font-weight: 700; }
table.st td .pl img { width: 28px; height: 28px; border-radius: 8px; }
table.st td.rt { font-weight: 800; font-size: 15px; }
.hi { color: var(--win); }
.lo { color: var(--loss); }

.duels { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 920px; }
.duels .c { aspect-ratio: 1.7 / 1; display: grid; place-items: center; border-radius: 9px; font-size: 16px; font-weight: 800; }
.duels .h { color: var(--ash); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.duels .h img { width: 22px; height: 22px; border-radius: 6px; }

.maps2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.mini { background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.mini h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.mini h4 span { font-size: 12px; font-weight: 500; color: var(--ash); }
.mini canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 12px; background: var(--night); }
.seg { display: inline-flex; background: var(--slate); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; gap: 2px; margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: var(--pill); cursor: pointer; color: var(--ash); font-weight: 700; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--signal); color: #0A0A0C; }

footer.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px var(--gut); color: var(--ash-2); font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
footer.foot .logo { font-size: 13px; }

@media (max-width: 1200px) {
  .stage { grid-template-columns: 1fr; }
  .roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .roster h3 { grid-column: 1 / -1; }
  .radar-card { height: min(92vw, 760px); }
  .ov { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .menu, .logo-sub, .lang { display: none; }
  .vs { margin-left: 0; }
  .score { font-size: 40px; }
  .mvp .nums { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .moments, .leaders { grid-template-columns: 1fr; }
}

/* EXT glass (same recipe as the extension's 03-glass.js): translucent dark, blur, thin light border */
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(255, 77, 0, .22), transparent 70%),
    radial-gradient(30% 28% at 88% 78%, rgba(255, 120, 40, .15), transparent 70%),
    radial-gradient(40% 36% at 72% 8%, rgba(90, 110, 210, .13), transparent 70%),
    radial-gradient(50% 40% at 30% 95%, rgba(140, 40, 90, .12), transparent 70%),
    #0A0A0C;
  filter: blur(30px); }
.glass, .prow, .lead, .mvp, .mini, .tabs, .scrub, .ibtn:not(.play), .speed, .rchip, .ribbon, .seg, .kf, .hud-top .clock, .hud-top .phase, .zoomctl button, .follow-tag, .rtip, .scrub .tip, .top {
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
.glass, .prow, .lead, .mvp, .mini, .ribbon, .rtip { border-color: rgba(255, 255, 255, .1); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.radar-card.glass { background: rgba(14, 14, 18, .55); }
.ico { display: inline-block; vertical-align: middle; flex: none; }
.ico.dim { opacity: .3; }
.gear .ico { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }
.kf .ico.mk { height: 15px; }

.prow .kd { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.prow .rkn { font-style: normal; color: var(--signal); font-size: 8px; letter-spacing: 1px; }
.util { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--slate); border: 1px solid rgba(255,255,255,.08); font-weight: 800; font-size: 12.5px; -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
.util .ul { color: var(--ash); font-weight: 600; font-size: 11.5px; margin-right: auto; }
.util span { display: inline-flex; align-items: center; gap: 3px; }
.util span.zero { opacity: .35; }
.ptip { min-width: 170px; }
.keys { position: absolute; left: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,10,12,.8); color: var(--ash); font-weight: 800; cursor: pointer; }
.keyhelp { position: absolute; left: 12px; bottom: 50px; background: rgba(10,10,12,.95); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; min-width: 250px; display: none; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.keys:hover + .keyhelp, .keys:focus + .keyhelp { display: block; }
.keyhelp .row { display: flex; justify-content: space-between; gap: 14px; color: var(--ash); margin-top: 4px; }
.keyhelp .row span:last-child { color: var(--bone); font-weight: 700; }
.follow-tag { left: 50px; }

table.rounds td { vertical-align: middle; }
table.rounds tbody tr { cursor: pointer; }
table.rounds tbody tr:hover td { background: rgba(255,255,255,.03); }
table.rounds .rn { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: var(--steel); font-weight: 800; }
table.rounds .mut, table.st .mut { color: var(--ash); font-size: 12px; font-weight: 500; }
table.rounds td.kl { text-align: left; white-space: normal; max-width: 620px; }
table.rounds .rk { display: inline-flex; align-items: center; gap: 4px; margin: 2px 8px 2px 0; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: 12px; }
table.rounds .rk.mine { box-shadow: inset 0 0 0 1px var(--signal); }
table.rounds td:nth-child(2), table.rounds th:nth-child(2) { text-align: left; }
.stage > * { min-width: 0; }
@media (max-width: 1200px) { .roster { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); } }
@media (max-width: 700px) {
  .roster h3 { flex-wrap: wrap; }
  .roster h3 .eq { margin-left: 0; width: 100%; }
  .mhead .acts { width: 100%; }
  .vs { width: 100%; justify-content: space-between; }
  .feed { max-width: 92%; }
  .kf { font-size: 11.5px; padding: 3px 7px; }
  .transport { grid-template-columns: auto auto auto auto; }
  .transport .scrub { grid-column: 1 / -1; }
  .ibtn.voice span { display: none; }
}

.insp-ctl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.insp-ctl .seg { margin: 0; }
.insp-ctl .seg button { display: inline-flex; align-items: center; gap: 6px; }
.insp-ctl .sel { width: auto; min-width: 180px; background: rgba(10,10,12,.6); color: var(--bone); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; font: 600 13px var(--sans); }
.insp-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.insp-map { position: relative; background: rgba(14,14,18,.55); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 12px; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.insp-map canvas { width: 100%; max-width: 760px; aspect-ratio: 1; display: block; margin: 0 auto; }
.insp-side { background: var(--slate); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.insp-side .ttl { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.insp-side .who { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.03); cursor: pointer; font-weight: 700; font-size: 13px; text-align: left; }
.insp-side .who:hover { border-color: var(--line-2); }
.insp-side .who img { width: 24px; height: 24px; border-radius: 7px; }
.insp-side .who b { margin-left: auto; }
.insp-side .hint { color: var(--ash-2); font-size: 12px; margin: 6px 0 0; }
@media (max-width: 1000px) { .insp-body { grid-template-columns: 1fr; } }

.rbanner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); background: rgba(10,10,12,.86); border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 22px; display: flex; gap: 12px; align-items: baseline; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 50px -12px rgba(0,0,0,.7); }
.rbanner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rbanner .w { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.rbanner span { color: var(--body); font-weight: 600; }
.rbanner b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.speak { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.speak.on { opacity: 1; }
.speak span { display: inline-flex; align-items: center; gap: 5px; background: rgba(10,10,12,.85); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 12.5px; font-weight: 700; }
.speak .micI { width: 13px; height: 13px; }

.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mine-grid .lead.moment { display: grid; text-align: left; cursor: pointer; }

.wgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
table.wtab td .pl span { font-weight: 700; }
table.wtab .bar { width: 140px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-left: auto; }
table.wtab .bar i { display: block; height: 100%; background: var(--signal); border-radius: 3px; }
.wper { background: var(--slate); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 16px; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.wrow { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.wrow:last-child { border-bottom: 0; }
.wrow.me { background: var(--signal-soft); border-radius: 10px; }
.wrow img { border-radius: 7px; }
.wrow .nk { font-weight: 700; font-size: 13px; width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .wl { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.wrow .wc { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
@media (max-width: 1000px) { .wgrid { grid-template-columns: 1fr; } }

.btn.reel { border-color: rgba(255,77,0,.5); color: var(--signal); }
.btn.reel[aria-pressed="true"] { background: var(--signal); color: #0A0A0C; }
.reelbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: rgba(10,10,12,.9); border: 1px solid rgba(255,77,0,.5); border-radius: 999px; padding: 6px 8px 6px 16px; font-size: 13px; white-space: nowrap; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 4; }
.reelbar.on { display: flex; }
.reelbar b { color: var(--signal); }
.reelbar span { color: var(--body); font-weight: 600; }
.reelbar button { border: 1px solid var(--line-2); background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
.radar-card.reel .feed { top: 58px; }
.radar-card.reel .hud-top { top: 58px; }

/* "Готовим реплей" (js/prep.js) */
.preparing main > :not(#prep) { display: none !important; }
#prep { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 40px 0; }
.prep { width: min(520px, 100%); padding: 28px; border-radius: 22px; }
.prep-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.prep-head h2 { margin: 0; font-size: 22px; }
.prep-head p { margin: 4px 0 0; color: var(--ash); font-size: 14px; }
.prep-spin { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--signal); animation: prepspin .9s linear infinite; }
@keyframes prepspin { to { transform: rotate(360deg); } }
.prep-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.prep-steps li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; color: var(--ash); font-size: 14px; }
.prep-steps .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.prep-steps li.now { color: #fff; font-weight: 700; }
.prep-steps li.now .dot { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 77, 0, .2); }
.prep-steps li.done .dot { border-color: #6ADE43; background: #6ADE43; }
.prep-steps .st { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ash); font-weight: 600; }
.prep-steps li.now .st { color: var(--signal); }
.prep-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.prep-bar i { display: block; height: 100%; width: 0; background: var(--signal); border-radius: inherit; transition: width .35s ease; }
.prep-note { margin: 16px 0 0; font-size: 12.5px; color: var(--ash); line-height: 1.5; }
.prep.err .prep-spin { animation: none; border-top-color: #F0555B; }
@media (prefers-reduced-motion: reduce) { .prep-spin { animation: none; } .prep-bar i { transition: none; } }

/* Replay page, slim top (Jynk0 27.11: the whole replay with its controls must fit without scrolling).
   The match row shares the stage grid: map over the left roster, live score over the radar centre,
   buttons over the right roster. */
.page-replay .top { padding-top: 8px; padding-bottom: 8px; }
.page-replay .top .btn { padding-top: 8px; padding-bottom: 8px; }
.page-replay .mhead { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 14px; align-items: center; padding: 10px 0 10px; flex-wrap: nowrap; }
.page-replay .mhead .mh-map { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.page-replay .mhead .map { font-size: 26px; letter-spacing: -.03em; }
.page-replay .mhead .meta { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.page-replay .vs { margin: 0; justify-content: center; gap: 14px; }
.page-replay .vs .tn { flex: 1 1 0; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-replay .score { font-size: 32px; gap: 8px; flex: none; font-variant-numeric: tabular-nums; }
.page-replay .score .sep { font-size: 24px; }
.page-replay .mhead .acts { justify-content: flex-end; gap: 6px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
/* radar takes what is left of the screen height: top bar + match row + transport + round chips */
.page-replay .radar-card { height: calc(100dvh - var(--chrome-h, 190px)); min-height: 420px; }
@media (max-width: 1100px) {
  .page-replay .mhead { grid-template-columns: 1fr; gap: 8px; }
  .page-replay .mhead .acts { justify-content: flex-start; }
}

/* the scrub bar always takes the last, stretching column, also when the CS2 button is hidden (no folder picker) */
.transport .scrub { grid-column: -2 / -1; }
@media (max-width: 700px) { .transport .scrub { grid-column: 1 / -1; } }

/* «Звуки из твоей CS2»: card under the right roster + guide dialog (replay.js cs2Guide) */
.c2-card { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); }
.c2-card .c2-t { font-weight: 700; color: #fff; font-size: 14px; }
.c2-card .c2-s { color: var(--ash); font-size: 12.5px; line-height: 1.45; margin-top: 4px; }
.c2-card .c2-b { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.c2-card.on { border-color: rgba(255, 77, 0, .45); }
.btn.ghost { background: transparent; }
.c2-dlg { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px 28px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); color: var(--body); background: rgba(16, 16, 20, .97); }
.c2-dlg::backdrop { background: rgba(5, 5, 8, .7); backdrop-filter: blur(4px); }
.c2-dlg h2 { margin: 0 0 8px; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.c2-dlg h3 { margin: 18px 0 6px; font-size: 14px; color: #fff; }
.c2-dlg .c2-lead { margin: 0; line-height: 1.55; max-width: 64ch; }
.c2-dlg ul, .c2-dlg ol { margin: 0; padding-left: 20px; line-height: 1.55; }
.c2-dlg li + li { margin-top: 4px; }
.c2-dlg b { color: #fff; font-weight: 600; }
.c2-dlg .c2-hint { font-size: 12.5px; color: var(--ash); line-height: 1.6; margin: 10px 0 0; }
.c2-dlg code { font-family: var(--mono); font-size: 11.5px; color: var(--body); background: rgba(255, 255, 255, .05); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.c2-dlg .c2-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; line-height: 1.5; cursor: pointer; }
.c2-dlg .c2-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--signal); flex: none; }
.c2-dlg .c2-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.c2-dlg .c2-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.c2-dlg .c2-msg { font-size: 13px; color: var(--ash); }
.c2-dlg .c2-foot { margin: 16px 0 0; font-size: 11.5px; color: var(--ash-2, #6d6f7a); }
.c2-dlg .c2-x { position: absolute; right: 14px; top: 12px; margin: 0; }
.c2-dlg .c2-x button { background: none; border: 0; color: var(--ash); font-size: 16px; cursor: pointer; padding: 6px; }
.c2-dlg .c2-x button:hover { color: #fff; }
:where(.c2-dlg, .c2-card) :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.c2-card [hidden] { display: none; }
/* round chips shrink to fit the bar (21+ rounds, overtimes) instead of running off the edge; scroll only past ~30 */
.rchip { flex: 1 1 0; min-width: 24px; max-width: 42px; padding: 0 2px; }
.rchip i { left: 4px; right: 4px; }
footer.foot { flex-wrap: wrap; gap: 8px 18px; } footer.foot a { color: var(--ash); text-decoration: underline; text-underline-offset: 3px; } footer.foot a:hover { color: #fff; } .c2-dlg .c2-foot a { color: var(--ash); }

/* «Реплеи доступны с EXT»: no pass on the real site (pass.js gate) */
.gate { max-width: 680px; margin: 48px auto; padding: 28px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.gate h1 { margin: 0 0 10px; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.gate p { margin: 0; line-height: 1.55; }
.gate ol { margin: 16px 0; padding-left: 20px; line-height: 1.6; }
.gate li + li { margin-top: 6px; }
.gate b { color: #fff; }
.gate a { color: var(--signal); }
.gate .gate-note { color: var(--ash); font-size: 13px; }

/* 27.11: подвал всегда внизу окна (на коротких страницах, например «Войди через EXT», он висел посередине) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > #main { flex: 1 0 auto; }
/* 27.11: в колонке flex блок с margin:auto сжимался по самому широкому ребёнку (таблица, ростер) и на телефоне
   страница уезжала вбок; обложку профиля (вылезает на поля) режем по краю main, а не скроллом всей страницы */
body > main.wrap { width: 100%; min-width: 0; overflow-x: clip; }
@media (max-width: 720px) { table.st { display: block; overflow-x: auto; } }
footer.foot { margin-top: auto; }
@media (max-width: 720px) { .top { padding: 12px 16px; } }
