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

:root {
  --bg-dark: #090a12;
  --bg-surface: #101221;
  --bg-card: rgba(21, 24, 43, 0.75);
  --bg-card-hover: rgba(30, 35, 61, 0.85);
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-purple: #7928ca;
  --accent-pink: #b829ff;
  --accent-neon: #00ffaa;
  --text-bright: #ffffff;
  --text-subtle: #a0aec0;
  --text-muted: #718096;
  --border-glow: rgba(0, 242, 254, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.6;
}

body.popup-open {
  overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.topbar {
  background: linear-gradient(90deg, #0d0f1d 0%, #16182e 50%, #0d0f1d 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.85rem;
  width: 100%;
}

.age-badge {
  background: linear-gradient(135deg, #e53e3e 0%, #dd6b20 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.topbar-text {
  color: var(--text-subtle);
}

.site-navbar {
  background-color: rgba(16, 18, 33, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  width: 100%;
}

.navbar-brand {
  text-decoration: none;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-cyan) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-bright);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

.brand-extension {
  color: var(--primary-cyan);
}

.nav-link {
  color: var(--text-subtle) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-purple));
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn-custom-glow {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-cyan) 100%);
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(121, 40, 202, 0.4);
  cursor: pointer;
}

.btn-custom-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
  color: var(--text-bright);
}

.btn-outline-glow {
  background: transparent;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-outline-glow:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary-cyan);
  color: var(--text-bright);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 1px solid var(--border-glow);
  color: var(--text-bright);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.15) 0%, transparent 40%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--primary-cyan);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-bright) 30%, var(--primary-cyan) 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-subtle);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  text-align: center;
  max-width: 100%;
}

.hero-image-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-cyan));
  filter: blur(60px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
}

.hero-main-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.hero-main-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.25);
}

.hero-floating-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.floating-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-neon), var(--primary-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.1rem;
}

.floating-text-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-bright);
}

.floating-text-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.games-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 54px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(121, 40, 202, 0.15);
  border: 1px solid rgba(121, 40, 202, 0.4);
  color: var(--accent-pink);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-description {
  color: var(--text-subtle);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
  background: var(--bg-card-hover);
}

.game-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--primary-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title-link {
  color: var(--text-bright);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  transition: var(--transition-fast);
  display: inline-block;
}

.game-title-link:hover {
  color: var(--primary-cyan);
}

.game-text {
  color: var(--text-subtle);
  font-size: 0.92rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.game-type-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.content-section {
  padding: 90px 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.content-section-alt {
  background: var(--bg-surface);
}

.section-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  transition: var(--transition-fast);
}

.section-feature-box:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  font-size: 1.2rem;
}

.feature-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-bright);
}

.feature-box-desc {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.section-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.site-footer {
  background-color: #06070d;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  font-size: 0.9rem;
}

.footer-brand-text {
  color: var(--text-subtle);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
  position: relative;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-cyan);
  transform: translateX(4px);
}

.footer-disclaimer-card {
  background: rgba(16, 18, 33, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.footer-disclaimer-title {
  color: var(--primary-cyan);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-disclaimer-p {
  color: var(--text-subtle);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-disclaimer-p:last-child {
  margin-bottom: 0;
}

.footer-badge-img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: var(--transition-fast);
  border-radius: 6px;
}

.footer-badge-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.age-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 10, 18, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.age-modal-content {
  background: linear-gradient(135deg, #101326 0%, #171b36 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  max-width: 480px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.age-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e53e3e, #dd6b20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px rgba(229, 62, 62, 0.4);
}

.age-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-bright);
}

.age-modal-desc {
  font-size: 0.95rem;
  color: var(--text-subtle);
  margin-bottom: 28px;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: rgba(16, 18, 33, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-bright);
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.game-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 40px;
}

.game-canvas-area {
  background: #05060b;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.game-score-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  padding: 8px 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-cyan);
  margin-bottom: 24px;
}

.reels-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.reel-box {
  width: 90px;
  height: 110px;
  background: linear-gradient(180deg, #101224 0%, #1a1e3a 100%);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-cyan);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  transition: transform 0.1s ease;
}

.cards-hand {
  display: flex;
  gap: 12px;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.playing-card-ui {
  width: 65px;
  height: 90px;
  background: #ffffff;
  color: #1a202c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: cardPop 0.3s ease;
}

.playing-card-ui.red-card {
  color: #e53e3e;
}

@keyframes cardPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wheel-graphic-box {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid var(--primary-cyan);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 3s cubic-bezier(0.15, 0.85, 0.35, 1.05);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
  background: conic-gradient(
    #7928ca 0deg 45deg,
    #00f2fe 45deg 90deg,
    #b829ff 90deg 135deg,
    #00ffaa 135deg 180deg,
    #7928ca 180deg 225deg,
    #00f2fe 225deg 270deg,
    #b829ff 270deg 315deg,
    #00ffaa 315deg 360deg
  );
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  font-size: 1.8rem;
  color: #ffffff;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
}

.wheel-center-hub {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 3px solid var(--primary-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    padding: 50px 0;
  }
  .hero-image-wrapper {
    margin-top: 40px;
  }
  .section-title {
    font-size: 2rem;
  }
  .content-section {
    padding: 60px 0;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .topbar-text {
    font-size: 0.75rem;
  }
  .hero-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    max-width: 100%;
  }
  .reel-box {
    width: 70px;
    height: 90px;
    font-size: 2rem;
  }
}
