/* Mogi side menu v8 (3 Nov 2026), on every page: site pages (after site/site.css) and game pages (after shared/nav.css).
   Like the big game sites: a thin column of one-colour icons down the left; pointing at it (or tabbing into it) slides
   the names out over the page; ☰ in the top bar hides it (html.side-off, remembered by shared/nav.js).
   Phones: site pages show the kinds as a sideways strip; game pages show no menu (shared/player.css).
   Markup: tools/seo/nav_html.py. Its colours live on the menu itself (--sd-*), never on :root. */
.side{--sd-w:68px;--sd-open:228px;--sd-bg:#0b0a10;--sd-hover:#1c1830;--sd-on:#231d38;--sd-icon:#a99bff;--sd-gold:#FFD60A;
  --sd-line:#2c2640;--sd-ease:cubic-bezier(.2,.8,.2,1);
  position:sticky;top:70px;align-self:start;z-index:30;width:var(--sd-open);height:calc(100vh - 70px);margin:0;
  display:flex;flex-direction:column;gap:2px;padding:8px 10px 24px;overflow:hidden auto;scrollbar-width:none;
  background:var(--sd-bg);border:0;border-radius:0;box-shadow:none;font-family:"Plus Jakarta Sans",system-ui,sans-serif;
  clip-path:inset(0 calc(100% - var(--sd-w)) 0 0);transition:clip-path .22s var(--sd-ease),box-shadow .22s}
.side::-webkit-scrollbar{display:none}
.side:hover,.side:focus-within{clip-path:inset(0 -60px 0 0);box-shadow:18px 0 40px -10px #000d}
.side a{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex:none;width:auto;height:42px;padding:0 13px;
  border:0;border-radius:10px;background:none;box-shadow:none;color:#fff;font:700 14px "Plus Jakarta Sans",system-ui,sans-serif;
  white-space:nowrap;text-decoration:none}
.side a svg{flex:none;width:22px;height:22px;fill:var(--sd-icon)}
.side a svg [stroke="#fff"]{stroke:var(--sd-icon)}                  /* icons drawn with white lines stay one colour */
.side .label{display:inline;opacity:0;transition:opacity .15s}
.side:hover .label,.side:focus-within .label{opacity:1}
.side a:hover{background:var(--sd-hover)}
.side a[aria-current=page]{background:var(--sd-on);box-shadow:none;color:#fff}
.side a[aria-current=page] svg{fill:var(--sd-gold)}
.side a[aria-current=page] svg [stroke="#fff"]{stroke:var(--sd-gold)}
.side a:focus-visible{outline:2px solid var(--sd-gold);outline-offset:-2px}
.side hr{display:block;flex:none;border:0;border-top:1px solid var(--sd-line);margin:9px 6px}

/* ☰ in the top bar, left of the logo */
.side-toggle{flex:none;display:grid;place-items:center;width:40px;height:40px;margin:0 -6px 0 -8px;padding:0;border:0;border-radius:10px;
  background:none;color:#ece6f7;cursor:pointer}
.side-toggle:hover{background:#1c1830}
.side-toggle:focus-visible{outline:2px solid #FFD60A;outline-offset:2px}

/* hidden with ☰ (computers only; ☰ isn't there on phones): the games take the room */
@media (min-width:861px){
  html.side-off .side{display:none}
  html.side-off .layout{grid-template-columns:minmax(0,1fr);padding-left:var(--gutter,24px)}
  html.side-off .gp-layout{grid-template-columns:minmax(0,1fr);padding-left:clamp(16px,3vw,32px)}
}

@media (max-width:860px){
  .side-toggle{display:none}
  .side{position:static;display:flex;flex-direction:row;gap:8px;width:auto;height:auto;padding:0 0 4px;
    overflow-x:auto;clip-path:none;box-shadow:none;background:none}
  .side:hover,.side:focus-within{clip-path:none;box-shadow:none}
  .side a{height:40px;padding:0 14px;gap:8px;background:#15121f;border:1px solid var(--sd-line)}
  .side a svg{width:18px;height:18px}
  .side .label{opacity:1}
  .side hr{display:none}
  .side a[aria-current=page]{box-shadow:inset 0 -3px 0 var(--sd-gold)}
}
@media (prefers-reduced-motion:reduce){.side,.side .label{transition:none}}
