/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

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

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

:root {
  --pink: #FFB6C1;
  --blue: #87CEEB;
  --green: #98FB98;
  --purple: #DDA0DD;
  --yellow: #FFFACD;
  --orange: #FFDAB9;
  --text-dark: #4a3f55;
  --text-light: #7a6b8a;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--yellow);
}

/* Navigation */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(45deg,
    #d1627a, #5a9ec9, #4d9c5d, #8a6db5, #d97a4a, #d1627a
  );
  background-size: 300% 300%;
  animation: navGradientShift 11s linear infinite;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@keyframes navGradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 50px;
  width: auto;
}

.nav-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-family: 'Fredoka One', cursive;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.nav-links a:hover {
  transform: scale(1.1);
}

.nav-cta {
  background: white !important;
  color: var(--text-dark) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  text-shadow: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--pink) 50%, var(--yellow) 100%);
}

.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://cdn.vagibond.com/sites/kids/hero-bg.jpg') center/cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-logo {
  max-width: 400px;
  margin-bottom: 24px;
  filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.2));
  animation: logoSway 2.5s ease-in-out infinite;
}

@keyframes logoSway {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.06) rotate(3deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.06) rotate(-3deg);
  }
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  text-shadow:
    -2px -2px 0 var(--blue),
    2px -2px 0 var(--blue),
    -2px 2px 0 var(--blue),
    2px 2px 0 var(--blue),
    0 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}

.hero h1 .wave {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
}

.hero h1 .wave:nth-child(1) { animation-delay: 0s; }
.hero h1 .wave:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .wave:nth-child(3) { animation-delay: 0.24s; }
.hero h1 .wave:nth-child(4) { animation-delay: 0.36s; }
.hero h1 .wave:nth-child(5) { animation-delay: 0.48s; }
.hero h1 .wave:nth-child(6) { animation-delay: 0.6s; }
.hero h1 .wave:nth-child(7) { animation-delay: 0.72s; }

@keyframes wave {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.hero h1 .fun-day {
  color: var(--yellow);
}

.hero p {
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
  text-shadow:
    -1px -1px 0 var(--purple),
    1px -1px 0 var(--purple),
    -1px 1px 0 var(--purple),
    1px 1px 0 var(--purple),
    0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--green);
  color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* Shows Section */
.shows {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--pink) 100%);
}

.shows .section-header {
  padding: 0 24px;
}

.shows-carousel-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.shows-carousel {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.shows-track {
  display: flex;
  gap: 32px;
  transition: transform 0.4s ease;
  padding: 0 calc(50% - 300px);
}

.show-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  flex: 0 0 600px;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.5;
  filter: brightness(0.7);
  transform: scale(0.92);
  position: relative;
}

.show-card.active {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1);
}

/* Hidden shows - only visible when directly linked */
.show-card.hidden-show {
  display: none;
}

.show-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  cursor: pointer;
}

.show-card.active .show-card-overlay {
  display: none;
}

.show-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.show-image img,
.show-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-image video {
  display: none;
}

.show-image.playing img,
.show-image.playing .show-play-btn {
  display: none;
}

.show-image.playing video {
  display: block;
}

.show-image .show-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 5;
}

.show-image .show-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
}

.show-image .show-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 24px solid var(--purple);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.show-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--purple);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
}

.show-info {
  padding: 24px;
}

.show-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.show-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.show-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.show-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.show-info {
  position: relative;
}

.show-buttons {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.show-watch-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--green);
  color: var(--text-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 10;
}

.show-watch-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.show-buttons .show-watch-btn {
  position: static;
}

.show-apply-btn {
  background: white;
  color: var(--text-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  border: 2px solid var(--text-dark);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.show-apply-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: var(--yellow);
}

/* Music Section */
.music {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
}

.music .section-header h2,
.music .section-header p {
  color: white;
}

.music-player {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.now-playing {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.album-art {
  width: 120px;
  height: 120px;
  background: var(--purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.skip-btn:hover {
  background: white;
}

.song-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 4px;
}

.song-info p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.play-btn {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: none;
  padding-left: 3px;
}

.playlist {
  padding: 24px;
}

.playlist h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}

.playlist-item:hover {
  background: var(--yellow);
}

.playlist-item.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.playlist-item.active .track-name,
.playlist-item.active .track-artist {
  color: white;
}

.track-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.playlist-item.active .track-thumb {
  box-shadow: 0 2px 12px rgba(255,255,255,0.4);
}

.track-info {
  flex: 1;
}

.track-name {
  font-weight: 700;
  color: var(--text-dark);
}

.track-artist {
  font-size: 0.85rem;
  color: var(--text-light);
}

.track-duration {
  color: var(--text-light);
  font-size: 0.9rem;
}

.lyrics-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--yellow);
  border-radius: 16px;
}

.lyrics-box h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.lyrics-box p {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.8;
  white-space: pre-line;
}

/* Learn Section */
.learn {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--green) 0%, var(--blue) 100%);
}

.learn .section-header {
  padding: 0 24px;
}

.learn-carousel-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.learn-carousel {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.learn-track {
  display: flex;
  gap: 32px;
  transition: transform 0.4s ease;
  padding: 0 calc(50% - 450px);
}

.learn-card {
  flex: 0 0 900px;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.5;
  filter: brightness(0.7);
  transform: scale(0.92);
  position: relative;
}

.learn-card.active {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1);
}

.learn-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  cursor: pointer;
}

.learn-card.active .learn-card-overlay {
  display: none;
}

.learn-content {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.learn-image {
  background: var(--yellow);
  overflow: hidden;
}

.learn-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-text {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.learn-text h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.learn-text .question {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.learn-text .answer {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 16px;
}

.learn-text p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.learn-btn {
  margin-top: 20px;
  font-size: 0.85rem !important;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 32px;
  text-align: center;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
}

.modal-header p {
  color: rgba(255,255,255,0.9);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--pink);
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #fce4ec;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #9b59b6;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 3px solid var(--pink);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-group .hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: var(--pink);
}

.checkbox-item input {
  width: auto;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--text-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.close-modal:hover {
  transform: scale(1.1);
}

/* Games Section */
.games {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--orange) 0%, var(--yellow) 100%);
}

.games .section-header {
  padding: 0 24px;
}

.games-carousel-container {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.games-carousel {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.games-track {
  display: flex;
  gap: 32px;
  transition: transform 0.4s ease;
  padding: 0 calc(50% - 350px);
}

.carousel-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
  z-index: 10;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-btn:hover {
  transform: scale(1.1);
  background: var(--pink);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.game-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  flex: 0 0 700px;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.5;
  filter: brightness(0.7);
  transform: scale(0.92);
  position: relative;
}

.game-card.active {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  cursor: pointer;
}

.game-card.active .game-card-overlay {
  display: none;
}

.game-header {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-header h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: white;
  margin: 0;
}

.header-stat {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--text-dark);
  padding: 6px 14px;
  background: var(--yellow);
  border-radius: 20px;
  white-space: nowrap;
}

.game-content {
  padding: 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-instructions {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: center;
}

/* Word Finder Game */
.word-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  background: var(--purple);
  padding: 6px;
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
}

.word-cell {
  width: 42px;
  height: 42px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.word-cell:hover {
  background: var(--yellow);
}

.word-cell.selected {
  background: var(--pink);
  color: white;
}

.word-cell.found {
  background: var(--green);
  color: white;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.word-item {
  font-family: 'Fredoka One', cursive;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--blue);
  color: white;
  border-radius: 12px;
}

.word-item.found {
  background: var(--green);
  text-decoration: line-through;
}

.word-finder-container {
  position: relative;
  min-height: 520px;
}

.word-cell.placeholder {
  opacity: 0.4;
  filter: blur(1px);
}

.word-item.placeholder {
  opacity: 0.5;
}

.word-finder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  border-radius: 8px;
}

.word-finder-overlay.hidden {
  display: none;
}

.word-finder-overlay h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 8px;
}

.word-finder-overlay p {
  color: var(--text-dark);
  margin-bottom: 12px;
}

.word-finder-overlay .end-time {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  color: var(--green);
}

.header-stat.stopped {
  background: var(--green);
  color: white;
  animation: pulse 0.5s ease-in-out 3;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Pin the Tail Game */
.donkey-game {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  cursor: crosshair;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
}

.donkey-game img,
.donkey-game video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.15s;
}

.donkey-game .smile {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.donkey-game.playing .smile {
  opacity: 1;
}

.donkey-game.playing .butt {
  opacity: 0;
}

.tail-pin {
  position: absolute;
  font-size: 24px;
  transform: translate(-50%, -50%);
  animation: pinDrop 0.3s ease-out;
}

@keyframes pinDrop {
  from { transform: translate(-50%, -150%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

.donkey-miss {
  position: absolute;
  font-size: 32px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: missExpand 0.6s ease-out forwards;
}

@keyframes missExpand {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Gore effects (shared) */
.screen-gore {
  position: fixed;
  font-size: 32px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
}

.screen-gore.splat {
  animation: screenGoreBurst 1.5s ease-out forwards;
}

.screen-gore.drip {
  animation: goreDrip 4s ease-in forwards;
}

@keyframes screenGoreBurst {
  0% {
    opacity: 1;
    transform: scale(0.3) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(360deg) translate(var(--tx), var(--ty));
  }
}

@keyframes goreDrip {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(70vh);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh);
  }
}

/* Game button (shared) */
.frogger-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  padding: 16px 40px;
  background: var(--green);
  color: var(--text-dark);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 40;
}

.frogger-btn:hover {
  transform: scale(1.1);
}

.frogger-btn.secondary {
  background: var(--purple);
  color: white;
  font-size: 1rem;
  padding: 12px 30px;
}

/* Petting Zoo Game */
.petting-zoo {
  width: 100%;
  height: 520px;
  background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 60%, #90EE90 60%, #4a7c23 100%);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.zoo-field {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.zoo-animal {
  position: absolute;
  cursor: crosshair;
  z-index: 10;
  -webkit-user-select: none;
  user-select: none;
}

.zoo-animal:hover {
  filter: brightness(1.2);
}

.zoo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  z-index: 30;
}

.zoo-overlay.hidden {
  display: none;
}

.zoo-overlay h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 16px;
}

.zoo-overlay p {
  color: white;
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}

.zoo-gore {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
}

.zoo-gore.splat {
  animation: zooGoreBurst 0.8s ease-out forwards;
}

@keyframes zooGoreBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot, 0deg));
  }
}

@keyframes missFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@media (max-width: 900px) {
  .games {
    padding: 40px 0;
  }

  .games-carousel-container {
    display: block;
  }

  .games-carousel {
    overflow: visible;
  }

  .games-track {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    transform: none !important;
  }

  .carousel-btn,
  .carousel-dots {
    display: none;
  }

  .game-card {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    opacity: 1;
    filter: none;
    transform: none;
    border-radius: 0;
  }

  .game-card-overlay {
    display: none;
  }

  .game-header {
    padding: 12px 16px;
  }

  .game-header h3 {
    font-size: 1.25rem;
  }

  .header-stat {
    font-size: 0.9rem;
    padding: 4px 10px;
  }

  .game-content {
    padding: 6px;
    min-height: 0;
  }

  .game-instructions {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .word-grid {
    gap: 2px;
    padding: 3px;
  }

  .word-cell {
    width: calc((100vw - 50px) / 10);
    height: calc((100vw - 50px) / 10);
    font-size: clamp(12px, 3.5vw, 18px);
    border-radius: 3px;
  }

  .word-list {
    gap: 4px;
    margin-top: 8px;
  }

  .word-item {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .word-finder-container {
    min-height: calc((100vw - 50px) + 100px);
  }

  .donkey-game {
    max-width: 100%;
  }

  .petting-zoo {
    height: 350px;
  }

  /* Shows carousel mobile */
  .shows {
    padding: 40px 0;
  }

  .shows-carousel-container {
    display: block;
  }

  .shows-carousel {
    overflow: visible;
  }

  .shows-track {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    transform: none !important;
  }

  .shows .carousel-btn,
  .shows .carousel-dots {
    display: none;
  }

  .show-card {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    opacity: 1;
    filter: none;
    transform: none;
    border-radius: 0;
  }

  .show-card-overlay {
    display: none;
  }

  /* Learn carousel mobile */
  .learn {
    padding: 40px 0;
  }

  .learn-carousel-container {
    display: block;
  }

  .learn-carousel {
    overflow: visible;
  }

  .learn-track {
    flex-direction: column;
    gap: 16px;
    padding: 0;
    transform: none !important;
  }

  .learn .carousel-btn,
  .learn .carousel-dots {
    display: none;
  }

  .learn-card {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .learn-card-overlay {
    display: none;
  }

  .learn-content {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .learn-image {
    height: 250px;
  }

  .learn-text {
    padding: 24px;
  }

  .learn-text h3 {
    font-size: 1.4rem;
  }

  .learn-text .answer {
    font-size: 2rem;
  }
}

/* Testimonials */
.testimonials {
  padding: 80px 24px;
  background: var(--yellow);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-left: 6px solid var(--pink);
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Fredoka One', cursive;
}

.author-info h4 {
  font-weight: 700;
  color: var(--text-dark);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* CTA Section */
.cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
  text-align: center;
}

.cta h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: white;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 24px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--pink);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.legal-text {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  max-width: 800px;
  margin: 16px auto 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .learn-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  /* Hero mobile */
  .hero {
    min-height: 0;
    padding: 100px 16px 40px;
  }

  .hero-logo {
    max-width: 280px;
    width: 100%;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .now-playing {
    flex-direction: column;
    text-align: center;
  }
}
