/* Fonts: Lalezar (display) and Vazirmatn (text), both SIL OFL, served from /fonts. */
@font-face {
  font-family: 'Lalezar'; font-display: swap; src: url('/fonts/lalezar-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Lalezar'; font-display: swap; src: url('/fonts/lalezar-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Vazirmatn'; font-weight: 100 900; font-display: swap; src: url('/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn'; font-weight: 100 900; font-display: swap; src: url('/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  color-scheme: dark;
  /* Palette from the squad photo: night over the storm wall, the golden sky, the blue zone. */
  --paper: #0b1220;
  --panel: #131e33;
  --raise: #1a2842;
  --ink: #eef1f7;
  --ink-soft: #9fb0cb;
  --line: rgba(159, 176, 203, .2);
  --grid: transparent;
  --zone: #7aa2ff;
  --zone-tint: rgba(91, 135, 255, .16);
  --flare: #f4b24a;
  --flare-ink: #1b1204;
  --olive: #f4b24a;
  --ok: #5fd39b;
  --bad: #ff7d6e;
  /* One accent per game. Anything inside [data-game] reads it as --g. */
  --pubg: #f4b24a;
  --dota2: #ff6b5c;
  --lol: #6fa0ff;
  --cs2: #f0b44a;
  --valorant: #ff7a88;
  --radius: 16px;
  --display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
  --text: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.75;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; }
a { color: var(--zone); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--zone); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { background: var(--zone-tint); color: var(--ink); }
.spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 8px; font-size: .95rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .12s, background .12s; }
.btn:hover { background: var(--zone-tint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--flare); border-color: var(--flare); color: var(--flare-ink); }
.btn.primary:hover { filter: brightness(1.06); background: var(--flare); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; background: var(--panel); }
.chip.ok { color: var(--ok); border-color: currentColor; }
.chip.hot { color: var(--flare); border-color: currentColor; }
.chip.zone { color: var(--zone); border-color: currentColor; }

/* hero: the shrinking blue zone is the page's signature */
.hero { padding-block: 48px 36px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--zone); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 0 4px var(--zone-tint); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: 14px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dial { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; overflow: hidden; background: var(--panel); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial .core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial .core small { color: var(--ink-soft); font-weight: 600; }
.dial .core b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.1rem); letter-spacing: .02em; direction: ltr; font-variant-numeric: tabular-nums; }
/* 60 ticks burn down as the match approaches; lit ticks wear the game's colour. */
.tick { stroke: var(--line); stroke-width: 3; stroke-linecap: round; transition: stroke .5s; }
.tick.long { stroke-width: 5; }
.tick.on { stroke: var(--g, var(--flare)); }
[data-game='pubg'] { --g: var(--pubg); }
[data-game='dota2'] { --g: var(--dota2); }
[data-game='lol'] { --g: var(--lol); }
[data-game='cs2'] { --g: var(--cs2); }
[data-game='valorant'] { --g: var(--valorant); }

/* sections */
.block { padding-block: 40px; }
.block > .wrap > h2, .block h2.title { font-size: 2rem; margin-bottom: 6px; }
.lead { color: var(--ink-soft); margin-bottom: 22px; max-width: 60ch; }
.card { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); }

/* match rows */
.match { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 18px; margin-bottom: 14px; }
.date { text-align: center; line-height: 1.1; border-inline-end: 2px dashed var(--g, var(--line)); padding-inline-end: 14px; }
.date b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--g, var(--ink)); }
.date span { color: var(--ink-soft); font-weight: 600; }
.match h3 { font-size: 1.45rem; margin-bottom: 4px; }
.match .when { color: var(--ink-soft); margin-bottom: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.slots i { width: 12px; height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; }
.slots i.on { background: var(--g, var(--zone)); border-color: var(--g, var(--zone)); }
.slots em { font-style: normal; font-size: .9rem; color: var(--ink-soft); margin-inline-start: 8px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.match details { grid-column: 1 / -1; border-top: 2px dashed var(--line); padding-top: 10px; }
.match summary { cursor: pointer; font-weight: 700; color: var(--zone); }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.table td.num, .table th.num { text-align: center; }
.table tr:first-child td { font-weight: 700; }
.muted { color: var(--ink-soft); }
.empty { padding: 28px; text-align: center; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: var(--radius); }

/* team */
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pad { padding: 22px; }
.pad h3 { font-size: 1.4rem; margin-bottom: 4px; }
.pad p { color: var(--ink-soft); margin-bottom: 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.input::placeholder { color: var(--ink-soft); opacity: .7; }
.input.ltr { direction: ltr; text-align: left; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--zone); }
.roster { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; }
.roster li.empty-slot { border-style: dashed; color: var(--ink-soft); }
.roster li.need { border-color: var(--flare); }
.roster .name { font-weight: 700; }
.roster .sub { color: var(--ink-soft); font-size: .88rem; direction: ltr; unicode-bidi: isolate; }
.code { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.8rem; letter-spacing: .18em; direction: ltr; padding: 2px 16px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--paper); }
.acct { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }

/* rules */
.points { display: grid; grid-template-columns: repeat(9, 1fr); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 18px; }
.points div { padding: 14px 4px; text-align: center; border-inline-end: 2px solid var(--line); }
.points div:last-child { border-inline-end: 0; }
.points small { display: block; color: var(--ink-soft); font-weight: 600; }
.points b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.2; }
.points .first b { color: var(--flare); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s, persian); font-family: var(--display); font-size: 1.4rem; color: var(--flare); min-width: 1.4em; }
.note { margin-top: 18px; padding: 14px 18px; border-inline-start: 5px solid var(--zone); background: var(--zone-tint); border-radius: 8px; }

/* dialogs and toast */
dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(8, 14, 11, .55); }
dialog form, dialog .body { padding: 22px; }
dialog h3 { font-size: 1.6rem; margin-bottom: 6px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; }
.x { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.steam { display: flex; width: 100%; background: #1b2838; border-color: #1b2838; color: #fff; }
.steam:hover { background: #26384f; }
details.alt summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; margin-top: 14px; }
.msg { min-height: 1.5em; font-size: .92rem; margin-top: 8px; }
.msg.err { color: var(--bad); }
.toast { position: fixed; inset-inline: 0; bottom: 20px; display: grid; place-items: center; pointer-events: none; z-index: 50; }
.toast span { padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.toast span.err { background: var(--bad); color: #fff; }
.thumb { max-width: 100%; max-height: 180px; border: 2px solid var(--ink); border-radius: 8px; display: block; margin: 8px 0; }
.claim { padding: 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline .input { width: 110px; min-height: 38px; }

/* game picker, badges, coming-soon cards, team tabs */
.block.tight { padding-block: 0 8px; }
.gamebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--panel); font-weight: 700; cursor: pointer; }
.gbtn::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--g, var(--ink-soft)); }
.gbtn:hover { border-color: var(--g, var(--ink)); }
.gbtn[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.gbtn small { font-weight: 600; opacity: .7; }
.gbadge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--g, var(--ink)); border: 1.5px solid var(--g, var(--line)); margin-bottom: 6px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-card { padding: 20px; border-top: 6px solid var(--g, var(--ink)); }
.soon-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.soon-card ul { margin: 10px 0 0; padding-inline-start: 18px; color: var(--ink-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.eyebrow[data-game]::before { background: var(--g); }

/* the night: facts, progress, lobby, bracket */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.journey { list-style: none; display: flex; gap: 6px; margin: 10px 0 0; padding: 0; flex-wrap: wrap; }
.journey li { font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: 2px 10px; border-radius: 999px; border: 1.5px dashed var(--line); }
.journey li.done { color: var(--ok); border-style: solid; border-color: currentColor; }
.journey li.now { color: var(--ink); border-style: solid; border-color: var(--flare); background: color-mix(in srgb, var(--flare) 14%, transparent); }
.lobby { grid-column: 1 / -1; border: 2px solid var(--g, var(--ink)); border-radius: 10px; padding: 12px 14px; background: var(--paper); }
.lobby h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.lobby .lrow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.lobby code { direction: ltr; unicode-bidi: isolate; padding: 2px 10px; border-radius: 6px; background: var(--panel); border: 1.5px solid var(--line); font-weight: 700; }
.bracket { display: flex; gap: 22px; overflow-x: auto; padding: 8px 2px 14px; }
.round { min-width: 220px; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.round h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; color: var(--ink-soft); font-size: 1.1rem; }
.bm { border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); overflow: hidden; }
.bm .side { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; }
.bm .side + .side { border-top: 1px solid var(--line); }
.bm .side.win { font-weight: 800; background: color-mix(in srgb, var(--g, var(--ok)) 18%, transparent); }
.bm small { display: block; padding: 4px 10px 6px; color: var(--ink-soft); font-size: .8rem; }
.bm.disputed { border-color: var(--bad); }
.bm .btn { margin: 0 10px 8px; }
.stack { display: grid; gap: 18px; }
.mini { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.mini .input { flex: 1; min-width: 120px; width: auto; }
.sep { border: 0; border-top: 2px dashed var(--line); margin: 18px 0; }

/* pages: game nav, hub cards, tabs, source tags, club and ladder, referee console */
.nav { overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav a::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--g, var(--ink-soft)); opacity: .9; }
.nav a[aria-current='page'] { background: var(--ink); color: var(--paper); }
.nav a.off { opacity: .6; }
.nav small { font-size: .72rem; opacity: .8; }
.hubcard { display: block; padding: 20px; border-top: 6px solid var(--g, var(--ink)); text-decoration: none; color: var(--ink); transition: transform .12s; }
.hubcard:hover { transform: translateY(-2px); }
.hubcard h3 { font-size: 1.6rem; margin: 6px 0; }
.hubcard p { color: var(--ink-soft); margin: 0 0 10px; min-height: 3.2em; }
.hubcard .go { font-weight: 800; color: var(--g, var(--zone)); }
.tabs2 { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 16px; border-bottom: 2px solid var(--line); }
.tabs2 button { padding: 8px 16px; border: 0; border-bottom: 4px solid transparent; background: transparent; font-weight: 700; color: var(--ink-soft); cursor: pointer; margin-bottom: -2px; }
.tabs2 button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--g, var(--flare)); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.dl dt { color: var(--ink-soft); font-weight: 600; }
.dl dd { margin: 0; }
.src { display: inline-block; font-size: .72rem; font-weight: 700; padding: 0 8px; border-radius: 6px; margin-inline-start: 8px; border: 1.5px solid currentColor; vertical-align: middle; white-space: nowrap; }
.src.official { color: var(--ok); }
.src.community { color: var(--zone); }
.src.ours { color: var(--flare); }
.rules-sec { margin-bottom: 22px; }
.rules-sec h3 { font-size: 1.3rem; margin-bottom: 8px; }
.rules-sec ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 22px; }
.stat { padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--g, var(--ink)); }
.stat span { color: var(--ink-soft); font-size: .9rem; }
.clubhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.clubhead h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
a.rowlink { color: var(--ink); text-decoration: none; font-weight: 700; }
a.rowlink:hover { text-decoration: underline; }
.reflive { display: grid; gap: 6px; margin: 12px 0; }
.refrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; }
.refrow.out { opacity: .65; }
.refrow .kills { font-family: var(--display); font-size: 1.6rem; min-width: 2ch; text-align: center; }
.refrow select { min-height: 36px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); padding: 0 6px; }
.rules-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* tournament overview (modelled on the sections Challengermode and Toornament show), team finder */
.ov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.ov-grid .wide { grid-column: 1 / -1; }
.ov-grid h3 { font-size: 1.25rem; margin-bottom: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { position: relative; padding-inline-start: 26px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--g, var(--ink)); background: var(--paper); }
.timeline li.past::before { background: var(--g, var(--ink)); }
.timeline li.next::before { background: var(--flare); border-color: var(--flare); box-shadow: 0 0 0 4px var(--zone-tint); }
.timeline b { display: block; }
.timeline small { color: var(--ink-soft); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 10px; }
.counts b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.counts span { color: var(--ink-soft); font-size: .88rem; }
.prize-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.prize-list li::before { content: '🎁 '; }
.prose { white-space: pre-line; }
.lftcard { padding: 14px; display: grid; gap: 4px; }
.lftcard b { font-size: 1.05rem; }
.lftgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }

footer { padding: 36px 0 60px; color: var(--ink-soft); font-size: .9rem; }
footer .wrap { border-top: 2px dashed var(--line); padding-top: 22px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .dial { width: min(100%, 320px); order: -1; }
  .two, .three { grid-template-columns: 1fr; }
  .match { grid-template-columns: 64px 1fr; }
  .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .date b { font-size: 2rem; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .points div { border-bottom: 2px solid var(--line); }
  .top .wrap { flex-wrap: wrap; padding-block: 6px; }
  .nav { order: 3; width: 100%; flex-basis: 100%; margin-inline-start: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ov-grid, .lftgrid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 8px; }
  .refrow { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick { transition: none; }
  .btn { transition: none; }
}


/* ===== v2: cinematic look ================================================================ */
.top { background: rgba(11, 18, 32, .94); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.brand { color: var(--ink); }
.nav a { color: var(--ink-soft); }
.nav a:hover { background: var(--zone-tint); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--flare); color: var(--flare-ink); }
.btn { border: 1.5px solid var(--line); background: var(--raise); }
.btn:hover { background: var(--panel); border-color: var(--ink-soft); }
.btn.primary { background: var(--flare); border-color: var(--flare); color: var(--flare-ink); box-shadow: 0 8px 24px rgba(244, 178, 74, .22); }
.btn.primary:hover { background: #ffc361; }
.btn.danger { background: transparent; }
.chip { background: var(--raise); border: 1px solid var(--line); }
a { color: var(--zone); }

/* hero: the next match over the squad photo; the safe-zone rings stay behind the countdown */
.hero { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); background: #0b1220 center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 18, 32, .96) 0%, rgba(11, 18, 32, .78) 42%, rgba(11, 18, 32, .35) 100%), linear-gradient(180deg, rgba(11, 18, 32, .2) 55%, #0b1220 100%); }
[dir='rtl'] .hero::before { background: linear-gradient(270deg, rgba(11, 18, 32, .96) 0%, rgba(11, 18, 32, .78) 42%, rgba(11, 18, 32, .35) 100%), linear-gradient(180deg, rgba(11, 18, 32, .2) 55%, #0b1220 100%); }
.hero { background-image: url('/img/pubg-squad.jpg'); }
body[data-game='dota2'] .hero { background-image: url('/img/dota2-lanes.jpg'); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.12; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero .meta { color: #d3dcee; }
.eyebrow { color: var(--flare); font-size: .95rem; letter-spacing: .02em; }
.eyebrow::before { background: var(--flare); box-shadow: 0 0 0 5px rgba(244, 178, 74, .22); }
.dial { background: rgba(8, 14, 26, .78); border: 1.5px solid rgba(244, 178, 74, .55); box-shadow: 0 0 0 18px rgba(244, 178, 74, .06), 0 0 0 44px rgba(244, 178, 74, .035), 0 30px 80px rgba(0, 0, 0, .5); }
.dial .core small { color: #c8d3e8; }
.tick { stroke: rgba(159, 176, 203, .28); }

/* sections */
.block { padding-block: clamp(36px, 5vw, 64px); }
.block > .wrap > h2, .block h2.title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.block > .wrap > h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--flare); margin-top: 10px; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }
.card { background: linear-gradient(180deg, var(--raise), var(--panel)); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .28); }
.input { background: #0d1626; border: 1.5px solid var(--line); color: var(--ink); }
.input:focus-visible { border-color: var(--flare); outline-color: var(--flare); }
.code { background: #0d1626; border-color: var(--flare); color: var(--flare); }
.note { background: var(--zone-tint); border-inline-start-color: var(--zone); }
.empty { border-color: var(--line); }

/* how a night works: a real sequence, so the numbers earn their place */
.how { padding-block: 8px 0; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: h; }
.how li { counter-increment: h; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.how li::before { content: counter(h, persian); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--flare); color: var(--flare-ink); font-family: var(--display); font-size: 1.5rem; margin-bottom: 12px; }
.how b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin-bottom: 4px; }
.how span { color: var(--ink-soft); }

/* hub cards */
.hubcard { padding: 0; overflow: hidden; border-top: 0; background: linear-gradient(180deg, var(--raise), var(--panel)); }
.hubcard .hubpic { width: 100%; margin: 0 0 16px; border-radius: 0; aspect-ratio: 16 / 8; transition: transform .5s; }
.hubcard:hover .hubpic { transform: scale(1.03); }
.hubcard > :not(.hubpic) { margin-inline: 22px; }
.hubcard > .go { display: block; margin-bottom: 20px; }
.hubcard .chip { margin-top: 0; }
.hubcard:hover { transform: translateY(-3px); border-color: var(--g, var(--flare)); }

/* match rows */
.match { background: linear-gradient(180deg, var(--raise), var(--panel)); }
.date b { font-size: 3rem; color: var(--flare); }
.date { border-inline-end: 1px solid var(--line); }
.slots i { border-color: var(--ink-soft); }
.slots i.on { background: var(--flare); border-color: var(--flare); }
.match details { border-top: 1px solid var(--line); }

/* feature band: the second photo, with a line about what it shows */
.feature { padding-block: clamp(24px, 4vw, 56px); }
.feature .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.feature figure { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feature h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; }
.feature ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: baseline; }
.feature li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--flare); flex: none; transform: translateY(-1px); }

/* rules */
.rules-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.rules-sec h3 { color: var(--flare); font-size: 1.45rem; }
.rules-sec li { color: #dbe3f2; }
.points { background: var(--panel); border-color: var(--line); }
.points div { border-inline-end-color: var(--line); }
.points .first b { color: var(--flare); }
.src.official { color: var(--ok); }
.src.ours { color: var(--flare); }

/* tables, tabs, dialogs, footer */
.table th, .table td { border-bottom-color: var(--line); }
.tabs2 { border-bottom-color: var(--line); }
.tabs2 button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--flare); }
dialog { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(4, 8, 16, .72); }
.toast span { background: var(--flare); color: var(--flare-ink); }
.steam { background: #1b2838; border-color: #2a475e; }
footer { background: #080e1a; padding-top: 44px; margin-top: 40px; }
footer .wrap { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .how ol { grid-template-columns: 1fr; }
  .feature .wrap { grid-template-columns: 1fr; }
  .hero::before, [dir='rtl'] .hero::before { background: linear-gradient(180deg, rgba(11, 18, 32, .72), #0b1220 96%); }
  .dial { box-shadow: 0 0 0 10px rgba(244, 178, 74, .06), 0 20px 50px rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) { .hubcard .hubpic { transition: none; } .hubcard:hover .hubpic { transform: none; } }

/* team page */
.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: st; }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; }
.stepper li span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .9rem; flex: none; }
.stepper li.done { color: var(--ok); }
.stepper li.now { color: var(--flare-ink); background: var(--flare); border-color: var(--flare); }
.stepper li.now span { border-color: var(--flare-ink); }
.stage { border-color: rgba(244, 178, 74, .45); }
.checks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); }
.checks li::before { content: '○'; color: var(--ink-soft); }
.checks li.ok { border-style: solid; border-color: rgba(95, 211, 155, .4); }
.checks li.ok::before { content: '✓'; color: var(--ok); font-weight: 800; }
.checks li.bad::before { content: '!'; color: var(--bad); font-weight: 800; }
.checks b { font-weight: 700; }
.checks span { color: var(--ink-soft); flex: 1; min-width: 8ch; }
.teamhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.teamhead h3 { margin: 4px 0 0; }
.meter { display: flex; gap: 5px; padding-top: 6px; }
.meter i { width: 12px; height: 26px; border-radius: 4px; background: rgba(159, 176, 203, .22); }
.meter i.on { background: var(--flare); }
.players { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #0f1a2e; border: 1px solid var(--line); }
.player.cap { border-color: rgba(122, 162, 255, .5); }
.player.empty-slot { background: transparent; border-style: dashed; color: var(--ink-soft); }
.player.need { border-color: rgba(244, 178, 74, .6); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raise); font-family: var(--display); font-size: 1.3rem; color: var(--flare); flex: none; }
.who2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; flex: 1; min-width: 0; }
.who2 small { flex-basis: 100%; color: var(--ink-soft); direction: ltr; text-align: start; }
.dc { font-size: .8rem; font-weight: 700; color: var(--bad); white-space: nowrap; }
.dc.ok { color: var(--ok); }
.invite .linkbox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; background: #0d1626; border: 1px solid var(--line); }
.invite code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--flare); font-weight: 700; }
.code.small { font-size: 1.1rem; padding: 0 10px; }
.nextmatch { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--zone-tint); display: grid; gap: 2px; }
.nextmatch small { color: var(--zone); font-weight: 700; }
.nextmatch b { font-size: 1.15rem; }
.nextmatch .acts { justify-content: flex-start; margin-top: 8px; }
@media (max-width: 860px) { .stepper { grid-template-columns: repeat(2, 1fr); } }
.two > *, .stack > *, .three > * { min-width: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.players { grid-template-columns: minmax(0, 1fr); }
.player { flex-wrap: wrap; min-width: 0; }
.who2 { flex: 1 1 9ch; }
.dc { white-space: normal; }

/* referee console: one card per team, big targets for a live match */
.reflive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 14px 0 8px; }
.rpend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.rpend .btn { margin-inline-start: auto; }
.reflive-head span { color: var(--ink-soft); }
.reflive { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.refrow { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px; border-radius: 14px; background: #0f1a2e; border: 1px solid var(--line); }
.refrow.out { opacity: .6; }
.rtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rname { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 8px; height: 22px; border-radius: 3px; background: rgba(159, 176, 203, .25); }
.pips i.on { background: var(--ink); }
.rkills { display: grid; grid-template-columns: 44px 1fr 2fr; gap: 8px; align-items: center; }
.rkills .btn { min-height: 48px; }
.rkills .kills { font-family: var(--display); font-weight: 400; font-size: 2.2rem; text-align: center; line-height: 1; }
.rplayers { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.rmore summary { cursor: pointer; color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.rmore-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rmore-in select { min-height: 36px; border: 1.5px solid var(--line); border-radius: 8px; background: #0d1626; color: var(--ink); padding: 0 6px; }

/* tournament page banner */
.thero { position: relative; isolation: isolate; margin-bottom: 18px; padding: clamp(22px, 4vw, 44px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0d1626 var(--cover, none) center / cover; }
.thero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 18, 32, .96) 18%, rgba(11, 18, 32, .55) 100%); }
.thero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: 8px 0 4px; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.thero .when, .thero .crumb { color: #d3dcee; }
.thero .crumb a { color: var(--flare); }
.clubhead h1 { font-size: clamp(2rem, 6vw, 3rem); }
.socials { display: grid; gap: 10px; }
.socials .btn { width: 100%; }
.socials .steam { display: inline-flex; }
[hidden] { display: none !important; }

.tnobadge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--zone-tint); color: var(--zone); font-size: .85rem; font-weight: 800; vertical-align: middle; }
.reflive-head .btn { margin-inline-start: auto; }
.tno { width: 76px; min-height: 36px; }
