.splash-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 43, 61, 0.96), rgba(30, 90, 122, 0.94));
  z-index: 1200;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.32s ease;
}

.splash-screen.is-hiding {
  opacity: 0;
}

.splash-text {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: left;
}

.splash-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px -28px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.splash-logo-lr {
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 5.5rem;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--brand-logo-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.splash-brand-copy {
  display: grid;
  gap: 0.3rem;
}

.splash-brand-name {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.splash-slogan {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.home-hero {
  margin-top: 0;
}

.home-feature-grid .panel {
  min-height: 100%;
}

.home-page .shell-main {
  padding-top: 0.95rem;
  padding-bottom: 0.7rem;
}

.home-page .shell-main .container {
  display: grid;
  gap: 1.6rem;
}

.home-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 1.3rem;
  align-items: start;
}

.home-intro {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.home-page .page-title {
  max-width: none;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-page .subtitle {
  max-width: 39rem;
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.72;
}

.home-page .stats-container {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 0.25rem;
  gap: 1rem;
}

.home-page .stat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.6rem 1.25rem;
  border-radius: 20px;
  text-align: left;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.home-page .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.home-page .stat-number {
  margin-bottom: 0.65rem;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1;
}

.home-page .stat-label {
  font-size: clamp(0.82rem, 1.45vw, 0.98rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.quick-actions,
.leaderboard-preview {
  margin-top: 0;
}

.home-page .quick-actions h2,
.home-page .leaderboard-preview h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  letter-spacing: -0.03em;
}

.home-page .action-card {
  position: relative;
  min-height: 100%;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.55rem 1.4rem;
  border-radius: 22px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.28);
}

.home-page .action-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.88), rgba(37, 99, 235, 0.14));
}

.home-page .action-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.home-page .action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-hero {
  position: relative;
  padding: 1.7rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.home-hero p {
  max-width: 42rem;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
}

.home-hero .button-row {
  margin-top: 1.2rem;
}

.home-hero .btn {
  min-width: 10rem;
}

body.theme-dark.home-page .stat-card,
body.theme-dark.home-page .home-hero,
body.theme-dark.home-page .action-card {
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 40px -28px rgba(2, 8, 23, 0.52);
}

body.theme-dark.home-page .stat-card {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.95));
}

body.theme-dark.home-page .home-hero {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

body.theme-dark.home-page .action-card {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
}

@media (max-width: 640px) {
  .splash-brand-lockup {
    gap: 0.8rem;
    padding: 0.95rem 1.05rem;
    border-radius: 20px;
  }

  .splash-logo-lr {
    width: 4.6rem;
    height: 4.6rem;
    flex-basis: 4.6rem;
  }

  .splash-brand-name {
    font-size: 1.7rem;
  }

  .splash-slogan {
    font-size: 0.92rem;
    padding: 0;
  }

  .home-page .shell-main {
    padding-top: 0.75rem;
    padding-bottom: 0.6rem;
  }

  .home-page .shell-main .container {
    gap: 1.3rem;
  }

  .home-top-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .home-page .page-title {
    max-width: none;
    font-size: clamp(1.95rem, 8vw, 2.8rem);
    line-height: 1.02;
  }

  .home-page .subtitle {
    font-size: 1rem;
    line-height: 1.62;
  }

  .home-page .stats-container {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    margin-top: 0;
    gap: 0.8rem;
  }

  .home-page .stat-card,
  .home-page .action-card,
  .home-hero {
    border-radius: 18px;
  }

  .home-page .stat-card {
    padding: 1.2rem 0.8rem;
  }

  .home-page .stat-number {
    margin-bottom: 0.45rem;
    font-size: clamp(1.9rem, 6.8vw, 2.45rem);
  }

  .home-page .stat-label {
    font-size: clamp(0.72rem, 2.4vw, 0.84rem);
  }

  .home-page .quick-actions h2,
  .home-page .leaderboard-preview h2 {
    margin-bottom: 0.85rem;
    font-size: 1.38rem;
  }

  .home-page .action-card {
    padding: 1.3rem 1.15rem;
  }

  .home-hero {
    padding: 1.3rem 1.15rem;
  }

  .home-hero .btn {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .splash-brand-lockup {
    gap: 0.7rem;
    width: min(calc(100vw - 32px), 22rem);
    padding: 0.85rem 0.95rem;
  }

  .splash-logo-lr {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
    border-radius: 0;
  }

  .splash-brand-name {
    font-size: 1.45rem;
  }

  .splash-slogan {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

.home-page .site-footer {
  margin-top: 0.9rem;
}
