:root {
  --bg: #f3f7ff;
  --bg-strong: #e9efff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --card: #ffffff;
  --text: #131d31;
  --muted: #5d6982;
  --line: rgba(18, 29, 49, 0.08);
  --primary: #2cc197;
  --primary-dark: #1fa57c;
  --secondary: #2d5df6;
  --secondary-soft: rgba(45, 93, 246, 0.12);
  --gold: #f7b32b;
  --shadow: 0 20px 45px rgba(19, 29, 49, 0.12);
  --hero-glow: radial-gradient(circle at top left, rgba(44, 193, 151, 0.28), transparent 48%),
    radial-gradient(circle at bottom right, rgba(45, 93, 246, 0.18), transparent 42%);
}

body.dark {
  --bg: #071322;
  --bg-strong: #0d1d2f;
  --surface: rgba(19, 31, 47, 0.82);
  --surface-strong: #122234;
  --card: #122234;
  --text: #edf5ff;
  --muted: #a7b5c8;
  --line: rgba(165, 186, 220, 0.12);
  --primary: #3dd4a7;
  --primary-dark: #25b38c;
  --secondary: #6f8bff;
  --secondary-soft: rgba(111, 139, 255, 0.12);
  --gold: #f9c75d;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  --hero-glow: radial-gradient(circle at top left, rgba(61, 212, 167, 0.2), transparent 42%),
    radial-gradient(circle at bottom right, rgba(111, 139, 255, 0.2), transparent 40%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    var(--hero-glow),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 48px;
}

.topbar,
.site-footer,
.section-spacing,
.glass-card {
  backdrop-filter: blur(8px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
}

body.dark .topbar {
  background: rgba(10, 18, 29, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(45, 93, 246, 0.25);
}

.brand-logo.small {
  width: 38px;
  height: 38px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.brand-name {
  text-transform: lowercase;
}

.brand-domain {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.98rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(19, 29, 49, 0.08);
}

.toggle-icon {
  display: inline-block;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.96rem 1.6rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 14px 28px rgba(45, 93, 246, 0.25);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.section-spacing {
  margin-top: 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
  padding: 50px 0 18px;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(44, 193, 151, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-copy h1,
.section-heading h2,
.arena-copy h2 {
  margin: 18px 0 16px;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  max-width: 670px;
  background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 45%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.arena-copy p,
.game-card p,
.step-card p,
.quote,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.league-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.league-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
}

body.dark .league-strip span {
  background: rgba(255, 255, 255, 0.03);
}

.mini-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
}

.mini-stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
}

.mini-stats strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 7px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  min-height: 420px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(233, 239, 255, 0.78));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 26px 24px 18px;
  transform: rotate(-2deg) translateY(6px);
}

body.dark .main-panel {
  background: linear-gradient(160deg, rgba(18, 34, 52, 0.72), rgba(8, 19, 34, 0.82));
}

.main-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.panel-header,
.arena-header,
.card-meta,
.leaderboard-row,
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-pill,
.time-pill,
.small-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-pill {
  background: rgba(255, 87, 87, 0.12);
  color: #ef5350;
}

.time-pill {
  background: rgba(45, 93, 246, 0.12);
  color: var(--secondary);
}

.match-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding: 18px 10px;
}

.team-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px;
  text-align: center;
}

body.dark .team-card {
  background: rgba(11, 19, 31, 0.4);
}

.team-tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 12px;
}

.team-one {
  color: var(--secondary);
}

.team-two {
  color: var(--primary-dark);
}

.team-card strong {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.08em;
}

.versus {
  font-weight: 900;
  color: var(--muted);
  letter-spacing: -0.05em;
}

.mini-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mini-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  background: rgba(18, 29, 49, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

body.dark .mini-badges span {
  background: rgba(255, 255, 255, 0.02);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 5;
  backdrop-filter: blur(10px);
}

.card-one {
  left: 8px;
  bottom: 18px;
  transform: rotate(-8deg);
}

.card-two {
  right: 4px;
  top: 36px;
  transform: rotate(7deg);
}

.small-label {
  background: rgba(247, 179, 43, 0.15);
  color: #b56a00;
  padding: 0.45rem 0.7rem;
}

.floating-card strong,
.floating-card em {
  display: block;
}

.floating-card em {
  color: var(--muted);
  font-style: normal;
}

.game-section,
.steps,
.community {
  position: relative;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.arena-copy h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
}

.games-grid,
.steps-grid,
.testimonial-grid {
  display: grid;
  gap: 22px;
}

.games-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.game-card,
.step-card,
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover,
.step-card:hover,
.quote:hover {
  transform: translateY(-8px);
  border-color: rgba(45, 93, 246, 0.3);
  box-shadow: 0 26px 45px rgba(18, 29, 49, 0.14);
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 2rem;
  margin-bottom: 16px;
}

.cricket {
  background: linear-gradient(135deg, rgba(44, 193, 151, 0.18), rgba(45, 93, 246, 0.12));
}

.football {
  background: linear-gradient(135deg, rgba(45, 93, 246, 0.14), rgba(255, 179, 0, 0.14));
}

.arcade {
  background: linear-gradient(135deg, rgba(247, 179, 43, 0.14), rgba(44, 193, 151, 0.12));
}

.game-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.card-meta {
  margin-top: 18px;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.arena {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(44, 193, 151, 0.14);
  color: var(--primary-dark);
  font-weight: 900;
}

.arena-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.arena-header {
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(247, 179, 43, 0.22), rgba(255, 204, 102, 0.1));
  border-radius: 18px;
  font-size: 1.8rem;
}

.arena-header strong,
.arena-header small {
  display: block;
}

.arena-header small {
  color: var(--muted);
  margin-top: 6px;
}

.leaderboard-row {
  gap: 16px;
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.leaderboard-row span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-weight: 800;
}

.leaderboard-row strong {
  flex: 1;
}

.leaderboard-row em {
  color: var(--muted);
  font-style: normal;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.step-number {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.08em;
}

.quote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.quote footer {
  margin-top: 18px;
  color: var(--text);
  font-weight: 700;
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 80px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
}

body.dark .site-footer {
  background: rgba(10, 18, 29, 0.5);
}

.footer-brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-footer a {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .arena {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .games-grid,
  .steps-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    padding: 16px 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .card-one,
  .card-two {
    position: static;
    margin-top: 16px;
  }

  .hero-visual {
    display: block;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
