/* Header copied from the live Arcade page; game styles remain isolated. */
.site-header { --accent:#ef9f2f; --text:#f6efe6; --muted:#d2c2b0; --soft:#b49a84; --line:rgba(255,255,255,.1); --panel:#1f1812; --shadow:0 18px 40px rgba(0,0,0,.28); width:100%; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.6; color:var(--text); }
.site-header * {box-sizing:border-box;}
.site-header a {color:inherit;text-decoration:none;}
.site-header .wrap {width:min(calc(100% - 2rem),1180px);margin:0 auto;}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,10,8,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 1rem;
}
.site-header .brand {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
}
.site-header .brand span { color: var(--accent); }
.site-header .nav { display: flex; align-items: center; gap: 1.1rem; }
.site-header .nav a {
  color: var(--muted); font-weight: 600; font-size: .98rem;
  padding: .45rem .2rem;
}
.site-header .nav a:hover, .nav a:focus-visible { color: var(--text); }
.site-header .menu-toggle {
  display: none; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); border-radius: 12px; font-size: 1.2rem; width: 46px; height: 46px;
}

.header-social-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding-left: .65rem;
  border-left: 1px solid var(--line);
}
.homepage-header .header-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: .55rem;
  border-radius: 9px;
  color: var(--soft);
}
.header-social-links svg { width: 18px; height: 18px; }
.homepage-header .header-social-links a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.header-social-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1000px) {
  .homepage-header .header-inner { position: relative; }
  .homepage-header .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .homepage-header .nav { display: none; position: absolute; right: 0; top: 74px; width: min(280px, calc(100vw - 2rem)); flex-direction: column; align-items: stretch; padding: .8rem; background: rgba(20,14,10,.98); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .homepage-header .nav.open { display: flex; }
  .homepage-header .nav > a { padding: .75rem .8rem; border-radius: 12px; }
  .homepage-header .nav > a:hover { background: rgba(255,255,255,.04); }
  .header-social-links { padding: .5rem 0 0; border-left: 0; border-top: 1px solid var(--line); gap: .75rem; }
  .homepage-header .header-social-links a { width: 44px; height: 44px; }
}

/* Keep a short landscape menu usable without pushing or covering an active board. */
.site-header .nav.open {max-height:calc(var(--war-vh,100dvh) - var(--site-header-height,83px) - 8px);overflow-y:auto;}
