*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1a5c2a;
  --green-mid: #2e8b40;
  --green-light: #5ab55e;
  --cream: #f5f0e4;
  --red: #e03535;
  --red-hover: #c42828;
  --navy: #1c2b3a;
  --yellow: #f5c842;
  --white: #ffffff;

  /* Theme tokens — light defaults */
  --bg:           #f5f0e4;
  --bg-alt:       #ffffff;
  --text:         #1c2b3a;
  --text-muted:   #5a6a7a;
  --text-sub:     #3a5a4a;
  --border:       rgba(46,139,64,0.15);
  --card-bg:      #f5f0e4;
  --nav-bg:       rgba(255,255,255,0.97);
  --nav-shadow:   0 2px 20px rgba(0,0,0,0.08);
  --input-bg:     #f0f0f0;
  --input-color:  #555;
}

html[data-theme="dark"] {
  --bg:           #0f1a14;
  --bg-alt:       #162210;
  --text:         #e8f5e9;
  --text-muted:   #8aaa96;
  --text-sub:     #7abf8a;
  --border:       rgba(90,181,94,0.2);
  --card-bg:      #1a2e1d;
  --nav-bg:       rgba(15,26,20,0.97);
  --nav-shadow:   0 2px 20px rgba(0,0,0,0.4);
  --input-bg:     #1e2e22;
  --input-color:  #a0c0a8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  margin: 0;
}


/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: var(--nav-shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar {
height: 70px;
display: flex;
align-items: center;
padding: 0 20px;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
flex-shrink: 0;
}

.logo img {
height: 42px;
width: auto;
display: block;
}

 .logo-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.logo-text {
  font-family: 'Montserrat', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--green-mid); }

.btn-steam {
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-steam:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger:hover { background: rgba(128,128,128,0.1); }

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  padding: 20px 5% 28px;
  z-index: 99;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  margin-bottom: 20px;
}

.mobile-menu ul li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu ul li:last-child { border-bottom: none; }

.mobile-menu ul a {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu ul a:hover { color: var(--green-mid); }

.mobile-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-social .nav-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

/* HERO */
.hero {
  min-height: calc(100vh - 50px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0px;
  flex: 1;
}

/* Watercolor jungle background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #33ffc8 0%, #00a86b 40%, #004830 100%);
  z-index: 0;
}

/* Decorative jungle elements */
.jungle-left, .jungle-right {
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.jungle-left { left: 0; }
.jungle-right { right: 0; }

.leaf {
  position: absolute;
  border-radius: 50% 0;
  opacity: 0.7;
}

/* SVG jungle decorations */
.hero-jungle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 5% 40px; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 0.4rem;
}

.hero-coming-soon {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--green-mid);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}

h1 {
  font-family: 'Montserrat', cursive;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(224,53,53,0.35);
  display: inline-block;
}

.btn-green {
  background: var(--green-mid);
  box-shadow: 0 4px 15px rgba(46,139,64,0.35);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,53,53,0.45);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-wrapper {
  position: relative;
  display: inline-block;
}

.btn-flag {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #2e7d32;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  transform: rotate(12deg);
  border-radius: 4px;
}
/* Monitor mockup */
.hero-monitor {
  position: relative;
  animation: fadeUp 0.7s 0.2s ease both;
}

.monitor-wrap {
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.25));
}

.monitor-frame {
  background: linear-gradient(160deg, #d4d4d4, #b0b0b0);
  border-radius: 16px;
  padding: 18px 18px 0;
  position: relative;
  border: 3px solid #c0c0c0;
}

.monitor-screen {
  position: relative;
  overflow: hidden;
}

.monitor-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Game scene inside monitor */
.game-scene {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.game-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6ec6e8 0%, #a8dff0 40%, #c8eecc 100%);
}

.game-cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.85;
}

.game-cloud::before, .game-cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud1 { width: 80px; height: 25px; top: 15%; left: 10%; }
.cloud1::before { width: 35px; height: 35px; top: -18px; left: 10px; }
.cloud1::after { width: 25px; height: 25px; top: -12px; left: 35px; }

.cloud2 { width: 60px; height: 20px; top: 25%; right: 15%; }
.cloud2::before { width: 28px; height: 28px; top: -14px; left: 8px; }
.cloud2::after { width: 22px; height: 22px; top: -10px; left: 28px; }

/* Trees in game */
.game-trees {
  position: absolute;
  bottom: 30%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  pointer-events: none;
}

/* Platform */
.game-platform {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
}

.platform-grass {
  height: 14px;
  background: linear-gradient(180deg, #5ab55e, #3d9645);
  border-radius: 8px 8px 0 0;
  border: 2px solid #2e7d32;
  border-bottom: none;
}

.platform-dirt {
  height: 24px;
  background: linear-gradient(180deg, #c8860a, #a0680a);
  border: 2px solid #7a4e08;
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 8px;
}

.brick-mark {
  width: 18px;
  height: 8px;
  border: 1px solid #7a4e08;
  opacity: 0.5;
}

/* Snake character */
.game-snake {
  position: absolute;
  bottom: calc(20% + 38px);
  left: 38%;
  font-size: 3.2rem;
  animation: snakeBob 1.5s ease-in-out infinite;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
}

/* Flowers */
.game-flower {
  position: absolute;
  font-size: 1.1rem;
}

.f1 { bottom: calc(20% + 40px); left: 20%; }
.f2 { bottom: calc(20% + 40px); right: 22%; }

/* Ground foliage */
.game-foliage {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 22%;
  background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
}

.game-foliage::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 20px;
  background: radial-gradient(ellipse 30px 15px at 15% 0, #5ab55e 0%, transparent 70%),
              radial-gradient(ellipse 25px 12px at 35% 0, #4caf50 0%, transparent 70%),
              radial-gradient(ellipse 30px 15px at 55% 0, #5ab55e 0%, transparent 70%),
              radial-gradient(ellipse 28px 14px at 75% 0, #4caf50 0%, transparent 70%),
              radial-gradient(ellipse 25px 12px at 90% 0, #5ab55e 0%, transparent 70%);
}

/* Left tree */
.tree-left, .tree-right {
  position: absolute;
  bottom: 20%;
  pointer-events: none;
  z-index: 3;
}
.tree-left { left: -4%; }
.tree-right { right: -4%; }

/* Monitor stand */
.monitor-stand-neck {
  width: 40px;
  height: 20px;
  background: linear-gradient(90deg, #c0c0c0, #e0e0e0, #c0c0c0);
  margin: 0 auto;
}

.monitor-stand-base {
  width: 120px;
  height: 10px;
  background: linear-gradient(180deg, #c8c8c8, #b0b0b0);
  border-radius: 6px;
  margin: 0 auto;
}

/* Floating leaves animation */
.floating-leaf {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: floatLeaf linear infinite;
  z-index: 2;
}

/* Sections */
section { padding: 80px 5%; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Montserrat', cursive;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 50px;
}

/* Features section */
.features {
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px 28px;
  border: 2px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card h3 {
  font-family: 'Montserrat', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Games section */
.games { 
	background: var(--bg); 
	padding: 40px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.game-card {
  background: var(--bg-alt);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.game-card-thumb {
  aspect-ratio: 16 / 9;  
  position: relative;
  overflow: hidden;
}

.game-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-thumb.snake-thumb {
  background: linear-gradient(135deg, #87ceeb, #5ab55e, #2e8b40);
}

.game-card-thumb.coming-thumb {
  background: linear-gradient(135deg, #f5e4c8, #e8c88a, #d4a845);
}

.game-card-info { padding: 24px; }

.game-tag {
  display: inline-block;
  background: var(--green-light);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.game-tag.coming { background: var(--yellow); color: var(--navy); }

.game-card h3 {
  font-family: 'Montserrat', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.game-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-small {
  background: var(--text);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-small:hover { background: var(--green-dark); color: white; }

/* Footer */
footer {
  background: var(--bg-alt);
  color: var(--text-muted);
  text-align: center;
  padding: 10px 5% 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  margin: 2px 0;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes snakeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatLeaf {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Jungle bg decoration SVGs */
.bg-vines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Nav social buttons */
.nav-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.nav-social-btn:hover {
  background: var(--c);
  color: white;
  transform: translateY(-2px);
}

/* Dark mode toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--green-mid);
  color: white;
  border-color: var(--green-mid);
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Tablet: 768px–1024px */
@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
    padding: 50px 5%;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small tablet / large phone: 768px */
@media (max-width: 768px) {

  .logo-img {
    height: 32px;
  }
  /* Nav: hide links, show hamburger */
  .nav-links { display: none; }
  .nav-social { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero: stack vertically */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 5%;
    text-align: center;
  }

  .hero-badge { margin: 0 auto 20px; }
  .hero-buttons { justify-content: center; }

  /* Monitor: constrain size */
  .hero-monitor { max-width: 480px; margin: 0 auto; }

  /* Sections */
  section { padding: 60px 5%; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  nav { padding: 0 4%; }

  .logo-text { font-size: 1.1rem; }
  .logo-icon { font-size: 1.5rem; }

  .hero-content { padding: 30px 4%; }

  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  .btn-primary, .btn-secondary {
    padding: 12px 22px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .hero-buttons { flex-direction: column; }

  .hero-monitor { max-width: 100%; }

  section { padding: 48px 4%; }

  .feature-card { padding: 24px 20px; }

  .game-card-thumb { height: 160px; font-size: 3.5rem; }

  .social-grid { grid-template-columns: 1fr; }

  footer { padding: 6px 4%; font-size: 0.82rem; }
}

/* Very small: 360px */
@media (max-width: 360px) {
  .logo-text { display: none; }
  h1 { font-size: 1.5rem; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 20px;
  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  background: rgba(46,139,64,0.12);
  border: 2px solid rgba(46,139,64,0.35);
  color: var(--green-mid);
}

/* ── FOOTER ── */
.home-page footer.site-footer {
  margin-top: -28px;  /* more overlap on home page */
}

footer.site-footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 0 5% 4px;
  position: relative;
  margin: 0;
  z-index: 20;
}

.footer-platform {
  position: relative;
  height: 60px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -50px;
  z-index: 10;
}

.footer-tile {
  position: absolute;
  bottom: 0;
  left: -4px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 30px;
  width: calc(100% + 8px);
  overflow: hidden;
  image-rendering: pixelated;
}

.footer-tile img {
  height: 30px;
  width: auto;
  display: block;
  image-rendering: pixelated;
  flex-shrink: 0;
  margin-right: -4px;
}

.footer-flower {
  position: absolute;
  bottom: 16px;
  height: 28px;
  width: auto;
  image-rendering: pixelated;
  z-index: 2;
}
.footer-flower-1 { left: 15%; }
.footer-flower-2 { left: 50%; transform: translateX(-50%); }
.footer-flower-3 { right: 15%; }

.site-footer p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover {
  text-decoration: underline;
}/* ── NEWSLETTER CTA ── */
.newsletter-section {
  background: var(--navy);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .newsletter-section {
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
}

.newsletter-section::before {
  content: '🌿🍃🌿🍀🌿🍃🌿🍀🌿🍃🌿🍀🌿🍃🌿';
  position: absolute;
  top: 12px; left: 0; right: 0;
  font-size: 1.2rem;
  opacity: 0.12;
  letter-spacing: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.newsletter-section h2 {
  font-family: 'Montserrat', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #e8f5e9;
  margin-bottom: 12px;
}

html[data-theme="dark"] .newsletter-section h2 { color: var(--text); }

.newsletter-section p {
  color: #8aaa96;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 32px;
  max-width: 460px; margin-left: auto; margin-right: auto;
}

html[data-theme="dark"] .newsletter-section p { color: var(--text-muted); }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid rgba(90,181,94,0.3);
  background: rgba(255,255,255,0.07);
  color: #e8f5e9;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: #5a7a6a; }
.newsletter-input:focus { border-color: var(--green-light); }

.newsletter-btn {
  background: var(--green-mid);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
}
.newsletter-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 80px;
  padding: 110px 5% 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a3a24 0%, #0f1a14 60%, #1c2b3a 100%);
  z-index: 0;
}

/* Decorative jungle silhouette at bottom of hero */
.page-hero-svg {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 1; pointer-events: none;
}

.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(90,181,94,0.15);
  border: 1px solid rgba(90,181,94,0.4);
  color: var(--green-light);
  font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease both;
}

.page-hero h1 {
  font-family: 'Montserrat', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #e8f5e9;
  line-height: 1.05;
  margin-bottom: 14px;
  animation: fadeUp 0.5s 0.1s ease both;
}

.page-hero p {
  font-size: 1.1rem; font-weight: 600;
  color: #7abf8a;
  max-width: 500px;
  animation: fadeUp 0.5s 0.2s ease both;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

/* Active link */
nav a.active {
  color: #2e7d32; /* your green */
  font-weight: 600;
}

/* Underline effect */
nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #2e7d32;
  border-radius: 2px;
}

/* Active nav highlighting */
body#home nav a[href="index.php"],
body#games nav a[href="games.php"],
body#about nav a[href="about.php"],
body#research nav a[href="research.php"],
body#presskit nav a[href="presskit.php"] {
  color: #2e7d32;
  font-weight: 600;
  position: relative;
}

body#home nav a[href="index.php"]::after,
body#games nav a[href="games.php"]::after,
body#about nav a[href="about.php"]::after,
body#research nav a[href="research.php"]::after,
body#presskit nav a[href="presskit.php"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #2e7d32;
  border-radius: 2px;
}

/* ── GAME SLIDE ── */
.game-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

/* Left: game art / visual */
.slide-art {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.slide-art-bg {
  position: absolute; inset: 0;
  z-index: 0;
}

.slide-art-content {
  position: relative; z-index: 2;
  text-align: center;
}

.slide-emoji-stack {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  animation: floatBob 3s ease-in-out infinite;
}

.slide-pixel-badge {
  display: inline-block;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Right: game info */
.slide-info {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-alt);
  position: relative;
}

.slide-info::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--slide-accent, var(--green-mid));
}

.slide-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  width: fit-content;
  background: var(--slide-status-bg, rgba(90,181,94,0.15));
  color: var(--slide-status-color, var(--green-mid));
  border: 1px solid var(--slide-status-border, rgba(90,181,94,0.3));
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.slide-info h2 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 16px;
}

.slide-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slide-accent, var(--green-mid));
  margin-bottom: 14px;
  font-style: italic;
}

.slide-info p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.slide-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.slide-tag {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.games-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.games-page footer {
  margin-top: auto;
}

