#gameContainer {
  position: relative;
  background: #000;
  color: #eee;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
}

#container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background: #000;
}

#solarCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #111 40%, #000 100%);
  touch-action: none; /* Prevents default touch behaviors */
  display: block;
}
.game-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.controls-guide {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.game-controls {
  margin-left: auto;
  padding-right: 2rem;
}

#infoBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 40, 0.95);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(100, 200, 255, 0.4);
  max-width: min(300px, 80vw);
  width: max-content;
  pointer-events: none;
  color: #fff;
  font-size: clamp(14px, 2.5vw, 18px);
  display: none;
  user-select: none;
  z-index: 10;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
  border: 2px solid rgba(100, 200, 255, 0.3);
  animation: fadeIn 0.3s ease-out;
}

#infoBox strong {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#infoBox ul {
  margin: 0;
  padding-left: 25px;
  line-height: 1.5;
  list-style: none;
}

#infoBox ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 5px;
}

#infoBox ul li::before {
  content: "★";
  position: absolute;
  left: -20px;
  color: yellow;
  font-size: 16px;
}
#legend {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

#legend h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text-1);
  text-align: center;
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  max-width: 960px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
}

.legend-planet {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.legend-item:hover .legend-planet {
  transform: scale(1.15);
}

.legend-item span {
  font-size: 0.9em;
  color: var(--text-1);
  white-space: nowrap;
}
#controls {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 20;
}

/* Using the site's button styles instead of custom ones */
#pauseBtn:hover {
  opacity: 0.9;
}
