* {
  box-sizing: border-box;
}

:root {
  /* Main ChocoSauce palette */
  --dark-chocolate: #1F0D06;
  --chocolate: #35190C;
  --light-chocolate: #5C2E16;
  --caramel: #C57228;
  --cream: #F5EDDC;
  --vanilla: #FFE0A3;
  --gold: #FFC857;
  --strawberry: #FF6B8A;

  /* Purpose colors */
  --text-main: var(--chocolate);
  --text-light: var(--cream);

  --background-main: var(--cream);
  --background-card: #FFFFFF;

  --navbar-bg: var(--chocolate);
  --footer-bg: var(--chocolate);

  --button-main: var(--vanilla);
  --button-hover: var(--gold);
  --button-text: var(--chocolate);

  --shadow-color: rgba(53, 25, 12, 0.18);
}

body {
  margin: 0;
  font-family: "Elms Sans", Arial, sans-serif;
  background: var(--background-main);
  color: var(--text-main);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: var(--navbar-bg);
  color: var(--text-light);
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

.navbar a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

.navbar a:hover {
  color: var(--button-hover);
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 40px 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 224, 163, 0.28),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--dark-chocolate) 0%,
      var(--chocolate) 45%,
      var(--caramel) 100%
    );

  color: var(--text-light);
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 20px;
}

.hero p {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.6;
}

button {
  margin-top: 20px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;

  background: var(--button-main);
  color: var(--button-text);

  font-family: "Elms Sans", Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: var(--button-hover);
  transform: scale(1.04);
}

.games-section,
.about-section {
  padding: 60px 40px;
  text-align: center;
  background: var(--background-main);
  color: var(--text-main);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.game-card {
  background: var(--background-card);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.game-card h3 {
  margin-top: 0;
  color: var(--chocolate);
}

.game-card p {
  color: var(--light-chocolate);
}

footer {
  text-align: center;
  padding: 24px;
  background: var(--footer-bg);
  color: var(--text-light);
}

/* Google Font helper classes */
.jua-regular {
  font-family: "Jua", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.cherry-bomb-one-regular {
  font-family: "Cherry Bomb One", system-ui;
  font-weight: 400;
  font-style: normal;
}

.elms-sans-2 {
  font-family: "Elms Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .navbar a {
    margin: 0 8px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }
}