*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #000;
  min-height: 100vh;
  color: #fff;
}

#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 50px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: #ffffff;
}
.hero-title .accent {
  background: linear-gradient(to right, #60a5fa 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  max-width: 380px;
  line-height: 1.7;
}

.section {
  padding: 50px 40px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

.game-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.game-body {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.game-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.game-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}
.game-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}

footer {
  text-align: center;
  padding: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.18);
}

@media (max-width: 600px) {
  .hero { padding: 50px 20px 36px; }
  .section { padding: 36px 20px; }
}