#menu-top-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: max(16px, env(safe-area-inset-left, 16px));
  z-index: 1000;
  min-width: 170px;
  height: 48px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s, border-color 0.2s;
  padding: 0 24px;
  box-sizing: border-box;
  letter-spacing: 1px;
  display: inline-block;
}

#menu-top-btn:hover,
#menu-top-btn:focus {
  background: rgba(0, 0, 0, 0.85);
  border-color: #fff;
  outline: none;
}
#donate-btn {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  z-index: 1000;
  min-width: 170px;
  height: 48px;
  border-radius: 50px;
  background: #3fd47a;
  color: #111;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  border: 2px solid #3fd47a;
  box-shadow: 0 0 12px 1px #3fd47acc;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0 24px;
  box-sizing: border-box;
  letter-spacing: 1px;
  display: inline-block;
}

#donate-btn:hover,
#donate-btn:focus {
  background: #22b36a;
  border-color: #22b36a;
  color: #111;
  outline: none;
  box-shadow: 0 0 18px 2px #22b36acc;
}
# Floating Donation Badge (copied from knowledge-hub/styles.css)
.gototopSecond {
  position: fixed;
  bottom: 16px;
  right: 16px !important;
  left: auto !important;
  z-index: 2000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s, border-color 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.gototopSecond:hover,
.gototopSecond:focus {
  background: rgba(0, 0, 0, 0.85);
  border-color: #fff;
  outline: none;
}
.gototopSecond i {
  line-height: 1;
  pointer-events: none;
}
.gototopSecond:hover,
.gototopSecond:focus {
  background: #0070ba;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.gototopSecond i {
  line-height: 0.8em;
  pointer-events: none;
}
/* Lazy Eye Games — standalone game page styles */

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;  /* dynamic viewport height — respects Safari iOS toolbar shrink/grow */
  overflow: hidden;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
}

#game-container {
  width: 100%;
  height: 100%;
}

#game-container canvas {
  display: block;
}

/* ─── Circular Exit Button (bottom-left) ───────────────────── */

#exit-btn {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: max(16px, env(safe-area-inset-left, 16px));
  z-index: 1000;
  min-width: 170px;
  height: 48px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s, border-color 0.2s;
  padding: 0 24px;
  box-sizing: border-box;
  letter-spacing: 1px;
  display: inline-block;
}

#exit-btn:hover,
#exit-btn:focus {
  background: rgba(0, 0, 0, 0.85);
  border-color: #fff;
  outline: none;
}

#menu-btn {
  position: fixed;
  bottom: 72px;
  left: 16px;
  z-index: 1000;
  min-width: 120px;
  height: 40px;
  border-radius: 50px;
  background: #2D6A94;
  color: #fff;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
  padding: 0 20px;
  letter-spacing: 1px;
  cursor: pointer;
  display: none;
}
#menu-btn:hover,
#menu-btn:focus {
  background: #1e4f70;
  outline: none;
}

/* ─── Responsive button layout ────────────────────────────────
   Shrink overlay buttons on mobile so they never overlap.
   #menu-top-btn  → top-left  (in-game / calibration only)
   #exit-btn      → bottom-left
   #donate-btn    → bottom-right
   ─────────────────────────────────────────────────────────── */

/* Tablets & large phones (≤ 600 px) */
@media (max-width: 600px) {
  #menu-top-btn {
    min-width: unset;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    letter-spacing: 0;
    top: max(8px, env(safe-area-inset-top, 8px));
    left: max(8px, env(safe-area-inset-left, 8px));
  }
  #exit-btn {
    min-width: unset;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    letter-spacing: 0;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    left: max(8px, env(safe-area-inset-left, 8px));
  }
  #donate-btn {
    min-width: unset;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    letter-spacing: 0;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    right: max(8px, env(safe-area-inset-right, 8px));
  }
}

/* Small phones (≤ 420 px) — very compact */
@media (max-width: 420px) {
  #menu-top-btn {
    font-size: 13px;
    height: 38px;
    line-height: 38px;
    padding: 0 10px;
    top: max(6px, env(safe-area-inset-top, 6px));
    left: max(6px, env(safe-area-inset-left, 6px));
  }
  #exit-btn {
    font-size: 12px;
    height: 38px;
    line-height: 38px;
    padding: 0 9px;
    bottom: max(6px, env(safe-area-inset-bottom, 6px));
    left: max(6px, env(safe-area-inset-left, 6px));
  }
  #donate-btn {
    font-size: 12px;
    height: 38px;
    line-height: 38px;
    padding: 0 9px;
    bottom: max(6px, env(safe-area-inset-bottom, 6px));
    right: max(6px, env(safe-area-inset-right, 6px));
  }
}

/* Ensure the Phaser canvas never gets clipped behind native browser chrome */
#game-container canvas {
  touch-action: none;        /* prevent browser scroll/zoom hijacking */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
