:root {
  --bg: #061511;
  --bg-soft: #0a211b;
  --panel: rgba(13, 42, 34, 0.92);
  --panel-2: rgba(17, 54, 44, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f8f5;
  --muted: #a9bbb4;
  --primary: #43d17d;
  --primary-dark: #1d9d55;
  --accent: #f5c84c;
  --danger: #ff6b6b;
  --success: #5ce1a2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(67, 209, 125, 0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(245, 200, 76, 0.10), transparent 28%),
    linear-gradient(145deg, #04100d 0%, #071b16 52%, #0b241d 100%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(245, 200, 76, 0.55);
  outline-offset: 2px;
}

.shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #082016;
  background: linear-gradient(135deg, var(--accent), #fff09d);
  box-shadow: 0 12px 32px rgba(245, 200, 76, 0.18);
  font-size: 24px;
}
.brand h1 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 0.88rem; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(15, 52, 42, 0.96), rgba(7, 29, 23, 0.94));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 390px;
  height: 390px;
  border: 70px solid rgba(67, 209, 125, 0.08);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 200, 76, 0.28);
  border-radius: 999px;
  color: #ffe28a;
  background: rgba(245, 200, 76, 0.08);
  font-weight: 750;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h2 span { color: var(--primary); }
.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #c4d1cc;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.login-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 19, 14, 0.58);
  backdrop-filter: blur(16px);
}
.login-panel h3 { margin: 0 0 8px; font-size: 1.25rem; }
.login-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }

.form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; }
.field label { color: #d8e2de; font-size: 0.84rem; font-weight: 700; }
.input, .select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.input::placeholder { color: #789087; }
.select option { color: #111; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #092016;
  background: var(--primary);
  font-weight: 800;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.06); }
.btn.accent { color: #251d00; background: var(--accent); }
.btn.danger { color: #fff; background: rgba(255,107,107,0.18); border-color: rgba(255,107,107,0.32); }
.btn.ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 11px; border-radius: 10px; font-size: 0.83rem; }
.btn.full { width: 100%; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #7e938a;
  font-size: 0.78rem;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 200, 76, 0.18);
  border-radius: 12px;
  color: #d8ccb0;
  background: rgba(245, 200, 76, 0.06);
  font-size: 0.8rem;
  line-height: 1.45;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.page-header h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -0.035em; }
.page-header p { margin: 7px 0 0; color: var(--muted); }
.header-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}
.stat-label { color: var(--muted); font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { display: block; margin-top: 8px; font-size: 1.7rem; font-weight: 850; }
.stat-detail { margin-top: 4px; color: #8fa39b; font-size: 0.78rem; }

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 25, 20, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.progress-wrap { min-width: 220px; }
.progress-info { display: flex; justify-content: space-between; gap: 10px; color: #d4e0db; font-size: 0.82rem; font-weight: 750; }
.progress-track { height: 8px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.08); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-dark), var(--primary)); transition: width 0.25s ease; }

.group-section { margin: 28px 0 38px; }
.group-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.group-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #142415;
  background: var(--accent);
  font-weight: 900;
}
.group-heading h3 { margin: 0; font-size: 1.35rem; }
.group-heading span { color: var(--muted); font-size: 0.82rem; }

.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.match-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--panel), rgba(9, 33, 27, 0.95));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.match-card:hover { border-color: rgba(67, 209, 125, 0.34); transform: translateY(-1px); }
.match-card.locked { opacity: 0.72; }
.match-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 13px; color: var(--muted); font-size: 0.76rem; }
.match-number { color: #cdd9d4; font-weight: 750; }
.teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.team { display: flex; align-items: center; gap: 9px; font-weight: 800; min-width: 0; }
.team.away { justify-content: flex-end; text-align: right; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag { font-size: 1.45rem; line-height: 1; }
.versus { color: #668078; font-size: 0.75rem; font-weight: 900; }
.pick-options { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 8px; margin-top: 15px; }
.pick-btn {
  min-height: 43px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #d7e2de;
  background: rgba(255,255,255,0.045);
  font-size: 0.82rem;
  font-weight: 800;
  transition: 0.18s ease;
}
.pick-btn:hover:not(:disabled) { border-color: rgba(67, 209, 125, 0.5); background: rgba(67, 209, 125, 0.09); }
.pick-btn.selected { color: #092016; border-color: var(--primary); background: var(--primary); box-shadow: 0 8px 24px rgba(67, 209, 125, 0.16); }
.pick-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.pick-status { margin-top: 10px; font-size: 0.76rem; color: var(--muted); }
.pick-status.correct { color: var(--success); }
.pick-status.wrong { color: #ff9292; }
.lock-chip { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; color: #ffd5d5; background: rgba(255,107,107,0.16); font-size: 0.68rem; font-weight: 800; }

.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0; padding-bottom: 4px; }
.tab-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}
.tab-btn.active { color: #092016; border-color: var(--primary); background: var(--primary); }

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}
.panel + .panel { margin-top: 14px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.panel-title h3 { margin: 0; font-size: 1.08rem; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 0.83rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.82rem; }
th { position: sticky; top: 0; color: #aec0b8; background: #0b2a22; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.good { color: var(--success); font-weight: 800; }
.bad { color: #ff9292; font-weight: 800; }
.rank-number { font-weight: 900; color: var(--accent); }

.admin-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.result-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.035); }
.result-card .teams { margin-bottom: 11px; }
.result-actions { display: grid; grid-template-columns: 1fr 58px 1fr 40px; gap: 7px; }
.result-actions .pick-btn { min-height: 38px; }
.clear-result { border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.setting-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.035); }
.setting-card h4 { margin: 0 0 6px; }
.setting-card p { margin: 0 0 13px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 48px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #314b42; transition: .2s; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .slider { background: var(--primary-dark); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 6px; color: #dfe8e4; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(67, 209, 125, 0.34);
  border-radius: 13px;
  color: #eafff1;
  background: rgba(9, 43, 32, 0.96);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: 0.22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.footer-note { margin-top: 28px; color: #72877f; text-align: center; font-size: 0.75rem; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .login-panel { max-width: 620px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1380px); padding-top: 15px; }
  .topbar, .page-header, .toolbar { align-items: stretch; flex-direction: column; }
  .header-actions { justify-content: stretch; }
  .header-actions .btn { flex: 1; }
  .hero { padding: 24px; border-radius: 23px; }
  .hero h2 { font-size: clamp(2.35rem, 13vw, 4.1rem); }
  .matches-grid, .admin-results, .settings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .progress-wrap { min-width: 0; width: 100%; }
  .filters .select { flex: 1; min-width: 150px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .pick-options { grid-template-columns: 1fr 52px 1fr; }
  .team { font-size: 0.84rem; }
  .flag { font-size: 1.2rem; }
  .panel { padding: 13px; }
}

@media print {
  body { color: #111; background: #fff; }
  .topbar, .header-actions, .toolbar, .footer-note, .toast { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .group-section { break-inside: avoid; }
  .match-card, .panel { color: #111; border-color: #ccc; background: #fff; box-shadow: none; }
  .pick-btn { color: #222; border-color: #aaa; background: #fff; }
  .pick-btn.selected { color: #000; border: 2px solid #000; background: #ddd; }
  .match-meta, .muted, .pick-status { color: #555 !important; }
}

/* Placares e sistema de pontuação */
.score-entry {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.score-field {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.score-field label {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-input {
  width: 72px;
  height: 54px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: var(--text);
  background: rgba(3, 19, 14, 0.72);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
}

.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.score-input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.score-separator {
  padding-bottom: 13px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 950;
}

.clear-score {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.clear-score:hover:not(:disabled),
.clear-result:hover {
  color: #fff;
  border-color: rgba(255,107,107,0.42);
  background: rgba(255,107,107,0.12);
}

.admin-score-entry {
  display: grid;
  grid-template-columns: 62px 20px 62px minmax(86px, 1fr) 40px;
  align-items: center;
  gap: 7px;
}

.admin-score-entry .score-separator {
  padding: 0;
  text-align: center;
}

.small-score {
  width: 62px;
  height: 42px;
  font-size: 1.05rem;
}

.scoring-panel {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 52, 42, 0.96), rgba(8, 31, 25, 0.95));
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}

.scoring-panel.compact {
  margin-top: 24px;
}

.scoring-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.scoring-header .eyebrow {
  margin-bottom: 9px;
}

.scoring-header h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.scoring-header > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.scoring-rule {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
}

.rule-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.scoring-rule strong {
  color: var(--accent);
  font-size: 1rem;
}

.scoring-rule h4 {
  margin: 5px 0 7px;
  font-size: 0.84rem;
}

.scoring-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 1150px) {
  .scoring-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .scoring-header { align-items: flex-start; flex-direction: column; }
  .scoring-header > p { text-align: left; }
  .scoring-grid { grid-template-columns: 1fr 1fr; }
  .admin-score-entry { grid-template-columns: 58px 18px 58px minmax(76px, 1fr) 38px; }
  .small-score { width: 58px; }
}

@media (max-width: 480px) {
  .score-entry { gap: 8px; padding: 12px 8px; }
  .score-input { width: 62px; height: 50px; }
  .score-field label { max-width: 112px; }
  .clear-score { width: 100%; }
  .scoring-grid { grid-template-columns: 1fr; }
  .scoring-panel { padding: 16px; }
  .admin-score-entry { grid-template-columns: 54px 16px 54px 1fr 36px; }
  .small-score { width: 54px; height: 40px; }
}

@media print {
  .score-input {
    color: #111;
    border-color: #777;
    background: #fff;
  }
  .clear-score,
  .scoring-panel,
  .lock-chip {
    display: none !important;
  }
}

/* Ranking público e refinamentos responsivos */
.public-ranking { scroll-margin-top: 92px; margin: 24px 0 34px; }
.ranking-panel { overflow: hidden; }
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.podium-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.podium-card.is-me { border-color: rgba(67,209,125,.58); box-shadow: inset 0 0 0 1px rgba(67,209,125,.18); }
.podium-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card > span:last-child { color: var(--accent); font-weight: 850; }
.podium-position { font-size: 1.45rem; }
.current-user-row { background: rgba(67,209,125,.08); }
.you-chip {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #092016;
  background: var(--primary);
  font-size: .68rem;
  font-weight: 900;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matches-grid { grid-template-columns: 1fr; }
  .toolbar { position: static; align-items: stretch; flex-direction: column; }
  .progress-wrap { min-width: 0; }
  .page-header { align-items: stretch; flex-direction: column; }
  .header-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 1280px); padding-top: 10px; }
  .topbar { padding: 10px 2px; }
  .brand h1 { font-size: 1rem; }
  .brand p { display: none; }
  .hero { padding: 24px 18px; border-radius: 22px; }
  .hero h2 { font-size: clamp(2.15rem, 13vw, 3.2rem); }
  .login-panel { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.35rem; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .header-actions .btn:last-child:nth-child(3) { grid-column: 1 / -1; }
  .btn { min-height: 48px; }
  .podium-grid { grid-template-columns: 1fr; }
  .podium-card { grid-template-columns: auto 1fr auto; align-items: center; }
  .group-heading { position: sticky; top: 8px; z-index: 4; padding: 8px; border-radius: 14px; background: rgba(6,25,20,.94); backdrop-filter: blur(12px); }
  .match-card { padding: 14px; }
  .teams { gap: 7px; }
  .team { font-size: .88rem; }
  .flag { font-size: 1.2rem; }
  .score-entry { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
  .clear-score { grid-column: 1 / -1; }
  .table-wrap { margin-inline: -8px; }
  table { min-width: 620px; }
}
