/* Site-wide top bar. Markup is one identical block right after <body> on every static page. */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Barlow+Condensed:wght@600;700&display=swap');

html{scroll-padding-top:56px}
body{margin-top:56px!important}

.mfa-nav{position:fixed;top:0;left:0;right:0;z-index:85;height:56px;box-sizing:border-box;
  display:flex;align-items:center;gap:16px;margin:0;padding:0 18px;
  background:#05060f;border:0;border-bottom:2px solid #f0b64b;box-shadow:0 6px 18px rgba(0,0,0,.45);
  font:600 15px/1 'Barlow Condensed',Helvetica,Arial,sans-serif;text-align:left;text-transform:none}
.mfa-nav a{display:inline-flex;align-items:center;margin:0;border:0;background:none;
  color:#f3eee6;text-decoration:none;white-space:nowrap;letter-spacing:.12em;text-transform:uppercase}
.mfa-nav .mfa-nav-mark{flex:none;font:10px/1.5 'Press Start 2P',monospace;letter-spacing:.06em;color:#f0b64b;
  text-shadow:2px 2px 0 #ff2d95}
.mfa-nav-l{flex:1;min-width:0;display:flex;justify-content:flex-end;align-items:center;gap:2px;
  overflow-x:auto;scrollbar-width:none}
.mfa-nav-l::-webkit-scrollbar{display:none}
.mfa-nav-l a{height:38px;padding:0 9px;border-radius:6px;font:inherit;letter-spacing:.12em;text-transform:uppercase}
.mfa-nav-l a:hover,.mfa-nav-l a:focus-visible{color:#f0b64b;background:#151129;outline:none}
.mfa-nav-l a.mfa-nav-hot{color:#120a00;background:#ffd700;font-weight:700;margin:0 6px}
.mfa-nav-l a.mfa-nav-hot:hover,.mfa-nav-l a.mfa-nav-hot:focus-visible{background:#fff;color:#120a00}
.mfa-nav-t{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mfa-nav-b{display:none}

/* mid widths: wordmark stacks to two lines so the links keep room */
@media(max-width:1180px){.mfa-nav .mfa-nav-mark{font-size:8px;max-width:180px;white-space:normal}}

/* phones: wordmark + hamburger, links drop down (CSS-only checkbox toggle) */
@media(max-width:719px){
  .mfa-nav{justify-content:space-between;padding:0 6px 0 14px}
  .mfa-nav .mfa-nav-mark{font-size:9px;max-width:250px}
  .mfa-nav-b{display:flex;align-items:center;justify-content:center;width:48px;height:48px;
    color:#f0b64b;font-size:26px;line-height:1;cursor:pointer;border-radius:6px;user-select:none}
  .mfa-nav-t:focus-visible + .mfa-nav-b{outline:2px solid #f0b64b}
  .mfa-nav-l{display:none;position:absolute;top:54px;left:0;right:0;flex-direction:column;align-items:stretch;
    gap:0;padding:6px 0 10px;background:#05060f;border-bottom:2px solid #f0b64b;
    max-height:calc(100dvh - 56px);overflow-y:auto}
  .mfa-nav-t:checked ~ .mfa-nav-l{display:flex}
  .mfa-nav-l a{height:48px;padding:0 18px;border-radius:0;font-size:17px}
  .mfa-nav-l a.mfa-nav-hot{margin:4px 14px;border-radius:6px;justify-content:center}
}

/* page-specific offsets so nothing sits under the bar */
nav{top:56px}                                   /* dynasty: sticky VCR nav */
#hudTop{top:56px}                               /* mfa: fixed HUD */
#stage{top:56px;height:calc(100dvh - 56px)}     /* mfa: fixed stage */
@media (max-width:768px),(pointer:coarse) and (max-height:500px){
  body:has(#task){top:56px;height:auto;margin-top:0!important}  /* dynasty-mail mobile: body is fixed */
}
