:root {
  --bg: #eef2f6; /* soft gray-blue background */
  --text: #222;
  --muted: #666;
  --accent: #000000;
  --link: #000000;
  --link-hover: #1f7a45;
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 12px 24px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.brand-logo {
  height: 100px;       /* Adjust size */
  width: auto;
  margin-right: 8px;  /* Space between logo and text */
  vertical-align: middle;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--accent);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #8ff0c9, #2ea36b 60%, #16643a 90%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--link-hover);
  background: rgba(0,0,0,0.06);
  outline: none;
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4px 20px;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 32px;
}

.hero-eyebrow {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 6px 0 16px 0;
  color: var(--accent);
}

.hero-text {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  color: var(--text);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat .value {
  font-weight: 700;
  font-size: clamp(18px, 3vw, 22px);
  color: var(--accent);
}

.stat .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f0f0f0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  background: #e0e0e0;
  outline: none;
}

.btn.playstore {
  background-color: #4caf50;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn.playstore:hover {
  background-color: #45a049;
}

/* Games Section */
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  text-align: center;
  margin: 40px 0 20px;
  color: var(--accent);
  font-family: "Playfair Display", serif;
}

.new-games {
  padding: 5px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.play-btn {
  display: inline-block;
  background-color: #28a745; /* Bootstrap green */
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.play-btn:hover {
  background-color: #218838; /* darker green on hover */
}

.game-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.game-card {
  flex: 0 0 auto;
  width: 240px;   /* fixed width preserved */
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 16px;
}


.game-image {
  height: 220px;   /* increased from 140px */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
}



.tag {
  background: #ff4444;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.game-info h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--accent);
}

.game-info .developer {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.game-info .rating {
  font-size: 14px;
  color: #f39c12;
  margin-bottom: 12px;
}


.game-info p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}


@media (min-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.more-games {
  text-align: center;
  margin-top: 20px;
}

.all-games-container {
  max-width: var(--maxw);   /* same width as index */
  margin: 0 auto;           /* center horizontally */
  padding: 0 20px;          /* left/right spacing */
}

#allGameGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;                /* balanced spacing between cards */
}

/* Mobile view: center cards */
@media (max-width: 600px) {
  #allGameGrid {
    grid-template-columns: 1fr;   /* one column */
    justify-items: center;        /* center cards horizontally */
  }

  .game-card {
    width: 240px;                 /* fixed width preserved */
  }
}


/* Footer */
footer {
  border-top: 1px solid #ddd;
  color: var(--muted);
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
}

/* About Section */
.about-brand {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 32px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}

.about-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--text);
}

.about-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Responsive Layouts */

/* Tablets */
@media (max-width: 992px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .about-brand {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-card {
    padding: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .brand-name {
    font-size: 18px;
  }

  footer {
    font-size: 12px;
  }
}
