:root {
  --bg: #050914;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --text: #f8fafc;
  --muted: #aab6c8;
  --line: rgba(255,255,255,.13);
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.13);
  --gold: #f6c945;
  --gold-dark: #92400e;
  --blue: #38bdf8;
  --green: #22c55e;
  --red: #fb7185;
  --purple: #a78bfa;
  --shadow: 0 28px 90px rgba(0,0,0,.42);
}

* {
  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: var(--bg);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 7%, rgba(56,189,248,.32), transparent 34rem),
    radial-gradient(circle at 87% 9%, rgba(246,201,69,.24), transparent 36rem),
    radial-gradient(circle at 55% 105%, rgba(167,139,250,.16), transparent 42rem),
    linear-gradient(135deg, #050914 0%, #0d1728 48%, #07111f 100%);
}

.app-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,9,20,.76);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 1000;
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(246,201,69,.18);
}

.nav-pills {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pills::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: #cbd5e1;
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.nav-pill.active {
  color: #111827;
  background: var(--gold);
}

.refresh-button,
.ghost-button {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.10);
  padding: 0 15px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.refresh-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15,23,42,.54);
  backdrop-filter: blur(16px);
}

.status-strip strong {
  font-size: .9rem;
}

.status-strip span:last-child {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(246,201,69,.16);
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,.16);
}

.status-dot.manual {
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(167,139,250,.16);
}

.status-dot.mock {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(246,201,69,.16);
}

main {
  display: grid;
  gap: 14px;
}

.hero {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(125,211,252,.35);
  border-radius: 999px;
  padding: 0 10px;
  color: #bae6fd;
  background: rgba(14,165,233,.10);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 950;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .9;
  letter-spacing: -.075em;
}

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.rules span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 12px;
  color: white;
  background: rgba(255,255,255,.10);
  font-weight: 950;
}

.rules strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
}


.rules-label {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.prize-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.grand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.grand-row strong {
  justify-self: center;
  text-align: center;
}

.game-card.next-game {
  border-left-color: var(--gold);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.12), transparent 16rem),
    rgba(15,23,42,.50);
}

.next-badge {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: var(--gold);
  border: 1px solid rgba(246,201,69,.65);
  font-size: .72rem;
  font-weight: 1000;
  white-space: nowrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: .8fr 1.45fr .8fr .95fr;
  gap: 12px;
}

.summary-card,
.view-shell,
.home-card,
.editor,
.schedule-card,
.standing-card,
.team-tile,
.bracket-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
}

.summary-card {
  padding: 16px;
}

.summary-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.summary-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 3vw, 1.85rem);
  line-height: 1.1;
}

.view-shell {
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.view-panel {
  display: none;
  padding: 22px;
  animation: fadeUp .22s ease both;
}

.view-panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  margin-bottom: 6px;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 950;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -.05em;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-card {
  padding: 18px;
  min-height: 230px;
  background:
    radial-gradient(circle at top right, rgba(246,201,69,.10), transparent 18rem),
    rgba(15,23,42,.44);
}

.home-card.wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title-row h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-row,
.glance-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.07);
}

.compact-row span {
  font-weight: 950;
}

.compact-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.compact-row strong,
.glance-item strong {
  color: #fef3c7;
  text-align: right;
  white-space: nowrap;
}

.glance-grid {
  display: grid;
  gap: 10px;
}

.glance-item {
  min-height: 64px;
}

.glance-item span {
  color: #dbeafe;
  font-weight: 900;
}


/* Scoring clarity */
.scoring-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.scoring-explainer div {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.06);
}

.scoring-explainer strong,
.scoring-explainer span {
  display: block;
}

.scoring-explainer strong {
  margin-bottom: 4px;
  color: #fef3c7;
  font-size: .92rem;
}

.scoring-explainer span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.prize-card label {
  display: block;
  margin-bottom: 7px;
  color: #dbeafe;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.25;
}

.top-scorer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.top-scorer-heading h3 {
  margin: 0;
}

.top-scorer-heading span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: right;
}

/* Live Games */
.live-now-card {
  margin-bottom: 14px;
  border-color: rgba(34,197,94,.28);
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.13), transparent 20rem),
    rgba(15,23,42,.48);
}

.live-game-list {
  display: grid;
  gap: 10px;
}

.live-game-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.07);
}

.live-game-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bbf7d0;
  font-weight: 1000;
  white-space: nowrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,.14);
}

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

.live-team strong,
.live-team small {
  display: block;
}

.live-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-team small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.live-team.right {
  text-align: right;
}

.live-scoreline b,
.top-scorer-row strong,
.grand-row strong,
.mini-prize-standings b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #111827;
  background: var(--gold);
  font-size: 1.05rem;
}

.score-separator {
  color: var(--muted);
  font-weight: 1000;
}

.live-game-meta span {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #dbeafe;
  background: rgba(59,130,246,.16);
  border: 1px solid rgba(147,197,253,.22);
  font-size: .72rem;
  font-weight: 1000;
  white-space: nowrap;
}

.live-scorers {
  display: grid;
  gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.live-scorers li {
  color: #fef3c7;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.25;
}

.live-team.right .live-scorers {
  text-align: right;
}

/* Prize Center */
.prize-center-card {
  margin-bottom: 14px;
  border-color: rgba(246,201,69,.28);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.13), transparent 20rem),
    rgba(15,23,42,.48);
}

.prize-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.grand-prize-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(246,201,69,.22);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(246,201,69,.08);
}

.grand-prize-card > div:first-child > span {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.grand-prize-card strong {
  display: block;
  font-size: 1.15rem;
}

.grand-prize-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.grand-standings {
  display: grid;
  gap: 8px;
}

.grand-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,.07);
}

.grand-row span {
  font-weight: 950;
}

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

.prize-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255,255,255,.07);
}


.prize-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.prize-card-top > span {
  font-size: 1.4rem;
}

.prize-card-top > i {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: var(--gold);
  font-size: .82rem;
  font-style: normal;
  font-weight: 1000;
}

.grand-prize-card p b {
  color: #fef3c7;
}

.mini-prize-standings span em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.golden-boot-standings div {
  align-items: start;
}

.golden-boot-standings b {
  margin-top: 2px;
}

.prize-card > span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.prize-card > small {
  display: block;
  margin-bottom: 4px;
  color: #7dd3fc;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 1000;
}

.prize-card strong {
  display: block;
  margin-bottom: 5px;
  color: #f8fafc;
}

.prize-card p {
  margin: 0;
  color: #fef3c7;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.35;
}

.prize-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.mini-prize-standings {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mini-prize-standings div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.mini-prize-standings span {
  color: #dbeafe;
  font-size: .78rem;
  font-weight: 900;
}

.mini-prize-standings b {
  min-width: 28px;
  height: 28px;
  font-size: .85rem;
}


.prize-card.not-started {
  opacity: .82;
  border-style: dashed;
}

.prize-card.not-started p {
  color: #cbd5e1;
}

.mini-prize-empty {
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-size: .8rem;
  font-weight: 850;
}

.top-scorer-race {
  margin-top: 14px;
}

.top-scorer-race h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

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

.top-scorer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.06);
}

.top-scorer-row span {
  font-weight: 950;
}

.top-scorer-row span em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
}

.top-scorer-row small {
  color: var(--muted);
  font-weight: 800;
}

.standings-grid {
  display: grid;
  gap: 12px;
}

.standing-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 118px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,1), rgba(248,250,252,1));
  box-shadow: 0 18px 46px rgba(0,0,0,.20);
}

.standing-card.first {
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.22), transparent 20rem),
    linear-gradient(90deg, rgba(255,255,255,1), rgba(255,251,235,1));
}

.rank-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 1000;
}

.first .rank-badge {
  background: linear-gradient(135deg, #fef3c7, var(--gold));
}

.standing-main h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.standing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 7px 0 11px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  color: #334155;
  background: #eef2f7;
  font-size: .8rem;
  font-weight: 950;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #eef2f7;
  color: #0f172a;
  padding: 0 10px;
  font-weight: 950;
  font-size: .84rem;
}

.result-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}

.result-dot.win {
  background: var(--green);
}

.result-dot.draw {
  background: var(--gold);
}

.result-dot.loss {
  background: var(--red);
}

.result-dot.live {
  background: var(--blue);
}

.standing-score {
  display: grid;
  gap: 8px;
}

.score-box {
  border-radius: 20px;
  color: white;
  background: #0f172a;
  padding: 12px;
  text-align: center;
}

.score-box span {
  display: block;
  color: #cbd5e1;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.score-box strong {
  font-size: 2.1rem;
  line-height: 1;
}

.progress-wrap {
  display: grid;
  gap: 6px;
}

.progress-label {
  color: #475569;
  font-size: .78rem;
  font-weight: 950;
  text-align: right;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15,23,42,.12);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #f6c945);
}

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

.schedule-card {
  padding: 16px;
  overflow: hidden;
}

.schedule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.schedule-card-header h2 {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  font-size: 1.35rem;
}

.schedule-card-header span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(246,201,69,.10);
  font-weight: 1000;
}

.schedule-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
}

.schedule-teams span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59,130,246,.10);
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 900;
}

.game-list {
  display: grid;
  gap: 9px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-left: 4px solid rgba(56,189,248,.8);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15,23,42,.45);
  border-top: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.game-card.today {
  border-left-color: var(--green);
}

.game-card.tomorrow {
  border-left-color: var(--blue);
}

.game-matchup strong,
.game-matchup span,
.game-matchup small {
  display: block;
}

.game-matchup strong {
  font-size: 1rem;
}

.game-matchup span {
  color: #dbeafe;
  margin-top: 2px;
  font-weight: 850;
}

.game-time {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.game-time strong {
  color: #fef3c7;
  font-size: .95rem;
}

.game-time span {
  color: #cbd5e1;
  font-size: .84rem;
  font-weight: 850;
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.day-badge,
.group-badge {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 1000;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.day-badge {
  color: #111827;
  background: #fef3c7;
  border-color: rgba(254,243,199,.65);
}

.game-card.today .day-badge {
  color: #052e16;
  background: #86efac;
  border-color: rgba(134,239,172,.65);
}

.game-card.tomorrow .day-badge {
  color: #082f49;
  background: #7dd3fc;
  border-color: rgba(125,211,252,.65);
}

.game-card:not(.today):not(.tomorrow) .day-badge {
  color: #111827;
  background: #fef3c7;
  border-color: rgba(254,243,199,.65);
}

.group-badge {
  color: #dbeafe;
  background: rgba(59,130,246,.16);
  border-color: rgba(147,197,253,.22);
}

.empty-schedule {
  margin: 0;
  color: var(--muted);
}

.team-tile-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.team-tile {
  padding: 16px;
}

.team-tile-top,
.team-tile-meta,
.team-tile-progress div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.team-tile h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  letter-spacing: -.04em;
}

.team-tile p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.team-tile-top > strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #111827;
  background: var(--gold);
  font-size: 1.35rem;
}

.team-tile-meta {
  margin-top: 12px;
}

.team-tile-meta > span:last-child {
  color: white;
  font-weight: 950;
}

.team-tile-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.team-tile-progress span {
  color: #dbeafe;
  font-size: .85rem;
  font-weight: 950;
}

.team-latest {
  margin-top: 12px !important;
  font-size: .88rem;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 950;
  font-size: .75rem;
}

.result-win {
  background: #dcfce7;
  color: #166534;
}

.result-draw {
  background: #fef3c7;
  color: #92400e;
}

.result-loss {
  background: #fee2e2;
  color: #991b1b;
}

.result-not-played,
.result-live {
  background: #e2e8f0;
  color: #334155;
}

.bracket-panel {
  overflow: hidden;
}

.bracket-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.1fr;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.14), transparent 20rem),
    rgba(15,23,42,.30);
}

.bracket-intro p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
  font-weight: 750;
}

.bracket-scroll {
  overflow-x: auto;
  padding: 18px;
}

.bracket-grid {
  display: grid;
  grid-template-columns: 320px 320px 320px 320px 320px;
  gap: 14px;
  min-width: 1660px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bracket-round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px 13px;
  background: rgba(15,23,42,.58);
}

.bracket-round-header h2 {
  font-size: 1rem;
}

.bracket-round-header span {
  color: #fef3c7;
  font-size: .76rem;
  font-weight: 950;
}

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

.bracket-match {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 12px;
  background: rgba(15,23,42,.45);
}

.bracket-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.bracket-match-meta span {
  color: #fef3c7;
  font-size: .76rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.bracket-match-meta small {
  color: var(--muted);
  font-weight: 850;
  text-align: right;
}

.bracket-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 11px;
  background: rgba(255,255,255,.08);
}

.bracket-team + .bracket-team {
  margin-top: 8px;
}

.bracket-team.owned {
  border: 1px solid rgba(56,189,248,.26);
  background: rgba(56,189,248,.10);
}

.bracket-team.placeholder {
  border: 1px dashed rgba(255,255,255,.16);
}

.bracket-team.winner {
  border-color: rgba(246,201,69,.55);
  background: rgba(246,201,69,.14);
}

.bracket-team strong,
.bracket-team span,
.bracket-team small {
  display: block;
}

.bracket-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team span {
  margin-top: 2px;
  color: #dbeafe;
  font-size: .8rem;
  font-weight: 900;
}

.bracket-team small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.bracket-team b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #111827;
  background: white;
  font-size: 1.05rem;
}

.editor {
  margin-top: 4px;
  overflow: hidden;
}

.editor summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 1000;
}

.editor summary small {
  color: var(--muted);
  font-weight: 750;
}

.editor-content {
  border-top: 1px solid var(--line);
  padding: 18px 20px 22px;
}

.editor-content p {
  color: var(--muted);
  line-height: 1.55;
}

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

.editor-item {
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  padding: 14px;
}

.editor-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 950;
}

.editor-item select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  font: inherit;
  font-weight: 850;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .topbar {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .topbar-main {
    justify-content: space-between;
  }

  .nav-pills {
    justify-content: flex-start;
    padding: 2px 0;
  }

  .hero {
    min-height: auto;
    padding: 20px;
    border-radius: 28px;
  }

  
.rules-label {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.prize-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.grand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.grand-row strong {
  justify-self: center;
  text-align: center;
}

.game-card.next-game {
  border-left-color: var(--gold);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.12), transparent 16rem),
    rgba(15,23,42,.50);
}

.next-badge {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: var(--gold);
  border: 1px solid rgba(246,201,69,.65);
  font-size: .72rem;
  font-weight: 1000;
  white-space: nowrap;
}

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

  .home-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .prize-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grand-prize-card,
  .bracket-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .topbar {
    top: 6px;
    gap: 8px;
    padding: 8px;
  }

  .brand-pill,
  .refresh-button,
  .nav-pill {
    min-height: 44px;
  }

  .brand-pill {
    padding: 0 12px;
  }

  .refresh-button {
    padding: 0 13px;
  }

  .nav-pills {
    margin: 0 -2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-pills::-webkit-scrollbar {
    display: none;
  }

  .nav-pill {
    padding: 0 14px;
    font-size: .92rem;
  }

  .status-strip {
    position: sticky;
    top: 76px;
    z-index: 18;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 16px;
  }

  .status-strip span:last-child {
    display: none;
  }

  .hero {
    padding: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: .96;
    letter-spacing: -.055em;
    margin-bottom: 13px;
  }

  .rules span {
    min-height: 36px;
    font-size: .9rem;
  }

  
.rules-label {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.prize-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.grand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.grand-row strong {
  justify-self: center;
  text-align: center;
}

.game-card.next-game {
  border-left-color: var(--gold);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.12), transparent 16rem),
    rgba(15,23,42,.50);
}

.next-badge {
  display: inline-block;
  height: 28px;
  line-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: var(--gold);
  border: 1px solid rgba(246,201,69,.65);
  font-size: .72rem;
  font-weight: 1000;
  white-space: nowrap;
}

.summary-grid {
    gap: 10px;
  }

  .summary-card {
    padding: 13px;
  }

  .summary-card strong {
    white-space: normal;
    font-size: clamp(1rem, 3vw, 1.85rem);
  }

  .view-shell {
    min-height: auto;
    border-radius: 26px;
  }

  .view-panel {
    padding: 12px;
  }

  .home-card {
    min-height: auto;
    padding: 14px;
  }

  .compact-row,
  .glance-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .compact-row.game-row strong {
    order: -1;
    color: var(--gold);
    font-size: 1rem;
    text-align: left;
    white-space: normal;
  }

  .compact-row strong,
  .glance-item strong {
    text-align: left;
  }

  .live-game-row {
    grid-template-columns: 1fr;
  }

  .live-game-status {
    justify-self: start;
  }

  .live-scoreline {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: 7px;
  }

  .live-game-meta {
    justify-self: start;
  }

  .live-team strong {
    white-space: normal;
  }

  .live-team.right,
  .live-team.right .live-scorers {
    text-align: left;
  }

  .prize-grid,
  .top-scorer-row {
    grid-template-columns: 1fr;
  }


  .top-scorer-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-scorer-heading span {
    text-align: left;
  }


  .prize-card-top > i {
    min-height: 26px;
    font-size: .78rem;
  }



  .standing-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .rank-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.1rem;
  }

  .standing-main h3 {
    font-size: 1.22rem;
  }

  .standing-score {
    grid-column: 1 / -1;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
  }

  .score-box {
    padding: 10px;
  }

  .score-box strong {
    font-size: 1.65rem;
  }

  .progress-label {
    text-align: left;
  }

  .team-chips {
    gap: 6px;
  }

  .team-chip {
    min-height: 32px;
    font-size: .78rem;
  }

  .game-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .game-time {
    justify-items: start;
    text-align: left;
  }

  .schedule-card-header h2 {
    padding-left: 10px;
  }

  .team-tile-list {
    grid-template-columns: 1fr;
  }

  .team-tile {
    padding: 14px;
  }

  .bracket-grid {
    grid-template-columns: repeat(5, 285px);
    min-width: 1480px;
  }

  .bracket-scroll {
    padding: 12px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }
}


/* Final layout refinements */
.grand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.grand-row strong {
  justify-self: center;
  text-align: center;
}

@media (max-width: 430px) {
  .grand-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}


/* Prizes tab */
.prize-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prize-choice-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(246,201,69,.10), transparent 18rem),
    rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.prize-choice-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(246,201,69,.36);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.16), transparent 20rem),
    rgba(255,255,255,.09);
}

.prize-choice-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.prize-choice-top span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.prize-choice-top small {
  display: block;
  margin-bottom: 5px;
  color: #7dd3fc;
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.prize-choice-top h2 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.prize-choice-top > strong {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  color: #111827;
  background: var(--gold);
  font-size: .95rem;
  font-weight: 1000;
  white-space: nowrap;
}

.prize-choice-section {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
  margin-top: 12px;
}

.prize-choice-section b {
  display: block;
  margin-bottom: 5px;
  color: #fef3c7;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prize-choice-section p {
  margin: 0;
  color: #dbeafe;
  font-weight: 850;
  line-height: 1.4;
}

.prize-choice-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prize-choice-section li {
  border-radius: 14px;
  padding: 10px;
  color: #dbeafe;
  background: rgba(255,255,255,.06);
  font-weight: 850;
}

@media (max-width: 860px) {
  .prize-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .prize-choice-card {
    padding: 14px;
  }

  .prize-choice-top {
    flex-direction: column;
  }

  .prize-choice-top > strong {
    align-self: start;
  }
}


/* Mobile simplified app mode */
.mobile-home-mount,
.mobile-schedule-list {
  display: none;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .app-shell {
    width: min(100%, 100%);
    padding: 10px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 8px;
    border-radius: 18px;
  }

  .brand-pill {
    padding: 8px 10px;
  }

  .brand-pill span:last-child {
    display: none;
  }

  .refresh-button {
    min-height: 36px;
    padding: 0 12px;
  }

  .nav-pills {
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav-pill {
    min-width: auto;
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: .78rem;
  }

  .bracket-tab {
    display: none;
  }

  .status-strip {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: .76rem;
  }

  .hero,
  .summary-grid {
    display: none;
  }

  .view-shell {
    margin-top: 10px;
  }

  .mobile-home-mount {
    display: block;
  }

  #view-home #liveGamesMount,
  #view-home #prizeCenterMount,
  #view-home .home-grid {
    display: none;
  }

  .mobile-scoreboard {
    display: grid;
    gap: 12px;
  }

  .mobile-trophy-card,
  .mobile-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 16px;
    background:
      radial-gradient(circle at top right, rgba(246,201,69,.12), transparent 17rem),
      rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
  }

  .mobile-trophy-card {
    border-color: rgba(246,201,69,.35);
    background:
      radial-gradient(circle at top left, rgba(246,201,69,.20), transparent 18rem),
      rgba(255,255,255,.09);
  }

  .mobile-trophy-card small,
  .mobile-card small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-trophy-card h2 {
    margin: 6px 0 4px;
    font-size: 1.8rem;
    line-height: 1.05;
  }

  .mobile-trophy-card p,
  .mobile-helper {
    margin: 0;
    color: #dbeafe;
    font-weight: 850;
    line-height: 1.35;
  }

  .mobile-card-title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .mobile-card-title > span {
    font-size: 1.4rem;
  }

  .mobile-card-title strong {
    display: block;
    margin-top: 2px;
    color: white;
    font-size: 1.25rem;
  }

  .mobile-card-title > b {
    display: inline-grid;
    place-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 12px;
    color: #111827;
    background: var(--gold);
    font-size: .95rem;
  }

  .mobile-helper {
    margin-top: 10px;
    color: var(--muted);
    font-size: .86rem;
  }

  .mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .mobile-jump,
  .mobile-action {
    border: 1px solid rgba(125,211,252,.28);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(14,165,233,.12);
    font-weight: 1000;
  }

  .mobile-jump {
    min-height: 32px;
    padding: 0 12px;
    font-size: .8rem;
  }

  .mobile-next-list,
  .mobile-prize-list {
    display: grid;
    gap: 9px;
  }

  .mobile-next-game,
  .mobile-prize-list > div,
  .mobile-schedule-game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 11px;
    background: rgba(255,255,255,.06);
  }

  .mobile-next-game strong,
  .mobile-schedule-game strong {
    display: block;
    font-size: .96rem;
  }

  .mobile-next-game span,
  .mobile-schedule-game span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 850;
  }

  .mobile-next-game b,
  .mobile-schedule-game b {
    text-align: right;
    color: #fef3c7;
    font-size: .78rem;
    white-space: nowrap;
  }

  .mobile-next-game b em,
  .mobile-schedule-game b em {
    display: block;
    margin-top: 3px;
    color: white;
    font-style: normal;
    font-size: .94rem;
  }

  .mobile-prize-list > div {
    grid-template-columns: 26px minmax(0, .9fr) minmax(0, 1fr);
    align-items: start;
  }

  .mobile-prize-list strong {
    display: block;
    color: white;
    font-size: .88rem;
  }

  .mobile-prize-list b {
    display: block;
    color: #fef3c7;
    font-size: .88rem;
    text-align: right;
  }

  .mobile-prize-list small {
    grid-column: 2 / 4;
    margin-top: -4px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
  }

  .mobile-home-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .mobile-action {
    min-height: 44px;
    padding: 0 8px;
    font-size: .82rem;
  }

  .schedule-grid {
    display: none;
  }

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

  .mobile-day-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 14px;
    background: rgba(255,255,255,.08);
  }

  .mobile-day-card h3 {
    margin: 0 0 10px;
    color: #fef3c7;
    font-size: 1rem;
  }

  .mobile-schedule-game + .mobile-schedule-game {
    margin-top: 8px;
  }

  .standings-grid,
  .team-tile-list,
  .prize-choice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .standing-card,
  .team-tile,
  .prize-choice-card {
    border-radius: 20px;
    padding: 14px;
  }

  .standing-card {
    grid-template-columns: 40px 1fr;
  }

  .standing-score {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .score-box {
    flex-direction: row;
    justify-content: space-between;
  }

  .editor {
    display: none;
  }
}


.scorer-warning {
  border: 1px solid rgba(251,191,36,.35);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(251,191,36,.10);
}

.scorer-warning strong {
  display: block;
  color: #fef3c7;
  margin-bottom: 4px;
}

.scorer-warning p {
  margin: 0;
  color: #dbeafe;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
}

.scorer-warning details {
  margin-top: 10px;
}

.scorer-warning summary {
  cursor: pointer;
  color: #fef3c7;
  font-weight: 950;
}

.scorer-warning details div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 8px;
  margin-top: 8px;
  color: white;
  font-size: .82rem;
  font-weight: 850;
}

.scorer-warning details small {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}


.prize-choice-section p {
  white-space: normal;
}

.mini-prize-standings div.is-leader {
  border-color: rgba(246,201,69,.24);
  background: rgba(246,201,69,.08);
}


/* Mobile prize readability */
.prize-choice-leaders {
  display: grid;
  gap: 8px;
}

.prize-choice-leaders > div {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255,255,255,.07);
}

.prize-choice-leaders strong {
  color: #fff;
  font-size: .92rem;
}

.prize-choice-leaders span {
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}

.prize-choice-leaders b {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  color: #111827;
  background: var(--gold);
  font-size: .75rem;
  white-space: nowrap;
}

.prize-choice-current-text {
  margin: 0;
  color: #dbeafe;
  font-weight: 850;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .prize-choice-grid {
    gap: 10px;
  }

  .prize-choice-card {
    border-radius: 18px;
    padding: 13px;
  }

  .prize-choice-card.featured {
    grid-column: auto;
  }

  .prize-choice-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 10px;
  }

  .prize-choice-top span {
    margin-bottom: 4px;
    font-size: 1.25rem;
  }

  .prize-choice-top small {
    margin-bottom: 2px;
    font-size: .63rem;
    letter-spacing: .12em;
  }

  .prize-choice-top h2 {
    font-size: 1.2rem;
    line-height: 1.05;
  }

  .prize-choice-top > strong {
    min-height: 34px;
    padding: 0 11px;
    font-size: .86rem;
  }

  .prize-choice-section {
    margin-top: 9px;
    padding-top: 9px;
  }

  .prize-choice-section b {
    margin-bottom: 5px;
    font-size: .72rem;
    letter-spacing: .11em;
  }

  .prize-choice-section p {
    font-size: .9rem;
    line-height: 1.28;
  }

  .prize-choice-section ul {
    gap: 6px;
  }

  .prize-choice-section li {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .9rem;
  }

  .prize-choice-leaders {
    gap: 6px;
  }

  .prize-choice-leaders > div {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.05fr) auto;
    padding: 8px;
  }

  .prize-choice-leaders strong {
    font-size: .86rem;
  }

  .prize-choice-leaders span {
    font-size: .76rem;
  }

  .prize-choice-leaders b {
    font-size: .7rem;
    padding: 3px 7px;
  }
}

@media (max-width: 430px) {
  .prize-choice-leaders > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .prize-choice-leaders span {
    grid-column: 1 / -1;
    order: 3;
  }

  .prize-choice-leaders b {
    grid-column: 2;
    grid-row: 1;
  }
}

/* mobile nav compression */

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
  }

  .nav-pills {
    justify-content: flex-start;
  }
}


/* Simplified prize page */
.prize-page {
  display: grid;
  gap: 14px;
}

.prize-page-hero,
.grand-prize-summary-card,
.prize-rules-strip,
.simple-prize-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.prize-page-hero {
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(125,211,252,.14), transparent 18rem),
    rgba(255,255,255,.08);
}

.prize-page-hero h2 {
  max-width: 760px;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.05;
}

.prize-page-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

.grand-prize-summary-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 18px;
  border-color: rgba(246,201,69,.36);
  background:
    radial-gradient(circle at top left, rgba(246,201,69,.16), transparent 20rem),
    rgba(255,255,255,.09);
}

.grand-prize-summary-copy > span {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.grand-prize-summary-copy small,
.table-label {
  display: block;
  color: #7dd3fc;
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.grand-prize-summary-copy h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.grand-prize-summary-copy p,
.grand-prize-summary-copy em {
  color: #dbeafe;
  font-weight: 850;
  line-height: 1.35;
}

.grand-prize-summary-copy em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-style: normal;
}

.grand-prize-reward {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.grand-prize-reward b {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  color: #111827;
  background: var(--gold);
  font-size: 1rem;
}

.grand-prize-reward span {
  color: #fef3c7;
  font-weight: 1000;
}

.grand-prize-mini-table,
.prize-current-table {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.grand-prize-mini-table > div,
.prize-current-table > div {
  display: grid;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255,255,255,.07);
}

.grand-prize-mini-table > div {
  grid-template-columns: 28px minmax(0, 1fr) 48px;
}

.prize-current-table > div {
  grid-template-columns: 28px minmax(0, .8fr) minmax(0, 1.4fr) 48px;
}

.grand-prize-mini-table > div.is-leading,
.prize-current-table > div.is-leading {
  background: rgba(246,201,69,.11);
  border: 1px solid rgba(246,201,69,.22);
}

.grand-prize-mini-table span,
.prize-current-table span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #111827;
  background: #e5e7eb;
  font-size: .78rem;
  font-weight: 1000;
}

.grand-prize-mini-table .is-leading span,
.prize-current-table .is-leading span {
  background: var(--gold);
}

.grand-prize-mini-table strong,
.prize-current-table strong {
  color: white;
  font-weight: 1000;
}

.grand-prize-mini-table b,
.prize-current-table b {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-size: .84rem;
  font-weight: 1000;
}

.prize-current-table em {
  color: #dbeafe;
  font-size: .82rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}

.prize-current-empty {
  margin-top: 10px;
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  font-weight: 900;
}

.prize-rules-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.prize-rules-strip > div {
  padding: 14px;
  background: rgba(255,255,255,.04);
}

.prize-rules-strip strong,
.prize-rules-strip span {
  display: block;
}

.prize-rules-strip strong {
  color: #fef3c7;
  font-size: .86rem;
}

.prize-rules-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.3;
}

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

.simple-prize-card {
  padding: 16px;
}

.simple-prize-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.simple-prize-top span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.simple-prize-top small {
  display: block;
  color: #7dd3fc;
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.simple-prize-top h3 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.simple-prize-payout {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.simple-prize-payout b {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  color: #111827;
  background: var(--gold);
  font-weight: 1000;
}

.simple-prize-payout em {
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 1000;
}

.simple-prize-rule {
  margin: 12px 0;
  color: #dbeafe;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.35;
}

.simple-prize-current {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
}

.simple-prize-current-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.simple-prize-current-title strong {
  color: #fef3c7;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.simple-prize-current-title span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  text-align: right;
}

@media (max-width: 860px) {
  .grand-prize-summary-card,
  .prize-card-stack,
  .prize-rules-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .prize-page {
    gap: 10px;
  }

  .prize-page-hero,
  .grand-prize-summary-card,
  .simple-prize-card {
    border-radius: 18px;
    padding: 13px;
  }

  .prize-page-hero h2 {
    font-size: 1.35rem;
  }

  .prize-page-hero p,
  .simple-prize-rule {
    font-size: .86rem;
  }

  .grand-prize-summary-copy > span {
    font-size: 1.45rem;
  }

  .grand-prize-summary-copy h2 {
    font-size: 1.25rem;
  }

  .prize-rules-strip {
    border-radius: 18px;
  }

  .prize-rules-strip > div {
    padding: 11px 13px;
  }

  .simple-prize-top h3 {
    font-size: 1.12rem;
  }

  .simple-prize-current-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-prize-current-title span {
    text-align: left;
  }

  .prize-current-table > div {
    grid-template-columns: 26px minmax(0, 1fr) 44px;
  }

  .prize-current-table em {
    grid-column: 2 / -1;
  }

  .grand-prize-mini-table b,
  .prize-current-table b {
    height: 28px;
    min-width: 34px;
  }
}


/* Desktop prize page width fix */
#prizeChoices.prize-choice-grid {
  display: block;
}

#prizeChoices .prize-page {
  width: 100%;
}

@media (min-width: 861px) {
  #view-prizes {
    width: 100%;
  }

  #prizeChoices .prize-page-hero,
  #prizeChoices .grand-prize-summary-card,
  #prizeChoices .prize-rules-strip,
  #prizeChoices .prize-card-stack {
    width: 100%;
  }

  #prizeChoices .prize-card-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Prize completion progress */
.simple-prize-progress {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  padding: 10px;
  margin: 10px 0 12px;
  background: rgba(255,255,255,.06);
}

.simple-prize-progress strong,
.simple-prize-progress span {
  display: block;
}

.simple-prize-progress strong {
  color: #fef3c7;
  font-size: .86rem;
}

.simple-prize-progress span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.simple-prize-progress i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.simple-prize-progress i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #facc15);
}

.prize-current-table em small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 850;
}

@media (max-width: 640px) {
  .simple-prize-progress {
    padding: 9px;
    margin: 9px 0 11px;
  }

  .simple-prize-progress strong {
    font-size: .8rem;
  }

  .simple-prize-progress span {
    font-size: .72rem;
  }

  .prize-current-table em small {
    font-size: .68rem;
  }
}


/* Home prize card completion progress */
.mini-prize-progress {
  display: grid;
  gap: 7px;
  margin: 10px 0;
  border-radius: 14px;
  padding: 9px;
  background: rgba(255,255,255,.055);
}

.mini-prize-progress strong,
.mini-prize-progress span {
  display: block;
}

.mini-prize-progress strong {
  color: #fef3c7;
  font-size: .78rem;
  font-weight: 1000;
}

.mini-prize-progress span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.2;
}

.mini-prize-progress i {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.mini-prize-progress i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #facc15);
}

.mini-prize-standings span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .mini-prize-progress {
    padding: 8px;
    margin: 9px 0;
  }

  .mini-prize-progress strong {
    font-size: .74rem;
  }

  .mini-prize-progress span,
  .mini-prize-standings span small {
    font-size: .66rem;
  }
}


/* Align Home Prize Center progress cards */
@media (min-width: 861px) {
  .prize-grid .prize-card {
    display: flex;
    flex-direction: column;
  }

  .prize-grid .prize-card > strong {
    min-height: 38px;
  }

  .prize-grid .prize-card > label {
    min-height: 44px;
  }

  .prize-grid .prize-card > p {
    min-height: 22px;
  }

  .prize-grid .prize-card > em {
    min-height: 38px;
  }

  .prize-grid .mini-prize-progress {
    min-height: 76px;
    display: grid;
    align-content: start;
  }

  .prize-grid .mini-prize-progress i {
    align-self: end;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .prize-grid .prize-card > label {
    min-height: 54px;
  }

  .prize-grid .prize-card > em {
    min-height: 48px;
  }

  .prize-grid .mini-prize-progress {
    min-height: 86px;
  }
}

@media (max-width: 860px) {
  .prize-grid .mini-prize-progress {
    margin-top: 10px;
  }
}


/* Dynamic summary cards */
.summary-card strong {
  overflow-wrap: anywhere;
}

.summary-card span {
  min-height: 1em;
}

@media (min-width: 861px) {
  .summary-grid {
    align-items: stretch;
  }

  .summary-card {
    min-width: 0;
  }
}


/* Mobile prize points alignment fix */
@media (max-width: 640px) {
  .prize-current-table > div {
    grid-template-columns: 38px minmax(0, 1fr) 54px;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .prize-current-table > div > span {
    grid-column: 1;
    grid-row: 1;
  }

  .prize-current-table > div > strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .prize-current-table > div > b {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }

  .prize-current-table > div > em {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: 4px;
    min-width: 0;
  }

  .mobile-prize-list > div {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .mobile-prize-list b {
    white-space: normal;
    text-align: right;
    max-width: 155px;
  }

  .mobile-prize-list small {
    grid-column: 2 / 4;
    font-size: .76rem;
    line-height: 1.25;
  }
}

@media (max-width: 430px) {
  .prize-current-table > div {
    grid-template-columns: 34px minmax(0, 1fr) 50px;
  }

  .prize-current-table > div > em {
    grid-column: 2 / 4;
  }

  .mobile-prize-list b {
    max-width: 130px;
  }
}
