/* AFSC V99: MOBILE HOME LAYOUT FIX ONLY. Desktop and other pages unchanged. */
@media screen and (max-width:700px){
  /* Proper two-edge header: never expose the full desktop links. */
  body header{position:fixed!important;top:25px!important;left:30px!important;right:30px!important;width:auto!important;height:53px!important;z-index:14!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;pointer-events:none!important;}
  body header img{display:block!important;width:89px!important;max-width:89px!important;max-height:48px!important;height:auto!important;object-fit:contain!important;pointer-events:auto!important;}
  body header nav,body header nav *{display:none!important;visibility:hidden!important;pointer-events:none!important;}
  #mobileHeaderMenu{display:inline-flex!important;position:fixed!important;top:31px!important;right:32px!important;left:auto!important;margin:0!important;z-index:18!important;width:88px!important;min-width:88px!important;height:37px!important;min-height:37px!important;gap:8px!important;padding:0 10px!important;border-color:rgba(212,175,55,.28)!important;font-size:10px!important;}
  /* Restored left-side world selector, compact and separated from the copy. */
  body #side,body.is-opening #side{display:flex!important;opacity:1!important;position:fixed!important;top:29%!important;bottom:auto!important;left:32px!important;transform:none!important;width:158px!important;min-width:0!important;z-index:10!important;flex-direction:column!important;gap:2px!important;pointer-events:auto!important;}
  body #side .kicker{display:none!important;}
  body #side button,body.is-opening #side button,body.is-opening #side button:not(.active){display:flex!important;position:relative!important;align-items:center!important;width:100%!important;height:25px!important;min-height:25px!important;line-height:1!important;padding:0 0 0 16px!important;margin:0!important;font-size:8.1px!important;font-weight:750!important;letter-spacing:1.1px!important;color:rgba(227,228,228,.55)!important;white-space:nowrap!important;}
  body #side button.active,body.is-opening #side button.active{color:#f6f6f0!important;}
  body #side button::before{width:5px!important;height:5px!important;left:0!important;}
  body #side button.active::before{background:#f5f5ed!important;}
  /* Shift the actual 3D world upward, not just the text. Keep contrast gentle. */
  body #world{transform:translateY(-9%) scale(1.14)!important;transform-origin:50% 50%!important;}
  body #vignette{background:radial-gradient(ellipse at 52% 44%,rgba(0,0,0,0) 6%,rgba(0,0,0,.10) 68%,rgba(0,0,0,.49) 100%)!important;}
  body #copy{position:fixed!important;top:auto!important;bottom:158px!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100% - 72px)!important;max-width:440px!important;text-align:left!important;z-index:9!important;}
  body #copy h1,body #copy #title{font-size:clamp(29px,8.1vw,44px)!important;letter-spacing:-.027em!important;line-height:1.1!important;margin:0 0 14px!important;max-width:100%!important;}
  body #copy #desc{font-size:clamp(11px,2.95vw,13px)!important;line-height:1.55!important;max-width:310px!important;}
  body #copy #rule{margin-top:13px!important;width:37px!important;}
  body #copy #discover{margin-top:12px!important;font-size:9px!important;min-height:34px!important;}
  /* Preserve the approved mobile clipped frame/footer as-is. */
  body.afsc-mobile-open #side{opacity:0!important;pointer-events:none!important;}
}
@media screen and (max-width:380px){
 body #side,body.is-opening #side{top:27%!important;left:28px!important;}
 body #side button,body.is-opening #side button,body.is-opening #side button:not(.active){height:23px!important;min-height:23px!important;font-size:7.5px!important;}
 body #copy{bottom:150px!important;left:50%!important;width:calc(100% - 68px)!important;}
 body #copy h1,body #copy #title{font-size:clamp(28px,8.2vw,36px)!important;}
 #mobileHeaderMenu{right:29px!important;}
}
@media screen and (max-width:700px) and (max-height:690px){
 body #side,body.is-opening #side{top:25%!important;}
 body #copy{bottom:122px!important;}
 body #copy h1,body #copy #title{font-size:clamp(25px,7.5vw,35px)!important;}
}
