/* TTT Community — стилі
   Напрям: трансляція матч-дня. Глибокий чорний як у банера, вузький Oswald для заголовків і рахунків,
   червоний — дії й ефір, жовтий — призи й MVP. Фірмова деталь — діагональний червоно-жовтий штрих
   перед заголовками розділів (.secHead h2::before), як штрихи на банері. */

:root {
  --bg-deep: #070708;
  --bg: #0b0b0c;
  --card: #121214;
  --card-hover: #17171a;
  --raised: #1d1d20;
  --raised-2: #26262a;
  --line: rgba(237, 237, 237, .08);
  --line-2: rgba(237, 237, 237, .14);
  --txt: #ededed;
  --txt-2: #a1a1a6;
  --txt-3: #85858b;

  --acc: #e8112d;
  --acc-hover: #cc0f27;
  --acc-ink: #ff5a6b;
  --acc-soft: rgba(232, 17, 45, .12);
  --gold: #f5b400;
  --silver: #c3cad6;
  --bronze: #d08a4e;
  --pos: #4cc38a;
  --neg: #e5484d;
  --warn: #e8a93a;

  --r-sm: 6px;
  --r: 8px;
  --r-card: 14px;
  --r-panel: 16px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms;
  --t-menu: 200ms;
  --t-enter: 320ms;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Oswald", "Arial Narrow", "IBM Plex Sans", system-ui, sans-serif;
  --w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 400 15px/22px var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(255, 90, 107, .7); outline-offset: 2px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--txt-3); }
.sec { color: var(--txt-2); }
.gold { color: var(--gold); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* ---------- icons ---------- */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i.lg { width: 18px; height: 18px; }
.i.xl { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--acc); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--acc-hover); }
.btn-secondary { background: var(--raised); border-color: var(--line); color: var(--txt); }
.btn-secondary:hover { background: var(--raised-2); border-color: var(--line-2); }
.btn-ghost { color: var(--txt-2); }
.btn-ghost:hover { color: var(--txt); background: var(--raised); }
.btn-danger { color: var(--neg); border-color: var(--line); }
.btn-danger:hover { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .3); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r); color: var(--txt-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.iconbtn:hover { background: var(--raised); color: var(--txt); }
.iconbtn.danger:hover { color: var(--neg); background: rgba(229, 72, 77, .1); }
.link { color: var(--acc-ink); display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.textlink { color: var(--txt-2); font-size: 14px; font-weight: 500; padding: 0 8px; height: 32px; display: inline-flex; align-items: center; border-radius: var(--r); }
.textlink:hover { color: var(--txt); }

/* ---------- forms ---------- */
label.lbl { display: block; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--txt-2); margin: 16px 0 8px; }
label.lbl:first-child { margin-top: 0; }
.hint { font-size: 13px; line-height: 20px; color: var(--txt-3); margin-top: 6px; }
input, select, textarea {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-deep); color: var(--txt);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font: 400 14px/20px var(--font); outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--txt-3); }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 90, 107, .6); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--acc); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row2 > div > label.lbl:first-child, .row3 > div > label.lbl:first-child { margin-top: 16px; }
.formActions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pick {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-deep);
  font-size: 14px; cursor: pointer;
}
.pick:hover { border-color: var(--line-2); }
.formError { color: var(--acc-ink); font-size: 13px; min-height: 20px; margin-top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
main.wrap { flex: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px 64px; }
main.wrap > .page { animation: enter var(--t-enter) var(--ease) both; }
main.wrap > .page.still { animation: none; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.pageHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 40px 0 24px; flex-wrap: wrap; }
.pageHead h1 { font: 500 40px/44px var(--display); letter-spacing: .005em; }
.pageHead .sub { color: var(--txt-2); font-size: 15px; line-height: 22px; margin-top: 8px; max-width: 64ch; }
.pageHead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-3); font-size: 13px; margin-bottom: 12px; }
.back:hover { color: var(--txt); }

.secHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 16px; }
.secHead h2 { font: 500 22px/28px var(--display); letter-spacing: .01em; display: flex; align-items: center; gap: 12px; }
.secHead h2::before { content: ""; width: 22px; height: 5px; flex: none; transform: skewX(-24deg); background: linear-gradient(90deg, var(--acc) 0 68%, var(--gold) 68% 100%); }
.secHead .more { font-size: 13px; color: var(--txt-2); display: inline-flex; align-items: center; gap: 4px; }
.secHead .more:hover { color: var(--txt); }

.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card.tour { display: flex; }
.card.contact { display: flex; }
.card.news, .card.team, .card.item { display: flex; }
.card.pad-0 { padding: 0; }
a.card, .card.clickable { cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
a.card:hover, .card.clickable:hover { border-color: var(--line-2); background: var(--card-hover); }
.card h3 { font-size: 16px; line-height: 22px; }
.card + .card.stack { margin-top: 12px; }
.stackList > * + * { margin-top: 8px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.empty { text-align: center; padding: 48px 16px; color: var(--txt-3); font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-card); }
.empty .btn { margin-top: 16px; }
.empty b { color: var(--txt-2); font-weight: 500; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: .01em; flex: none; }
.logo img.mark { width: 40px; height: 40px; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a {
  height: 32px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--r-sm);
  font-size: 14px; color: var(--txt-2); white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--txt); }
.nav a.on { color: var(--txt); background: var(--raised); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.userchip { display: flex; align-items: center; gap: 4px; flex: none; }
.userchip .me { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border-radius: var(--r); font-size: 14px; font-weight: 500; }
.userchip .me:hover { background: var(--raised); }
.count { font-family: var(--mono); font-size: 12px; color: var(--acc-ink); }
.menuBtn { display: none; }

.livebar { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.livebar .container { display: flex; align-items: center; gap: 24px; height: 36px; overflow-x: auto; scrollbar-width: none; }
.livebar .container::-webkit-scrollbar { display: none; }
.livebar .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--acc-ink); flex: none; }
.livebar a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-2); white-space: nowrap; flex: none; }
.livebar a:hover { color: var(--txt); }
.livebar a b { font-family: var(--mono); font-weight: 500; color: var(--txt); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { background: var(--acc); }

/* mobile sheet */
.sheet { position: fixed; top: 57px; left: 0; right: 0; bottom: 0; z-index: 49; background: rgba(10, 10, 11, .6); }
.sheet .panel { background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; animation: drop var(--t-menu) var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sheet a, .sheet button.item { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border-radius: var(--r); color: var(--txt-2); font-size: 15px; }
.sheet a.on { color: var(--txt); background: var(--raised); }
.sheet .sep { height: 1px; background: var(--line); margin: 8px 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer .container { display: flex; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 32px; flex-wrap: wrap; }
.footer .logo img.mark { width: 36px; height: 36px; }
.footer .about { font-size: 13px; line-height: 20px; color: var(--txt-3); }
.footer .about b { color: var(--txt-2); font-weight: 500; }
.footer .soc { margin-left: auto; display: flex; gap: 4px; }

/* ---------- small atoms ---------- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 24px; padding: 0 6px; border-radius: var(--r-sm);
  background: var(--raised); border: 1px solid var(--line);
  font: 500 12px/1 var(--mono); color: var(--txt); letter-spacing: .02em; flex: none;
}
.tag.md { min-width: 40px; height: 32px; font-size: 13px; }
.tag.lg { min-width: 56px; height: 44px; font-size: 15px; border-radius: var(--r); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--txt-2); white-space: nowrap; }
.status .dot { background: var(--txt-3); }
.status.live { color: var(--acc-ink); }
.status.live .dot { background: var(--acc); }
.status.up .dot { background: var(--warn); }
.status.fin { color: var(--txt-3); }
.status.ok { color: var(--pos); }
.status.ok .dot { background: var(--pos); }
.status.pend { color: var(--warn); }
.status.pend .dot { background: var(--warn); }

.ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--raised); border: 1px solid var(--line);
  font: 500 11px/1 var(--mono); color: var(--txt-2);
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.md { width: 36px; height: 36px; font-size: 12px; }
.ava.lg { width: 56px; height: 56px; font-size: 16px; }

.lvl {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--c, var(--txt-3)); color: var(--c, var(--txt-3));
  font: 600 11px/1 var(--mono);
}
.lvl.lg { width: 36px; height: 36px; font-size: 14px; }

.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.kv { display: flex; gap: 24px; flex-wrap: wrap; }
.kv > div { display: flex; flex-direction: column; gap: 4px; }
.kv b { font: 500 22px/28px var(--display); font-variant-numeric: tabular-nums; }
.kv span { font-size: 12px; line-height: 16px; color: var(--txt-3); }

.meter { height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--txt-2); border-radius: 2px; }

/* ---------- reticle: фірмові кутові мітки прицілу ---------- */
.reticle { position: relative; }
.reticle::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  --c: var(--acc); --l: 12px; --s: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--s),
    linear-gradient(var(--c), var(--c)) left top / var(--s) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--s),
    linear-gradient(var(--c), var(--c)) right top / var(--s) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--s),
    linear-gradient(var(--c), var(--c)) left bottom / var(--s) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--s),
    linear-gradient(var(--c), var(--c)) right bottom / var(--s) var(--l);
  background-repeat: no-repeat;
}

/* ---------- hero ---------- */
.cover { margin-top: 24px; border-radius: var(--r-panel); overflow: hidden; background: #000; width: 100%; height: clamp(150px, 34vw, 420px); position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* м'який перехід банера у фон сторінки знизу */
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(to bottom, rgba(20, 20, 21, 0), var(--bg)); pointer-events: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0 24px; }
.hero > * { position: relative; }
.hero .kick { font-size: 13px; line-height: 20px; color: var(--txt-3); margin-bottom: 16px; }
.hero h1 { font: 500 clamp(40px, 5vw, 64px)/1.02 var(--display); letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--txt-2); }
.hero p.lead { font-size: 18px; line-height: 28px; color: var(--txt-2); max-width: 34rem; margin-top: 20px; }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .sched { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; line-height: 20px; color: var(--txt-3); flex-wrap: wrap; }
.hero .sched a { color: var(--txt-2); }
.hero .sched a:hover { color: var(--txt); }

/* табло матчу — головний яскравий момент */
.board { background: #17171a; border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden; }
.board .bhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.board .bhead a { font-size: 13px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .bhead a:hover { color: var(--txt); }
.board .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 28px 24px 24px; }
.board .team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.board .team b { font-size: 14px; font-weight: 500; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.board .team.win b { color: var(--txt); }
.board .score { font: 500 64px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.board .score .sep { color: var(--txt-3); font-size: 40px; }
.board .score .lose { color: var(--txt-3); }
.board .vs { font: 500 20px/1 var(--mono); color: var(--txt-3); text-align: center; }
.board .vs small { display: block; margin-top: 10px; font-size: 13px; color: var(--txt-2); }
.board .mapPanel { position: relative; height: 168px; border-top: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; }
.board .mapPanel svg.strat { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .mapMeta { position: absolute; left: 24px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.board .mapMeta b { font-size: 15px; font-weight: 500; }
.board .mapMeta span { font-size: 13px; color: var(--txt-3); }

/* ---------- match rows ---------- */
.match {
  display: grid; grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; min-height: 68px;
}
.match + .match { margin-top: 8px; }
.match .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match .side.l { justify-content: flex-end; text-align: right; }
.match .side b { font-weight: 500; font-size: 14px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .side.win b { color: var(--txt); }
.match .mid { text-align: center; }
.match .sc { font: 500 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.match .sc .lose { color: var(--txt-3); }
.match .sc .sep { color: var(--txt-3); margin: 0 6px; }
.match .vs { font: 500 14px/1 var(--mono); color: var(--txt-3); }
.match .meta { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--txt-3); display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; }
.match .meta .status { font-size: 12px; }
.match .adm { display: flex; gap: 2px; }
.match.no-adm { grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr); }

/* ---------- tournaments ---------- */
.tour { display: flex; flex-direction: column; gap: 16px; }
.tour .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour .date { font-size: 13px; line-height: 16px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.tour h3 { font: 500 20px/26px var(--display); letter-spacing: .01em; }
.tour .prize { font: 500 32px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.tour .prize small { font: 400 13px/16px var(--font); color: var(--txt-3); margin-left: 8px; }
.tour .slots { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--txt-2); }
.tour .slots .line { display: flex; justify-content: space-between; }
.tour .rewards { font-size: 13px; line-height: 20px; color: var(--txt-3); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.podium > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line); }
.podium .place { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-3); }
.podium .place .dot { width: 8px; height: 8px; }
.podium .p1 .dot { background: var(--gold); }
.podium .p2 .dot { background: var(--silver); }
.podium .p3 .dot { background: var(--bronze); }
.podium b { font: 500 14px/20px var(--mono); letter-spacing: .02em; }
.podium span.r { font-size: 13px; line-height: 16px; color: var(--txt-2); font-variant-numeric: tabular-nums; }

.tview-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.factList { display: flex; flex-direction: column; }
.factList > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.factList > div:first-child { border-top: 0; padding-top: 0; }
.factList span { color: var(--txt-3); }
.factList b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.roster .rhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.roster .rhead h3 { font-size: 16px; }
.roster .rhead small { color: var(--txt-3); font-size: 13px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 32px 64px 56px 56px; align-items: center; gap: 12px; height: 44px; border-top: 1px solid var(--line); font-size: 14px; }
.prow .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--txt-2); }
.prow .n b { color: var(--txt); font-weight: 500; }
.prow.head { height: 28px; border-top: 0; font-size: 12px; color: var(--txt-3); }

.regBar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- bracket ---------- */
.bracketWrap { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: 224px; gap: 32px; min-width: min-content; }
.bcol { display: flex; flex-direction: column; }
.bcol .btitle { font-size: 12px; line-height: 16px; color: var(--txt-3); height: 28px; }
.bcol .bbody { flex: 1; display: flex; flex-direction: column; }
.bpair { flex: 1; display: flex; flex-direction: column; position: relative; }
.bslot { flex: 1; display: flex; align-items: center; position: relative; padding: 6px 0; }
.bslot > .bm { width: 100%; }
.bcol:not(:last-child) .bpair::after {
  content: ""; position: absolute; right: -16px; top: 25%; bottom: 25%; width: 16px;
  border: 1px solid var(--line-2); border-left: 0; border-radius: 0 6px 6px 0;
}
.bcol:not(:last-child) .bpair.solo::after { top: 50%; bottom: auto; height: 0; border-bottom: 0; border-radius: 0; }
.bcol:not(:first-child) .bslot::before { content: ""; position: absolute; left: -16px; top: 50%; width: 16px; border-top: 1px solid var(--line-2); }
.bm { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color var(--t-fast) var(--ease); }
.bm.click { cursor: pointer; }
.bm.click:hover { border-color: var(--line-2); }
.brow { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; font-size: 13px; color: var(--txt-2); }
.brow + .brow { border-top: 1px solid var(--line); }
.brow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bs { font: 500 13px/1 var(--mono); color: var(--txt-3); font-variant-numeric: tabular-nums; }
.brow.win { color: var(--txt); }
.brow.win .bs { color: var(--txt); }
.brow.win .nm { font-weight: 500; }
.brow.tbd { color: var(--txt-3); }
.brow.tbd .tag { background: transparent; color: var(--txt-3); }
.bfoot { font-size: 11px; line-height: 16px; color: var(--txt-3); padding: 4px 10px; background: var(--bg-deep); border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.champ { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 16px; }
.champ .i { color: var(--gold); width: 24px; height: 24px; }
.champ small { display: block; font-size: 12px; color: var(--txt-3); }
.champ b { font-size: 18px; font-weight: 500; }
.third { max-width: 320px; margin-top: 16px; }
.third .btitle { font-size: 12px; color: var(--txt-3); margin-bottom: 8px; }

/* ---------- tables ---------- */
.tableWrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--txt-3); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 0 16px; height: 52px; 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 .rank { width: 48px; color: var(--txt-3); font-family: var(--mono); font-size: 13px; }
.tbl tbody tr { transition: background-color var(--t-fast) var(--ease); }
.tbl tbody tr:hover { background: rgba(237, 237, 237, .02); }
.tbl select { width: auto; height: 32px; }

.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; }
.seg a, .seg button { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r); font-size: 14px; color: var(--txt-2); white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--txt); }
.seg a.on, .seg button.on { background: var(--raised); color: var(--txt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-deep); font-size: 13px; line-height: 20px; color: var(--txt-2); margin-bottom: 16px; }
.note .i { margin-top: 2px; color: var(--txt-3); }

/* ---------- news ---------- */
.news { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-grid { align-items: start; }
.news .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.news .img img { width: 100%; height: 100%; object-fit: cover; }
.news .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; flex: 1; }
.news .src { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--txt-3); }
.news h3 { font-size: 15px; line-height: 22px; }
.news p { font-size: 14px; line-height: 20px; color: var(--txt-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.news .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ---------- teams ---------- */
.team { display: flex; flex-direction: column; gap: 16px; }
.team .th { display: flex; align-items: center; gap: 12px; }
.team .th h3 { font-size: 16px; }
.team .th small { display: block; font-size: 13px; color: var(--txt-3); margin-top: 2px; }
.team .desc { font-size: 14px; line-height: 20px; color: var(--txt-2); }
.team .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apps { border-top: 1px solid var(--line); padding-top: 12px; }
.apps .ttl { font-size: 13px; color: var(--txt-2); margin-bottom: 8px; }
.appRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; }

/* ---------- shop ---------- */
.item { display: flex; flex-direction: column; gap: 8px; }
.item .pic { height: 140px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--txt-3); overflow: hidden; margin-bottom: 8px; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { font-size: 15px; }
.item p { font-size: 13px; line-height: 20px; color: var(--txt-2); }
.item .buy { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.item .price { font: 500 18px/1 var(--font); font-variant-numeric: tabular-nums; }

/* ---------- contacts ---------- */
.contact { display: flex; gap: 12px; align-items: flex-start; }
.contact .ic { width: 36px; height: 36px; border-radius: var(--r); background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--txt-2); flex: none; }
.contact small { display: block; font-size: 12px; color: var(--txt-3); }
.contact b { font-weight: 500; font-size: 14px; word-break: break-word; }
a.contact:hover b { color: var(--acc-ink); }

/* ---------- admin ---------- */
.admTabs { display: flex; gap: 2px; overflow-x: auto; padding: 2px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px; scrollbar-width: none; }
.admTabs::-webkit-scrollbar { display: none; }
.admTabs a { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r); font-size: 14px; color: var(--txt-2); white-space: nowrap; flex: none; }
.admTabs a:hover { color: var(--txt); }
.admTabs a.on { background: var(--raised); color: var(--txt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.reqCard { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reqCard .what { font-size: 12px; color: var(--txt-3); margin-bottom: 6px; }
.reqCard .who { font-size: 14px; }
.reqCard .acts { display: flex; gap: 8px; }
.keybox { font: 500 24px/1 var(--mono); letter-spacing: .12em; padding: 16px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--bg-deep); text-align: center; margin: 16px 0; }
.listRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.listRow .info small { display: block; font-size: 13px; color: var(--txt-3); margin-top: 2px; }
.bannerPrev { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--line); }

/* builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.btCard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg-deep); transition: border-color var(--t-fast) var(--ease); }
.btCard + .btCard { margin-top: 6px; }
.btCard:hover { border-color: var(--line-2); }
.btCard.sel { border-color: rgba(76, 195, 138, .5); }
.btCard .info { flex: 1; min-width: 0; }
.btCard .info small { display: block; font-size: 12px; color: var(--txt-3); }
.btCard .chk { color: var(--pos); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 13px; color: var(--txt-3); }
.slot.filled { border-style: solid; border-color: var(--line); background: var(--bg-deep); color: var(--txt); }
.slot .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { height: 28px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 13px; color: var(--txt-2); }
.chip.on { background: var(--raised); color: var(--txt); border-color: var(--line-2); }
.scroll { max-height: 380px; overflow-y: auto; }

/* ---------- auth ---------- */
.authWrap { display: flex; justify-content: center; padding: 64px 0; }
.authCard { width: min(420px, 100%); padding: 32px; }
.authCard .logo { justify-content: center; margin-bottom: 16px; }
.authCard .logo img.mark { width: 128px; height: 128px; }
.authCard h1 { font-size: 22px; line-height: 28px; text-align: center; }
.authCard .sub { color: var(--txt-2); font-size: 14px; text-align: center; margin-top: 8px; }
.authCard .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--txt-3); }

/* ---------- modal ---------- */
.modalBk { position: fixed; inset: 0; z-index: 900; background: rgba(10, 10, 11, .72); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; animation: fade var(--t-menu) var(--ease) both; }
.modalBox { width: min(560px, 100%); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: 24px; animation: rise var(--t-enter) var(--ease) both; }
.modalBox.wide { width: min(1120px, 100%); }
.modalBox .mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modalBox .mhead h3 { font-size: 18px; line-height: 24px; }
.modalBox p.mtext { font-size: 14px; line-height: 22px; color: var(--txt-2); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 12px 16px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; line-height: 20px; animation: rise var(--t-menu) var(--ease) both; }
.toast .dot { background: var(--pos); }
.toast.err .dot { background: var(--neg); }

#fatal { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #3a0d12; color: #fff; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--neg); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 0 8px; font-size: 13px; }
  .topbar .container { gap: 16px; }
}
@media (max-width: 980px) {
  .nav, .userchip { display: none; }
  .menuBtn { display: inline-flex; margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .cover { margin-top: 16px; border-radius: var(--r-card); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tview-top, .builder { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container, main.wrap { padding-left: 16px; padding-right: 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .pageHead { padding: 32px 0 20px; }
  .pageHead h1 { font-size: 26px; line-height: 32px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 16px; line-height: 24px; }
  .board .teams { padding: 24px 16px 20px; gap: 8px; }
  .board .score { font-size: 44px; gap: 8px; }
  .board .score .sep { font-size: 32px; }
  .board .bhead { padding: 16px 16px 0; }
  .board .mapMeta { left: 16px; }
  .match, .match.no-adm { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .match .meta { white-space: normal; flex-wrap: wrap; }
  .match .adm { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 8px; }
  .match .side b { font-size: 13px; }
  .match .side .tag { display: none; }
  .match .sc { font-size: 18px; }
  .row3 { grid-template-columns: 1fr; }
  .tbl .hide-sm { display: none; }
  .tbl td, .tbl th { padding-left: 12px; padding-right: 12px; }
  .prow { grid-template-columns: minmax(0, 1fr) 28px 56px 48px; }
  .prow .hide-sm { display: none; }
  .podium > div { padding: 10px; }
  .modalBox { padding: 20px; }
  .footer .soc { margin-left: 0; }
  #toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =================== трансляція матч-дня =================== */
.logoTile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; font: 600 15px/1 var(--display); letter-spacing: .02em; color: var(--txt); }
.logoTile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logoTile.sm { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.logoTile.md { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
.logoTile.lg { width: 72px; height: 72px; border-radius: 14px; font-size: 24px; }
.logoTile.xl { width: 112px; height: 112px; border-radius: 20px; font-size: 36px; }
a.teamLink, a.playerLink { color: inherit; }
a.teamLink:hover, a.playerLink:hover { color: var(--acc-ink); }

/* сцена першого екрана: банер + ефірне табло, що виходить з-під нижнього краю */
.stage { position: relative; margin-top: 24px; }
.stage .art { height: clamp(180px, 34vw, 440px); border-radius: var(--r-panel); overflow: hidden; background: #000; position: relative; }
.stage .art img { width: 100%; height: 100%; object-fit: cover; }
.stage .art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(11, 11, 12, 0), var(--bg)); }
.stage .cast { position: relative; margin: -96px auto 0; width: min(920px, calc(100% - 32px)); z-index: 2; }

.cast { background: rgba(14, 14, 16, .96); border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .45); }
.cast .strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--txt-2); }
.cast .strip a:hover { color: var(--txt); }
.cast.is-live { border-top: 3px solid var(--acc); }
.cast .row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 28px; }
.cast .side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cast .side.r { flex-direction: row-reverse; text-align: right; }
.cast .side b { display: block; font: 500 26px/1.1 var(--display); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast .side small { display: block; font-size: 12px; color: var(--txt-3); margin-top: 4px; }
.cast .side.lose b { color: var(--txt-3); }
.cast .score { font: 500 72px/1 var(--display); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 16px; }
.cast .score .sep { color: var(--txt-3); font-size: 48px; }
.cast .score .lose { color: var(--txt-3); }
.cast .vs { text-align: center; font: 500 28px/1 var(--display); color: var(--txt-3); }
.cast .vs small { display: block; font: 400 13px/20px var(--font); color: var(--txt-2); margin-top: 8px; }
.cast .maps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 20px 20px; }
.mapChip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--bg-deep); border: 1px solid var(--line); font-size: 13px; color: var(--txt-2); }
.mapChip b { font: 500 15px/1 var(--display); color: var(--txt); font-variant-numeric: tabular-nums; }
.mapChip.cur { border-color: rgba(232, 17, 45, .5); color: var(--txt); }

.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px 0 8px; }
.intro .kick { font-size: 13px; line-height: 20px; color: var(--txt-3); margin-bottom: 16px; }
.intro h1 { font: 500 clamp(40px, 5vw, 64px)/1.02 var(--display); letter-spacing: .005em; }
.intro h1 em { font-style: normal; color: var(--acc-ink); }
.intro p.lead { font-size: 18px; line-height: 28px; color: var(--txt-2); max-width: 34rem; margin-top: 20px; }
.intro .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.upnext { display: flex; flex-direction: column; gap: 8px; }
.upnext .item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color var(--t-fast) var(--ease); }
a.item:hover { border-color: var(--line-2); }
.upnext .when { font: 500 15px/1.1 var(--display); color: var(--txt); text-align: center; }
.upnext .when small { display: block; font: 400 11px/14px var(--font); color: var(--txt-3); margin-top: 2px; }
.upnext .what b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .what span { font-size: 12px; color: var(--txt-3); }

/* колекційні картки гравців */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
a.pcard:hover { border-color: var(--line-2); }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--edge, transparent); }
.pcard.p1 { --edge: var(--gold); }
.pcard.p2 { --edge: var(--silver); }
.pcard.p3 { --edge: var(--bronze); }
.pcard .rank { position: absolute; top: 12px; left: 14px; font: 500 15px/1 var(--display); color: var(--txt-3); }
.pcard .ava { width: 88px; height: 88px; font-size: 22px; border-width: 2px; }
.pcard .nick { font: 500 22px/1.1 var(--display); letter-spacing: .01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .team { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-3); min-height: 20px; }
.pcard .elo { font: 500 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.pcard .elo small { font: 400 12px/16px var(--font); color: var(--txt-3); margin-left: 4px; }
.pcard .sub { display: flex; gap: 12px; font-size: 12px; color: var(--txt-3); }
.pcard .sub b { color: var(--txt-2); font-weight: 500; }
.pcard .lvlPin { position: absolute; top: 10px; right: 12px; }
.pcard .roleTag { font-size: 11px; color: var(--txt-3); }

/* шапка сторінки сутності: команда, гравець */
.ehead { display: flex; align-items: center; gap: 24px; padding: 40px 0 24px; flex-wrap: wrap; }
.ehead .ava.xl { width: 112px; height: 112px; font-size: 32px; border-width: 2px; }
.ehead h1 { font: 500 44px/1.05 var(--display); letter-spacing: .005em; }
.ehead .meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 14px; color: var(--txt-2); }
.ehead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.statband { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.statband > div { background: var(--card); padding: 16px 20px; }
.statband b { display: block; font: 500 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.statband span { font-size: 12px; color: var(--txt-3); }
.trophies { display: flex; flex-direction: column; gap: 8px; }
.trophy { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.trophy .medal { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.trophy b { font-weight: 500; flex: 1; min-width: 0; }
.trophy span { font-size: 13px; color: var(--txt-3); }

/* матч-центр */
.vetoList { display: flex; flex-direction: column; gap: 6px; }
.veto { display: grid; grid-template-columns: 28px 70px minmax(0, 1fr); align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.veto .act { font-size: 12px; color: var(--txt-3); }
.veto.pick .act { color: var(--pos); }
.veto.ban { color: var(--txt-2); }
.veto.ban b { text-decoration: line-through; text-decoration-color: var(--txt-3); font-weight: 500; }
.mapRows { display: flex; flex-direction: column; gap: 8px; }
.mapRow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.mapRow .nm { font: 500 18px/1 var(--display); }
.mapRow .nm small { display: block; font: 400 12px/16px var(--font); color: var(--txt-3); margin-top: 4px; }
.mapRow .sc { font: 500 24px/1 var(--display); font-variant-numeric: tabular-nums; text-align: center; }
.mapRow .sc .lose { color: var(--txt-3); }
.mvp { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--card); border: 1px solid rgba(245, 180, 0, .35); border-radius: var(--r-card); }
.mvp .ava { width: 56px; height: 56px; }
.mvp small { display: block; font-size: 12px; color: var(--gold); }
.mvp b { font: 500 24px/1.1 var(--display); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #000 center / cover no-repeat; color: var(--txt); }
.player .facade::before { content: ""; position: absolute; inset: 0; background: rgba(7, 7, 8, .55); }
.player .facade > * { position: relative; }
.player .facade small { color: var(--txt-2); font-size: 13px; }
.streams { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.stream { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.stream.on { border-color: rgba(232, 17, 45, .45); }
.stream > .i { color: var(--txt-2); flex: none; }
.stream.on > .i { color: var(--acc-ink); }
.stream .who { flex: 1; min-width: 0; }
.stream .who b { display: block; font-weight: 500; }
.stream .who small { display: block; font-size: 12px; color: var(--txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream.on .btn { display: none; }
.streamsN { display: inline-flex; align-items: center; gap: 4px; color: var(--acc-ink); }
.streamsN .i { width: 14px; height: 14px; }
.mapChip.live { border-color: rgba(232, 17, 45, .5); color: var(--txt); }
.mapChip.live .i { color: var(--acc-ink); }
.rowsEdit .r.s { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 32px; }
@media (max-width: 560px) { .stream .btn span { display: none; } .stream .btn { padding: 0 10px; } }
.mcGrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.matchLink { display: contents; }
.match.clickable { cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.match.clickable:hover { border-color: var(--line-2); }
.conn { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.conn:first-of-type { border-top: 0; }
.conn .ic { width: 36px; height: 36px; border-radius: var(--r); background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--txt-2); flex: none; }
.conn .info { flex: 1; min-width: 0; }
.conn .info small { display: block; font-size: 12px; color: var(--txt-3); }
.rowsEdit { display: flex; flex-direction: column; gap: 8px; }
.rowsEdit .r { display: grid; grid-template-columns: minmax(0, 1.4fr) 64px 64px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.rowsEdit .r.v { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) 32px; }
.rowsEdit input, .rowsEdit select { height: 36px; }

/* Telegram Mini App: без зайвих відступів зверху */
body.tg .footer { display: none; }

@media (max-width: 980px) {
  .intro, .mcGrid { grid-template-columns: 1fr; gap: 32px; }
  .stage .cast { margin-top: -48px; }
}
@media (max-width: 680px) {
  .cast .row { padding: 16px; gap: 8px; }
  .cast .side { flex-direction: column; text-align: center; gap: 8px; }
  .cast .side.r { flex-direction: column; text-align: center; }
  .cast .side b { font-size: 18px; white-space: normal; }
  .cast .score { font-size: 48px; gap: 8px; }
  .cast .score .sep { font-size: 32px; }
  .cast .logoTile.lg { width: 52px; height: 52px; font-size: 18px; }
  .stage .cast { width: calc(100% - 16px); margin-top: -32px; }
  .intro h1, .ehead h1 { font-size: 36px; }
  .pageHead h1 { font-size: 32px; line-height: 36px; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard { padding: 20px 10px 16px; }
  .pcard .ava { width: 64px; height: 64px; }
  .pcard .nick { font-size: 18px; }
  .pcard .elo { font-size: 24px; }
  .ehead { gap: 16px; padding-top: 24px; }
  .ehead .ava.xl, .ehead .logoTile.xl { width: 80px; height: 80px; font-size: 26px; }
  .rowsEdit .r { grid-template-columns: minmax(0, 1fr) 52px 52px 32px; }
  .rowsEdit .r .pk { display: none; }
}

/* регламент і check-in */
.rulesBox { max-width: 760px; font-size: 15px; line-height: 24px; color: var(--txt-2); }
.rulesBox p + p, .rulesBox p + ul, .rulesBox ul + p { margin-top: 12px; }
.rules { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rules li { position: relative; padding-left: 20px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 3px; transform: skewX(-24deg); background: var(--acc); }
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.checkin.open { border-color: rgba(232, 17, 45, .45); }
.checkin .info b { display: block; font-weight: 500; }
.checkin .info small { font-size: 13px; color: var(--txt-3); }

/* огляд: матчі на телефоні, рейтинг, магазин без фото, футер, FAQ */
.match .side a.teamLink { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.match .side a.teamLink b { display: inline; }
.item.nophoto { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.item.nophoto .pic { width: 48px; height: 48px; margin: 0; flex: none; border-radius: 10px; }
.item.nophoto .pic .i { width: 20px; height: 20px; }
.item.nophoto .ttl { flex: 1; min-width: 0; }
.item.nophoto p, .item.nophoto .buy { flex-basis: 100%; }
.scrollHint { display: none; font-size: 12px; color: var(--txt-3); margin: -8px 0 8px; }

.footer .container { display: block; padding-top: 40px; padding-bottom: 32px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.fbrand .logo { margin-bottom: 12px; }
.fbrand p { font-size: 13px; line-height: 20px; color: var(--txt-3); max-width: 30ch; }
.fcol h4 { font: 500 13px/16px var(--font); color: var(--txt-2); margin-bottom: 12px; }
.fcol a { display: block; font-size: 14px; line-height: 20px; color: var(--txt-3); padding: 4px 0; }
.fcol a:hover { color: var(--txt); }
.fbottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--txt-3); }
.fbottom .soc { display: flex; gap: 4px; margin: 0; }

.faq { max-width: 820px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color var(--t-fast) var(--ease); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--txt-3); transition: transform var(--t-fast) var(--ease); flex: none; }
.faq details[open] summary .i { transform: rotate(90deg); }
.faq .ans { padding: 0 20px 18px; font-size: 14px; line-height: 22px; color: var(--txt-2); }
.faq .ans p + p { margin-top: 8px; }
.faqHome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

@media (max-width: 980px) { .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .faqHome { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .match .side .logoTile.md { width: 24px; height: 24px; font-size: 9px; border-radius: 6px; }
  .match .side { gap: 6px; }
  .tbl .hide-xs { display: none; }
  .scrollHint { display: block; }
  .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .fbrand { grid-column: 1 / -1; }
}

/* задачі контент-команди */
.task { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; }
.task.over { border-color: rgba(229, 72, 77, .45); }
.task.done { opacity: .78; }
.task .tic { width: 36px; height: 36px; border-radius: var(--r); background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--txt-2); }
.task.over .tic { color: var(--neg); }
.task .tbody b { font-weight: 500; font-size: 15px; line-height: 22px; }
.task .tmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--txt-3); }
.task .tmeta .ava { width: 20px; height: 20px; font-size: 9px; }
.task .tdet { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--txt-2); white-space: pre-line; }
.task .trep { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 13px; color: var(--txt-2); }
.task .tacts { display: flex; gap: 4px; align-items: center; }
@media (max-width: 680px) {
  .task { grid-template-columns: 32px minmax(0, 1fr); padding: 14px; }
  .task .tacts { grid-column: 1 / -1; justify-content: flex-end; }
}

/* підказка зв'язати Steam і Telegram */
.nudge { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; margin: 16px 0 0; border: 1px solid var(--line); border-left: 2px solid var(--acc); border-radius: 10px; background: var(--bg-deep); font-size: 14px; line-height: 20px; color: var(--txt-2); }
.nudge > .i { color: var(--txt-3); flex: none; }
.nudge .t { flex: 1; min-width: 0; }
.nudge .t b { color: var(--txt); font-weight: 600; }
.nudge .btn { flex: none; }
@media (max-width: 640px) { .nudge { flex-wrap: wrap; } .nudge .t { flex-basis: calc(100% - 72px); } .nudge .btn { order: 3; margin-left: 28px; } }
@media (max-width: 640px) { .nudge { align-items: flex-start; } .nudge > .i { margin-top: 2px; } }

/* сітка турніру FACEIT за раундами */
.fcb { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.fcb .col { flex: 0 0 232px; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; scroll-snap-align: start; }
.fcb .rn { font-size: 12px; line-height: 16px; color: var(--txt-3); }
.fcb .m { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); overflow: hidden; transition: border-color var(--t-fast) var(--ease); }
.fcb .m:hover { border-color: var(--line-2); }
.fcb .m.live { border-color: var(--acc); }
.fcb .r { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; font-size: 13px; color: var(--txt); }
.fcb .r + .r { border-top: 1px solid var(--line); }
.fcb .r .logoTile.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; border: 0; }
.fcb .r .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcb .r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fcb .r.lose { color: var(--txt-3); }
.fcPlaces { padding: 4px 20px; }
.fcPlaces .row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.fcPlaces .row + .row { border-top: 1px solid var(--line); }
.fcPlaces .pl { flex: none; width: 88px; font-size: 13px; color: var(--txt-3); }
.fcPlaces .tm { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fcPlaces .tm > span { display: inline-flex; align-items: center; gap: 8px; }
