/* Загальні стилі */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #fff9f0;
  color: #333;
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #ffe9d0, #fff6e5);
  border-bottom: 3px solid #ffd99b;
}

header h1 {
  margin-top: 0;
  color: #d9594c;
  font-size: 2rem;
}

header .intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #5b4f45;
}

.station {
  max-width: 900px;
  margin: 2rem auto;
  background: #fffdf9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.station h2 {
  margin-top: 0;
  color: #d9594c;
}

.station img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.station p {
  margin-bottom: 0.8rem;
}

.game {
  background: #fff3e6;
  border: 1px solid #ffd4a3;
  border-radius: 8px;
  padding: 1rem;
}

.game input[type="text"],
.game input[type="number"],
.game input[type="password"],
.game input[type="text"],
.game textarea,
.game select {
  width: 100%;
  padding: 0.5rem;
  margin: 0.4rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.game button {
  padding: 0.6rem 1.2rem;
  background: #d9594c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, opacity 0.3s;
}

.game button:hover:not(:disabled) {
  background: #c2483a;
}

.game button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.result {
  margin-top: 0.5rem;
  font-weight: bold;
}

.result.success {
  color: #2a9d8f;
}

.result.error {
  color: #e76f51;
}

/* Спінер для завантаження */
.loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #d9594c;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem;
  background: #fff9f0;
  border: 2px solid #ffd4a3;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ffd4a3;
  border-top: 3px solid #d9594c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

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

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

footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6c5f5b;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  .station {
    padding: 1rem;
  }
}