/* Global Vocabulary Exercise Styles */
:root {
  --primary-color: #e50914;
  --primary-rgb: 229, 9, 20;
  --primary-hover: #b2070f;
  --bg-color-dark: #121212;
  --text-color-dark: #f0f0f0;
  --bg-color-light: #f5f5f5;
  --text-color-light: #333;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
  transition: background-color 0.3s, color 0.3s;
}

body:not(.light-mode) {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

body.light-mode {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}

/* Allow sticky elements to reference viewport */
.content-container {
  overflow: visible !important;
}

.vocab-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  overflow: visible;
}

.vocab-container-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  overflow: visible;
}

/* Remove padding for games that need full width */
.vocab-container-inner:has(#word-search-game-container),
.vocab-container-inner:has(#crossword-game-container),
.vocab-container-inner:has(#hangman-game-container) {
  padding: 0;
  max-width: none;
}

.vocab-header h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-transform: uppercase;
}

/* Flashcard Display Toggle */
.vocab-display-toggle {
  --toggle-padding: 6px;
  --toggle-highlight-x: var(--toggle-padding);
  --toggle-highlight-width: 104px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: var(--toggle-padding);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

body.light-mode .vocab-display-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.vocab-display-toggle::before {
  content: "";
  position: absolute;
  top: var(--toggle-padding);
  bottom: var(--toggle-padding);
  left: 0;
  width: var(--toggle-highlight-width);
  border-radius: 999px;
  background: var(--primary-color);
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.28);
  transform: translateX(var(--toggle-highlight-x));
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.vocab-display-toggle .toggle-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
  background: transparent;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1;
}

.vocab-display-toggle .toggle-btn.active {
  color: #fff;
}

/* Flashcards Grid */
.flashcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 10px;
}

@media (min-width: 900px) {
  .flashcard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flashcard {
  background-color: transparent;
  height: 220px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flashcard.is-filtered-out {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.flashcard.is-reappearing {
  animation: flashcardPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes flashcardPopIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.flashcard:hover .flashcard-inner {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

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

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
}

.flashcard-front {
  background: linear-gradient(135deg, var(--primary-color), #b2070f);
  color: white;
  font-size: 1.8em;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.flashcard-front p {
  margin: 0 0 16px;
  width: 100%;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.flashcard-back {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #333;
  transform: rotateY(180deg);
  font-size: 1.1em;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

body.light-mode .flashcard-back {
  background: white;
  color: #333;
  border: 2px solid #ddd;
}

.flashcard-back-text {
  margin: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  transform: translateY(0);
}

.flashcard-back-image {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 130px;
  max-height: 130px;
  width: auto;
  height: auto;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: brightness(0) invert(0);
}

.flashcard.image-mode .flashcard-back-image {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.flashcard.image-mode .flashcard-back-text {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.noun-project-icon {
  filter: brightness(0) invert(1);
}

body.light-mode .noun-project-icon {
  filter: brightness(0) invert(0);
}

.flashcard-back-image {
  filter: brightness(0) invert(0) !important;
}

/* Audio Button */
.audio-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-top: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.3s;
  z-index: 20;
  position: absolute;
  bottom: 20px;
  transform: translateZ(60px);
  /* Increased lift to prevent flickering */
}

.audio-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}

.audio-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Scrollbar for back content */
.flashcard-back::-webkit-scrollbar {
  width: 6px;
}

.flashcard-back::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

/* --- BUTTONS --- */
.action-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 35px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.action-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

.action-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* --- MATCHING GAME STYLES --- */
.matching-wrapper {
  width: 100%;
}

.matching-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.match-item {
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
  min-height: 80px;
  position: relative;
  z-index: 1;
  color: var(--text-color-dark);
}

.defs-col .match-item {
  font-size: 0.9em;
}

.match-item-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
}

body.light-mode .match-item-image {
  filter: brightness(0) invert(0) !important;
}


body.light-mode .match-item {
  background-color: #fff;
  border-color: #ddd;
  color: var(--text-color-light);
}

.match-item:hover {
  transform: scale(1.02);
  border-color: #888;
  z-index: 2;
}

.match-item.selected {
  border-color: var(--primary-color);
  background-color: rgba(229, 9, 20, 0.1);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
  z-index: 3;
}

.match-item.matched {
  background-color: rgba(46, 204, 113, 0.2) !important;
  border-color: #2f9246 !important;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.match-item.match-error {
  animation: shake 0.6s, wrongFlash 0.8s;
  background-color: rgba(229, 9, 20, 0.2);
  border-color: var(--primary-color);
}

/* Exercise Instructions */
.exercise-instructions {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(229, 9, 20, 0.05));
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 0 10px 10px 0;
  font-size: 1.1rem;
  color: inherit;
}

body.light-mode .exercise-instructions {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08), rgba(229, 9, 20, 0.02));
}

.exercise-instructions p {
  margin: 0;
}

.exercise-instructions strong {
  color: var(--primary-color);
}

/* Enhanced Wrong Animation - More dramatic feedback */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-8px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(8px);
  }
}

@keyframes wrongFlash {
  0% {
    background-color: rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }

  25% {
    background-color: rgba(231, 76, 60, 0.6);
    box-shadow: 0 0 20px 5px rgba(231, 76, 60, 0.5);
  }

  50% {
    background-color: rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 30px 10px rgba(231, 76, 60, 0.3);
  }

  75% {
    background-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 15px 3px rgba(231, 76, 60, 0.4);
  }

  100% {
    background-color: transparent;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes wrongPulse {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.05);
  }

  50% {
    transform: scale(0.95);
  }

  75% {
    transform: scale(1.03);
  }
}

.match-group {
  display: grid;
  gap: 15px;
}

.group-separator {
  grid-column: 1 / -1;
  border: none;
  height: 2px;
  background-color: var(--primary-color);
  margin: 20px 0;
  opacity: 0.3;
}

/* --- GAP FILL STYLES --- */
.floating-word-bank-container {
  position: -webkit-sticky;
  position: sticky;
  top: 10px;
  /* Reduced top offset */
  z-index: 999;
  /* Higher z-index to ensure it stays on top */
  margin-bottom: 30px;
  background: var(--bg-color-dark);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  transition: background-color 0.3s;
  /* Ensure it works within flex/grid parents */
  align-self: start;
}

body.light-mode .floating-word-bank-container {
  background: #fdfdfd;
  border-color: #ddd;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 40px;
}

.draggable-word {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  /* More rounded modern look */
  cursor: grab;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.draggable-word:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.draggable-word:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.draggable-word.mobile-selected {
  background: #ffd166;
  color: #1b1b1b;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.3), 0 8px 18px rgba(0, 0, 0, 0.25);
  animation: selectedPillWiggle 0.45s ease, selectedPillPulse 1.15s ease-in-out infinite;
}

@keyframes selectedPillWiggle {
  0% {
    transform: translateY(0) scale(1);
  }

  25% {
    transform: translateY(-1px) rotate(-2deg) scale(1.04);
  }

  50% {
    transform: translateY(-2px) rotate(2deg) scale(1.06);
  }

  75% {
    transform: translateY(-1px) rotate(-1deg) scale(1.03);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1.02);
  }
}

@keyframes selectedPillPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.5), 0 8px 18px rgba(0, 0, 0, 0.25);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 209, 102, 0), 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0), 0 8px 18px rgba(0, 0, 0, 0.25);
  }
}

/* Modern Input Styling */
.gap-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid #666;
  color: inherit;
  font-size: inherit;
  text-align: center;
  width: 140px;
  margin: 0 5px;
  padding: 5px 0;
  transition: all 0.3s ease;
  border-radius: 0;
  /* Remove default radius */
}

body.light-mode .gap-input {
  border-bottom-color: #aaa;
}

.gap-input:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
  background: rgba(229, 9, 20, 0.05);
  /* Very subtle tint on focus */
}

body.mobile-word-selected .gap-input:not(.correct):not(.incorrect):not(:disabled) {
  border-bottom-color: rgba(var(--primary-rgb), 0.75);
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.38);
  border-radius: 6px;
  padding: 5px 8px;
  animation: targetBlankPulse 1.1s ease-in-out infinite;
}

body.light-mode.mobile-word-selected .gap-input:not(.correct):not(.incorrect):not(:disabled) {
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.28);
}

.gap-input.correct {
  border-bottom-color: #2ecc71;
  color: #2ecc71;
  background: transparent;
}

.gap-input.incorrect {
  border-bottom-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  animation: shake 0.6s, wrongPulse 0.6s;
}


.drop-zone {
  display: inline-flex;
  /* Use flex to center content properly */
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 34px;
  /* Slightly taller */
  border-bottom: 2px dashed #777;
  vertical-align: middle;
  margin: 4px 6px;
  /* Ensure spacing around items */
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  line-height: normal;
  /* Reset line height inside */
  padding: 0 12px;
  border-radius: 4px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  /* Subtle background */
}

body.light-mode .drop-zone {
  border-bottom-color: #bbb;
  background: rgba(0, 0, 0, 0.02);
}

.drop-zone.filled {
  border-bottom: 2px solid transparent;
  /* Hide dashed border */
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--text-color-dark);
}

body.light-mode .drop-zone.filled {
  color: var(--text-color-light);
}

.drop-zone.correct {
  color: white !important;
  background-color: #2ecc71 !important;
  border: none !important;
  /* Remove borders to prevent clash */
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drop-zone.incorrect {
  color: white !important;
  background-color: #e74c3c !important;
  border: none !important;
  animation: shake 0.6s, wrongFlash 0.8s, wrongPulse 0.6s;
  box-shadow: 0 0 20px 5px rgba(231, 76, 60, 0.4);
}

body.mobile-word-selected .drop-zone:not(.correct):not(.incorrect):not(.filled) {
  border-bottom: 2px dashed rgba(var(--primary-rgb), 0.75);
  background: rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.34);
  border-radius: 6px;
  animation: targetBlankPulse 1.1s ease-in-out infinite;
}

body.light-mode.mobile-word-selected .drop-zone:not(.correct):not(.incorrect):not(.filled) {
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.24);
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes targetBlankPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* Gap Fill Item Layout */
.gapfill-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 12px;
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping */
  align-items: center;
  /* Vertically align check button */
  justify-content: space-between;
  /* Push button to right if it fits */
  gap: 15px;
}

body.light-mode .gapfill-item {
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gapfill-sentence-text {
  flex: 1 1 70%;
  /* Take up most space */
  min-width: 300px;
}

.item-check-btn {
  margin-top: 0 !important;
  /* Override inline style from JS */
  padding: 10px 25px !important;
  font-size: 0.9rem !important;
  flex: 0 0 auto;
  /* Don't shrink */
  margin-left: auto;
  /* Push to right */
}

/* Flying animation clone style */
.flying-word {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Highlight Instructions Animation */
@keyframes highlight-text {
  0% {
    color: inherit;
    transform: scale(1);
  }

  50% {
    color: var(--primary-color);
    transform: scale(1.05);
  }

  100% {
    color: inherit;
    transform: scale(1);
  }
}

.instruction-highlight {
  animation: highlight-text 0.5s ease-in-out;
}

/* =========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================= */
@media (max-width: 768px) {

  /* Content container - edge-to-edge on mobile */
  .content-container {
    margin: 0 !important;
    padding: 15px !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Main wrapper adjustments */
  .main-wrapper {
    padding: 0;
  }

  /* Header adjustments */
  .header {
    padding: 0 15px !important;
  }

  .page-top {
    padding-bottom: 40px;
  }

  .main-title {
    font-size: 1.8em !important;
    padding: 15px !important;
  }

  /* Inner container padding */
  .vocab-container-inner {
    padding: 10px 5px;
  }

  .vocab-container {
    padding: 20px 10px;
  }

  /* Exercise instructions */
  .exercise-instructions {
    padding: 12px 15px;
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Word bank - compact on mobile */
  .floating-word-bank-container {
    position: -webkit-sticky;
    position: sticky;
    top: var(--mobile-sticky-top, max(8px, env(safe-area-inset-top)));
    z-index: 1000;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .floating-word-bank-container.keyboard-open {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  }

  .word-bank {
    gap: 8px;
  }

  .draggable-word {
    padding: 6px 12px;
    font-size: 0.85rem;
    touch-action: manipulation;
  }

  /* Gap fill items */
  .gapfill-item {
    padding: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .gapfill-sentence-text {
    min-width: auto;
    flex: 1 1 100%;
  }

  .gap-input {
    width: 100px;
    font-size: 0.9rem;
  }

  .item-check-btn {
    margin-top: 15px !important;
    width: 100%;
    margin-left: 0 !important;
  }

  /* Drop zones for drag and drop */
  .drop-zone {
    min-width: 80px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.9rem;
    cursor: pointer;
  }

  /* Text container for gap fill text */
  .text-container {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 15px !important;
  }

  /* Flashcard grid */
  .flashcard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 5px;
  }

  .flashcard {
    height: 180px;
  }

  .flashcard-front {
    font-size: 1.4em;
  }

  .flashcard-back {
    font-size: 0.95em;
  }

  /* Matching game - keep two columns on mobile for word/definition matching */
  .matching-grid-layout {
    grid-template-columns: 1fr 1fr;
    /* Keep two columns! */
    gap: 8px;
  }

  .match-group {
    gap: 8px;
  }

  .match-item {
    padding: 10px 8px;
    min-height: 50px;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .defs-col .match-item {
    font-size: 0.8rem;
  }

  /* Action buttons */
  .action-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  /* Exercise subtitle */
  .exercise-subtitle {
    font-size: 1.5em !important;
    margin-bottom: 15px !important;
  }

  /* Footer adjustments */
  .footer {
    padding: 15px !important;
  }
}
