/* =============================================
   MapleThrilledMoments — Social Gaming Hub
   Unique design system • Mobile-first
   ============================================= */

:root {
  /* Brand palette */
  --ink-black: #0d1b2a;
  --prussian-blue: #1b263b;
  --dusk-blue: #415a77;
  --dusty-denim: #778da9;
  --alabaster-grey: #e0e1dd;

  /* Semantic tokens */
  --color-bg: var(--ink-black);
  --color-surface: var(--prussian-blue);
  --color-surface-2: #233148;
  --color-primary: var(--dusk-blue);
  --color-accent: #f4a261;
  --color-accent-2: #e76f51;
  --color-success: #2a9d8f;
  --color-danger: #e63946;
  --color-text: var(--alabaster-grey);
  --color-muted: var(--dusty-denim);
  --color-border: rgba(224, 225, 221, 0.12);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #415a77 0%, #778da9 100%);
  --grad-accent: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  --grad-hero: radial-gradient(ellipse at top, #1b263b 0%, #0d1b2a 60%, #06101c 100%);
  --grad-card: linear-gradient(160deg, rgba(65, 90, 119, 0.25) 0%, rgba(27, 38, 59, 0.85) 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(244, 162, 97, 0.45);

  /* Motion */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--color-text); }

/* Containers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; position: relative; }
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 3rem; font-size: 1.05rem; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(244, 162, 97, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(244, 162, 97, 0.4);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-18 {
  background: var(--color-danger);
  color: white;
  border-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}
.btn:hover { background: var(--dusk-blue); transform: translateY(-2px); }
.btn-outline { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }

/* Special Play button with pulse glow */
.btn-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  background: var(--grad-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative; overflow: hidden;
  animation: pulse-glow 2.4s ease-in-out infinite;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}
.btn-play:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
  box-shadow: 0 0 40px rgba(244, 162, 97, 0.7), 0 10px 25px rgba(231, 111, 81, 0.4);
  color: #fff;
}
.btn-play:active { transform: scale(0.97); }
.btn-play::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn-play:hover::after { transform: translateX(100%); }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.55), 0 6px 16px rgba(231, 111, 81, 0.25); }
  50% { box-shadow: 0 0 0 14px rgba(244, 162, 97, 0), 0 6px 20px rgba(231, 111, 81, 0.4); }
}

/* ============== HEADER ============== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px !important;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--grad-accent);
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.logo-icon svg { width: 22px; height: 22px; color: #fff; }
.logo-text { line-height: 1; }
.logo-text span {
  display: block; font-size: 0.65rem; font-weight: 500;
  color: var(--color-muted); margin-top: 2px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.main-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.92rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
}
.main-nav a:hover { background: rgba(119, 141, 169, 0.15); color: var(--color-accent); }
.main-nav a.active { color: var(--color-accent); background: rgba(244, 162, 97, 0.1); }

/* Dropdown for games */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.92rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nav-dropdown-toggle:hover { background: rgba(119, 141, 169, 0.15); color: var(--color-accent); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm); font-size: 0.9rem;
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.header-cta .btn-play { padding: 0.6rem 1.2rem; font-size: 0.85rem; display: none; }

/* Burger */
.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(119, 141, 169, 0.1);
}
.burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(13, 27, 42, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-drawer a {
  display: block; padding: 1rem;
  font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer .btn-play { margin-top: 1.5rem; width: 100%; }
.drawer-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(119, 141, 169, 0.15);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 5rem 0 3rem;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(244, 162, 97, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(65, 90, 119, 0.35) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: 3rem;
  align-items: center;
}
.hero-content { text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.hero-stat { text-align: center; min-width: 90px; }
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.7rem; color: var(--color-accent); font-weight: 700;
}
.hero-stat span {
  font-size: 0.78rem; color: var(--color-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Floating icons */
.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-float {
  position: absolute;
  width: 60px; height: 60px;
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}
.hero-float:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float:nth-child(2) { top: 30%; right: 12%; animation-delay: 1.5s; width: 50px; height: 50px;}
.hero-float:nth-child(3) { bottom: 25%; left: 14%; animation-delay: 3s; width: 70px; height: 70px;}
.hero-float:nth-child(4) { bottom: 18%; right: 8%; animation-delay: 4.5s; }
.hero-float:nth-child(5) { top: 55%; left: 50%; animation-delay: 2s; width: 45px; height: 45px;}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(8deg); }
}

/* ============== GAME GRID ============== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.game-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 162, 97, 0.4);
  box-shadow: var(--shadow-md);
}
.game-card-preview {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b263b, #415a77);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.game-card-preview svg { width: 60%; height: 60%; }
.game-card-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(13,27,42,0.6) 100%);
}
.game-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.game-card-body h3 { margin-bottom: 0.5rem; }
.game-card-body p { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 1.25rem; flex: 1; }
.game-card-meta {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; font-size: 0.78rem;
}
.game-card-meta span {
  padding: 0.25rem 0.65rem;
  background: rgba(119, 141, 169, 0.15);
  color: var(--color-muted);
  border-radius: 999px;
  font-weight: 500;
}
.game-card .btn-play { width: 100%; }

/* ============== ABOUT ============== */
.about {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  margin: 0 1rem;
}
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-illust { display: flex; justify-content: center; }
.about-illust svg { width: 100%; max-width: 380px; height: auto; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.benefit-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--grad-accent);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit h4 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.benefit p { font-size: 0.88rem; color: var(--color-muted); }

/* ============== HOW IT WORKS ============== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: stepcounter;
}
.step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  counter-increment: stepcounter;
}
.step::before {
  content: counter(stepcounter, decimal-leading-zero);
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; color: #fff;
  font-size: 0.95rem;
}
.step-icon {
  width: 56px; height: 56px;
  margin: 0.5rem auto 1rem;
  background: rgba(244, 162, 97, 0.12);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--color-accent);
}
.step-icon svg { width: 28px; height: 28px; }
.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--color-muted); font-size: 0.9rem; }

/* ============== FAQ ============== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
  transition: all var(--transition-fast);
}
.faq-item.active { border-color: rgba(244, 162, 97, 0.4); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  font-weight: 600; font-size: 1rem;
  text-align: left;
  color: var(--color-text);
}
.faq-question svg {
  transition: transform var(--transition-normal);
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-accent);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-normal);
}
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted); font-size: 0.95rem;
  line-height: 1.7;
}

/* ============== TESTIMONIALS ============== */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.testimonials-slider:active { cursor: grabbing; }
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform var(--transition-normal);
  will-change: transform;
}
.testimonial {
  flex: 0 0 100%;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  pointer-events: none;
}
.testimonial-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-family: var(--font-display); }
.testimonial-meta span { font-size: 0.82rem; color: var(--color-muted); }
.testimonial-stars { display: flex; gap: 2px; color: var(--color-accent); margin-bottom: 0.75rem; }
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial p { font-size: 0.98rem; line-height: 1.7; color: var(--color-text); font-style: italic; }
.testimonial p::before { content: '"'; color: var(--color-accent); font-size: 1.4em; }
.testimonial p::after { content: '"'; color: var(--color-accent); font-size: 1.4em; }

.slider-dots {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-top: 2rem;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-fast);
}
.slider-dot.active { background: var(--color-accent); width: 28px; border-radius: 999px; }

/* ============== NEWSLETTER ============== */
.newsletter {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  text-align: center;
}
.newsletter h2 { margin-bottom: 0.5rem; }
.newsletter p { color: var(--color-muted); margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 480px; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.95rem 1.1rem;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text); font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.newsletter-form input[type="email"]:focus { border-color: var(--color-accent); }
.newsletter-form button { padding: 0.95rem 1.6rem; }
.newsletter-consent {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--color-muted);
  margin-top: 1rem; justify-content: center; flex-wrap: wrap;
}
.newsletter-consent a { color: var(--color-accent); text-decoration: underline; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(42, 157, 143, 0.15);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.form-success.show { display: block; }

/* ============== DISCLAIMER ============== */
.site-disclaimer {
  margin: 3rem 1rem 2rem;
  padding: 1.5rem;
  background: rgba(230, 57, 70, 0.07);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
  display: flex; gap: 1rem;
  align-items: flex-start;
}
.site-disclaimer-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(230, 57, 70, 0.15);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--color-danger);
}
.site-disclaimer-body { flex: 1; }
.site-disclaimer-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.site-disclaimer-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.site-disclaimer p { font-size: 0.9rem; color: var(--color-muted); line-height: 1.65; }
.site-disclaimer a { color: var(--color-accent); text-decoration: underline; }

/* ============== FOOTER ============== */
.site-footer {
  background: #06101c;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--color-muted); font-size: 0.9rem; margin: 1rem 0; max-width: 320px; }
.footer-contacts { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contacts li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--color-muted); font-size: 0.88rem;
}
.footer-contacts svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-contacts a:hover { color: var(--color-accent); }

.footer-col h5 {
  font-family: var(--font-display); font-size: 0.95rem;
  margin-bottom: 1rem; color: var(--color-text);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--color-muted); font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--color-muted); }
.footer-bottom .badge-18 { font-size: 0.7rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }

/* ============== AGE GATE ============== */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 16, 28, 0.96);
  backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.age-gate.show { display: flex; }
.age-gate-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(160deg, rgba(65, 90, 119, 0.4), rgba(27, 38, 59, 0.95));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.age-gate-card .logo { justify-content: center; margin-bottom: 1.5rem; }
.age-gate-emblem {
  width: 88px; height: 88px;
  margin: 0 auto 1.5rem;
  background: var(--grad-accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.6rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.age-gate-card h2 { margin-bottom: 0.75rem; }
.age-gate-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.age-gate-check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.85rem;
  background: rgba(13, 27, 42, 0.5);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  text-align: left; cursor: pointer;
}
.age-gate-check input { margin-top: 4px; flex-shrink: 0; cursor: pointer; }
.age-gate-check span { font-size: 0.88rem; color: var(--color-text); }
.age-gate-actions { display: flex; gap: 0.75rem; }
.age-gate-actions .btn-play { flex: 1; }
.age-gate-actions .btn-play:disabled {
  background: var(--color-surface-2);
  animation: none; cursor: not-allowed; opacity: 0.5;
}
.age-gate-actions .btn-play:disabled:hover { transform: none; box-shadow: none; }
.age-gate-actions .btn { flex: 1; }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 500;
  background: var(--color-surface);
  border: 1px solid rgba(244, 162, 97, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: flex-start; gap: 1rem;
  flex-direction: column;
}
.cookie-banner.show { display: flex; }
.cookie-banner-head { display: flex; align-items: center; gap: 0.6rem; }
.cookie-banner-head svg { color: var(--color-accent); flex-shrink: 0; }
.cookie-banner-head strong { font-family: var(--font-display); }
.cookie-banner p { font-size: 0.85rem; color: var(--color-muted); }
.cookie-banner p a { color: var(--color-accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.6rem; width: 100%; }
.cookie-banner-actions .btn { flex: 1; padding: 0.65rem 1rem; font-size: 0.85rem; }

/* ============== CONTACT FORM ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-info {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--color-muted); margin-bottom: 1.5rem; }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-info li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info li svg { color: var(--color-accent); flex-shrink: 0; margin-top: 4px; }
.contact-info li strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.contact-info li span, .contact-info li a { color: var(--color-muted); font-size: 0.9rem; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text); font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--color-accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-check {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--color-muted);
  margin-bottom: 1rem; cursor: pointer;
}
.form-check input { margin-top: 4px; cursor: pointer; flex-shrink: 0; }
.form-check a { color: var(--color-accent); text-decoration: underline; }
.contact-form button { width: 100%; padding: 1rem; }
.loader-spin { display: none; }
.loader-spin.show { display: inline-flex; }
.loader-spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== LEGAL PAGES ============== */
.legal-page { padding: 3rem 0 5rem; }
.legal-page h1 { margin-bottom: 0.5rem; }
.legal-page .lead {
  color: var(--color-muted); font-size: 1.05rem;
  margin-bottom: 2rem;
}
.legal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}
.legal-content h2 {
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 1.4rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }
.legal-content p, .legal-content li {
  color: var(--color-text); font-size: 0.95rem; line-height: 1.8;
  margin-bottom: 0.85rem;
}
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--color-accent); text-decoration: underline; }
.legal-content strong { color: var(--color-text); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

/* ============== GAME PAGE ============== */
.game-page-hero { padding: 3rem 0 2rem; }
.game-page-hero h1 {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.game-page-hero .lead { color: var(--color-text); max-width: 720px; margin-bottom: 1rem; font-size: 1.05rem; }
.game-howto {
  margin: 2rem 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.game-howto-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem;
  background: rgba(27, 38, 59, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.game-howto-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(244, 162, 97, 0.15);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--color-accent);
}
.game-howto-icon svg { width: 20px; height: 20px; }
.game-howto-item strong { display: block; font-family: var(--font-display); margin-bottom: 0.2rem; }
.game-howto-item p { font-size: 0.88rem; color: var(--color-muted); margin: 0; }

.game-container {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.game-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.game-stat {
  padding: 0.85rem;
  background: rgba(13, 27, 42, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.game-stat span {
  display: block; font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.game-stat strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.game-board {
  background: rgba(6, 16, 28, 0.7);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.bet-control {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(13, 27, 42, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}
.bet-control label {
  font-size: 0.85rem; color: var(--color-muted);
  padding-left: 0.5rem;
}
.bet-control input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--color-text); font-weight: 700; font-size: 1.05rem;
  font-family: var(--font-display);
  text-align: right; padding-right: 0.5rem;
  min-width: 60px;
}
.bet-btn {
  width: 32px; height: 32px;
  background: var(--color-surface-2);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--color-text);
  font-weight: 700;
}

.game-action-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.game-action-row .btn,
.game-action-row .btn-play { flex: 1; min-width: 100px; }

.game-result {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center; font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-normal);
}
.game-result.show { opacity: 1; transform: translateY(0); }
.game-result.win { background: rgba(42, 157, 143, 0.2); color: var(--color-success); border: 1px solid rgba(42, 157, 143, 0.5); }
.game-result.lose { background: rgba(230, 57, 70, 0.15); color: var(--color-danger); border: 1px solid rgba(230, 57, 70, 0.4); }
.game-result.info { background: rgba(244, 162, 97, 0.12); color: var(--color-accent); border: 1px solid rgba(244, 162, 97, 0.4); }

.game-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ============== GAME-SPECIFIC ============== */

/* Plinko */
.plinko-board {
  width: 100%; max-width: 460px; aspect-ratio: 1 / 1;
  position: relative;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.4), rgba(13, 27, 42, 0.7));
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
}
.plinko-board svg { width: 100%; height: 100%; }
.plinko-peg { fill: var(--alabaster-grey); }
.plinko-ball {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 8px rgba(244, 162, 97, 0.7));
}
.plinko-slots {
  display: grid;
  margin-top: -2px;
  gap: 2px;
  width: 100%; max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.plinko-slot {
  padding: 0.5rem 0.2rem;
  text-align: center;
  font-size: 0.7rem; font-weight: 700;
  background: var(--color-surface-2);
  border-radius: 4px;
  color: var(--color-muted);
  transition: all var(--transition-fast);
}
.plinko-slot.hit { background: var(--grad-accent); color: white; transform: scale(1.1); }

/* Mines */
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.mine-cell {
  aspect-ratio: 1;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: transparent;
}
.mine-cell:hover:not(.revealed) { background: var(--dusk-blue); transform: scale(1.05); }
.mine-cell.revealed { cursor: default; }
.mine-cell.gem {
  background: var(--grad-accent);
  color: #fff;
  animation: gem-pop 0.4s ease;
}
.mine-cell.bomb {
  background: var(--color-danger);
  color: #fff;
  animation: shake 0.4s ease;
}
@keyframes gem-pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Hi-Lo cards */
.hilo-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  min-height: 200px;
}
.playing-card {
  width: 110px; height: 160px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  position: relative;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 700;
  color: #0d1b2a;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.playing-card.flipping { animation: flip 0.6s ease; }
@keyframes flip {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}
.playing-card.red { color: var(--color-danger); }
.playing-card.back {
  background: var(--grad-accent);
  color: white;
}
.playing-card .rank { font-size: 1.3rem; line-height: 1; }
.playing-card .suit { font-size: 1.6rem; align-self: flex-end; }
.playing-card .center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.4rem;
}
.playing-card.back .center { font-size: 3rem; opacity: 0.95; }

/* Dice */
.dice-stage {
  display: flex; gap: 1.5rem; justify-content: center;
  perspective: 600px;
}
.die {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 10px;
  gap: 6px;
  box-shadow: var(--shadow-md), inset 0 -4px 0 rgba(0,0,0,0.1);
}
.die.rolling { animation: dice-roll 0.7s ease; }
@keyframes dice-roll {
  0%, 100% { transform: rotateX(0) rotateY(0); }
  25% { transform: rotateX(360deg) rotateY(180deg); }
  50% { transform: rotateX(180deg) rotateY(360deg); }
  75% { transform: rotateX(540deg) rotateY(270deg); }
}
.die-dot {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--ink-black);
  visibility: hidden;
}
.die-dot.show { visibility: visible; }
.die-target {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  justify-content: center; margin: 1rem 0;
}
.die-target button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-weight: 700;
  transition: all var(--transition-fast);
}
.die-target button:hover { background: var(--dusk-blue); }
.die-target button.selected {
  background: var(--grad-accent);
  border-color: transparent; color: white;
}

/* Wheel */
.wheel-stage {
  position: relative;
  width: 100%; max-width: 320px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.wheel-svg {
  width: 100%; height: 100%;
  transition: transform 4s cubic-bezier(0.18, 0.65, 0.18, 0.99);
}
.wheel-pointer {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--color-accent);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  z-index: 2;
}
.wheel-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: var(--grad-accent);
  border-radius: 50%;
  border: 4px solid var(--ink-black);
  box-shadow: var(--shadow-md);
}
.wheel-bets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin: 1rem 0;
}
.wheel-bet {
  padding: 0.55rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition-fast);
}
.wheel-bet:hover { background: var(--dusk-blue); }
.wheel-bet.selected {
  background: var(--grad-accent);
  border-color: transparent; color: white;
}

/* ============== UTILITIES ============== */
.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.hidden { display: none !important; }
.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ============== RESPONSIVE ============== */
@media (min-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: row; }
  .game-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .main-nav { display: block; }
  .burger { display: none; }
  .header-cta .btn-play { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial { flex: 0 0 calc(50% - 0.75rem); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .game-howto { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { flex-direction: row; align-items: center; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }
  .cookie-banner-actions { width: auto; flex-shrink: 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial { flex: 0 0 calc(33.333% - 1rem); }
  .legal-content { padding: 3rem; }
  .about { padding: 4rem 3rem; }
  .newsletter { padding: 4rem 2rem; }
  .hero h1 { font-size: 4rem; }
}

@media (min-width: 1200px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
