:root {
  --bg: #0b0b1e;
  --bg2: #15153a;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f4f4ff;
  --muted: #a9a9d6;
  --yellow: #ffd23f;
  --pink: #ff5ea8;
  --cyan: #3ee6ff;
  --purple: #8b5cf6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 70%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 30, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.brand-dot { display: inline-block; animation: wobble 3s ease-in-out infinite; }
.nav nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.nav nav a:hover { color: var(--yellow); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 16px 64px;
}
.logo {
  font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: clamp(3.2rem, 14vw, 9.5rem);
  line-height: 1; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; justify-content: center;
  animation: pop 1s cubic-bezier(.2, 1.6, .4, 1) both;
}
.logo-mutlu {
  background: linear-gradient(135deg, var(--yellow), #ff9f1c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(255, 159, 28, .35));
}
.logo-games {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(139, 92, 246, .35));
}
.tagline {
  margin-top: 22px; max-width: 560px;
  color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.25rem);
  animation: fadeUp .8s .4s both;
}
.cta {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 30px rgba(255, 94, 168, .35), inset 0 -4px 0 rgba(0, 0, 0, .2);
  transition: transform .15s, box-shadow .15s;
  animation: fadeUp .8s .6s both;
}
.cta:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 40px rgba(255, 94, 168, .5), inset 0 -4px 0 rgba(0, 0, 0, .2); }
.cta:active { transform: translateY(1px); }

.floaters span {
  position: absolute; font-size: clamp(1.6rem, 4vw, 3rem); opacity: .8;
  animation: float 7s ease-in-out infinite;
  user-select: none;
}
.floaters span:nth-child(1) { top: 18%; left: 10%; animation-delay: 0s; }
.floaters span:nth-child(2) { top: 26%; right: 12%; animation-delay: -1.5s; }
.floaters span:nth-child(3) { bottom: 24%; left: 16%; animation-delay: -3s; }
.floaters span:nth-child(4) { bottom: 18%; right: 18%; animation-delay: -4.5s; }
.floaters span:nth-child(5) { top: 12%; left: 46%; animation-delay: -2s; font-size: 1.5rem; }
.floaters span:nth-child(6) { bottom: 10%; left: 48%; animation-delay: -5s; font-size: 1.5rem; }

.scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px;
}
.scroll::after {
  content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 2px; background: var(--muted);
  animation: scrollDot 1.6s infinite;
}

/* GAMES */
.games { max-width: 1200px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 48px) 60px; }
.games-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.games-head h2 { font-family: "Fredoka", sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  color: var(--muted); background: var(--card); border: 1px solid var(--card-border);
  transition: all .2s;
}
.filters button:hover { color: var(--text); }
.filters button.active { color: #1a1a2e; background: var(--yellow); border-color: var(--yellow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s, border-color .25s;
  animation: fadeUp .5s both;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); border-color: rgba(255, 255, 255, .3); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.card-art {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-size: 4.2rem; position: relative; overflow: hidden;
}
.card-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%);
}
.card-art span { position: relative; transition: transform .3s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.card:hover .card-art span { transform: scale(1.2) rotate(8deg); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-family: "Fredoka", sans-serif; font-size: 1.3rem; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tag { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.play { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--yellow); }
.card.soon { cursor: default; }
.card.soon .play { color: var(--muted); }
.card.soon .card-art { filter: saturate(.75); }
.ribbon {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 11, 30, .7); color: var(--yellow); border: 1px solid rgba(255, 210, 63, .4);
}

.foot { text-align: center; color: var(--muted); padding: 40px 16px 50px; font-size: .95rem; }

/* ANIM */
@keyframes pop { from { opacity: 0; transform: scale(.4) translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes scrollDot { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

@media (max-width: 600px) {
  .floaters span:nth-child(5), .floaters span:nth-child(6) { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-art { font-size: 3rem; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 1.05rem; }
  .card-body p { font-size: .82rem; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
