:root {
  --bg: #f3f0ea;
  --paper: #fbf8f4;
  --ink: #22201d;
  --muted: #b3aaa0;
  --line: #ece4da;
  --accent: #002697;
  --accent-soft: rgba(0, 38, 151, 0.05);
  --accent-ink: #17337a;
  --shadow: 0 22px 60px rgba(22, 41, 97, 0.12);
}

body[data-page="break-point"] {
  --accent: #CB5957;
  --accent-soft: rgba(203, 89, 87, 0.08);
  --accent-ink: #9d3e3d;
  --shadow: 0 22px 60px rgba(116, 45, 44, 0.14);
}

body[data-page="noida"] {
  --accent: #085948;
  --accent-soft: rgba(8, 89, 72, 0.08);
  --accent-ink: #06453a;
  --shadow: 0 22px 60px rgba(8, 89, 72, 0.14);
}

/* ADD THIS BELOW 👇 */
body[data-page="break-point"] .brand-logo path {
  fill: #CB5957;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 38, 151, 0.07), transparent 28%),
    linear-gradient(180deg, #f7f4ef 0%, #f0ece6 100%);
}

h1,
h2,
h3,
p,
table {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 12px;
}

.leaderboard-card {
  width: min(760px, 100%);
  background: var(--paper);
  border: 1px solid #e8dfd4;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 208px;
  height: auto;
  display: block;
}

.topbar-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.page-switcher select {
  appearance: none;
  min-width: 154px;
  padding: 10px 36px 10px 12px;
  border: 1px solid rgba(0, 38, 151, 0.16);
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%),
    rgba(0, 38, 151, 0.03);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  color: var(--accent);
  border-radius: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-copy h1,
.subsection-head h2 {
  font-family: "Cormorant Garamond", serif;
}

.topbar-meta,
.section-kicker,
.hero-copy p,
.footer-note {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.topbar-meta {
  text-align: right;
  display: grid;
  align-content: start;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
}

.slash {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  line-height: 0.96;
  font-weight: 600;
}

.hero-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.standings-section {
  padding: 22px 28px 22px;
}

.stacked-sections {
  display: grid;
  gap: 28px;
}

.tab-switcher {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tab-button {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 1px solid rgba(0, 38, 151, 0.14);
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button.is-active {
  background: rgba(0, 38, 151, 0.06);
  color: var(--accent);
  border-color: rgba(0, 38, 151, 0.22);
}

.standings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-kicker {
  font-size: 0.82rem;
  font-weight: 800;
}

.refresh-button {
  appearance: none;
  border: 1px solid rgba(0, 38, 151, 0.16);
  background: rgba(0, 38, 151, 0.03);
  color: var(--accent);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.refresh-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status-message {
  min-height: 20px;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-message:empty {
  display: none;
}

.status-message.is-error {
  color: var(--accent);
}

.subsection {
  display: grid;
  gap: 14px;
}

.panel-hidden {
  display: none !important;
}

.subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.subsection-head h2 {
  color: var(--accent-ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 14px 10px;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.rank-col {
  width: 64px;
}

tbody td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

tbody tr.highlight {
  background: var(--accent-soft);
}

.rank-text {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.player-name {
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  font-weight: 800;
  line-height: 1.1;
}

.badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.badge.first {
  background: var(--accent);
  color: #fff;
}

.badge.second {
  background: #24345f;
  color: #fff;
}

.badge.third {
  background: #e7ebf8;
  color: #4a5f96;
}

.stat-cell {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.points-cell {
  color: var(--accent);
}

.card-footer {
  padding: 0 28px 22px;
}

.footer-rule {
  width: 70px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.footer-note {
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta span:first-child {
  color: var(--accent-ink);
  text-transform: none;
  letter-spacing: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .topbar,
  .standings-section,
  .card-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-tools {
    width: auto;
    justify-items: end;
    align-self: flex-end;
  }

  .topbar-meta {
    text-align: left;
  }

  .page-switcher select {
    width: auto;
    min-width: 132px;
  }

  .brand-logo {
    width: 164px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .slash {
    display: none;
  }

  .hero-copy {
    text-align: left;
  }

  .subsection-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-switcher {
    width: 100%;
  }

  .tab-button {
    flex: 1;
  }

  .player-name {
    font-size: 1rem;
  }

  thead th,
  tbody td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .rank-col {
    width: 52px;
  }

  .footer-meta {
    flex-direction: column;
  }
}
