/* ========================================
   Storynest Games - Children-Friendly Hub
   Modern, Clean, Children-Friendly CSS
   ======================================== */

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

/* ── CSS Variables ── */
:root {
  --peach:        #FFB5A7;
  --peach-soft:   #FFF4F0;
  --lavender:     #C8B6FF;
  --lavender-soft:#F6F2FF;
  --mint:         #95E9C4;
  --mint-soft:    #EDFAF4;
  --yellow:       #FFE07A;
  --yellow-soft:  #FFFBEA;
  --coral:        #FF7F7F;
  --purple:       #7C5CBF;
  --purple-dark:  #4E378B;
  --dark:         #2D1B69;
  --text-main:    #2E224F;
  --text-sub:     #6D628B;
  --white:        #FFFFFF;
  --bg-gradient:  linear-gradient(135deg, #FFF9F6 0%, #F8F3FF 45%, #F0FAF5 100%);
  --card-bg:      rgba(255, 255, 255, 0.9);
  --shadow-sm:    0 4px 16px rgba(124, 92, 191, 0.08);
  --shadow:       0 8px 30px rgba(124, 92, 191, 0.10);
  --shadow-lg:    0 20px 50px rgba(124, 92, 191, 0.15);
  --radius-sm:    14px;
  --radius:       22px;
  --radius-lg:    32px;
  --transition:   all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Ambient Background Blobs ── */
.bg-blobs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35; animation: floatBlob 14s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--peach); top: -100px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--lavender); top: 35%; right: -100px; animation-delay: -5s; }
.blob-3 { width: 380px; height: 380px; background: var(--mint); bottom: -60px; left: 25%; animation-delay: -9s; }
.blob-4 { width: 300px; height: 300px; background: var(--yellow); top: 65%; left: 8%; animation-delay: -3s; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(25px, -30px) scale(1.04); }
}

.site-wrapper { position: relative; z-index: 1; }

/* ────────────────────────────────
   NAVBAR (Clean & Refined)
──────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(200, 182, 255, 0.25);
  padding: 0 2.5rem;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.05);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple) 0%, #A87FFF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 12px rgba(124, 92, 191, 0.25);
}
.nav-logo-name {
  font-family: 'Baloo 2', cursive;
  font-size: 1.35rem; font-weight: 800;
  color: var(--purple-dark); line-height: 1.1; display: block;
}
.nav-logo-sub {
  font-size: 0.72rem; font-weight: 700; color: var(--text-sub);
  letter-spacing: 0.04em; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 0.4rem; list-style: none;
}
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  color: var(--text-sub); padding: 0.45rem 1.1rem;
  border-radius: 50px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--lavender-soft); color: var(--purple-dark);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.user-greeting { font-size: 0.88rem; color: var(--text-sub); margin-right: 0.5rem; }

/* ── Buttons ── */
.btn-ghost {
  background: transparent; border: 1.5px solid var(--lavender);
  color: var(--purple); font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.5rem 1.25rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost:hover { background: var(--lavender-soft); transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #9B72F7 100%);
  color: white; border: none;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem;
  padding: 0.55rem 1.45rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 14px rgba(124, 92, 191, 0.3);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 191, 0.4);
}
.btn-big { font-size: 1.05rem; padding: 0.85rem 2.2rem; }
.btn-sm { font-size: 0.82rem; padding: 0.4rem 1rem; }
.btn-block { width: 100%; }

.btn-play {
  background: white; border: 2px solid rgba(124, 92, 191, 0.2);
  color: var(--text-main); font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 1.02rem;
  padding: 0.8rem 1.8rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.play-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #166534;
}

/* ────────────────────────────────
   HERO SECTION
──────────────────────────────── */
.hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 4rem;
  min-height: calc(100vh - 74px);
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--lavender-soft); border: 1px solid var(--lavender);
  color: var(--purple-dark); font-size: 0.78rem; font-weight: 800;
  padding: 0.4rem 1.1rem; border-radius: 50px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  font-weight: 800; line-height: 1.12;
  color: var(--dark); margin-bottom: 1.2rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF9A3D 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.12rem; line-height: 1.7;
  color: var(--text-sub); max-width: 520px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  border-top: 1px solid rgba(200, 182, 255, 0.3);
  padding-top: 1.8rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Baloo 2', cursive; font-size: 1.9rem; font-weight: 800;
  color: var(--purple); line-height: 1;
}
.stat-label { font-size: 0.82rem; font-weight: 700; color: var(--text-sub); margin-top: 4px; }

/* Hero Visual */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  width: 100%; max-width: 480px;
  border: 2px solid rgba(200, 182, 255, 0.3);
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-card-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hero-card-footer {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-card-info h3 { font-family: 'Baloo 2', cursive; font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.hero-card-info p  { font-size: 0.82rem; color: var(--text-sub); font-weight: 600; }
.hero-card-badge {
  background: var(--mint); color: #166534; font-weight: 800; font-size: 0.75rem;
  padding: 0.35rem 0.85rem; border-radius: 50px;
}

.floating-chip {
  position: absolute; background: white;
  border-radius: 50px; padding: 0.6rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 0.85rem; font-weight: 800; color: var(--dark);
  border: 1.5px solid rgba(200, 182, 255, 0.3);
}
.chip-1 { top: 12%; left: -25px; }
.chip-2 { bottom: 20%; right: -25px; }
.chip-3 { top: 52%; left: -35px; }

/* ────────────────────────────────
   SECTIONS & TITLES
──────────────────────────────── */
section { padding: 5rem 2.5rem; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 800;
  color: var(--purple); background: var(--lavender-soft);
  border: 1px solid var(--lavender); padding: 0.35rem 1rem;
  border-radius: 50px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.2;
  color: var(--dark); margin-bottom: 0.8rem;
}
.section-title .accent {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF9A3D 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { font-size: 1.05rem; color: var(--text-sub); line-height: 1.65; max-width: 600px; }
.section-header-centered { text-align: center; }
.section-header-centered .section-sub { margin: 0 auto; }

/* ────────────────────────────────
   FEATURED BIG CARD
──────────────────────────────── */
.featured-big-card {
  background: linear-gradient(135deg, #5A3E9D 0%, #3B2475 100%);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  box-shadow: var(--shadow-lg); min-height: 380px;
}
.featured-content {
  padding: 3.5rem; display: flex; flex-direction: column; justify-content: center;
}
.featured-tag {
  background: rgba(255, 255, 255, 0.18); color: white;
  font-size: 0.72rem; font-weight: 800; padding: 0.35rem 0.9rem;
  border-radius: 50px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1rem; width: fit-content;
}
.featured-title {
  font-family: 'Baloo 2', cursive; font-size: 2.3rem; font-weight: 800;
  color: white; line-height: 1.15; margin-bottom: 0.9rem;
}
.featured-desc { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; line-height: 1.65; margin-bottom: 2rem; }
.featured-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: white; color: var(--purple-dark);
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 0.95rem; padding: 0.75rem 1.8rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white {
  background: transparent; color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.95rem; padding: 0.75rem 1.8rem; border-radius: 50px;
  text-decoration: none; transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.featured-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ────────────────────────────────
   GAMES GRID & CARDS
──────────────────────────────── */
.cat-filter {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center; margin-bottom: 3rem;
}
.cat-btn {
  background: white; border: 1.5px solid rgba(200, 182, 255, 0.4);
  color: var(--text-sub); font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.5rem 1.3rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 2px 8px rgba(124, 92, 191, 0.05);
}
.cat-btn:hover, .cat-btn.active {
  background: linear-gradient(135deg, var(--purple) 0%, #9B72F7 100%);
  color: white; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 92, 191, 0.25);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.game-card {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(200, 182, 255, 0.25);
  transition: var(--transition); display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(200, 182, 255, 0.6);
}
.game-card-img-wrap {
  position: relative; height: 190px; overflow: hidden; cursor: pointer;
}
.game-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-img-wrap img { transform: scale(1.05); }

.game-card-overlay {
  position: absolute; inset: 0;
  background: rgba(45, 27, 105, 0.4);
  opacity: 0; transition: opacity 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.overlay-play-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: white; color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.game-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 0.25rem 0.75rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 800; color: white;
  text-transform: uppercase;
}
.badge-new  { background: #FF6B9D; }
.badge-hot  { background: #FF4757; }
.badge-top  { background: #FFA502; }
.badge-free { background: #2ED573; }

.game-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.game-cat-tag {
  font-size: 0.75rem; font-weight: 800; color: var(--purple);
  background: var(--lavender-soft); padding: 0.2rem 0.65rem; border-radius: 50px;
}
.game-rating { font-weight: 800; font-size: 0.82rem; color: #FFA502; }
.game-card-title {
  font-family: 'Baloo 2', cursive; font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.4rem; line-height: 1.3;
}
.game-card-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.5; margin-bottom: 1.2rem; flex: 1; }
.game-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; border-top: 1px solid rgba(200, 182, 255, 0.2);
}
.game-players { font-size: 0.78rem; font-weight: 700; color: var(--text-sub); }
.btn-card-play {
  background: linear-gradient(135deg, var(--purple) 0%, #9B72F7 100%);
  color: white; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 0.82rem; padding: 0.45rem 1.1rem;
  border-radius: 50px; text-decoration: none; transition: var(--transition);
}
.btn-card-play:hover { transform: translateY(-2px); }

/* ────────────────────────────────
   YOUTUBE PLAYABLES SECTION
──────────────────────────────── */
.yt-section {
  background: linear-gradient(135deg, #FFF6F0 0%, #F5FFF9 100%);
  border-radius: var(--radius-lg); margin: 0 2.5rem;
  border: 1px solid rgba(255, 180, 150, 0.25);
}
.yt-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem;
}
.yt-logo-wrap { display: flex; align-items: center; gap: 12px; }
.yt-logo {
  background: #FF0000; border-radius: 12px; color: white;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}
.yt-logo-text { font-family: 'Baloo 2', cursive; font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.yt-logo-sub  { font-size: 0.75rem; font-weight: 700; color: var(--text-sub); display: block; }

.yt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.yt-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: var(--transition); cursor: pointer;
  border: 1.5px solid rgba(255, 150, 100, 0.15);
  text-decoration: none; color: inherit; display: block;
}
.yt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.yt-thumb { position: relative; height: 160px; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.yt-card:hover .yt-play-overlay { opacity: 1; }
.yt-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: #FF0000; color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}
.yt-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.8); color: white;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 6px;
}
.yt-category-badge {
  position: absolute; top: 8px; left: 8px;
  background: #FF0000; color: white;
  font-size: 0.65rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 50px;
  text-transform: uppercase;
}
.yt-body { padding: 1.1rem; }
.yt-title { font-family: 'Baloo 2', cursive; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; }
.yt-meta { display: flex; align-items: center; justify-content: space-between; }
.yt-views { font-size: 0.78rem; font-weight: 600; color: var(--text-sub); }
.yt-age { font-size: 0.72rem; font-weight: 800; background: var(--mint-soft); color: #1A9E6B; padding: 0.2rem 0.6rem; border-radius: 50px; }

/* ────────────────────────────────
   FEATURES & STEPS
──────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.feature-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 2rem; border: 1.5px solid rgba(200, 182, 255, 0.25);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-title { font-family: 'Baloo 2', cursive; font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.step-card { text-align: center; padding: 1rem 0.5rem; }
.step-number {
  width: 50px; height: 50px; border-radius: 50%;
  background: white; border: 2.5px solid var(--lavender);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 800;
  color: var(--purple); margin: 0 auto 1.2rem;
  box-shadow: 0 4px 12px rgba(124, 92, 191, 0.15);
}

.cat-btn.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 92, 191, 0.35);
}

.age-filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  background: white;
  border: 1.5px solid rgba(200, 182, 255, 0.4);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-filter-btn:hover {
  background: #FFF0F5;
  border-color: #FDA4AF;
  color: #E11D48;
  transform: translateY(-1px);
}

.age-filter-btn.active {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  color: white;
  border-color: #E11D48;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.game-age-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
  border-radius: 50px;
}

.step-title { font-family: 'Baloo 2', cursive; font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; }
.step-desc  { font-size: 0.88rem; color: var(--text-sub); line-height: 1.55; }

/* ────────────────────────────────
   CTA BANNER & FOOTER
──────────────────────────────── */
.cta-section { padding: 4rem 2.5rem; }
.cta-banner {
  max-width: 1240px; margin: 0 auto;
  background: linear-gradient(135deg, #FFB5A7 0%, #FFE07A 50%, #95E9C4 100%);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  text-align: center; box-shadow: var(--shadow);
}
.cta-title {
  font-family: 'Baloo 2', cursive; font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800; color: var(--dark); margin-bottom: 0.8rem;
}
.cta-sub { font-size: 1.08rem; color: var(--text-main); margin-bottom: 2.2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-dark {
  background: var(--dark); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 0.95rem; padding: 0.85rem 2rem; border-radius: 50px;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-dark:hover { transform: translateY(-2px); }

.footer {
  background: var(--dark); color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo-name { color: white; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-top: 0.85rem; }
.footer-col-title {
  font-family: 'Baloo 2', cursive; font-size: 1.05rem; font-weight: 700;
  color: white; margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.65); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; transition: color 0.2s;
}
.footer-links a:hover { color: var(--lavender); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.85rem;
}
.footer-badges { display: flex; gap: 0.75rem; }
.badge-safe {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 50px;
}

/* ────────────────────────────────
   AUTH PAGES (Login & Register)
──────────────────────────────── */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth-container {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; position: relative; z-index: 1;
}
.auth-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.8rem 2.5rem; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); border: 1.5px solid rgba(200, 182, 255, 0.3);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-title { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1.15; }
.auth-subtitle { font-size: 0.9rem; color: var(--text-sub); margin-top: 0.4rem; }

.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 700;
  color: var(--text-main); margin-bottom: 0.45rem;
}
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(200, 182, 255, 0.4);
  font-family: 'Nunito', sans-serif; font-size: 0.95rem;
  background: white; color: var(--text-main);
  transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}
.auth-footer { text-align: center; margin-top: 1.8rem; font-size: 0.9rem; color: var(--text-sub); }
.auth-footer a { color: var(--purple); font-weight: 800; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 0.85rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700; margin-bottom: 1.5rem;
}
.alert-error   { background: #FFEAEA; color: #D63031; border: 1px solid #FF7675; }
.alert-success { background: #EDFAF4; color: #166534; border: 1px solid #86EFAC; }

/* ────────────────────────────────
   DASHBOARD & CRUD PAGES
──────────────────────────────── */
.dashboard-body { min-height: 100vh; background: #F8F5FF; }
.dashboard-container { padding: 3rem 2.5rem; }
.dashboard-inner { max-width: 1240px; margin: 0 auto; }
.dashboard-inner.form-inner { max-width: 780px; }

.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.dash-title { font-family: 'Baloo 2', cursive; font-size: 2.2rem; font-weight: 800; color: var(--dark); }
.dash-subtitle { font-size: 0.95rem; color: var(--text-sub); }

.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 2rem;
}
.dash-stat-card {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(200, 182, 255, 0.25);
}
.dash-stat-label { font-size: 0.85rem; font-weight: 700; color: var(--text-sub); }
.dash-stat-val { font-family: 'Baloo 2', cursive; font-size: 2.2rem; font-weight: 800; color: var(--purple-dark); line-height: 1.1; margin: 4px 0; }
.dash-stat-hint { font-size: 0.78rem; color: var(--text-sub); }

.dash-toolbar { margin-bottom: 1.5rem; }
.dash-filter-form { display: flex; gap: 0.75rem; align-items: center; max-width: 600px; }

.table-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1.5px solid rgba(200, 182, 255, 0.25);
}
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th {
  background: #FAF8FF; padding: 1rem 1.2rem;
  font-size: 0.82rem; font-weight: 800; color: var(--text-sub);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1.5px solid rgba(200, 182, 255, 0.2);
}
.data-table td {
  padding: 1rem 1.2rem; vertical-align: middle;
  border-bottom: 1px solid rgba(200, 182, 255, 0.15);
  font-size: 0.92rem;
}
.table-thumb { width: 60px; height: 50px; object-fit: cover; border-radius: 10px; display: block; }
.table-game-title { font-weight: 800; color: var(--dark); }
.table-game-desc { font-size: 0.78rem; color: var(--text-sub); margin-top: 2px; }

.badge {
  display: inline-block; padding: 0.25rem 0.65rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 800;
}
.badge-cat  { background: var(--lavender-soft); color: var(--purple); }
.badge-age  { background: var(--mint-soft); color: #166534; }
.badge-yt   { background: #FFE5E5; color: #D63031; }
.badge-html5{ background: var(--yellow-soft); color: #B45309; }

.action-buttons { display: inline-flex; gap: 0.4rem; }
.btn-action {
  font-size: 0.78rem; font-weight: 800; padding: 0.35rem 0.8rem;
  border-radius: 50px; text-decoration: none; transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-play-action    { background: var(--mint-soft); color: #166534; }
.btn-edit-action    { background: var(--lavender-soft); color: var(--purple-dark); }
.btn-approve-action { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.btn-reject-action  { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.btn-delete-action  { background: #FFEAEA; color: #D63031; }
.btn-action:hover   { transform: translateY(-1px); }

/* ── User Role Pill & Badges ── */
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: white; border: 1.5px solid rgba(200, 182, 255, 0.4);
  padding: 0.3rem 0.85rem; border-radius: 50px;
}
.user-role-tag {
  font-size: 0.68rem; font-weight: 800; padding: 0.15rem 0.55rem;
  border-radius: 50px; letter-spacing: 0.04em; text-transform: uppercase;
}
.role-admin   { background: #DCFCE7; color: #15803D; }
.role-mod     { background: #E0E7FF; color: #4338CA; }
.role-creator { background: var(--lavender-soft); color: var(--purple-dark); }

.role-badge {
  font-size: 0.8rem; font-weight: 800; padding: 0.25rem 0.8rem;
  border-radius: 50px; vertical-align: middle; margin-left: 8px;
  display: inline-block;
}

/* ── Dashboard Status Tabs ── */
.dash-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
  border-bottom: 1.5px solid rgba(200, 182, 255, 0.3); padding-bottom: 0.75rem;
}
.dash-tab {
  font-size: 0.88rem; font-weight: 800; color: var(--text-sub);
  padding: 0.45rem 1.1rem; border-radius: 50px; text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1.5px solid rgba(200, 182, 255, 0.3);
}
.dash-tab:hover, .dash-tab.active {
  background: linear-gradient(135deg, var(--purple) 0%, #9B72F7 100%);
  color: white; border-color: transparent;
}
.tab-badge-pending {
  background: #F59E0B; color: white; font-size: 0.72rem;
  padding: 0.1rem 0.5rem; border-radius: 50px; font-weight: 800;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.7rem; border-radius: 50px;
}
.status-published { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.status-pending   { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.status-rejected  { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }

.creator-name-tag { font-size: 0.82rem; font-weight: 700; color: var(--text-sub); }

/* ── Form Card ── */
.form-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(200, 182, 255, 0.25);
}
.form-section-title {
  font-family: 'Baloo 2', cursive; font-size: 1.25rem; font-weight: 800;
  color: var(--purple-dark); margin: 1.5rem 0 1rem; border-bottom: 1px solid rgba(200, 182, 255, 0.2);
  padding-bottom: 0.5rem;
}
.form-section-title:first-child { margin-top: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-hint { font-size: 0.78rem; color: var(--text-sub); margin-top: 4px; display: block; }
.checkbox-card {
  background: var(--lavender-soft); border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem; margin: 1rem 0;
}
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.form-actions { display: flex; gap: 1rem; margin-top: 2rem; align-items: center; }

/* ────────────────────────────────
   PLAY GAME PAGE
──────────────────────────────── */
.play-body { min-height: 100vh; background: #231648; color: white; }
.play-body .navbar { background: rgba(35, 22, 72, 0.95); border-bottom-color: rgba(255, 255, 255, 0.1); }
.play-body .nav-logo-name { color: white; }
.play-body .nav-links a { color: rgba(255, 255, 255, 0.7); }
.play-body .nav-links a:hover { color: white; background: rgba(255, 255, 255, 0.1); }
.play-container { padding: 2rem 2.5rem 4rem; }
.play-wrapper { max-width: 1100px; margin: 0 auto; }

.play-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.play-title { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; color: white; }
.play-meta-tags { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.35rem; font-size: 0.85rem; }
.play-rating { color: #FFA502; font-weight: 800; }
.play-views  { color: rgba(255, 255, 255, 0.65); font-weight: 600; }

.player-screen-wrap {
  width: 100%; height: 600px; border-radius: var(--radius);
  background: #150A2E; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative; border: 2px solid rgba(200, 182, 255, 0.2);
}
.game-iframe { width: 100%; height: 100%; border: none; display: block; }
.yt-play-embed, .no-game-embed {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
}

.play-info-card {
  background: rgba(255, 255, 255, 0.06); border-radius: var(--radius);
  padding: 2rem; margin-top: 2rem; border: 1px solid rgba(255, 255, 255, 0.1);
}
.play-info-heading { font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 0.6rem; }
.play-info-text { color: rgba(255, 255, 255, 0.8); line-height: 1.7; font-size: 0.95rem; }
.play-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag-chip {
  background: rgba(200, 182, 255, 0.15); color: var(--lavender);
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 50px;
}
.related-section { margin-top: 3.5rem; }
.section-title-sm { font-family: 'Baloo 2', cursive; font-size: 1.6rem; font-weight: 800; color: white; }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .floating-chip { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-big-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 1.25rem; }
  .yt-section { margin: 0 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .player-screen-wrap { height: 420px; }
}

/* ── Scroll reveal animation ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
