@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Bungee&display=swap');

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

:root {
  --bg: #13132a;
  --bg-mid: #1e1e3a;
  --gold: #ffd740;
  --gold-dk: #f0920a;
  --text: #eeeef8;
  --dim: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.13);
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-mid) 60%, #1a2448 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(241, 196, 15, 0.12), transparent),
    radial-gradient(2px 2px at 75% 15%, rgba(241, 196, 15, 0.08), transparent),
    radial-gradient(2px 2px at 45% 75%, rgba(241, 196, 15, 0.10), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.06), transparent);
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-24px);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 215, 64, 0.45));
  }

  50% {
    filter: drop-shadow(0 0 28px rgba(255, 215, 64, 0.9));
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bungee', cursive;
  font-size: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 6px rgba(255, 215, 64, 0.35));
  animation: glow 3s ease-in-out infinite;
}

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

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 60px;
}

.hero-emoji {
  font-size: 80px;
  animation: float 3s ease-in-out infinite;
  display: block;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Bungee', cursive;
  font-size: clamp(44px, 9vw, 76px);
  /* Solid bright white-gold with glow — no clip-path, fully readable */
  color: #ffe566;
  text-shadow:
    0 0 24px rgba(255, 215, 64, 0.6),
    0 0 60px rgba(255, 215, 64, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: 'Bungee', cursive;
  font-size: clamp(18px, 4vw, 28px);
  /* Solid color + subtle glow — not gradient-clipped, always readable */
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

/* ── GAMES GRID ── */
.games-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: slideUp 0.5s ease-out both;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 64, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(255, 215, 64, 0.07);
}

.game-card-emoji {
  font-size: 52px;
  line-height: 1;
}

/* Game name: solid bright gold, readable on any dark bg, glow on hover */
.game-card-name {
  font-family: 'Bungee', cursive;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 1px 8px rgba(255, 215, 64, 0.25);
  transition: text-shadow 0.2s;
}

.game-card:hover .game-card-name {
  text-shadow: 0 0 18px rgba(255, 215, 64, 0.55), 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* Description: boosted from 62% to 82% opacity */
.game-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  flex: 1;
}

.game-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag.hot {
  background: rgba(255, 215, 64, 0.14);
  color: var(--gold);
  border-color: rgba(255, 215, 64, 0.28);
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: #14142a;
  margin-top: 4px;
  transition: filter 0.2s, transform 0.2s;
}

.game-card:hover .game-card-cta {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Coming-soon card */
.game-card.soon {
  opacity: 0.45;
  pointer-events: none;
  border-style: dashed;
}

.game-card.soon .game-card-cta {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  filter: none;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

footer a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 480px) {
  nav {
    padding: 16px 20px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .games-grid {
    padding: 0 16px 60px;
  }
}