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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --text: #e0e0e8;
  --text-muted: #7a7a8e;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-hover: #7f70f0;
  --border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 92, 231, 0.4) transparent;
  overflow-y: auto;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.4);
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 92, 231, 0.6);
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(280px, 50vw, 600px);
  height: auto;
  margin-bottom: 0.8rem;
}

/* ── Liquid canvas ── */
.liquid-canvas {
  width: clamp(200px, 35vw, 420px);
  height: clamp(30px, 5vw, 60px);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.4;
}

/* ── Sections ── */
.section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Games Grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
}

.game-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.game-card.coming-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.game-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0e16;
}

.game-card-info {
  padding: 1.25rem;
}

.game-card-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.game-card-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.game-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-tag.tag-soon {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

/* Tetris Preview */
.tetris-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-row {
  display: flex;
  gap: 2px;
}

.tp-block {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #1a1a24;
}

.tp-block.c1 { background: #ff00d4; }
.tp-block.c2 { background: #FFD700; }
.tp-block.c3 { background: #ff8800; }
.tp-block.c4 { background: #2d71d8; }
.tp-block.c5 { background: #01EDFA; }
.tp-block.c6 { background: #09f309; }
.tp-block.c7 { background: #ff1a4c; }

.coming-soon-placeholder {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.3;
  font-weight: 700;
}

/* ── Updates ── */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: flex-start;
}

.update-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  min-width: 50px;
  padding-top: 2px;
}

.update-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.update-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── About ── */
.about-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .update-card {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease;
}

.game-card,
.update-card {
  animation: fadeInUp 0.4s ease;
}
