/* index.css - ThaiNila Kids Park Stylings */

:root {
  --font-kids: 'Fredoka', 'Baloo 2', 'Mukta Malar', system-ui, sans-serif;
  
  /* Vibrant Candy Color Palette */
  --color-pink: #ff6b81;
  --color-orange: #ff7f50;
  --color-yellow: #ffa502;
  --color-green: #2ed573;
  --color-blue: #1e90ff;
  --color-purple: #a55eea;
  
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --text-dark: #2f3542;
  --text-light: #ffffff;
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-bounce: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);
  --radius-kids: 24px;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-kids);
  color: var(--text-dark);
  background: radial-gradient(circle at 50% 50%, #e0c3fc 0%, #8ec5fc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Floating Bubbles Background Animation */
.bubble-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble-bg-item {
  position: absolute;
  bottom: -150px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: floatUp 15s infinite linear;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.25), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bubble-bg-item::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 25%;
  height: 25%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

/* Container & Layout */
header {
  z-index: 10;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 4px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  animation: bounce 2s infinite;
  border: 2px solid var(--color-pink);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--color-pink), var(--color-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* Navigation Container */
.desktop-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  font-family: var(--font-kids);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.nav-btn:active {
  transform: translateY(1px);
}

.btn-home { background-color: var(--color-pink); }
.btn-learn { background-color: var(--color-orange); }
.btn-play { background-color: var(--color-purple); }
.btn-worksheets { background-color: var(--color-blue); }

.nav-btn.active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.15), 0 0 10px rgba(255,255,255,0.8);
  border: 2px solid white;
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 210px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  z-index: 1000;
  padding: 8px;
  margin-top: 8px;
  animation: navSlideDown 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-direction: column;
  gap: 4px;
}

.learn-dropdown {
  border: 4px solid var(--color-orange);
}
.play-dropdown {
  border: 4px solid var(--color-purple);
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
}
.learn-dropdown::before {
  border-color: transparent transparent var(--color-orange) transparent;
}
.play-dropdown::before {
  border-color: transparent transparent var(--color-purple) transparent;
}

@media (min-width: 769px) {
  .nav-dropdown:hover .dropdown-content {
    display: flex;
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f1f2f6;
  transform: translateX(4px);
}
.learn-dropdown a:hover,
.learn-dropdown a.active {
  color: var(--color-orange);
}
.play-dropdown a:hover,
.play-dropdown a.active {
  color: var(--color-purple);
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger-btn span {
  width: 100%;
  height: 4px;
  background-color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Mobile Drawer Navigation */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 6px solid var(--color-blue);
}

.mobile-menu-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 20px;
  border-bottom: 3px dashed #f1f2f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-close-btn {
  font-size: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.drawer-close-btn:hover {
  background-color: #f1f2f6;
}

.drawer-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  color: white;
  transition: transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.drawer-item:hover {
  transform: translateY(-2px);
}

.drawer-item.active {
  border: 2px solid white;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.15);
}

.drawer-section {
  background: #f8f9fa;
  border-radius: 18px;
  padding: 15px;
  border: 2px solid #e9ecef;
}

.drawer-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
}

.drawer-section-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-section-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.drawer-section-links a:hover,
.drawer-section-links a.active {
  background-color: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.drawer-section:nth-of-type(1) {
  border-color: rgba(255, 127, 80, 0.2);
}
.drawer-section:nth-of-type(1) .drawer-section-title {
  color: var(--color-orange);
}
.drawer-section:nth-of-type(1) .drawer-section-links a:hover,
.drawer-section:nth-of-type(1) .drawer-section-links a.active {
  color: var(--color-orange);
}

.drawer-section:nth-of-type(2) {
  border-color: rgba(165, 94, 234, 0.2);
}
.drawer-section:nth-of-type(2) .drawer-section-title {
  color: var(--color-purple);
}
.drawer-section:nth-of-type(2) .drawer-section-links a:hover,
.drawer-section:nth-of-type(2) .drawer-section-links a.active {
  color: var(--color-purple);
}

/* Main Dashboard Wrapper */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  z-index: 5;
  position: relative;
}

.section-container {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

.section-container.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General Section Headings */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: #2f3542;
  text-shadow: 2px 2px 0px #ffffff, 4px 4px 0px rgba(0,0,0,0.05);
}

/* Dashboard Home Card */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.card-pink::before { background-color: var(--color-pink); }
.card-orange::before { background-color: var(--color-orange); }
.card-green::before { background-color: var(--color-green); }
.card-blue::before { background-color: var(--color-blue); }
.card-purple::before { background-color: var(--color-purple); }

.dashboard-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-bounce);
  background: rgba(255, 255, 255, 0.85);
}

.card-icon {
  font-size: 2.1rem;
  margin-bottom: 8px;
  animation: floatIcon 3s infinite ease-in-out;
}

.dashboard-card:nth-child(even) .card-icon {
  animation-delay: 1.5s;
}

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

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.78rem;
  color: #57606f;
  line-height: 1.3;
}

/* Letters Grid Layout (Vowels & Consonants) */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 15px;
  justify-content: center;
}

.letter-bubble {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 4px solid #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.letter-bubble:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-bounce);
}

.letter-bubble:active {
  transform: scale(0.95);
}

.letter-char {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-dark);
  text-shadow: 1px 1px 0px #ffffff;
}

.letter-word-label {
  font-size: 0.8rem;
  color: #747d8c;
  font-weight: 600;
  margin-top: 4px;
}

/* Coloring letter bubbles dynamically */
.letters-grid .letter-bubble:nth-child(6n+1) { border-color: var(--color-pink); }
.letters-grid .letter-bubble:nth-child(6n+2) { border-color: var(--color-orange); }
.letters-grid .letter-bubble:nth-child(6n+3) { border-color: var(--color-yellow); }
.letters-grid .letter-bubble:nth-child(6n+4) { border-color: var(--color-green); }
.letters-grid .letter-bubble:nth-child(6n+5) { border-color: var(--color-blue); }
.letters-grid .letter-bubble:nth-child(6n+6) { border-color: var(--color-purple); }

.letters-grid .letter-bubble:nth-child(6n+1) .letter-char { color: var(--color-pink); }
.letters-grid .letter-bubble:nth-child(6n+2) .letter-char { color: var(--color-orange); }
.letters-grid .letter-bubble:nth-child(6n+3) .letter-char { color: #eccc68; }
.letters-grid .letter-bubble:nth-child(6n+4) .letter-char { color: var(--color-green); }
.letters-grid .letter-bubble:nth-child(6n+5) .letter-char { color: var(--color-blue); }
.letters-grid .letter-bubble:nth-child(6n+6) .letter-char { color: var(--color-purple); }

/* Pop-up Card / Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  border-radius: 32px;
  max-width: 450px;
  width: 90%;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 8px solid var(--color-pink);
  transform: scale(0.8) rotate(-5deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1) rotate(0deg);
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  background: white;
  border: 4px solid var(--text-dark);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

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

.modal-letter {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-pink);
  line-height: 1.1;
  margin-bottom: 5px;
}

.modal-emoji {
  font-size: 6.5rem;
  margin: 15px 0;
  animation: wiggle 1.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.modal-word {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.modal-speak-btn {
  font-family: var(--font-kids);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 12px 30px;
  background-color: var(--color-green);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(46, 213, 115, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.modal-speak-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 213, 115, 0.4);
}

/* Game Zone Stylings */
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #ffffff;
  border-radius: var(--radius-kids);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.quiz-score-board {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 8px 20px;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
}

.quiz-question-card {
  margin: 20px 0 30px 0;
}

.quiz-instruction {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2f3542;
  margin-bottom: 20px;
}

.quiz-question-display {
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz-question-emoji {
  font-size: 6.5rem;
  animation: floatIcon 3s infinite ease-in-out;
}

.quiz-question-speak {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--color-blue);
  color: white;
  border: 4px solid white;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 15px rgba(30, 144, 255, 0.3);
  transition: transform 0.2s;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(30, 144, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 144, 255, 0); }
}

.quiz-options-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.quiz-option-btn {
  font-family: var(--font-kids);
  font-size: 2.1rem;
  font-weight: 800;
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  background: white;
  border: 4px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.quiz-option-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-bounce);
}

.quiz-option-btn:nth-child(1) { border-color: var(--color-orange); color: var(--color-orange); }
.quiz-option-btn:nth-child(2) { border-color: var(--color-green); color: var(--color-green); }
.quiz-option-btn:nth-child(3) { border-color: var(--color-blue); color: var(--color-blue); }

.quiz-option-btn.correct {
  background-color: var(--color-green) !important;
  color: white !important;
  border-color: white !important;
}

.quiz-option-btn.wrong {
  background-color: var(--color-pink) !important;
  color: white !important;
  border-color: white !important;
}

.quiz-nav-btn {
  font-family: var(--font-kids);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 22px;
  background-color: var(--color-orange);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 25px;
  display: none;
  box-shadow: 0 4px 8px rgba(255, 127, 80, 0.3);
}

/* Rhymes Player Stylings */
.rhymes-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
}

.rhymes-sidebar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #ffffff;
  border-radius: var(--radius-kids);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: fit-content;
}

.rhyme-select-btn {
  font-family: var(--font-kids);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rhyme-select-btn:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-soft);
}

.rhyme-select-btn.active {
  background-color: var(--color-blue);
  color: white;
}

.rhyme-select-btn .btn-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.rhymes-player-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #ffffff;
  border-radius: var(--radius-kids);
  padding: 35px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rhymes-player-header {
  margin-bottom: 25px;
}

.rhyme-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-blue);
}

.rhyme-lyrics-box {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  max-height: 280px;
  overflow-y: auto;
}

.lyric-line {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.8;
  margin: 12px 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 10px;
  transition: all 0.2s;
  display: inline-block;
  color: #2f3542;
}

.lyric-line:hover {
  background-color: rgba(30, 144, 255, 0.1);
  color: var(--color-blue);
}

.lyric-line.highlight {
  background-color: var(--color-yellow);
  color: #2f3542;
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(255, 165, 2, 0.2);
}

.player-controls {
  display: flex;
  gap: 20px;
}

.control-btn {
  font-family: var(--font-kids);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s;
}

.control-btn:hover {
  transform: translateY(-2px);
}

.btn-play {
  background-color: var(--color-green);
  box-shadow: 0 6px 15px rgba(46, 213, 115, 0.3);
}

.btn-stop {
  background-color: var(--color-pink);
  box-shadow: 0 6px 15px rgba(255, 107, 129, 0.3);
}

/* Footer & Essential Pages */
footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.8);
  border-top: 4px solid rgba(255, 255, 255, 0.5);
  padding: 25px 20px;
  text-align: center;
  z-index: 10;
  font-size: 0.95rem;
  color: #747d8c;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-blue);
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive queries */
@media (max-width: 768px) {
  header {
    padding: 10px 15px;
  }
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .rhymes-layout {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* Policy & Static Pages Styling */
.static-page-container {
  max-width: 800px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #ffffff;
  border-radius: var(--radius-kids);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  z-index: 5;
  position: relative;
}

.static-page-container h1 {
  font-size: 2.2rem;
  color: var(--color-blue);
  margin-bottom: 20px;
  border-bottom: 4px solid rgba(30, 144, 255, 0.1);
  padding-bottom: 12px;
}

.static-page-container h2 {
  font-size: 1.5rem;
  color: var(--color-pink);
  margin: 25px 0 15px 0;
}

.static-page-container p, .static-page-container ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 15px;
}

.static-page-container ul {
  padding-left: 25px;
}

.static-page-container li {
  margin-bottom: 8px;
}

.back-home-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: var(--color-orange);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(255, 127, 80, 0.3);
  transition: all 0.2s;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 127, 80, 0.4);
}

/* Word Builder Styles */
.wb-block {
  font-family: var(--font-kids);
  font-size: 1.8rem;
  font-weight: 800;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: white;
  border: 3px solid var(--color-blue);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  animation: wbBounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wbBounceIn {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wb-pool-btn {
  font-family: var(--font-kids);
  font-size: 1.8rem;
  font-weight: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--color-green);
  color: var(--color-green);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wb-pool-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-bounce);
}

.wb-pool-btn:active {
  transform: scale(0.95);
}

.wb-pool-btn.used {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.9);
}

.wb-letters-pool .wb-pool-btn:nth-child(3n+1) { border-color: var(--color-pink); color: var(--color-pink); }
.wb-letters-pool .wb-pool-btn:nth-child(3n+2) { border-color: var(--color-orange); color: var(--color-orange); }
.wb-letters-pool .wb-pool-btn:nth-child(3n+3) { border-color: var(--color-blue); color: var(--color-blue); }

/* Card colors and navigation buttons */
.card-yellow::before { background-color: var(--color-yellow); }
.btn-numbers { background-color: var(--color-yellow); }
.btn-colors { background-color: var(--color-orange); }
.btn-matching { background-color: var(--color-purple); }
.btn-worksheets { background-color: var(--color-blue); }

/* Printable worksheets styling */
.worksheet-paper {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  min-height: 1000px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  border: 5px dashed var(--color-blue);
  box-shadow: var(--shadow-bounce);
  color: #2f3542;
  font-family: var(--font-kids);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.worksheet-header {
  border-bottom: 4px dashed var(--color-pink);
  padding-bottom: 12px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.worksheet-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.worksheet-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 15px;
}

.worksheet-big-letter {
  font-size: 7.5rem;
  font-weight: 800;
  border: 6px dashed var(--color-orange);
  border-radius: 24px;
  width: 170px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7fafc;
  color: var(--text-dark);
  user-select: none;
}

.worksheet-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.worksheet-word-label {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-blue);
}

.worksheet-emoji {
  font-size: 4.5rem;
  animation: floatIcon 3s infinite ease-in-out;
}

.worksheet-instructions {
  font-size: 1.15rem;
  font-weight: 700;
  color: #57606f;
  border-left: 5px solid var(--color-yellow);
  padding-left: 12px;
  margin: 5px 0;
}

.worksheet-tracing-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.worksheet-trace-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px dotted #a4b0be;
  padding-bottom: 5px;
}

.worksheet-trace-cell {
  font-size: 2.3rem;
  font-weight: 700;
  color: #e2e8f0;
  user-select: none;
  font-family: inherit;
  border: 3px dashed #cbd5e0;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.worksheet-trace-cell.empty {
  border-color: #747d8c;
}

.worksheet-footer {
  border-top: 3px solid #f1f2f6;
  padding-top: 15px;
  margin-top: 35px;
  text-align: center;
  font-size: 0.9rem;
  color: #a4b0be;
  font-weight: 600;
}

/* Matching Game Card Styles */
.matching-card {
  aspect-ratio: 1;
  background: #ffffff;
  border: 4px solid var(--color-blue);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.matching-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-bounce);
}

.matching-card:active {
  transform: scale(0.95);
}

.matching-card.selected {
  border-color: var(--color-orange);
  background-color: #ffe8df;
  transform: scale(1.05);
}

.matching-card.matched {
  border-color: var(--color-green);
  background-color: #e8f9ee;
  color: var(--color-green);
  transform: scale(0.95);
  opacity: 0.5;
  pointer-events: none;
}

.matching-card.wiggle {
  animation: wiggle 0.4s ease;
  border-color: var(--color-pink);
}

@keyframes wiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Colors and Shapes specific card overrides */
.color-swatch {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.letter-bubble:hover .color-swatch {
  transform: scale(1.1);
}

/* Print Overrides */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  .worksheet-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    background: white !important;
  }
  
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Chalkboard Palette Styling */
.chalk-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chalk-color:hover {
  transform: scale(1.15) translateY(-2px);
}

.chalk-color.active {
  border-color: #2f3542;
  box-shadow: 0 0 0 2px #ffffff, 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.rainbow-chalk-btn {
  background: linear-gradient(45deg, #ff6b81, #ff7f50, #ffa502, #2ed573, #1e90ff, #a55eea);
}

.chalk-size {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.chalk-size:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.chalk-size.active {
  border-color: var(--color-blue);
  background: #ffffff;
  box-shadow: var(--shadow-bounce);
  transform: scale(1.05);
}

/* ==========================================================================
   🏆 விர்ச்சுவல் ஸ்டிக்கர் புத்தகம் (Virtual Sticker Reward Book) Styles
   ========================================================================== */

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.sticker-card {
  background: #ffffff;
  border-radius: 24px;
  border: 4px solid #e2e8f0;
  padding: 24px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.sticker-card.earned {
  cursor: pointer;
  background: #fffdf5;
  border: 5px double #ffd700 !important;
  box-shadow: 0 8px 16px rgba(218, 165, 32, 0.08);
}

.sticker-card.earned:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.sticker-card.locked {
  opacity: 0.65;
  background: #f1f5f9;
  border-color: #cbd5e1 !important;
}

.sticker-emoji-container {
  position: relative;
  font-size: 3.8rem;
  margin-bottom: 12px;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.sticker-emoji {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-card.earned:hover .sticker-emoji {
  transform: scale(1.2) rotate(8deg);
}

.sticker-card.locked .sticker-emoji {
  filter: grayscale(1) contrast(0.8);
  opacity: 0.35;
}

.sticker-lock {
  position: absolute;
  bottom: 0px;
  right: -4px;
  font-size: 1.1rem;
  background: #ffffff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #cbd5e1;
}

.sticker-details {
  width: 100%;
}

.sticker-title {
  font-family: var(--font-kids);
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sticker-card.locked .sticker-title {
  color: #64748b;
}

.sticker-desc {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sticker-card.locked .sticker-desc {
  color: #94a3b8;
  font-style: italic;
}

/* Animations for popups and confetti */
@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
  }
}

@keyframes popupWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-6deg) scale(1.08);
  }
  75% {
    transform: rotate(6deg) scale(1.08);
  }
}

.popup-close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(46, 213, 115, 0.4);
}

.popup-close-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   🎈 எழுத்து பலூன் விளையாட்டு (Balloon Pop Game) Styles
   ========================================================================== */

.balloon-game-container {
  max-width: 750px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.balloon-game-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #f8fafc;
  border-bottom: 3px solid #f1f5f9;
  font-family: var(--font-kids);
}

.balloon-score-box {
  font-size: 1.25rem;
  font-weight: 800;
  color: #4b5563;
}

.score-value {
  color: var(--color-green);
  font-size: 1.6rem;
}

.balloon-target-box {
  background: rgba(255, 107, 129, 0.1);
  border: 2px dashed var(--color-pink);
  padding: 8px 18px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2f3542;
}

.target-char {
  color: var(--color-pink);
  font-size: 1.7rem;
  margin-right: 2px;
}

.balloon-play-arena {
  height: 520px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #70a1ff, #dfe4ea);
  border-radius: 0 0 24px 24px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.cloud {
  position: absolute;
  font-size: 3.5rem;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.cloud-1 { top: 8%; left: 8%; animation: floatCloud 14s linear infinite; }
.cloud-2 { top: 20%; right: 10%; animation: floatCloud 20s linear infinite reverse; }
.cloud-3 { top: 48%; left: 35%; animation: floatCloud 16s linear infinite; }

@keyframes floatCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(25px); }
}

.balloon {
  position: absolute;
  width: 78px;
  height: 98px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-kids);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  box-shadow: inset -6px -8px 15px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.1);
  z-index: 2;
  transition: transform 0.1s ease;
}

.balloon:active {
  transform: scale(0.92);
}

/* Knot triangle at bottom */
.balloon::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

/* String at bottom */
.balloon::after {
  content: "";
  position: absolute;
  bottom: -36px;
  left: 50%;
  width: 1.5px;
  height: 30px;
  background-color: rgba(47, 53, 66, 0.2);
}

/* Balloon Colors & Matching Knots */
.balloon.color-red { background-color: #ff4757; }
.balloon.color-red::before { border-bottom: 8px solid #ff4757; }

.balloon.color-blue { background-color: #1e90ff; }
.balloon.color-blue::before { border-bottom: 8px solid #1e90ff; }

.balloon.color-green { background-color: #2ed573; }
.balloon.color-green::before { border-bottom: 8px solid #2ed573; }

.balloon.color-yellow { background-color: #ffa502; color: #2f3542; text-shadow: none; }
.balloon.color-yellow::before { border-bottom: 8px solid #ffa502; }

.balloon.color-purple { background-color: #a55eea; }
.balloon.color-purple::before { border-bottom: 8px solid #a55eea; }

.balloon.color-pink { background-color: #ff6b81; }
.balloon.color-pink::before { border-bottom: 8px solid #ff6b81; }

.balloon.color-orange { background-color: #ff7f50; }
.balloon.color-orange::before { border-bottom: 8px solid #ff7f50; }

/* Popping animation */
@keyframes popExpand {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.4); opacity: 0.6; filter: brightness(1.3); }
  100% { transform: scale(0); opacity: 0; }
}

.balloon.popping {
  animation: popExpand 0.22s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none;
}

/* Overlay overlay styles */
.balloon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 53, 66, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.balloon-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-card {
  background: #ffffff;
  border-radius: 24px;
  border: 6px solid var(--color-pink);
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  max-width: 420px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.balloon-overlay.active .overlay-card {
  transform: scale(1);
}

.overlay-icon {
  font-size: 4.5rem;
  display: inline-block;
  margin-bottom: 15px;
  animation: popupWiggle 1.5s infinite ease-in-out;
}

.overlay-title {
  font-family: var(--font-kids);
  font-size: 1.8rem;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 10px;
}

.overlay-desc {
  font-size: 1rem;
  color: #57606f;
  font-weight: 600;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* ==========================================================================
   🧠 நினைவாற்றல் விளையாட்டு (Memory Match Game) Styles
   ========================================================================== */

.memory-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .memory-grid {
    gap: 8px;
  }
}

.memory-card {
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 1000px;
  border-radius: 18px;
  position: relative;
  user-select: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched {
  pointer-events: none;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 18px;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card-back {
  background: linear-gradient(135deg, #1e90ff, #3742fa);
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
}

.card-back::before {
  content: "❓";
}

.card-front {
  background-color: #ffffff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-front .card-char {
  font-size: 2.6rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.card-front .card-label {
  font-size: 0.75rem;
  color: #747d8c;
  font-weight: 700;
  margin-top: 4px;
  text-align: center;
  word-break: break-word;
  max-width: 90%;
}

.memory-card.matched .card-front {
  border-color: var(--color-green);
  box-shadow: 0 0 15px rgba(46, 213, 115, 0.4);
  animation: cardMatchBounce 0.5s ease;
}

@keyframes cardMatchBounce {
  0%, 100% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
}

.memory-controls-container .control-btn {
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}





