/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent2: #ec4899;
  --bg-dark: #0f0a1e;
  --bg-card: #1a1035;
  --text: #f1f0f9;
  --text-muted: #a89ec9;
  --radius: 12px;
  --shadow: 0 4px 32px rgba(124,58,237,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

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

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #1a1035ee;
  border-top: 2px solid var(--primary);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
#cookie-banner p { font-size: .9rem; color: var(--text-muted); flex: 1 1 300px; }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie-accept {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 22px; border-radius: 8px; cursor: pointer; font-weight: 600;
  transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--primary-dark); }
.btn-cookie-decline {
  background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted);
  padding: 9px 22px; border-radius: 8px; cursor: pointer; font-weight: 600;
  transition: all .2s;
}
.btn-cookie-decline:hover { border-color: var(--accent2); color: var(--accent2); }

/* ===== 18+ POPUP ===== */
#age-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,5,30,.97);
  display: flex; align-items: center; justify-content: center;
}
.age-box {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 0 60px rgba(124,58,237,.5);
}
.age-box .age-icon { font-size: 4rem; margin-bottom: 16px; }
.age-box h2 { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.age-box p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; line-height: 1.6; }
.age-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-yes {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; padding: 13px 36px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,.5); }
.btn-no {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--text-muted);
  padding: 13px 36px; border-radius: 10px; font-size: 1rem; cursor: pointer;
  transition: all .2s;
}
.btn-no:hover { border-color: var(--accent2); color: var(--accent2); }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,10,30,.95);
  border-bottom: 1px solid rgba(124,58,237,.3);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 1.8rem; }
.logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 6px; }
nav ul li a {
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: .95rem; transition: all .2s;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--text); background: rgba(124,58,237,.2);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  filter: brightness(.45);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.55) 0%, rgba(15,10,30,.7) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 18px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 32px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; padding: 14px 32px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,.5); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--primary); padding: 12px 30px;
  border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== SECTIONS ===== */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: 12px;
}
.section-title span { color: var(--accent); }
.section-sub {
  text-align: center; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 48px; line-height: 1.7;
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card-img { width: 100%; height: 200px; object-fit: cover; }
.game-card-body { padding: 20px; }
.game-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.game-card-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }
.badge {
  display: inline-block; background: rgba(124,58,237,.25);
  color: var(--accent); padding: 3px 10px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; margin-bottom: 12px;
}
.btn-play {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 9px 22px; border-radius: 8px; font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: background .2s;
}
.btn-play:hover { background: var(--primary-dark); color: #fff; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.feature-list { list-style: none; margin: 20px 0; }
.feature-list li { padding: 8px 0; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.feature-list li::before { content: '✦'; color: var(--accent); font-size: .8rem; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.1));
  border-top: 1px solid rgba(124,58,237,.2);
  border-bottom: 1px solid rgba(124,58,237,.2);
}
.newsletter-box { text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-box h2 span { color: var(--accent); }
.newsletter-box p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px; padding: 13px 18px;
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.4);
  border-radius: 10px; color: var(--text); font-size: .95rem;
  outline: none; transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form button {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; padding: 13px 28px;
  border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .95rem;
  transition: transform .15s;
}
.newsletter-form button:hover { transform: translateY(-2px); }
#newsletter-msg { margin-top: 14px; font-size: .9rem; min-height: 22px; }

/* ===== LOCATIONS ===== */
.locations-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.location-card {
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius); padding: 24px;
}
.location-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.location-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.location-icon { font-size: 1.6rem; margin-bottom: 10px; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-detail .icon { font-size: 1.3rem; }
.contact-detail span { color: var(--text-muted); font-size: .95rem; }
.form-card {
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius); padding: 32px;
}
.form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px; color: var(--text); font-size: .95rem;
  outline: none; transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--bg-card); }
.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; padding: 14px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,.4); }
#contact-msg { margin-top: 12px; font-size: .9rem; min-height: 22px; text-align: center; }

/* ===== GAME PAGE ===== */
.game-page-hero {
  background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(236,72,153,.15));
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(124,58,237,.2);
}
.game-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.game-page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* WHEEL GAME */
.wheel-section { padding: 48px 24px; }
.wheel-container {
  max-width: 700px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.25);
  border-radius: 20px; padding: 36px 24px; text-align: center;
}
.wheel-wrapper {
  position: relative; display: inline-block; margin-bottom: 24px;
}
#wheel-canvas { border-radius: 50%; box-shadow: 0 0 40px rgba(124,58,237,.4); }
.wheel-pointer {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(245,158,11,.6));
}
.wheel-result {
  min-height: 40px; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin: 12px 0 20px;
}
.btn-spin {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .5px;
}
.btn-spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,.5); }
.btn-spin:disabled { opacity: .6; cursor: not-allowed; }
.tokens-display {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px; font-size: 1.1rem; font-weight: 600;
}
.token-icon { font-size: 1.5rem; }

/* SLOTS GAME */
.slots-section { padding: 48px 24px; }
.slots-container {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.25);
  border-radius: 20px; padding: 36px 24px; text-align: center;
}
.slots-machine {
  background: linear-gradient(180deg, #2d1b69 0%, #1a1035 100%);
  border: 3px solid var(--accent);
  border-radius: 16px; padding: 24px; margin-bottom: 20px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 30px rgba(245,158,11,.2);
}
.reels {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 16px;
}
.reel {
  width: 90px; height: 90px;
  background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden;
  border: 3px solid #ddd;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.2);
  transition: transform .1s;
}
.reel.spinning { animation: reelSpin .1s linear infinite; }
@keyframes reelSpin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.slots-result {
  min-height: 36px; font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 16px;
}
.btn-slots-spin {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-slots-spin:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,.4); }
.btn-slots-spin:disabled { opacity: .6; cursor: not-allowed; }
.paylines {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px;
}
.payline { background: rgba(255,255,255,.06); border-radius: 6px; padding: 5px 12px; font-size: .82rem; color: var(--text-muted); }

/* TOKEN GAME */
.token-game-section { padding: 48px 24px; }
.token-game-container {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.25);
  border-radius: 20px; padding: 36px 24px; text-align: center;
}
.token-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin: 24px 0;
}
.token-cell {
  aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.token-cell:hover { transform: scale(1.1); background: rgba(124,58,237,.2); }
.token-cell.revealed { cursor: default; }
.token-cell.win { background: rgba(245,158,11,.25); border-color: var(--accent); box-shadow: 0 0 12px rgba(245,158,11,.4); }
.token-cell.lose { background: rgba(239,68,68,.15); border-color: #ef4444; }
.token-stats {
  display: flex; justify-content: center; gap: 32px; margin: 16px 0;
}
.stat-box { text-align: center; }
.stat-box .stat-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-box .stat-lbl { font-size: .8rem; color: var(--text-muted); }
.btn-token-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; padding: 12px 36px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform .15s;
}
.btn-token-new:hover { transform: translateY(-2px); }
.token-msg { min-height: 32px; font-size: 1rem; font-weight: 600; color: var(--accent); margin: 10px 0; }

/* ===== POLICY PAGES ===== */
.policy-page { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.policy-page h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.policy-page .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 36px; }
.policy-page h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--accent); }
.policy-page p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.policy-page ul { padding-left: 20px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.policy-page ul li { margin-bottom: 6px; }
.policy-page a { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  background: rgba(10,5,20,.95);
  border-top: 1px solid rgba(124,58,237,.2);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 36px;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(124,58,237,.15);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-bottom .disclaimer {
  font-size: .8rem; color: rgba(168,158,201,.6);
  max-width: 600px; line-height: 1.5;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent2); color: #fff; font-weight: 900; font-size: .85rem;
  flex-shrink: 0;
}

/* ===== ABOUT PAGE ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card {
  background: var(--bg-card); border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
}
.team-avatar { font-size: 3rem; margin-bottom: 12px; }
.team-card h4 { font-weight: 700; margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: .88rem; }

.stats-row {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 48px 0;
}
.stat-item { text-align: center; min-width: 140px; }
.stat-item .num { font-size: 2.4rem; font-weight: 900; color: var(--accent); }
.stat-item .lbl { color: var(--text-muted); font-size: .9rem; }

/* ===== SUCCESS MESSAGE ===== */
.success-msg { color: #10b981; }
.error-msg { color: #ef4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(15,10,30,.98); padding: 16px; gap: 4px; border-bottom: 1px solid rgba(124,58,237,.3); }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .token-board { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .reel { width: 70px; height: 70px; font-size: 2.2rem; }
}
