@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Teko:wght@500;600;700&display=swap");

:root {
  --bg: #eef2f5;
  --shell: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --ink: #13202f;
  --muted: #607086;
  --line: #d8e1e8;
  --brand: #056a43;
  --brand-2: #0a8c5a;
  --navy: #10213f;
  --gold: #f0b429;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #c56a12;
  --shadow: 0 16px 42px rgba(16, 33, 63, .08);
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --shell: #101827;
  --panel: #121d2e;
  --panel-2: #172337;
  --ink: #eef5ff;
  --muted: #94a3b8;
  --line: #26354b;
  --brand: #21b982;
  --brand-2: #34d399;
  --navy: #dbeafe;
  --gold: #f7c948;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 236px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  background: var(--shell);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: var(--radius);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #153f74);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }

.main-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.main-nav a:hover { background: var(--panel-2); color: var(--ink); }
.main-nav a.active { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(5, 106, 67, .22); }

.sidebar-footer { display: grid; gap: 10px; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.status-dot.offline { background: var(--red); }

.app {
  min-height: 100vh;
  margin-left: 236px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 16px 26px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.content {
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 26px 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  min-height: 132px;
  margin-bottom: 16px;
  padding: 22px;
  color: #fff;
  border-radius: var(--radius);
  background:
    linear-gradient(125deg, rgba(16, 33, 63, .96), rgba(5, 106, 67, .92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero .eyebrow { color: #bff3d9; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(108px, 1fr)); gap: 10px; }
.metric { padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.20); }
.metric strong { display: block; font-size: 25px; line-height: 1; }
.metric span { display: block; margin-top: 6px; color: #dbeafe; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }

.final-summary[hidden] { display: none; }
.final-summary {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.4fr);
  gap: 22px 32px;
  margin-bottom: 16px;
  padding: 24px 26px 18px;
  color: #ffffff;
  background: #10213f;
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.final-summary-copy { align-self: center; min-width: 0; }
.final-summary-copy > span {
  display: block;
  margin-bottom: 7px;
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.final-summary-copy h2 { margin: 0; font-size: 29px; line-height: 1.08; letter-spacing: 0; }
.final-summary-copy p { max-width: 610px; margin: 10px 0 0; color: #dbeafe; font-size: 13px; line-height: 1.5; }
.final-summary-copy p strong { color: #ffffff; }
.final-summary-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.final-place {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 18px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}
.final-place span { color: #cbd5e1; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.final-place strong { overflow-wrap: anywhere; font-size: 17px; }
.final-place b { color: #bfdbfe; font-size: 13px; }
.final-place-1 { border-left-color: #facc15; }
.final-place-1 span { color: #fde68a; }
.final-place-2 { border-left-color: #cbd5e1; }
.final-place-3 { border-left-color: #d97706; }
.final-summary-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px;
  font-weight: 700;
}

.page { display: none; }
.page.active { display: block; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16, 33, 63, .05);
  overflow: hidden;
}

.panel-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 { margin: 0; font-size: 17px; letter-spacing: 0; }
.panel-head span { color: var(--muted); font-size: 12px; font-weight: 800; }

.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.compare-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}
.compare-controls .field { min-width: 130px; }

.field {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.field.wide { flex: 1 1 280px; }
.field span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent); }

.ghost-btn, .icon-btn, .primary-btn, .theme-toggle {
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.ghost-btn:hover, .icon-btn:hover, .theme-toggle:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--line) 60%, var(--brand)); }
.primary-btn { color: #fff; background: var(--brand); border-color: var(--brand); }
.primary-btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.icon-btn.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.danger { color: var(--red); }
.theme-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.progress-chip { padding: 9px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 900; }

.segmented {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.seg-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  white-space: nowrap;
}

.seg-btn.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(5, 106, 67, .20);
}

.result-view, .picks-view { display: none; }
.result-view.active, .picks-view.active { display: block; }

.ranking-layout, .groups-layout, .knockout-layout {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ranking-table-panel { max-width: 1240px; margin: 0 auto; width: 100%; }
.ranking-table-panel .panel-head {
  min-height: 96px;
  padding: 24px 28px;
  color: #fff;
  background: #10213f;
  border-bottom: 0;
}
.ranking-table-panel .panel-head h2 {
  position: relative;
  padding-left: 46px;
  font-size: 32px;
}
.ranking-table-panel .panel-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #17a34a 0 32%, transparent 32% 38%, #2563eb 38% 68%, transparent 68% 74%, #dc2626 74%),
    #fff;
  border: 3px solid rgba(255,255,255,.88);
}
.ranking-table-panel .panel-head span { color: #dbeafe; }

.groups-layout, .knockout-layout { grid-template-columns: minmax(0, 1fr) 370px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 18px; }
.span-2 { min-width: 0; }

.ranking-list { display: grid; gap: 9px; padding: 12px; }
.rank-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 8px 24px rgba(16, 33, 63, .04);
}
.rank-card:hover { transform: translateY(-1px); border-color: var(--brand-2); }
.rank-card.hot { border-color: color-mix(in srgb, var(--orange) 54%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 10%, transparent), var(--panel) 34%); }
.rank-card.cold { border-color: color-mix(in srgb, var(--blue) 48%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 9%, transparent), var(--panel) 34%); }
.rank-card.rocket { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--green) 11%, transparent), var(--panel) 34%); }
.rank-pos { font-size: 22px; font-weight: 900; color: var(--muted); }
.rank-card:first-child .rank-pos { color: var(--gold); }
.rank-main { min-width: 0; }
.rank-name { display: block; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.rank-right { display: grid; justify-items: end; gap: 4px; }
.rank-points { color: var(--brand); font-size: 26px; font-weight: 900; text-align: right; line-height: 1; }
.trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.trend.up { color: #065f46; background: #d1fae5; }
.trend.down { color: #991b1b; background: #fee2e2; }
.trend.flat { color: var(--muted); background: var(--panel-2); }
.form-emoji { display: inline-grid; place-items: center; margin-left: 4px; filter: drop-shadow(0 2px 4px rgba(16, 33, 63, .16)); }
.table-player { display: inline-flex; align-items: center; gap: 5px; }

.table-scroll { overflow: auto; }
.table-scroll.tall { max-height: 72vh; }
.data-table, .matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th, .data-table td, .matrix-table th, .matrix-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th, .matrix-table th { position: sticky; top: 0; z-index: 4; color: var(--muted); background: var(--panel-2); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.ranking-table { font-size: 24px; }
.ranking-table th {
  padding: 22px 28px;
  color: #748198;
  background: #f1f5fb;
  font-size: 20px;
}
.ranking-table td {
  padding: 20px 28px;
  border-bottom: 2px solid #e4ebf3;
  color: #10213f;
  font-weight: 900;
}
.ranking-table .num { font-size: 26px; }
.ranking-table .games { color: #748198; font-weight: 500; }
.table-rank { min-width: 56px; font-weight: 900; }
.sticky-col { position: sticky; left: 0; z-index: 5; background: var(--panel); }
th.sticky-col { background: var(--panel-2); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pts { color: var(--brand); font-weight: 900; }
.exact { color: var(--green); font-weight: 900; }
.right { color: var(--blue); font-weight: 900; }
.wrong { color: var(--muted); }
.cell-exact { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); font-weight: 900; }
.cell-right { color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); font-weight: 800; }
.cell-wrong { color: var(--muted); }
.cell-empty { color: color-mix(in srgb, var(--muted) 68%, transparent); }
.matrix-table td:hover,
.matrix-table th:hover { background: color-mix(in srgb, var(--gold) 15%, var(--panel-2)); }
.matrix-table tr:hover td { background: color-mix(in srgb, var(--blue) 7%, var(--panel)); }
.player-th { display: inline-block; max-width: 78px; white-space: normal; line-height: 1.05; }
.link-btn { padding: 0; border: 0; color: var(--navy); background: transparent; font-weight: 900; text-align: left; }
.link-btn:hover { color: var(--brand); }
.ranking-table .link-btn { font-size: inherit; }
[data-theme="dark"] .ranking-table-panel .panel-head { background: #0b1220; }
[data-theme="dark"] .ranking-table th { color: #cbd5e1; background: #172337; }
[data-theme="dark"] .ranking-table td { color: var(--ink); border-bottom-color: var(--line); }
[data-theme="dark"] .ranking-table tbody { background: var(--panel-2); }
[data-theme="dark"] .ranking-table .pts { background: color-mix(in srgb, var(--blue) 14%, transparent); }
[data-theme="dark"] .pick-exact { background: rgba(22, 163, 74, .18); }
[data-theme="dark"] .pick-right { background: rgba(37, 99, 235, .18); }
[data-theme="dark"] .pick-wrong { background: rgba(220, 38, 38, .18); }
[data-theme="dark"] .match-preview-export {
  color: var(--ink);
  background: linear-gradient(135deg, #121d2e, #172337);
  border-color: var(--line);
}
[data-theme="dark"] .match-preview-export .game-modal-score,
[data-theme="dark"] .match-preview-export .game-modal-score strong,
[data-theme="dark"] .match-preview-meta span {
  color: var(--ink);
  background: #0f172a;
  border-color: var(--line);
}
[data-theme="dark"] .match-preview-meta { color: var(--muted); }

.podium-panel .ranking-list { padding: 14px; }
.match-list, .today-list { display: grid; }
.day-header, .round-title {
  position: sticky;
  top: 82px;
  z-index: 3;
  width: 100%;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--panel-2);
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: left;
}
.day-header { cursor: pointer; }
.day-header:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--panel-2)); }
.results-archive {
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.results-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--green) 8%, var(--panel-2));
  cursor: pointer;
  list-style: none;
}
.results-archive summary::-webkit-details-marker { display: none; }
.results-archive summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--brand);
  font-size: 18px;
  font-weight: 1000;
}
.results-archive[open] summary::after { content: "-"; }
.results-archive summary strong { font-size: 15px; }
.results-archive summary span { color: var(--muted); font-size: 12px; font-weight: 900; }
.archived-match-list { display: grid; border-top: 1px solid var(--line); }

.match-card {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.match-card { cursor: pointer; }
.match-card:last-child { border-bottom: 0; }
.score-box { display: grid; justify-items: center; gap: 4px; min-width: 124px; }
.match-meta { color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.score-view { color: var(--navy); font-size: 20px; font-weight: 900; }
.score-inputs { display: flex; align-items: center; gap: 5px; }
.score-inputs input {
  width: 42px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  text-align: center;
  font-weight: 900;
}
.clear-score { border: 0; color: var(--red); background: transparent; font-size: 18px; font-weight: 900; }
.small-btn { min-height: 32px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--ink); font-size: 12px; font-weight: 900; }

.game-export-card, .group-pick-detail { display: grid; gap: 12px; }
.match-preview-export {
  gap: 14px;
  padding: 18px;
  color: #10213f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(241, 245, 251, .98)),
    repeating-linear-gradient(45deg, rgba(5, 106, 67, .06) 0 1px, transparent 1px 18px);
  border: 1px solid #dfe7ef;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16, 33, 63, .10);
}
.match-preview-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}
.game-modal-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.game-modal-score strong { color: var(--brand); font-size: 22px; white-space: nowrap; }
.match-preview-export .game-modal-score {
  min-height: 116px;
  padding: 18px;
  background: #ffffff;
  border-color: #dfe7ef;
}
.match-preview-export .game-modal-score strong {
  min-width: 96px;
  padding: 9px 12px;
  color: #10213f;
  background: #f1f5fb;
  border: 1px solid #dfe7ef;
  border-radius: var(--radius);
  font-size: 28px;
  text-align: center;
}
.match-preview-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #607086;
  font-size: 11px;
  font-weight: 900;
}
.match-preview-meta span {
  padding: 5px 8px;
  background: #f1f5fb;
  border: 1px solid #dfe7ef;
  border-radius: 999px;
}
.modal-actions {
  display: grid;
  gap: 8px;
}
.modal-actions .primary-btn,
.modal-actions .ghost-btn {
  width: 100%;
  margin-top: 0;
}

.export-capture-shell {
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: visible !important;
}
.exporting-png *,
.exporting-png *::before,
.exporting-png *::after {
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
.exporting-png .sticky-col,
.exporting-png .data-table th,
.exporting-png .matrix-table th,
.exporting-png .ranking-table th {
  position: static !important;
  top: auto !important;
  left: auto !important;
}
.export-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #ffffff;
  background: #10213f;
  border-radius: var(--radius);
}
.export-board-title strong { font-size: 20px; }
.export-board-title span {
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.exporting-png .table-scroll,
.exporting-png .table-scroll.tall {
  overflow: visible !important;
  max-height: none !important;
}
.exporting-png .ranking-table-panel,
.exporting-png .group-pick-detail,
.exporting-png .game-export-card,
.exporting-png .match-list,
.exporting-png .group-grid,
.exporting-png .bracket-shell {
  overflow: visible !important;
  background: #ffffff !important;
  border: 1px solid #d8e1e8 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 38px rgba(16, 33, 63, .14) !important;
}
.exporting-png .ranking-table,
.exporting-png .data-table,
.exporting-png .matrix-table {
  display: table !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}
.exporting-png .ranking-table thead,
.exporting-png .data-table thead,
.exporting-png .matrix-table thead { display: table-header-group !important; }
.exporting-png .ranking-table tbody,
.exporting-png .data-table tbody,
.exporting-png .matrix-table tbody {
  display: table-row-group !important;
  padding: 0 !important;
  background: transparent !important;
}
.exporting-png .ranking-table tr,
.exporting-png .data-table tr,
.exporting-png .matrix-table tr {
  display: table-row !important;
  padding: 0 !important;
  border: 0 !important;
}
.exporting-png .ranking-table th,
.exporting-png .ranking-table td,
.exporting-png .data-table th,
.exporting-png .data-table td,
.exporting-png .matrix-table th,
.exporting-png .matrix-table td {
  display: table-cell !important;
  width: auto !important;
}
.exporting-png .ranking-table td::before,
.exporting-png .data-table td::before,
.exporting-png .matrix-table td::before {
  content: none !important;
}
.exporting-png .group-pick-detail,
.exporting-png .game-export-card,
.exporting-png .match-list,
.exporting-png .group-grid,
.exporting-png .bracket-shell {
  padding: 16px !important;
}
.exporting-png .ranking-table-panel .panel-head {
  background: #10213f !important;
  color: #ffffff !important;
}
.exporting-png .ranking-table th,
.exporting-png .data-table th {
  background: #f1f5fb !important;
  color: #748198 !important;
}
.exporting-png .ranking-table td,
.exporting-png .data-table td {
  background: #ffffff !important;
  color: #10213f !important;
}
.exporting-png .match-preview-export {
  background: linear-gradient(135deg, #ffffff, #f1f5fb) !important;
  border: 1px solid #d8e1e8 !important;
  box-shadow: 0 16px 38px rgba(16, 33, 63, .16) !important;
}
.exporting-png .match-preview-export .game-modal-score,
.exporting-png .match-preview-meta span,
.exporting-png .pick-head {
  background: #f1f5fb !important;
  border-color: #d8e1e8 !important;
}
.exporting-png .pick-line {
  background: #ffffff !important;
  border-color: #d8e1e8 !important;
}
.exporting-png .pick-exact { background: #dcfce7 !important; }
.exporting-png .pick-right { background: #e0f2fe !important; }
.exporting-png .pick-wrong { background: #fee2e2 !important; }
.exporting-png .pick-wait { background: #ffffff !important; opacity: 1 !important; }
.exporting-png .flag { background: #ffffff !important; border-color: #d8e1e8 !important; }
.pick-table { display: grid; gap: 6px; }
.pick-head, .pick-line {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 82px 76px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pick-head { color: var(--muted); background: var(--panel-2); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.pick-line { color: var(--ink); background: var(--panel); text-align: left; }
.pick-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-line span:last-child { text-align: right; font-weight: 900; }
.pick-line span:last-child b { display: block; color: var(--ink); font-size: 15px; line-height: 1; }
.pick-line span:last-child small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.game-pick-table { padding-top: 2px; }
.game-pick-table .pick-line {
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.game-pick-table .pick-line:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}
.pick-exact { background: color-mix(in srgb, var(--green) 13%, var(--panel)); }
.pick-right { background: color-mix(in srgb, var(--blue) 11%, var(--panel)); }
.pick-wrong { background: color-mix(in srgb, var(--red) 11%, var(--panel)); }
.pick-wait { opacity: .82; }
.group-game-block { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-game-block:last-child { border-bottom: 0; }

.team-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 900;
}
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}
.team-stack { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.team-line.right { justify-content: flex-end; text-align: right; }
.team-line.right .flag { order: 2; }
.team-line.right .team-name { order: 1; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid color-mix(in srgb, var(--brand) 60%, #fff);
  box-shadow: 0 3px 10px rgba(16, 33, 63, .12), inset 0 -1px 0 rgba(0, 0, 0, .06);
  overflow: hidden;
  font-size: 19px;
}
.flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.flag.mini { width: 24px; height: 24px; flex-basis: 24px; border-width: 1px; }

.quick-actions, .saved-list, .qualified-board, .game-picks { display: grid; gap: 10px; padding: 12px; }
.action-card, .saved-card, .qualified-card, .pick-row, .code-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.action-card:hover { border-color: var(--brand-2); }
.saved-card.pending { opacity: .72; border-style: dashed; }
.code-card { gap: 10px; }
.code-card .field { min-width: 0; }
.code-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  background: #f3f5f7;
}
.group-card { border: 1px solid #d7dee6; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: none; }
.ge-group-card { color: #1f2937; }
.group-row-card {
  width: 100%;
}
.group-row-content {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(340px, 45fr);
  min-height: 238px;
}
.group-standings-side {
  min-width: 0;
  border-right: 1px solid #e6ebf0;
}
.group-results-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fbfcfd;
}
.group-round-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid #e6ebf0;
}
.group-round-tabs button {
  min-height: 30px;
  border: 1px solid #d7dee6;
  border-radius: 4px;
  color: #667085;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.group-round-tabs button.active {
  color: #fff;
  border-color: #00a86b;
  background: #00a86b;
}
.group-info-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--panel)), var(--panel));
}
.group-info-panel > div:first-child {
  display: none;
}
.group-info-panel {
  grid-template-columns: 1fr;
}
.group-criteria {
  display: none;
}
.group-info-panel h3 { margin: 4px 0 6px; font-size: 20px; }
.group-info-panel p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.45; }
.group-info-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.group-info-stats div { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.group-info-stats strong { display: block; color: var(--brand); font-size: 18px; }
.group-info-stats span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.third-place-strip { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding-top: 2px; }
.third-place-strip > span { display: inline-flex; align-items: center; gap: 6px; min-width: max-content; padding: 6px 9px; border: 1px solid #bfdbfe; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: 12px; font-weight: 900; }
.group-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #fff; background: linear-gradient(135deg, var(--brand), #153f74); font-weight: 900; }
.ge-group-title {
  padding: 11px 14px;
  color: #333;
  background: #f5c400;
  border-bottom: 3px solid #00a86b;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ge-group-title span:last-child {
  color: #667085;
  font-size: 12px;
}
.ge-group-games {
  display: grid;
  padding: 6px 12px 10px;
  border-bottom: 1px solid #e6ebf0;
}
.ge-group-games.compact {
  align-content: start;
  padding: 8px 10px 10px;
  border-bottom: 0;
}
.ge-group-game {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f5;
}
.ge-group-game:last-child { border-bottom: 0; }
.ge-group-game > span {
  color: #8a95a3;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.ge-group-game > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.group-results-side .team-line {
  gap: 5px;
  font-size: 11px;
}
.group-results-side .flag {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
.ge-group-game strong {
  min-width: 54px;
  padding: 5px 7px;
  border-radius: 4px;
  color: #101828;
  background: #f3f5f7;
  text-align: center;
  font-size: 13px;
}
.group-row { display: grid; grid-template-columns: 28px minmax(150px, 1fr) repeat(4, 40px) 50px; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; }
.group-row.full { grid-template-columns: 28px minmax(130px, 1fr) 38px 30px 30px 30px 30px 38px 38px 38px 48px; }
.group-row.ge-class {
  grid-template-columns: 26px minmax(128px, 1fr) 34px 28px 28px 28px 28px 34px 34px 34px;
  gap: 5px;
  min-height: 40px;
  padding: 6px 10px;
  border-top: 1px solid #eef2f5;
  color: #475467;
  background: #fff;
}
.group-row.header { color: var(--muted); background: var(--panel-2); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.group-row.ge-class.header {
  min-height: 30px;
  color: #98a2b3;
  background: #fafbfc;
  font-size: 9px;
}
.group-row.ge-class strong { color: #101828; }
.group-row strong { color: var(--brand); }
.group-row.qualified-direct { background: #ecfdf3; }
.group-row.qualified-third { background: #eff6ff; }
.ge-position {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #667085;
  background: #f2f4f7;
  font-weight: 1000;
  font-size: 11px;
}
.ge-position.direct { color: #fff; background: #00a86b; }
.ge-position.third { color: #fff; background: #1d4ed8; }
.badge { display: inline-flex; justify-content: center; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.badge.direct { color: #065f46; background: #d1fae5; }
.badge.third { color: #1d4ed8; background: #dbeafe; }
.badge.wait { color: var(--muted); background: var(--panel-2); }
[data-theme="dark"] .badge.direct { color: #bbf7d0; background: rgba(22, 163, 74, .22); }
[data-theme="dark"] .badge.third { color: #bfdbfe; background: rgba(37, 99, 235, .22); }
.qualified-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.qualified-card {
  grid-template-columns: minmax(0, 1fr);
  border-left: 4px solid transparent;
}
.qualified-card.direct { border-left-color: var(--green); }
.qualified-card.third { border-left-color: var(--blue); }
.print-board .group-card { box-shadow: none; }

.sim-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.summary-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.summary-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.summary-card strong { display: block; margin-top: 4px; font-size: 18px; }

.bracket-shell { overflow: auto; padding: 18px; }
.ge-board, #qualifier-bracket {
  background: #fff;
}
.qual-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-width: 920px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.qual-showcase-head h3 { margin: 0; font-size: 24px; line-height: 1.1; }
.qual-showcase-head p { margin: 6px 0 0; color: var(--muted); font-weight: 800; }
.qual-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  min-width: 520px;
}
.qual-podium > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.qual-podium span:not(.team-line):not(.flag):not(.team-name) { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.qual-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.compare-table td { vertical-align: middle; }
.compare-table tr:hover td { background: color-mix(in srgb, var(--brand) 6%, var(--panel)); }

.qual-pyramid {
  display: grid;
  grid-template-columns: minmax(900px, 1fr) 260px minmax(900px, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 2100px;
  padding: 10px 0 6px;
}
.ko-pyramid {
  min-width: 2100px;
  padding: 8px;
  background: #fff;
}
.ko-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}
.ko-showcase-head h3 { margin: 0; font-size: 24px; line-height: 1.1; }
.ko-showcase-head p { margin: 6px 0 0; color: var(--muted); font-weight: 800; }
.ko-podium {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 10px;
  min-width: 380px;
}
.ko-podium > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f8fafc;
}
.ko-podium span:not(.team-line):not(.flag):not(.team-name) { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ko-pyramid-grid {
  display: grid;
  grid-template-columns: minmax(900px, 1fr) 290px minmax(900px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 10px 0 6px;
}
.ko-pyramid .bracket-match {
  min-height: 118px;
}
.ko-pyramid .q-cup {
  align-self: center;
  justify-items: stretch;
}
.ko-pyramid .q-cup > .bracket-match,
.ko-pyramid .q-third-card > .bracket-match {
  box-shadow: none;
}

.q-half {
  display: grid;
  grid-template-columns: 1.35fr 1fr .82fr .66fr;
  gap: 12px;
  align-items: stretch;
}

.q-half.right { grid-template-columns: .66fr .82fr 1fr 1.35fr; }
.q-col { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.q-title {
  min-height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 0;
  border-bottom: 3px solid #00a86b;
  border-radius: 0;
  color: #4b5563;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.q-stack {
  position: relative;
  display: grid;
  align-content: space-around;
  gap: 10px;
  min-height: 760px;
}

.q-stack.count-4 { padding-block: 34px; }
.q-stack.count-2 { padding-block: 116px; }
.q-stack.count-1 { padding-block: 260px; }

.q-match {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand));
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 7px 18px rgba(16, 33, 63, .06);
}
.q-match.qual-match-hit {
  border-color: #047857;
  background: linear-gradient(180deg, #bbf7d0, #86efac);
  box-shadow: 0 12px 28px rgba(5, 150, 105, .26), inset 0 0 0 2px rgba(4, 120, 87, .32);
}
.q-team.qual-team-hit {
  background: #dbeafe;
  outline: 2px solid #2563eb;
}
[data-theme="dark"] .q-match.qual-match-hit { background: rgba(5, 150, 105, .32); border-color: #34d399; }
[data-theme="dark"] .q-team.qual-team-hit { background: rgba(37, 99, 235, .28); outline-color: #60a5fa; }
[data-theme="dark"] .q-code { color: #e2e8f0; }

.q-half.left .q-match::after,
.q-half.right .q-match::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  border-top: 2px solid #00a86b;
}

.q-half.left .q-match::after { right: -14px; }
.q-half.right .q-match::before { left: -14px; }
.q-half.left .q-col:last-child .q-match::after,
.q-half.right .q-col:first-child .q-match::before { display: none; }

.q-label {
  position: absolute;
  top: -8px;
  left: 8px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 10px;
  font-weight: 900;
}

.q-team {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}
.q-code { display: none; }

.qual-nav {
  position: sticky;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: min(100%, 920px);
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 33, 63, .08);
}

.q-center {
  display: grid;
  align-content: center;
  gap: 12px;
}

.q-cup,
.q-final-card,
.q-third-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.q-cup {
  justify-items: center;
  border-color: #f5c400;
  background: #fffdf0;
}

.q-cup .team-line { justify-content: center; font-size: 18px; }
.q-cup .flag { width: 54px; height: 54px; flex-basis: 54px; }
.q-cup-label,
.q-final-card strong,
.q-third-card strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.qual-preview-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 8px 22px rgba(16, 33, 63, .05);
}
.qual-preview-card:hover { transform: translateY(-1px); border-color: var(--brand-2); }
.qual-preview-name { font-weight: 900; }
.bracket-feature {
  position: sticky;
  left: 0;
  z-index: 4;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 12px;
  min-width: 760px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
}
.bracket-feature > div {
  display: grid;
  gap: 4px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel-2);
}
.feature-cup {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 320px;
  border: 1px solid color-mix(in srgb, var(--gold) 46%, var(--line));
}
.bracket-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(236px, 1fr));
  gap: 16px;
  min-width: 1420px;
  align-items: start;
}
.bracket-grid.ge-bracket {
  gap: 22px;
  padding: 10px 0;
}
.bracket-col { display: grid; gap: 12px; align-content: start; }
.ge-bracket .bracket-col:nth-child(1) { padding-top: 0; gap: 10px; }
.ge-bracket .bracket-col:nth-child(2) { padding-top: 26px; gap: 24px; }
.ge-bracket .bracket-col:nth-child(3) { padding-top: 70px; gap: 56px; }
.ge-bracket .bracket-col:nth-child(4) { padding-top: 136px; gap: 116px; }
.ge-bracket .bracket-col:nth-child(5) { padding-top: 224px; gap: 160px; }
.ge-bracket .bracket-col:nth-child(6) { padding-top: 224px; gap: 20px; }
.phase-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.bracket-match {
  position: relative;
  padding: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.bracket-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.bracket-slot {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
}
.bracket-slot .team-line {
  min-width: 0;
}
.bracket-slot .score-mini.side {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--panel-2);
  font-size: 16px;
  font-weight: 1000;
}
.ko-pyramid .bracket-slot {
  min-height: 38px;
}
.knockout-score-inputs {
  display: grid;
  grid-template-columns: 42px auto 42px auto;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.penalty-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 12%, var(--panel-2));
}
.penalty-select.inline {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}
.penalty-select span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 1000;
  font-size: 11px;
}
.penalty-select select {
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 800;
}
.player-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.player-section + .player-section { margin-top: 10px; }
.player-section summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  background: var(--panel-2);
}
.player-section summary::-webkit-details-marker { display: none; }
.player-section summary strong { color: var(--brand); }
.player-section summary span { color: var(--muted); font-size: 12px; font-weight: 900; text-align: right; }
.player-section-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.player-row .exact { color: #047857; }
.player-row .right { color: #0f5da8; }
.player-row .wrong { color: #b91c1c; }
.knockout-score-inputs input {
  width: 42px;
  min-height: 32px;
  padding: 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-2);
  font-weight: 900;
}
.whatsapp-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.qual-text-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}
.check-field {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.check-field input {
  width: 16px;
  height: 16px;
}
.whatsapp-box textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  font: 700 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.admin-auto-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
}
.admin-auto-card strong { color: var(--brand); font-size: 16px; }
.admin-auto-card p { margin: 0; color: var(--muted); line-height: 1.45; font-weight: 700; }
.mode-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.mode-card.real {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green) 7%, var(--panel));
}
.mode-card.test {
  border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
  background: color-mix(in srgb, var(--gold) 12%, var(--panel));
}
.mode-card strong { color: var(--brand); font-size: 18px; }
.mode-card p { margin: 0; color: var(--muted); font-weight: 800; line-height: 1.45; }
.mode-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 16px;
  border-top: 2px solid color-mix(in srgb, var(--brand) 74%, var(--line));
}
.ge-bracket .bracket-match::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  height: calc(100% + 12px);
  border-right: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  opacity: .45;
}
.bracket-col:last-child .bracket-match::after { display: none; }
.bracket-col:last-child .bracket-match::before { display: none; }
.bracket-slot {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 6px;
  border-radius: 4px;
  background: #fff;
}
.bracket-slot + .bracket-slot { border-top: 1px solid #eef2f5; }
.bracket-slot.winner { background: #ecfdf3; }
.seed { color: var(--muted); font-size: 10px; font-weight: 900; }
.score-mini { color: var(--brand); font-weight: 900; }
.score-mini.side {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #f3f5f7;
  font-size: 16px;
  line-height: 1;
}
.score-mini-input {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d7dee6;
  border-radius: 4px;
  color: #101828;
  background: #f3f5f7;
  text-align: center;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
}
.ko-clear-inline {
  width: 100%;
  min-height: 26px;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 11px;
}

.fill-panel { max-width: 1200px; margin: 0 auto; }
.fill-login { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; }
.fill-form, .admin-editor { display: grid; gap: 14px; padding: 16px; }
.fill-section { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fill-section h3 { margin: 0; padding: 11px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.fill-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 16px 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.fill-match:last-child { border-bottom: 0; }
.fill-match .team-line { min-width: 0; }
.fill-match .team-name { min-width: 0; max-width: 100%; }
.fill-match input {
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--ink);
  background: var(--panel);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1;
}
.fill-vs {
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  font-weight: 1000;
}
.locked-note { padding: 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--ink); font-weight: 800; }
.save-error-note {
  background: color-mix(in srgb, var(--red) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  color: var(--red);
}
.lock-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--red) 7%, var(--panel));
  cursor: pointer;
}
.lock-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}
.lock-toggle strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.lock-toggle small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.fill-share-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, #22c55e 34%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, #22c55e 8%, var(--panel));
}
.fill-share-box strong {
  display: block;
  color: var(--brand);
  font-size: 16px;
}
.fill-share-box span { color: var(--muted); font-size: 13px; }
.fill-share-box textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--panel);
  font: 800 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pick-reset-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 46%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 10%, var(--panel));
}
.pick-reset-box strong { color: var(--brand); font-size: 14px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.locked-admin { max-width: 580px; padding: 28px; }
.locked-admin h2 { margin-top: 0; }
.locked-admin p { color: var(--muted); }
.override-list { display: grid; gap: 10px; }
.override-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.override-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 8px;
}
.override-grid .field { min-width: 0; }
.override-grid input { text-align: center; font-weight: 900; }

.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rules-list { display: grid; gap: 12px; padding: 16px 18px; }
.rules-list p { margin: 0; color: var(--muted); }
.rules-list strong { color: var(--ink); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 15, 29, .62);
  backdrop-filter: blur(5px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .25);
}
.modal-card.large { width: min(1050px, 100%); max-height: 88vh; overflow: auto; }
.modal-card h2 { margin: 0 0 6px; }
.modal-card p { margin: 0 0 14px; color: var(--muted); }
.modal-card input { width: 100%; min-height: 42px; margin-bottom: 10px; padding: 10px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.modal-card .primary-btn, .modal-card .ghost-btn { width: 100%; margin-top: 8px; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal-head .ghost-btn { width: auto; margin: 0; }
.error { min-height: 18px; color: var(--red) !important; font-size: 12px; }
.player-detail { display: grid; gap: 8px; }
.player-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; }
.player-row h3 { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translate(-50%, 72px);
  opacity: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: #10213f;
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s ease, opacity .2s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.test-mode-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  line-height: 1.2;
}

.test-mode-badge strong {
  color: #fde68a;
  font-size: 13px;
}

.test-mode-badge span {
  color: rgba(255, 255, 255, 0.72);
}

.empty-state { padding: 34px 18px; color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
  .sidebar { position: sticky; top: 0; width: 100%; grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .main-nav { display: flex; gap: 4px; overflow-x: auto; }
  .main-nav a { white-space: nowrap; min-height: 36px; padding: 0 10px; font-size: 13px; }
  .sidebar-footer { display: flex; align-items: center; }
  .theme-toggle { width: auto; }
  .connection { display: none; }
  .app { margin-left: 0; }
  .topbar { top: 65px; }
  .ranking-layout, .groups-layout, .knockout-layout, .dashboard-grid, .admin-grid, .rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .group-info-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .group-info-stats {
    grid-template-columns: 1fr;
  }
  .third-place-strip {
    margin-inline: -2px;
  }
  .knockout-score-inputs {
    grid-template-columns: 38px auto 38px auto;
  }
  .whatsapp-box textarea {
    min-height: 220px;
    font-size: 12px;
  }
  .qual-text-controls {
    grid-template-columns: 1fr;
  }
  .group-row-content { grid-template-columns: 1fr; }
  .group-standings-side { border-right: 0; border-bottom: 1px solid #e6ebf0; overflow-x: auto; }
  .group-row.ge-class {
    grid-template-columns: 22px minmax(86px, 1fr) 32px 24px 24px 24px 24px 32px 32px 32px;
    min-width: 0;
    font-size: 10.5px;
    gap: 3px;
    padding-inline: 6px;
  }
  .group-row.ge-class .team-line { min-width: 0; gap: 5px; }
  .group-row.ge-class .team-line .team-name {
    display: inline;
    max-width: 100%;
    font-size: 10.5px;
  }
  .group-row.ge-class .flag { width: 24px; height: 24px; flex-basis: 24px; }
  .group-round-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ge-group-game > div { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); }
  .player-section summary { align-items: flex-start; flex-direction: column; }
  .player-section summary span { text-align: left; }
}

@media (max-width: 760px) {
  .brand small, #theme-label { display: none; }
  .content { padding: 14px 12px 36px; }
  .topbar { align-items: start; padding: 12px; gap: 10px; }
  .topbar h1 { font-size: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 14px; margin-bottom: 12px; }
  .hero h2 { font-size: 20px; }
  .hero-metrics { display: none; }
  .segmented { margin-bottom: 12px; }
  .seg-btn { flex: 1 0 auto; }
  .ranking-table-panel .panel-head { min-height: 70px; padding: 16px; }
  .ranking-table-panel .panel-head h2 { font-size: 24px; padding-left: 38px; }
  .ranking-table-panel .panel-head h2::before { width: 25px; height: 25px; }
  .ranking-table { font-size: 16px; }
  .ranking-table th { padding: 12px 14px; font-size: 12px; }
  .ranking-table td { padding: 12px 14px; }
  .ranking-table .num { font-size: 18px; }
  .table-rank { min-width: 42px; }
  .ranking-table,
  .ranking-table tbody,
  .ranking-table tr,
  .ranking-table td {
    display: block;
    width: 100%;
  }
  .ranking-table thead { display: none; }
  .ranking-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #f1f5fb;
  }
  .ranking-table tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }
  .ranking-table td {
    padding: 0;
    border: 0;
    text-align: center !important;
  }
  .ranking-table td:first-child {
    grid-column: 1 / -1;
    text-align: left !important;
  }
  .ranking-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .ranking-table .table-player {
    width: 100%;
    justify-content: flex-start;
    font-size: 20px;
  }
  .ranking-table .pts {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-radius: 10px;
    background: #eef6ff;
  }
  .ranking-list { padding: 10px; }
  .rank-card { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px; gap: 9px; }
  .rank-pos { font-size: 18px; }
  .rank-points { font-size: 21px; }
  .trend { min-width: 30px; min-height: 20px; padding: 2px 6px; }
  .field, .field.wide { min-width: 100%; flex-basis: 100%; }
  .match-card {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    padding: 10px 8px;
    text-align: center;
  }
  .match-card > .small-btn { display: none; }
  .match-card .team-line { gap: 5px; font-size: 12px; }
  .match-card .flag { width: 25px; height: 25px; flex-basis: 25px; }
  .match-card .team-line.home { justify-content: flex-start; text-align: left; }
  .match-card .team-line.away { justify-content: flex-end; text-align: right; }
  .score-box { min-width: 70px; }
  .score-box .match-meta { grid-row: 2; grid-column: 1 / -1; font-size: 10px; }
  .score-view { font-size: 16px; }
  .score-inputs { gap: 2px; }
  .score-inputs input { width: 30px; height: 32px; padding: 0; }
  .game-modal-score .team-line.right { justify-content: center; text-align: center; }
  .game-modal-score { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 8px; }
  .game-modal-score .team-line { font-size: 12px; gap: 5px; }
  .game-modal-score .flag { width: 25px; height: 25px; flex-basis: 25px; }
  .match-preview-export { padding: 12px; gap: 10px; }
  .match-preview-export .game-modal-score { min-height: 92px; padding: 10px 8px; }
  .match-preview-export .game-modal-score strong { min-width: 72px; padding: 7px 8px; font-size: 20px; }
  .match-preview-meta { gap: 5px; font-size: 10px; }
  .match-preview-meta span { padding: 4px 6px; }
  .pick-head, .pick-line { grid-template-columns: minmax(0, 1fr) 60px 62px; padding: 7px; font-size: 12px; }
  .fill-login { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .fill-form, .admin-editor { padding: 10px; gap: 10px; }
  .fill-section h3 { padding: 9px 10px; font-size: 13px; }
  .fill-match {
    grid-template-columns: minmax(0, 1fr) 32px 10px 32px minmax(0, 1fr);
    gap: 4px;
    padding: 8px 7px;
  }
  .fill-match .team-line { gap: 5px; font-size: 11px; }
  .fill-match .team-line.right { justify-content: flex-end; }
  .fill-match .flag { width: 25px; height: 25px; flex-basis: 25px; }
  .fill-match input {
    width: 32px;
    height: 34px;
    border-radius: 7px;
    font-size: 17px;
    padding: 0;
  }
  .fill-vs { font-size: 12px; }
  .group-grid { grid-template-columns: 1fr; padding: 10px; }
  .group-row { grid-template-columns: 24px minmax(130px, 1fr) 34px 30px 38px 46px; gap: 5px; padding: 8px; }
  .group-row > :nth-child(6) { display: none; }
  .group-row .flag { width: 28px; height: 28px; flex-basis: 28px; }
  .qualified-board { grid-template-columns: 1fr; }
  .team-stack { min-width: 180px; }
  .team-chip { font-size: 11px; }
  .qual-showcase-head { display: grid; min-width: 0; }
  .qual-podium { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qual-pyramid {
    grid-template-columns: minmax(380px, 1fr) 160px minmax(380px, 1fr);
    min-width: 930px;
    gap: 10px;
  }
  .q-half { gap: 7px; }
  .q-title { min-height: 28px; font-size: 10px; }
  .q-stack { min-height: 590px; gap: 6px; }
  .q-stack.count-4 { padding-block: 24px; }
  .q-stack.count-2 { padding-block: 82px; }
  .q-stack.count-1 { padding-block: 205px; }
  .q-match { padding: 5px 4px; border-radius: 8px; }
  .q-match.qual-match-hit { box-shadow: 0 9px 22px rgba(5, 150, 105, .22), inset 0 0 0 2px rgba(4, 120, 87, .38); }
  .q-team {
    min-height: 42px;
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 3px 2px;
  }
  .q-team .team-line {
    display: grid;
    justify-items: center;
    gap: 0;
    font-size: 10px;
  }
  .qual-pyramid .q-team .team-name { display: none; }
  .q-code {
    display: block;
    color: #10213f;
    font-size: 9px;
    font-weight: 1000;
    line-height: 1;
  }
  .q-team .flag { width: 29px; height: 29px; flex-basis: 29px; }
  .q-center { gap: 8px; }
  .q-cup, .q-final-card, .q-third-card { padding: 10px; }
  .q-cup .flag { width: 42px; height: 42px; flex-basis: 42px; }
  .qual-nav {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    left: 0;
  }
  .qual-nav [data-qual-back] { grid-column: 1 / -1; }
  .bracket-shell { padding: 12px; }
  .bracket-feature { min-width: 700px; }
  .bracket-grid { min-width: 1280px; grid-template-columns: repeat(6, minmax(208px, 1fr)); }
  .fill-login, .fill-match { grid-template-columns: 1fr; }
  .fill-match input { width: 100%; }
  .code-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .override-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .small-btn { width: 100%; }
  .modal-head { display: block; }
  .modal-head .ghost-btn { margin-top: 10px; }
}

@media (max-width: 520px) {
  .sidebar { grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
  .brand { padding: 2px; }
  .brand span:last-child { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .main-nav { grid-column: 2; }
  .sidebar-footer { grid-column: 1 / -1; display: none; }
  .main-nav a { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .topbar { top: 59px; flex-direction: column; align-items: stretch; }
  .top-actions { justify-content: stretch; }
  .top-actions > * { flex: 1 1 auto; }
  .panel-head { align-items: start; flex-direction: column; }
  .rank-card { grid-template-columns: 30px minmax(0, 1fr); }
  .rank-right { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; align-items: center; }
  .ranking-table { min-width: 0; }
  .table-player { gap: 7px; }
  .group-row { font-size: 11px; }
  .flag { width: 30px; height: 30px; flex-basis: 30px; }
}

/* Ranking redesenhado a partir da referencia enviada */
.ranking-layout {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 20px;
}

.podium-panel {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.podium-panel .panel-head {
  min-height: 0;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
}

.podium-panel .panel-head h2 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.podium-panel .panel-head h2::before { content: "\1F3C6  "; }
.podium-panel .panel-head span { color: var(--muted); }
.podium-panel .ranking-list { padding: 0; }

.rank-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  margin-bottom: 8px;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16, 33, 63, .06);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
  box-shadow: 0 12px 30px rgba(16, 33, 63, .10);
}

.rank-card.r1 { background: linear-gradient(120deg, #fffbe6, #fff6b8); border-color: #f0b429; }
.rank-card.r2 { background: linear-gradient(120deg, #f8fafc, #e9edf3); border-color: #b9c2cf; }
.rank-card.r3 { background: linear-gradient(120deg, #fff7ed, #fae7d4); border-color: #c98c52; }
.rank-card.hot { box-shadow: inset 4px 0 0 #f97316, 0 8px 22px rgba(16, 33, 63, .06); }
.rank-card.cold { box-shadow: inset 4px 0 0 #60a5fa, 0 8px 22px rgba(16, 33, 63, .06); }
.rank-card.rocket { box-shadow: inset 4px 0 0 #16a34a, 0 8px 22px rgba(16, 33, 63, .06); }

.rank-pos {
  min-width: 38px;
  color: var(--muted);
  font-family: Teko, Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.r1 .rank-pos { color: #b8860b; font-size: 34px; }
.r2 .rank-pos { color: #64748b; font-size: 30px; }
.r3 .rank-pos { color: #b45309; font-size: 29px; }

.rank-info { flex: 1 1 auto; min-width: 0; }
.rank-name {
  display: block;
  overflow: hidden;
  color: #10213f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-sub {
  display: block;
  margin-top: 2px;
  color: #68778d;
  font-size: 10px;
  font-weight: 800;
}

.rank-badge {
  flex: 0 1 auto;
  max-width: 135px;
  overflow: hidden;
  padding: 3px 7px;
  color: #126538;
  background: #dcfce7;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pts {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: right;
}
.rank-pts strong {
  display: block;
  color: #10213f;
  font-family: Teko, Inter, sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: .9;
}
.rank-pts span {
  display: block;
  color: #748198;
  font-size: 10px;
  font-weight: 800;
}
.rank-view-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity .15s ease;
}
.rank-card:hover .rank-view-icon { opacity: 1; }

.ranking-table-panel {
  max-width: none;
  border-radius: var(--radius);
}
.ranking-table-panel .panel-head {
  min-height: 86px;
  padding: 22px 26px;
  background: #10213f;
}
.ranking-table-panel .panel-head h2 {
  padding-left: 46px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
}
.ranking-table-panel .panel-head h2::before {
  top: 3px;
  width: 30px;
  height: 30px;
}

.ranking-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  table-layout: fixed;
}
.ranking-table th {
  padding: 9px 8px;
  color: #748198;
  background: #f1f5fb;
  border-bottom: 2px solid #dfe7ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}
.ranking-table th:first-child { text-align: left; }
.ranking-table td {
  padding: 9px 8px;
  color: #10213f;
  background: #fff;
  border-bottom: 2px solid #e4ebf3;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.ranking-table td:first-child { text-align: left; }
.ranking-table th:not(:first-child),
.ranking-table td:not(:first-child) {
  width: 12%;
  min-width: 0;
  max-width: none;
}
.ranking-table th:first-child,
.ranking-table td:first-child {
  width: 34%;
  min-width: 0;
  max-width: none;
}
.ranking-table .num { font-size: 16px; text-align: center !important; }
.ranking-table .pts {
  color: #10213f;
  font-size: 18px;
}
.ranking-table .games {
  color: #748198;
  font-weight: 500;
}
.ranking-table.qualifier-wide-table {
  min-width: 900px;
  table-layout: fixed;
}
.ranking-table.all-wide-table { min-width: 920px; }
.ranking-table.qualifier-wide-table th:not(:first-child),
.ranking-table.qualifier-wide-table td:not(:first-child) {
  min-width: 0;
  max-width: none;
}
.ranking-table.qualifier-wide-table th,
.ranking-table.qualifier-wide-table td {
  padding: 7px 3px;
  font-size: 10px;
  overflow: hidden;
  text-align: center;
}
.ranking-table.qualifier-wide-table th:first-child,
.ranking-table.qualifier-wide-table td:first-child {
  width: 140px;
  position: sticky;
  left: 0;
  z-index: 2;
  padding-left: 10px;
  text-align: left !important;
  box-shadow: 1px 0 0 #e4ebf3;
}
.ranking-table.qualifier-wide-table th:first-child {
  z-index: 4;
}
.ranking-table.qualifier-wide-table .pts {
  font-size: 17px;
}
.ranking-table .phase-group {
  padding-inline: 2px !important;
  color: #10213f;
  background: #e8eef7;
  border-left: 2px solid #dbe4ef;
  border-right: 2px solid #dbe4ef;
  font-size: 11px;
  text-align: center !important;
}
.ranking-table .phase-only-head th {
  color: #075985;
  background: #e0f2fe;
  border-bottom: 2px solid #bae6fd;
  text-align: center !important;
}
.ranking-table .q-detail {
  min-width: 0;
}
.ranking-table.qualifier-wide-table .stats-badge {
  min-width: 22px;
  min-height: 21px;
  border-radius: 8px;
  font-size: 10px;
}
.stats-row { cursor: pointer; }
.stats-row:hover td { background: #eef3ff; }
.table-player {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
}
.table-rank {
  min-width: 34px;
  color: #10213f;
}
.ranking-table.qualifier-wide-table .table-rank { min-width: 28px; }
.ranking-table.qualifier-wide-table .table-player {
  justify-content: flex-start;
}
.stats-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 900;
}
.stats-badge.exact { color: #166534; background: #dcfce7; }
.stats-badge.right { color: #075985; background: #e0f2fe; }
.stats-badge.wrong { color: #b91c1c; background: #fee2e2; }

.emoji-flag {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 2px solid #dfe7ef;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.flag.mini.emoji-flag { font-size: 17px; }

[data-theme="dark"] .podium-panel .panel-head h2 { color: var(--ink); }
[data-theme="dark"] .rank-card { background: var(--panel); border-color: var(--line); }
[data-theme="dark"] .rank-card.r1 { background: linear-gradient(120deg, rgba(240, 180, 41, .20), var(--panel)); }
[data-theme="dark"] .rank-card.r2 { background: linear-gradient(120deg, rgba(148, 163, 184, .18), var(--panel)); }
[data-theme="dark"] .rank-card.r3 { background: linear-gradient(120deg, rgba(201, 140, 82, .18), var(--panel)); }
[data-theme="dark"] .rank-name,
[data-theme="dark"] .rank-pts strong,
[data-theme="dark"] .ranking-table td,
[data-theme="dark"] .ranking-table .pts,
[data-theme="dark"] .table-rank { color: var(--ink); }
[data-theme="dark"] .rank-sub,
[data-theme="dark"] .rank-pts span { color: var(--muted); }
[data-theme="dark"] .ranking-table th { color: #cbd5e1; background: #172337; border-bottom-color: var(--line); }
[data-theme="dark"] .ranking-table td { background: var(--panel); border-bottom-color: var(--line); }
[data-theme="dark"] .ranking-table .phase-group { color: #e2e8f0; background: #1d2b44; border-color: var(--line); }
[data-theme="dark"] .ranking-table .phase-only-head th { color: #bae6fd; background: #123047; border-color: var(--line); }
[data-theme="dark"] .ranking-table.qualifier-wide-table th:first-child,
[data-theme="dark"] .ranking-table.qualifier-wide-table td:first-child { box-shadow: 1px 0 0 var(--line); }
[data-theme="dark"] .stats-row:hover td { background: #172337; }
[data-theme="dark"] .emoji-flag { background: #fff; border-color: #334155; }

@media (max-width: 1180px) {
  .ranking-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .final-summary { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px 16px; }
  .final-summary-copy h2 { font-size: 24px; }
  .final-summary-podium { grid-template-columns: 1fr; }
  .final-place { padding: 10px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .final-place:first-child { border-top: 0; }
  .final-summary-note { display: grid; }
  .ranking-layout { gap: 12px; }
  .podium-panel .panel-head { padding-bottom: 8px; }
  .podium-panel .panel-head h2 { font-size: 20px; }
  .rank-card {
    min-height: 60px;
    gap: 8px;
    padding: 9px 10px;
  }
  .rank-pos { min-width: 32px; font-size: 24px; }
  .r1 .rank-pos { font-size: 28px; }
  .r2 .rank-pos, .r3 .rank-pos { font-size: 25px; }
  .rank-name { font-size: 13px; }
  .rank-sub { font-size: 9px; }
  .rank-badge { display: none; }
  .rank-pts { min-width: 42px; }
  .rank-pts strong { font-size: 27px; }
  .rank-view-icon { display: none; }
  .ranking-table-panel .panel-head {
    min-height: 66px;
    padding: 14px 16px;
  }
  .ranking-table-panel .panel-head h2 {
    padding-left: 38px;
    font-size: 26px;
  }
  .ranking-table-panel .panel-head h2::before {
    width: 25px;
    height: 25px;
  }
  .ranking-table,
  .ranking-table thead,
  .ranking-table tbody,
  .ranking-table tr,
  .ranking-table th,
  .ranking-table td {
    display: revert;
    width: auto;
  }
  .ranking-table {
    display: table;
    min-width: 520px;
    font-size: 12px;
  }
  .ranking-table thead { display: table-header-group; }
  .ranking-table tbody {
    display: table-row-group;
    gap: 0;
    padding: 0;
    background: transparent;
  }
  .ranking-table tr {
    display: table-row;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .ranking-table th,
  .ranking-table td {
    display: table-cell;
    padding: 9px 8px;
    border-bottom: 1px solid #e4ebf3;
    text-align: center !important;
  }
  .ranking-table td:first-child,
  .ranking-table th:first-child { text-align: left !important; }
  .ranking-table td:not(:first-child)::before { content: none; }
  .ranking-table .table-player {
    width: auto;
    justify-content: flex-start;
    font-size: 13px;
  }
  .ranking-table .pts {
    display: table-cell;
    min-height: 0;
    border-radius: 0;
    background: #fff;
    font-size: 18px;
  }
  [data-theme="dark"] .ranking-table .pts { background: var(--panel); }
  .ranking-table .num { font-size: 16px; }
  .stats-badge {
    min-width: 36px;
    min-height: 27px;
    border-radius: 8px;
    font-size: 13px;
  }
  .table-rank { min-width: 36px; }
}

@media (max-width: 520px) {
  .ranking-table { min-width: 500px; }
  .ranking-table th { font-size: 10px; padding: 8px 7px; }
  .ranking-table td { font-size: 13px; padding: 8px 7px; }
  .ranking-table .pts { font-size: 17px; }
  .ranking-table .games { font-size: 17px; }
  .stats-badge { min-width: 34px; min-height: 26px; font-size: 12px; }
}

/* Ranking compacto sem exportacao */
.ranking-layout {
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 12px;
}
.ranking-layout.ranking-layout-wide {
  grid-template-columns: 1fr;
}
.ranking-layout.ranking-layout-wide .podium-panel {
  max-width: none;
}
.ranking-layout.ranking-layout-wide #ranking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
}
.ranking-layout.ranking-layout-wide .rank-card {
  margin-bottom: 0;
}
.rank-card {
  min-height: 54px;
  gap: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
}
.rank-pos { min-width: 30px; font-size: 23px; }
.r1 .rank-pos { font-size: 28px; }
.r2 .rank-pos, .r3 .rank-pos { font-size: 25px; }
.rank-name { font-size: 13px; }
.rank-sub { font-size: 9px; }
.rank-badge { display: none; }
.rank-pts { min-width: 42px; }
.rank-pts strong { font-size: 26px; }
.ranking-table-panel .panel-head {
  min-height: 66px;
  padding: 14px 18px;
}
.ranking-table-panel .panel-head h2 {
  padding-left: 38px;
  font-size: 25px;
}
.ranking-table-panel .panel-head h2::before {
  width: 24px;
  height: 24px;
}
.ranking-table-panel .table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.ranking-table {
  width: 100%;
  min-width: min(640px, 100%);
  font-size: 12px;
  table-layout: fixed;
}
.ranking-table th {
  padding: 7px 6px;
  font-size: 11px;
}
.ranking-table td {
  padding: 7px 6px;
  font-size: 13px;
}
.ranking-table .num { font-size: 15px; }
.ranking-table .pts { font-size: 17px; }
.ranking-table.qualifier-wide-table {
  min-width: min(920px, 100%);
}
.ranking-table.qualifier-wide-table th,
.ranking-table.qualifier-wide-table td {
  padding-inline: 3px;
}
.ranking-table.qualifier-wide-table .phase-group {
  font-size: 10px;
}
.stats-badge {
  min-width: 30px;
  min-height: 23px;
  border-radius: 7px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .ranking-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ranking-table { min-width: min(460px, 100%); }
  .ranking-table th { padding: 6px 4px; font-size: 9px; }
  .ranking-table td { padding: 6px 4px; font-size: 12px; }
  .ranking-table .num,
  .ranking-table .pts,
  .ranking-table .games { font-size: 14px; }
  .stats-badge { min-width: 26px; min-height: 22px; font-size: 11px; }
  .ranking-layout.ranking-layout-wide #ranking-list {
    grid-template-columns: 1fr;
  }
  .ranking-table.qualifier-wide-table {
    min-width: 700px;
  }
  .ranking-table.qualifier-wide-table th,
  .ranking-table.qualifier-wide-table td {
    padding-inline: 2px;
    font-size: 9px;
  }
  .ranking-table.qualifier-wide-table .table-rank {
    min-width: 22px;
  }
  .ranking-table.qualifier-wide-table th:first-child,
  .ranking-table.qualifier-wide-table td:first-child {
    padding-left: 6px;
  }
  .ranking-table.all-wide-table .trend {
    display: none;
  }
  .ranking-table.qualifier-wide-table .stats-badge {
    min-width: 10px;
    min-height: 18px;
    padding-inline: 1px;
    font-size: 8px;
  }
}

.fill-match {
  grid-template-columns: minmax(42px, 1fr) 46px 14px 46px minmax(42px, 1fr);
  grid-auto-rows: minmax(42px, auto);
  overflow: hidden;
}
.fill-match > * { min-width: 0; }
.fill-match .team-line {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.fill-match .team-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fill-match input {
  justify-self: center;
  box-sizing: border-box;
}
.fill-match .team-line.right {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .fill-match {
    grid-template-columns: minmax(34px, 1fr) 34px 10px 34px minmax(34px, 1fr);
    gap: 4px;
    padding: 8px 7px;
  }
  .fill-match .team-line { gap: 5px; font-size: 11px; }
  .fill-match .flag { width: 25px; height: 25px; flex-basis: 25px; }
  .fill-match input { width: 34px; height: 34px; font-size: 17px; padding: 0; }
  .fill-vs { font-size: 12px; }
}

@media (max-width: 560px) {
  .fill-match {
    grid-template-columns: minmax(48px, 1fr) 32px 10px 32px minmax(48px, 1fr);
    justify-content: center;
  }
  .fill-match .team-line {
    justify-content: flex-start;
    gap: 4px;
    font-size: 10px;
  }
  .fill-match .team-line.right {
    justify-content: flex-end;
  }
  .fill-match .team-name {
    display: block;
    max-width: 52px;
  }
  .fill-match .flag {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .fill-match input {
    width: 32px;
    height: 34px;
  }
}

@media (max-width: 350px) {
  .fill-match {
    grid-template-columns: minmax(42px, 1fr) 28px 8px 28px minmax(42px, 1fr);
    gap: 3px;
    padding: 7px 5px;
  }
  .fill-match .team-line {
    gap: 3px;
    font-size: 9px;
  }
  .fill-match .team-name {
    max-width: 42px;
  }
  .fill-match .flag {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .fill-match input {
    width: 28px;
    height: 31px;
    font-size: 16px;
  }
}

/* Divulgação do ranking e extrato individual */
.ranking-head-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ranking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.ranking-table-panel .ranking-actions .small-btn {
  width: auto;
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .32);
}
.ranking-table-panel .ranking-actions .small-btn:hover { background: rgba(255, 255, 255, .18); }
.ranking-table-panel .ranking-actions .small-btn:disabled {
  cursor: wait;
  opacity: .68;
}
.ranking-table-panel .ranking-actions .ranking-download {
  color: #10213f;
  background: #ffffff;
  border-color: #ffffff;
}

.player-detail { gap: 16px; }
.player-report {
  overflow: hidden;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.player-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  color: #ffffff;
  background: #10213f;
}
.player-report-head span {
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.player-report-head h3 {
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: 27px;
}
.player-report-head p {
  margin: 0;
  color: #dbeafe;
  font-size: 12px;
}
.player-report-position {
  min-width: 76px;
  padding-left: 18px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .24);
}
.player-report-position strong { display: block; color: #ffffff; font-size: 32px; line-height: 1; }
.player-report-position span { display: block; margin-top: 5px; color: #dbeafe; }
.player-report-total {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
  border-bottom: 1px solid var(--line);
}
.player-report-total > div { display: flex; align-items: baseline; gap: 8px; }
.player-report-total strong { color: var(--brand); font-size: 36px; line-height: 1; }
.player-report-total span { color: var(--muted); font-size: 12px; font-weight: 900; }
.player-report-total p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.player-report-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.player-report-phases > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.player-report-phases > div:last-child { border-right: 0; }
.player-report-phases span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.player-report-phases strong { color: var(--ink); font-size: 21px; }
.player-report-phases small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.player-report-section { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.player-report-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.player-report-section-head h4 { margin: 0; color: var(--ink); font-size: 16px; }
.player-report-section-head > strong { color: var(--brand); font-size: 17px; }
.player-report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.player-report-table th,
.player-report-table td { padding: 8px 7px; border-top: 1px solid var(--line); vertical-align: top; }
.player-report-table th { width: 18%; color: var(--ink); text-align: left; }
.player-report-table td { color: var(--muted); }
.player-report-table td:last-child { width: 78px; color: var(--ink); text-align: right; white-space: nowrap; }
.decisive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.decisive-grid > div { display: grid; gap: 4px; min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decisive-grid > div:nth-child(2n) { border-right: 0; }
.decisive-grid > div:nth-last-child(-n + 2):nth-child(odd),
.decisive-grid > div:last-child { border-bottom: 0; }
.decisive-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.decisive-grid span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.decisive-grid strong { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.decisive-grid small { color: var(--muted); font-size: 11px; }
.player-report footer { padding: 11px 22px; color: var(--muted); background: var(--panel-2); font-size: 10px; text-align: center; }
.player-report-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.modal-card .player-report-actions .primary-btn,
.modal-card .player-report-actions .ghost-btn { width: 100%; margin: 0; }
.player-audit { display: grid; gap: 8px; padding-top: 2px; }

.exporting-png .player-report {
  color: #10213f !important;
  background: #ffffff !important;
  border-color: #d8e1e8 !important;
}
.exporting-png .player-report-total { background: #effaf4 !important; border-color: #d8e1e8 !important; }
.exporting-png .player-report-phases,
.exporting-png .player-report-phases > div,
.exporting-png .player-report-section,
.exporting-png .player-report-table th,
.exporting-png .player-report-table td,
.exporting-png .decisive-grid,
.exporting-png .decisive-grid > div { border-color: #d8e1e8 !important; }
.exporting-png .player-report-phases strong,
.exporting-png .player-report-section-head h4,
.exporting-png .player-report-table th,
.exporting-png .player-report-table td:last-child,
.exporting-png .decisive-grid strong { color: #10213f !important; }
.exporting-png .player-report-phases span,
.exporting-png .player-report-phases small,
.exporting-png .player-report-table td,
.exporting-png .decisive-grid span,
.exporting-png .decisive-grid small,
.exporting-png .player-report footer { color: #607086 !important; }
.exporting-png .player-report footer { background: #f1f5fb !important; }

@media (max-width: 760px) {
  .ranking-table-panel .panel-head { align-items: flex-start; }
  .ranking-actions { width: 100%; justify-content: flex-start; }
  .ranking-table-panel .ranking-actions .small-btn { flex: 1 1 130px; }
  .player-report-head { padding: 17px 16px; }
  .player-report-head h3 { font-size: 22px; }
  .player-report-position { min-width: 62px; padding-left: 12px; }
  .player-report-position strong { font-size: 27px; }
  .player-report-total { grid-template-columns: 1fr; gap: 8px; padding: 15px 16px; }
  .player-report-total p { text-align: left; }
  .player-report-phases { grid-template-columns: 1fr; }
  .player-report-phases > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .player-report-phases > div:last-child { border-bottom: 0; }
  .player-report-section { padding: 16px; }
  .player-report-table th { width: 24%; }
  .decisive-grid { grid-template-columns: 1fr; }
  .decisive-grid > div,
  .decisive-grid > div:nth-child(2n),
  .decisive-grid > div:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .decisive-grid > div:last-child { border-bottom: 0; }
  .player-report-actions { grid-template-columns: 1fr; }
  .player-row { grid-template-columns: minmax(0, 1fr) auto; }
  .player-row > span:last-child { grid-column: 1 / -1; text-align: right; }
}
