/* The collector entrance is scoped to the homepage; broadcast layouts keep
   their own sizing and palette. Wrapping accounts for the Twitch dock. */
body[data-page='home'] .hero { padding-top: 1.5rem; }
body[data-page='home'] .badge-catalog-requirement { overflow-wrap: anywhere; }
body[data-page='home'] .home-layout {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #4b3c65;
  border-radius: 24px;
  background: radial-gradient(ellipse at 95% 0%, #48315f 0%, transparent 58%), #1c1728;
  gap: 1.75rem;
}
body[data-page='home'] .home-hero-copy { min-width: 0; flex: 1 1 21rem; }
body[data-page='home'] .home-hero-copy h1 {
  max-width: 23ch;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: .75rem 0 1rem;
  text-wrap: balance;
}
body[data-page='home'] .home-hero-copy .home-kicker {
  color: #dfcdff;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}
.home-kicker > span { color: #d7eea0; margin-right: .35rem; }
body[data-page='home'] .home-hero-copy > p:not(.home-kicker) { max-width: 46ch; color: #c4bccf; }
body[data-page='home'] .home-hero-copy .actions { margin-top: 1.25rem; gap: 1rem; }
.home-badge-shelf { min-width: 0; flex: 1 1 14rem; }
.home-shelf-label { margin: 0 0 1rem; color: #e0d5ef; font-size: .8rem; font-weight: 600; }
.home-shelf-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.home-shelf-badge { display: grid; grid-template-rows: 108px auto; gap: .65rem; min-width: 0; text-align: center; text-decoration: none; color: #f4effc; }
.home-shelf-art {
  display: grid; place-items: center; min-height: 108px; padding: .75rem;
  border: 1px solid #665177; border-radius: 16px;
  background: radial-gradient(ellipse at 50% 100%, #59416e, #2e243d 75%);
  box-shadow: inset 0 1px 0 #ffffff10, 0 8px 20px #00000020;
  transition: transform 160ms ease, border-color 160ms ease;
}
.home-shelf-art img { width: 72px; height: 72px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px #00000050); }
.home-shelf-badge:hover .home-shelf-art { transform: translateY(-3px); border-color: #c2a6ff; }
.home-shelf-name { font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.home-shelf-note { margin: 1rem 0 0; font-size: .7rem; color: #c4bccf; }
.home-quick-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding-top: .85rem; }
.home-quick-paths > a {
  display: flex; align-items: center; gap: .75rem; min-width: 0; padding: 1rem;
  border: 1px solid var(--border); border-radius: 14px; background: #1a191f;
  text-decoration: none; color: var(--text);
}
.home-quick-paths > a:hover { border-color: var(--accent); background: #24202e; }
.home-quick-paths > a > span:nth-child(2) { flex: 1; min-width: 0; }
.home-quick-paths strong, .home-quick-paths small { display: block; overflow-wrap: anywhere; }
.home-quick-paths strong { font-size: .8rem; }
.home-quick-paths small { color: var(--muted); font-size: .7rem; margin-top: .2rem; }
.home-path-icon { color: #d7eea0; font-size: 1.5rem; }
.home-quick-paths a:focus-visible, .home-shelf-badge:focus-visible { outline: 3px solid #d7eea0; outline-offset: 4px; border-radius: 14px; }
@media (max-width: 1100px) {
  .home-quick-paths { grid-template-columns: 1fr; gap: .5rem; }
  .home-quick-paths > a { padding: .7rem 1rem; }
}
@media (max-width: 520px) {
  body[data-page='home'] .hero { padding-top: 1rem; }
  body[data-page='home'] .home-layout { border-radius: 18px; }
  .home-shelf-art { min-height: 80px; padding: .5rem; border-radius: 12px; }
  .home-shelf-art img { width: 56px; height: 56px; }
  .home-shelf-label { font-size: .75rem; }
  .home-badge-shelf { display: none; }
  .home-quick-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-quick-paths > a { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .75rem; }
  .home-quick-paths small, .home-quick-paths > a > span:last-child { display: none; }
  .home-quick-paths strong { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-shelf-art { transition: none; }
  .home-shelf-badge:hover .home-shelf-art { transform: none; }
}

/* Keep the timestamp footprint stable across server rendering and live refreshes. */
body[data-page='home'] [data-home-refreshed-at] { min-inline-size: 18ch; font-variant-numeric: tabular-nums; }
