.home-hero { margin-block-end: var(--app-space-xl); }
/* CSS-only crossfade carousel -- no JS. Three stacked banners faded in turn
   via negative animation-delays so they're staggered from t=0. */
.home-hero-carousel {
  position: relative;
  aspect-ratio: 1280 / 512;
  border-radius: var(--app-radius, 0.75rem);
  overflow: hidden;
  margin-block-end: var(--app-space-lg);
  background: var(--app-color-bg-raised);
}
.home-hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.home-hero-carousel img:nth-child(1) { animation-delay: 0s; }
.home-hero-carousel img:nth-child(2) { animation-delay: -16s; }
.home-hero-carousel img:nth-child(3) { animation-delay: -8s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-carousel img { animation: none; opacity: 0; }
  .home-hero-carousel img:nth-child(1) { opacity: 1; }
}
.home-hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-block-end: var(--app-space-2xs); }
.home-hero .home-tagline {
  font-size: 1.25rem;
  color: var(--app-color-fg-muted);
  margin-block-end: var(--app-space);
}

.home-section { margin-block: var(--app-space-xl); }
.home-section > h2 { margin-block-end: var(--app-space); }

/* One shared 4-column grid for Looking for Group, Tools, and Our Games -
   equal widths, rows line up across sections since each has 4 cards. */
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--app-space);
}
@media (max-width: 720px) {
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-card {
  display: block;
  padding: var(--app-space);
  background: var(--app-color-bg-raised);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.75rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.home-card:hover { border-color: var(--app-color-accent); transform: translateY(-2px); }
.home-card h3 { margin: 0 0 0.25rem; color: var(--app-color-accent); }
.home-card p { margin: 0; color: var(--app-color-fg-muted); font-size: 0.95rem; }

/* Recent sessions: a vertical list of full-width rows. Different shape from
   home-cards (no grid, no images, terse two-line content) so it visually
   contrasts the Our Games card row above it. */
.home-recent { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--app-space-sm); }
.home-recent-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--app-space-sm);
  padding: var(--app-space-sm) var(--app-space);
  background: var(--app-color-bg-raised);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.5rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.home-recent-link:hover { border-color: var(--app-color-accent); transform: translateX(2px); }
.home-recent-title { font-weight: 600; color: var(--app-color-accent); }
.home-recent-meta { color: var(--app-color-fg-muted); font-size: 0.95rem; }

/* Logged-out join band: a centered call to make an account, sitting right
   after the intro so the pitch leads straight into the ask, above the rows. */
.home-join {
  text-align: center;
  padding: var(--app-space-lg);
  background: var(--app-color-bg-raised);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.75rem);
}
.home-join h2 { margin-block-start: 0; }
.home-join p { color: var(--app-color-fg-muted); max-width: 46rem; margin-inline: auto; }
.home-join-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--app-space-sm);
  justify-content: center;
  margin-block-start: var(--app-space);
}
.home-join-sub { font-size: 0.9rem; margin-block-start: var(--app-space-sm); }

.home-newsletter { max-width: 32rem; }
.home-newsletter-form { display: flex; flex-wrap: wrap; gap: var(--app-space-sm); margin-block-start: var(--app-space-sm); }
.home-newsletter-form input[type=email] {
  flex: 1 1 14rem;
  padding: 0.6rem 0.9rem;
  font: inherit;
  color: var(--app-color-fg);
  background: var(--app-color-bg-raised);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.5rem);
}
