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

:root {
  --obsidian: #0B0F19;
  --electric-blue: #2563EB;
  --signal-red: #EF4444;
  --cloud-silver: #E5E7EB;
  --charcoal: #1F2937;

  --bg-dark: var(--obsidian);
  --text-primary: #FFFFFF;
  --text-secondary: var(--cloud-silver);
  --accent: var(--electric-blue);

  --glass-bg: rgba(31, 41, 55, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --section-padding: 100px 5%;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
.brand {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* --- Layout Components --- */

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(11, 15, 25, 0.9), transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 30px;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 5%;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.4) 50%, rgba(11, 15, 25, 0.1) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.btn-group {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-outline {
  border: 1px solid var(--cloud-silver);
  background: transparent;
  color: white;
}

.btn-primary:hover {
  background: #1e40af;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Light streak animation for Hero */
.light-streak {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: streak 3s infinite linear;
  opacity: 0.3;
}

@keyframes streak {
  0% {
    transform: translateY(-100vh) translateX(0);
  }

  100% {
    transform: translateY(100vh) translateX(200px);
  }
}

/* Intro Panel */
.intro-panel {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.intro-container {
  border: 1px solid var(--glass-border);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image img {
  border: 4px solid var(--charcoal);
  box-shadow: 20px 20px 0 var(--accent);
}

/* Game Cards Slider Enhanced */
.game-spaces {
  padding: var(--section-padding);
  background: var(--charcoal);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  text-align: center;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.cards-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0 40px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 400px;
  scroll-snap-align: center;
  background: var(--obsidian);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(11, 15, 25, 0.9));
  z-index: 1;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.2);
}

.slider-ctrl {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.slider-ctrl:hover {
  background: var(--accent);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.slider-ctrl.prev {
  left: -30px;
}

.slider-ctrl.next {
  right: -30px;
}

.slider-progress-container {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
  border-radius: 10px;
}

.card-img {
  height: 280px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.game-card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.card-content h3 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.5rem;
}

/* Diagonal Feature Strips */
.diagonal-strips {
  overflow: hidden;
}

.strip {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: 300px;
}

.strip:nth-child(even) {
  direction: rtl;
}

.strip:nth-child(even) .strip-content {
  direction: ltr;
}

.strip-image img {
  width: 400px;
  height: 500px;
  object-fit: cover;
  clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%);
}

.strip:nth-child(even) .strip-image img {
  clip-path: polygon(0 0, 90% 0%, 100% 100%, 10% 100%);
}

.strip-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

/* Advantage Grid */
.advantage-grid {
  padding: var(--section-padding);
  background: var(--bg-dark);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-item {
  padding: 40px;
  background: var(--charcoal);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.grid-item:hover {
  background: var(--charcoal);
  transform: scale(1.05);
  box-shadow: 10px 10px 0 var(--accent);
}

.grid-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

/* Footers and Toasts */
.age-banner {
  background: var(--signal-red);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

footer {
  background: var(--obsidian);
  color: var(--cloud-silver);
  padding: 80px 5% 40px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links h4 {
  margin-bottom: 25px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

/* Age Verification Popup */
.age-verify-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.age-verify-card {
  background: var(--charcoal);
  padding: 60px;
  border: 1px solid var(--accent);
  max-width: 500px;
  border-radius: 8px;
}

.age-verify-card h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Cookie Toast */
.cookie-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  padding: 20px 40px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1000;
  border-radius: 50px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* CTA */
.final-cta {
  height: 60vh;
  background: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.8)), url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&q=80&w=1600');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Game Play Overlay */
.iframe-wrapper {
  position: relative;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  cursor: pointer;
}

.play-overlay:hover {
  background: rgba(11, 15, 25, 0.8);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.play-overlay:hover .play-button {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.6);
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-container {
    grid-template-columns: 1fr;
    padding: 30px;
  }

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

  .strip:nth-child(even) {
    direction: ltr;
  }

  .strip-image img {
    clip-path: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-links {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

.strip {
  display: grid;
  grid-template-columns: 45% 1fr; /* Image takes 45% now */
  min-height: 300px; /* Reduced height */
}