body {
  margin: 0;
  background: #0b0b0b;
  color: #eee;
  font-family: system-ui, sans-serif;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* keep content at top */
  height: 100vh;
  padding-top: 1rem;
}

.center {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center; /* ensure centered horizontally */
}

.button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

button,
input {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: 0.15s;
}
button:hover { background: #333; }
button.active { background: #845ec2; }

input {
  background: #111;
  width: 220px;
  text-align: center;
}

/* === 3-column game layout === */
#body-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
  max-width: 800px;
  min-height: 100px;
  text-align: center;
}

#body-content img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

#body-content img:hover {
  transform: scale(1.05);
}

/* loader */
.loader {
  border: 4px solid #222;
  border-top: 4px solid #845ec2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 1rem auto;
  display: none;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* centered full-width status text (errors, empty states) */
#body-content .status-message {
  grid-column: 1 / -1;      /* span all 3 columns */
  text-align: center;
  padding: 0.5rem 0;
}
