/* Shared site menu: same bar, same links, same order on every page. Self-contained so it looks the same whatever the page's own styles. */
.sn { position: sticky; top: 0; z-index: 60; background: #0f1112; border-bottom: 1px solid rgba(198,255,0,.28); color: #f2f2ee; font-family: "Schibsted Grotesk", system-ui, sans-serif; }
.sn-in { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); min-height: 56px; display: flex; align-items: center; gap: 16px; }
.sn-brand { display: flex; align-items: center; gap: 10px; color: #f2f2ee; text-decoration: none; font: 800 18px/1 "Archivo", system-ui, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.sn-brand img { width: 32px; height: 32px; flex: none; }
.sn-brand b { color: #c6ff00; font-weight: 800; }
.sn-links { margin-left: auto; display: flex; gap: 2px; }
.sn-links a { color: #f2f2ee; text-decoration: none; padding: 8px 10px; font: 600 11px/16px "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.sn-links a:hover { color: #c6ff00; }
.sn-links a[aria-current="page"] { color: #c6ff00; border-bottom-color: #c6ff00; }
.sn a:focus-visible, .sn button:focus-visible { outline: 2px solid #c6ff00; outline-offset: 2px; }
.sn-menu { display: none; margin-left: auto; background: transparent; color: #c6ff00; border: 1px solid #c6ff00; border-radius: 2px; font: 600 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; min-height: 40px; cursor: pointer; }
.sn-menu::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c6ff00; margin-right: 8px; box-shadow: 0 0 8px #c6ff00; }
@media (max-width: 860px) {
  .sn.js .sn-menu { display: inline-flex; align-items: center; }
  .sn.js .sn-links { position: fixed; inset: 56px 0 0 0; flex-direction: column; gap: 0; padding: 24px 16px; background: #0f1112 radial-gradient(circle at 85% 20%, rgba(198,255,0,.08), transparent 60%); overflow: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .sn.js.open .sn-links { visibility: visible; opacity: 1; transition: opacity .2s; }
  .sn.js .sn-links a { font: 800 30px/1.1 "Archivo", system-ui, sans-serif; letter-spacing: -.01em; text-transform: none; padding: 16px 4px; border-bottom: 1px solid rgba(242,242,238,.12); }
  .sn.js .sn-links a::before { content: attr(data-n); display: inline-block; width: 3.2em; font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; color: #c6ff00; vertical-align: middle; }
  /* radar sweep behind the open menu; motion only when the visitor allows it */
  .sn.js .sn-links::after { content: ""; position: absolute; right: -30vmax; top: -30vmax; width: 80vmax; height: 80vmax; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, rgba(198,255,0,.16), transparent 20%); }
  .sn.js .sn-links { isolation: isolate; }
  .sn.js .sn-links::after { z-index: -1; }
  body.sn-lock { overflow: hidden; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .sn.js.open .sn-links::after { animation: sn-sweep 4s linear infinite; }
  .sn.js.open .sn-links a { animation: sn-in .35s both; }
  .sn.js.open .sn-links a:nth-child(2) { animation-delay: .04s; } .sn.js.open .sn-links a:nth-child(3) { animation-delay: .08s; }
  .sn.js.open .sn-links a:nth-child(4) { animation-delay: .12s; } .sn.js.open .sn-links a:nth-child(5) { animation-delay: .16s; }
  .sn.js.open .sn-links a:nth-child(6) { animation-delay: .2s; } .sn.js.open .sn-links a:nth-child(7) { animation-delay: .24s; }
}
@keyframes sn-sweep { to { transform: rotate(360deg); } }
@keyframes sn-in { from { opacity: 0; transform: translateX(16px); } }
@media (max-width: 400px) { .sn-brand { font-size: 15px; } .sn-brand img { width: 28px; height: 28px; } }
/* No-JS phones: links wrap onto a second row instead of hiding */
@media (max-width: 860px) { .sn:not(.js) .sn-in { flex-wrap: wrap; padding-block: 8px; } .sn:not(.js) .sn-links { flex-wrap: wrap; margin-left: 0; } }
/* Back-to-site pill used on the full-screen game pages */
.sn-back { position: fixed; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); z-index: 9999; display: inline-flex; align-items: center; gap: 8px; background: rgba(15,17,18,.88); color: #f2f2ee; border: 1px solid #c6ff00; border-radius: 999px; padding: 8px 14px 8px 8px; font: 600 12px/1 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: .06em; text-decoration: none; backdrop-filter: blur(4px); }
.sn-back img { width: 22px; height: 22px; }
.sn-back:hover, .sn-back:focus-visible { background: #c6ff00; color: #0f1112; outline: none; }
/* Turbo Wobble has a full-width score bar along the top, so its pill sits just under it */
.sn-back.below-hud { top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 600px) { .sn-back.below-hud { top: calc(112px + env(safe-area-inset-top, 0px)); } }
