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

:root {
  --bg: #12082a;
  --bg-card: #1e1045;
  --bg-card-hover: #261358;
  --purple: #5B21B6;
  --purple-light: #7C3AED;
  --yellow: #FFD700;
  --yellow-dark: #E6B800;
  --yellow-glow: rgba(255, 215, 0, 0.35);
  --text: #f5f3ff;
  --text-muted: #c4b5fd;
  --border: rgba(255, 215, 0, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--yellow); }

/* ===== FREE WARNING BAR ===== */
.free-warning-bar {
  background: linear-gradient(90deg, #059669 0%, #10b981 25%, #34d399 50%, #10b981 75%, #059669 100%);
  background-size: 200% 100%;
  animation: barShine 4s linear infinite;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  border-bottom: 3px solid #fef3c7;
}
.free-warning-bar strong {
  color: #fef08a;
  font-size: 15px;
  text-transform: uppercase;
}
@keyframes barShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(18, 8, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 47px;
  z-index: 200;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link img { width: 42px; height: 42px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--yellow);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(255, 215, 0, 0.1); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn-outline:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 20px var(--yellow-glow);
}
.btn-primary {
  background: var(--yellow);
  color: #1a0f3c;
  border-color: var(--yellow);
  box-shadow: 0 4px 20px var(--yellow-glow);
}
.btn-primary:hover {
  background: #ffe566;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--yellow-glow);
}
.btn-lg { padding: 14px 36px; font-size: 15px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.4) 0%, transparent 70%),
    linear-gradient(180deg, #2d1b69 0%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-copy h1 span { color: var(--yellow); }
.hero-sub {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-mascot {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #ffe566 0%, #ffb800 25%, transparent 50%),
    radial-gradient(circle at 60% 70%, #7c3aed 0%, #5b21b6 40%, #1e1045 100%);
  box-shadow: 0 0 60px var(--yellow-glow), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== FREE NOTICE ===== */
.free-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
  border: 3px solid #10b981;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 40px;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.25);
  animation: noticePulse 3s ease-in-out infinite;
}
@keyframes noticePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 60px rgba(16, 185, 129, 0.45); }
}
.free-notice-icon {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1;
}
.free-notice h3 {
  color: #6ee7b7;
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.free-notice p {
  color: #d1fae5;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: rgba(30, 16, 69, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--yellow);
}
.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

/* ===== ABOUT SPLIT ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #ffd700 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  box-shadow: var(--shadow);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 33, 182, 0.4);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(91, 33, 182, 0.5);
  border-color: var(--yellow);
}
.game-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}
.game-card-body {
  padding: 14px 16px 18px;
}
.game-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.game-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Game placeholder gradients */
.gt-1 { background: linear-gradient(135deg, #f472b6, #db2777); }
.gt-2 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gt-3 { background: linear-gradient(135deg, #34d399, #059669); }
.gt-4 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.gt-5 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.gt-6 { background: linear-gradient(135deg, #fb7185, #e11d48); }
.gt-7 { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.gt-8 { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.gt-9 { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.gt-10 { background: linear-gradient(135deg, #f9a8d4, #c026d3); }

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%, rgba(124, 58, 237, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #1e1045 0%, #12082a 100%);
  border-top: 1px solid var(--border);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-characters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 64px;
}
.cta-copy h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
}
.cta-copy p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== PAGE CONTENT ===== */
.page-hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #2d1b69 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--yellow);
}
.page-hero p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 640px;
}
.content-block {
  padding: 60px 0 80px;
}
.content-block h2 {
  font-size: 1.3rem;
  color: var(--yellow);
  margin: 32px 0 12px;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p,
.content-block li {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}
.content-block ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0418;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 40px;
}
.footer-logo img { width: 56px; height: 56px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--yellow); }

.help-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.help-logos a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.help-logos a:hover { opacity: 1; }
.help-logos img {
  height: 40px;
  width: auto;
  max-width: 140px;
}
.help-logos p {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.footer-bottom p { margin-bottom: 8px; }

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

/* ===== COOKIE BANNER ===== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--yellow);
  padding: 20px 24px;
  z-index: 400;
  display: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}
#cookieBanner.show { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
  min-width: 240px;
}
.cookie-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn-ok {
  background: var(--yellow);
  color: #1a0f3c;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
}
.cookie-btn-info {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  padding: 10px 16px;
}
.cookie-btn-info:hover { color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(18, 8, 42, 0.98);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .header-actions .btn-outline { display: none; }
  .site-header { position: relative; top: 0; }
  .free-warning-bar { position: relative; }
  .hero-grid,
  .about-split,
  .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-mascot { max-width: 260px; font-size: 80px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .free-notice { flex-direction: column; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
