/* =========================
   Homepage (Logged In)
   ========================= */

.welcome-back {
  font-size: clamp(1.6rem, 1.5rem + 1.5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
}

.card .home-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 var(--space-lg) 0;
}

.card .home-title .name {
  font-size: clamp(1rem, 0.8rem + 1.2vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.card .home-races {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card .home-packs {
  display: flex;
  flex-direction: column;
}

.card .home-packs .count {
  color: var(--color-text-muted);
  font-size: clamp(0.8rem, 0.5rem + 1vw, 1.2rem);
  font-weight: 600;
  text-align: center;
}

.card .home-packs .pack-summaries {
  display: flex;
  flex-direction: column;
  font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  font-weight: 600;
  gap: var(--space-sm);
}

.card .home-packs .pack-summaries .pack-summary {
  align-items: center;
  display: flex;
  gap: var(--space-lg);
  justify-content: space-between;
}

/* =========================
   Homepage (Logged Out)
   ========================= */

/* Full-width explainer: hero copy stays on its own so the 4-step loop that
   follows can share the first screen with it instead of a side-by-side
   register form. Registration lives in its own section further down. */
.hero-intro {
  background: var(--color-background-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--spacing-unit) * 3);
  text-align: center;
}

.hero-intro .hero-logo {
  max-width: 220px;
  width: 100%;
}

.hero-intro .hero-eyebrow {
  color: var(--color-accent);
  font-size: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-intro .slogan-1 {
  font-size: clamp(0.5rem, 0.4rem + 3vw, 2.9rem);
  font-weight: 900;
  margin-top: 0.25rem;
  /* This is an <h1>, which carries a browser default bottom margin the
     previous <div> did not. Zero it so the slogan pair stays tight. */
  margin-bottom: 0;
}

/* One-line explainer under the slogan: tells first-time visitors what the game
   actually is before they scroll to the "how it works" tiles. */
.hero-intro .slogan-context {
  color: var(--color-text-muted);
  font-size: clamp(0.7rem, 0.55rem + 1vw, 1.3rem);
  font-weight: 600;
  margin-top: 0.75rem;
  max-width: 46rem;
}

.hero-intro .register-login-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.2rem, 2vw, 0.8rem);
  justify-content: center;
  margin: 1rem 0 0 0;
}

.home-register-section {
  margin: calc(var(--spacing-unit) * 3) 0;
}

.hero-tile {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.hero-tile > * {
  width: 100%;
}

.hero-tile-title {
  font-size: clamp(0.7rem, 0.6rem + 0.6vw, 1.25rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.card .register-text {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.8rem);
  font-weight: 700;
  text-align: center;
}

/* Adjust font sizes when screen becomes 1 column */
@media (max-width: 991.99px) {
  .hero-intro .responsive-main-col .slogan-1 {
    font-size: clamp(0.9rem, 0.3rem + 4vw, 3.3rem);
  }
  .hero-intro .responsive-main-col .slogan-2 {
    font-size: clamp(0.7rem, 0.3rem + 3.2vw, 3.1rem);
  }
  .hero-intro .slogan-context {
    font-size: clamp(0.9rem, 0.7rem + 1.2vw, 1.5rem);
  }
  .hero-tile-title {
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem);
  }
  .card .register-text {
    font-size: clamp(1.2rem, 1.0rem + 2.5vw, 2.8rem);
  }
}

.top-rider-card-wrapper {
  max-width: 300px;
}


.card.home-socials-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: auto;
  padding-block: calc(var(--spacing-unit) * 2);
}

.card .home-socials-body {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
}

.card .home-socials-body .social-link {
  color: var(--color-text);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.card .home-socials-body .social-link:hover {
  transform: scale(1.1);
}

.card .home-socials-body .social-discord:hover {
  color: #5865F2;
}

.card .home-socials-body .social-instagram:hover {
  color: #E1306C;
}

.card .home-socials-body .social-tiktok:hover {
  color: #00f2ea;
}

/* --- Register perk line (logged-out hero register card) ------------------- */

.card .register-perk {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  text-align: center;
}

/* --- How It Works / USP sections (logged-out landing page) ---------------- */

.home-section-title {
  color: var(--color-text);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  margin: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
  text-align: center;
}

.home-step {
  height: 100%;
  position: relative;
}

.home-step-number {
  align-items: center;
  background: var(--color-accent);
  border-radius: 50%;
  color: var(--color-background-dark);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.home-step-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.home-usp-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: calc(var(--spacing-unit) * 2);
  text-align: center;
}

.home-usp-icon {
  font-size: 2rem;
  line-height: 1;
}

.home-usp-card h3 {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.home-usp-card p {
  color: var(--color-text-subtle);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.home-learn-more {
  color: var(--color-text-subtle);
  margin: calc(var(--spacing-unit) * 3) auto 0;
  max-width: 46rem;
  padding: 0 calc(var(--spacing-unit) * 2);
  text-align: center;
}

.home-learn-more a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-learn-more a:hover {
  color: var(--color-accent);
}

.home-cta-bottom {
  border-top: 1px solid var(--color-border);
  margin: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  text-align: center;
}

.home-cta-bottom h2 {
  color: var(--color-text);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.home-cta-bottom p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
