@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Baloo+2:wght@600;700&display=swap');

:root {
  --yellow: #FFE36E;
  --pink: #FF4FB6;
  --mint: #B3FFE0;
  --aqua: #AEEBFF;
  --teal: #00C2C7;
  --navy: #1B2333;
  --dark: #0F1222;
  --text: #1B2333;
  --bg: #FFF8D6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, .15);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--yellow) 0%, #FFF5C2 30%, #FFFFFF 100%);
  min-height: 100vh;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: .5px;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url('img/logo.png') center/cover no-repeat;
  display: inline-block;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 14px;
  transition: .2s ease;
}

nav a:hover {
  background: var(--mint)
}

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  background: var(--pink);
  color: #111;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(1200px 300px at 20% -20%, var(--pink) 0%, transparent 60%),
    radial-gradient(800px 250px at 95% -30%, var(--teal) 0%, transparent 60%);
}

.hero .content {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: .9
}

.chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.chip {
  background: #fff;
  border-radius: 100px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 8px
}

.badge {
  font-weight: 800;
  color: #111;
  background: var(--yellow);
  padding: 8px 12px;
  border-radius: 12px
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="140" viewBox="0 0 1440 140" preserveAspectRatio="none"><path fill="%23FF4FB6" d="M0,80 C200,160 400,0 600,80 C800,160 1000,0 1200,80 C1300,120 1400,120 1440,100 L1440,140 L0,140 Z"></path></svg>') center/cover no-repeat;
}

.section {
  padding: 72px 0
}

.section h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 14px;
  letter-spacing: .2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.card p {
  opacity: .85
}

.game-description {
  font-size: 18px;
  line-height: 1.6;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--aqua), var(--mint));
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.game-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.game-thumb {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  position: relative;
}

.game-thumb img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.05);
}

.game-card-content {
  padding: 0 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.game-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.game-card p {
  margin: 0;
  opacity: .85;
  flex-grow: 1;
}

.game-detail {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 22px;
}

.game-card .btn {
  align-self: flex-start;
  margin-top: auto;
  background: linear-gradient(140deg, var(--aqua), var(--mint));
  color: var(--navy);
  font-weight: 700;
  padding: 12px 20px;
}

.pill {
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow)
}

footer {
  background: #0c0f1f;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px
}

footer a {
  color: #fff;
  text-decoration: none;
  opacity: .9
}

footer a:hover {
  opacity: 1;
  text-decoration: underline
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center
}

.footer-links {
  display: flex;
  gap: 18px;
}

.rating {
  display: flex;
  gap: 4px;
  font-size: 20px
}

.star {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
}

.kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 12px;
  opacity: .9
}

/* Responsive */
@media (max-width: 900px) {
  .hero .content {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr
  }

  .game-detail {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .footer-grid div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 560px) {
  nav ul {
    display: none
  }
  
  .grid-4 {
    grid-template-columns: 1fr
  }
  
  .footer-grid div:last-child {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .footer-grid div:last-child a {
    display: block;
    padding: 5px 0;
  }
  
  /* Reorder footer elements on mobile - copyright at bottom */
  .footer-grid div:first-child {
    order: 2;
    margin-top: 20px;
  }
  
  .footer-grid div:last-child {
    order: 1;
  }
}
