:root {
  --bg: #0f0a1e;
  --bg-soft: #1a1332;
  --card: #241945cc;
  --text: #f5f1ff;
  --muted: #c4b5d7;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #f59e0b;
  --border: #3d2b5f;
  --surface: #1a1332;
  --shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --speed: 350ms;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      at 20% 30%,
      rgba(139, 92, 246, 0.15) 0,
      transparent 50%
    ),
    radial-gradient(at 80% 70%, rgba(236, 72, 153, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.05) 0, transparent 50%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, #1a1332 0, var(--bg) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.display {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-2) 50%,
    var(--accent-3) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 10, 30, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity var(--speed);
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--speed);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.15);
}

.hero {
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stats-card {
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.1),
    rgba(36, 25, 69, 0.8)
  );
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-value span:last-child {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-2) 50%,
    var(--accent-3) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid rgba(139, 92, 246, 0.2);
  cursor: pointer;
  transition: all var(--speed);
  aspect-ratio: 16/9;
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--easing);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid rgba(236, 72, 153, 0.2);
  cursor: pointer;
  transition: all var(--speed);
  aspect-ratio: 16/9;
  background: var(--surface);
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(139, 92, 246, 0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 8px;
  transition: all var(--speed);
}

.video-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.3);
}

.video-item:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.08),
    rgba(36, 25, 69, 0.7)
  );
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--speed);
}

.game-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3);
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.1),
    rgba(36, 25, 69, 0.8)
  );
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contact-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
}

.contact-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-2) 50%,
    var(--accent-3) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(139, 92, 246, 0.9);
  border: none;
  color: white;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--speed);
  z-index: 1001;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--accent-2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#lightbox-image {
  display: none;
}

#lightbox-video {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(15, 10, 30, 0.8);
  backdrop-filter: blur(8px);
}

.footer-inner {
  padding: 2rem 0;
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 150ms;
}

.delay-2 {
  transition-delay: 300ms;
}

@media (max-width: 800px) {
  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

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

  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}