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

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg-dark: #0f0a1e;
  --bg-card: #1a1035;
  --bg-card2: #231547;
  --text: #f3f0ff;
  --text-muted: #a78bfa;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 8px 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);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1035ee;
  border-top: 2px solid var(--primary);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  z-index: 9000;
  backdrop-filter: blur(8px);
}
#cookie-banner p { font-size: .9rem; color: var(--text-muted); max-width: 700px; }
#cookie-banner .cb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie-accept {
  background: var(--primary); color: #fff; border: none; padding: 8px 20px;
  border-radius: 8px; cursor: pointer; font-size: .9rem; 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: 8px 20px; border-radius: 8px; cursor: pointer; font-size: .9rem;
  transition: all .2s;
}
.btn-cookie-decline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== AGE GATE POPUP ===== */
#age-gate {
  position: fixed; inset: 0;
  background: rgba(10,5,30,0.97);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.age-gate-box {
  background: var(--bg-card2);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(124,58,237,0.5);
}
.age-gate-box .age-icon { font-size: 4rem; margin-bottom: 12px; }
.age-gate-box h2 { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.age-gate-box p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.age-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-age-yes {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; padding: 14px 36px; border-radius: 10px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transition: transform .15s, box-shadow .15s;
}
.btn-age-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.6); }
.btn-age-no {
  background: transparent; color: var(--text-muted); border: 2px solid #4b3a7a;
  padding: 14px 36px; border-radius: 10px; font-size: 1.1rem; cursor: pointer;
  transition: all .2s;
}
.btn-age-no:hover { border-color: var(--danger); color: var(--danger); }

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

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

.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;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(15,10,30,0.98); border-bottom: 1px solid #2d1b6e; padding: 12px 0; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 0 24px; gap: 4px; }
  nav ul li a { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.hero-content {
  position: relative; z-index: 2;
  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: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff; border: none; padding: 14px 32px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.6); color: #fff; }

.btn-secondary {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); padding: 14px 32px;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--accent); color: #000; }

/* ===== SECTIONS ===== */
section { padding: 72px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 10px;
}
.section-title h2 span { color: var(--accent); }
.section-title p { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ===== 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 #2d1b6e;
  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.2rem; margin-bottom: 8px; }
.game-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; margin-bottom: 12px;
}
.badge-fun { background: #7c3aed33; color: #a78bfa; }
.badge-new { background: #f59e0b33; color: #fcd34d; }
.badge-hot { background: #ef444433; color: #fca5a5; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid #2d1b6e;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 2.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--radius); overflow: hidden; 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); margin-bottom: 14px; }
.about-list { list-style: none; margin: 20px 0; }
.about-list li { padding: 6px 0; color: var(--text-muted); }
.about-list li::before { content: '✦ '; color: var(--accent); }

/* ===== NEWSLETTER / CONTACT FORM ===== */
.newsletter-section {
  background: linear-gradient(135deg, #1a1035, #231547);
  border-top: 1px solid #2d1b6e;
  border-bottom: 1px solid #2d1b6e;
}
.newsletter-inner {
  max-width: 600px; margin: 0 auto; text-align: center;
}
.newsletter-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-inner h2 span { color: var(--accent); }
.newsletter-inner p { color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 13px 18px;
  background: #0f0a1e; border: 1px solid #4b3a7a;
  border-radius: 10px; color: var(--text); font-size: 1rem;
  outline: none; transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form button {
  padding: 13px 28px; background: var(--accent); color: #000;
  border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.newsletter-form button:hover { background: var(--accent-dark); }
#newsletter-success {
  display: none; margin-top: 16px; color: var(--success);
  font-weight: 600; font-size: 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-info h2 span { color: var(--accent); }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-detail h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-detail p { color: var(--text-muted); font-size: .9rem; margin: 0; }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid #2d1b6e;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .9rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  background: #0f0a1e; border: 1px solid #4b3a7a;
  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: 120px; }
.form-group select option { background: #1a1035; }
.btn-submit {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; }
#contact-success {
  display: none; margin-top: 16px; padding: 14px;
  background: #10b98122; border: 1px solid var(--success);
  border-radius: 8px; color: var(--success); text-align: center; font-weight: 600;
}

/* ===== VENUES ===== */
.venues-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.venue-card {
  background: var(--bg-card); border: 1px solid #2d1b6e;
  border-radius: var(--radius); padding: 22px;
  transition: border-color .2s;
}
.venue-card:hover { border-color: var(--primary); }
.venue-card h4 { font-size: 1rem; margin-bottom: 6px; }
.venue-card p { color: var(--text-muted); font-size: .85rem; }
.venue-tag { font-size: .75rem; color: var(--accent); margin-bottom: 8px; }

/* ===== GAME PAGES ===== */
.game-page { padding: 48px 24px; }
.game-area {
  background: var(--bg-card);
  border: 1px solid #2d1b6e;
  border-radius: 20px;
  padding: 36px;
  max-width: 700px; margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.game-area h2 { font-size: 1.8rem; margin-bottom: 8px; }
.game-area .game-desc { color: var(--text-muted); margin-bottom: 28px; }

/* SLOT MACHINE */
.slot-machine {
  background: #0f0a1e;
  border: 3px solid #4b3a7a;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.slot-reels {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 20px;
}
.reel {
  width: 90px; height: 90px;
  background: #1a1035;
  border: 2px solid #7c3aed;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}
.reel.spinning { animation: reelSpin .1s linear infinite; }
@keyframes reelSpin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.slot-result {
  min-height: 32px; font-size: 1.1rem; font-weight: 700;
  color: var(--accent); margin-bottom: 16px;
}
.slot-score {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 16px;
}
.score-item { text-align: center; }
.score-item .score-label { font-size: .8rem; color: var(--text-muted); }
.score-item .score-val { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.btn-spin {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  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;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  letter-spacing: .5px;
}
.btn-spin:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(124,58,237,0.6); }
.btn-spin:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* WHEEL */
.wheel-wrap {
  position: relative; display: inline-block; margin-bottom: 24px;
}
#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(124,58,237,0.5);
  display: block; margin: 0 auto;
}
.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: 28px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.8));
}
.wheel-result {
  min-height: 36px; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin-bottom: 16px;
}
.btn-wheel-spin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: transform .15s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}
.btn-wheel-spin:hover { transform: scale(1.04); }
.btn-wheel-spin:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* COIN FLIP */
.coin-wrap { margin-bottom: 24px; perspective: 600px; }
.coin {
  width: 140px; height: 140px; margin: 0 auto;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.05s;
  cursor: default;
}
.coin.flipping { animation: coinFlip 1.8s ease-out forwards; }
@keyframes coinFlip {
  0%   { transform: rotateY(0); }
  100% { transform: rotateY(1800deg); }
}
.coin-face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; backface-visibility: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.coin-heads {
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b, #92400e);
  border: 4px solid #fcd34d;
}
.coin-tails {
  background: radial-gradient(circle at 35% 35%, #c4b5fd, #7c3aed, #3b0764);
  border: 4px solid #a78bfa;
  transform: rotateY(180deg);
}
.coin-result {
  min-height: 36px; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin: 16px 0;
}
.coin-score { display: flex; justify-content: center; gap: 32px; margin-bottom: 20px; }
.btn-flip {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: transform .15s;
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
}
.btn-flip:hover { transform: scale(1.04); }
.btn-flip:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 860px; margin: 0 auto; padding: 48px 24px;
}
.policy-content h1 { font-size: 2rem; margin-bottom: 8px; }
.policy-content .policy-date { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }
.policy-content h2 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--accent); }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }
.policy-content ul { color: var(--text-muted); padding-left: 24px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  background: #0a0618;
  border-top: 1px solid #2d1b6e;
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--accent); }
.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 {
  max-width: 1200px; margin: 32px auto 0;
  border-top: 1px solid #2d1b6e; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-disclaimer {
  max-width: 1200px; margin: 16px auto 0;
  color: #6b5a9a; font-size: .8rem; line-height: 1.6; text-align: center;
}

/* ===== TOAST ===== */
#toast {
  position: fixed; bottom: 80px; right: 24px;
  background: var(--bg-card2); border: 1px solid var(--primary);
  color: var(--text); padding: 14px 22px; border-radius: 10px;
  font-size: .95rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateX(200%); transition: transform .3s ease;
  z-index: 5000; max-width: 300px;
}
#toast.show { transform: translateX(0); }

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed; width: 10px; height: 10px;
  border-radius: 2px; pointer-events: none; z-index: 9999;
  animation: confettiFall 2s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px 0;
  font-size: .85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #1a1035, #231547);
  padding: 56px 24px;
  text-align: center;
  border-bottom: 1px solid #2d1b6e;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed; bottom: 80px; right: 24px;
  background: var(--primary); color: #fff;
  border: none; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transition: opacity .2s; z-index: 4000;
}
#back-to-top.visible { display: flex; }
#back-to-top:hover { background: var(--primary-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .slot-reels { gap: 8px; }
  .reel { width: 72px; height: 72px; font-size: 2.4rem; }
  .game-area { padding: 24px 16px; }
  #wheelCanvas { width: 280px !important; height: 280px !important; }
}
