.home-main { overflow-x: hidden; }

.home-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--navy-deep);
}
.home-stage .hero-bleed {
  position: relative;
  flex: none;
  min-height: clamp(24rem, 56svh, 34rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  justify-content: start;
  justify-items: stretch;
  overflow: hidden;
  background: #0c1416;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 32, 36, 0.42) 0%, rgba(12, 32, 36, 0.16) 30%, rgba(12, 32, 36, 0.04) 50%, rgba(12, 32, 36, 0) 68%),
    linear-gradient(180deg, rgba(12, 32, 36, 0.06) 0%, rgba(12, 32, 36, 0) 42%, rgba(12, 32, 36, 0.26) 100%);
}
.home-stage .hero-copy {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 38rem;
  box-sizing: border-box;
  padding: 2.6rem 6vw 1.85rem;
  color: #fffdf8;
  justify-self: stretch;
}
.hero-kicker {
  margin: 0 0 0.4rem;
  color: var(--gold-soft, #f0d9a8);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.hero-countdown {
  margin: 0 0 0.65rem;
  color: #fffdf8;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-countdown-time {
  display: inline-block;
  margin-left: 0.15rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold, #f0c51a);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  background: var(--fmt-timed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.hero-best {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.7rem;
  max-width: 32rem;
  color: #fffdf8;
}
.hero-best-label {
  width: 100%;
  color: rgba(246, 241, 230, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-best-time {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cta, #f0b429);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.hero-best-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 253, 248, 0.92);
  font-size: 1.02rem;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-best--empty {
  color: rgba(246, 241, 230, 0.86);
  font-size: 0.98rem;
  font-weight: 650;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-badge.is-classic { background: var(--fmt-classic); }
.hero-badge.is-quick { background: var(--fmt-quick); }
.hero-badge.is-timed { background: var(--fmt-timed); }
.home-stage .hero-copy .hero-title,
.home-stage .hero-copy h1.hero-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.15rem);
  line-height: 0.96;
  margin: 0 0 0.55rem;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
  font-weight: 700;
}
.home-stage .hero-actions { margin-top: 0.85rem; }
.hero-copy .hero-pitch {
  margin: 0 0 0.5rem;
  color: #fffdf8;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 30rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero-copy .lead {
  color: rgba(246, 241, 230, 0.9);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 31rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero-count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  color: #fffdf8;
  font-weight: 700;
  font-size: 1.02rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero-count strong {
  color: var(--cta);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25em;
  font-weight: 700;
}
.hero-actions { display: flex; gap: 1.2rem; align-items: center; margin-top: 1.35rem; flex-wrap: wrap; }
.hero-actions .cta {
  background: var(--cta);
  color: var(--cta-ink) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  padding: 0.5rem 1rem;
  font-size: 1.02rem;
}

.showcase-grid {
  gap: 1.35rem;
}
/* Column counts come from app.css card/grid strategy — avoid forcing 4+1 orphans. */
.home-kind { margin: 0; }
.home-kind-lead { color: var(--muted); max-width: 46rem; margin: 0 0 1.2rem; line-height: 1.6; font-size: 1.06rem; }
.fmt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.2rem;
}
.fmt-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
}
.fmt-head .seek-fmt-lead { margin: 0; max-width: 34rem; }
.fmt-head .seek-fmt-all { margin: 0; }
.seek-fmt[data-fmt="classic"] h2 { color: var(--fmt-classic); }
.seek-fmt[data-fmt="quick"] h2 { color: var(--fmt-quick); }
.seek-fmt[data-fmt="timed"] h2 { color: var(--fmt-timed); }
.seek-fmt { margin: 0 0 2.6rem; }

.moments {
  padding: 3.4rem 6vw 3.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1.35rem;
  align-items: start;
}
.moments:has(> :only-child) {
  grid-template-columns: minmax(0, 40rem);
}
.moments:has(> .home-board + .home-board) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.moments:has(> .home-board + .home-board) > .home-board {
  min-width: 0;
}

.moments:not(:has(> .join-panel)):not(:has(> .home-board + .home-board)) {
  grid-template-columns: minmax(0, 40rem);
}
.home-board-week h2,
.home-board-alltime h2 {
  margin-bottom: 0.35rem;
}
.home-board-week .board-week-meta,
.home-board-alltime .board-week-meta {
  margin: -0.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.home-board-week .board-more,
.home-board-alltime .board-more {
  margin-top: 1rem;
}
.moments-more {
  grid-column: 1 / -1;
  margin: 0;
}
.moments-more .seek-fmt-all {
  margin-top: 0.15rem;
}
.home-board,
.join-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: 0 14px 30px rgba(18, 38, 43, 0.06);
}
.home-board h2,
.join-panel h2 {
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0.15rem 0 1rem;
}
.home-board .board-list {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.home-board .board-list li {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.home-board .board-list li:first-child { border-top: 0; padding-top: 0.15rem; }
.home-board .board-who {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.15rem 0.65rem;
  align-items: center;
  min-width: 0;
}
.home-board .board-ava {
  position: relative;
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: #efe8d6;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
}
.home-board .board-ava:has(.ach-badge) {
  background: transparent;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
}
.home-board .board-ava .ach-badge--inline {
  width: 2.3rem;
  height: 2.3rem;
}
.home-board .board-ava .ach-badge--inline .ach-badge-core {
  width: 1.75rem;
  height: 1.75rem;
  border-width: 1.5px;
}
.home-board .board-ava .ach-badge--inline .ach-badge-emoji {
  color: inherit;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}
.home-board .board-rank {
  display: grid; place-items: center;
  width: 1.55rem; height: 1.55rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cta);
  font-size: 0.72rem;
}
.home-board .board-name { color: var(--navy); }
.home-board .board-name-wrap {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}
.home-board .board-name-wrap .board-name,
.home-board .board-name-wrap a.board-name,
.home-board .board-name-wrap a.player-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-board a.board-name,
.home-board a.player-link { color: var(--navy); }
.home-board a.board-name:hover,
.home-board a.player-link:hover { color: var(--gold); }
.home-board .board-scene { grid-column: 2; color: var(--muted); font-size: 0.82rem; }
.home-board a.board-scene:hover { color: var(--fmt-classic); }
.home-board .board-time {
  color: var(--fmt-quick);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.home-board .board-more {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.5);
}
.home-board .board-date {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.home-board .board-list li.has-date .board-ava {
  grid-row: 1 / span 3;
}
.home-board .board-list li.has-date .board-time {
  align-self: start;
  padding-top: 0.2rem;
}
.home-board .board-list li.is-you {
  background: #f8efd4;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.28);
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.home-board .board-you-label {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
  color: #8a6d12;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
}
.join-panel .join-kicker { margin: 0 0 0.35rem; color: var(--fmt-timed); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; font-weight: 800; }
.join-panel .join-lead { margin: -0.3rem 0 1rem; color: var(--muted); line-height: 1.5; }
.join-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.45rem; }
.join-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.join-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.38rem;
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--fmt-timed);
  box-shadow: inset 0 0 0 2px #fff;
}
.join-price,
.join-price * {
  text-decoration: none;
}
.join-price { margin: 0 0 1rem; color: var(--navy); font-weight: 800; }
.join-price strong { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; }
.join-price-sep {
  display: inline;
  font: inherit;
  font-weight: 800;
  padding: 0 0.12em;
}

.rev-home { background: transparent; border-top: 0; border-bottom: 0; padding-top: 0.4rem; }

@media (max-width: 980px) {
  .moments {
    grid-template-columns: minmax(0, 1fr);
  }
  .moments:has(> .home-board + .home-board) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .home-board .board-name,
  .home-board .board-scene {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .home-board .board-name-wrap .board-name,
  .home-board .board-name-wrap a.board-name,
  .home-board .board-name-wrap a.player-link {
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .home-board .board-time {
    white-space: nowrap;
    justify-self: end;
  }
}
@media (max-width: 639px) {
  .moments:has(> .home-board + .home-board) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .home-stage { min-height: 0; }
  .home-stage .hero-bleed {
    min-height: clamp(22rem, 52svh, 30rem);
    flex: none;
    justify-content: start;
    justify-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(12, 32, 36, 0.04) 0%, rgba(12, 32, 36, 0) 34%, rgba(12, 32, 36, 0.40) 100%),
      linear-gradient(90deg, rgba(12, 32, 36, 0.16) 0%, rgba(12, 32, 36, 0.04) 100%);
  }
  .home-stage .hero-copy {
    width: 100%;
    max-width: none;
    padding: 2.2rem 5vw 1.55rem;
    justify-self: stretch;
  }
  .home-stage .hero-copy .hero-title,
  .home-stage .hero-copy h1.hero-title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-countdown { font-size: 0.92rem; margin-bottom: 0.7rem; }
  .moments, .scenes, .showcase { padding-left: 5vw; padding-right: 5vw; }
}
@media (max-width: 560px) {
  .hero-countdown { font-size: 0.86rem; }
  .hero-actions .cta-lg { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card .thumb, .cta, .ghost-btn { transition: none; }
  .card:hover { transform: none; }
  .card:hover .thumb { background-size: 104%; }
}

.home-promo { padding: 0 6vw 2.4rem; }
.home-promo-inner {
  display: flex;
  align-items: center;
  gap: 1.05rem 1.35rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 14px 30px rgba(18, 38, 43, 0.06);
}
.home-promo-mark {
  position: relative;
  flex: 0 0 3.35rem;
  width: 3.35rem;
  height: 2.65rem;
}
.home-promo-pip {
  position: absolute;
  width: 1.32rem;
  height: 1.85rem;
  border-radius: 0.28rem;
  border: 1px solid rgba(255, 253, 248, 0.55);
  box-shadow: 0 4px 10px rgba(18, 38, 43, 0.18);
}
.home-promo-pip:nth-child(1) { left: 0.05rem; top: 0.42rem; background: var(--navy); transform: rotate(-18deg); }
.home-promo-pip:nth-child(2) { left: 0.72rem; top: 0.22rem; background: var(--fmt-classic); transform: rotate(-6deg); }
.home-promo-pip:nth-child(3) { left: 1.38rem; top: 0.18rem; background: var(--fmt-quick); transform: rotate(6deg); }
.home-promo-pip:nth-child(4) { left: 2.02rem; top: 0.36rem; background: var(--gold); transform: rotate(16deg); }
.home-promo-copy { flex: 1 1 16rem; min-width: 0; }
.home-promo-kicker {
  margin: 0 0 0.28rem;
  color: var(--fmt-timed);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}
.home-promo-title {
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 0.28rem;
  letter-spacing: -0.02em;
}
.home-promo-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 1rem;
}
.home-promo-cta {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.25rem;
}
@media (max-width: 860px) {
  .home-promo { padding-left: 5vw; padding-right: 5vw; }
}
@media (max-width: 560px) {
  .home-promo-inner { align-items: stretch; }
  .home-promo-cta { width: 100%; justify-content: center; }
}

/* Featured group on the homepage, after the daily challenge and before other scene listings. */
.featured-group {
  padding-top: 1.35rem;
  padding-bottom: 0.4rem;
}
.featured-group .section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}
.featured-group + .scenes {
  padding-top: 1.5rem;
}
