:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --bg-4: #232323;
  --line: #262626;
  --line-2: #333;
  --text: #e4e4e4;
  --muted: #8c8c8c;
  --dim: #5a5a5a;
  --accent: #f0b429;
  --accent-ink: #141005;
  --win: #3fb950;
  --loss: #e5534b;
  --t1: #6aa2e8;
  --t2: #e0a64b;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--text); border-bottom: 1px solid var(--line-2); }
a.link:hover { border-color: var(--text); }
button { font: inherit; color: inherit; }
img { display: block; }

/* ---- header ---- */
.top { background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 28px; }
.logo { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.mark { width: 16px; height: 16px; background: var(--accent); position: relative; }
.mark::after { content: ""; position: absolute; inset: 5px; background: var(--bg-2); }
.top nav { display: flex; align-self: stretch; flex: 1; }
.top nav a {
  display: flex; align-items: center; padding: 0 14px; color: var(--muted);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.top nav a:hover { color: var(--text); }
.top nav a.active { color: var(--text); border-bottom-color: var(--accent); }
#account { display: flex; align-items: center; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; }
.me .name { font-weight: 600; line-height: 1.1; }
.me .sub { color: var(--muted); font-size: 12px; }
.searching { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.searching .t { font-variant-numeric: tabular-nums; color: var(--text); }

/* ---- layout ---- */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); }
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.panel-h a { color: var(--muted); font-weight: 600; } .panel-h a:hover { color: var(--text); }
.panel-b { padding: 16px; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.foot { border-top: 1px solid var(--line); padding: 18px 16px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; color: var(--dim); font-size: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--bg-3);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; border-radius: 2px;
}
.btn:hover { background: var(--bg-4); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #f5c04a; }
.btn.danger { border-color: #5a2522; color: #f08a84; background: transparent; }
.btn.danger:hover { background: #2a1514; }
.btn.xl { height: 52px; font-size: 16px; padding: 0 36px; font-family: var(--cond); letter-spacing: .1em; }
.btn.block { width: 100%; }
.btn.steam { background: #171a21; border-color: #2a3f5a; color: #c7d5e0; text-transform: none; letter-spacing: 0; }
.btn.steam:hover { background: #1b2838; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* ---- level badge ---- */
.lvl {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
  font-family: var(--cond); font-weight: 700; font-size: 14px; border: 2px solid currentColor; border-radius: 50%;
}
.lvl.lg { width: 44px; height: 44px; font-size: 24px; border-width: 3px; }
.lvl-1 { color: #d9d9d9; }
.lvl-2, .lvl-3 { color: #2fd16b; }
.lvl-4, .lvl-5, .lvl-6, .lvl-7 { color: #f2c94c; }
.lvl-8, .lvl-9 { color: #f2833a; }
.lvl-10 { color: #f04b3a; }

.av { width: 28px; height: 28px; background: var(--bg-4); object-fit: cover; flex: none; border-radius: 2px; }
.av.lg { width: 84px; height: 84px; }
.pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
a.pl:hover .nm { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cap { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid #5c4613; padding: 0 4px; line-height: 15px; }

/* ---- tables ---- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .c { text-align: center; }
.tbl tbody tr.go { cursor: pointer; }
.tbl tbody tr.go:hover td { background: var(--bg-3); }
.tbl td.res { width: 3px; padding: 0; }
.tbl td.res.w { background: var(--win); } .tbl td.res.l { background: var(--loss); } .tbl td.res.n { background: var(--line-2); }
.scroll { overflow-x: auto; }
.pos { color: var(--win); } .neg { color: var(--loss); }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.status.live { color: var(--loss); }
.status.live::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--loss); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---- play panel ---- */
.play { padding: 22px 22px 24px; }
.play h1 { font-family: var(--cond); font-size: 32px; margin: 0; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.play .info { color: var(--muted); margin: 6px 0 18px; }
.pool { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.pool span { padding: 4px 10px; background: var(--bg-3); border: 1px solid var(--line); font-size: 12px; font-weight: 600; text-transform: capitalize; color: #bbb; }
.qrow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qmeter { flex: 1; min-width: 200px; }
.qmeter .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.qmeter .lbl b { color: var(--text); }
.segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.segs span { height: 6px; background: var(--bg-4); }
.segs span.on { background: var(--accent); }
.notice { margin-top: 16px; padding: 10px 12px; border-left: 2px solid var(--loss); background: #1d1414; color: #e7a6a2; }

/* ---- profile card ---- */
.card-me { padding: 18px; }
.card-me .row { display: flex; align-items: center; gap: 14px; }
.card-me .elo { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; }
.card-me .elo small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.prog { margin-top: 14px; }
.prog .bar { height: 4px; background: var(--bg-4); }
.prog .bar span { display: block; height: 100%; background: var(--accent); }
.prog .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 5px; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kv div { padding: 11px 18px; border-bottom: 1px solid var(--line); }
.kv div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kv dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form { display: flex; gap: 3px; }
.form span { width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0e0e0e; }
.form .w { background: var(--win); } .form .l { background: var(--loss); }

/* ---- landing ---- */
.land { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-bottom: 16px; }
.land-main { padding: 40px 36px; }
.land-main h1 { font-family: var(--cond); font-size: 46px; line-height: 1; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
.land-main p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 26px; }
.figures { display: grid; grid-template-rows: repeat(3, 1fr); }
.figures div { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.figures div:last-child { border-bottom: 0; }
.figures b { font-family: var(--cond); font-size: 34px; font-weight: 700; }
.figures span { color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.steps div { padding: 18px 20px; border-right: 1px solid var(--line); }
.steps div:last-child { border-right: 0; }
.steps .n { font-family: var(--cond); color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.steps h3 { margin: 4px 0 4px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); }

/* ---- match page ---- */
.mhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 24px; gap: 16px; }
.mhead .team { font-family: var(--cond); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.mhead .team small { display: block; font-family: "Barlow", sans-serif; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.mhead .team.t2 { text-align: right; }
.mhead .mid { text-align: center; }
.mhead .score { font-family: var(--cond); font-weight: 700; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.mhead .score .sep { color: var(--dim); margin: 0 10px; }
.mhead .w { color: var(--win); } .mhead .l { color: var(--muted); }
.mhead .map { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-top: 6px; }
.mmeta { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mmeta b { color: var(--text); font-weight: 600; }
.mmeta .sp { flex: 1; }
.rosters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roster .panel-h .tn { color: var(--text); }
.roster.t1 .panel-h { border-top: 2px solid var(--t1); }
.roster.t2 .panel-h { border-top: 2px solid var(--t2); }
.connect { display: flex; gap: 8px; flex-wrap: wrap; }
.connect input {
  flex: 1; min-width: 220px; height: 34px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); font: 500 14px ui-monospace, "SFMono-Regular", Menlo, monospace; border-radius: 2px;
}
.hint { margin: 12px 0 0; color: var(--muted); }
.hint b { color: var(--text); }
.veto .tbl td { padding: 0 12px; height: 44px; }
.veto .mapn { font-weight: 600; text-transform: capitalize; font-size: 15px; }
.veto tr.banned .mapn { color: var(--dim); text-decoration: line-through; }
.veto tr.picked .mapn { color: var(--accent); }
.timer { font-variant-numeric: tabular-nums; color: var(--text); }

/* ---- player page ---- */
.phead { display: flex; gap: 20px; align-items: center; padding: 22px 24px; }
.phead h1 { margin: 0; font-size: 26px; font-weight: 700; }
.phead .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); margin-top: 6px; align-items: center; }
.phead .meta b { color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.tiles div { padding: 14px 20px; border-right: 1px solid var(--line); }
.tiles div:last-child { border-right: 0; }
.tiles dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tiles dd { margin: 3px 0 0; font-family: var(--cond); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- ready check ---- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); display: grid; place-items: center; z-index: 20; padding: 16px; }
.overlay[hidden] { display: none; }
.ready-box { width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); padding: 26px 28px 22px; text-align: center; }
.ready-title { font-family: var(--cond); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.ready-bar { height: 4px; background: var(--bg-4); margin-bottom: 18px; }
.ready-bar span { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.ready-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 22px; }
.ready-slots span { height: 26px; background: var(--bg-4); }
.ready-slots span.on { background: var(--win); }
.ready-box .btn { width: 100%; }
.ready-note { margin-top: 12px; color: var(--muted); font-size: 13px; min-height: 18px; }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--bg-3); border: 1px solid var(--line-2); border-left: 3px solid var(--loss); padding: 12px 16px; z-index: 30; max-width: 360px; }
.toast.ok { border-left-color: var(--win); }
.toast[hidden] { display: none; }

@media (max-width: 900px) {
  .cols, .land, .rosters { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles div:nth-child(3) { border-right: 0; }
  .tiles div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .top-in { gap: 12px; }
  .top nav a { padding: 0 8px; font-size: 12px; }
  .me .txt, #searching { display: none; }
  .logo { font-size: 0; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .land-main { padding: 26px 20px; }
  .land-main h1 { font-size: 34px; }
  .mhead { padding: 18px 14px; }
  .mhead .team { font-size: 16px; }
  .mhead .score { font-size: 36px; }
  .phead { flex-direction: column; align-items: flex-start; }
}

/* ---- unranked ---- */
.lvl.unr { color: var(--dim); border-style: dashed; }

/* ---- header search indicator ---- */
.searching { gap: 10px; }
.searching .x { height: 24px; padding: 0 8px; font-size: 11px; }

/* ---- lobby ---- */
.lobby { display: grid; gap: 16px; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.lobby-head h1 { font-family: var(--cond); font-size: 34px; margin: 0; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.lobby-head .info { color: var(--muted); margin-top: 6px; }
.lobby-head .pool { margin: 0; }
.party { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slot { background: var(--bg-2); border: 1px solid var(--line); min-height: 250px; display: flex; flex-direction: column; align-items: center; padding: 22px 12px 14px; text-align: center; position: relative; }
.slot.me { border-color: var(--line-2); background: #191919; }
.slot .av { width: 96px; height: 96px; margin-bottom: 14px; }
.slot .nm { font-weight: 600; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .rk { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.slot .rk b { color: var(--text); }
.slot .role { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.slot.leader .role { background: var(--accent); }
.slot .tagline { margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); min-height: 16px; }
.slot .acts { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; }
.slot.empty { justify-content: center; color: var(--dim); cursor: pointer; background: var(--bg); }
.slot.empty:hover { color: var(--text); border-color: var(--line-2); background: var(--bg-2); }
.slot.empty .plus { width: 56px; height: 56px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 28px; font-weight: 300; margin-bottom: 12px; }
.slot.empty span { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.slot.locked { cursor: default; }
.slot.locked:hover { color: var(--dim); border-color: var(--line); background: var(--bg); }

.qbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 22px; }
.qbar .side { display: flex; gap: 28px; }
.qbar .side.r { justify-content: flex-end; }
.qbar .fig dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.qbar .fig dd { margin: 2px 0 0; font-family: var(--cond); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qbar .btn.xl { min-width: 280px; height: 58px; font-size: 20px; }
.qbar .btn.searching-btn { background: var(--bg-3); border-color: var(--accent); color: var(--text); }
.qbar .wait { min-width: 280px; text-align: center; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.invite-box { display: flex; gap: 8px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; }
.invite-box input { flex: 1; min-width: 240px; height: 30px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: 500 13px ui-monospace, Menlo, monospace; border-radius: 2px; }
.banner { padding: 12px 16px; border-left: 2px solid var(--accent); background: #1b1810; color: #e9d39a; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.banner.bad { border-color: var(--loss); background: #1d1414; color: #e7a6a2; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.cta h2 { font-family: var(--cond); font-size: 26px; margin: 0; text-transform: uppercase; }
.cta p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .party { grid-template-columns: repeat(3, 1fr); }
  .qbar { grid-template-columns: 1fr; text-align: center; }
  .qbar .side, .qbar .side.r { justify-content: center; }
}
@media (max-width: 560px) {
  .party { grid-template-columns: repeat(2, 1fr); }
  .slot { min-height: 200px; }
  .slot .av { width: 72px; height: 72px; }
  .qbar .btn.xl, .qbar .wait { min-width: 0; width: 100%; }
}

/* ---- admin ---- */
.top nav a[hidden] { display: none; }
.figs { display: grid; grid-template-columns: repeat(5, 1fr); }
.figs div { padding: 14px 18px; border-right: 1px solid var(--line); }
.figs div:last-child { border-right: 0; }
.figs dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.figs dd { margin: 3px 0 0; font-family: var(--cond); font-size: 26px; font-weight: 700; }
.dot-on, .dot-off { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot-on { background: var(--win); } .dot-off { background: var(--loss); }
.acts-row { display: flex; gap: 6px; justify-content: flex-end; }
.field { height: 32px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; border-radius: 2px; }
.field.num { width: 80px; text-align: right; }
select.field { padding-right: 6px; }
.console { display: flex; gap: 8px; flex-wrap: wrap; }
.console .field.cmd { flex: 1; min-width: 220px; font-family: ui-monospace, Menlo, monospace; }
.console-out { margin: 12px 0 0; background: var(--bg); border: 1px solid var(--line); padding: 12px; max-height: 320px; overflow: auto; font: 12px/1.5 ui-monospace, Menlo, monospace; color: #c9c9c9; white-space: pre-wrap; min-height: 60px; }
.tag-test { font-size: 10px; font-weight: 700; color: #a78bfa; border: 1px solid #3b2f63; padding: 0 4px; margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .figs { grid-template-columns: repeat(2, 1fr); } .figs div { border-bottom: 1px solid var(--line); } }

/* ---- map pool chips ---- */
.pool span { display: inline-flex; align-items: center; gap: 6px; }
.pool img { width: 16px; height: 16px; }

/* ---- match room layout ---- */
.mroom { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.mroom.solo { grid-template-columns: 1fr; }
.mhead.has-map { position: relative; background: linear-gradient(90deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.72) 50%, rgba(14,14,14,.94) 100%), var(--map) center / cover; }
.mhead .map { display: inline-flex; align-items: center; gap: 6px; }
.mhead .map img { width: 18px; height: 18px; }

/* ---- veto ---- */
.veto-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px 14px; }
.vt-title { font-family: var(--cond); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.vt-title.you { color: var(--accent); }
.vt-title.t1 { color: var(--t1); } .vt-title.t2 { color: var(--t2); }
.vt-sub { color: var(--muted); margin-top: 4px; }
.vt-clock { text-align: right; flex: none; }
.vt-clock span { display: block; font-family: var(--cond); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.vt-clock span.low { color: var(--loss); }
.vt-clock small { color: var(--dim); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.veto-bar { height: 3px; background: var(--bg-4); }
.veto-bar span { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
.veto-bar span.t1 { background: var(--t1); } .veto-bar span.t2 { background: var(--t2); }
.veto-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 16px; }
.mc {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line);
  background: var(--bg-3) center / cover no-repeat; overflow: hidden; text-align: left; font: inherit; color: inherit;
}
.mc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.85) 100%); }
.mc-name {
  position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 7px;
  font-family: var(--cond); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 1px 2px #000;
}
.mc-name img { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px #000); }
.mc.can { cursor: pointer; }
.mc.can:hover { border-color: var(--loss); }
.mc.can:hover .mc-shade { background: linear-gradient(180deg, rgba(120,20,16,.35) 0%, rgba(0,0,0,.85) 100%); }
.mc-hover {
  position: absolute; top: 8px; right: 8px; padding: 3px 10px; background: var(--loss); color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .12s;
}
.mc.can:hover .mc-hover, .mc.can:focus-visible .mc-hover { opacity: 1; }
.mc.banned { filter: grayscale(1); }
.mc.banned .mc-shade { background: rgba(10,10,10,.72); }
.mc.banned .mc-name { color: #8a8a8a; text-decoration: line-through; text-decoration-thickness: 2px; }
.mc-ban {
  position: absolute; top: 8px; left: 8px; right: 8px; font-weight: 700; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: #f08a84; display: flex; flex-direction: column; gap: 1px;
}
.mc-ban span { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-ban.t1 span { color: var(--t1); } .mc-ban.t2 span { color: var(--t2); }
.veto-log { list-style: none; margin: 0; padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.veto-log li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.veto-log .n { width: 18px; height: 18px; flex: none; display: grid; place-items: center; background: var(--bg-4); font-size: 11px; font-weight: 700; color: var(--muted); }
.veto-log .tn { font-weight: 600; } .veto-log .tn.t1 { color: var(--t1); } .veto-log .tn.t2 { color: var(--t2); }
.veto-log b { text-transform: capitalize; }

/* ---- chat ---- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 56px - 48px); max-height: 720px; min-height: 380px; position: sticky; top: 72px; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.chat-empty { color: var(--dim); margin: auto 0; text-align: center; padding: 20px 6px; }
.msg { line-height: 1.4; word-wrap: break-word; }
.msg .when { color: var(--dim); font-size: 11px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.msg .chan { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--win); margin-right: 4px; }
.msg .chan.all { color: var(--muted); }
.msg .who { font-weight: 600; margin-right: 4px; }
.msg .who.t1 { color: var(--t1); } .msg .who.t2 { color: var(--t2); }
.msg .who::after { content: ":"; color: var(--dim); }
.chat-form { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.chat-tabs { display: flex; gap: 2px; }
.chat-tabs button { flex: 1; height: 26px; background: var(--bg-3); border: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.chat-tabs button.on { background: var(--bg-4); color: var(--text); border-color: var(--line-2); }
.chat-form input { height: 36px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; border-radius: 2px; }
.chat-form input:focus { outline: none; border-color: var(--muted); }

@media (max-width: 1000px) {
  .mroom { grid-template-columns: 1fr; }
  .chat { position: static; height: 420px; }
  .veto-body { grid-template-columns: 1fr; }
  .veto-log { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .mcards { grid-template-columns: repeat(2, 1fr); padding: 10px; }
  .vt-title { font-size: 19px; }
  .vt-clock span { font-size: 30px; }
}

/* ---- prose (rules / faq) ---- */
.prose { line-height: 1.6; }
.prose h3 { font-size: 15px; margin: 18px 0 4px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 6px; color: #c4c4c4; }
.prose ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; color: #c4c4c4; }
.prose b { color: var(--text); }
.foot a { color: var(--muted); } .foot a:hover { color: var(--text); }

/* ---- reports ---- */
.rep { height: 22px; padding: 0 8px; font: 600 11px/1 inherit; text-transform: uppercase; letter-spacing: .06em; background: transparent; border: 1px solid var(--line-2); color: var(--dim); cursor: pointer; border-radius: 2px; }
.rep:hover { color: #f08a84; border-color: #5a2522; }
.rep.done { border: 0; cursor: default; color: var(--dim); display: inline-block; line-height: 22px; }
tr .rep:not(.done) { opacity: 0; }
tr:hover .rep, .rep:focus-visible { opacity: 1; }
@media (hover: none) { tr .rep:not(.done) { opacity: 1; } }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; background: var(--loss); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; letter-spacing: 0; }

.dialog { width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line-2); border-top: 3px solid var(--loss); }
.dialog-h { padding: 16px 20px 0; font-family: var(--cond); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.dialog-b { padding: 14px 20px; display: grid; gap: 12px; }
.dialog-f { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reasons label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: var(--bg-3); border: 1px solid var(--line); cursor: pointer; }
.reasons label:has(input:checked) { border-color: var(--loss); background: #1f1514; }
.dialog textarea { resize: vertical; min-height: 70px; padding: 9px 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: inherit; border-radius: 2px; }

.report { display: flex; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.report:last-child { border-bottom: 0; }
.report.resolved { opacity: .55; }
.rep-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rep-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rep-reason { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--muted); }
.rep-reason.cheating { color: #f08a84; border-color: #5a2522; }
.rep-reason.griefing { color: var(--t2); border-color: #5c4613; }
.rep-reason.toxic { color: #a78bfa; border-color: #3b2f63; }
.rep-count { font-size: 12px; color: var(--loss); font-weight: 600; }
.rep-meta { color: var(--muted); font-size: 13px; }
.rep-note { color: #c9c9c9; font-style: italic; }
.rep-stats { font-size: 13px; color: var(--muted); }
.rep-stats b { color: var(--text); }
.rep-demo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.rep-demo > code { background: var(--bg); border: 1px solid var(--line); padding: 5px 8px; font-size: 12px; color: #d6d6d6; word-break: break-all; }
.rep-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
@media (max-width: 700px) { .report { flex-direction: column; } .rep-acts { flex-direction: row; flex-wrap: wrap; } }
