
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050713;
  --bg-alt: #0b0f24;
  --bg-card: #10152e;
  --bg-card-soft: #171d3d;
  --accent: #ffd166;
  --accent-soft: #ffb347;
  --accent-tx: #ff6b6b;
  --text: #f6f7ff;
  --muted: #9ca3c7;
  --border-subtle: #272b4a;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-soft: 0 22px 55px rgba(0, 0, 0, 0.55);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #1b2148 0, #050713 52%);
  color: var(--text);
  min-height: 100%;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hero {
  background: linear-gradient(135deg, #141a38, #090c1f);
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #232a4f, #0d1025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-pill img {
  height: 34px;
  display: block;
}

.hero-text h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.hero-sub {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-note {
  margin: 0;
  color: #fbe7a7;
  font-size: 0.86rem;
}

.tag {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions.secondary-row {
  margin-top: 10px;
}

.btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #ffb347, #ffd166);
  color: #1a1230;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  font-weight: 600;
}

.btn.secondary {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #050713;
  font-weight: 500;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn.accent {
  background: linear-gradient(135deg, #ff6b6b, #ffd166);
  color: #170f2c;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

.main {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.disclaimer-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  border: 1px solid rgba(255, 207, 134, 0.3);
}

.disclaimer-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8a3;
}

.disclaimer-card p {
  margin: 3px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px 15px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.how-it-works ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.how-it-works li + li {
  margin-top: 4px;
}

.prize-pots .prize-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  font-size: 0.9rem;
}

.prize-pots .prize-line span {
  margin-right: 4px;
}

.prize-pots .note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.medal {
  font-size: 1.1rem;
}

.leaderboard-section {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

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

.section-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, #151935, #050713);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(9, 13, 40, 0.95);
}

th, td {
  padding: 8px 10px;
  text-align: left;
}

th {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:nth-child(odd) {
  background: rgba(8, 12, 32, 0.9);
}

tbody tr:nth-child(even) {
  background: rgba(6, 10, 28, 0.9);
}

tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.18), rgba(6, 10, 28, 0.9));
}

tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.18), rgba(6, 10, 28, 0.9));
}

tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.18), rgba(6, 10, 28, 0.9));
}

td:nth-child(1) {
  width: 40px;
  font-variant-numeric: tabular-nums;
}

td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

.disclaimer-small {
  margin: 2px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .table-wrapper {
    overflow-x: auto;
  }
}


/* Compact but clean width for Create Game + Cash Out (tx_count) column on TX leaderboard */
#leaderboard th:nth-child(3),
#leaderboard td:nth-child(3) {
  width: 80px;
  max-width: 80px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}


#leaderboard th:nth-child(4),
#leaderboard td:nth-child(4),
#leaderboard th:nth-child(5),
#leaderboard td:nth-child(5),
#leaderboard th:nth-child(6),
#leaderboard td:nth-child(6),
#leaderboard th:nth-child(7),
#leaderboard td:nth-child(7) {
  text-align: right;
}
