* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: #0f1220;
  color: #ffffff;
}

/* Header */
.header {
  padding: 20px;
  background: #161a2f;
  display: flex;
  justify-content: center;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 50px 20px;
  text-align: center;
}

.section h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

.section.dark {
  background: #161a2f;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* max 4 per row */
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}


.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background: #1f2442;
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card a {
  text-decoration: none;
  display: block;
}

/* Force white text */
.games-grid .card p,
.team-grid .card p,
.team-grid .card strong,
.card a p {
  color: #ffffff;
  font-weight: 600;
}

/* Legal */
.legal {
  text-align: center;
  padding: 20px 0;
  background: #0f1220;
  font-size: 14px;
}

.legal a {
  color: #9ca3af;
  text-decoration: none;
  margin: 0 8px;
}

.legal a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal span {
  color: #6b7280;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  background: #0b0e1a;
  color: #aaa;
}

/* Tablets */
@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 500px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}
