:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --red: #c8102e;
  --blue: #0057a8;
  --blue-dark: #0a3264;
  --gold: #d8ad42;
  --ok: #027a48;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(10, 50, 100, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(239, 244, 249, 0.90)),
    url("https://www.seagull-accommodation.com/wp-content/uploads/2025/09/poljud-stadium.jpg") center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(200, 16, 46, 0.08) 0 16%, transparent 16% 38%, rgba(0, 87, 168, 0.08) 38% 55%, transparent 55%),
    rgba(255, 255, 255, 0.18);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px);
}

.hero-copy {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: clamp(12px, 2vw, 24px) 0;
}

.hero-copy::before {
  content: "";
  display: block;
  width: min(420px, 80vw);
  height: 140px;
  margin-bottom: 28px;
  border: 2px solid rgba(0, 87, 168, 0.24);
  border-bottom: 0;
  border-radius: 220px 220px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(200, 16, 46, 0.18) 27px 29px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.login-logo {
  position: relative;
  display: grid;
  gap: 0;
  padding: 28px 34px;
  color: white;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.96), rgba(10, 50, 100, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(10, 50, 100, 0.28);
  text-transform: uppercase;
}

.login-logo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
}

.login-logo span {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
}

.login-logo strong {
  color: white;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.9;
}

.login-logo em {
  justify-self: end;
  color: var(--gold);
  font-size: clamp(22px, 4vw, 42px);
  font-style: normal;
  font-weight: 1000;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-left: 4px solid var(--red);
  padding-left: 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 14px 0 14px;
  color: var(--blue-dark);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

.hero-copy p {
  max-width: 520px;
  color: #475467;
  font-size: 18px;
  line-height: 1.6;
}

.login-panel,
.panel,
.match,
.leaderboard-row,
.front-empty {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 28px;
  overflow: hidden;
}

.login-panel::before,
.panel::before,
.match::before,
.front-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), white 48%, var(--blue));
}

.login-brand,
.brand,
.userbar,
.toolbar,
.tabs,
.score-row,
.match-head,
.bet-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-brand {
  gap: 14px;
  margin-bottom: 18px;
}

.club-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  flex: 0 0 auto;
  color: var(--blue);
  background: white;
  border: 3px solid var(--red);
  border-radius: 8px 8px 15px 15px;
  box-shadow: inset 0 0 0 3px var(--blue), 0 10px 22px rgba(10, 50, 100, 0.15);
  font-size: 22px;
  font-weight: 1000;
}

.club-mark::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 18px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.club-mark.large {
  width: 58px;
  height: 68px;
  font-size: 30px;
}

.chant-strip {
  margin: 0 -28px 18px;
  padding: 10px 28px;
  color: var(--blue-dark);
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.12), white, rgba(0, 87, 168, 0.12));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  color: white;
  background: linear-gradient(100deg, var(--red), var(--blue-dark) 56%, var(--blue));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(10, 50, 100, 0.18);
}

h1,
h2,
p {
  margin-top: 0;
}

.brand h1,
.login-panel h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.brand p,
.login-panel p,
.fineprint,
.meta {
  color: var(--muted);
}

.brand p {
  color: rgba(255, 255, 255, 0.82);
}

.brand p,
.login-panel p,
.fineprint {
  margin: 6px 0 0;
  font-size: 14px;
}

.meta {
  font-size: 13px;
}

.match-fact {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-weight: 800;
}

.userbar {
  justify-content: flex-end;
}

.content {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 32px) 42px;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

.season-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-control label {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tabs {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 87, 168, 0.18);
  border-radius: 8px;
  padding: 4px;
}

.tab,
.ghost,
.primary,
.danger-btn {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 800;
}

.tab {
  background: transparent;
  color: var(--muted);
}

.tab.active,
.primary {
  color: white;
  background: var(--blue);
}

.ghost {
  color: var(--blue-dark);
  background: white;
  border: 1px solid rgba(0, 87, 168, 0.18);
}

.danger-btn {
  color: var(--danger);
  background: #fff5f4;
  border: 1px solid rgba(180, 35, 24, 0.2);
}

.primary:disabled,
.danger-btn:disabled,
.choice:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.compact-input,
.score-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
}

.field input:focus,
.field select:focus,
.compact-input:focus,
.score-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.13);
  outline: 0;
}

.compact-input {
  max-width: 230px;
}

.score-input {
  max-width: 94px;
  text-align: center;
}

.notice {
  margin-top: 14px;
  border-left: 4px solid var(--red);
  background: #fff7ed;
  padding: 10px 12px;
  color: #7c2d12;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 16px;
  overflow: hidden;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.side-panel {
  display: grid;
  gap: 12px;
}

.side-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 87, 168, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.side-card h2 {
  margin-bottom: 0;
  font-size: 16px;
}

.match-list {
  display: grid;
  gap: 12px;
}

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

.progress-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(0, 87, 168, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 250, 0.92));
  box-shadow: var(--shadow);
}

.progress-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), white 48%, var(--blue));
}

.progress-card span,
.deadline-metric span,
.health-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-card strong,
.deadline-metric strong {
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1;
}

.progress-card small,
.deadline-metric small,
.deadline-item span,
.sync-panel-card span,
.export-card span,
.health-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.match {
  padding: 14px;
  overflow: hidden;
}

.match-head {
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.match-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.match-stats-link,
.stats-back-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-dark);
  background: white;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.match-stats-link {
  border-color: var(--red);
  color: white;
  background: var(--red);
}

.match-stats-link:hover,
.match-stats-link:focus-visible {
  border-color: #a9102a;
  color: white;
  background: #a9102a;
  outline: none;
}

.stats-back-link:hover,
.stats-back-link:focus-visible {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  outline: none;
}

.match-stats-link svg,
.stats-back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teams {
  min-width: 220px;
}

.hnl-live-label {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hnl-stats-view {
  min-width: 0;
}

.hnl-stats-heading {
  margin: 4px 0 6px;
  padding: 6px 0 6px 16px;
  border-left: 4px solid var(--red);
}

.hnl-stats-heading h2 {
  margin: 3px 0 0;
  color: var(--blue-dark);
  font-size: 28px;
}

.match-stats-shell {
  position: relative;
  min-height: 100vh;
  background: rgba(243, 246, 250, 0.94);
}

.match-stats-loading,
.match-stats-error {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 100vh;
  padding: 24px;
  color: var(--blue-dark);
  text-align: center;
  font-weight: 800;
}

.match-stats-error a {
  color: var(--blue);
}

.match-stats-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.stats-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-brand .club-mark {
  width: 34px;
  height: 40px;
  border-width: 2px;
  border-radius: 6px 6px 11px 11px;
  font-size: 16px;
}

.stats-brand div {
  display: grid;
  gap: 2px;
}

.stats-brand strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.stats-brand span {
  color: var(--muted);
  font-size: 12px;
}

.match-stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px max(24px, calc((100% - 1148px) / 2));
  color: white;
  background: var(--blue-dark);
  border-top: 4px solid var(--red);
}

.match-stats-title h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 6px;
  font-size: 34px;
  line-height: 1.1;
}

.match-stats-title h1 span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-stats-title h1 em {
  color: #9dc5ea;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.match-stats-title p {
  margin: 0;
  color: #d6e4f2;
  font-size: 14px;
}

.stats-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-stats-hero .stats-kicker {
  color: #ff8ca0;
}

.match-stats-score {
  display: grid;
  justify-items: center;
  min-width: 104px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.match-stats-score span {
  color: #b8cce0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-stats-score strong {
  font-size: 34px;
}

.match-stats-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.stats-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.stats-section:first-child {
  padding-top: 0;
}

.stats-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.stats-section-heading h2 {
  margin: 3px 0 0;
  color: var(--blue-dark);
  font-size: 21px;
}

.stats-source {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.stats-source.stale {
  color: #9a6700;
}

.stats-source.unavailable {
  color: var(--danger);
}

.team-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-form-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.team-form-panel h3 {
  margin: 0;
  padding: 12px 14px;
  color: white;
  background: var(--blue);
  font-size: 15px;
}

.form-list {
  display: grid;
}

.form-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.form-row:last-child {
  border-bottom: 0;
}

.form-outcome {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.outcome-w { background: var(--ok); }
.outcome-d { background: #667085; }
.outcome-l { background: var(--danger); }

.form-opponent {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.form-opponent strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.form-opponent span {
  color: var(--muted);
  font-size: 11px;
}

.form-score {
  color: var(--blue-dark);
  font-size: 14px;
}

.h2h-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.h2h-metrics div {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.h2h-metrics div:last-child {
  border-right: 0;
}

.h2h-metrics strong {
  color: var(--blue-dark);
  font-size: 23px;
}

.h2h-metrics span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.h2h-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.h2h-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.h2h-row time {
  color: var(--muted);
  font-size: 11px;
}

.h2h-row strong {
  color: var(--blue-dark);
  text-align: center;
}

.h2h-row span:last-child {
  text-align: right;
}

.stats-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.league-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.league-stats-table th,
.league-stats-table td {
  height: 42px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.league-stats-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
  text-transform: uppercase;
}

.league-stats-table th:nth-child(2),
.league-stats-table td:nth-child(2) {
  min-width: 150px;
  text-align: left;
}

.league-stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.league-stats-table tr.fixture-team td {
  background: #edf6ff;
  font-weight: 800;
}

.stats-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.stats-lower-grid .stats-section {
  min-width: 0;
}

.compact-stats-table td:last-child,
.compact-stats-table th:last-child {
  text-align: right;
}

.suspension-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.suspension-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.suspension-row:last-child {
  border-bottom: 0;
}

.suspension-row.fixture-team {
  background: #fff4f5;
}

.suspension-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.suspension-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.suspension-row span {
  color: var(--muted);
  font-size: 11px;
}

.suspension-reason {
  flex: 0 0 auto;
  color: var(--danger) !important;
  font-weight: 800;
}

.suspension-clear,
.stats-empty {
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  text-align: center;
  font-size: 12px;
}

.suspension-clear strong {
  color: var(--ok);
  font-size: 15px;
}

@media (max-width: 720px) {
  .match-head-actions {
    flex: 1 0 100%;
    width: 100%;
    align-items: center;
  }

  .match-head-actions .score-row {
    flex: 1 1 auto;
  }

  .match-stats-link {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .match-stats-topbar,
  .match-stats-content {
    width: min(100% - 20px, 1180px);
  }

  .match-stats-topbar {
    min-height: 60px;
  }

  .match-stats-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 24px 14px;
  }

  .match-stats-title h1 {
    display: grid;
    gap: 3px;
    margin-top: 7px;
    font-size: 24px;
  }

  .match-stats-title h1 em {
    font-size: 11px;
  }

  .match-stats-title p {
    margin-top: 7px;
    font-size: 12px;
  }

  .match-stats-score {
    min-width: 62px;
    padding-left: 10px;
  }

  .match-stats-score strong {
    font-size: 24px;
  }

  .match-stats-content {
    padding-top: 18px;
  }

  .stats-section {
    padding: 20px 0;
  }

  .stats-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .stats-section-heading h2 {
    font-size: 18px;
  }

  .stats-source {
    white-space: normal;
  }

  .team-form-grid,
  .stats-lower-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-form-grid {
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 50px;
    padding: 7px 10px;
  }

  .h2h-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h2h-metrics div {
    min-height: 68px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .h2h-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .h2h-metrics div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .h2h-row {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 6px;
    min-height: 54px;
  }

  .h2h-row time {
    grid-column: 1 / -1;
    margin-bottom: -4px;
  }

  .league-stats-table {
    min-width: 660px;
  }

  .compact-stats-table {
    min-width: 0;
  }

  .suspension-row {
    align-items: flex-start;
  }
}

.odds-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.odds-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.odds-line strong {
  color: var(--ink);
  font-size: 11px;
}

.teams strong {
  display: block;
  font-size: 17px;
}

.match-title-trigger {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0;
  padding: 0;
  color: var(--blue-dark);
  background: transparent;
  text-align: left;
  font-size: 17px;
  font-weight: 900;
}

.match-title-trigger::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 18px;
  flex: 0 0 8px;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50%);
  border-radius: 2px;
}

.match-title-trigger > span {
  border-bottom: 1px dashed currentColor;
}

.match-title-trigger small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  color: white;
  background: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.match-title-trigger:hover,
.match-title-trigger:focus-visible {
  color: var(--red);
  outline: none;
}

.match-title-trigger:focus-visible > span {
  box-shadow: 0 3px 0 rgba(200, 16, 46, 0.22);
}

.match-tips-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(10, 50, 100, 0.18);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 80px rgba(10, 50, 100, 0.38);
}

.match-tips-dialog::backdrop {
  background: rgba(5, 22, 42, 0.76);
  backdrop-filter: blur(2px);
}

.match-tips-card {
  position: relative;
  padding: 20px;
  background: white;
}

.match-tips-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--red), white 48%, var(--blue));
}

.match-tips-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 13px;
  border-bottom: 1px solid var(--line);
}

.match-tips-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-tips-header h2 {
  margin: 4px 0 0;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.1;
}

.match-tips-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--soft);
  font-size: 24px;
  line-height: 1;
}

.match-tips-close:hover,
.match-tips-close:focus-visible {
  color: white;
  background: var(--red);
  outline: none;
}

.match-tips-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 11px 0;
}

.match-tips-meta time,
.compact-tips-no-odds {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-tips-meta .odds-line {
  margin: 0;
}

.compact-tips-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 7px;
  overflow: hidden;
  font-size: 14px;
}

.compact-tips-table th,
.compact-tips-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compact-tips-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compact-tips-table th:nth-child(n + 2),
.compact-tips-table td:nth-child(n + 2) {
  width: 72px;
  text-align: center;
}

.compact-tips-table tbody tr:last-child td {
  border-bottom: 0;
}

.compact-tips-table td:first-child {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.compact-tips-table td strong {
  color: var(--blue-dark);
}

@media (max-width: 720px) {
  .match-title-trigger {
    font-size: 15px;
  }

  .match-tips-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .match-tips-card {
    padding: 14px;
  }

  .match-tips-header {
    padding-top: 5px;
    padding-bottom: 10px;
  }

  .match-tips-header h2 {
    font-size: 20px;
  }

  .match-tips-meta {
    padding: 9px 0;
  }

  .compact-tips-table th,
  .compact-tips-table td {
    padding: 8px;
    font-size: 12px;
  }

  .compact-tips-table th {
    font-size: 9px;
  }

  .compact-tips-table th:nth-child(n + 2),
  .compact-tips-table td:nth-child(n + 2) {
    width: 64px;
  }
}

.teams strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 18px;
  margin-right: 9px;
  vertical-align: -3px;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50%);
  border-radius: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.pill.ok {
  background: #ecfdf3;
  color: var(--ok);
}

.pill.locked {
  background: #fef3f2;
  color: var(--danger);
}

.pill.warning {
  background: #fff7ed;
  color: #9a3412;
}

.postponed-match {
  border-color: rgba(154, 52, 18, 0.24);
}

.countdown-pill {
  min-width: 136px;
}

.bet-grid {
  align-items: end;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(6, 44px);
  gap: 6px;
}

.save-bet-btn {
  min-width: 112px;
}

.choice {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #edf2f7;
  color: var(--ink);
  font-weight: 900;
}

.choice.selected {
  background: var(--red);
  color: white;
  border-color: #8f0e23;
}

.prediction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}

.prediction-table th,
.prediction-table td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prediction-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.prediction-table td.hit-cell {
  background: #dcfae6;
  color: #05603a;
  font-weight: 900;
}

.bet-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.bet-status.submitted {
  color: var(--blue-dark);
  background: rgba(0, 87, 168, 0.10);
}

.bet-status.visible {
  color: var(--ok);
  background: #ecfdf3;
}

.bet-status.missing {
  color: var(--muted);
  background: var(--soft);
}

.leaderboard {
  display: grid;
  gap: 8px;
}

.leaderboard-view {
  display: grid;
  gap: 18px;
}

.leaderboard-heading,
.season-trophy-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.leaderboard-heading h2,
.season-trophy-heading h2 {
  margin: 6px 0 0;
}

.leaderboard-heading > span,
.season-trophy-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-trophy-showcase {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.season-trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.season-trophy-card {
  --trophy-accent: var(--gold);
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--trophy-accent);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.10);
}

.season-trophy-janjetina {
  --trophy-accent: #2f7d4a;
}

.season-trophy-cuga {
  --trophy-accent: #9f3d52;
}

.season-trophy-baksuz {
  --trophy-accent: #3f6578;
}

.season-trophy-art {
  position: relative;
  min-width: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #111827;
}

.season-trophy-art::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 13, 24, 0.90));
}

.season-trophy-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.season-trophy-card:hover .season-trophy-art img {
  transform: scale(1.025);
}

.season-trophy-rule {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  color: white;
  background: rgba(8, 13, 24, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-trophy-name {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  right: 12px;
  max-width: 45%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  overflow-wrap: anywhere;
  color: white;
  background: rgba(8, 13, 24, 0.84);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.15;
  text-align: right;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.season-trophy-holder {
  position: absolute;
  z-index: 1;
  inset: auto auto 14px 14px;
  display: grid;
  gap: 3px;
  max-width: 45%;
  color: white;
}

.season-trophy-holder span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-trophy-holder strong {
  overflow-wrap: anywhere;
  color: white;
  font-size: 22px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.season-trophy-holder small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.profile-round-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(0, 87, 168, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.9));
}

.profile-round-card strong {
  color: var(--blue-dark);
  font-size: 20px;
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(0, 87, 168, 0.18));
  color: var(--blue-dark);
  font-weight: 900;
  flex: 0 0 auto;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.online::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--ok);
}

.avatar-fallback {
  text-transform: uppercase;
}

.avatar-tiny {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar-small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar-large {
  width: 84px;
  height: 84px;
  font-size: 28px;
}

.online-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 87, 168, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 87, 168, 0.10), rgba(255, 255, 255, 0.94) 42%, rgba(2, 122, 72, 0.08)),
    rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.online-pill,
.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.online-pill {
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 246, 250, 0.82);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.profile-header {
  margin-bottom: 14px;
}

.profile-panel {
  padding-top: 14px;
}

.compact-title {
  margin-bottom: 10px;
  font-size: 15px;
}

.profile-header-copy {
  display: grid;
  gap: 4px;
}

.profile-round-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.next-match-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.side-card .online-strip,
.side-card .next-match-list {
  margin-bottom: 0;
}

.champions-block {
  display: grid;
  gap: 10px;
}

.champions-list {
  display: grid;
  gap: 8px;
}

.champion-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(216, 173, 66, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 235, 0.92));
}

.champion-trophy {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffe7a1, var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 20px rgba(216, 173, 66, 0.26);
  font-size: 22px;
}

.champion-copy {
  display: grid;
  gap: 2px;
}

.champion-copy strong {
  color: var(--blue-dark);
}

.champion-copy span,
.champion-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.season-roster-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 87, 168, 0.14);
  border-radius: 10px;
  background: rgba(245, 249, 255, 0.72);
}

.season-roster-head {
  display: grid;
  gap: 2px;
}

.season-roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roster-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-weight: 800;
}

.trophy-board {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(216, 173, 66, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(248, 250, 255, 0.94));
}

.trophy-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trophy-board-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trophy-board-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trophy-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.trophy-board-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 173, 66, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 235, 0.9)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(10, 50, 100, 0.08);
}

.trophy-board-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trophy-board-top,
.trophy-player,
.trophy-count-row {
  display: flex;
  align-items: center;
}

.trophy-board-top {
  justify-content: space-between;
  gap: 10px;
}

.trophy-player {
  gap: 12px;
  min-width: 0;
}

.trophy-player-copy {
  display: grid;
  gap: 2px;
}

.trophy-player-copy strong {
  color: var(--blue-dark);
  font-size: 17px;
}

.trophy-player-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trophy-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(0, 87, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-dark);
}

.trophy-count-row {
  gap: 10px;
}

.trophy-board-card em {
  color: var(--blue-dark);
  font-size: 34px;
  font-style: normal;
  font-weight: 1000;
}

.trophy-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trophy-season-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trophy-season-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 87, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.next-match {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 246, 250, 0.78);
  padding: 10px;
}

.next-match strong {
  color: var(--blue-dark);
}

.next-match span,
.next-match small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-row {
  --rank-color: var(--blue);
  display: grid;
  grid-template-columns: 36px 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(10, 50, 100, 0.07);
}

.leaderboard-row > div {
  min-width: 0;
}

.leaderboard-top-1 {
  --rank-color: #b68000;
  border-color: rgba(216, 173, 66, 0.58);
  background: #fffbeb;
}

.leaderboard-top-2 {
  --rank-color: #667085;
  background: #f8fafc;
}

.leaderboard-top-3 {
  --rank-color: #a4512c;
  background: #fff8f1;
}

.leaderboard-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--rank-color);
  font-size: 13px;
  font-weight: 1000;
}

.leaderboard-player-copy {
  display: grid;
  gap: 5px;
}

.leaderboard-player-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.leaderboard-player-name > strong {
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-size: 15px;
}

.leaderboard-player-name > span {
  padding: 2px 6px;
  border-radius: 4px;
  color: #745500;
  background: #fff0b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-metrics {
  display: flex;
  gap: 5px 12px;
  min-width: 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-score {
  display: grid;
  justify-items: end;
  min-width: 52px;
  color: var(--rank-color);
}

.leaderboard-score strong {
  font-size: 21px;
  line-height: 1;
}

.leaderboard-score small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.round-points-widget {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(0, 87, 168, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 87, 168, 0.10), rgba(255, 255, 255, 0.96) 46%, rgba(200, 16, 46, 0.06)),
    rgba(243, 246, 250, 0.82);
}

.round-points-widget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), white 48%, var(--blue));
}

.round-summary-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
}

.round-summary-row strong {
  min-width: 0;
  line-height: 1.1;
}

.stats-view {
  display: grid;
  gap: 16px;
}

.stat-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-stat-panel {
  padding: 14px;
}

.compact-table th,
.compact-table td {
  padding: 8px 10px;
  font-size: 13px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), white 48%, var(--blue));
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
}

.stat-card p {
  margin: 8px 0 4px;
  font-weight: 900;
}

.stat-card small {
  color: var(--muted);
  line-height: 1.4;
}

.rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.points {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.admin-current-round-view {
  display: grid;
  gap: 18px;
}

.admin-current-round-heading,
.admin-postponed-heading,
.admin-round-match-head,
.admin-round-totals {
  display: flex;
  align-items: center;
}

.admin-current-round-heading {
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-current-round-heading h2,
.admin-postponed-heading h2 {
  margin: 4px 0 0;
  color: var(--blue-dark);
}

.admin-current-round-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-round-totals {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-round-totals span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.admin-round-totals strong {
  color: var(--blue-dark);
  font-size: 17px;
}

.admin-round-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-round-match-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(10, 50, 100, 0.09);
}

.admin-round-match-card.postponed {
  border-top-color: #c2410c;
  background: #fffbf5;
}

.admin-round-match-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-round-match-head > div {
  min-width: 0;
}

.admin-round-match-head span,
.admin-round-match-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-round-match-head > div > span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-round-match-head h3 {
  margin: 3px 0 5px;
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.2;
}

.admin-tip-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--blue-dark) !important;
  background: rgba(0, 87, 168, 0.10);
  font-size: 12px !important;
  font-weight: 900 !important;
}

.admin-round-match-card.postponed .admin-tip-count {
  color: #9a3412 !important;
  background: #ffedd5;
}

.admin-tip-table-wrap {
  overflow-x: auto;
}

.admin-tip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-tip-table th,
.admin-tip-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-tip-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-tip-table th:nth-child(n + 2),
.admin-tip-table td:nth-child(n + 2) {
  width: 82px;
  text-align: center;
}

.admin-tip-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-tip-table td:first-child {
  font-weight: 800;
}

.admin-tip-table td strong {
  color: var(--blue-dark);
}

.admin-tip-table tr.missing-tip td {
  color: var(--muted);
  background: rgba(243, 246, 250, 0.55);
}

.admin-tip-table tr.missing-tip td strong {
  color: var(--muted);
  font-size: 10px;
}

.admin-tip-table tr.partial-tip td {
  background: rgba(255, 237, 213, 0.48);
}

.admin-tip-state {
  display: block;
  margin-top: 2px;
  color: #9a3412;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-postponed-section {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-postponed-heading {
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .admin-current-round-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .admin-round-totals {
    justify-content: flex-start;
  }

  .admin-round-match-grid {
    grid-template-columns: 1fr;
  }
}

.admin-add-user,
.admin-user-grid,
.admin-points-grid,
.admin-grid {
  display: grid;
  gap: 8px;
  align-items: center;
}

.admin-add-user {
  grid-template-columns: minmax(110px, 180px) minmax(130px, 220px) minmax(130px, 220px) 100px 90px;
}

.admin-user-grid {
  grid-template-columns: 130px minmax(140px, 1fr) minmax(150px, 220px) 96px 180px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.admin-points-grid {
  grid-template-columns: minmax(170px, 1fr) 110px 90px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.admin-grid {
  grid-template-columns: minmax(170px, 1fr) 180px 96px 90px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.admin-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-actions,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.danger-text {
  color: var(--danger);
}

.sync-health-row,
.kickoff-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.health-pill.ok,
.health-card.ok {
  background: #ecfdf3;
  color: var(--ok);
}

.health-pill.warning,
.health-card.warning {
  background: #fff7ed;
  color: #9a3412;
}

.health-pill.danger,
.health-card.danger {
  background: #fef2f2;
  color: var(--danger);
}

.sync-panels,
.health-grid,
.export-grid,
.deadline-grid {
  display: grid;
  gap: 10px;
}

.sync-panels,
.health-grid,
.export-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sync-panel-card,
.export-card,
.health-card,
.deadline-metric,
.deadline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sync-panel-card,
.health-card {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.sync-panel-card strong,
.export-card strong,
.health-card strong {
  color: var(--blue-dark);
}

.export-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.deadline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deadline-grid.single {
  grid-template-columns: 1fr;
}

.deadline-metric,
.deadline-item {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.deadline-list,
.notice-stack {
  display: grid;
  gap: 8px;
}

.reminder-grid,
.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.panel-stack,
.archive-mini-table,
.override-list {
  display: grid;
  gap: 10px;
}

.archive-card,
.override-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 246, 250, 0.78);
}
.archive-card span,
.archive-card p,
.archive-mini-table small {
  color: var(--muted);
}

.override-meta,
.archive-grid {
  display: grid;
  gap: 8px;
}

.override-card-head,
.override-card-head,
.override-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.archive-card {
  padding: 14px;
}

.archive-card strong {
  color: var(--blue-dark);
}

.override-stack {
  display: grid;
  gap: 8px;
}

.override-meta {
  grid-template-columns: 80px repeat(4, minmax(140px, 1fr)) 130px repeat(2, 190px) 96px;
}

.override-card {
  padding: 12px;
}

.override-card-head strong {
  color: var(--blue-dark);
}

.override-footer {
  margin-top: 10px;
}

.sync-source-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sync-source-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sync-source-heading > span,
.muted-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-source-table-wrap {
  overflow-x: auto;
}

.sync-source-table {
  min-width: 900px;
}

.sync-source-table td:nth-child(7) {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.sync-source-table td:nth-child(7) span,
.sync-source-table td:nth-child(7) small {
  color: var(--muted);
  font-size: 12px;
}

.source-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-state.ok {
  background: #ecfdf3;
  color: var(--ok);
}

.source-state.warning {
  background: #fff7ed;
  color: #9a3412;
}

.source-state.idle {
  background: #eef2f7;
  color: var(--muted);
}

.source-state.danger {
  background: #fef2f2;
  color: var(--danger);
}

.reminder-card,
.mini-bar,
.sync-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 246, 250, 0.78);
  padding: 10px;
}

.reminder-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.reminder-card span,
.mini-bar small {
  color: var(--muted);
}

.mini-bar strong {
  display: block;
  color: var(--blue-dark);
  font-size: 22px;
}

.round-graph {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
  align-items: end;
}

.round-graph-row {
  display: grid;
  gap: 6px;
  min-height: 160px;
  align-content: end;
}

.round-graph-row > strong {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.round-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 3px;
  height: 118px;
  border-bottom: 1px solid var(--line);
}

.round-bar {
  position: relative;
  display: grid;
  align-items: end;
  height: 100%;
  min-width: 0;
}

.round-bar i {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--red), var(--blue));
}

.round-bar small {
  position: absolute;
  inset: auto 0 2px;
  color: white;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.result-preview {
  grid-column: 1 / -1;
}

.compact-table {
  margin: 4px 0 8px;
  background: white;
}

.sync-list {
  display: grid;
  gap: 8px;
}

.sync-row {
  display: grid;
  grid-template-columns: 24px 80px minmax(160px, 1fr) 60px 120px;
  align-items: center;
  gap: 8px;
}

.sync-row em {
  color: var(--ok);
  font-style: normal;
  font-weight: 900;
}

code {
  white-space: normal;
  word-break: break-word;
}

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

.front-empty {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px;
  overflow: hidden;
  text-align: center;
}

.front-empty h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 48px);
}

.front-empty p {
  max-width: 620px;
  color: #475467;
  line-height: 1.6;
}

.stadium-lines {
  display: block;
  width: min(360px, 80%);
  height: 96px;
  border: 2px solid rgba(0, 87, 168, 0.20);
  border-bottom: 0;
  border-radius: 220px 220px 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(200, 16, 46, 0.18) 25px 27px);
}

@media (max-width: 900px) {
  .login-screen,
  .layout,
  .profile-top-row,
  .stat-columns,
  .stats-grid,
  .sync-panels,
  .health-grid,
  .export-grid,
  .deadline-grid,
  .reminder-grid,
  .mini-bars,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy::before {
    height: 90px;
  }

  .app-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
  }

  .userbar {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 12px;
  }

  .userbar strong {
    display: none;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "season round"
      "tabs tabs";
    align-items: center;
    gap: 8px;
  }

  .season-control {
    grid-area: season;
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .tabs {
    grid-area: tabs;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    width: 100%;
    padding: 4px 2px 2px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .round-points-widget {
    padding: 6px;
  }

  .side-panel,
  .match-list {
    gap: 10px;
  }

  .toolbar > .compact-input {
    grid-area: round;
    min-width: 92px;
  }

  .round-summary-row {
    gap: 8px;
    padding: 10px 8px;
  }

  .leaderboard-row {
    grid-template-columns: 32px 28px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 8px;
  }

  .leaderboard-row .meta strong {
    font-size: 11px;
  }

  .season-control label {
    display: none;
  }

  .season-control .compact-input,
  .toolbar > .compact-input {
    min-width: 92px;
  }

  .compact-input {
    max-width: none;
  }

  .admin-add-user,
  .admin-user-grid,
  .admin-points-grid,
  .admin-grid,
  .sync-row,
  .override-meta,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .override-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .match-head {
    gap: 8px;
  }

  .teams {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    min-width: 0;
  }

  .odds-line {
    flex: 1 0 100%;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2px 8px;
    margin-top: 2px;
    font-size: 10px;
  }

  .odds-line span {
    gap: 2px;
  }

  .odds-line strong {
    font-size: 9px;
  }

  .bet-grid {
    align-items: stretch;
  }

  .choice-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .save-bet-btn {
    width: 100%;
  }

  .season-trophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .season-trophy-art {
    aspect-ratio: 4 / 3;
  }

  .season-trophy-rule {
    top: 7px;
    left: 7px;
    max-width: 44%;
    padding: 4px 5px;
    font-size: 8px;
    line-height: 1.1;
  }

  .season-trophy-name {
    bottom: 7px;
    right: 7px;
    max-width: 48%;
    padding: 4px 5px;
    font-size: 11px;
    line-height: 1.1;
  }

  .season-trophy-holder {
    inset: auto auto 8px 8px;
    gap: 1px;
    max-width: 40%;
  }

  .season-trophy-holder span {
    font-size: 8px;
    line-height: 1.15;
  }

  .season-trophy-holder small {
    display: none;
  }

  .season-trophy-holder strong {
    font-size: 14px;
    line-height: 1.05;
  }

  .profile-round-strip {
    grid-template-columns: 1fr 1fr;
  }

  .teams strong {
    display: inline;
    font-size: 15px;
  }

  .teams strong::before {
    height: 14px;
    margin-right: 4px;
  }

  .meta {
    font-size: 12px;
    white-space: nowrap;
  }

  .score-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .score-row::-webkit-scrollbar {
    display: none;
  }

  .pill,
  .countdown-pill {
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .progress-card {
    min-width: 0;
    padding: 10px 8px;
    gap: 4px;
  }

  .progress-card strong,
  .deadline-metric strong {
    font-size: 16px;
  }

  .progress-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .progress-card span,
  .progress-card small {
    font-size: 10px;
    line-height: 1.2;
  }

  .deadline-list {
    gap: 6px;
  }
}
