* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

canvas {
  border: 2px solid #111;
  background: black;
}

/* ── Main-menu footer overlay ─────────────────────────────────────────────── */
#gameFooter {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 2px;
  padding: calc(6px * var(--fs, 1)) calc(12px * var(--fs, 1)) calc(9px * var(--fs, 1));
  font-family: Arial, sans-serif;
  font-size: calc(11px * var(--fs, 1));
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.70);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.7);
  pointer-events: auto;
  z-index: 200;
  /* subtle dark gradient so footer is always readable against any background */
  background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 100%);
  box-sizing: border-box;
  transition: opacity 0.35s ease;
}

#gameFooter .f-plain {
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

#gameFooter .f-sep {
  color: rgba(255, 255, 255, 0.40);
  white-space: nowrap;
}

#gameFooter .f-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px;
  padding: 1px 2px;
  transition: filter 0.22s ease, transform 0.22s ease, background 0.22s ease;
  text-shadow: 0 0 10px rgba(255,255,255,0.35), 0 1px 4px rgba(0,0,0,0.8);
}

#gameFooter .f-link:hover {
  filter: brightness(1.35);
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

#gameFooter .f-logo {
  border-radius: 0;
  display: block;
  flex-shrink: 0;
}

#gameFooter .f-logo-monad {
  width: calc(44px * var(--fs, 1));
  height: calc(20px * var(--fs, 1));
  object-fit: cover;
  object-position: 9% center;
  background: transparent;
  border-radius: 0;
}

#gameFooter .f-logo-squad {
  width: calc(40px * var(--fs, 1));
  height: calc(20px * var(--fs, 1));
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
