.home-page .destination h2,
.db-home-shell .db-home-destination h2 {
  box-sizing: border-box;
  max-inline-size: 100%;
  margin: 0;
  padding: .42em clamp(8px, 1.7vw, 24px);
  border: 1px solid #f8e7d32e;
  border-radius: 12px;
  background: linear-gradient(145deg, #25232bea, #101218e6);
  color: #f8f3ef;
  line-height: 1.5;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 4px 14px #0003;
}

.home-page .destination:is(:hover, :focus-visible) h2,
.db-home-shell .db-home-destination:is(:hover, :focus-visible) h2 {
  border-color: #efbe7666;
}

.home-page .credits {
  flex-wrap: wrap;
}


/* The source portrait has a clear border on both sides of the character. */
.home-page {
  --portrait-header: var(--home-header-height, 83px);
}
.db-home-shell {
  --portrait-header: calc(var(--db-home-header) + 1px);
}
.home-page .home-opening,
.db-home-shell .db-home-backdrop {
  display: block;
  overflow: hidden;
  background: #000;
}
.db-home-shell .db-home-backdrop::after {
  content: none;
}

/* A fixed layer avoids iOS's scrolling background-attachment behavior.
   In portrait, the spacer keeps the portrait framing before the cards scroll over it. */
.home-page,
.db-home-shell {
  isolation: isolate;
}
.home-page .home-opening,
.db-home-shell .db-home-backdrop {
  position: fixed;
  inset: var(--portrait-header) 0 0;
  z-index: -1;
  pointer-events: none;
}

@media (orientation: portrait) {
  .home-page,
  .db-home-shell {
    --portrait-height: min(187.5vw, calc(100vh - var(--portrait-header)));
  }
  @supports (height: 100svh) {
    .home-page,
    .db-home-shell {
      --portrait-height: min(187.5vw, calc(100svh - var(--portrait-header)));
    }
  }
  .home-page .home-opening > .hero-art,
  .db-home-shell .db-home-backdrop img {
    display: block;
    position: static;
    width: 125%;
    max-width: none;
    margin-inline: -12.5%;
    height: var(--portrait-height);
    max-height: none;
    object-fit: contain;
    object-position: center top;
    background: #000;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home-page .hero-space,
  .db-home-shell .db-home-cover {
    display: block;
    height: var(--portrait-height);
    min-height: 0;
    pointer-events: none;
  }
}

@media (orientation: landscape) {
  .home-page .home-opening > .hero-art,
  .db-home-shell .db-home-backdrop img {
    display: block;
    position: static;
    width: 100%;
    height: 225%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    background: #000;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home-page .hero-space,
  .db-home-shell .db-home-cover {
    display: block;
    height: calc(100vh - var(--portrait-header));
    height: calc(100svh - var(--portrait-header));
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .home-page .header-row {
    gap: 5px;
    padding-block: 5px;
  }
  .home-page .brand img {
    width: 32px;
    height: 32px;
  }
  .home-page .nav.db-menu-links {
    gap: 2px;
  }
}

.home-page > .site-header,
.db-home-shell > .db-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #0b0d12;
}

.home-page > .skip:focus,
.db-home-shell > .db-skip:focus {
  z-index: 51;
}

.home-page #main {
  scroll-margin-top: var(--home-header-height, 83px);
}
