:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #13171c;
  --surface-2: #1a2027;
  --surface-3: #0e1216;
  --line: #2a313a;
  --line-strong: #3b4652;
  --text: #f5f7f8;
  --muted: #9da8b4;
  --accent: #8bd450;
  --accent-2: #b9f27c;
  --warning: #f1b75b;
  --page-glow: #1b2a1d;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 80% -10%, var(--page-glow) 0, transparent 28rem), var(--bg);
  color: var(--text);
}
.theme-trackmania, .game-theme-trackmania { --accent: #8bd450; --accent-2: #b9f27c; --page-glow: #1b2a1d; }
.theme-dota2, .game-theme-dota2 { --accent: #d85b50; --accent-2: #ffaaa1; --page-glow: #321816; }
.theme-all { --accent: #78b9ef; --accent-2: #b9dcfa; --page-glow: #172536; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(11 13 16 / 88%);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #10170c;
  font-weight: 900;
}
.site-header nav { display: flex; align-self: stretch; gap: 26px; }
.site-header nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.site-header nav a:hover,
.site-header nav a.active { border-color: var(--accent); color: var(--text); }
.prototype-badge {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}
.view-settings { position: relative; }
.game-switcher { position: relative; margin-left: auto; }
.game-switcher > summary { min-width: 96px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.game-switcher > summary::-webkit-details-marker { display: none; }
.game-switcher > summary::after { content: "⌄"; float: right; margin-left: 12px; color: var(--accent); }
.game-switcher-panel { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; display: grid; min-width: 180px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 11px; background: #151a20; box-shadow: 0 18px 55px rgb(0 0 0 / 38%); }
.game-switcher-panel a { padding: 9px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.game-switcher-panel a:hover, .game-switcher-panel a.active { background: color-mix(in srgb, var(--accent) 18%, #151a20); color: var(--accent-2); }
.view-settings > summary { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); cursor: pointer; list-style: none; font-size: 11px; font-weight: 750; white-space: nowrap; }
.view-settings > summary::-webkit-details-marker { display: none; }
.view-settings[open] > summary { border-color: #5d6772; color: var(--text); }
.view-settings-panel { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: 250px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: #151a20; box-shadow: 0 18px 55px rgb(0 0 0 / 38%); }
.view-settings-panel label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.view-settings-panel input { accent-color: var(--accent); }
.view-settings-panel p { margin: 7px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.view-settings-panel button { width: 100%; padding: 8px 10px; border: 1px solid #59636e; border-radius: 8px; background: #20272e; color: #dce2e6; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.view-settings-panel button:hover { border-color: var(--warning); color: #ffd9a2; }

main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.hero { padding: 30px 0 42px; }
.hero.compact { padding-bottom: 28px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1,
.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero p:last-child,
.detail-hero p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; }
.catalogue-hero { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 30px 0 34px; }
.catalogue-hero h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.055em; }
.catalogue-hero p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.tournament-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(28 34 40 / 95%), rgb(16 20 24 / 96%));
  box-shadow: 0 24px 80px rgb(0 0 0 / 16%);
}
.tournament-card { padding: 26px; }
[data-feed-tournament] + [data-feed-tournament] { margin-top: 18px; }
.panel { padding: 26px; }
.featured { border-top: 2px solid var(--accent); }
.card-topline { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.game-pill,
.tier,
.tag,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.game-pill { padding: 5px 9px; background: #24421e; color: #e4ffd2; }
.tier { padding: 5px 9px; background: #222932; color: var(--muted); }
.tag { margin: 0 4px 4px 0; padding: 5px 8px; background: #222932; color: #c8d0d8; }
.status { padding: 5px 8px; background: #29313a; color: #bdc7d1; font-size: 9px; }
.status.completed { background: #1e3b25; color: #9deb8d; }

.card-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.card-heading h2,
.row-card h2 { margin: 3px 0 0; font-size: 28px; letter-spacing: -.035em; }
.card-heading h2 a,
.row-card h2 a { text-decoration: none; }
.card-heading h2 a:hover,
.row-card h2 a:hover { color: var(--accent-2); }
.dates { margin: 0; color: var(--muted); font-size: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #10150d;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { background: var(--accent-2); }
.button.secondary { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: transparent; color: var(--accent-2); }
.button.secondary:hover { background: #1b281b; }
.facts { display: flex; gap: 30px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.facts b { color: var(--text); }

.feed-card-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.quick-results { position: relative; flex: 1; }
.quick-results-toggle { width: fit-content; list-style: none; }
.quick-results-toggle::-webkit-details-marker { display: none; }
.quick-results-toggle .new-count { margin-left: 8px; padding: 3px 7px; border-radius: 99px; background: var(--warning); color: #25190a; font-size: 10px; }
.quick-results-panel { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); }
.quick-results-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 2px 2px 8px; color: var(--muted); font-size: 11px; }
.quick-results-heading > div { display: flex; flex-direction: column; gap: 3px; }
.quick-results-heading b { color: #dce2e6; font-size: 12px; }
.quick-result-row { position: relative; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #11161b; }
.quick-result-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.quick-result-competitors { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-result-competitors > span { padding: 5px 8px; border-radius: 7px; background: #20272e; color: #d9dee3; font-size: 12px; }
.quick-result-competitor { display: flex; align-items: center; gap: 7px; border: 1px solid transparent; }
.quick-result-competitor.is-match-winner { border-color: rgb(112 184 83 / 34%); background: linear-gradient(90deg, rgb(67 126 49 / 34%), rgb(32 39 46 / 92%)); }
.quick-result-competitor.is-match-loser { border-color: rgb(177 75 67 / 30%); background: linear-gradient(90deg, rgb(133 48 43 / 24%), rgb(32 39 46 / 92%)); }
.quick-result-competitor.is-match-winner > b { color: #c5fa9d; }
.quick-result-competitor.is-match-loser > b { color: #f3a39b; }
.quick-result-team { display: inline-flex; align-items: center; min-width: 0; gap: 6px; color: inherit; text-decoration: none; }
.quick-result-team img, .quick-result-team .team-logo-fallback { flex: 0 0 20px; width: 20px; height: 20px; }
.quick-result-competitors b { margin-left: 4px; color: var(--accent-2); }
.quick-result-row time { display: block; margin-top: 8px; color: #74808c; font-size: 10px; }
.quick-results-empty { margin: 4px 2px; font-size: 12px; }
.new-result-badge { padding: 3px 6px; border: 1px solid #b87b38; border-radius: 99px; background: #3a2817; color: #ffd49a; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.is-new-result { border-color: #bd8243 !important; background: linear-gradient(145deg, rgb(72 48 25 / 78%), rgb(22 18 14 / 96%)); box-shadow: 0 0 0 1px rgb(241 183 91 / 11%), 0 12px 35px rgb(0 0 0 / 20%); }
.is-spoiler-hidden .quick-result-body,
.is-spoiler-hidden .bracket-result-body { filter: blur(7px); opacity: .62; pointer-events: none; user-select: none; }
.quick-result-row.is-spoiler-hidden .quick-result-competitor { border-color: transparent; background: #20272e; }
.reveal-result { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 7px 13px; border: 1px solid #d89a50; border-radius: 9px; background: #25190f; color: #ffd49a; cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; }
.reveal-all { padding: 6px 10px; border: 1px solid #b87b38; border-radius: 8px; background: #2c1e12; color: #ffd49a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; white-space: nowrap; }

.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.match-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); }
.match-meta,
.competitor { display: flex; justify-content: space-between; align-items: center; }
.match-meta { gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.match-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competitor { min-height: 28px; padding: 4px 0; font-size: 14px; }
.competitor b { color: var(--accent-2); font-size: 14px; }
.feed-match-team { display: inline-flex; align-items: center; min-width: 0; gap: 7px; color: inherit; text-decoration: none; }
.feed-match-team img, .feed-match-team .team-logo-fallback { flex: 0 0 22px; width: 22px; height: 22px; object-fit: contain; }
.feed-match-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-time { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.empty-inline { display: flex; align-items: center; justify-content: space-between; padding: 16px; border: 1px dashed #34404b; border-radius: 12px; background: var(--surface-3); color: var(--muted); }
.empty-inline p { margin: 0; }
.empty-inline a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.empty-state { padding: 80px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state h2 { margin: 8px; font-size: 28px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }
.empty-star { color: var(--accent); font-size: 42px; }

.filter-row { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.filter { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); text-decoration: none; font-size: 13px; }
.filter.active { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--accent-2); }
.filter-note { margin-left: auto; color: var(--muted); font-size: 13px; }
.card-list { display: grid; gap: 12px; }
.row-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.game-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(145deg, #6faf36, #376c24); font-size: 20px; font-weight: 900; }
.dota-hero { position: relative; }
.dota-card { border-left: 2px solid var(--accent); }
.dota-card-actions { display: grid; gap: 7px; }
.dota-icon { background: linear-gradient(145deg, #d9685d, #6d211d); color: #fff3ef; }
.game-pill.dota-pill { background: color-mix(in srgb, var(--accent) 24%, #151a20); color: var(--accent-2); }
.prototype-badge.dota-badge { border-color: #71403b; background: #2d1917; color: #ffc1b9; }
.dota-empty { font-size: 24px; font-weight: 950; }
.dota-section { margin-bottom: 18px; }
.dota-schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 760px; overflow-y: auto; }
.dota-series { min-width: 0; padding: 10px; border: 1px solid var(--line); border-left: 2px solid color-mix(in srgb, var(--accent) 65%, var(--line)); border-radius: 10px; background: var(--surface-3); }
.dota-series-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.dota-team-line { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: 5px 7px; border-left: 2px solid transparent; border-bottom: 1px solid #242b32; font-size: 12px; }
.dota-team-line.is-match-winner { border-left-color: var(--accent); background: linear-gradient(90deg, rgb(77 125 52 / 25%), transparent); }
.dota-team-line.is-match-loser { border-left-color: #a7453d; background: linear-gradient(90deg, rgb(125 45 40 / 18%), transparent); }
.dota-team-line b { color: var(--accent-2); }
.dota-team-name { display: flex; align-items: center; min-width: 0; gap: 8px; color: inherit; text-decoration: none; }
.dota-team-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dota-team-name img, .dota-roster-heading img { width: 24px; height: 24px; object-fit: contain; }
.team-logo-fallback { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, #20262c); color: var(--accent-2); font-size: 8px; font-weight: 900; }
.team-logo-fallback.large { flex-basis: 44px; width: 44px; height: 44px; font-size: 11px; }
.dota-series time { display: block; margin-top: 8px; color: #7e8993; font-size: 9px; }
.dota-series.is-spoiler-hidden .dota-team-line { border-left-color: transparent; background: transparent; }
.dota-brackets { display: grid; gap: 18px; }
.dota-bracket { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #0d1115; }
.dota-double-elim-canvas { overflow-x: auto; padding-bottom: 6px; scrollbar-color: #4b5964 transparent; }
.dota-double-elim-grid { display: grid; grid-template-columns: 910px 208px; column-gap: 18px; width: max-content; min-width: 1148px; padding-right: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0d1115; }
.dota-double-elim-core { display: grid; gap: 0; min-width: 0; }
.dota-bracket-lane { overflow: visible; background: transparent; }
.dota-bracket-lane > h3 { display: inline-block; margin: 12px 16px 0; padding: 0 0 5px; border-bottom: 2px solid color-mix(in srgb, var(--accent) 58%, transparent); color: var(--accent-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dota-bracket-lane .bracket-viewport { overflow: visible; padding: 8px 12px 14px; }
.dota-bracket-lane .bracket-lane { padding: 0; border: 0; border-radius: 0; background: transparent; }
.dota-rounds.bracket-lane-track { display: grid; grid-template-columns: repeat(4, 208px); align-items: stretch; gap: 18px; min-width: 0; min-height: 0; }
.dota-rounds.dota-upper-track .dota-round:last-of-type { grid-column: 4; }
.dota-round { display: grid; min-width: 0; gap: 9px; }
.dota-round h4 { margin: 0 0 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.dota-upper-lane .dota-round:last-of-type .dota-series::after,
.dota-lower-lane .dota-round:last-of-type .dota-series::after { content: ""; position: absolute; left: 100%; top: 50%; width: 20px; border-top: 1px solid #53606b; }
.dota-grand-final-rail { --dota-upper-feed-y: 34%; --dota-lower-feed-y: 84%; --dota-final-center-y: 59%; position: relative; min-width: 0; }
.dota-grand-final-rail::before { content: ""; position: absolute; left: -8px; top: var(--dota-upper-feed-y); bottom: calc(100% - var(--dota-lower-feed-y)); border-left: 1px solid #53606b; }
.dota-grand-final-rail::after { content: ""; position: absolute; left: -8px; top: var(--dota-final-center-y); width: 8px; border-top: 1px solid #53606b; }
.dota-grand-final-card > h3 { position: absolute; top: 42px; right: 0; left: 0; margin: 0; padding: 8px 9px; border: 1px solid #303841; border-radius: 7px; background: #20262c; color: #cbd2d8; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.dota-grand-final-card > .dota-series { position: absolute; top: var(--dota-final-center-y); right: 0; left: 0; transform: translateY(-50%); }
.dota-double-elim-grid .dota-series { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; padding: 6px; border-radius: 7px; }
.dota-double-elim-grid .stage-matches { width: 100%; min-width: 0; }
.dota-double-elim-grid .dota-series-meta { gap: 5px; margin-bottom: 4px; font-size: 9px; }
.dota-double-elim-grid .dota-series-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dota-double-elim-grid .status { padding: 3px 5px; font-size: 8px; }
.dota-double-elim-grid .dota-team-line { min-height: 26px; padding: 2px 4px; font-size: 11px; }
.dota-double-elim-grid .dota-team-name { gap: 5px; }
.dota-double-elim-grid .dota-team-name img,
.dota-double-elim-grid .team-logo-fallback { flex-basis: 22px; width: 22px; height: 22px; }
.dota-double-elim-grid .dota-series time { margin-top: 4px; font-size: 8px; }
.bracket-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100dvw; max-width: 100dvw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #090c0f; color: var(--text); }
.bracket-dialog::backdrop { background: rgb(0 0 0 / 82%); backdrop-filter: blur(4px); }
.bracket-dialog-shell { display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; }
.bracket-dialog-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #11161b; box-shadow: 0 8px 24px rgb(0 0 0 / 28%); }
.bracket-dialog-toolbar strong { color: var(--accent-2); font-size: 14px; letter-spacing: .04em; }
.bracket-dialog-actions { display: flex; align-items: center; gap: 7px; }
.bracket-dialog-actions button { min-width: 34px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: #20262c; color: var(--text); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.bracket-dialog-actions button:hover { border-color: var(--accent); color: var(--accent-2); }
.bracket-dialog-actions output { min-width: 48px; color: var(--muted); font-size: 11px; text-align: center; }
.bracket-dialog-viewport { min-width: 0; min-height: 0; padding: 28px; overflow: auto; cursor: grab; overscroll-behavior: contain; }
.bracket-dialog-viewport.is-panning { cursor: grabbing; user-select: none; }
.bracket-dialog-mount { width: max-content; min-width: 100%; min-height: 100%; transform-origin: top left; }
.bracket-dialog-mount > .is-expanded-bracket { max-width: none; overflow: visible; }
.dota-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dota-roster-card { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); }
.dota-roster-card h3 { margin: 0 0 10px; font-size: 16px; }
.dota-roster-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.dota-roster-heading img { width: 44px; height: 44px; }
.dota-roster-heading h3 { margin: 0; }
.dota-roster-card ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; counter-reset: roster; }
.dota-roster-card li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 7px; border-bottom: 1px solid #242b32; counter-increment: roster; font-size: 12px; }
.dota-roster-player { display: flex; align-items: center; min-width: 0; gap: 7px; color: var(--text); text-decoration: none; }
.dota-roster-player::before { content: counter(roster) "."; display: inline-block; width: 16px; flex: 0 0 16px; color: #66727e; font-size: 9px; }
.dota-roster-player > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dota-roster-player:hover > span:last-child { color: var(--accent-2); }
.dota-roster-player .country-flag-slot { width: 24px; flex-basis: 24px; }
.dota-roster-card li small { color: var(--muted); }
.dota-format-summary { padding: 13px; border-left: 3px solid var(--accent); background: #241615; color: #e4c9c6; }
.dota-stage-tabs { display: flex; gap: 5px; margin-bottom: 18px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #11161b; }
.dota-stage-tabs button { min-width: 132px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.dota-stage-tabs button:hover { color: var(--text); }
.dota-stage-tabs button[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 18%, #171b20); color: var(--accent-2); box-shadow: inset 0 -2px var(--accent); }
.dota-tab-panel[hidden] { display: none; }
.swiss-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.swiss-table-wrap.is-swiss-spoiler-hidden table { filter: blur(8px); opacity: .55; pointer-events: none; user-select: none; }
.swiss-standings-reveal { position: absolute; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.swiss-table { width: 100%; min-width: 1020px; border-collapse: collapse; background: #0f1317; font-size: 12px; }
.swiss-table th { position: sticky; top: 0; z-index: 1; padding: 10px 9px; border-bottom: 1px solid var(--line-strong); background: #20252b; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.swiss-table th:not(:nth-child(2)), .swiss-table td:not(:nth-child(2)) { text-align: center; }
.swiss-table td { height: 55px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.swiss-table tbody tr:last-child td { border-bottom: 0; }
.swiss-table tbody tr { box-shadow: inset 3px 0 #59636c; }
.swiss-table tbody tr.swiss-status-up { background: linear-gradient(90deg, rgb(39 94 48 / 34%), transparent 55%); box-shadow: inset 3px 0 #55a866; }
.swiss-table tbody tr.swiss-status-down { background: linear-gradient(90deg, rgb(116 41 35 / 27%), transparent 55%); box-shadow: inset 3px 0 #bb5247; }
.swiss-team { display: flex; align-items: center; gap: 9px; min-width: 170px; color: var(--text); text-decoration: none; }
.swiss-team img, .swiss-opponent img { width: 27px; height: 27px; object-fit: contain; }
.swiss-result { display: inline-block; min-width: 30px; margin-right: 6px; padding: 4px 5px; border-radius: 5px; background: #333a42; color: #d6dde2; font-size: 10px; font-weight: 900; }
.swiss-result.win { background: #1f682d; color: #c8ffc9; }
.swiss-result.loss { background: #792b29; color: #ffd0cb; }
.swiss-opponent { display: inline-flex; vertical-align: middle; }
.swiss-opponent .team-logo-fallback { width: 27px; height: 27px; }
.swiss-round-grid { display: grid; grid-template-columns: repeat(5, minmax(225px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.swiss-round { min-width: 225px; }
.swiss-round > h3 { margin: 0 0 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #20252b; font-size: 12px; text-align: center; }
.swiss-round-matches { display: grid; gap: 8px; }
.elimination-flow { display: grid; gap: 9px; max-width: 720px; }
.elimination-heading { display: grid; grid-template-columns: minmax(260px, 1fr) 48px minmax(190px, .7fr); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.elimination-heading span:first-child { grid-column: 1; }
.elimination-heading span:last-child { grid-column: 3; }
.elimination-row { display: grid; grid-template-columns: minmax(260px, 1fr) 48px minmax(190px, .7fr); align-items: center; }
.elimination-connector { height: 1px; background: #67747e; }
.qualified-team { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 9px 12px; border: 1px solid var(--line-strong); border-left: 2px solid var(--accent); border-radius: 8px; background: #13191d; }
.qualified-team span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.qualified-team b { font-size: 12px; }
.row-main p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.catalogue-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; background: #252c34; color: #bdc7d1; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.catalogue-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #71808f; }
.catalogue-status.ongoing { background: #1b3520; color: #a9ec9b; }
.catalogue-status.ongoing::before { background: var(--accent); box-shadow: 0 0 0 3px rgb(139 212 80 / 12%); }

.detail-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 36px 0 28px; }
.detail-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.actions { display: flex; gap: 10px; }
.page-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(19 23 28 / 80%);
}
.page-nav a { padding: 8px 13px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.page-nav a:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--accent-2); }
.new-results-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -4px 0 18px; padding: 12px 15px; border: 1px solid #b57b3d; border-radius: 11px; background: #322315; color: #ffd49a; font-size: 12px; }
.new-results-summary > a { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 18px; color: inherit; text-decoration: none; }
.new-results-summary > a > span:last-child { color: #ddc2a2; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.stat-grid > div { display: flex; flex-direction: column; gap: 7px; padding: 20px; background: var(--surface); }
.stat-grid span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.stat-grid b { font-size: 21px; }
.stat-grid .small-value { font-size: 13px; line-height: 1.5; }

.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.section-heading h2,
.panel > h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.collapsible-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary h2 { margin-bottom: 0; }
.collapsible-summary:hover h2,
.collapsible-summary:hover h3 { color: var(--accent-2); }
.summary-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.disclosure-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.collapsible-section[open] > .collapsible-summary .disclosure-icon { transform: rotate(225deg); }
.collapsible-content { padding-top: 20px; }
.bracket-panel { margin-bottom: 18px; padding: 0; overflow: hidden; }
.bracket-panel > .section-heading { padding: 26px 26px 18px; }
.bracket-panel > .collapsible-content { padding-top: 0; }
.bracket-section { border-top: 1px solid var(--line); }
.bracket-title { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 10px; }
.bracket-title h3 { margin: 0; font-size: 19px; }
.bracket-title span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.bracket-viewport { padding: 8px 24px 28px; overflow-x: clip; }
.bracket-section-toolbar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.double-elimination-diagram { display: grid; gap: 22px; }
.bracket-lane { padding: 14px; border: 1px solid #29323b; border-radius: 13px; background: rgb(10 14 18 / 64%); }
.bracket-lane.lower-lane { border-color: #30363d; background: rgb(13 16 20 / 72%); }
.lane-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 13px; padding: 0 2px; }
.lane-heading span { color: var(--accent-2); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lane-heading p { margin: 0; color: #75808b; font-size: 11px; }
.bracket-lane-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px; min-width: 0; }
.bracket-lane-track.dense-four { min-height: 680px; }
.bracket-lane-track.dense-two { min-height: 360px; }
.bracket-lane-track.playoff-track { min-height: 680px; }
.bracket-connectors { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bracket-connector { fill: none; stroke: #53606b; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke 120ms ease, stroke-width 120ms ease, filter 120ms ease; }
.bracket-connector.is-route-only { opacity: 0; }
.bracket-connector.is-player-path { stroke: var(--accent-2); stroke-width: 2.5; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 55%, transparent)); }
.bracket-connector.is-route-only.is-player-path { opacity: 1; }
.bracket-stage { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.bracket-stage h4 { margin: 0 0 13px; padding: 8px 10px; border: 1px solid #303841; border-radius: 7px; background: #20262c; color: #cbd2d8; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stage-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-height: 0; }
.bracket-match { position: relative; width: 100%; padding: 10px; border: 1px solid #303943; border-left: 2px solid #557e43; border-radius: 10px; background: #0b0f13; box-shadow: 0 8px 28px rgb(0 0 0 / 18%); transition: border-color 120ms ease, box-shadow 120ms ease; }
.theme-dota2 .dota-series { border-left-color: var(--accent); }
.bracket-match.is-player-path-node,
.dota-series.is-player-path-node,
.qualification-card.is-player-path-node { border-color: #8da487; box-shadow: 0 0 0 1px rgb(203 225 194 / 12%), 0 8px 28px rgb(0 0 0 / 18%); }
.bracket-match-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #74808c; font-size: 9px; letter-spacing: .03em; }
.bracket-match-meta .new-result-badge { margin-left: auto; }
.bracket-match-meta time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-result-body { transition: filter 140ms ease, opacity 140ms ease; }
.bracket-reveal-result { top: 57%; bottom: auto; transform: translate(-50%, -50%); }
.bracket-player { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 7px; min-height: 25px; padding: 3px 5px; border-top: 1px solid #20262d; font-size: 12px; transition: background 120ms ease, box-shadow 120ms ease; }
.bracket-player.is-match-winner { background: linear-gradient(90deg, rgb(95 171 73 / 17%), rgb(35 78 32 / 4%)); box-shadow: inset 2px 0 0 rgb(134 210 105 / 64%); }
.bracket-player.is-match-loser { background: linear-gradient(90deg, rgb(168 65 65 / 10%), rgb(88 32 32 / 2%)); box-shadow: inset 2px 0 0 rgb(190 88 88 / 32%); }
.bracket-player.is-match-winner .bracket-score { color: #c5fa9d; font-weight: 900; }
.bracket-player.is-player-path,
.dota-team-line.is-player-path,
.qualification-slot.is-player-path { background: linear-gradient(90deg, rgb(209 226 201 / 15%), rgb(131 158 121 / 5%)); box-shadow: inset 0 0 0 1px #cbd9c5, 0 0 9px rgb(164 205 145 / 10%); }
.bracket-player .player-identity { display: grid; grid-template-columns: 22px minmax(0, 1fr) 38px; width: 100%; gap: 6px; }
.bracket-player .club-icon-slot { margin-left: 0; }
.bracket-score { display: flex; align-items: center; justify-content: flex-end; width: 32px; min-width: 32px; min-height: 1em; font-variant-numeric: tabular-nums; }
.is-downstream-spoiler { filter: blur(6px); opacity: .58; pointer-events: none; user-select: none; }
.bracket-score b { color: var(--accent-2); }
.bracket-player.tbd { color: #59636e; font-style: italic; }
.qualification-card { width: 100%; padding: 10px; border: 1px solid #3b4c3a; border-left: 2px solid var(--accent); border-radius: 10px; background: linear-gradient(145deg, #111a12, #0b100c); }
.qualification-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.qualification-meta small { color: #697568; font-size: 8px; font-weight: 700; }
.qualification-slot { display: flex; justify-content: space-between; align-items: center; min-height: 31px; padding: 5px; border-top: 1px solid #263126; color: #7b887a; font-size: 12px; font-style: italic; }
.qualification-slot:not(.tbd) { color: #dce8d8; font-style: normal; font-weight: 750; }
.qualification-slot small { color: #596359; font-size: 9px; font-style: normal; text-transform: uppercase; }

.schedule-panel { margin-bottom: 18px; }
.schedule-table { margin-top: 8px; }
.schedule-header,
.schedule-row { display: grid; grid-template-columns: 1.1fr 1.1fr 1.5fr .55fr; gap: 18px; align-items: center; }
.schedule-header { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-row { min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.schedule-row small,
.schedule-row time { color: var(--muted); font-size: 11px; }
.schedule-players { display: flex; flex-wrap: wrap; gap: 5px; }
.schedule-players > span { padding: 4px 7px; border-radius: 6px; background: #20272e; color: #d9dee3; font-size: 11px; }
.schedule-players > span.tbd { color: #68737e; }
.schedule-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.information-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rule-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); }
.rule-card h3 { margin: 0 0 12px; color: var(--accent-2); font-size: 15px; }
.rule-card ul { margin: 0; padding-left: 18px; color: #c3cbd2; font-size: 13px; line-height: 1.55; }
.rule-card li + li { margin-top: 6px; }
.source-panel dl { margin: 0; }
.source-panel dt { margin-top: 20px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.source-panel dd { margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.source-link { display: inline-block; margin-top: 26px; color: var(--accent-2); font-weight: 700; text-decoration: none; }
.participants-panel { margin-bottom: 18px; }
.participant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.participant-grid > span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-3); font-size: 13px; }
.player-identity { display: inline-flex; flex: 1 1 auto; align-items: center; min-width: 0; max-width: 100%; gap: 6px; }
.player-identity > a { flex: 0 1 auto; overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.player-identity > a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.country-flag-slot { display: inline-grid; place-items: center; width: 22px; height: 18px; flex: 0 0 22px; }
.identity-country-flag { display: block; font-size: 18px; line-height: 1; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 45%)); }
.identity-country-flag-image { display: block; width: 24px; height: 16px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 2px; object-fit: cover; }
.identity-country-flag.russian-flag-replacement { font-size: 17px; filter: none; }
.club-icon-slot { display: inline-flex; align-items: center; justify-content: flex-end; width: 38px; height: 26px; flex: 0 0 38px; margin-left: auto; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.club-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 26px; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; color: #dce5e9; text-decoration: none; }
.club-icon img { display: block; width: auto; max-width: 38px; height: auto; max-height: 25px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 48%)); }
.club-icon.fallback { width: 19px; height: 19px; overflow: hidden; border: 1px solid #46515b; border-radius: 5px; background: #242c33; }
.club-icon span { padding: 0 !important; border: 0 !important; background: transparent !important; font-size: 7px !important; font-weight: 950; }

.entity-preview { position: fixed; z-index: 1000; display: grid; grid-template-columns: 76px 1fr; width: min(320px, calc(100vw - 24px)); min-height: 96px; padding: 10px; border: 1px solid #46515b; border-radius: 13px; background: #11171c; box-shadow: 0 18px 55px rgb(0 0 0 / 55%); }
.entity-preview[hidden] { display: none; }
.entity-preview-media { display: grid; place-items: center; width: 68px; height: 76px; overflow: hidden; border: 1px solid #34404a; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-2); font-size: 22px; font-weight: 950; }
.entity-preview-media img { width: 100%; height: 100%; object-fit: contain; }
.entity-preview-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 3px 5px 3px 10px; }
.entity-preview-body > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.entity-preview-body > a { max-width: 100%; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 900; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.entity-preview-body p { margin: 2px 0; color: #bbc5cc; font-size: 12px; }
.entity-preview-body small { color: var(--muted); font-size: 10px; }
.entity-preview-body .entity-preview-organization { margin-top: 5px; color: var(--accent-2); font-size: 11px; font-weight: 750; }

.entity-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; padding: 42px 0 30px; }
.entity-portrait { display: grid; place-items: center; width: 148px; height: 168px; overflow: hidden; border: 1px solid #3b4650; border-radius: 20px; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent-2); font-size: 40px; font-weight: 950; }
.entity-portrait img { width: 100%; height: 100%; object-fit: cover; }
.entity-portrait.organization-logo img { padding: 16px; object-fit: contain; background: transparent; }
.entity-image-button { position: relative; padding: 0; cursor: zoom-in; font: inherit; }
.entity-image-button:hover { border-color: #759266; box-shadow: 0 0 0 3px rgb(139 212 80 / 9%); }
.entity-image-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.image-expand-hint { position: absolute; right: 9px; bottom: 8px; padding: 4px 6px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 6px; background: rgb(8 12 15 / 82%); color: #dce5e9; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transform: translateY(3px); transition: opacity 140ms ease, transform 140ms ease; }
.entity-image-button:hover .image-expand-hint,
.entity-image-button:focus-visible .image-expand-hint { opacity: 1; transform: translateY(0); }
.image-lightbox { width: min(920px, calc(100vw - 28px)); max-width: none; height: min(820px, calc(100vh - 28px)); max-height: none; padding: 0; overflow: hidden; border: 1px solid #52606b; border-radius: 18px; background: #0b0f13; color: var(--text); box-shadow: 0 26px 100px rgb(0 0 0 / 78%); }
.image-lightbox::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: blur(4px); }
.image-lightbox-frame { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; padding: 18px; }
.image-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-lightbox p { margin: 8px 48px 0; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.image-lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #606b74; border-radius: 50%; background: rgb(11 15 19 / 88%); color: #fff; cursor: pointer; font: inherit; font-size: 25px; line-height: 1; }
.image-lightbox-close:hover { border-color: var(--accent); color: var(--accent-2); }
.entity-heading h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); }
.entity-real-name { margin: 2px 0 12px; color: #c2cbd1; font-size: 18px; }
.entity-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.entity-facts > * { padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 11px; text-decoration: none; }
.entity-facts a:hover { border-color: #567249; color: var(--accent-2); }
.country-fact { display: inline-flex; align-items: center; gap: 7px; }
.profile-russian-flag { font-size: 17px; font-style: normal; line-height: 1; }
.profile-country-flag { display: block; width: 24px; height: 16px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 2px; object-fit: cover; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); }
.country-flag { position: relative; display: inline-grid; place-items: center; width: 24px; height: 15px; flex: 0 0 24px; overflow: hidden; border: 1px solid rgb(255 255 255 / 28%); border-radius: 2px; background: #263646; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); font-style: normal; }
.country-flag em { color: #fff; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.flag-gb { background: linear-gradient(28deg, transparent 44%, #fff 44% 51%, #c8102e 51% 56%, transparent 56%), linear-gradient(-28deg, transparent 44%, #fff 44% 51%, #c8102e 51% 56%, transparent 56%), linear-gradient(90deg, transparent 39%, #fff 39% 61%, transparent 61%), linear-gradient(transparent 34%, #fff 34% 66%, transparent 66%), linear-gradient(90deg, transparent 45%, #c8102e 45% 55%, transparent 55%), linear-gradient(transparent 42%, #c8102e 42% 58%, transparent 58%), #012169; }
.flag-eng { background: linear-gradient(90deg, transparent 41%, #ce1124 41% 59%, transparent 59%), linear-gradient(transparent 35%, #ce1124 35% 65%, transparent 65%), #fff; }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%); }
.flag-be { background: linear-gradient(90deg, #111 0 33.33%, #fdda24 33.33% 66.66%, #ef3340 66.66%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%); }
.flag-ro { background: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%); }
.flag-de { background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }
.flag-nl { background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%); }
.flag-at { background: linear-gradient(#ed2939 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%); }
.flag-hu { background: linear-gradient(#ce2939 0 33.33%, #fff 33.33% 66.66%, #477050 66.66%); }
.flag-pl { background: linear-gradient(#fff 0 50%, #dc143c 50%); }
.flag-ua { background: linear-gradient(#0057b7 0 50%, #ffd700 50%); }
.flag-jp { background: radial-gradient(circle at center, #bc002d 0 30%, transparent 32%), #fff; }
.flag-se { background: linear-gradient(90deg, transparent 28%, #fecc00 28% 39%, transparent 39%), linear-gradient(transparent 42%, #fecc00 42% 58%, transparent 58%), #006aa7; }
.flag-dk { background: linear-gradient(90deg, transparent 30%, #fff 30% 39%, transparent 39%), linear-gradient(transparent 42%, #fff 42% 58%, transparent 58%), #c60c30; }
.flag-no { background: linear-gradient(90deg, transparent 29%, #fff 29% 43%, transparent 43%), linear-gradient(transparent 36%, #fff 36% 64%, transparent 64%), linear-gradient(90deg, transparent 33%, #00205b 33% 39%, transparent 39%), linear-gradient(transparent 43%, #00205b 43% 57%, transparent 57%), #ba0c2f; }
.flag-fi { background: linear-gradient(90deg, transparent 29%, #003580 29% 43%, transparent 43%), linear-gradient(transparent 38%, #003580 38% 62%, transparent 62%), #fff; }
.flag-gb em, .flag-eng em, .flag-fr em, .flag-be em, .flag-it em, .flag-ro em, .flag-de em, .flag-nl em, .flag-at em, .flag-hu em, .flag-pl em, .flag-ua em, .flag-jp em, .flag-se em, .flag-dk em, .flag-no em, .flag-fi em { display: none; }
.player-current-organization { display: inline-flex; align-items: center; gap: 12px; margin-top: 15px; padding: 8px 14px 8px 8px; border: 1px solid #3c4a3a; border-radius: 14px; background: #151e16; color: var(--text); text-decoration: none; }
.player-current-organization:hover { border-color: #668759; background: #19251a; }
.player-current-organization-logo { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; overflow: hidden; border: 1px solid #526050; border-radius: 12px; background: #eef2f4; color: #1c2820; font-size: 15px; font-weight: 950; }
.player-current-organization-logo img { width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.player-current-organization > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.player-current-organization small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.player-current-organization b { font-size: 14px; }
.player-socials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.player-socials a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: #c7d0d7; font-size: 10px; font-weight: 750; text-decoration: none; }
.player-socials a:hover { border-color: #567249; color: var(--accent-2); }
.entity-section { margin-bottom: 18px; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.profile-stat-grid > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 18px 20px; background: var(--surface); }
.profile-stat-grid span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.profile-stat-grid b { color: var(--accent-2); font-size: 23px; }
.profile-stat-grid small { color: #737f88; font-size: 9px; }
.organization-history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.organization-history-card { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); color: var(--text); text-decoration: none; }
.organization-history-card:hover { border-color: #536f49; background: #172018; }
.organization-history-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 10px; background: #24351f; color: var(--accent-2); font-size: 10px; font-weight: 950; }
.organization-history-mark:has(.organization-history-logo) { border-radius: 0; background: transparent; }
.organization-history-logo { display: block; width: auto; max-width: 43px; height: auto; max-height: 40px; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 48%)); }
.organization-history-card > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.organization-history-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-history-card small { color: var(--muted); font-size: 10px; }
.organization-history-card .current-organization-label { color: var(--accent-2); font-weight: 800; }
.tier-multiselect { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; padding: 0; border: 0; }
.tier-multiselect legend { width: auto; margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tier-multiselect label { cursor: pointer; }
.tier-multiselect input { position: absolute; opacity: 0; pointer-events: none; }
.tier-multiselect label span,
.tier-multiselect button { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-3); color: var(--muted); font: inherit; font-size: 10px; font-weight: 800; }
.tier-multiselect input:checked + span { border-color: #72985f; background: #243d20; color: var(--accent-2); box-shadow: inset 0 0 0 1px rgb(139 212 80 / 10%); }
.tier-multiselect input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-multiselect button { cursor: pointer; }
.tier-multiselect button:hover { border-color: #775a38; color: #ffd49a; }
.tier-multiselect > small { margin-left: auto; color: var(--muted); font-size: 10px; }
.achievement-list { max-height: 720px; border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; scrollbar-color: #475a43 transparent; }
.achievement-row[hidden], .player-result-row[hidden] { display: none; }
.achievement-row { display: grid; grid-template-columns: 90px 70px minmax(0, 1fr) 100px; align-items: center; gap: 14px; min-height: 58px; padding: 9px 13px; border-bottom: 1px solid var(--line); background: var(--surface-3); }
.achievement-row:last-child { border-bottom: 0; }
.achievement-row time { color: var(--muted); font-size: 10px; }
.achievement-row > strong { color: var(--accent-2); font-size: 15px; }
.achievement-row > span { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.achievement-row > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.achievement-row small { color: var(--muted); font-size: 10px; }
.achievement-prize { color: #efc67f; text-align: right; }
.player-results-table { max-height: 720px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; scrollbar-color: #475a43 transparent; }
.player-results-header,
.player-result-row { display: grid; grid-template-columns: 90px 70px minmax(260px, 1fr) 120px 90px; align-items: center; gap: 14px; padding: 9px 13px; }
.player-results-header { position: sticky; z-index: 1; top: 0; border-bottom: 1px solid var(--line-strong); background: #1b2127; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.player-result-row { min-height: 54px; border-bottom: 1px solid var(--line); background: var(--surface-3); font-size: 12px; }
.player-result-row:last-child { border-bottom: 0; }
.player-result-row time { color: var(--muted); font-size: 10px; }
.player-result-row > strong { color: var(--accent-2); }
.player-result-row > span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.player-result-row > span:nth-child(3) b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-result-row small,
.player-result-row > span:nth-child(4) { color: var(--muted); font-size: 10px; }
.player-result-row > b:last-child { color: #efc67f; text-align: right; }
.entity-history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.entity-history-card { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); color: var(--text); text-decoration: none; }
.entity-history-card:hover { border-color: #4c6543; background: #172018; }
.entity-history-card span { color: var(--accent-2); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.entity-history-card small { color: var(--muted); }
.profile-roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.profile-player-card { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); color: var(--text); text-decoration: none; }
.profile-player-card:hover { border-color: #4d6743; }
.profile-player-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.profile-player-card small { color: var(--muted); }
.mini-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); color: var(--accent-2); font-size: 10px; font-weight: 950; }

.ukraine-fire,
.ukraine-entity-page .entity-hero {
  background-image:
    radial-gradient(ellipse at 50% 120%, rgb(255 76 28 / 10%) 0 12%, transparent 58%),
    radial-gradient(ellipse at 50% 125%, rgb(255 164 42 / 8%) 0 10%, transparent 54%),
    radial-gradient(ellipse at 50% 120%, rgb(255 211 92 / 5%) 0 8%, transparent 48%);
  background-repeat: no-repeat;
  background-size: 48% 92%, 42% 86%, 34% 80%;
  background-position: -10% 116%, 52% 122%, 112% 114%;
  box-shadow: inset 0 -1px rgb(255 111 42 / 16%);
  animation: ukraine-ember-glow 6.8s ease-in-out infinite alternate;
}

.ukraine-entity-page .entity-hero { border-radius: 14px; padding-inline: 16px; }

@keyframes ukraine-ember-glow {
  from {
    background-position: -10% 116%, 52% 122%, 112% 114%;
    box-shadow: inset 0 -1px rgb(255 111 42 / 12%);
  }
  to {
    background-position: 2% 108%, 45% 112%, 101% 106%;
    box-shadow: inset 0 -1px rgb(255 145 54 / 22%);
  }
}

/* In brackets the accent is deliberately clearer: it sits above the normal
   winner/loser background instead of replacing that result state. */
.ukraine-bracket-focus {
  position: relative;
  isolation: isolate;
}

.ukraine-bracket-focus::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  border-left: 2px solid rgb(255 133 52 / 72%);
  background:
    radial-gradient(ellipse at 8% 118%, rgb(255 72 25 / 18%) 0 10%, transparent 55%),
    radial-gradient(ellipse at 40% 128%, rgb(255 176 54 / 10%) 0 9%, transparent 48%);
  background-repeat: no-repeat;
  background-size: 62% 115%, 54% 105%;
  opacity: .72;
  animation: ukraine-bracket-ember 4.8s ease-in-out infinite alternate;
}

.ukraine-bracket-focus > * { position: relative; z-index: 1; }

@keyframes ukraine-bracket-ember {
  from { background-position: -12% 12px, 38% 15px; opacity: .58; }
  to { background-position: 2% 3px, 52% 7px; opacity: .92; }
}

@media (prefers-reduced-motion: reduce) {
  .ukraine-fire,
  .ukraine-entity-page .entity-hero,
  .ukraine-bracket-focus::after { animation: none; }
}

.alert { padding: 13px 16px; border-radius: 10px; font-size: 13px; }
.alert.notice { border: 1px solid #31603a; background: #18351e; color: #baf2ad; }
.alert.warning { border: 1px solid #72572c; background: #392b17; color: #f7d9a1; }
.muted { color: var(--muted); }
footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { color: var(--accent-2); }

@media (max-width: 900px) {
	.dota-schedule-grid, .dota-team-grid { grid-template-columns: 1fr 1fr; }
	.swiss-round-grid { grid-template-columns: repeat(5, 240px); }
	.dota-double-elim-grid { min-width: 1148px; }
  .match-grid { grid-template-columns: 1fr 1fr; }
  .information-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
  .bracket-viewport { overflow-x: auto; scrollbar-color: #475a43 transparent; }
  .bracket-lane-track { min-width: 850px; }
  .schedule-header { display: none; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row > div:first-child { grid-column: 1 / -1; }
  .entity-history-grid { grid-template-columns: 1fr 1fr; }
  .organization-history-grid { grid-template-columns: 1fr 1fr; }
  .profile-roster-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .site-header { gap: 18px; padding: 0 18px; }
  .prototype-badge { display: none; }
  main { width: min(100% - 28px, 1160px); padding-top: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .row-card { grid-template-columns: auto 1fr; }
  .row-card form { grid-column: 1 / -1; }
  .participant-grid { grid-template-columns: 1fr 1fr; }
  .detail-hero { align-items: start; flex-direction: column; }
  .catalogue-hero { align-items: start; flex-direction: column; }
  .actions { width: 100%; flex-wrap: wrap; }
  .feed-card-actions { align-items: stretch; flex-direction: column; }
  .quick-results-toggle { width: 100%; }
  .entity-hero { grid-template-columns: auto 1fr; align-items: center; }
  .entity-hero > .actions { grid-column: 1 / -1; }
  .profile-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
	.dota-schedule-grid, .dota-team-grid { grid-template-columns: 1fr; }
	.dota-stage-tabs button { min-width: 112px; padding-inline: 11px; }
	.dota-double-elim-grid { grid-template-columns: 910px 208px; column-gap: 18px; min-width: 1148px; }
	.elimination-heading { display: none; }
	.elimination-row { grid-template-columns: 1fr; gap: 6px; }
	.elimination-connector { width: 1px; height: 12px; margin-left: 28px; }
  .brand span:last-child { display: none; }
  .site-header nav { gap: 15px; }
  .match-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .card-heading { flex-direction: column; }
  .facts { flex-direction: column; gap: 8px; }
  .row-card { grid-template-columns: 1fr; }
  .game-icon { display: none; }
  .participant-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .actions form,
  .actions button { width: 100%; }
  .new-results-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .schedule-row { grid-template-columns: 1fr; }
  .bracket-viewport { padding-inline: 14px; }
  .lane-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading { flex-direction: column; }
  .collapsible-summary.section-heading { flex-direction: row; align-items: center; }
  .entity-hero { grid-template-columns: 1fr; justify-items: start; }
  .entity-portrait { width: 112px; height: 128px; }
  .entity-hero > .actions { grid-column: auto; }
  .entity-history-grid,
  .organization-history-grid,
  .profile-roster-grid { grid-template-columns: 1fr; }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .achievement-row { grid-template-columns: 72px 52px minmax(0, 1fr); }
  .achievement-prize { grid-column: 3; text-align: left; }
  .tier-multiselect > small { width: 100%; margin-left: 0; }
}
