/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0d0020;
  color: #e8e0f5;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #c89aff; text-decoration: none; transition: color .2s; }
a:hover { color: #f0c040; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --purple: #7b2fff;
  --gold: #f0c040;
  --dark: #0d0020;
  --dark2: #1a0533;
  --dark3: #260845;
  --light: #e8e0f5;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(123,47,255,.3);
}

/* ===== AGE GATE OVERLAY ===== */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(13,0,32,.97);
  display: flex; align-items: center; justify-content: center;
}
.age-gate-box {
  background: var(--dark2);
  border: 2px solid var(--purple);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px; width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(123,47,255,.5);
}
.age-gate-box .ag-icon { font-size: 56px; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.age-gate-box p { color: #c0b0d8; margin-bottom: 28px; font-size: .97rem; }
.ag-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-yes, .btn-no {
  padding: 14px 36px; border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s;
}
.btn-yes { background: var(--purple); color: #fff; box-shadow: 0 4px 20px rgba(123,47,255,.5); }
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,47,255,.7); }
.btn-no { background: transparent; color: #c0b0d8; border: 2px solid #4a2a6a; }
.btn-no:hover { border-color: var(--gold); color: var(--gold); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8888;
  background: var(--dark2);
  border-top: 2px solid var(--purple);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(123,47,255,.3);
}
#cookie-banner p { flex: 1; font-size: .9rem; color: #c0b0d8; min-width: 200px; }
#cookie-banner a { color: var(--gold); }
.btn-cookie {
  padding: 10px 24px; border-radius: 50px; font-size: .9rem;
  font-weight: 700; cursor: pointer; border: none;
  background: var(--purple); color: #fff; white-space: nowrap;
}
.btn-cookie:hover { background: #9b4fff; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--dark2);
  border-bottom: 2px solid var(--purple);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.4rem; font-weight: 800; color: var(--gold);
}
.nav-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: 50px; font-weight: 600;
  color: var(--light); transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--purple); color: #fff;
}
.nav-cta {
  background: var(--gold) !important; color: var(--dark) !important;
  font-weight: 800 !important;
}
.nav-cta:hover { background: #ffd700 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--light); margin: 5px 0; transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0533 0%, #0d0020 60%, #260845 100%);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  font-size: 1.15rem; color: #c0b0d8;
  max-width: 560px; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 16px 40px; border-radius: 50px; font-size: 1rem;
  font-weight: 800; cursor: pointer; border: none;
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 24px rgba(123,47,255,.5);
  transition: transform .15s, box-shadow .15s;
  display: inline-block; text-align: center;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(123,47,255,.7); color: #fff; }
.btn-secondary {
  padding: 16px 40px; border-radius: 50px; font-size: 1rem;
  font-weight: 800; cursor: pointer;
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
  transition: background .2s, color .2s;
  display: inline-block; text-align: center;
}
.btn-secondary:hover { background: var(--gold); color: var(--dark); }

/* ===== SECTION WRAPPER ===== */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--gold);
  margin-bottom: 12px; text-align: center;
}
.section-sub {
  text-align: center; color: #c0b0d8;
  max-width: 600px; margin: 0 auto 48px;
}
.section-alt { background: var(--dark2); }
.section-alt2 { background: var(--dark3); }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--dark3);
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(123,47,255,.5); }
.game-card img { width: 100%; height: 200px; object-fit: cover; }
.game-card-body { padding: 20px; }
.game-card-body h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 8px; }
.game-card-body p { color: #c0b0d8; font-size: .9rem; margin-bottom: 16px; }
.game-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(123,47,255,.3); border-radius: 50px;
  font-size: .8rem; color: var(--purple); font-weight: 600; margin-bottom: 12px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(123,47,255,.3);
  transition: border-color .2s;
}
.feature-item:hover { border-color: var(--gold); }
.feature-icon { font-size: 2.5rem; margin-bottom: 14px; }
.feature-item h3 { color: var(--gold); margin-bottom: 8px; }
.feature-item p { color: #c0b0d8; font-size: .9rem; }

/* ===== GAME CANVAS AREA ===== */
.game-section { padding: 72px 24px; background: var(--dark2); }
.game-section .section-inner { max-width: 900px; }
.game-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.game-tab-btn {
  padding: 10px 28px; border-radius: 50px; font-size: .95rem;
  font-weight: 700; cursor: pointer; border: 2px solid var(--purple);
  background: transparent; color: var(--light);
  transition: background .2s, color .2s;
}
.game-tab-btn.active, .game-tab-btn:hover {
  background: var(--purple); color: #fff;
}
.game-panel { display: none; }
.game-panel.active { display: block; }

/* WHEEL GAME */
.wheel-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(123,47,255,.6), 0 0 80px rgba(240,192,64,.2);
  cursor: pointer;
}
.wheel-pointer {
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 36px solid var(--gold);
  filter: drop-shadow(0 2px 8px rgba(240,192,64,.7));
  margin-bottom: -8px;
}
#wheel-result {
  font-size: 1.3rem; font-weight: 700; color: var(--gold);
  min-height: 36px; text-align: center;
}
#spin-btn {
  padding: 16px 52px; border-radius: 50px; font-size: 1.1rem;
  font-weight: 800; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--purple), #9b4fff);
  color: #fff; box-shadow: 0 4px 24px rgba(123,47,255,.5);
  transition: transform .15s, box-shadow .15s;
}
#spin-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(123,47,255,.7); }
#spin-btn:disabled { opacity: .6; cursor: not-allowed; }

/* SLOT GAME */
.slot-machine {
  background: var(--dark3);
  border: 3px solid var(--purple);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px; margin: 0 auto;
  box-shadow: 0 0 40px rgba(123,47,255,.4);
  text-align: center;
}
.slot-machine h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 20px; }
.slot-reels {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.reel {
  width: 90px; height: 90px;
  background: var(--dark2);
  border: 2px solid var(--purple);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform .1s;
  overflow: hidden;
}
.reel.spinning { animation: reelSpin .15s linear infinite; }
@keyframes reelSpin { 0%{transform:translateY(-5px)} 50%{transform:translateY(5px)} 100%{transform:translateY(-5px)} }
#slot-result {
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
  min-height: 32px; margin-bottom: 20px;
}
#slot-btn {
  padding: 14px 48px; border-radius: 50px; font-size: 1rem;
  font-weight: 800; cursor: pointer; border: none;
  background: linear-gradient(135deg, #f0c040, #e0a000);
  color: var(--dark); box-shadow: 0 4px 20px rgba(240,192,64,.4);
  transition: transform .15s;
}
#slot-btn:hover:not(:disabled) { transform: translateY(-2px); }
#slot-btn:disabled { opacity: .6; cursor: not-allowed; }

/* SCRATCH GAME */
.scratch-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.scratch-card-container {
  position: relative; width: 300px; height: 200px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 30px rgba(123,47,255,.5);
}
#scratch-canvas {
  position: absolute; top: 0; left: 0; cursor: crosshair;
  border-radius: 16px;
}
.scratch-reveal {
  width: 300px; height: 200px;
  background: var(--dark3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; gap: 16px;
}
#scratch-result {
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
  min-height: 32px; text-align: center;
}
#new-scratch-btn {
  padding: 12px 36px; border-radius: 50px; font-size: .95rem;
  font-weight: 700; cursor: pointer; border: none;
  background: var(--purple); color: #fff;
  transition: transform .15s;
}
#new-scratch-btn:hover { transform: translateY(-2px); }

/* ===== NEWSLETTER ===== */
.newsletter-box {
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  border: 2px solid var(--purple);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.newsletter-box h2 { color: var(--gold); font-size: 1.8rem; margin-bottom: 12px; }
.newsletter-box p { color: #c0b0d8; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 14px 20px;
  border-radius: 50px; border: 2px solid var(--purple);
  background: var(--dark); color: var(--light); font-size: 1rem;
  outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-form button {
  padding: 14px 32px; border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none;
  background: var(--purple); color: #fff;
  transition: background .2s;
}
.newsletter-form button:hover { background: #9b4fff; }
#newsletter-msg { margin-top: 16px; color: var(--gold); font-weight: 600; min-height: 24px; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 16px; }
.contact-info p { color: #c0b0d8; margin-bottom: 12px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-detail .cd-icon { font-size: 1.4rem; color: var(--purple); flex-shrink: 0; }
.contact-detail p { color: #c0b0d8; font-size: .95rem; margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 14px 18px; border-radius: 10px;
  border: 2px solid rgba(123,47,255,.4);
  background: var(--dark3); color: var(--light); font-size: .95rem;
  outline: none; font-family: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--purple);
}
.contact-form textarea { min-height: 130px; }
.contact-form button {
  padding: 14px; border-radius: 50px; font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none;
  background: var(--purple); color: #fff;
  transition: background .2s;
}
.contact-form button:hover { background: #9b4fff; }
#contact-msg { color: var(--gold); font-weight: 600; min-height: 24px; }

/* ===== ABOUT PAGE ===== */
.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 { color: var(--gold); font-size: 1.8rem; margin-bottom: 16px; }
.about-text p { color: #c0b0d8; margin-bottom: 16px; }
.about-list { list-style: none; padding: 0; }
.about-list li { color: #c0b0d8; padding: 6px 0; padding-left: 24px; position: relative; }
.about-list li::before { content: '✦'; color: var(--gold); position: absolute; left: 0; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 860px; margin: 0 auto; padding: 60px 24px;
}
.policy-content h1 { color: var(--gold); font-size: 2rem; margin-bottom: 8px; }
.policy-content .policy-date { color: #8070a0; margin-bottom: 36px; font-size: .9rem; }
.policy-content h2 { color: var(--purple); font-size: 1.2rem; margin: 28px 0 10px; }
.policy-content p, .policy-content li { color: #c0b0d8; margin-bottom: 10px; line-height: 1.7; }
.policy-content ul { padding-left: 20px; list-style: disc; }
.policy-content a { color: var(--gold); }

/* ===== PAGE BANNER ===== */
.page-banner {
  position: relative; overflow: hidden;
  padding: 72px 24px 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border-bottom: 2px solid var(--purple);
}
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 12px; }
.page-banner h1 span { color: var(--gold); }
.page-banner p { color: #c0b0d8; max-width: 560px; margin: 0 auto; }
.page-banner-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .2;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 2px solid var(--purple);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: #8070a0; font-size: .9rem; }
.footer-col h4 { color: var(--gold); font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #8070a0; font-size: .9rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(123,47,255,.3);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: #5a4a7a; font-size: .85rem; }
.footer-disclaimer {
  max-width: 1200px; margin: 16px auto 0;
  color: #5a4a7a; font-size: .8rem; text-align: center; line-height: 1.5;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark3);
  border-top: 1px solid rgba(123,47,255,.3);
  border-bottom: 1px solid rgba(123,47,255,.3);
  padding: 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); }
.stat-item .stat-label { color: #8070a0; font-size: .85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark2); padding: 16px; border-bottom: 2px solid var(--purple); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .slot-reels .reel { width: 70px; height: 70px; font-size: 2.2rem; }
  .scratch-card-container, .scratch-reveal { width: 260px; height: 170px; }
  #scratch-canvas { width: 260px; height: 170px; }
}
