:root {
  --red: #c1121f;
  --blue: #003049;
  --dark: #0b132b;
  --light: #fdf0d5;
  --gold: #fcbf49;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
}

/* HERO */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--blue));
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
}

/* STEPS */
.steps {
  padding: 60px 20px;
  text-align: center;
}

.steps-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.step {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 15px;
  width: 150px;
}

.step span {
  display: block;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* GAMES */
.games {
  padding: 60px 20px;
  background: #060b1f;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.game-card {
  background: rgba(255,255,255,0.06);
  padding: 30px;
  border-radius: 20px;
}

.game-card h3 {
  margin-bottom: 10px;
}

.game-card p {
  margin-bottom: 20px;
}

.game-card.disabled {
  opacity: 0.5;
}

.game-card span {
  color: var(--gold);
  font-weight: 600;
}

/* FOOTER */
footer {
  padding: 25px;
  text-align: center;
  font-size: 0.9rem;
  background: #020617;
}


/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-box {
  background: #111827;
  padding: 30px 40px;
  border-radius: 14px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.loading-box p {
  margin-top: 15px;
  font-weight: 500;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}


button {
  font-family: 'Poppins', sans-serif;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59,130,246,0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-text {
  margin-top: 12px;
  font-size: 14px;
  color: #9ca3af;
}

.hidden {
  display: none;
}
