* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

body {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow-x: hidden;
  color: #333;
}

/* Экран загрузки */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

.loading-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  text-align: center;
}

.loading-jar {
  width: 300px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.jar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #ff9a9e, #fad0c4);
  transition: height 0.3s;
  border-top: 3px solid rgba(255, 255, 255, 0.5);
}

.emoji-in-jar {
  position: absolute;
  font-size: 2rem;
  animation: floatUp 3s linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(100px) scale(0.5);
    opacity: 0;
  }
  20% {
    transform: translateY(80px) scale(0.8);
    opacity: 1;
  }
  80% {
    transform: translateY(20px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
}

.loading-status {
  color: white;
  font-size: 1.3rem;
  margin-top: 20px;
  text-align: center;
  min-height: 60px;
}

/* Главный экран */
#mainScreen,
#gameScreen,
#aiScreen,
#settingsScreen,
#testScreen,
#testResultScreen {
  display: none;
  width: 100%;
  max-width: 800px;
}

.game-title {
  font-size: 2.8rem;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.game-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 40px;
}

/* Плиточное меню 2x2 без прокрутки */
.mode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 700px;
  height: 500px;
  margin: 0 auto;
}

.mode-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  min-height: 0;
}

.mode-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.mode-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #2575fc;
  line-height: 1.3;
}

.mode-description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mode-difficulty {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.easy {
  background-color: #4caf50;
  color: white;
}
.medium {
  background-color: #ff9800;
  color: white;
}
.hard {
  background-color: #f44336;
  color: white;
}
.ai {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

/* Игровой экран */
#gameScreen {
  display: none;
  height: 100vh;
  flex-direction: column;
  padding: 8px;
}

.game-header {
  height: 25vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 20px 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Компактный хедер */
.game-header-compact {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.compact-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-stat {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.compact-sound {
  cursor: pointer;
  font-size: 1.1rem;
}

.compact-progress {
  background: #e8e8e8;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.compact-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  width: 0%;
  transition: width 0.5s;
}

.compact-order {
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #4caf50;
  padding: 4px 0 0;
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.stat {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 8px 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stat i {
  color: #2575fc;
}

.layer-info {
  text-align: center;
  margin-bottom: 15px;
}

.layer-title {
  font-size: 1.8rem;
  color: #2575fc;
  margin-bottom: 5px;
}

.layer-description {
  color: #666;
  font-size: 1rem;
}

.progress-container {
  background: #f0f0f0;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  width: 0%;
  transition: width 0.5s;
}

.game-board {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.layer {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-separator {
  height: 5px;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4);
  border-radius: 5px;
  margin: 5px 0;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.card {
  aspect-ratio: 3/4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    opacity 0.5s;
  position: relative;
  overflow: hidden;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 10px;
  padding: 5px;
}

.card-back {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.card-front {
  background: white;
  transform: rotateY(180deg);
}

.card.flipped .card-back {
  transform: rotateY(180deg);
}

.card.flipped .card-front {
  transform: rotateY(0deg);
}

.card-text {
  font-size: 0.7rem;
  margin-top: 5px;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
  max-height: 40%;
}

.card.matched {
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s,
    opacity 0.5s;
}

.card.selected {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(37, 117, 252, 0.8);
  z-index: 10;
}

/* Фокус для режима 0 */
.card.focused {
  box-shadow:
    0 0 0 4px #4caf50,
    0 0 20px rgba(76, 175, 80, 0.6);
  z-index: 10;
  animation: pulseFocusGreen 1.5s infinite;
}

.card.focused.wrong {
  box-shadow:
    0 0 0 4px #f44336,
    0 0 20px rgba(244, 67, 54, 0.6);
  animation: pulseFocusRed 0.5s 2;
}

.card.focused.correct {
  box-shadow:
    0 0 0 4px #6a11cb,
    0 0 20px rgba(106, 17, 203, 0.6);
  animation: pulseFocusPurple 1s 1;
}

.card.in-order {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

@keyframes pulseFocusGreen {
  0% {
    box-shadow:
      0 0 0 4px #4caf50,
      0 0 20px rgba(76, 175, 80, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px #4caf50,
      0 0 25px rgba(76, 175, 80, 0.8);
  }
  100% {
    box-shadow:
      0 0 0 4px #4caf50,
      0 0 20px rgba(76, 175, 80, 0.6);
  }
}

@keyframes pulseFocusRed {
  0%,
  100% {
    box-shadow:
      0 0 0 4px #f44336,
      0 0 20px rgba(244, 67, 54, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px #f44336,
      0 0 25px rgba(244, 67, 54, 0.8);
  }
}

@keyframes pulseFocusPurple {
  0%,
  100% {
    box-shadow:
      0 0 0 4px #6a11cb,
      0 0 20px rgba(106, 17, 203, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px #6a11cb,
      0 0 25px rgba(106, 17, 203, 0.8);
  }
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

/* Анимации */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 1s infinite;
}

/* Анимация потока эмодзи */
.emoji-flow {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  font-size: 1.5rem;
}

@keyframes emojiFlow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

/* Анимация салюта из эмодзи */
.emoji-firework {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  font-size: 2.5rem;
  opacity: 0;
}

@keyframes firework {
  0% {
    transform: translateY(0) scale(0) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: translateY(-100px) scale(1) rotate(0deg);
    opacity: 1;
  }
  80% {
    transform: translateY(-200px) scale(1) rotate(360deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-300px) scale(0) rotate(720deg);
    opacity: 0;
  }
}

/* Режим 2 (сложный) - индикатор порядка */
.order-indicator {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  margin: 10px auto;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  max-width: 90%;
  text-align: center;
}

.game-instruction {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 10px 0;
  padding: 0 10px;
}

/* Сообщение о победе */
.congratulations {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  width: 400px;
}

.congratulations-title {
  font-size: 2rem;
  color: #2575fc;
  margin-bottom: 15px;
}

.congratulations-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.congratulations-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Тестовый экран */
#testScreen,
#testResultScreen {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  margin: 20px auto;
  text-align: center;
}

.test-title {
  font-size: 2.5rem;
  color: #2575fc;
  margin-bottom: 15px;
  text-align: center;
}

.test-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.5;
}

.test-question {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.4;
}

.test-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.test-option {
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-option:hover {
  background: rgba(106, 17, 203, 0.1);
  border-color: #6a11cb;
  transform: translateY(-2px);
}

.test-option.selected {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-color: #6a11cb;
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.test-option.correct {
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  color: white;
  border-color: #4caf50;
}

.test-option.incorrect {
  background: linear-gradient(135deg, #f44336, #ff9800);
  color: white;
  border-color: #f44336;
}

.test-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.test-progress::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.test-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  z-index: 2;
  position: relative;
  transition: all 0.3s;
}

.test-step.active {
  background: #6a11cb;
  color: white;
  transform: scale(1.1);
}

.test-step.completed {
  background: #4caf50;
  color: white;
}

/* Результат теста */
.result-container {
  padding: 30px;
  text-align: center;
}

.result-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2575fc;
}

.result-emoji {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.result-score {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-message {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  padding: 0 20px;
}

.result-details {
  background: rgba(106, 17, 203, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.result-details-title {
  font-size: 1.3rem;
  color: #6a11cb;
  margin-bottom: 15px;
  text-align: center;
}

.result-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-detail-item {
  padding: 10px;
  background: white;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-detail-emoji {
  font-size: 1.5rem;
  margin-right: 10px;
}

.result-detail-text {
  flex-grow: 1;
  font-size: 1rem;
}

.result-detail-status {
  font-weight: bold;
  font-size: 1rem;
}

.result-detail-status.correct {
  color: #4caf50;
}

.result-detail-status.incorrect {
  color: #f44336;
}

/* AI Экран - пошаговая анкета */
#aiScreen {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  margin: 20px auto;
  text-align: center;
}

.ai-title {
  font-size: 2.5rem;
  color: #2575fc;
  margin-bottom: 15px;
  text-align: center;
}

.ai-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.5;
}

.ai-description {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(106, 17, 203, 0.1);
  border-radius: 15px;
  line-height: 1.6;
}

.ai-description strong {
  color: #6a11cb;
}

/* Пошаговая анкета */
.questionnaire-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-group {
  text-align: left;
}

.question-label {
  display: block;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.question-number {
  color: #6a11cb;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
}

.input-field {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: #6a11cb;
}

/* Стили для кнопок выбора в AI режиме */
.option-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.option-button {
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-button:hover {
  background: rgba(106, 17, 203, 0.1);
  border-color: #6a11cb;
  transform: translateY(-2px);
}

.option-button.selected {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-color: #6a11cb;
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.option-icon {
  font-size: 1.2rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.checkbox-label:hover {
  background: rgba(106, 17, 203, 0.1);
  border-color: #6a11cb;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  z-index: 2;
  position: relative;
  transition: all 0.3s;
}

.step.active {
  background: #6a11cb;
  color: white;
  transform: scale(1.1);
}

.step.completed {
  background: #4caf50;
  color: white;
}

/* Экран разработки */
.development-screen {
  padding: 40px 20px;
  text-align: center;
}

.development-icon {
  font-size: 5rem;
  color: #6a11cb;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.development-title {
  font-size: 2.2rem;
  color: #2575fc;
  margin-bottom: 15px;
}

.development-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.user-profile {
  background: rgba(106, 17, 203, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.profile-title {
  font-size: 1.3rem;
  color: #6a11cb;
  margin-bottom: 15px;
  text-align: center;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.profile-item {
  padding: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-item-label {
  font-weight: bold;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.profile-item-value {
  color: #333;
  font-size: 1.1rem;
}

/* Экран настроек для режима "Память" */
#settingsScreen {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  margin: 20px auto;
  text-align: center;
}

.settings-title {
  font-size: 2.5rem;
  color: #2575fc;
  margin-bottom: 30px;
  text-align: center;
}

.setting-group {
  margin-bottom: 30px;
  text-align: left;
}

.setting-label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  font-size: 1.2rem;
}

.setting-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.slider-container {
  position: relative;
  padding: 20px 0;
}

.slider-value {
  position: absolute;
  top: 0;
  right: 0;
  font-weight: bold;
  color: #6a11cb;
  font-size: 1.2rem;
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6a11cb;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(106, 17, 203, 0.3);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6a11cb;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(106, 17, 203, 0.3);
  border: none;
}

/* НОВЫЕ СТИЛИ ДЛЯ АДАПТИВНОГО МАСШТАБИРОВАНИЯ КАРТОЧЕК */

/* Адаптивные размеры карточек для простого режима */
.card.size-75 {
  width: 75px !important;
  font-size: 2.6rem !important;
}
.card.size-70 {
  width: 70px !important;
  font-size: 2.4rem !important;
}
.card.size-65 {
  width: 65px !important;
  font-size: 2.2rem !important;
}
.card.size-60 {
  width: 60px !important;
  font-size: 2rem !important;
}

/* Адаптивный текст карточек */
.card.size-75 .card-text {
  font-size: 0.65rem !important;
}
.card.size-70 .card-text {
  font-size: 0.6rem !important;
}
.card.size-65 .card-text {
  font-size: 0.55rem !important;
}
.card.size-60 .card-text {
  font-size: 0.5rem !important;
}

/* Временная подсказка о размере */
.size-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(106, 17, 203, 0.95);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  white-space: nowrap;
  animation: fadeInOut 3s ease-in-out forwards;
  pointer-events: none;
}

/* Иконка сложности в углу карточки */
.difficulty-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* Анимация для подсказки */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .game-title {
    font-size: 2.2rem;
  }

  .mode-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 70vh;
    max-height: 500px;
    gap: 12px;
  }

  .mode-card {
    padding: 12px;
  }

  .mode-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .mode-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .mode-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .mode-difficulty {
    padding: 3px 10px;
    font-size: 0.7rem;
  }

  .loading-jar {
    width: 250px;
    height: 350px;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .card {
    font-size: 1.8rem;
  }

  .card-text {
    font-size: 0.65rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stat {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .order-indicator {
    font-size: 1rem;
    padding: 8px 15px;
    max-width: 95%;
  }

  .option-button,
  .test-option {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-title,
  .settings-title,
  .test-title {
    font-size: 2rem;
  }

  .ai-description,
  .test-subtitle {
    padding: 15px;
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .test-question {
    font-size: 1.2rem;
  }

  .test-emoji {
    font-size: 2.5rem;
  }

  .result-title {
    font-size: 2rem;
  }

  .result-score {
    font-size: 3rem;
  }

  /* Адаптивные стили для карточек на планшетах */
  .card.size-60 {
    width: 58px !important;
    font-size: 1.8rem !important;
  }
  .card.size-60 .card-text {
    font-size: 0.48rem !important;
    font-weight: 700;
    line-height: 1.1;
  }

  .difficulty-badge {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 1.8rem;
  }

  .mode-selector {
    gap: 10px;
    height: 65vh;
  }

  .mode-card {
    padding: 10px;
    border-radius: 15px;
  }

  .mode-icon {
    font-size: 1.8rem;
  }

  .mode-title {
    font-size: 1.1rem;
  }

  .mode-description {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .card {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.6rem;
  }

  .order-indicator {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .ai-title,
  .settings-title,
  .test-title {
    font-size: 1.8rem;
  }

  .ai-description,
  .test-subtitle {
    padding: 12px;
    font-size: 0.9rem;
  }

  .option-button,
  .test-option {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .progress-steps,
  .test-progress {
    margin-bottom: 20px;
  }

  .step,
  .test-step {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .test-question {
    font-size: 1.1rem;
  }

  .test-emoji {
    font-size: 2rem;
  }

  .result-title {
    font-size: 1.8rem;
  }

  .result-score {
    font-size: 2.5rem;
  }

  .result-message {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  /* Адаптивные стили для карточек на мобильных */
  .card {
    min-width: 55px !important;
  }
  .card.size-60 {
    width: 55px !important;
    font-size: 1.7rem !important;
  }
  .card.size-60 .card-text {
    font-size: 0.46rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 8px;
  }

  .card {
    min-height: 73px;
  }

  /* Делаем значки сложности меньше */
  .difficulty-badge {
    width: 14px;
    height: 14px;
    font-size: 0.5rem;
    top: 3px;
    right: 3px;
  }

  /* Улучшаем визуальное восприятие уменьшенных карточек */
  .card.focused {
    box-shadow:
      0 0 0 3px #4caf50,
      0 0 15px rgba(76, 175, 80, 0.6);
    z-index: 10;
  }
}

@media (max-height: 700px) {
  .mode-selector {
    height: 60vh;
  }

  .mode-description {
    -webkit-line-clamp: 2;
  }
}


/* ============================================ */
/* LAZAGNA AI - Стили игры                      */
/* ============================================ */

/* AI Game Header */
.ai-game-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 20px 20px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-stats-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-level-info {
  text-align: center;
}

.ai-level-title {
  font-size: 1.6rem;
  color: #6a11cb;
  margin-bottom: 5px;
}

.ai-level-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.ai-combo-display {
  color: #ff6b00;
  font-weight: bold;
  font-size: 1.2rem;
  min-height: 1.5em;
  animation: pulse 0.5s;
}

/* AI Game Board */
.ai-game-board {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  position: relative;
}

.ai-instruction {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 8px;
  background: rgba(106, 17, 203, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
}

/* AI Cards */
.ai-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 10px;
  padding: 5px;
}

.ai-card {
  aspect-ratio: 3/4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.ai-card.flipped .ai-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
}

.ai-card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  font-size: 2rem;
  border-radius: 10px;
}

.ai-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
}

.ai-card-emoji {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.ai-card-text {
  font-size: 0.7rem;
  text-align: center;
  color: #333;
  word-break: break-word;
  line-height: 1.2;
}

.ai-card.ai-selected {
  border-color: #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
  transform: scale(1.05);
}

.ai-card.ai-correct {
  border-color: #6a11cb;
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.6);
  background: rgba(106, 17, 203, 0.1);
}

.ai-card.ai-wrong {
  border-color: #f44336;
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
  animation: shake 0.4s;
}

.ai-card.ai-matched {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: all 0.5s;
}

/* Memory cards */
.ai-memory-card .ai-card-front {
  display: none;
}

.ai-memory-card .ai-card-back {
  display: flex;
}

.ai-memory-card.ai-memory-flipped .ai-card-front {
  display: flex;
}

.ai-memory-card.ai-memory-flipped .ai-card-back {
  display: none;
}

.ai-memory-card.ai-matched {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Speed Quiz */
.ai-quiz-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.ai-quiz-counter {
  color: #666;
  font-size: 0.9rem;
}

.ai-quiz-timer-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.ai-quiz-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #f44336, #ff9800, #4caf50);
  transition: width 0.1s linear;
  border-radius: 4px;
}

.ai-quiz-emoji {
  font-size: 4rem;
}

.ai-quiz-word {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2575fc;
}

.ai-quiz-prompt {
  color: #666;
  font-size: 1rem;
}

.ai-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.ai-quiz-option {
  padding: 14px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.ai-quiz-option:hover {
  background: rgba(106, 17, 203, 0.1);
  border-color: #6a11cb;
  transform: translateY(-2px);
}

.ai-quiz-option.ai-quiz-correct {
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  color: white;
  border-color: #4caf50;
}

.ai-quiz-option.ai-quiz-wrong {
  background: linear-gradient(135deg, #f44336, #ff5722);
  color: white;
  border-color: #f44336;
}

/* Emoji Rain */
.ai-rain-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ai-rain-target {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  z-index: 10;
}

.ai-rain-target-label {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.ai-rain-target-word {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6a11cb;
}

.ai-rain-field {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.3);
  min-height: 300px;
}

.ai-rain-emoji {
  position: absolute;
  font-size: 2.5rem;
  cursor: pointer;
  animation: rainFall linear forwards;
  z-index: 5;
  transition: transform 0.2s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ai-rain-emoji:hover {
  transform: scale(1.3);
}

.ai-rain-emoji.ai-rain-caught {
  pointer-events: none;
}

.ai-rain-emoji.ai-rain-correct {
  animation: rainCatchCorrect 0.3s forwards;
}

.ai-rain-emoji.ai-rain-wrong {
  animation: rainCatchWrong 0.3s forwards;
}

.ai-rain-progress {
  text-align: center;
  padding: 8px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

@keyframes rainFall {
  0% { top: -50px; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes rainCatchCorrect {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes rainCatchWrong {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.5) rotate(45deg); opacity: 0.5; }
  100% { transform: scale(0) rotate(90deg); opacity: 0; }
}

/* Boss Level */
.ai-boss-phase-header {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff9800);
  border-radius: 12px;
  color: white;
  margin-bottom: 10px;
}

.ai-boss-phase-title {
  font-size: 1.3rem;
  font-weight: bold;
}

.ai-boss-phase-progress {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Level Complete */
.ai-level-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: auto;
}

.ai-level-complete-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
}

.ai-level-complete-title {
  font-size: 1.8rem;
  color: #2575fc;
  margin-bottom: 10px;
}

.ai-level-complete-score {
  font-size: 1.1rem;
  color: #4caf50;
  margin-bottom: 5px;
}

.ai-level-complete-total {
  font-size: 1.3rem;
  font-weight: bold;
  color: #6a11cb;
  margin-bottom: 5px;
}

.ai-level-complete-combo {
  font-size: 1rem;
  color: #ff6b00;
  margin-bottom: 15px;
}

.ai-game-over .ai-level-complete-title {
  color: #f44336;
}

.ai-next-level-btn {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* AI Result Screen */
.ai-result-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ai-result-emoji {
  font-size: 5rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.ai-result-title {
  font-size: 2.2rem;
  color: #2575fc;
  margin-bottom: 10px;
}

.ai-result-score {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

.ai-result-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.ai-result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.ai-result-stat {
  background: rgba(106, 17, 203, 0.08);
  border-radius: 12px;
  padding: 15px;
}

.ai-result-stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #6a11cb;
}

.ai-result-stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* AI Mobile responsive */
@media (max-width: 768px) {
  .ai-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }

  .ai-card-emoji {
    font-size: 1.5rem;
  }

  .ai-card-text {
    font-size: 0.6rem;
  }

  .ai-quiz-emoji {
    font-size: 3rem;
  }

  .ai-quiz-word {
    font-size: 1.4rem;
  }

  .ai-quiz-option {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .ai-rain-emoji {
    font-size: 2rem;
  }

  .ai-result-score {
    font-size: 2.5rem;
  }

  .ai-result-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .ai-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
  }

  .ai-card-emoji {
    font-size: 1.3rem;
  }

  .ai-card-text {
    font-size: 0.55rem;
  }

  .ai-level-title {
    font-size: 1.3rem;
  }

  .ai-quiz-emoji {
    font-size: 2.5rem;
  }

  .ai-quiz-word {
    font-size: 1.2rem;
  }

  .ai-rain-emoji {
    font-size: 1.8rem;
  }

  .ai-result-stat-value {
    font-size: 1.4rem;
  }
}


/* Кнопка полного экрана — убрана, используется .btn */


/* ============================================ */
/* EMOJI SPRINT — Стили гонки на скорость       */
/* ============================================ */

.crush-board {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin: 0 8px;
  padding: 0;
  width: calc(100% - 16px);
  box-sizing: border-box;
  max-width: 420px;
  overflow: hidden;
}

/* Игровой контейнер */
.sprint-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  gap: 8px;
}

.sprint-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 5px;
}

.sprint-stat {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}

/* Таймер-полоска */
.sprint-timer-bar {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.sprint-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 4px;
  transition: width 0.05s linear;
}

/* Серия */
.sprint-streak {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff6b00;
  min-height: 1.4em;
  text-align: center;
}

.sprint-streak-pop {
  animation: sprintPop 0.4s ease-out;
}

@keyframes sprintPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Область с эмодзи */
.sprint-emoji-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

.sprint-emoji {
  font-size: 4.5rem;
  animation: sprintBounce 0.5s ease-out;
}

@keyframes sprintBounce {
  0% { transform: scale(0.3) translateY(-30px); opacity: 0; }
  60% { transform: scale(1.1) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.sprint-word {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2575fc;
  margin-top: 4px;
}

.sprint-prompt {
  font-size: 0.9rem;
  color: #888;
}

/* Варианты ответов */
.sprint-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

.sprint-option {
  padding: 14px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  background: #f8f9fa;
  font-size: 1.05rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-weight: 500;
}

.sprint-option:hover {
  background: rgba(106, 17, 203, 0.08);
  border-color: #b388ff;
  transform: translateY(-2px);
}

.sprint-option:active {
  transform: scale(0.97);
}

.sprint-option.sprint-correct {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border-color: #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  transform: scale(1.03);
}

.sprint-option.sprint-wrong {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
  border-color: #f44336;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  animation: shake 0.4s;
}

/* Фидбек */
.sprint-feedback {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
  animation: sprintFeedback 1s ease-out forwards;
  z-index: 10;
  white-space: nowrap;
}

.sprint-fb-good {
  color: #4caf50;
  text-shadow: 0 1px 4px rgba(76, 175, 80, 0.4);
}

.sprint-fb-bad {
  color: #f44336;
  text-shadow: 0 1px 4px rgba(244, 67, 54, 0.4);
}

@keyframes sprintFeedback {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-40px); opacity: 0; }
}

/* Результат */
.sprint-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .sprint-emoji {
    font-size: 3.5rem;
  }
  .sprint-word {
    font-size: 1.3rem;
  }
  .sprint-options {
    gap: 8px;
  }
  .sprint-option {
    padding: 12px 8px;
    font-size: 0.95rem;
  }
}

