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

:root {
  --primary: #6c0fc0;
  --primary-dark: #4a0a85;
  --accent: #ffd700;
  --accent2: #ff6b35;
  --bg-dark: #0d0620;
  --bg-card: #1a0a35;
  --text: #f0e6ff;
  --text-muted: #b09cc0;
  --border: rgba(255,215,0,0.25);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(108,15,192,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 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 0.2s; }
a:hover { color: #fff; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(13,6,32,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1180px; margin: 0 auto;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
  letter-spacing: 0.5px;
}
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.logo span { color: #fff; }

nav { display: flex; gap: 6px; align-items: center; }
nav a {
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 0.92rem; transition: all 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); background: rgba(255,215,0,0.08); }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 9px 20px !important; border-radius: 20px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--accent) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.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(0.45);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 640px; padding: 80px 20px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.15;
  color: #fff; margin-bottom: 18px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  margin-bottom: 32px; max-width: 500px;
}
.btn {
  display: inline-block; padding: 13px 30px;
  border-radius: 30px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: all 0.25s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,15,192,0.5); }
.btn-accent { background: var(--accent); color: #1a0a35; }
.btn-accent:hover { background: #ffe44d; color: #1a0a35; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #1a0a35; }

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

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card-img { width: 100%; height: 220px; object-fit: cover; }
.game-card-body { padding: 22px; }
.game-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.game-card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 22px; text-align: center;
}
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.feature-item p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), #1a0a35);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.newsletter-inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; justify-content: space-between;
}
.newsletter-text h2 { font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.newsletter-text p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 18px; border-radius: 30px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.95rem;
  outline: none; min-width: 260px;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--accent); }
#newsletter-success {
  display: none; color: var(--accent); font-weight: 600;
  margin-top: 10px; width: 100%;
}

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 80px 0 60px; }
.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; color: #fff; margin-bottom: 16px; }
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }

.venues-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.venue-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
}
.venue-card h3 { color: var(--accent); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.venue-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.venue-tag {
  display: inline-block; background: rgba(108,15,192,0.3);
  color: var(--accent); font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: #fff; 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-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-detail h4 { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.contact-detail p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.contact-form-wrap {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 36px;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 0.95rem; outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: #1a0a35; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#form-success {
  display: none; background: rgba(0,200,100,0.15); border: 1px solid rgba(0,200,100,0.4);
  color: #4dffaa; border-radius: 8px; padding: 14px 18px; margin-top: 16px;
  font-weight: 600;
}

/* ===== GAME PAGES ===== */
.game-page-hero {
  text-align: center; padding: 60px 20px 40px;
}
.game-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 10px; }
.game-page-hero h1 span { color: var(--accent); }
.game-page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== WHEEL GAME ===== */
.wheel-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 40px 20px;
}
.wheel-container {
  position: relative; width: 380px; height: 380px;
  max-width: 90vw; max-height: 90vw;
}
#wheelCanvas {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(255,215,0,0.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: 32px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  z-index: 10;
}
#wheel-result {
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
  min-height: 36px; text-align: center;
}
#spinBtn {
  font-size: 1.1rem; padding: 14px 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: #fff; border: none; border-radius: 30px; cursor: pointer;
  font-weight: 700; transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(108,15,192,0.4);
}
#spinBtn:hover:not(:disabled) { transform: scale(1.05); }
#spinBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== SLOT MACHINE ===== */
.slot-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 40px 20px;
}
.slot-machine {
  background: linear-gradient(145deg, #2a0a50, #1a0a35);
  border: 3px solid var(--accent); border-radius: 20px;
  padding: 30px; box-shadow: 0 0 40px rgba(255,215,0,0.2);
  max-width: 480px; width: 100%;
}
.slot-title-bar {
  text-align: center; font-size: 1.4rem; font-weight: 900;
  color: var(--accent); letter-spacing: 2px; margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(255,215,0,0.5);
}
.slot-reels {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 24px;
}
.reel-window {
  width: 100px; height: 110px; overflow: hidden;
  background: #fff; border-radius: 10px;
  border: 3px solid var(--primary);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.3);
  position: relative;
}
.reel-strip {
  display: flex; flex-direction: column;
  transition: transform 0.0s;
  will-change: transform;
}
.reel-symbol {
  width: 100px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; user-select: none;
  background: #fff;
}
.slot-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#slotSpinBtn {
  padding: 13px 40px; background: var(--accent); color: #1a0a35;
  border: none; border-radius: 30px; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}
#slotSpinBtn:hover:not(:disabled) { background: #ffe44d; transform: scale(1.04); }
#slotSpinBtn:disabled { opacity: 0.5; cursor: not-allowed; }
#slot-result {
  text-align: center; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); min-height: 32px;
}
.slot-score {
  text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 6px;
}
.slot-score span { color: var(--accent); font-weight: 700; }

/* ===== SCRATCH CARD ===== */
.scratch-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 40px 20px;
}
.scratch-card-container {
  position: relative; width: 320px; height: 200px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  cursor: crosshair;
}
.scratch-reveal {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #2a0a50, #4a0a85);
  border-radius: 16px;
  flex-direction: column; gap: 8px;
}
.scratch-reveal .prize-icon { font-size: 3rem; }
#scratchCanvas {
  position: absolute; inset: 0; border-radius: 16px;
}
#scratch-result {
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  min-height: 32px; text-align: center;
}
#newScratchBtn {
  padding: 12px 32px; background: var(--primary); color: #fff;
  border: none; border-radius: 30px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s;
}
#newScratchBtn:hover { background: var(--primary-dark); transform: scale(1.04); }
.scratch-hint { color: var(--text-muted); font-size: 0.88rem; }

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 820px; margin: 0 auto; padding: 60px 20px 80px;
}
.policy-content h1 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.policy-content .last-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 36px; }
.policy-content h2 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 28px 0 10px; }
.policy-content p, .policy-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.policy-content ul, .policy-content ol { padding-left: 22px; margin-bottom: 14px; }
.policy-content a { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(13,6,32,0.97); border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
#cookie-banner p { color: var(--text-muted); font-size: 0.88rem; flex: 1; min-width: 220px; }
#cookie-banner p a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  padding: 9px 20px; border-radius: 20px; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; border: none; transition: all 0.2s;
}
#cookie-accept { background: var(--primary); color: #fff; }
#cookie-accept:hover { background: var(--primary-dark); }
#cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border) !important; }
#cookie-decline:hover { color: #fff; }

/* ===== 18+ POPUP ===== */
#age-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(5,2,15,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.age-gate-box {
  background: var(--bg-card); border-radius: 20px;
  border: 2px solid var(--accent); padding: 48px 40px;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.15);
}
.age-gate-icon { font-size: 3.5rem; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.age-gate-box h2 span { color: var(--accent); }
.age-gate-box p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }
.age-gate-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.age-gate-btns .btn { min-width: 160px; }
.age-gate-disclaimer { margin-top: 20px; font-size: 0.78rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer {
  background: rgba(5,2,15,0.95); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom .rg-badge {
  background: rgba(255,215,0,0.1); border: 1px solid var(--border);
  color: var(--accent); font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.breadcrumb ul { display: flex; gap: 8px; list-style: none; font-size: 0.85rem; }
.breadcrumb li { color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13,6,32,0.98); padding: 16px; border-bottom: 1px solid var(--border); }
  nav.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .slot-reels { gap: 8px; }
  .reel-window { width: 80px; height: 90px; }
  .reel-symbol { width: 80px; height: 90px; font-size: 2.4rem; }
  .wheel-container { width: 300px; height: 300px; }
  .age-gate-box { padding: 32px 22px; }
}
@media (max-width: 420px) {
  .reel-window { width: 70px; height: 80px; }
  .reel-symbol { width: 70px; height: 80px; font-size: 2rem; }
}

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed; width: 10px; height: 10px;
  top: -10px; z-index: 9999; pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== HIGHLIGHT STRIP ===== */
.highlight-strip {
  background: linear-gradient(90deg, var(--primary-dark), #0d0620, var(--primary-dark));
  padding: 14px 0; overflow: hidden;
}
.strip-inner {
  display: flex; gap: 48px; white-space: nowrap;
  animation: stripScroll 22s linear infinite;
}
.strip-inner span { color: var(--text-muted); font-size: 0.88rem; }
.strip-inner span strong { color: var(--accent); }
@keyframes stripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Form Validation Styles ---- */
.field-error {
  display: block;
  color: #ff4d6d;
  font-size: 0.78rem;
  margin-top: 4px;
}
.input-error {
  border-color: #ff4d6d !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.25) !important;
}
