:root {
  --bg-deep: #0a0a0b;
  --bg: #121212;
  --surface: #1a1a1c;
  --surface-elevated: #242428;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --orange: #ff7a45;
  --orange-glow: rgba(255, 122, 69, 0.35);
  --lime: #8eec69;
  --lime-glow: rgba(142, 236, 105, 0.2);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Animated ambient backdrop */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(165deg, #0f1218 0%, var(--bg-deep) 55%, #0a0c10 100%);
}

.ambient-mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 122, 69, 0.22), transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(142, 236, 105, 0.16), transparent 38%),
    radial-gradient(circle at 55% 78%, rgba(120, 140, 255, 0.1), transparent 45%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(3%, -2%) scale(1.05);
  }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.ambient-orb--orange {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -4%;
  background: rgba(255, 122, 69, 0.45);
  animation: orb-float 14s ease-in-out infinite;
}

.ambient-orb--lime {
  width: 220px;
  height: 220px;
  top: 42%;
  right: -2%;
  background: rgba(142, 236, 105, 0.35);
  animation: orb-float 11s ease-in-out infinite reverse;
}

.ambient-orb--violet {
  width: 180px;
  height: 180px;
  bottom: 18%;
  left: 38%;
  background: rgba(130, 150, 255, 0.25);
  animation: orb-float 16s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -18px);
  }
}

.speed-lines {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.04) 48px,
    rgba(255, 255, 255, 0.04) 50px
  );
  animation: lines-scroll 6s linear infinite;
}

@keyframes lines-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-80px);
  }
}

.spin-wheel {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255, 122, 69, 0.55);
  box-shadow:
    0 0 24px var(--orange-glow),
    inset 0 0 12px rgba(255, 122, 69, 0.15);
}

.spin-wheel::before,
.spin-wheel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
}

.spin-wheel::before {
  width: 82%;
  height: 3px;
}

.spin-wheel::after {
  width: 3px;
  height: 82%;
}

.spin-wheel--1 {
  width: 140px;
  height: 140px;
  top: 14%;
  right: 10%;
  animation: wheel-rotate 4s linear infinite;
}

.spin-wheel--2 {
  width: 96px;
  height: 96px;
  bottom: 22%;
  left: 8%;
  border-color: rgba(142, 236, 105, 0.5);
  animation: wheel-rotate 3s linear infinite reverse;
}

.spin-wheel--3 {
  width: 72px;
  height: 72px;
  bottom: 38%;
  right: 28%;
  opacity: 0.75;
  animation: wheel-rotate 2.5s linear infinite;
}

@keyframes wheel-rotate {
  to {
    transform: rotate(360deg);
  }
}

.route-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  opacity: 0.5;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(142, 236, 105, 0.08) 18px,
      rgba(142, 236, 105, 0.08) 20px
    ),
    linear-gradient(180deg, transparent 0%, rgba(255, 122, 69, 0.12) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
  animation: route-pulse 3s ease-in-out infinite;
}

@keyframes route-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main > section {
  background: rgba(10, 10, 11, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg *,
  .ambient-bg *::before,
  .ambient-bg *::after {
    animation: none !important;
  }
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff9a70;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1100px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px var(--orange-glow));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 20px 0 36px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--orange-glow), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, var(--lime-glow), transparent 60%);
  pointer-events: none;
}

.hero {
  background: transparent;
}

.hero .content {
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 24px 32px;
  align-items: start;
}

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

.hero-logo {
  width: min(160px, 40vw);
  margin: 0 0 12px;
  filter: drop-shadow(0 12px 40px var(--orange-glow));
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 10px;
}

.hero .tagline {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.hero-quote {
  min-height: 4.5em;
  margin: 0 0 14px;
  max-width: 520px;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: #d4d4d8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-stores {
  justify-content: flex-start;
}

.hero-stores .store-btn {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.hero-stores .store-btn svg {
  width: 22px;
  height: 22px;
}

.hero-club {
  background: rgba(26, 26, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-club-label {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-club-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.club-totals-panel--compact {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #d4d4d8;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

a.pill-link {
  color: #d4d4d8;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a.pill-link:hover {
  color: var(--text);
  border-color: rgba(255, 122, 69, 0.45);
  transform: translateY(-1px);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections */
section {
  padding: 48px 0;
}

#about {
  padding-top: 32px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  font-size: 1.05rem;
  color: #d4d4d8;
}

.about-card strong {
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 122, 69, 0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.2), rgba(142, 236, 105, 0.12));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.download-block {
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 122, 69, 0.12) 0%, var(--surface) 50%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 28px;
}

.download-block .section-lead {
  margin-inline: auto;
}

.club-totals-panel {
  background: rgba(26, 26, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.club-totals-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
}

.club-totals-panel[data-state="loading"] .club-totals-loading {
  display: flex;
}

.club-totals-panel[data-state="loading"] .club-totals-grid,
.club-totals-panel[data-state="loading"] .club-totals-empty,
.club-totals-panel[data-state="loading"] .club-totals-error {
  display: none !important;
}

.club-totals-panel[data-state="ready"] .club-totals-loading,
.club-totals-panel[data-state="ready"] .club-totals-empty,
.club-totals-panel[data-state="ready"] .club-totals-error {
  display: none !important;
}

.club-totals-panel[data-state="ready"] .club-totals-grid {
  display: grid !important;
}

.club-totals-panel[data-state="empty"] .club-totals-loading,
.club-totals-panel[data-state="empty"] .club-totals-grid,
.club-totals-panel[data-state="empty"] .club-totals-error {
  display: none !important;
}

.club-totals-panel[data-state="empty"] .club-totals-empty {
  display: block !important;
  text-align: center;
  color: var(--muted);
}

.club-totals-panel[data-state="error"] .club-totals-loading,
.club-totals-panel[data-state="error"] .club-totals-grid,
.club-totals-panel[data-state="error"] .club-totals-empty {
  display: none !important;
}

.club-totals-panel[data-state="error"] .club-totals-error {
  display: block !important;
  text-align: center;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.club-totals-panel--compact .club-totals-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.club-totals-panel--compact .club-stat--hero {
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.club-totals-panel--compact .club-stat--hero .club-stat-value {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
}

.club-totals-panel--compact .club-stat-value {
  font-size: 1.1rem;
}

.club-totals-panel--compact .club-totals-footnote {
  margin-top: 10px;
  font-size: 0.72rem;
}

.club-stat--hero {
  grid-column: 1 / -1;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.club-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.club-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.club-stat--hero .club-stat-value {
  font-size: clamp(2rem, 6vw, 2.75rem);
  color: var(--orange);
  text-shadow: 0 0 40px var(--orange-glow);
}

.club-totals-footnote {
  margin: 20px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .club-totals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .club-stat--hero {
    grid-column: 1 / -1;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 56px;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.developer-credit {
  margin: 0;
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.developer-credit a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.developer-credit a:hover {
  color: #ff9a70;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-logo {
    margin-inline: auto;
  }

  .hero .tagline,
  .hero-quote {
    margin-inline: auto;
  }

  .hero-badges,
  .hero-stores {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .site-header .inner {
    justify-content: center;
  }

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

  .club-totals-panel--compact .club-totals-grid {
    grid-template-columns: 1fr 1fr;
  }
}
