:root {
  /* Pastel Gaming Palette */
  --pop-pink: #FF9EBC;
  --pop-purple: #C5A3FF;
  --pop-blue: #8BE4FF;
  --pop-yellow: #FFD966;
  --pop-green: #98F6C9;

  --bg-gradient: linear-gradient(135deg, #FFF5F9 0%, #F5F7FF 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.9);

  --text-main: #4A4A6A;
  --text-primary: #6B4C9A;
  --text-muted: #8AA;

  --font-display: 'Fredoka', sans-serif;
  /* Round & Bubbly */
  --font-body: 'Quicksand', sans-serif;
  /* Soft & Readable */

  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow-soft: 0 10px 40px rgba(197, 163, 255, 0.25);
  --shadow-pop: 0 8px 0 rgba(0, 0, 0, 0.1);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-shadow: 2px 2px 0px #FFF, 4px 4px 0px var(--pop-purple);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Layout & Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* Bubbly Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: #FFF;
  background: var(--pop-purple);
  border: none;
  border-radius: 999px;
  /* Pill shape */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 0 #9E7DDB, 0 10px 20px rgba(197, 163, 255, 0.4);
  text-transform: capitalize;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #9E7DDB, 0 15px 30px rgba(197, 163, 255, 0.5);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #9E7DDB;
}

.btn-secondary {
  background: var(--pop-blue);
  box-shadow: 0 6px 0 #5BC0DE, 0 10px 20px rgba(139, 228, 255, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 10px 0 #5BC0DE, 0 15px 30px rgba(139, 228, 255, 0.5);
}

.btn-secondary:active {
  box-shadow: 0 2px 0 #5BC0DE;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 15px 30px;
  border-radius: 99px;
  border: 2px solid #FFF;
  box-shadow: var(--shadow-soft);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pop-purple);
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo span {
  color: var(--pop-pink);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.8;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--pop-pink);
  transform: scale(1.1);
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-tag {
  background: #FFF;
  color: var(--pop-pink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(255, 158, 188, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 2.5rem;
}

/* Game Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.game-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 4px solid #FFF;
}

.game-card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 20px 50px rgba(197, 163, 255, 0.35);
}

.card-img {
  width: 100%;
  height: 220px;
  background: #EEE;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--pop-green);
  /* Default fallback */
  color: #065F46;
  border-radius: 8px;
}

.tag.creative {
  background: var(--pop-yellow);
  color: #78350F;
}

.tag.educational {
  background: var(--pop-blue);
  color: #0C4A6E;
}

/* Community Section */
.community-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  background: #FFF;
  padding: 60px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  border: 4px solid #F0F0FF;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--pop-pink);
  display: block;
  font-weight: 700;
  text-shadow: 3px 3px 0 #FFF0F5;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 60px 0;
  background: #FFF;
  border-top: 4px solid #F5F7FF;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--pop-purple);
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}



/* =========================================
   Mobile / Responsive Overrides
   ========================================= */
@media (max-width: 768px) {

  /* Layout & Spacing */
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  /* Header & Nav */
  header {
    padding: 10px 0;
    position: relative;
  }

  nav {
    flex-wrap: wrap;
    /* Allow items to wrap */
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    /* More opaque for menu */
    gap: 0;
    /* Reset gap, control via margin */
  }

  /* Hamburger Button */
  .hamburger {
    display: block !important;
    /* Force show */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--pop-purple);
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  /* Nav Links - Hidden by default on mobile */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #F0F0FF;
    margin-top: 15px;
  }

  /* Show when active */
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    font-size: 1.1rem;
    /* Larger touch targets */
    padding: 10px 20px;
    background: transparent;
    border-radius: 99px;
    width: 100%;
    text-align: center;
    border: 1px solid transparent;
  }

  .nav-links a:hover {
    background: #F0F0FF;
    border-color: var(--pop-pink);
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
    display: block;
  }

  .hero .container>div {
    flex-direction: column-reverse;
    gap: 30px !important;
  }

  .hero-content {
    padding: 25px;
    background: rgba(255, 255, 255, 0.45);
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Hero Buttons Stack */
  .hero-content>div {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Feature Grids */
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Screenshots */
  #screens>.container>div {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }

  /* Community Stats */
  .community-stats {
    flex-direction: column;
    gap: 40px;
    padding: 30px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* Admin / Blog Overrides */
  .row {
    grid-template-columns: 1fr !important;
  }
}

/* Default state for hamburger (Hidden on Desktop) */
.hamburger {
  display: none;
}