.site-menu-toggle { display: none; }

@media (max-width: 760px) {
  .topbar { padding: 12px 0; position: relative; z-index: 30; }
  .topbar .shell,
  .topbar .shell.portal-account-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 32px);
  }
  .topbar .brand { flex-shrink: 0; margin-right: auto; }
  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    order: 3;
  }
  .site-menu-toggle svg { width: 18px; height: 18px; }
  .site-menu-toggle[aria-expanded="true"] { background: #f1f6ff; border-color: #ccdcf3; }
  .site-menu-toggle:focus-visible { outline: 3px solid #77a8f1; outline-offset: 3px; }
  .topbar .shell > nav.site-nav,
  .topbar .portal-account-header > nav.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px, calc(100vw - 32px));
    margin: 0;
    padding: 7px;
    gap: 2px;
    border: 1px solid #e0e7f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(20 45 80 / 14%);
    z-index: 35;
  }
  .topbar .shell[data-menu-open] > nav.site-nav { display: flex; flex-direction: column; }
  .topbar nav.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 13px; border-radius: 8px; white-space: nowrap; }
  .topbar nav.site-nav a:hover { background: #eef5ff; }
  .portal-account-header > .portal-account { position: static; order: 2; min-width: 0; max-width: 145px; }
  .portal-account-trigger { min-width: 0; }
  footer .shell { display: grid; gap: 16px; }
  footer .shell > :last-child { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  footer a { margin: 0; white-space: nowrap; }
  .document { width: calc(100% - 32px); }
  .document p,.document li,.support-card a { overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .tour-layout { gap: 18px; padding-top: 24px; padding-bottom: 20px; }
  .tour-stories { align-items: start; }
  .tour-stories h1 { line-height: 1.08; }
  .tour-artwork { display: grid; height: auto; min-height: calc(var(--device) * 2.04445); }
  .scene { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; min-height: calc(var(--device) * 2.04445); }
  .scene-download { padding-bottom: 34px; }
  .tour-choices { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; padding-inline: 8px; }
  .tour-choices::-webkit-scrollbar { display: none; }
  .tour-choices button { flex: 0 0 auto; white-space: nowrap; font-size: 13px; line-height: 1.3; padding: 14px 13px; min-height: 48px; }
  .affiliate-pass { max-width: 100%; }
  .affiliate-pass-stub { flex-wrap: wrap; row-gap: 6px; }
  .story-caption h3 { line-height: 1.2; }
  .page-hero h1 { line-height: 1.1; overflow-wrap: break-word; }
  .apply-field { min-width: 0; }
}

@media (max-width: 440px) {
  .story-delivery { min-height: 150px; }
}

@media (max-width: 380px) {
  .portal-account-header .portal-account-name { display: none; }
  .portal-account-header .site-menu-toggle { width: 44px; padding: 10px; }
  .portal-account-header .site-menu-label { display: none; }
  .affiliate-pass-face { padding: 20px 18px; }
  .affiliate-pass-stub { padding: 15px 18px; }
}
