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

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

:root {
  --blue: #3b82f6;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --dark: #050814;
  --dark2: #0a0f2e;
  --dark3: #0f1645;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

html { scroll-behavior: smooth; }

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

/* ── STARFIELD ── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 5%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 55%, rgba(200,220,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 30%, rgba(200,220,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 75%, rgba(200,220,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  50%,  rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 65%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 73% 88%, rgba(255,255,255,0.4) 0%, transparent 100%);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(5,8,20,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59,130,246,0.15);
}

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

nav .logo-wrap img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}

nav .brand {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover,
nav ul a.active { color: var(--cyan); }

.btn-nav {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(59,130,246,0.5);
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(59,130,246,0.08);
  color: white;
}

/* ── DIVIDER ── */
.divider {
  position: relative;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), var(--cyan), transparent);
  opacity: 0.4;
}

/* ── SECTION SHARED ── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
}

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── GAME CARDS ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.game-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.15);
  background: rgba(10,15,46,0.8);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(59,130,246,0.1);
}

.game-thumb {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.game-thumb.blue   { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.game-thumb.purple { background: linear-gradient(135deg, #0f0a1e, #3b0764); }
.game-thumb.teal   { background: linear-gradient(135deg, #0a1a1a, #134e4a); }
.game-thumb.red    { background: linear-gradient(135deg, #1a0a0a, #7f1d1d); }

.game-thumb-label {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.game-info { padding: 24px; }

.game-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.game-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border-top: 1px solid rgba(59,130,246,0.1);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

footer .logo-wrap img { height: 32px; opacity: 0.8; }

footer .brand {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}

footer p {
  font-size: 13px;
  color: rgba(148,163,184,0.5);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

/* ── PAGE HEADER (non-hero pages) ── */
.page-header {
  position: relative;
  z-index: 1;
  padding: 160px 48px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59,130,246,0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
}

.page-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #c4d4ff 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.page-header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
