@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --forest: #064e3b;
  --accent-yellow: #f59e0b;
  --bg-main: #f0fdf4;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
  --shadow-lg: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 50%, #e0f2fe 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND FLOATING ELEMENTS */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  font-size: 70px;
  opacity: 0.45;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
  animation: floatCloud 10s ease-in-out infinite alternate;
}

.cloud1 { top: 60px; left: 60px; }
.cloud2 { top: 180px; right: 80px; animation-delay: 3s; }
.cloud3 { bottom: 100px; left: 15%; animation-delay: 5s; }

.leaf {
  position: absolute;
  font-size: 40px;
  animation: rotateLeaf 7s ease-in-out infinite alternate;
}

.leaf1 { top: 18%; left: 8%; }
.leaf2 { bottom: 20%; right: 10%; animation-delay: 2.5s; }

@keyframes floatCloud {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-30px) translateX(20px); }
}

@keyframes rotateLeaf {
  0% { transform: rotate(0deg) translateY(0); }
  100% { transform: rotate(25deg) translateY(-25px); }
}

/* GAME WRAPPER */
.game-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 24px;
}

/* GAME CARD CONTAINER */
.game-card {
  width: 100%;
  max-width: 950px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 55px 45px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(16, 185, 129, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
  animation: appear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* MASCOT LOGO */
.mascot-area {
  display: inline-block;
  margin-bottom: 20px;
}

.eco-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #dcfce7, #a7f3d0);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
  animation: bounceMascot 3s infinite ease-in-out;
}

.eco-logo:hover {
  transform: scale(1.15) rotate(10deg);
}

@keyframes bounceMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.game-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.game-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.description {
  max-width: 650px;
  margin: 0 auto 35px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* FEATURE GRID */
.feature-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background: #f0fdf4;
}

.feature-card span {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 12px;
  transition: var(--transition);
}

.feature-card:hover span {
  transform: scale(1.2) rotate(10deg);
}

.feature-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* BUTTONS AREA */
.button-area {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button-area button {
  border: none;
  padding: 16px 36px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.start-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  animation: pulseBtn 2.5s infinite ease-in-out;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6); }
}

.start-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.back-btn {
  background: white;
  color: var(--text-primary);
  border: 2px solid #e2e8f0 !important;
}

.back-btn:hover {
  border-color: var(--primary) !important;
  color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 850px) {
  .game-card { padding: 35px 24px; }
  .game-card h1 { font-size: 32px; }
  .feature-container { grid-template-columns: 1fr; }
  .button-area { flex-direction: column; }
  .button-area button { width: 100%; justify-content: center; }
}