/* v7.60 — compact mobile room browsing */
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .hero { padding-top: 1.45rem !important; padding-bottom: .7rem !important; }
  .doors-title { margin: 1.55rem 0 .7rem !important; font-size: 1.65rem !important; }
  #roomsGrid.doors { grid-template-columns: 1fr !important; gap: .7rem !important; margin-bottom: 2rem !important; }
  #roomsGrid .door { position: relative; min-height: 104px; border-radius: 10px; }
  #roomsGrid .door:hover { transform: none; }
  #roomsGrid .door-main { display: grid !important; grid-template-columns: 96px minmax(0,1fr); min-height: 104px; }
  #roomsGrid .door-art { padding: .3rem !important; border-bottom: 0 !important; border-right: 1px solid var(--line); min-height: 104px; display:flex; align-items:center; justify-content:center; }
  #roomsGrid .door-art svg { width: 100% !important; max-height: 92px; }
  #roomsGrid .door-txt { padding: .62rem .72rem 2.65rem !important; min-width: 0; }
  #roomsGrid .door-n { font-size: .72rem !important; }
  #roomsGrid .door h3 { font-size: 1.08rem !important; line-height: 1.13 !important; margin: .08rem 0 .18rem !important; }
  #roomsGrid .door small { font-size: .78rem !important; line-height: 1.25; }
  #roomsGrid .door .tick { margin-top: .2rem !important; font-size: .72rem; }
  #roomsGrid .door-3d { position:absolute; right:.62rem; bottom:.52rem; width:auto !important; min-height:36px; margin:0 !important; padding:.36rem .58rem !important; gap:.32rem !important; font-size:.76rem !important; border-radius:999px; }
  #roomsGrid .door-3d-badge { font-size:.61rem !important; padding:.05rem .27rem !important; }
  .rooms-3d-entry { margin: .9rem 0 1rem !important; }
  .enter-3d-museum .door-3d { min-height:44px !important; padding:.65rem .8rem !important; }
  .enter-3d-museum .three-d-note { margin-top:.45rem !important; line-height:1.35 !important; }
  .museum-map { margin: 12px 0 16px !important; padding: 10px 10px !important; }
  .museum-map-title { margin-bottom: 7px !important; }
  .museum-map-track { min-width: 690px !important; }
  .museum-map a { min-width: 56px !important; }
}

/* Compact standalone rooms index on phones */
@media (max-width: 700px) {
  body.rooms-index main { width:min(100% - 1rem, 1000px) !important; padding:1.4rem 0 2rem !important; }
  body.rooms-index h1 { margin:.7rem 0 1rem; }
  body.rooms-index .grid { gap:.6rem !important; }
  body.rooms-index .grid article { padding:.75rem .85rem !important; border-radius:10px !important; }
  body.rooms-index .grid article h2 { font-size:1.15rem !important; margin:.18rem 0 .32rem; }
  body.rooms-index .grid article > p:not(:last-child) { display:none; }
  body.rooms-index .room-3d { margin-top:.15rem !important; padding:.42rem .62rem !important; font-size:.82rem; }
}

/* v7.60 PWA install affordance */
.pwa-install-chip{position:fixed;z-index:9999;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:.3rem;max-width:min(92vw,520px);padding:.35rem;background:#11151c;color:#fff;border:1px solid #455160;border-radius:999px;box-shadow:0 12px 34px rgba(0,0,0,.32);font-family:system-ui,sans-serif}
.pwa-install-chip[hidden]{display:none}
.pwa-install-action,.pwa-install-close{border:0;background:transparent;color:inherit;font:inherit}
.pwa-install-action{padding:.48rem .7rem;font-weight:700;line-height:1.2}
.pwa-install-close{width:36px;height:36px;border-radius:50%;font-size:1.2rem}
.pwa-install-close:hover,.pwa-install-close:focus-visible{background:#26313f}
@media(max-width:520px){.pwa-install-chip{left:10px;right:10px;transform:none;max-width:none;border-radius:14px}.pwa-install-action{flex:1;text-align:left;font-size:.88rem}}


/* v7.80.8 — tighter mobile museum landing experience */
@media (max-width: 620px) {
  .wrap { padding-left: .9rem !important; padding-right: .9rem !important; }
  .bar { padding: .72rem .9rem !important; }
  .hero { padding: 1rem 0 .55rem !important; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3rem) !important; line-height: .98 !important; letter-spacing: -.025em !important; max-width: 9.5ch; }
  .hero .museum-tagline { margin-top: .45rem !important; font-size: .94rem !important; line-height: 1.3 !important; }
  .hero > p[style] { font-size: 1.08rem !important; line-height: 1.3 !important; margin-top: .38rem !important; }
  .hero > p:not(.museum-tagline):not([style]) { font-size: .94rem !important; line-height: 1.48 !important; margin-top: .55rem !important; margin-bottom: .65rem !important; }
  .visit { grid-template-columns: 1fr 1fr !important; gap: .5rem .8rem !important; margin-top: .85rem !important; padding: .7rem 0 !important; }
  .visit dt { font-size: .72rem !important; }
  .visit dd { font-size: .84rem !important; line-height: 1.3 !important; }
  .home-intro-grid { margin: .75rem 0 1rem !important; gap: .6rem !important; }
  .home-intro-grid .curatorial,.home-intro-grid .open-museum { padding: .82rem .88rem !important; }
  .home-intro-grid .eyebrow { font-size: .68rem !important; margin-bottom: .2rem !important; }
  .home-intro-grid .curatorial h2,.home-intro-grid .open-museum h2 { font-size: 1.2rem !important; line-height: 1.16 !important; margin: .08rem 0 .38rem !important; }
  .home-intro-grid .curatorial .thesis,.home-intro-grid .open-museum p { font-size: .88rem !important; line-height: 1.42 !important; margin: .22rem 0 !important; }
  .routes { margin-bottom: 1.45rem !important; }
  .routes h2 { font-size: 1.45rem !important; line-height: 1.15 !important; margin-bottom: .25rem !important; }
  .routes > p { font-size: .88rem !important; line-height: 1.42 !important; margin-bottom: .55rem !important; }
  .route-grid { gap: .55rem !important; margin-top: .65rem !important; }
  .route-card { padding: .72rem .78rem !important; }
  .route-card strong { font-size: 1.12rem !important; }
  .route-card small { font-size: .8rem !important; line-height: 1.35 !important; }
  .route-card .route-time { margin-top: .38rem !important; font-size: .72rem !important; }
  .passport { margin-bottom: 1.5rem !important; padding: .82rem .9rem !important; }
  .passport h2 { font-size: 1.25rem !important; }
  .passport p { font-size: .82rem !important; line-height: 1.35 !important; }
  .passport-count { font-size: 1.45rem !important; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 2.05rem !important; }
  .visit { grid-template-columns: 1fr !important; }
}


/* v7.85.2 — compact mobile lobby after real-device review */
@media (max-width: 620px) {
  /* Keep the museum facade visible on mobile; compactness comes from spacing/text, not removing the central visual. */
  #lobby .facade { display:block !important; margin-bottom:0 !important; }
  #lobby .hero { padding:.55rem 0 .35rem !important; }
  #lobby .hero h1 { font-size:1.92rem !important; line-height:1 !important; max-width:none !important; margin:0 !important; }
  #lobby .hero .museum-tagline { font-size:.82rem !important; line-height:1.25 !important; margin:.26rem 0 0 !important; }
  #lobby .hero > p:not(.museum-tagline) { font-size:.85rem !important; line-height:1.38 !important; margin:.38rem 0 .45rem !important; }
  #lobby .visit { grid-template-columns:1fr 1fr !important; gap:.32rem .65rem !important; margin:.5rem 0 0 !important; padding:.48rem 0 !important; }
  #lobby .visit div { min-width:0; }
  #lobby .visit dt { font-size:.66rem !important; line-height:1.15 !important; }
  #lobby .visit dd { font-size:.76rem !important; line-height:1.22 !important; margin-top:.06rem !important; }
  #lobby .home-intro-grid { margin:.55rem 0 .75rem !important; gap:.45rem !important; }
  #lobby .home-intro-grid .curatorial,#lobby .home-intro-grid .open-museum { padding:.62rem .7rem !important; }
  #lobby .home-intro-grid .eyebrow { font-size:.62rem !important; }
  #lobby .home-intro-grid .curatorial h2,#lobby .home-intro-grid .open-museum h2 { font-size:1.04rem !important; line-height:1.13 !important; margin:.05rem 0 .24rem !important; }
  #lobby .home-intro-grid .curatorial .thesis,#lobby .home-intro-grid .open-museum p { font-size:.78rem !important; line-height:1.34 !important; margin:.12rem 0 !important; }
  #lobby .home-intro-grid .open-museum .exhibit-page-link { margin-top:.25rem !important; font-size:.8rem !important; }
  #lobby .routes { margin-bottom:1rem !important; }
  #lobby .routes .eyebrow { font-size:.64rem !important; line-height:1.3 !important; }
  #lobby .routes h2 { font-size:1.28rem !important; margin-top:.15rem !important; }
  #lobby .routes > p { font-size:.78rem !important; line-height:1.35 !important; }
  #lobby .route-grid { gap:.42rem !important; margin-top:.48rem !important; }
  #lobby .route-card { padding:.58rem .64rem !important; }
  #lobby .route-card strong { font-size:1rem !important; }
  #lobby .route-card small { font-size:.73rem !important; line-height:1.28 !important; }
  #lobby .route-card .route-time { margin-top:.28rem !important; font-size:.67rem !important; }
}
@media (max-width: 340px) {
  #lobby .visit { gap:.28rem .45rem !important; }
  #lobby .visit dd { font-size:.72rem !important; }
}
