/* Eclipse site shell for arcade pages (site 1.149, PLAN §10f-0): the main site's top bar + sidebar on /arcade/ (hub) and
   /arcade/cardroom/ (picker). Games stay full-screen and never load this file.
   Everything is scoped under #esShell, and the site's tokens are defined ON #esShell (not :root), so the arcade's own
   --gold / --line / button rules can't leak in and these can't leak out. Markup comes from site/index.html at build time
   (build_site_arcade.py), so new sidebar links show up here on the next build. */
#esShell{
  --bg2:#0d0c0f; --surface:rgba(255,255,255,.035); --surface2:rgba(255,255,255,.06);
  --line:rgba(232,226,216,.12); --line2:rgba(232,226,216,.22);
  --gold:#e8a820; --gold2:#f5c84a; --gold-dark:#9a6a08; --gold-dim:rgba(232,168,32,.14);
  --silver:#c9ced6; --text:#e8e2d8; --muted:#8a8278;
  --glow-sm:0 0 8px rgba(232,168,32,.45), 0 0 2px rgba(232,168,32,.6);
  --side:232px; --rail:68px; --top:64px;
  font:500 16.5px/1.5 Rajdhani,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--text);text-align:left
}
#esShell *{box-sizing:border-box}
#esShell a{color:var(--text);text-decoration:none}
#esShell [hidden]{display:none!important}

/* page offset (the arcade content keeps its own max-width and centring inside the space that's left) */
body.es-shell{padding-top:64px}
@media (min-width:901px){
  body.es-shell{padding-left:250px;transition:padding-left .3s}   /* 232 sidebar + 18 gutter so the ‹ toggle never touches page content */
  body.es-shell.es-collapsed{padding-left:86px}
}

/* top bar */
#esShell .topbar{position:fixed;top:0;left:0;right:0;height:var(--top);z-index:60;display:flex;align-items:center;gap:14px;padding:0 18px;margin:0;
  flex-wrap:nowrap;justify-content:flex-start;background:rgba(7,8,15,.82);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
#esShell .brand{display:flex;align-items:center;gap:10px;color:var(--text);user-select:none}
#esShell .brand:hover{text-decoration:none}
#esShell .brand img{width:34px;height:36px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(232,168,32,.35));transition:transform .4s}
#esShell .brand:hover img{transform:rotate(-12deg)}
#esShell .brand b{font-family:Orbitron,Rajdhani,sans-serif;font-weight:800;font-size:16px;letter-spacing:.12em;white-space:nowrap}
#esShell .brand b span{color:var(--gold)}
#esShell .spacer{flex:1}
#esShell .es-tools{display:flex;align-items:center;gap:8px}
#esShell .btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);cursor:pointer;
  font:700 15px Rajdhani,system-ui,sans-serif;letter-spacing:.02em;color:var(--text);white-space:nowrap;box-shadow:none;text-transform:none;line-height:1.2}
#esShell .btn:hover{background:var(--surface2);text-decoration:none}
#esShell .btn.gold{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#1a1200;border-color:transparent;box-shadow:0 4px 18px rgba(232,168,32,.25)}
#esShell .btn.gold:hover{filter:brightness(1.08)}
#esShell .btn.discord{background:#5865f2;border-color:transparent;color:#fff}
#esShell .me-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--text);font-weight:600;font-size:14px;min-height:38px}
#esShell .me-chip:hover{background:var(--surface2)}
#esShell .me-chip img,#esShell .me-chip .ph{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--gold-dim);display:grid;place-items:center;font-size:13px;color:var(--gold2)}
#esShell .me-ach{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--line2);border-radius:999px;font-size:16px}
/* the hub's 🔊 SFX button, moved into the bar (data-shell-tool) */
#esShell .es-tools .snd{margin:0;order:0;font:600 13px Rajdhani,system-ui,sans-serif;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap}
#esShell .es-tools .snd:hover{background:var(--surface2)}
#esShell .menu-btn{display:none;background:none;border:0;padding:8px;cursor:pointer;color:var(--text)}

/* sidebar (same look as the main site) */
#esShell .sidebar{position:fixed;top:var(--top);bottom:0;left:0;width:var(--side);z-index:55;padding:18px 12px calc(16px + env(safe-area-inset-bottom));border-right:1px solid var(--line);
  background:rgba(9,10,19,.78);backdrop-filter:blur(10px);transition:transform .3s ease, width .25s ease, padding .25s ease, box-shadow .25s ease;
  overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
#esShell .sidebar>.nav{flex:none}
#esShell .nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;margin:2px 0;border-radius:10px;color:var(--muted);
  font:600 12.5px Orbitron,Rajdhani,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
#esShell .nav a:hover{background:var(--surface);color:var(--text)}
#esShell .nav a.on{background:var(--gold-dim);color:var(--gold2);box-shadow:inset 3px 0 0 var(--gold);text-shadow:var(--glow-sm)}
#esShell .nav .ico{width:20px;text-align:center}
#esShell .nav-h{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin:0;border:0;background:none;cursor:pointer;text-align:left;border-radius:8px;
  padding:16px 14px 5px;font:700 10px Orbitron,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);opacity:.7;white-space:nowrap}
#esShell .nav-h:hover{opacity:1;color:var(--text)}
#esShell .nav-h:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;opacity:1}
#esShell .nav-car::before{content:'▾';display:inline-block;font-style:normal;font-size:12px;line-height:1;transition:transform .2s}
#esShell .nav-h[aria-expanded="false"] .nav-car::before{transform:rotate(-90deg)}
#esShell .nav-sec.shut .nav-items{display:none}
#esShell .nav-sec:not(:has(.nav-items a:not([hidden]))){display:none}
#esShell .nav-sec[data-sec="staff"]{margin-top:10px;border-top:1px dashed var(--line2);padding-top:2px}
#esShell .nav-cta{display:none!important}
#esShell .side-foot{margin:auto 2px 0;padding-top:18px;font-size:12px;color:var(--muted);flex:none;transition:opacity .2s}
#esShell .side-toggle{position:fixed;top:calc(var(--top) + 18px);left:calc(var(--side) - 14px);z-index:57;width:28px;height:28px;border-radius:50%;padding:0;
  border:1px solid var(--line2);background:var(--bg2);cursor:pointer;display:grid;place-items:center;color:var(--silver);transition:left .3s, transform .3s, opacity .15s}
#esShell .scrim{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:50;opacity:0;pointer-events:none;transition:opacity .25s}

/* collapsed = icon rail on desktop; hover (or tab into) it to slide it open over the page */
@media (min-width:901px){
  body.es-collapsed #esShell .sidebar{width:var(--rail);padding:18px 10px;overflow:hidden}
  body.es-collapsed #esShell .nav a{gap:0;justify-content:center;padding:11px 0;font-size:0;letter-spacing:0}
  body.es-collapsed #esShell .nav .ico{font-size:17px;width:auto}
  body.es-collapsed #esShell .side-foot{opacity:0;pointer-events:none}
  body.es-collapsed #esShell .nav-h{height:1px;padding:0;margin:12px 10px;width:calc(100% - 20px);background:var(--line2);opacity:1;pointer-events:none}
  body.es-collapsed #esShell .nav-h span,body.es-collapsed #esShell .nav-car{display:none}
  body.es-collapsed #esShell .nav-sec.shut .nav-items{display:block}
  body.es-collapsed #esShell .nav-sec[data-sec="staff"]{border-top:0;margin-top:0}
  body.es-collapsed #esShell .sidebar:hover,body.es-collapsed #esShell .sidebar:has(:focus-visible){width:var(--side);padding:18px 12px;box-shadow:16px 0 40px rgba(0,0,0,.55);overflow-y:auto}
  body.es-collapsed #esShell .sidebar:hover .nav a,body.es-collapsed #esShell .sidebar:has(:focus-visible) .nav a{gap:12px;justify-content:flex-start;padding:11px 14px;font-size:12.5px;letter-spacing:.06em}
  body.es-collapsed #esShell .sidebar:hover .nav .ico,body.es-collapsed #esShell .sidebar:has(:focus-visible) .nav .ico{font-size:inherit;width:20px}
  body.es-collapsed #esShell .sidebar:hover .side-foot,body.es-collapsed #esShell .sidebar:has(:focus-visible) .side-foot{opacity:1;pointer-events:auto}
  body.es-collapsed #esShell .sidebar:hover .nav-h,body.es-collapsed #esShell .sidebar:has(:focus-visible) .nav-h{height:auto;margin:0;width:100%;padding:16px 14px 5px;background:none;opacity:.7}
  body.es-collapsed #esShell .sidebar:hover .nav-h span,body.es-collapsed #esShell .sidebar:has(:focus-visible) .nav-h span{display:inline}
  body.es-collapsed #esShell .side-toggle{left:calc(var(--rail) - 14px);transform:rotate(180deg)}
  body.es-collapsed #esShell .sidebar:hover + .side-toggle,body.es-collapsed #esShell .sidebar:has(:focus-visible) + .side-toggle{opacity:0;pointer-events:none}
}
@media (min-width:821px) and (max-height:800px){#esShell .nav a{padding-top:8px;padding-bottom:8px}}

/* phones + tablets: sidebar slides in from the ☰ button */
@media (max-width:900px){
  #esShell .sidebar{transform:translateX(-100%)}
  body.es-menu #esShell .sidebar{transform:none;box-shadow:16px 0 40px rgba(0,0,0,.6)}
  body.es-menu #esShell .scrim{opacity:1;pointer-events:auto}
  #esShell .side-toggle{display:none}
  /* the hub's 🔊 SFX button, moved into the bar (data-shell-tool) */
#esShell .es-tools .snd{margin:0;order:0;font:600 13px Rajdhani,system-ui,sans-serif;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap}
#esShell .es-tools .snd:hover{background:var(--surface2)}
#esShell .menu-btn{display:block}
  #esShell .hide-sm{display:none!important}
  #esShell .topbar{gap:10px;padding:0 10px}
  #esShell .brand b{font-size:13px;letter-spacing:.06em}
  #esShell .brand b span{display:none}
  #esShell .nav-cta{display:flex!important;margin-top:14px!important;justify-content:center;background:linear-gradient(90deg,var(--gold),var(--gold2));color:#1a1204!important}
}
@media (max-width:420px){#esShell .brand b{display:none}}
@media (prefers-reduced-motion:reduce){#esShell .sidebar,#esShell .side-toggle,#esShell .scrim,#esShell .nav-car::before,body.es-shell{transition:none}}

/* v1.149 (Zachary): the Eclipse Arcade link is a little neon sign (same look as the main site's sidebar, styles.css).
   Hot-pink tube text with a white core + purple bloom, an occasional flicker (opacity only = cheap), cyan icon glow.
   Active (you're in the arcade) = pink tube bar instead of the site's gold one. */
#esShell .nav a[data-p="arcade"]{color:#ffe3fa;text-shadow:0 0 1px #fff,0 0 5px #ff3fd2,0 0 12px #ff3fd2,0 0 22px #9b30ff;animation:esNeon 7s steps(1) infinite}
#esShell .nav a[data-p="arcade"] .ico{filter:drop-shadow(0 0 4px #22e6ff) drop-shadow(0 0 8px #ff3fd2)}
#esShell .nav a[data-p="arcade"]:hover{color:#fff;background:rgba(255,63,210,.10)}
#esShell .nav a[data-p="arcade"].on{color:#fff;background:linear-gradient(90deg,rgba(255,63,210,.18),rgba(155,48,255,.10));box-shadow:inset 3px 0 0 #ff3fd2,inset 0 0 0 1px rgba(255,63,210,.35),0 0 14px rgba(255,63,210,.25)}
@keyframes esNeon{0%{opacity:1}61%{opacity:.55}62%{opacity:1}64%{opacity:.4}65%{opacity:1}88%{opacity:.75}89%{opacity:1}}
@media (prefers-reduced-motion:reduce){#esShell .nav a[data-p="arcade"]{animation:none}}
