@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --royal-purple: #2D1B69;
  --deep-violet: #1A0F3C;
  --golden: #F0C040;
  --golden-light: #FFE08A;
  --soft-white: #F5F0FF;
  --cream: #FFF8E7;
  --text-dark: #1C1035;
  --text-light: #E8E0F5;
  --accent-plum: #6B3FA0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--deep-violet);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 15, 60, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--golden);
  letter-spacing: 2px;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.desktop-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--golden);
  transition: width 0.3s;
}

.desktop-nav a:hover { color: var(--golden); }
.desktop-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--golden);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(26, 15, 60, 0.98);
  padding: 1rem 0;
  list-style: none;
  border-bottom: 2px solid var(--golden);
}

.mobile-nav.open { display: block; }

.mobile-nav li { text-align: center; padding: 0.75rem; }

.mobile-nav a {
  font-family: 'Cinzel', serif;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--golden); }

/* ====== HERO ====== */
.hero-section {
  margin-top: 70px;
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(170deg, var(--deep-violet) 0%, var(--royal-purple) 50%, var(--accent-plum) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(240, 192, 64, 0.05) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

.hero-section h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.2rem;
  color: var(--golden);
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 0 30px rgba(240, 192, 64, 0.3);
}

.hero-section p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  position: relative;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
}

.badge {
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid var(--golden);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--golden);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ====== GAME EMBED ====== */
.game-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.game-frame-container {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--golden);
  box-shadow: 0 0 40px rgba(240, 192, 64, 0.15);
}

.game-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ====== CARDS SECTION ====== */
.features-area {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-area h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--golden);
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.8), rgba(107, 63, 160, 0.4));
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(240, 192, 64, 0.1);
}

.feature-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--golden-light);
  margin-bottom: 0.7rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0.85;
}

/* ====== INFO STRIP ====== */
.info-strip {
  background: var(--royal-purple);
  padding: 3rem 2rem;
  text-align: center;
}

.info-strip h2 {
  font-family: 'Cinzel', serif;
  color: var(--golden);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.info-strip p {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.9;
}

/* ====== NOTICE BOX ====== */
.notice-box {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(240, 192, 64, 0.05);
  border-left: 4px solid var(--golden);
  border-radius: 0 12px 12px 0;
}

.notice-box h3 {
  font-family: 'Cinzel', serif;
  color: var(--golden);
  margin-bottom: 0.8rem;
}

.notice-box ul {
  list-style: none;
  padding: 0;
}

.notice-box ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.notice-box ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--golden);
}

/* ====== PAGE CONTENT (TERMS, ETC) ====== */
.page-content {
  margin-top: 70px;
  padding: 4rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-content h1 {
  font-family: 'Cinzel', serif;
  color: var(--golden);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  padding-top: 2rem;
}

.page-content h2 {
  font-family: 'Cinzel', serif;
  color: var(--golden-light);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
  opacity: 0.9;
}

.page-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.page-content ul li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* ====== PLAY PAGE ====== */
.play-wrapper {
  margin-top: 70px;
  padding: 3rem 2rem;
  text-align: center;
}

.play-wrapper h1 {
  font-family: 'Cinzel', serif;
  color: var(--golden);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.play-wrapper p {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.play-note {
  background: rgba(107, 63, 160, 0.3);
  border: 1px solid rgba(240, 192, 64, 0.2);
  padding: 1.2rem 2rem;
  border-radius: 10px;
  max-width: 700px;
  margin: 2rem auto;
  font-size: 0.9rem;
}

/* ====== FOOTER ====== */
.site-footer {
  background: rgba(26, 15, 60, 0.98);
  border-top: 1px solid rgba(240, 192, 64, 0.15);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--golden);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--golden); }

.responsible-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 192, 64, 0.1);
}

.responsible-section p {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.responsible-section a {
  color: var(--golden);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

.responsible-section a:hover { text-decoration: underline; }

/* ====== AGE OVERLAY ====== */
.age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-overlay.hidden { display: none; }

.age-box {
  background: var(--royal-purple);
  border: 2px solid var(--golden);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 460px;
  width: 90%;
}

.age-box h2 {
  font-family: 'Cinzel', serif;
  color: var(--golden);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.age-box p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-yes, .btn-no {
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  letter-spacing: 1px;
}

.btn-yes {
  background: var(--golden);
  color: var(--deep-violet);
  font-weight: 700;
}

.btn-no {
  background: transparent;
  border: 2px solid var(--golden);
  color: var(--golden);
}

.btn-yes:hover, .btn-no:hover { transform: scale(1.05); }

.blocked-message {
  display: none;
  color: #FF6B6B;
  margin-top: 1rem;
  font-weight: 700;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .hero-section h1 { font-size: 2rem; }
  .hero-section { padding: 3rem 1.5rem; }

  .feature-grid { grid-template-columns: 1fr; }

  .page-content h1 { font-size: 1.8rem; }

  .age-box { padding: 2rem 1.5rem; }
  .age-box h2 { font-size: 1.4rem; }

  .footer-links { flex-direction: column; gap: 0.8rem; }
}
