/* ---- Game Layer ------------------------------------------------- */

@media (max-width: 768px) {
  #game-layer {
    display: none;
  }
}

#game-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-family: monospace;
}

/* ---- Earth ------------------------------------------------------ */
#game-earth {
  position: fixed;
  bottom: 30px;
  left: 30px;
  color: #3a5a3a;
  line-height: 1.2;
  user-select: none;
}

#game-earth pre {
  margin: 0;
  font-size: 13px;
}

#game-launchpad {
  color: #666;
  text-align: center;
  margin-bottom: 1px;
  line-height: 1.1;
}

/* ---- Moon ------------------------------------------------------- */
#game-moon {
  position: fixed;
  top: 30px;
  right: 30px;
  color: #6a6a6a;
  user-select: none;
  width: 180px;
  padding-right: 20px;
  box-sizing: border-box;
}

#game-moon pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

#game-upgrade-btn {
  display: none;
  margin-top: 10px;
  color: #d8d8d8;
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: 1px solid #555;
  padding: 5px 8px;
  width: 100%;
  text-align: center;
  white-space: pre;
  line-height: 1.8;
}

#game-upgrade-btn:hover {
  color: #fff;
  border-color: #999;
}

/* ---- Light mode overrides --------------------------------------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) #game-upgrade-btn {
    color: #222;
    border-color: #888;
  }
  :root:not([data-theme]) #game-upgrade-btn:hover {
    color: #000;
    border-color: #333;
  }
}

[data-theme="light"] #game-upgrade-btn {
  color: #222;
  border-color: #888;
}

[data-theme="light"] #game-upgrade-btn:hover {
  color: #000;
  border-color: #333;
}

/* ---- Notification ---------------------------------------------- */
#game-notif {
  color: #c8c8c8;
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 1.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) #game-notif {
    color: #333;
  }
}

[data-theme="light"] #game-notif {
  color: #333;
}

/* ---- Reset ------------------------------------------------------ */
#game-reset-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #333;
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  user-select: none;
}

#game-reset-btn:hover {
  color: #666;
}

/* ---- Disco ------------------------------------------------------ */
#game-disco-btn {
  display: none;
  position: fixed;
  bottom: 44px;
  right: 20px;
  color: #333;
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  user-select: none;
}

#game-disco-btn:hover {
  color: #666;
}

#game-moon-counter {
  color: #888;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 6px;
  font-family: monospace;
  text-align: center;
}

/* ---- Rocket (in-flight) ---------------------------------------- */
.game-rocket {
  position: fixed;
  color: #888;
  font-family: monospace;
  font-size: 13px;
  pointer-events: none;
  z-index: 5;
  line-height: 1;
  transform: translateX(-50%);
}
