* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;

  background: linear-gradient(to bottom, #0b5ed7, #143d73);

  color: white;
  overflow-x: hidden;
}

/* ---------------- SVG BACKGROUND ---------------- */

.background-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.rotate-one {
  transform: rotate(15deg);
}

.rotate-two {
  transform: rotate(35deg);
}

/* ---------------- NAV ---------------- */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 30px rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ---------------- HERO ---------------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 4rem;

  padding: 4rem 5rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.4rem;
  line-height: 1.7;

  max-width: 700px;

  opacity: 0.92;
}

/* ---------------- HERO BOARD ---------------- */

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 3rem);
  gap: 10px;
}

.mini-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #fff7b8 0%, #f7d76c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

/* ---------------- GAMES ---------------- */

/* .games-section {
  padding: 5rem;
} */

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.games-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: white;
  color: #143d73;
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

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

.game-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-icon {
  font-size: 2rem;
}

.game-description {
  line-height: 1.7;
  flex-grow: 1;
}

.play-btn {
  text-decoration: none;
  background: #16a34a;
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.play-btn:hover {
  background: #084298;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 900px) {
  .top-nav {
    padding: 2rem;
  }

  .hero {
    flex-direction: column;

    text-align: center;

    padding: 2rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features,
  .games-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .mini-board {
    grid-template-columns: repeat(4, 3rem);
  }

  .mini-tile {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #fff7b8 0%, #f7d76c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
  }
}
