:root {
  --bg: #080808;
  --bg-alt: #0e0e0e;
  --surface: #101010;
  --surface-2: #171717;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2efe6;
  --text-muted: #908f8b;
  --accent: #b1f21f;
  --accent-ink: #080d02;
  --accent-2: #8b93ff;
  --radius: 14px;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.18s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline.active { border-color: var(--accent); color: var(--accent); background: rgba(177, 242, 31, 0.1); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  padding: 120px 0 90px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(110, 231, 213, 0.10), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(139, 147, 255, 0.10), transparent 70%);
}
.hero-inner { text-align: center; max-width: 760px; }
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.02rem;
}
.section-cta { margin-top: 40px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.about-icon { font-size: 1.8rem; margin-bottom: 16px; }
.about-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}
.game-tile:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.game-thumb {
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--surface-2);
}
.game-info { padding: 14px 16px; }
.game-info h3 { font-size: 0.98rem; margin-bottom: 4px; }
.game-meta { color: var(--text-muted); font-size: 0.82rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card-featured {
  border-color: var(--accent);
  background: var(--surface-2);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #06110e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.1rem; }
.price-amount {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
}
.price-amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card ul { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Reserve CTA */
.reserve-cta {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reserve-inner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.reserve-inner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.location-grid .section-sub { margin-bottom: 24px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 340px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* Game detail modal */
.game-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.game-modal-overlay.open { display: flex; }
.game-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.game-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.game-modal-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.game-modal-video-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--surface-2);
}
.game-modal-body { padding: 24px 28px 28px; }
.game-modal-meta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.game-modal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.game-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.game-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: pre-line;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { border-left-color: #ff6b6b; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .map-embed { height: 260px; }
}

@media (max-width: 760px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(72px + 168px);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 24px 20px;
    gap: 10px;
  }
  .hero { padding: 90px 0 60px; }
  .hero-stats { gap: 28px; }
}
