/* Shared page chrome for the static game pages (moon-hop.html, moonler-run.html):
   site background, site nav, game switcher and Future-Proof logo. Load it after each
   game's own <style> so these rules win. */

body {
  position: relative;
  background-color: #0b0f19;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Site nav: same look as the React NavTabs pill */
.sitebar {
  max-width: calc(100vw - 16px);
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 24, 43, 0.9);
  overflow-x: auto;
  scrollbar-width: none;
}
.sitebar::-webkit-scrollbar { display: none; }
.sitebar a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
}
.sitebar a:hover,
.sitebar a:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.3); outline: none; }
.sitebar a[aria-current] {
  color: #00f0ff;
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.5);
}
@media (min-width: 640px) { .sitebar a { font-size: 14px; padding: 8px 18px; } }

/* Game switcher */
.games {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.games a {
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #aeb4d6;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 16px;
}
.games a:hover,
.games a:focus-visible { color: #fff; outline: none; }
.games a[aria-current] { background: #ffd35a; color: #241a00; }

/* Logo: page corner on wide screens (like the other pages), on the title card otherwise */
.corner-logo { display: none; }
.card-logo { width: 150px; height: auto; margin: -34px auto -40px; }
@media (min-width: 1100px) {
  .corner-logo {
    display: block;
    position: absolute;
    top: 0;
    right: 32px;
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 240, 255, 0.4));
  }
  .card-logo { display: none; }
}
