@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Quicksand:wght@300;400;600;700&display=swap');

:root {
  --primary: #1a0a2e;
  --secondary: #6b21a8;
  --accent: #d946ef;
  --gold: #fbbf24;
  --text: #f0e6ff;
  --dark: #0d0518;
  --card-bg: rgba(107, 33, 168, 0.15);
  --border: rgba(217, 70, 239, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, var(--primary) 80%, transparent);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo svg { width: 40px; height: 40px; }

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(ellipse at 50% 30%, rgba(107, 33, 168, 0.4) 0%, transparent 70%),
              var(--dark);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-glow {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(217, 70, 239, 0.6);
  color: #fff;
}

/* ---- NOTICES ---- */
.notices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: -3rem auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.notice-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.notice-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.notice-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem; }
.notice-card p { font-size: 0.9rem; opacity: 0.85; }

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.section p { margin-bottom: 1rem; font-size: 1.05rem; }

/* ---- GAME EMBED ---- */
.game-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 50px rgba(107, 33, 168, 0.3);
}

.game-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ---- WIDGETS ---- */
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.widget h3 {
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.widget p, .widget ul { font-size: 0.95rem; opacity: 0.9; }
.widget ul { padding-left: 1.2rem; }
.widget li { margin-bottom: 0.4rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-links { margin-bottom: 1rem; }
.footer-links a {
  color: var(--text);
  margin: 0 0.8rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

.site-footer p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- AGE GATE ---- */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 5, 24, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-box {
  background: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 0 60px rgba(217, 70, 239, 0.3);
}

.age-box h2 { color: var(--gold); margin-bottom: 1rem; font-size: 1.6rem; }
.age-box p { margin-bottom: 2rem; opacity: 0.9; }

.age-buttons { display: flex; gap: 1rem; justify-content: center; }
.age-buttons button {
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.age-buttons button:hover { transform: scale(1.05); }

.btn-yes {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
}

.btn-no {
  background: transparent;
  border: 2px solid var(--accent) !important;
  color: var(--accent);
}

.age-overlay.hidden { display: none; }

/* ---- LEGAL PAGES ---- */
.legal-page {
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 { font-size: 2.4rem; color: var(--accent); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.5rem; color: var(--gold); margin: 2rem 0 1rem; }
.legal-page p { margin-bottom: 1rem; font-size: 1rem; opacity: 0.9; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; }

/* ---- PLAY PAGE ---- */
.play-hero {
  padding: 7rem 2rem 3rem;
  text-align: center;
}

.play-hero h1 {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.play-hero p { max-width: 700px; margin: 0 auto 2rem; }

.browser-note {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 700px;
  margin: 2rem auto;
  font-size: 0.95rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.open { right: 0; }

  .hero h1 { font-size: 2.2rem; }
  .notices { grid-template-columns: 1fr; }
  .game-wrapper iframe { height: 350px; }
}
