/* Mogi top bar on game pages (30 Oct 2026): the same bar as the site pages (site/site.css), as a
   small file of its own so a game page doesn't load the site's styles (they use the same class and colour names as the
   games). Its colours live on the bar and menu themselves (--nv-*), never on :root, so they can't touch a game.
   Behaviour: shared/nav.js. Markup: written by tools/seo/build.py (copied from the site pages by site.py's header()). */
.top,.side{--nv-bg:#0b0a10;--nv-surface:#15121f;--nv-surface-2:#1c1830;--nv-ink:#ece6f7;--nv-muted:#9a93a6;--nv-line:#2c2640;
  --nv-cyan:#00F0FF;--nv-gold:#FFD60A;--nv-gutter:clamp(16px,3vw,32px);
  --nv-shadow:0 1px 0 #ffffff08 inset,0 10px 28px -16px #000;
  --nv-display:"Bricolage Grotesque",system-ui,sans-serif;--nv-text:"Plus Jakarta Sans",system-ui,sans-serif}
.skip{position:absolute;left:-999px;top:8px;z-index:30;background:#FFD60A;color:#0b0a10;padding:10px 14px;border-radius:10px;font-weight:700}
.skip:focus{left:8px}

/* top bar */
.top{position:sticky;top:0;z-index:40;background:#0b0a10e6;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--nv-line);font-family:var(--nv-text);color:var(--nv-ink)}
.top a{color:inherit;text-decoration:none}
.top-inner{display:flex;align-items:center;gap:18px;height:70px;padding:0 var(--nv-gutter)}
.top .logo{display:flex;align-items:center;gap:8px}
.top .logo-mark{width:52px;height:40px;display:grid;place-items:center}
.top .logo-mark canvas{width:52px;height:40px}
.top .logo-word{font:800 28px/1 var(--nv-display);letter-spacing:-.03em;color:var(--nv-ink)}
.top .search{flex:1;max-width:520px;margin:0 auto;position:relative}
.top .search input{width:100%;height:46px;border-radius:999px;border:1px solid var(--nv-line);background:var(--nv-surface);color:var(--nv-ink);
  padding:0 18px 0 46px;font:500 15px var(--nv-text);box-shadow:var(--nv-shadow);-webkit-user-select:text;user-select:text}
.top .search input::placeholder{color:var(--nv-muted)}
.top .search input:focus{outline:3px solid #00f0ff55;border-color:var(--nv-cyan)}
.top .search svg{position:absolute;left:16px;top:13px;width:20px;height:20px;color:var(--nv-muted)}

/* the side menu and ☰: shared/side.css (v8, 3 Nov 2026) */

@media (max-width:520px){.top .logo-word{font-size:24px}.top-inner{gap:12px}}
/* phones: a slimmer bar, so a game page keeps as much of the screen as the game had before the bar */
@media (max-width:640px){
  .top-inner{height:48px;gap:10px}
  .top .logo-mark,.top .logo-mark canvas{width:39px;height:30px}
  .top .logo-word{font-size:22px}
  .top .search input{height:36px;font-size:14px;padding-left:40px}
  .top .search svg{top:9px;left:13px;width:18px;height:18px}
}
