/*
 * PROJECT: squaredanceworld.com
 * DOMAIN: squaredanceworld.com
 * GAME: Super Ninja Adventure
 *
 * DESIGN:
 * - CSS: BEM
 * - Palette: Пастельный техно (#ddd6fe, #818cf8, #c7d2fe, #6366f1)
 * - Effect: Glassmorphism
 * - Fonts: Urbanist (heading) + Satoshi via system fallback
 * - Buttons: Gradient + Neon Border
 *
 * Created: 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800;900&display=swap');

:root {
  --pastel-lavender: #ddd6fe;
  --neon-indigo: #818cf8;
  --soft-periwinkle: #c7d2fe;
  --deep-violet: #6366f1;
  --dark-bg: #1e1b4b;
  --darker-bg: #13112e;
  --card-bg: rgba(221, 214, 254, 0.08);
  --card-border: rgba(129, 140, 248, 0.25);
  --text-primary: #f0edff;
  --text-secondary: #c4b8f5;
  --text-muted: #8b80c8;
  --ninja-shadow: #4338ca;
  --accent-pink: #e879f9;
  --accent-cyan: #67e8f9;
  --font-heading: 'Urbanist', 'Segoe UI', sans-serif;
  --font-body: 'Urbanist', 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-indigo: 0 0 20px rgba(129, 140, 248, 0.4), 0 0 40px rgba(99, 102, 241, 0.2);
  --glow-pink: 0 0 20px rgba(232, 121, 249, 0.4);
  --header-height: 72px;
}

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; max-width: 100%; }

html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden !important; }

body {
  font-family: var(--font-body);
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 121, 249, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(129, 140, 248, 0.05) 0%, transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ─── MANDATORY RULES ──────────────────────────────────── */
.article-card__overlay { position: absolute; inset: 0; z-index: 1; }
.article-card, .offer-card, .card { position: relative; }
.stars { color: #ffc107; }

/* ─── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-secondary); line-height: 1.8; }

/* ─── LAYOUT ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

/* ─── COOKIE CONSENT ───────────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 400px;
  background: rgba(19, 17, 46, 0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.cookie-consent__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cookie-consent__text a {
  color: var(--neon-indigo);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-consent__btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.cookie-consent__btn--accept {
  background: linear-gradient(135deg, var(--deep-violet), var(--neon-indigo));
  color: #fff;
}

.cookie-consent__btn--accept:hover {
  box-shadow: var(--glow-indigo);
}

.cookie-consent__btn--decline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}

.cookie-consent__btn--decline:hover {
  border-color: var(--neon-indigo);
  color: var(--text-secondary);
}

/* ─── HEADER ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 17, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--pastel-lavender), var(--neon-indigo), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--pastel-lavender);
  background: rgba(129, 140, 248, 0.12);
}

.header__cta {
  flex-shrink: 0;
}

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

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pastel-lavender);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-play,
.btn--primary {
  background: linear-gradient(135deg, var(--deep-violet), var(--neon-indigo), var(--accent-pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), var(--glow-indigo);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-play:hover,
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6), var(--glow-pink);
}

.btn--secondary {
  background: transparent;
  color: var(--pastel-lavender);
  border: 2px solid var(--neon-indigo);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.2);
}

.btn--secondary:hover {
  background: rgba(129, 140, 248, 0.1);
  box-shadow: var(--glow-indigo);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neon-indigo);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.btn-read:hover {
  background: rgba(129, 140, 248, 0.15);
  border-color: var(--neon-indigo);
  color: var(--pastel-lavender);
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232, 121, 249, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-indigo);
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-pink);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--pastel-lavender), var(--neon-indigo), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.hero__stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--pastel-lavender);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__game-preview {
  position: relative;
  background: rgba(221, 214, 254, 0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-indigo), 0 40px 80px rgba(0,0,0,0.5);
}

.hero__game-preview img {
  width: 100%;
  max-width: 480px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  filter: brightness(0.9);
}

.hero__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(19, 17, 46, 0.8) 0%, rgba(19, 17, 46, 0.2) 60%, transparent 100%);
  border-radius: var(--radius-xl);
  z-index: 2;
}

.hero__play-btn {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--deep-violet), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--glow-indigo);
  transition: var(--transition);
  animation: float-play 3s ease-in-out infinite;
  text-decoration: none;
  color: white;
}

.hero__play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-pink);
}

@keyframes float-play {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__floating-tag {
  position: absolute;
  background: rgba(19, 17, 46, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero__floating-tag--1 {
  top: -1rem;
  right: -1rem;
  color: var(--accent-cyan);
  border-color: rgba(103, 232, 249, 0.3);
}

.hero__floating-tag--2 {
  bottom: -1rem;
  left: -1rem;
  color: var(--accent-pink);
  border-color: rgba(232, 121, 249, 0.3);
}

/* ─── SECTION HEADERS ──────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  margin-bottom: 0.75rem;
}

.section-header__title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--pastel-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ─── GLASS CARDS ──────────────────────────────────────── */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: var(--glow-indigo);
  transform: translateY(-4px);
}

/* ─── FEATURES ─────────────────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-indigo), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 0.75rem;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── GAME SECTION ─────────────────────────────────────── */
.game-section {
  background: rgba(99, 102, 241, 0.05);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.game-section__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.game-section__embed {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--glow-indigo);
  position: relative;
}

.game-section__iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

.game-section__sidebar {}

.game-info-card {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.game-info-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pastel-lavender);
  margin-bottom: 0.5rem;
}

.game-info-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.game-info-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-indigo);
}

.game-info-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.game-info-card__play {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.controls-card {
  padding: 1.5rem;
}

.controls-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.controls-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  background: rgba(221, 214, 254, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.controls-list__action {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── HOW TO PLAY STEPS ────────────────────────────────── */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}

.step-card {
  padding: 2rem 1.75rem;
  text-align: center;
  counter-increment: steps;
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  bottom: -1rem;
  right: 0.5rem;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(129, 140, 248, 0.06);
  line-height: 1;
  pointer-events: none;
}

.step-card__icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.step-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 0.5rem;
}

.step-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── ARTICLE CARDS ────────────────────────────────────── */
.articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.article-card__img-wrap {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(232, 121, 249, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__img {
  transform: scale(1.05);
}

.article-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  margin-bottom: 0.75rem;
}

.article-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-card:hover .article-card__title {
  color: var(--pastel-lavender);
}

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-card__read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-indigo);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.article-card__read-more:hover {
  color: var(--pastel-lavender);
}

.article-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.faq__question:hover {
  border-color: var(--neon-indigo);
  color: var(--pastel-lavender);
}

.faq__question.is-open {
  border-color: var(--neon-indigo);
  background: rgba(129, 140, 248, 0.1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.faq__icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--neon-indigo);
}

.faq__question.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: rgba(129, 140, 248, 0.05);
  border: 1px solid var(--neon-indigo);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.faq__answer.is-open {
  max-height: 400px;
}

.faq__answer-inner {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─── CTA SECTION ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(232, 121, 249, 0.1) 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--pastel-lavender), var(--neon-indigo), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.cta-section__desc {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── FOOTER ───────────────────────────────────────────── */
.footer {
  background: rgba(13, 11, 30, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pastel-lavender);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--pastel-lavender);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__bottom-link:hover {
  color: var(--pastel-lavender);
}

/* ─── PAGE HERO (Inner Pages) ──────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  margin-bottom: 1rem;
}

.page-hero__title {
  background: linear-gradient(135deg, var(--text-primary), var(--pastel-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-hero__desc {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  justify-content: center;
}

.breadcrumb__link {
  color: var(--neon-indigo);
  transition: var(--transition);
}

.breadcrumb__link:hover {
  color: var(--pastel-lavender);
}

.breadcrumb__sep { color: var(--text-muted); }

/* ─── ABOUT PAGE ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(232, 121, 249, 0.15));
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--glow-indigo);
}

.about-text__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  display: block;
  margin-bottom: 1rem;
}

.about-text h2 {
  background: linear-gradient(135deg, var(--text-primary), var(--pastel-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-value {
  padding: 1.25rem;
}

.about-value__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-value__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 0.25rem;
}

.about-value__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  padding: 2rem;
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--deep-violet), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--neon-indigo);
  font-weight: 600;
}

/* ─── HOW TO PLAY PAGE ─────────────────────────────────── */
.htp-section { margin-bottom: 3rem; }

.htp-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pastel-lavender);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.htp-section__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, var(--deep-violet), var(--accent-pink));
  border-radius: 2px;
}

.htp-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.htp-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.htp-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.htp-step__number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--deep-violet), var(--neon-indigo));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.htp-step__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 0.4rem;
}

.htp-step__content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.htp-tips {
  position: sticky;
  top: 6rem;
}

.htp-tips__card {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.htp-tips__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.htp-tips__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.htp-tips__item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.htp-tips__item::before {
  content: '→';
  color: var(--neon-indigo);
  flex-shrink: 0;
  font-weight: 700;
}

.controls-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.controls-full-card {
  padding: 1.75rem;
}

.controls-full-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
}

.controls-table tr { border-bottom: 1px solid rgba(129, 140, 248, 0.1); }
.controls-table tr:last-child { border-bottom: none; }

.controls-table td {
  padding: 0.6rem 0;
  font-size: 0.875rem;
  vertical-align: middle;
}

.controls-table td:first-child {
  padding-right: 1rem;
}

.controls-table td:last-child {
  color: var(--text-muted);
}

/* ─── BLOG PAGE ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.blog-main {}

.blog-sidebar {}

.sidebar-widget {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pastel-lavender);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  display: inline-block;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-indigo);
  transition: var(--transition);
}

.sidebar-tag:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: var(--neon-indigo);
  color: var(--pastel-lavender);
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.25rem;
}

.recent-post__title:hover {
  color: var(--pastel-lavender);
}

.recent-post__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── BLOG CARD (blog.html page) ──────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.blog-card__img-wrap {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(232, 121, 249, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.blog-card__content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── ARTICLE PAGE ─────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.article-content {
  padding: 2.5rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}

.article-header__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  display: block;
  margin-bottom: 0.75rem;
}

.article-header__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--text-primary), var(--pastel-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-header__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--pastel-lavender);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-body li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-body strong {
  color: var(--pastel-lavender);
  font-weight: 700;
}

.article-highlight {
  background: rgba(129, 140, 248, 0.08);
  border-left: 4px solid var(--neon-indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── CONTACT PAGE ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {}

.contact-info h2 {
  background: linear-gradient(135deg, var(--text-primary), var(--pastel-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
}

.contact-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-indigo);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(221, 214, 254, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--neon-indigo);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-success {
  display: none;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--neon-indigo);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  color: var(--pastel-lavender);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* ─── LEGAL PAGES ──────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--pastel-lavender);
  margin: 2.5rem 0 1rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.75rem 0 0.75rem;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.legal-content ul li {
  list-style: disc;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--pastel-lavender);
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ─── MOBILE NAV ───────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 17, 46, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav__link {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-nav__link:hover {
  color: var(--pastel-lavender);
  background: rgba(129, 140, 248, 0.1);
}

/* ─── UTILITIES ────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .hero__game-preview img { max-width: 100%; }
  .game-section__inner { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .htp-content-grid { grid-template-columns: 1fr; }
  .htp-tips { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .articles__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .controls-full-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn-play,
  .hero__actions .btn { text-align: center; justify-content: center; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
  .game-section__iframe { height: 360px; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .cookie-consent { left: 1rem; right: 1rem; max-width: none; }
}