/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a1a;
  --surface: #12122a;
  --surface-2: #1a1a3a;
  --border: rgba(255,255,255,0.06);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #555577;
  --accent: #7c5cfc;
  --accent-glow: rgba(124, 92, 252, 0.3);
  --cyan: #00e5ff;
  --green: #4ade80;
  --orange: #f59e0b;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Subtle grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.5rem; }

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.header-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Hero ===== */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 32px 60px;
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.hero-line-1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-line-2 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line-3 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Games Section ===== */
.games {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.games-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.label-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===== Game Card ===== */
.game-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--accent));
  opacity: 0.15;
  transition: opacity 0.3s;
}

.game-card:hover .game-card-glow {
  opacity: 0.35;
}

.game-card-inner {
  position: relative;
  display: flex;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  align-items: center;
}

.game-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0e0e24, #1a1a3e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.game-icon {
  width: 100px;
  height: 100px;
  border-radius: 16px;
}

.game-info {
  flex: 1;
  min-width: 0;
}

.game-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
}

.badge-new {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}

.badge-genre {
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent);
}

.badge-platform {
  background: rgba(136, 136, 170, 0.12);
  color: var(--text-muted);
}

.game-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.game-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.game-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.meta-item {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.game-play {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.play-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.game-card:hover .play-arrow {
  transform: translateX(4px);
}

/* ===== About ===== */
.about {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 32px 100px;
  text-align: center;
}

.about h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

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

/* ===== Footer ===== */
.footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero { padding: 64px 20px 40px; }

  .hero-line-1,
  .hero-line-2,
  .hero-line-3 {
    font-size: 2rem;
  }

  .game-card-inner {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }

  .game-thumb {
    width: 120px;
    height: 120px;
  }

  .game-icon {
    width: 80px;
    height: 80px;
  }

  .game-badges { justify-content: center; }
  .game-meta { justify-content: center; }
  .game-play { justify-content: center; }

  .games { padding: 0 20px 60px; }
  .about { padding: 0 20px 60px; }

  .header { padding: 16px 20px; }
  .header-tag { display: none; }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  color: var(--text-muted);
  padding: 16px 24px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-consent p { margin: 0; flex: 1; }
.cookie-consent a { color: var(--accent); text-decoration: underline; }
.cookie-consent-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.cookie-btn-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--text-dim);
}
.cookie-btn-decline:hover { border-color: var(--text-muted); }
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: #6a4ce0; }
@media (max-width: 600px) {
  .cookie-consent-inner { flex-direction: column; text-align: center; }
  .cookie-consent-buttons { width: 100%; justify-content: center; }
}
