@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@600;700;800;900&display=swap');

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

:root {
  --bg: #faf8f5;
  --text: #1a202c;
  --text-dim: rgba(0, 0, 0, 0.5);
  --text-muted: rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.display-font, h1, h2, h3, .card-play, .tag, .nav-logo-text {
  font-family: 'Lilita One', 'Nunito', sans-serif;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #e8437a;
  color: white;
  font-size: 1.2rem;
  font-family: 'Lilita One', sans-serif;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.nav-logo-text {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
}

.nav-logo-text strong {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

/* ===== LAYOUT ===== */
.landing {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 20px;
}

.hero-sub {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
}

/* ===== CARD GRID ===== */
.section {
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Center the two cards on the second row */
.card-grid .card:nth-child(5) {
  grid-column: 2 / 3;
}
.card-grid .card:nth-child(6) {
  grid-column: 3 / 4;
}

/* ===== GAME CARD ===== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 24px;
  padding: 28px 20px 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card:active {
  transform: translateY(-2px);
}

/* Card color themes */
.card-pink {
  background: linear-gradient(165deg, #f472b6, #e8437a, #db2777);
  color: white;
}

.card-amber {
  background: linear-gradient(165deg, #fcd34d, #f59e0b, #d97706);
  color: white;
}

.card-purple {
  background: linear-gradient(165deg, #c084fc, #8b5cf6, #7c3aed);
  color: white;
}

.card-green {
  background: linear-gradient(165deg, #4ade80, #22c55e, #16a34a);
  color: white;
}

.card-indigo {
  background: linear-gradient(165deg, #818cf8, #6366f1, #4f46e5);
  color: white;
}

.card-teal {
  background: linear-gradient(165deg, #22d3ee, #0891b2, #0e7490);
  color: white;
}

/* Sparkle decorations */
.card-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
}

.sparkle-1 {
  top: 16px;
  right: 20px;
  font-size: 1.2rem;
}

.sparkle-2 {
  top: 40%;
  left: 14px;
  font-size: 0.8rem;
}

.sparkle-3 {
  bottom: 35%;
  right: 14px;
  font-size: 0.9rem;
}

/* Card icon */
.card-icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon {
  font-family: 'Lilita One', sans-serif;
  font-size: 3rem;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Card text */
.card-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  text-align: center;
}

/* Card meta tags */
.card-meta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
}

/* Play button */
.card-play {
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  text-align: center;
}

.card-play span {
  display: inline-block;
  padding: 10px 36px;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  border-radius: 50px;
  font-family: 'Lilita One', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card:hover .card-play span {
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.card:active .card-play span {
  transform: translateY(1px);
}

/* Pink card button */
.card-pink .card-play span {
  background: #c0265e;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Amber card button */
.card-amber .card-play span {
  background: #b45309;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Purple card button */
.card-purple .card-play span {
  background: #6d28d9;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Green card button */
.card-green .card-play span {
  background: #15803d;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Teal card button */
.card-teal .card-play span {
  background: #0c5c6e;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Indigo card button */
.card-indigo .card-play span {
  background: #4338ca;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== MORE GAMES ===== */
.more-games {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  margin-top: 8px;
}

.more-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.more-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #e8437a;
  color: white;
  transform: translateY(-2px);
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid .card:nth-child(5),
  .card-grid .card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 16px 16px;
  }

  .nav-logo-text {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .landing {
    padding: 16px 16px 32px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 24px 20px 20px;
  }

  .card-icon {
    font-size: 2.4rem;
  }

  .card-icon-wrap {
    width: 64px;
    height: 64px;
  }
}
