/* App-aligned collection/shop previews and the upcoming chapter. */
.home-page {
  --home-bg: #0f0c1d;
  --home-bg-deep: #0c0918;
  --home-panel: #1a1530;
  --home-panel-soft: #241e42;
  --home-text: #f5f3ff;
  --home-muted: #a099c4;
  --home-violet: #7c4def;
  --home-violet-soft: #c084fc;
  --home-gold: #e3b34e;
  font-family: 'Inter', sans-serif;
}
.home-page h2, .home-page h3 { text-wrap: balance; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }
.skip-link:hover { color: var(--home-bg-deep); }
.home-header .links { gap: clamp(14px, 2vw, 26px); }
.reward-showcase { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.reward-showcase > *, .badge-catalogue > *, .future-feature > * { min-width: 0; }
.gear-showcase { padding: clamp(24px, 3vw, 40px); gap: 28px; }
.shop-current-preview {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 0;
}
.shop-current-preview img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--home-line); }
.shop-current-preview figcaption { grid-column: 1 / -1; }
figcaption { color: var(--home-muted); font-size: .75rem; line-height: 1.6; }
.gear-shelf { margin-top: 0; }
.gear-item { min-width: 0; padding: 12px 8px; }
.gear-art { height: 76px; }
.gear-art img { width: 76px; height: 76px; }
.gear-item strong, .gear-item small { overflow-wrap: anywhere; }
.gear-item small { color: var(--home-muted); }
.profile-showcase { display: flex; flex-direction: column; justify-content: center; }
.profile-copy { padding-block: 32px; }
.badge-row { flex-wrap: wrap; }
.badge-catalogue { align-items: center; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.badge-catalogue h3 { letter-spacing: -.035em; overflow-wrap: anywhere; }
.badge-catalogue-copy { align-self: center; }
.badge-app-screen { padding: 16px; background: #100c21; }
.star-map-preview { margin: 0 0 28px; }
.star-map-preview img { display: block; width: 100%; height: auto; border-radius: 12px; }
.star-map-preview figcaption { text-align: center; margin-top: 12px; }
.badge-screen-head { flex-wrap: wrap; gap: 8px; }
.badge-screen-head span { font-size: .95rem; }
.badge-screen-head small { color: var(--home-muted); }
.badge-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalogue-badge {
  grid-template-rows: 76px auto auto;
  min-width: 0; min-height: 164px; align-content: start;
  padding: 16px 10px; row-gap: 8px;
}
.catalogue-badge-art, .catalogue-badge-art img { width: 76px; height: 76px; }
.catalogue-badge strong { display: block; min-height: 0; overflow-wrap: anywhere; }
.catalogue-badge small { margin: 0; width: 100%; color: var(--home-muted); line-height: 1.45; overflow-wrap: anywhere; }
.upcoming-section { border-top: 1px solid var(--home-line); background: var(--home-bg-deep); }
.upcoming-intro { margin-bottom: clamp(40px, 6vw, 80px); }
.upcoming-intro > p { max-width: 54ch; }
.future-feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 8vw, 100px); align-items: center;
  padding: clamp(36px, 5vw, 70px) 0;
}
.future-feature + .future-feature { border-top: 1px solid var(--home-line); }
.future-copy h3 { margin: 0 0 16px; color: var(--home-text); font-family: 'Cinzel', Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.18; letter-spacing: -.025em; }
.future-status { display: inline-block; color: var(--home-gold); border: 1px solid #e3b34e40; background: #1a1530; border-radius: 20px; padding: 7px 12px; font-size: .75rem; line-height: 1.5; }
.upgrades-feature .future-status { color: var(--home-violet-soft); border-color: #c084fc40; }
.future-copy p { color: var(--home-muted); font-size: .95rem; line-height: 1.85; max-width: 51ch; }
.future-copy .future-lede { color: var(--home-text); font-size: 1.22rem; line-height: 1.5; margin: 28px 0 16px; }
.future-visual { margin: 0; text-align: center; }
.future-visual img { width: min(100%, 340px); height: auto; display: block; margin: 0 auto; border: 1px solid #75619d66; border-radius: 24px; box-shadow: 0 24px 48px #00000040; }
.future-visual figcaption { margin-top: 16px; }
.forge-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.forge-steps li { padding: 14px 0; border-top: 1px solid var(--home-line); }
.forge-steps strong, .forge-steps span { display: block; }
.forge-steps strong { color: var(--home-gold); font-size: .92rem; font-weight: 600; }
.forge-steps span { color: var(--home-muted); font-size: .85rem; line-height: 1.75; margin-top: 6px; }
.event-modes { margin: 24px 0 0; }
.event-modes > div { padding: 14px 0; border-top: 1px solid var(--home-line); }
.event-modes dt { color: var(--home-text); font-size: .92rem; font-weight: 600; }
.event-modes dd { margin: 6px 0 0; color: var(--home-muted); font-size: .85rem; line-height: 1.75; }
.upcoming-note { max-width: 65ch; margin: 40px auto 0; text-align: center; color: var(--home-muted); font-size: .8rem; line-height: 1.8; }
.upcoming-note a { color: var(--home-violet-soft); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .reward-showcase, .badge-catalogue { grid-template-columns: minmax(0, 1fr); }
  .profile-showcase { min-height: 0; }
  .badge-catalogue-copy { max-width: 58ch; }
  .badge-app-screen { max-width: 580px; width: 100%; justify-self: center; }
  .gear-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-current-preview { max-width: 570px; width: 100%; align-self: center; }
  .future-feature { gap: 32px; }
}
@media (max-width: 880px) {
  .home-header .links { display: flex; margin-left: auto; }
  .home-header .links a[href='#quests'], .home-header .links a[href='/updates.html'], .home-header .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .home-header .links { gap: 14px; }
  .home-header .links a { font-size: .78rem; }
  .home-header .links a[href='#quests'], .home-header .links a[href='/updates.html'] { display: none; }
  .future-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .future-copy { grid-row: 1; }
  .future-copy h3 { max-width: 15ch; }
  .future-visual img { max-width: 300px; }
  .badge-catalogue { padding: 24px 16px; }
  .badge-screen-head { align-items: start; }
  .shop-current-preview { gap: 10px; }
  .shop-current-preview img { border-radius: 14px; }
  .gear-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
