body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(to bottom, #aee1f9, #f9f9f9); /* snowy sky */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #4a90e2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  border: none;
  outline: none;
  text-decoration: none;
}

.file-btn:hover {
  background: #357abd;
}

.game-title {
  text-align: center;
  color: #444;
  text-shadow: 0 0 10px #fff, 0 0 20px #aee1f9;
  margin: 10px 0;
  font-size: 2rem;
}

#gameCanvas {
  border: 4px solid #77c9f0;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2), 0 0 30px #aee1f9;
  background: #fff;
}

.ui {
  margin-top: 10px;
  text-align: center;
  font-size: 1.2rem;
  color: #222;
  text-shadow: 0 0 5px #fff;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow clicks to go through */
}

#loadingScreen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 30, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  z-index: 9999;
}

.loader {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #00eaff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}