@font-face {
  font-family: "BubbleGum";
  src: url("/t1/assets/fonts/BubbleGum.woff2") format("woff2"),
    url("/t1/assets/fonts/BubbleGum.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Freshman";
  src: url("/t1/assets/fonts/Freshman.woff2") format("woff2"),
    url("/t1/assets/fonts/Freshman.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f1320;
  --bg-soft: #171d2c;
  --panel: #272b36;
  --panel-soft: rgba(39, 43, 54, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --gold: #ffd100;
  --green: #22a75d;
  --green-soft: rgba(34, 167, 93, 0.15);
  --blue: #25a4c5;
  --pink: #ffafbd;
  --orange: #fbab7e;
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(37, 164, 197, 0.08), transparent 35%),
    linear-gradient(180deg, #131826 0%, #0f1320 100%);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.sportsbook-header {
  background: #0f1320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sportsbook-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.sportsbook-brand img,
.sportsbook-footer-logo img {
  max-height: 48px;
}

.sportsbook-nav,
.sportsbook-header-actions,
.sportsbook-socials,
.sportsbook-footer-socials,
.sportsbook-footer-legal {
  display: flex;
  align-items: center;
}

.sportsbook-nav {
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.sportsbook-nav a,
.sportsbook-button {
  color: #fff;
  font-family: Freshman, sans-serif;
  font-size: 14px;
  letter-spacing: 0.7px;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sportsbook-nav a:hover,
.sportsbook-nav a.is-active,
.sportsbook-button:hover {
  opacity: 1;
}

.sportsbook-header-actions {
  gap: 16px;
}

.sportsbook-socials {
  gap: 6px;
}

.sportsbook-socials a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
}

.sportsbook-socials img {
  max-width: 16px;
  max-height: 16px;
}

.sportsbook-button {
  padding: 8px 25px;
  border-radius: 999px;
  border: 2px solid var(--green);
  opacity: 1;
}

.sportsbook-button:hover {
  background: var(--green);
}

.leaderboard-page {
  padding: 32px 0 90px;
}

.leaderboard-hero,
.overview-section,
.board-section {
  margin-bottom: 30px;
}

.page-title-row,
.section-heading,
.board-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.page-title-row.compact {
  align-items: center;
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: Freshman, sans-serif;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--green);
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
.section-heading h2 {
  font-family: Freshman, sans-serif;
  font-weight: normal;
  letter-spacing: 1.8px;
  color: #fff;
}

h1 {
  font-size: clamp(34px, 5vw, 42px);
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 32px);
}

.page-copy {
  margin-top: 12px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(34, 167, 93, 0.35);
  background: rgba(34, 167, 93, 0.12);
  color: #fff;
  font-family: Freshman, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.board-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.year-select-wrap {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.year-select-wrap span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.year-select-wrap select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel);
  color: #fff;
  padding: 0 14px;
  appearance: none;
}

.year-select-wrap select:focus {
  outline: none;
  border-color: rgba(34, 167, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 167, 93, 0.14);
}

.summary-grid,
.leader-cards {
  display: grid;
  gap: 20px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.summary-card,
.leader-card,
.wallet-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(39, 43, 54, 0.95), rgba(19, 23, 36, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.summary-card {
  padding: 22px 24px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-family: Freshman, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  color: #fff;
}

.summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.leader-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.leader-card {
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.leader-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #342145;
  font-family: BubbleGum, sans-serif;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leader-image {
  width: 132px;
  height: 132px;
  margin: 12px auto 18px;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.leader-card h3 {
  font-family: Freshman, sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.15;
}

.leader-card p {
  margin-top: 8px;
  color: var(--gold);
  font-family: Freshman, sans-serif;
  font-size: 15px;
}

.leader-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.board-section {
  position: relative;
}

.board-heading {
  align-items: center;
}

.tablist {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: Freshman, sans-serif;
  font-size: 15px;
  letter-spacing: 0.9px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.is-active {
  background: var(--green-soft);
  color: #fff;
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0 0;
  padding: 22px 24px;
}

.wallet-panel[hidden] {
  display: none;
}

.wallet-panel h3 {
  font-family: Freshman, sans-serif;
  font-size: 19px;
  font-weight: normal;
  margin-bottom: 8px;
}

.wallet-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.wallet-button,
.load-more-button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-family: BubbleGum, sans-serif;
  font-size: 14px;
  box-shadow: 0 15px 25px rgba(34, 167, 93, 0.25);
}

.wallet-button {
  min-height: 48px;
  padding: 0 22px;
}

.wallet-button:disabled,
.load-more-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.board-toolbar {
  margin: 22px 0 14px;
  align-items: end;
}

.search-field {
  display: block;
  width: min(420px, 100%);
}

.search-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--panel);
  color: #fff;
  padding: 0 16px;
}

.search-field input:focus {
  outline: none;
  border-color: rgba(34, 167, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 167, 93, 0.14);
}

.results-copy,
.loading-state,
.empty-state {
  color: var(--muted);
}

.results-copy {
  font-size: 14px;
}

.tourn-one-list {
  margin-top: 18px;
}

.tourn-one-row-card {
  background: url("/t1/assets/images/list-bg.png");
  background-size: cover;
  background-position: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tourn-one-row-header {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.main-row-content {
  display: grid;
  grid-template-columns: 50px 40px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.accessory-row-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.t-num h3 {
  margin: 0;
  font-family: BubbleGum, sans-serif;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
}

.t-img img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.t-ti h2 {
  margin: 0;
  font-family: Freshman, sans-serif;
  font-size: 17px;
  font-weight: normal;
  line-height: 1.1;
}

.trm-rund-one ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 40px);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.trm-rund-one li {
  display: grid;
  gap: 4px;
  text-align: center;
}

.trm-rund-one span {
  color: #c6c3c3;
  font-size: 10px;
}

.trm-rund-one h3 {
  margin: 0;
  font-family: Freshman, sans-serif;
  font-size: 16px;
  background: linear-gradient(183.39deg, #ffc3a0 -2.49%, #ffafbd 92.33%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.trm-rund-one li.completed h3 {
  background: linear-gradient(225deg, #a5eeff 15%, #25a4c5 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.trm-rund-one li.pending h3 {
  background: linear-gradient(236.31deg, #f7ce68 15.2%, #fbab7e 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.trm-rund-one li.in h3 {
  background: linear-gradient(236.31deg, #fcf9ab 0%, #40f392 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.total-score h3 {
  margin: 0;
  color: var(--gold);
  font-family: Freshman, sans-serif;
  font-size: 20px;
  font-weight: normal;
  white-space: nowrap;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 0;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.load-more-button {
  padding: 12px 28px;
}

.sportsbook-footer {
  padding: 40px 0;
  background: url("/images/footer_bg.png") center/cover no-repeat, #0f1320;
}

.sportsbook-footer-top,
.sportsbook-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sportsbook-footer-spacer {
  min-width: 48px;
}

.sportsbook-footer-socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sportsbook-footer-socials img {
  max-height: 45px;
}

.sportsbook-footer-bottom {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sportsbook-footer-bottom p {
  color: var(--muted);
}

.sportsbook-footer-legal {
  gap: 16px;
  flex-wrap: wrap;
}

.sportsbook-footer-legal a {
  font-family: Freshman, sans-serif;
  color: #fff;
}

.sportsbook-footer-legal a:hover {
  color: var(--green);
}

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

  .sportsbook-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }
}

@media (max-width: 991px) {
  .summary-grid,
  .leader-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-title-row,
  .section-heading,
  .board-toolbar,
  .hero-actions,
  .board-heading-actions,
  .sportsbook-footer-top,
  .sportsbook-footer-bottom,
  .wallet-panel,
  .sportsbook-header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .tourn-one-row-header,
  .accessory-row-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .summary-grid,
  .leader-cards {
    grid-template-columns: 1fr;
  }

  .trm-rund-one ul {
    grid-template-columns: repeat(6, 40px);
    gap: 8px;
  }

  .main-row-content {
    grid-template-columns: 40px 40px 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .sportsbook-nav {
    gap: 14px;
  }

  .sportsbook-nav a,
  .sportsbook-button {
    font-size: 12px;
  }

  .tablist {
    width: 100%;
    justify-content: center;
  }

  .tab-button {
    flex: 1 1 auto;
    text-align: center;
  }
}
