/* Mobile shell only. Desktop rendering remains owned by style.css. */
.mobile-dock,.mobile-back,.mobile-route-label,.mobile-more{display:none}
@media(max-width:600px), (max-width:900px) and (max-height:500px){
 html{scroll-padding-top:calc(88px + env(safe-area-inset-top));scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 body{--mobile-bottom:calc(78px + env(safe-area-inset-bottom));padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .site-header{min-height:76px;padding:calc(14px + env(safe-area-inset-top)) 18px 14px;gap:12px;background:#111f;backdrop-filter:blur(20px)}
 .site-header .wordmark{font-size:19px;margin-right:auto}
 .site-header #main-nav,.site-header .menu-toggle{display:none!important}
 .mobile-back{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:50%;background:#ffffff0b;color:var(--paper);font-size:23px}
 .mobile-back[hidden]{display:none}
 .mobile-route-label{display:block;font-size:11px;font-weight:700;color:var(--gold);text-align:right;max-width:95px}
 .page{padding-top:28px}
 footer{padding-bottom:calc(var(--mobile-bottom) + 32px)}
 .mobile-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:6;bottom:0;left:0;right:0;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#171717f5;border-top:1px solid #e7ba6138;box-shadow:0 -8px 28px #0004;backdrop-filter:blur(20px)}
 .mobile-dock a,.mobile-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;min-width:0;border-radius:14px;background:transparent;color:#bdbbb6;font-size:10px;font-weight:600;line-height:1.2;padding:6px 2px;text-decoration:none;border:0;transition:background .16s,color .16s}
 .mobile-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .mobile-dock [aria-current],.mobile-dock [aria-expanded=true]{background:#e7ba6114;color:var(--gold)}
 .mobile-dock :focus-visible{outline-offset:-3px}
 .mobile-more[open]{display:block;position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));margin:0 auto;width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 110px - env(safe-area-inset-top));overflow:auto;padding:22px;border:1px solid #e7ba6150;border-radius:28px;background:linear-gradient(145deg,#28241d,#151515);color:var(--paper);box-shadow:0 18px 70px #0008;animation:mobile-sheet-in .18s ease-out}
 .mobile-more::backdrop{background:#0009;backdrop-filter:blur(6px)}
 .mobile-more-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}
 .mobile-more-head h2{font-size:26px}
 .mobile-more nav{display:grid;gap:8px}
 .mobile-more nav a{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:14px 16px;background:#ffffff07;border:1px solid #ffffff12;border-radius:16px;font-size:15px;font-weight:600}
 .mobile-more nav a[aria-current]{color:var(--gold);border-color:#e7ba6150}
 .mobile-install{font-size:12px;color:var(--muted);margin-top:20px;line-height:1.6}
 body.mobile-overlay .mobile-dock,body.mobile-keyboard .mobile-dock{display:none}
 body.mobile-overlay{overflow:hidden}
 #video-dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}
 .player{bottom:var(--mobile-bottom)}
 input,select,textarea{scroll-margin-bottom:calc(var(--mobile-bottom) + 28px)}
 @keyframes mobile-sheet-in{from{opacity:.5;transform:translateY(12px)}to{opacity:1;transform:none}}
}
@media(max-width:900px) and (max-height:500px){.mobile-more[open]{max-height:calc(100dvh - 28px);padding:14px}.mobile-more nav{grid-template-columns:1fr 1fr}.mobile-install{margin-top:12px}.mobile-more-head{margin-bottom:10px}.site-header{min-height:64px;padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.mobile-more,.mobile-dock *{animation:none!important;transition:none!important}}
