@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7b2ff7;
  --primary-dark: #5a1db8;
  --accent: #c084fc;
  --bg-dark: #0d0a1a;
  --bg-card: #1a1330;
  --bg-section: #120e22;
  --text-main: #e8e0f5;
  --text-muted: #a99bc7;
  --gold: #f5c542;
  --border-glow: rgba(123, 47, 247, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--gold);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glow);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.logo svg {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #1a0a3e 0%, #0d0a1a 50%, #1b0e3a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,47,247,0.25) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(123, 47, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(123, 47, 247, 0.55);
  color: #fff;
}

/* ---------- NOTICES ---------- */
.notices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: -3rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

.notice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.notice-card .icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.notice-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.notice-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- GAME SECTION ---------- */
.game-section {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.game-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.game-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  background: #000;
}

.game-wrapper iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  background: var(--bg-section);
  padding: 4rem 1.5rem;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-inner h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-inner p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-glow);
}

.stat-box .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- FEATURES ---------- */
.features {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-glow);
  transition: transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- PAGE CONTENT (terms/privacy/disclaimer) ---------- */
.page-content {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.page-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.8rem;
  color: var(--gold);
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- PLAY PAGE ---------- */
.play-hero {
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

.play-hero h1 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.play-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.play-game-wrap {
  max-width: 1400px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.play-notes {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.play-notes h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.play-notes p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-glow);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.responsible-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.responsible-links a {
  color: var(--accent);
  font-size: 0.95rem;
}

/* ---------- AGE POPUP ---------- */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-popup {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
}

.age-popup h2 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.age-popup p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.age-buttons button {
  padding: 0.75rem 2.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-yes {
  background: var(--primary);
  color: #fff;
}

.btn-yes:hover {
  background: var(--primary-dark);
}

.btn-no {
  background: #3a2a55;
  color: var(--text-muted);
}

.btn-no:hover {
  background: #4a3a65;
}

.age-blocked {
  color: #f87171;
  font-weight: 600;
  margin-top: 1rem;
  display: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 10, 26, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .notices {
    grid-template-columns: 1fr;
    margin-top: -1rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .game-wrapper iframe {
    height: 400px;
  }

  .hero {
    min-height: 380px;
    padding: 3rem 1rem;
  }
}
