.pack-mobile, .pack-edit-link, .pack-return-link { display: none; }

@media (max-width: 650px) {
  .pack-home .private-strip,
  .pack-home .pack-desktop,
  .pack-home .hero .first-choice,
  .pack-home .hero-sample-link,
  .pack-home .masthead .nav-cta { display: none; }
  .pack-home .masthead { padding: 11px 5%; }
  .pack-home .masthead a[href="#games"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #65263d;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .pack-home .pack-mobile { display: block; }
  .pack-home .hero:has(.bundle-hero) {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 19px 5% 23px;
    background: #f7f0e9;
    color: #482436;
  }
  .pack-home .hero-copy { margin: 0; max-width: none; }
  .pack-home .hero .eyebrow {
    color: #72465a;
    margin: 0;
    font-size: .69rem;
    letter-spacing: .12em;
  }
  .pack-home .hero:has(.bundle-hero) h1 {
    margin: 7px 0 8px;
    font-size: clamp(1.9rem, 8.7vw, 2.85rem);
    line-height: 1.04;
    color: #482436;
  }
  .pack-home .pack-description {
    margin: 0;
    font-size: .96rem;
    line-height: 1.36;
    color: #4e4048;
  }
  .pack-price { display: flex; gap: 9px; align-items: baseline; margin: 12px 0 9px; }
  .pack-price strong { font: normal 1.55rem/1 Georgia, serif; color: #65263d; }
  .pack-price span { font-size: .84rem; line-height: 1.35; color: #4e4048; }
  .pack-preview-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 17px;
    border-radius: 4px;
    background: #65263d;
    color: #fff9f5;
    font-weight: 650;
    text-decoration: none;
  }
  .pack-preview-link:focus-visible, .pack-edit-link:focus-visible, .pack-return-link:focus-visible {
    outline: 3px solid #8e5337;
    outline-offset: 3px;
  }
  .pack-home .hero .bundle-hero { margin: 0; }
  .pack-home .bundle-hero img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e4d6cc;
    border-radius: 4px;
    box-shadow: none;
  }
  .pack-home .bundle-hero figcaption {
    margin: 5px 0 0;
    color: #65565c;
    font: .74rem/1.4 Arial, sans-serif;
  }
  #matching-pack-preview { scroll-margin-top: 5px; }
  /* Avoid focus zoom when a phone user edits or selects pack details. */
  .pack-builder :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: max(16px, 1rem);
  }
  #matching-pack-preview:target .pack-edit-link, .pack-return-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 44px;
    color: #65263d;
    font-weight: 650;
    text-underline-offset: 3px;
  }

  /* Keep the original optional measurement choices in reach on small screens. */
  :is(.pack-home, .pack-builder) .wps-measurement {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 5px;
    max-height: 36vh;
    max-height: 36svh;
    padding: 9px 5% max(7px, env(safe-area-inset-bottom));
    font-size: .76rem;
    line-height: 1.3;
  }
  :is(.pack-home, .pack-builder) .wps-measure-copy { overflow-y: auto; }
  :is(.pack-home, .pack-builder) .wps-measure-copy h2 { margin: 0 0 3px; font-size: 1.04rem; }
  :is(.pack-home, .pack-builder) .wps-measure-copy p { margin: 3px 0; }
  :is(.pack-home, .pack-builder) .wps-measure-actions { gap: 2px 8px; }
  :is(.pack-home, .pack-builder) .wps-measure-actions button { min-height: 44px; padding: 5px; }
  :is(.pack-home, .pack-builder) .wps-measure-actions .wps-measure-text { min-height: 30px; }
}
