/* Canonical mobile geometry. Tokens remain in style.20261009g.css. */
@media(max-width:820px){
 body{min-width:0}
 :where(main,section,article,aside,form,fieldset,nav,header,footer,div,label){min-width:0}
 .explore-page .explore-header,.explore-page .explore-main,.explore-page .explore-footer{width:calc(100% - 32px)}
 .explore-page .explore-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:center;padding:16px 0}
 .explore-page .explore-nav{grid-column:1/-1;order:initial;width:100%;max-width:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
 .explore-page .explore-brand{font-size:21px;grid-column:1;grid-row:1}.explore-page .explore-back{grid-column:2;grid-row:1}.explore-page .explore-nav{grid-row:2}
 .explore-page .explore-nav>a,.explore-page .atlas-more summary{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 3px;font-size:13px;white-space:nowrap}
 .explore-page .atlas-more{position:static;margin:0;min-width:0}
 .explore-page .atlas-more summary::after{margin-left:4px}
 .explore-page .atlas-menu{left:0;right:0;top:100%;width:100%;max-height:calc(100dvh - 150px);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:12px;overscroll-behavior:contain}
 .explore-page .atlas-menu a{min-height:44px;padding:10px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
 .explore-page .explore-main{padding:30px 0 48px}
 .collection-intro{display:block;margin-bottom:24px}
 .collection-intro h1{font-size:clamp(28px,7.5vw,38px);line-height:1.3;overflow-wrap:anywhere}
 .collection-lead{font-size:14px;line-height:1.85;margin-top:14px}
 .collection-counter{display:none}
 .explore-footer{flex-wrap:wrap;gap:12px}
 .collection-toolbar,.entry-actions,.ad-actions,.game-topbar,.art-actions,.form-footer{flex-wrap:wrap;gap:10px}
 .collection-button{min-height:44px;white-space:normal;line-height:1.5}
 .collection-toolbar .search-box{width:100%;max-width:100%;min-width:0}
 input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{font-size:16px;max-width:100%;min-width:0}
 .social-panel,.ad-panel,.encounter-panel{padding:20px 16px}
 .social-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;width:100%}
 .social-field,.ad-toolbar>.social-field{min-width:0;max-width:100%;width:100%}
 .social-room,.social-grid,.game-layout,.art-workspace{grid-template-columns:minmax(0,1fr)}
 .social-chat{flex-wrap:wrap}.social-chat input{flex:1 1 160px}.social-chat button{flex:0 0 auto}
 .social-members li{flex-wrap:wrap}
 .controller-invite{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .controller-qr{width:144px;min-height:144px}
 .controller-buttons{gap:12px}.controller-buttons button{height:100px;font-size:24px}
 .controller-pad>[data-key]{min-width:0;width:100%;min-height:56px}
 .explore-page .marble-inspector,.explore-page .marble-inspector>[data-properties]{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
 .explore-page .marble-inspector>*{grid-column:1!important}
 .explore-page .marble-inspector [data-properties]>*{grid-column:1!important}
 .explore-page .marble-inspector p{font-size:13px;line-height:1.85;overflow-wrap:anywhere}
 .marble-canvas,.social-draw{width:100%;max-width:100%;height:auto}
 .town-stage,.room-stage{height:clamp(280px,52svh,390px);min-height:280px}
 .room-object-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .town-plan{padding:16px;gap:12px}
 .town-plan span{padding:18px 5px;font-size:13px}
 .town-controls .entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .town-controls button{min-width:0}
 .collection-dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border-radius:16px}
 .collection-dialog .dialog-head{position:sticky;top:0;z-index:2;background:var(--panel);padding:16px;gap:12px}
 .collection-dialog .dialog-head h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
 .collection-dialog .dialog-body{padding:18px 16px}
 .collection-dialog .collection-form{grid-template-columns:minmax(0,1fr)}
 .collection-dialog .collection-field{grid-column:1}
 .collection-dialog .form-footer{justify-content:stretch}
 .collection-dialog .form-footer button{flex:1 1 100px}
 .confirm-dialog,.message-dialog-card{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
 .confirm-dialog-actions{flex-wrap:wrap}
 .assistant-main,.assistant-header,.knowledge-header,.knowledge-gate,.knowledge-workspace{width:calc(100% - 32px)}
 .assistant-caption,.assistant-copy,.agent-panel,.knowledge-login-card{min-width:0}
 .agent-panel{max-width:100%}.agent-panel-head{gap:10px;flex-wrap:wrap}.agent-composer{min-width:0}
 .knowledge-privacy label{min-height:44px}
 .tb-search input{font-size:16px}
 .tb-shell{padding-inline:16px}
 .tb-features,.tb-card-grid{grid-template-columns:minmax(0,1fr)}
 .tb-features .tb-feature{min-height:220px}
 .tb-features .tb-feature-room{min-height:350px}
 .tb-escape-motif,.tb-marble-motif{display:none}
 .tb-feature-escape .tb-eyebrow,.tb-feature-marble .tb-eyebrow{padding-right:0}
 .tb-feature-meta{padding-top:86px}
 .tb-card-grid .tb-card{padding:18px 52px 18px 16px;gap:12px}
 .tb-item-wrap>[data-favorite]{right:6px;top:6px}
 .tb-journeys button,.tb-filters button{min-height:44px}
 .article-card,.article-card.is-featured{min-width:0}.card-copy{min-width:0}
 .about-note{gap:14px}.about-note p{min-width:0;overflow-wrap:anywhere}
 .jam-tools{grid-template-columns:minmax(0,1fr)}
 .jam-tools label{grid-column:1!important}
 .jam-grid-scroll{max-width:100%;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
}
@media(max-width:360px){
 .site-header .page-links{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;width:100%}
 .site-header .page-links a{padding:0 2px;font-size:12px;justify-content:center;min-height:44px}
 .assistant-copy{grid-template-columns:90px minmax(0,1fr);gap:12px}
 .assistant-media{width:90px;height:170px}
 .assistant-copy .assistant-caption h1{font-size:22px}
 .social-panel .social-field{min-width:0}
 .escape-table{grid-template-columns:minmax(0,1fr)}
}
@supports(padding:max(0px)){
 @media(max-width:820px){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.explore-footer,.tb-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}.collection-status{bottom:max(18px,env(safe-area-inset-bottom))}}
}
@media(max-height:500px) and (max-width:820px){.collection-dialog{max-height:calc(100dvh - 16px)}.assistant-media{height:140px}.assistant-copy{align-items:start}.town-stage,.room-stage{height:280px}}
