/* =========================================
   QuantumPixel.info — Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #7c3aed;
  --primary-d: #5b21b6;
  --accent:    #f59e0b;
  --accent-d:  #d97706;
  --dark:      #0f0f1a;
  --dark2:     #1a1a2e;
  --dark3:     #16213e;
  --light:     #f3f4f6;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --success:   #10b981;
  --danger:    #ef4444;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--dark2);
  border-top: 2px solid var(--primary);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}
#cookie-banner p { font-size: .9rem; color: var(--text-muted); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie-accept {
  background: var(--primary); color: #fff;
  border: none; padding: 8px 20px; border-radius: 8px;
  cursor: pointer; font-weight: 600; transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--primary-d); }
.btn-cookie-decline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--text-muted); padding: 8px 20px; border-radius: 8px;
  cursor: pointer; font-weight: 600; transition: all .2s;
}
.btn-cookie-decline:hover { border-color: var(--text); color: var(--text); }

/* --- Age Gate Overlay --- */
#age-gate {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.age-gate-box {
  background: var(--dark2);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px; width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(124,58,237,.4);
}
.age-gate-box .age-icon { font-size: 4rem; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.age-gate-box p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.age-gate-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-age-yes {
  background: var(--primary); color: #fff;
  border: none; padding: 14px 36px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-age-yes:hover { background: var(--primary-d); transform: translateY(-2px); }
.btn-age-no {
  background: transparent; color: var(--text-muted);
  border: 2px solid var(--text-muted); padding: 14px 36px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; 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,15,26,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124,58,237,.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo-icon { font-size: 1.6rem; }

nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a {
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: color .2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav ul li a:hover,
nav ul li a.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 20px !important; border-radius: 8px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--primary-d); color: #fff !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 .3s;
}

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  filter: brightness(.35);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.25);
  border: 1px solid var(--primary);
  color: var(--accent); font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); color: #fff; }

.btn-outline {
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  border: 2px solid rgba(255,255,255,.3); cursor: pointer;
  transition: all .2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- Sections --- */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* --- Games Grid --- */
.games-section { background: var(--dark2); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--dark3);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(124,58,237,.3); }
.game-card-img { height: 200px; overflow: hidden; }
.game-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-card-img img { transform: scale(1.06); }
.game-card-body { padding: 24px; }
.game-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.game-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.btn-play {
  background: var(--accent); color: var(--dark);
  padding: 10px 24px; border-radius: 8px;
  font-weight: 700; font-size: .9rem; border: none; cursor: pointer;
  transition: background .2s, transform .15s; display: inline-block;
}
.btn-play:hover { background: var(--accent-d); transform: translateY(-1px); color: var(--dark); }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  transition: border-color .25s;
}
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 2.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* --- About Section --- */
.about-section { background: var(--dark3); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.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: 16px; }
.about-list { list-style: none; margin: 20px 0 28px; }
.about-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-muted); }
.about-list li::before { content: '✦'; color: var(--accent); font-size: .8rem; }

/* --- Venues Section --- */
.venues-section { background: var(--dark2); }
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.venue-card {
  background: var(--dark3);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .25s;
}
.venue-card:hover { border-color: var(--accent); }
.venue-icon { font-size: 1.8rem; margin-bottom: 12px; }
.venue-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.venue-card p { color: var(--text-muted); font-size: .85rem; }
.venue-card address { font-style: normal; color: var(--text-muted); font-size: .85rem; margin-top: 8px; }

/* --- Newsletter / CTA --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--dark3) 100%);
  text-align: center;
}
.newsletter-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,.75); margin-bottom: 32px; }
.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 18px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 1rem; outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent); color: var(--dark);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--accent-d); }
.newsletter-msg { margin-top: 12px; font-size: .9rem; min-height: 20px; }

/* --- Footer --- */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(124,58,237,.2);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 16px; color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); font-size: .82rem; }
.footer-legal a:hover { color: var(--accent); }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,.15); border: 1px solid var(--danger);
  color: var(--danger); padding: 4px 12px; border-radius: 20px;
  font-size: .78rem; font-weight: 700;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(124,58,237,.2);
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* --- Contact Page --- */
.contact-section { background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-item-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item-text h4 { font-weight: 700; margin-bottom: 4px; }
.contact-item-text p { color: var(--text-muted); font-size: .9rem; }
.contact-form-wrap {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--dark3); 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: 120px; }
.form-group select option { background: var(--dark2); }
.form-submit { width: 100%; }
.form-success {
  display: none; margin-top: 16px;
  background: rgba(16,185,129,.15); border: 1px solid var(--success);
  color: var(--success); padding: 12px 16px; border-radius: 8px;
  font-size: .9rem; text-align: center;
}

/* --- Games Page --- */
.games-page-section { background: var(--dark); }

/* --- Spin Wheel Game --- */
.game-container {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px; margin: 0 auto 48px;
}
.game-container h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.game-container .game-desc { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.tokens-display {
  text-align: center; margin-bottom: 20px;
  font-size: 1rem; color: var(--text-muted);
}
.tokens-display strong { color: var(--accent); font-size: 1.3rem; }

/* Wheel */
.wheel-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 24px; }
.wheel-pointer {
  position: absolute; top: -14px; 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);
  z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
#wheelCanvas { border-radius: 50%; box-shadow: 0 0 40px rgba(124,58,237,.5); }
.wheel-result {
  text-align: center; min-height: 28px;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 16px;
}
.wheel-btn-wrap { text-align: center; }
.btn-spin {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-spin:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,.5); }
.btn-spin:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Slot Machine */
.slot-machine {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px; margin: 0 auto 48px;
}
.slot-machine h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.slot-machine .game-desc { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.slot-reels {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 24px;
}
.reel {
  width: 100px; height: 100px;
  background: var(--dark3);
  border: 3px solid var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,.5);
}
.reel-inner {
  display: flex; flex-direction: column; align-items: center;
  transition: transform .05s linear;
}
.reel-symbol { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.slot-result {
  text-align: center; min-height: 28px;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 16px;
}
.slot-btn-wrap { text-align: center; }
.btn-slot {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff; border: none; padding: 14px 48px;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800;
  cursor: pointer; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(239,68,68,.4);
}
.btn-slot:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(239,68,68,.5); }
.btn-slot:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Token Collector */
.token-game {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px; margin: 0 auto;
}
.token-game h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.token-game .game-desc { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
#tokenCanvas {
  display: block; margin: 0 auto 16px;
  border-radius: 12px;
  border: 2px solid rgba(124,58,237,.4);
  cursor: crosshair;
  background: var(--dark3);
}
.token-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-bottom: 16px;
}
.token-stat { text-align: center; }
.token-stat .label { font-size: .8rem; color: var(--text-muted); }
.token-stat .value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.token-btn-wrap { text-align: center; }
.btn-token {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff; border: none; padding: 12px 36px;
  border-radius: 12px; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform .15s;
}
.btn-token:hover { transform: translateY(-2px); }

/* --- Policy Pages --- */
.policy-section { background: var(--dark); }
.policy-content {
  max-width: 820px; margin: 0 auto;
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  padding: 48px;
}
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; color: var(--accent); }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; font-size: .93rem; line-height: 1.7; }
.policy-content ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; font-size: .93rem; line-height: 1.7; }
.policy-content a { color: var(--accent); }
.policy-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 28px; }

/* --- Responsible Gaming Page --- */
.resp-section { background: var(--dark); }
.resp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 40px;
}
.resp-card {
  background: var(--dark2);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  padding: 28px;
}
.resp-card .resp-icon { font-size: 2rem; margin-bottom: 12px; }
.resp-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.resp-card p { color: var(--text-muted); font-size: .88rem; }
.resp-warning {
  background: rgba(239,68,68,.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px 28px; margin-top: 40px;
}
.resp-warning h3 { color: var(--danger); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.resp-warning p { color: var(--text-muted); font-size: .9rem; }
.resp-warning a { color: var(--danger); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav ul { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark2); padding: 16px 0;
    border-bottom: 1px solid rgba(124,58,237,.2);
  }
  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 10px 24px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .slot-reels { gap: 8px; }
  .reel { width: 80px; height: 80px; font-size: 2.4rem; }
  .reel-symbol { height: 80px; font-size: 2.4rem; }
  .game-container, .slot-machine, .token-game { padding: 24px 16px; }
  .policy-content { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .age-gate-btns { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
