/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  background: #0b0f1a; /* deep navy bg reminiscent of premium design */
}

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

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(11, 15, 26, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { color: #fff; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.nav { display: none; gap: 24px; }
.nav a { color: #cbd5e1; }
.nav a:hover { color: #fff; }

@media (min-width: 768px) {
  .nav { display: flex; }
}

@media (max-width: 767px) {
  .logo img { height: 32px; max-width: 100px; }
  .footer-brand img { height: 28px; max-width: 80px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: transform .12s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #5b8cff, #8b5bff); color: #fff; box-shadow: 0 10px 20px rgba(91,140,255,.2); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: #e2e8f0; border: 1px solid rgba(226,232,240,0.2); background: transparent; }
.btn-lg { padding: 14px 22px; border-radius: 12px; font-size: 18px; }

/* Hero */
.hero { padding: 250px 0 250px; background: radial-gradient(1200px 600px at 50% -10%, rgba(139,91,255,0.35), transparent 60%), radial-gradient(1000px 500px at 80% 10%, rgba(91,140,255,0.25), transparent 60%); }
.hero-title { color: #fff; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero-subtitle { color: #cbd5e1; font-size: 18px; line-height: 1.6; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero {
  background-image: url('./img/main-banner-bg-sm.jpg');
  background-size: cover;
  background-position: right;
  position: relative;
  margin-bottom: 25px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a47;
  z-index: -1;
}

@media (min-width: 960px) {
  .hero-title { font-size: 56px; }
  .hero-subtitle { font-size: 20px; }
}

/* Sections */
.section-title { color: #fff; font-size: 28px; margin: 0 0 20px; }

.features { padding: 56px 0; }
.grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; color: #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.card-title { color: #fff; margin: 6px 0 8px; }
.card-icon { font-size: 22px; }

.how { padding: 56px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px; color: #cbd5e1; }
.steps h3 { color: #fff; margin: 0 0 6px; font-size: 18px; }

.cta { padding: 72px 0; }
.cta-inner { background: linear-gradient(135deg, rgba(91,140,255,0.15), rgba(139,91,255,0.15)); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 80px 25px; text-align: center; color: #cbd5e1; }
.cta-inner h2 { color: #fff; margin: 0 0 8px; font-size: 26px; }

.faq { padding: 56px 0 80px; }
.faq-list details { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 16px; color: #cbd5e1; }
.faq-list details + details { margin-top: 12px; }
.faq-list summary { cursor: pointer; color: #fff; }

/* Carousel */
.carousel { padding: 56px 0; }
.carousel-wrapper { position: relative; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.slide img { width: 100%; height: 220px; object-fit: cover; display: block; filter: saturate(1.05); }
.slide-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 70%); color: #e2e8f0; }
.slide-content h3 { margin: 0 0 6px; color: #fff; font-size: 20px; }
.slide-content h3 span { color: #fbbf24; }
.carousel-nav { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.carousel-nav:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 900px) {
  .carousel-track { grid-auto-columns: calc(50% - 96px); }
}
@media (min-width: 1200px) {
  .carousel-track { grid-auto-columns: calc(33.333% - 96px); }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 0; background: rgba(255,255,255,0.02); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; color: #94a3b8; }
.footer-brand { color: #fff; font-weight: 700; display: flex; align-items: center; }
.footer-brand img { height: 32px; width: auto; max-width: 100px; object-fit: contain; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 14px; }

/* Games section */
.games { padding: 24px 0 40px; }
.games-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); color: #cbd5e1; }
.icon-button:hover { color: #fff; border-color: rgba(255,255,255,0.14); }

.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }

@media screen and (max-width: 768px) {
  .game-card img { height: 180px; }
}

.game-card { position: relative; display: block; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform .15s ease; }
.game-card img { display: block; width: 100%; height: 200px; object-fit: cover; filter: saturate(1.05) contrast(1.02); transition: transform .2s ease; }
.game-card:hover { transform: translateY(-4px); }
.game-card:hover img { transform: scale(1.05); }

.game-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.game-card:hover .game-overlay { opacity: 1; }

.game-title { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 12px; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.btn-play { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s ease; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
.btn-play:hover { background: linear-gradient(135deg, #f59e0b, #d97706); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4); }

/* Hidden games functionality */
.hidden-game { 
  display: none; 
  opacity: 0; 
  transform: translateY(20px); 
  transition: all 0.4s ease; 
}

.hidden-game.show { 
  display: block; 
  opacity: 1; 
  transform: translateY(0); 
}

.hidden-game.show:nth-child(1) { transition-delay: 0.1s; }
.hidden-game.show:nth-child(2) { transition-delay: 0.2s; }
.hidden-game.show:nth-child(3) { transition-delay: 0.3s; }

.games-actions { display: flex; justify-content: center; margin-top: 16px; }

/* Parallax decorative elements */
.parallax-elements { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.parallax-coin, .parallax-star { position: absolute; font-size: 24px; opacity: 0.6; animation: float 6s ease-in-out infinite; }

.parallax-coin { font-size: 20px; }
.parallax-star { font-size: 18px; }

.coin-1 { top: 15%; left: 10%; animation-delay: 0s; }
.coin-2 { top: 60%; left: 85%; animation-delay: 2s; }
.coin-3 { top: 80%; left: 15%; animation-delay: 4s; }

.star-1 { top: 25%; left: 75%; animation-delay: 1s; }
.star-2 { top: 45%; left: 5%; animation-delay: 3s; }
.star-3 { top: 70%; left: 90%; animation-delay: 5s; }
.star-4 { top: 90%; left: 60%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Ensure content is above parallax elements */
.hero, .features, .how, .games, .cta, .faq { position: relative; z-index: 2; }


