/* Shared phone layout, loaded after each page's desktop styles. */
@media (max-width: 700px) {
  :root { --phone-header: calc(72px + env(safe-area-inset-top, 0px)); }
  html { scroll-padding-top: calc(var(--phone-header) + 16px); }
  body { font-size: 15px; overflow-x: clip; }
  main, main > section, .location-row > div, .footer-top > * { min-width: 0; }
  .site-header {
    position: fixed;
    height: var(--phone-header);
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    display: grid;
    grid-template-columns: minmax(40px, 1fr) 44px 64px 68px;
    gap: 6px;
  }
  .lotus-home { min-width: 0; display: flex; align-items: center; min-height: 44px; }
  .lotus-home img { width: 38px; height: 38px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; width: 44px; height: 44px; margin: 0; padding: 10px; }
  .motion-toggle, .ambient-toggle { margin: 0; min-height: 44px; width: 100%; max-width: none; font-size: 11px; line-height: 1.4; padding: 6px; text-align: center; }
  #mobile-nav {
    top: var(--phone-header);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    max-height: calc(100dvh - var(--phone-header));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; font-size: 15px; }
  .journey-progress { top: calc(var(--phone-header) - 1px); }
  .outline-button, .merch-filter button, .contact-info > a { min-height: 44px; }
  .outline-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; font-size: 14px; text-align: center; }
  p { line-height: 1.65; }
  h1 { font-size: clamp(48px, 15vw, 76px); }
  h2 { font-size: clamp(40px, 12vw, 60px); }
  .eyebrow { font-size: 11px; letter-spacing: 1.3px; }
  .page-heading { padding: calc(var(--phone-header) + 44px) 6vw 36px; }
  .page-heading h1 { font-size: clamp(48px, 14vw, 72px); }
  .alien-opening { padding-top: var(--phone-header); }
  .home-page .recorded-hero { height: calc(100svh - var(--phone-header)); min-height: 540px; max-height: 850px; }
  .home-page .hero-titles { left: 6vw; right: 6vw; bottom: 24px; }
  .hero-titles .hero-headline { font-size: clamp(48px, 14vw, 76px); margin-bottom: 18px; }
  .alien-opening .hero-wordmark { top: calc(var(--phone-header) + 20px); left: 6vw; width: 130px; }
  .crew-greet { top: calc(var(--phone-header) + 20px); right: 6vw; min-height: 44px; font-size: 11px; padding: 9px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .hero-actions .outline-button { padding: 12px 8px; font-size: 13px; }
  .hero-bottom { font-size: 10px; gap: 12px; }
  .greeting { padding: 56px 6vw; }
  .greeting h2, .mini-about h2, .section-heading h2 { font-size: clamp(40px, 12vw, 58px); }
  .mini-about { padding: 0 6vw 40px; }
  .touchdown { min-height: 480px; height: 78svh; }
  .touchdown-copy { left: 6vw; right: 6vw; }
  .touchdown h2 { font-size: clamp(42px, 12vw, 64px); }
  .locations-list { padding: 40px 6vw 56px; }
  .section-heading { margin-bottom: 36px; }
  .location-row, .location-row.reverse { gap: 22px; margin-bottom: 48px; scroll-margin-top: calc(var(--phone-header) + 12px); }
  .location-row h2 { font-size: clamp(44px, 13vw, 62px); margin-bottom: 16px; }
  .location-row p, .location-row address { font-size: 15px; }
  .location-row .eyebrow { margin-bottom: 12px; }
  .location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .location-actions .outline-button { padding: 12px 8px; }
  .locations-hero { height: 82svh; min-height: 440px; }
  .locations-hero h1 { font-size: clamp(58px, 16vw, 100px); left: 6vw; right: 6vw; bottom: 7%; }
  .locations-shortcuts { padding: 20px 6vw 0; }
  .locations-shortcuts .location-jumps { gap: 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .location-jumps a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 11px; padding: 10px 4px; }
  /* Video locations use a broad bottom overlay rather than a narrow side column. */
  .locations-hero ~ .locations-list :is(#missoula, #great-falls, #kalispell).location-row {
    align-items: flex-end;
    min-height: 90svh;
    padding: 40px 6vw 64px;
    gap: 0;
    margin-bottom: 24px;
  }
  .locations-hero ~ .locations-list :is(#missoula, #great-falls, #kalispell) > div:last-child {
    width: 100%;
    max-width: 540px;
    opacity: 1;
  }
  .locations-hero ~ .locations-list :is(#missoula, #great-falls, #kalispell)::before {
    background: linear-gradient(180deg, transparent 12%, rgba(2,6,8,.12) 38%, rgba(2,6,8,.86) 70%, rgba(2,6,8,.96));
  }
  .locations-hero ~ .locations-list :is(#missoula, #great-falls, #kalispell) > .location-photo > video { object-position: 50% 40%; }
  .about-opening { padding: calc(var(--phone-header) + 40px) 6vw 48px; }
  .about-intro { max-width: 100%; }
  .about-intro h1 { font-size: clamp(48px, 14vw, 72px); }
  .about-intro p, .values p { font-size: 15px; }
  .values { padding: 40px 6vw; }
  .merch-opening { height: 85svh; min-height: 480px; }
  .merch-opening h1 { left: 6vw; right: 6vw; bottom: 32px; font-size: clamp(48px, 14vw, 72px); }
  .merch-teaser { height: 70svh; min-height: 460px; }
  .merch-teaser > div { left: 6vw; right: 6vw; }
  .merch-teaser h2 { font-size: clamp(42px, 12vw, 64px); }
  .merch-filter { gap: 8px; }
  .merch-filter button { padding: 10px 12px; border: 1px solid #403118; font-size: 12px; }
  .merch-card h2 { font-size: clamp(20px, 6vw, 26px); }
  .merch-card p { font-size: 12px; }
  .faq-section { padding: 44px 6vw; }
  .faq-image { height: auto; aspect-ratio: 1.15; }
  .faq-list summary { min-height: 52px; font-size: 14px; padding: 16px 0; }
  .faq-list details p { font-size: 15px; }
  .contact-layout { padding: 0 6vw 48px; }
  .contact-layout input, .contact-layout select, .contact-layout textarea { font-size: 16px; min-height: 48px; }
  .contact-info > a { display: flex; align-items: center; font-size: 14px; margin: 6px 0; }
  .footer-top { padding: 36px 6vw 24px; gap: 24px 18px; }
  .footer-top a { min-height: 44px; display: flex; align-items: center; margin-bottom: 2px; font-size: 12px; }
  .footer-bottom { padding: 20px 6vw max(20px, env(safe-area-inset-bottom, 0px)); line-height: 1.6; }
  .footer-bottom a { min-height: 44px; display: flex; align-items: center; }
  .entry-panel { padding: 22px 18px; max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .entry-panel h1 { font-size: clamp(44px, 14vw, 64px); }
  .entry-panel p { font-size: 15px; }
  .entry-panel img { width: 115px; margin-bottom: 16px; }
  .entry-buttons { flex-direction: column; }
  .entry-status { top: max(14px, env(safe-area-inset-top, 0px)); font-size: 11px; max-width: 55%; }
  #flower-entry .entry-skip { top: max(14px, env(safe-area-inset-top, 0px)) !important; min-height: 44px; }
  .game-page #main { padding-top: var(--phone-header); }
  .game-page .shooter-section { height: auto; min-height: calc(100svh - var(--phone-header)); display: flex; flex-direction: column; }
  .shooter-hud { position: relative; top: auto; left: auto; right: auto; margin: 0; padding: 22px 6vw 18px; display: block; flex-shrink: 0; }
  .game-page .shooter-hud h1 { font-size: clamp(34px, 10vw, 48px); }
  .shooter-hud .eyebrow { font-size: 10px; }
  .shooter-hud p { font-size: 13px; }
  .shooter-stats { justify-content: flex-start; gap: 12px 16px; align-items: center; margin-top: 14px; }
  .shooter-stats b { font-size: 22px; }
  .shooter-stats button { min-height: 44px; padding: 10px 14px; }
  .game-page #shooter-field { position: relative; inset: auto; flex: 1 0 340px; min-height: 340px; height: 55svh; width: 100%; }
  .game-page #shooter-overlay { top: auto; bottom: 24px; transform: translateX(-50%); width: calc(100% - 32px); padding: 22px 18px; max-height: 50svh; overflow-y: auto; }
  #shooter-overlay h3 { font-size: clamp(32px, 10vw, 48px); }
  #shooter-start { min-height: 48px; }
}
@media (max-width: 360px) {
  .site-header { grid-template-columns: minmax(38px, 1fr) 44px 58px 62px; gap: 4px; padding-left: 12px; padding-right: 12px; }
  .hero-actions, .location-actions { grid-template-columns: 1fr; }
  .hero-bottom { flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) and (max-height: 500px) {
  .entry-panel { padding: 14px; }
  .entry-panel img { width: 80px; margin-bottom: 6px; }
  .entry-panel h1 { font-size: 40px; margin: 8px 0; }
  .entry-panel p { margin: 8px 0 12px; }
  .entry-buttons { flex-direction: row; }
}
