/* Positions preserve the supplied 2048px screenshot's page coordinates. */
.page { position: relative; }
.hero-doodles {
  position: absolute;
  inset: 50px 0 auto;
  aspect-ratio: 2048 / 1030;
  pointer-events: none;
  user-select: none;
}
.hero-doodle { position: absolute; display: block; }
/* The inline renderer reveals each drawing once. Do not briefly play the
   animated <img> source before replacing it with that renderer. */
img.hero-doodle, img.style-arrow { visibility: hidden; }
/* Replay the source stroke order once; shared ink still owns the wiggle. */
:is(svg.hero-doodle, svg.style-arrow) [data-hero-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: hero-ink-draw cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes hero-ink-draw {
  from { opacity: 1; stroke-dashoffset: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(svg.hero-doodle, svg.style-arrow) [data-hero-draw] {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
.hero-doodle--portrait { left: calc(52.734% - 140px); top: 11.65%; width: 10.986%; }
.hero-doodle--rifle { left: calc(5.859% + 20px); top: 70.388%; width: 9.766%; transform: scale(1.5); transform-origin: center; }
.hero-doodle--heart { left: 80.078%; top: 64.078%; width: 9.277%; }
.style-picker-target { position: relative; }
.style-arrows-anchor { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; z-index: 31; }
.style-arrow { position: absolute; display: block; pointer-events: none; user-select: none; }
.style-arrow--green { width: 180px; right: calc(100% + 32px); top: 2px; }
.style-arrow--pink { width: 145px; left: calc(100% - 12px); top: calc(100% + 10px); }
@media (max-width: 899px) {
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(160px, 1fr) auto auto minmax(140px, 1fr);
    /* Include the header: its logo is 63px tall at this breakpoint.
       svh keeps the composition steady while Safari's toolbars collapse. */
    min-height: calc(100svh - 63px - 12px - max(12px, env(safe-area-inset-top)));
    padding: 32px 0 max(32px, env(safe-area-inset-bottom));
    justify-items: center;
  }

  .hero__display { grid-column: 1 / -1; grid-row: 2; }
  .hero__lead { grid-column: 1 / -1; grid-row: 3; }
  .hero-doodles { display: contents; }
  .hero-doodle { position: static; }
  .hero-doodle--portrait { grid-column: 1 / -1; grid-row: 1; width: 128px; transform: none; }
  .hero-doodle--rifle { grid-column: 1; grid-row: 4; width: 96px; }
  .hero-doodle--heart { grid-column: 2; grid-row: 4; width: 88px; }
  .style-arrow--green {
    width: 88px;
    right: calc(100% - 20px);
    top: calc(100% - 4px);
    transform: rotate(-30deg);
    transform-origin: top right;
  }
  .style-arrow--pink {
    width: 66px;
    left: calc(100% - 28px);
    top: calc(100% + 2px);
  }
}

@media (max-width: 599px) {
  /* On phones the header has 44px controls and 10px bottom padding. */
  .hero { min-height: calc(100svh - 44px - 10px - max(10px, env(safe-area-inset-top))); }
}
