/* ============================================================
   LINGUA LATINA — Child-Friendly Stylesheet
   ============================================================ */

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

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
}

.site-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: white;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  letter-spacing: 2px;
}

.site-header .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-back {
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  margin-bottom: 1rem;
}

.btn-back:hover {
  background: rgba(255,255,255,0.3);
}

/* ============================================================
   LEVEL SELECTION (index.html)
   ============================================================ */
.level-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 60vh;
  flex-wrap: wrap;
}

.level-card {
  width: 280px;
  height: 320px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
}

.level-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.level-card:hover::before {
  transform: scale(1.2);
}

.level-card .level-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.level-card .level-label {
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  color: white;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.level-card .level-title {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   LESSON GRID (level1.html)
   ============================================================ */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.lesson-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 4px solid transparent;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  border-color: inherit;
}

.lesson-card .lesson-thumb {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.lesson-card .lesson-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: #555;
  font-weight: 700;
}

/* ============================================================
   LESSON PAGE (lectio.html)
   ============================================================ */
.lesson-page {
  max-width: 900px;
  margin: 0 auto;
}

/* Section styling */
 .section {
  background: white; 
  border-radius: 25px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
} 

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .icon {
  font-size: 2rem;
}

/* Video Section */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain; /* prevents stretching */
}

/* Vocabula Section */
.vocabula-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.vocab-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 15px;
  border: 4px solid transparent;
  transition: all 0.3s ease;
}

.vocab-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.vocab-item.gender-feminine {
  border-color: #e63946; /* red */
}
.vocab-item.gender-masculine {
  border-color: #1d4ed8; /* blue */
}
.vocab-item.gender-neuter {
  border-color: #32cd32; /* lime green */
}

.vocab-item .vocab-emoji {
  font-size: 2.5rem;
  min-width: 50px;
  text-align: center;
}

.vocab-item .vocab-latin {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: #333;
}

.vocab-item .vocab-english {
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-container {
  text-align: center;
}

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.quiz-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  transition: all 0.3s ease;
}

.quiz-dot.active {
  background: #FF6B6B;
  color: white;
  transform: scale(1.2);
}

.quiz-dot.correct {
  background: #00b894;
  color: white;
}

.quiz-dot.wrong {
  background: #e17055;
  color: white;
}

.quiz-prompt {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.quiz-option {
  padding: 1.5rem;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option:hover {
  border-color: #667eea;
  background: #f0f0ff;
  transform: scale(1.05);
}

.quiz-option.selected-correct {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
}

.quiz-option.selected-wrong {
  border-color: #e17055;
  background: #fde8e3;
  color: #e17055;
}

.quiz-option.reveal-correct {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
}

.quiz-score {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #555;
}

.quiz-score .score-number {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: #FF6B6B;
}

/* ============================================================
   QUIZ RESULTS
   ============================================================ */
.quiz-results {
  text-align: center;
  padding: 2rem;
}

.quiz-results .result-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.quiz-results .result-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.quiz-results .result-score {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
}

.quiz-results .btn {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  margin: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }
  
  .level-card {
    width: 220px;
    height: 260px;
  }
  
  .level-card .level-emoji {
    font-size: 3.5rem;
  }
  
  .level-card .level-label {
    font-size: 3rem;
  }
  
  .lesson-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .lesson-card .lesson-thumb {
    font-size: 3rem;
  }
  
  .quiz-prompt {
    font-size: 1.5rem;
  }
  
  .quiz-options {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  
  .quiz-option {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .vocabula-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  
  .section {
    padding: 1.2rem;
  }
  
  .lesson-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quiz-options {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   LEVEL II — ACTIVITY GRID (level2.html)
   ============================================================ */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  /*grid-template-columns: repeat(4, 1fr); */
  gap: 1.5rem;
  padding: 1rem 0;
}

.activity-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 4px solid transparent;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.activity-card .activity-thumb {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.activity-card .activity-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #555;
  font-weight: 700;
}

.activity-card .activity-desc {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}

/* ============================================================
   LEVEL II — SHARED GAME UI
   ============================================================ */
.game-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.game-sub {
  font-size: 1rem;
  color: #888;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.game-score-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #555;
}

.game-score-bar .score-number {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #FF6B6B;
}

.game-feedback {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  min-height: 2.2rem;
  margin: 1rem 0;
  text-align: center;
}

.game-feedback.correct   { color: #00b894; }
.game-feedback.wrong     { color: #e17055; }
.game-feedback .correct-answer { color: #555; font-family: 'Nunito', sans-serif; font-weight: 700; }

/* ============================================================
   LEVEL II — VOCABULA MATCHING GAME
   ============================================================ */
.match-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.match-set-btn {
  padding: 0.6rem 1.2rem;
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.match-set-btn.active {
  border-color: #FF6B6B;
  background: #fff0f0;
  color: #FF6B6B;
  transform: scale(1.05);
}

.match-set-btn:hover {
  border-color: #667eea;
}

.match-info {
  margin-bottom: 1.5rem;
}

.match-info .match-set-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.match-tile {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.match-tile:hover {
  border-color: #667eea;
  transform: translateY(-3px);
}

.match-tile .tile-emoji {
  font-size: 2rem;
  line-height: 1.2;
}

.match-tile .tile-english {
  font-size: 0.8rem;
  color: #888;
  font-weight: 700;
  font-style: italic;
}

.match-tile.selected {
  border-color: #FF8E53;
  background: #fff4ec;
  transform: scale(1.05);
}

.match-tile.matched {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
  cursor: default;
}

.match-tile.wrong {
  border-color: #e17055;
  background: #fde8e3;
  animation: shake 0.4s ease;
}

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

/* ============================================================
   LEVEL II — ODD ONE OUT GAME
   ============================================================ */
/*.odd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
} */
 .odd-grid {
  display: grid;
  grid-template-columns: repeat(5, 150px);
  gap: 1rem;
  justify-content: center;
}



.odd-tile {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 1.5rem 0.8rem;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hover reveals the emoji and English meaning */
.odd-tile .odd-reveal {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: #888;
  font-weight: 700;
  font-style: italic;
   line-height: 1.3;
}

.odd-tile .odd-reveal .reveal-emoji {
  font-size: 1.8rem;
  font-style: normal;
  display: block;
}

.odd-tile:hover .odd-reveal {
  opacity: 1;
  max-height: 60px;
  margin-top: 0.3rem;
}

.odd-tile.clicked-correct {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
}

.odd-tile.clicked-wrong {
  border-color: #e17055;
  background: #fde8e3;
  color: #e17055;
}

.odd-tile.reveal-correct {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
  outline: 4px solid rgba(0,184,148,0.3);
}

/* ============================================================
   LEVEL II — GENUS (GENDER) TETRIS-STYLE GAME
   ============================================================ */
.genus-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.genus-controls-info {
  font-size: 0.95rem;
  color: #888;
  font-weight: 700;
  text-align: center;
}

.genus-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 640px; 
  background: linear-gradient(135deg, #f0f0ff, #fdf0f0);
  border-radius: 25px;
  border: 4px dashed #e0e0e0;
  overflow: hidden;
}

.genus-bins {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 1rem 1rem;
}

.genus-bin {
  width: 30%;
  height: 90px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.genus-bin .bin-emoji {
  font-size: 1.8rem;
}

.genus-bin.feminine { background: #e63946; }
.genus-bin.masculine { background: #1d4ed8; }
.genus-bin.neuter { background: #32cd32; }

.genus-bin.active-drop {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.genus-tile {
  position: absolute;
  width: 110px;
  height: 80px;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  background: white;
  border: 4px solid #FF8E53;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: #555;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: top 0.05s linear, left 0.05s linear;
  z-index: 5;
  cursor: grab;
  user-select: none;
}

.genus-tile .tile-hint {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
}

.genus-tile .tile-hint .hint-emoji {
  font-size: 1.4rem;
  display: inline;
}

.genus-tile .tile-hint .hint-english {
  display: block;
  font-size: 0.7rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #888;
  font-style: italic;
}

.genus-tile.anim-fall {
  transition: top 0.08s linear;
}

.genus-tile.dropped-correct {
  border-color: #00b894;
  background: #d4f5e9;
  color: #00b894;
}

.genus-tile.dropped-wrong {
  border-color: #e17055;
  background: #fde8e3;
  color: #e17055;
}

.genus-tile.returning {
  transition: all 0.4s ease;
}

/* ============================================================
   LEVEL II — PLURALIS (PLURAL) GAME
   ============================================================ */
.plural-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plural-rule {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 4px solid transparent;
}

.plural-rule.feminine   { border-color: #e63946; }
.plural-rule.masculine  { border-color: #1d4ed8; }
.plural-rule.neuter     { border-color: #32cd32; }

.plural-rule .rule-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.plural-rule .rule-formula {
  font-size: 0.95rem;
  font-weight: 800;
  color: #777;
  margin-bottom: 0.8rem;
}

.plural-rule .rule-demo {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.8rem;
}

.plural-rule .rule-single {
  font-size: 1.4rem;
  min-height: 1.8rem;
}

.plural-rule .rule-multi {
  font-size: 1.4rem;
  min-height: 1.8rem;
}

.plural-level-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.plural-level-btn {
  padding: 0.7rem 1.5rem;
  border: 3px solid #e0e0e0;
  border-radius: 50px;
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plural-level-btn.active {
  border-color: #4ECDC4;
  background: #e8fcfb;
  color: #2a9d8f;
  transform: scale(1.05);
}

.plural-level-btn:hover {
  border-color: #4ECDC4;
}

.plural-question {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plural-question .plural-word {
  color: #FF6B6B;
  margin-left: 0.4rem;
}

.gender-pick-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gender-pick-btn {
  padding: 1rem 1.8rem;
  border: none;
  border-radius: 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.gender-pick-btn.feminine   { background: #e63946; }
.gender-pick-btn.masculine  { background: #1d4ed8; }
.gender-pick-btn.neuter     { background: #32cd32; }
.gender-pick-btn.dim        { background: #ccc; }

.gender-pick-btn:hover {
  transform: translateY(-3px);
}

.gender-pick-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.plural-input-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.plural-input {
  padding: 0.9rem 1.4rem;
  border: 4px solid #e0e0e0;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #555;
  text-align: center;
  width: 260px;
  outline: none;
  transition: all 0.3s ease;
}

.plural-input:focus {
  border-color: #667eea;
  background: #f0f0ff;
}

.plural-input.correct {
  border-color: #00b894;
  background: #d4f5e9;
}

.plural-input.wrong {
  border-color: #e17055;
  background: #fde8e3;
}

/* ============================================================
   LEVEL II — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .activity-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .match-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.8rem;
  }

  .odd-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .genus-stage {
    height: 380px;
  }

  .genus-bin {
    font-size: 0.8rem;
  }

  .genus-tile {
    width: 90px;
    height: 70px;
    font-size: 0.9rem;
  }

  .plural-question {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-set-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

  .genus-tile {
    width: 80px;
    height: 64px;
  }

  .genus-bar {
    font-size: 0.8rem;
    padding: 1rem 0.6rem;
  }

  .plural-input {
    width: 100%;
  }
}

/* ============================================================
   LEVEL III — NUMERI (Section I)
   ============================================================ */

/* Shared hover reveal (used across Numeri activities) */
.tile-reveal {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: #888;
  font-weight: 800;
}

:hover > .tile-reveal {
  opacity: 1;
  max-height: 40px;
  margin-top: 0.3rem;
}

/* ============================================================
   ACTIVITY 1 — NUMBERS & SEQUENCES
   ============================================================ */

/* Part A: Roman numeral reference (two rows of 5, bold numerals,
   turquoise / pink / yellow palette — red/blue/green reserved
   for the gender code elsewhere) */
.numeri-ref-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.numeri-ref-tile {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 1.5rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.numeri-ref-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.numeri-ref-tile .ref-numeral {
  font-family: 'Fredoka One', cursive;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Part B: sequence tiles */
.seq-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.seq-tile {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.seq-tile.blank {
  border-style: dashed;
  border-color: #16a085;
  color: #16a085;
  background: #f0fffb;
}

.seq-input-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.seq-input {
  padding: 0.9rem 1.4rem;
  border: 4px solid #e0e0e0;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #555;
  text-align: center;
  width: 240px;
  outline: none;
  transition: all 0.3s ease;
}

.seq-input:focus {
  border-color: #667eea;
  background: #f0f0ff;
}

.seq-input.correct {
  border-color: #00b894;
  background: #d4f5e9;
}

.seq-input.wrong {
  border-color: #e17055;
  background: #fde8e3;
}

/* Worked example */
.worked-example {
  background: #f8f9fa;
  border: 3px dashed #e0e0e0;
  border-radius: 25px;
  padding: 1.5rem;
  max-width: 560px;
  margin: 0 auto 1rem;
}

.worked-example .we-tiles {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.worked-example .we-tiles .seq-tile {
  width: 90px;
  height: 90px;
  font-size: 1.9rem;
}

.worked-example .we-answer {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  font-weight: 700;
  margin-bottom: 1rem;
}

.worked-example .we-answer .we-roman {
  color: #16a085;
  font-weight: 800;
}


/* ============================================================
   ACTIVITY 2 — 1, 2 & 3 (Gender Forms + Matching)
   ============================================================ */

/* Legend text colors (scoped to .word-color so they don't
   affect other uses of gender classes) */
.gender-feminine.word-color   { color: #e63946; }
.gender-masculine.word-color  { color: #1d4ed8; }
.gender-neuter.word-color     { color: #32cd32; }

/* Part A: gender form groups */
.gender-form-group {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gender-form-group .gf-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #555;
  margin-bottom: 0.6rem;
}

.gender-form-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Gender color code applied to font AND border (the one place
   Numeri uses red/blue/green — it is the site's gender code) */
.gender-form-tile {
  background: white;
  border: 4px solid #e0e0e0;
  border-radius: 20px;
  padding: 1.4rem 1rem;
  min-width: 130px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  cursor: default;
}

.gender-form-tile:hover {
  transform: translateY(-4px);
}

.gender-form-tile.gender-feminine  { color: #e63946; border-color: #e63946; }
.gender-form-tile.gender-masculine { color: #1d4ed8; border-color: #1d4ed8; }
.gender-form-tile.gender-neuter    { color: #32cd32; border-color: #32cd32; }

/* Part B: memory/concentration board — face-down cards */
.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.9rem;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.mem-card {
  position: relative;
  height: 140px;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
}

.mem-card.is-matched { cursor: default; }

.mem-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.mem-card.is-flipped .mem-inner,
.mem-card.is-matched .mem-inner {
  transform: rotateY(180deg);
}

.mem-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid transparent;
}

.mem-back {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #5a63d8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.mem-back .mem-back-label {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.mem-front {
  background: white;
  border-color: #e0e0e0;
  transform: rotateY(180deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.mem-front .mem-emoji {
  font-size: 2.2rem;
  line-height: 1.3;
  text-align: center;
}

/* Word (phrase) card faces keep the site's gender color code on font + border */
.mem-front.mem-word.gender-feminine  { color: #e63946; border-color: #e63946; }
.mem-front.mem-word.gender-masculine { color: #1d4ed8; border-color: #1d4ed8; }
.mem-front.mem-word.gender-neuter    { color: #32cd32; border-color: #32cd32; }

.mem-front .mem-word-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  text-align: center;
  padding: 0.4rem;
}


/* ============================================================
   ACTIVITY 3 — NUMBERS + NOUNS
   ============================================================ */

/* Worked examples at the top */
.nn-examples {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nn-example {
  background: #f8f9fa;
  border: 3px solid #e0e0e0;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nn-example .nn-example-display {
  font-size: 1.5rem;
}

.nn-example .nn-example-arrow {
  font-size: 1.3rem;
  color: #888;
  font-weight: 800;
}

.nn-example .nn-example-answer {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #00b894;
}

/* Round display: repeated emoji, or English-word fallback */
.nn-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  min-height: 90px;
}

.nn-display-emoji {
  font-size: 2.8rem;
  letter-spacing: 4px;
  line-height: 1.3;
}

/* English-word fallback: the noun shown in a nice font (same
   fallback treatment used elsewhere in the site for words with
   no good icon) with a ×N badge for the quantity */
.word-fallback {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: #555;
  letter-spacing: 1px;
}

.qty-badge {
  display: inline-block;
  background: #16a085;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Two consecutive input boxes (number word + noun) */
.nn-input-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nn-input {
  padding: 0.9rem 1.2rem;
  border: 4px solid #e0e0e0;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #555;
  text-align: center;
  width: 190px;
  outline: none;
  transition: all 0.3s ease;
}

.nn-input:focus {
  border-color: #667eea;
  background: #f0f0ff;
}

.nn-input.correct {
  border-color: #00b894;
  background: #d4f5e9;
}

.nn-input.wrong {
  border-color: #e17055;
  background: #fde8e3;
}

/* ============================================================
   LEVEL III — "COMING SOON" CARDS
   ============================================================ */
.activity-card.soon {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
  filter: grayscale(40%);
}

.activity-card.soon:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.soon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #bbb;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* ============================================================
   LEVEL III — RESPONSIVE
   ============================================================ */

/* ============================================================
   COLORES ACTIVITY 3 — NUMBERS + NOUNS + COLORES
   ============================================================ */

/* Small colored dot next to color headings in Part A */
.color-swatch-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Visible color swatch next to the noun display in Part B.
   Uses inline-block so width/height actually render. */
.color-indicator {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-left: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Worked examples and game fields reuse the existing numeri-nouns
   (.nn-*) look and feel from the LEVEL III — NUMERI section. */

/* ============================================================
   END COLORES ACTIVITY 3
   ============================================================ */
@media (max-width: 768px) {
  .numeri-ref-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
  }

  .numeri-ref-tile .ref-numeral {
    font-size: 1.8rem;
  }

  .mem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .seq-tile {
    width: 90px;
    height: 90px;
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .numeri-ref-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nn-input {
    width: 140px;
    font-size: 1rem;
  }

  .seq-input {
    width: 100%;
  }
}


/* ============================================================
   LEVEL III — COLORES (Section II)
   ============================================================ */

/* Part A: full-color swatch tiles (filled with the color) */
.colores-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.color-swatch {
  height: 110px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-swatch.light {
  border: 3px solid #e0e0e0;
}

.color-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.color-swatch .tile-reveal {
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}

.color-swatch.light .tile-reveal {
  color: #555;
  text-shadow: none;
}

/* Part B: two-column matching board */
.colores-match-block {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.colores-match-block .match-grid {
  flex: 1;
  max-width: 340px;
  grid-template-columns: repeat(3, 1fr);
}

.colores-swatch-tile {
  border: 4px solid #e0e0e0;
}

.colores-swatch-tile.light {
  border: 4px solid #d0d0d0;
}

.colores-word-tile .word-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
}

/* Part C: mixing circles */
.mix-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mix-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mix-circle.mix-unknown {
  background: #f8f9fa;
  color: #999;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
}

.mix-plus, .mix-equals {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: #888;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .colores-match-block .match-grid {
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .mix-circle {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .colores-swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .color-swatch {
    height: 90px;
  }
}


/* Shared two-column board labels (Colores Part B) */
.nn-board-labels {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-weight: 800;
  color: #888;
  margin-bottom: 0.5rem;
}

.nn-board-labels div {
  flex: 1;
  max-width: 340px;
  text-align: center;
}


/* ============================================================
   LEVEL III — COLORES — ACTIVITY 2 (Color the Picture)
   colores-paint.html — appended to the shared sheet. Reuses the
   site's existing layout/score-bar/feedback/results classes; only
   the genuinely new palette + canvas + target-highlight get rules.
   ============================================================ */

/* Small, always-visible color palette (distinct from Activity 1's
   big .color-swatch tiles). */
.paint-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.paint-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.12);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.paint-swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.paint-swatch.selected {
  border-color: #2d3436;
  box-shadow: 0 0 0 4px #FF6B6B;
  transform: scale(1.18);
}

.paint-swatch.light { border-color: #d0d0d0; }

.paint-swatch .paint-reveal {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.8rem;
  color: #555;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.paint-swatch:hover .paint-reveal { opacity: 1; }

/* Instruction: a brush + the latin color word + a mini swatch.
   (Only the color is named in Latin — no region nouns.) */
.paint-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: #2d3436;
  margin: 1rem 0;
}

.paint-color-word { color: #e84393; }
.paint-brush        { font-size: 2rem; }

/*.paint-target-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
} */

.paint-target-swatch {
  display: none;
}

/* The injected SVG picture */
.paint-canvas {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border-radius: 25px;
  padding: 1rem;
  border: 6px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.paint-canvas svg { display: block; width: 100%; height: auto; }

/* Glowing "color me" target region */
.paint-target {
  stroke: #FF6B6B !important;
  stroke-width: 4 !important;
  filter: drop-shadow(0 0 6px #FF6B6B) drop-shadow(0 0 10px #FF8E53);
  animation: paint-pulse 1.4s ease-in-out infinite;
  cursor: pointer;
}

@keyframes paint-pulse {
  0%   { opacity: 0.95; filter: drop-shadow(0 0 4px #FF6B6B) drop-shadow(0 0 7px #FF8E53); }
  50%  { opacity: 1;    filter: drop-shadow(0 0 9px #FF8E53) drop-shadow(0 0 14px #ff9a56); }
  100% { opacity: 0.95; filter: drop-shadow(0 0 4px #FF6B6B) drop-shadow(0 0 7px #FF8E53); }
}

/* Picker cards */
.paint-image-card { padding: 1.5rem 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .paint-swatch    { width: 40px; height: 40px; }
  .paint-instruction { font-size: 1.8rem; }
  .paint-canvas    { padding: 0.6rem; border-width: 4px; }
}
/* ============================================================
   LEVEL III — VERBA ACTIONIS
   ============================================================ */

/* ---- Activity 1 & 4 — verb/esse tiles (Part A) ---- */
.verba-tile {
  height:alto; /* 120px; */
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem;
  cursor: default;
  background: linear-gradient(135deg, #ffe066, #ffd16b);
  color: #5a3a2a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.verba-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.verba-tile-emoji { font-size: 2.1rem; line-height: 1.2; }
.verba-tile-latin { font-family: 'Fredoka One', cursive; font-size: 1.3rem; }
.verba-tile .tile-reveal { line-height: 1.4; color: #7a4a2a; font-size: 0.9rem; font-weight: 800; font-style: italic; }

/* ---- Activity 2 — conjugation table (Part A) ---- */
.conj-table {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  overflow: hidden;
}
.conj-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px dashed #e0e0e0;
}
.conj-row:last-of-type { border-bottom: none; }
.conj-head {
  font-family: 'Fredoka One', cursive;
  color: #888;
  border-bottom: 2px solid #e0e0e0;
}
.conj-person { font-family: 'Fredoka One', cursive; color: #555; font-size: 1.1rem; }
.conj-form { font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: #444; }
/* the ending is the star of the show */
.conj-end {
  font-size: 1.9rem;
  font-weight: 800;
  color: #e84393;
}
.conj-note { text-align: center; color: #888; font-weight: 600; margin-top: 0.6rem; }

/* ---- Activity 2 — bin games (Parts B/C) ---- */
.vbin-stage {
  position: relative;
  max-width: 620px;
  margin: 1rem auto;
  background: #f0f2ff;
  border-radius: 20px;
  padding: 1.2rem;
}
.vbin-tile {
  margin: 0 auto 1rem;
  width: 150px;
  padding: 0.8rem;
  border-radius: 16px;
  background: white;
  border: 4px solid #c3c8e8;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  text-align: center;
}
.vbin-word { font-family: 'Fredoka One', cursive; font-size: 1.7rem; color: #333; }
.vbin-hint { margin-top: 0.3rem; font-size: 0.8rem; color: #666; }
.vbin-hint .hint-emoji { font-size: 1.3rem; }
.vbin-hint .hint-english { font-style: italic; }

.vbin-bins {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.vbin-bin {
  flex: 1;
  min-width: 130px;
  height: 120px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vbin-bin:hover { transform: translateY(-3px); }
.vbin-ordinal { font-family: 'Fredoka One', cursive; font-size: 1.1rem; }
/* plain white borderless circle showing the ending */
.vbin-end-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
}

/* singular — pastel palette (NOT the gender color code) */
.vbin-sg-1 { background: #ffe066; } /* yellow */
.vbin-sg-1 .vbin-ordinal { color: #6b5200; }
.vbin-sg-1 .vbin-end-circle { color: #c9a500; }
.vbin-sg-2 { background: #ffc9d8; } /* pink */
.vbin-sg-2 .vbin-ordinal { color: #8a2440; }
.vbin-sg-2 .vbin-end-circle { color: #d84d73; }
.vbin-sg-3 { background: #d9c6f5; } /* purple */
.vbin-sg-3 .vbin-ordinal { color: #4f2d7a; }
.vbin-sg-3 .vbin-end-circle { color: #8a5cc4; }

/* plural — darker shades of the same three hues */
.vbin-pl-1 { background: #f0c524; } /* darker yellow */
.vbin-pl-1 .vbin-ordinal { color: #4a3a00; }
.vbin-pl-1 .vbin-end-circle { color: #a38400; }
.vbin-pl-2 { background: #ef8aa4; } /* darker pink */
.vbin-pl-2 .vbin-ordinal { color: #5d1428; }
.vbin-pl-2 .vbin-end-circle { color: #b0274d; }
.vbin-pl-3 { background: #9f77d6; } /* darker purple */
.vbin-pl-3 .vbin-ordinal { color: #2c1a4a; }
.vbin-pl-3 .vbin-end-circle { color: #5f34a0; }

/* ---- Activity 3 — person/number icons ---- */
.vbi-rules {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.vbi-rule {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 14px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  color: #555;
}
.vbi-icon { font-size: 1.6rem; }
.vbi-ordinal { font-family: 'Fredoka One', cursive; color: #555; font-weight: 800; }
.vbi-plus { font-family: 'Fredoka One', cursive; color: #888; font-size: 1.3rem; }
.vbi-verb { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: #555; }

/* ============================================================
   LEVEL III — SENTENTIAE (Section IV)
   ============================================================ */

/* --- Activity 1 — adjective tiles grid (2 rows of 4) --- */
.sent-adj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Adjective tiles reuse .verba-tile styling; just ensure consistent height */
.sent-adj-grid .verba-tile {
  height: 120px;
  min-height: 120px;
}

/* --- Activities 2 & 3 — worked example boxes with gender borders --- */
/* Base .nn-example is already styled; these override the border color
   with the site's gender color code: red / blue / green. */
.sent-example.gender-feminine  { border-color: #e63946; }
.sent-example.gender-masculine { border-color: #1d4ed8; }
.sent-example.gender-neuter    { border-color: #32cd32; }

/* The emoji-count + sentence display is centered nicely */
.sent-example-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Activity 4 — lives / heart display --- */
.sent-lives {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
  font-size: 2.2rem;
}

.sent-heart {
  display: inline-block;
  transition: transform 0.3s ease;
  line-height: 1;
}

.sent-heart.lost {
  opacity: 0.15;
  transform: scale(0.8);
}

/* --- Responsive tweaks for Sententiae --- */
@media (max-width: 768px) {
  .sent-adj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sent-lives {
    font-size: 1.8rem;
  }

  .sent-example-group {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sent-adj-grid {
    grid-template-columns: 1fr;
  }
}
