/* .game-buttons .btn-outline-success {
  color: #198754 !important;
  border-color: #198754 !important;
  background: transparent !important;
  transition: transform 0.2s ease;
}

.game-buttons .btn-outline-success:hover {
  transform: scale(1.08);
  color: #198754 !important;
  background: transparent !important;
}
 */

/* === СЕТКА КНОПОК: 3 в ряд === */
.game-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 одинаковых столбца */
    gap: 12px;
    margin: 0 auto;
    max-width: 420px; /* общая ширина блока, и на мобиле, и на десктопе */
  }
  
  /* === САМА КНОПКА ВНУТРИ ИГРЫ === */
  .game-buttons .btn {
    width: 100% !important;          /* на всю ширину своей колонки */
    min-height: 44px;                /* нормальная высота, удобно тыкать пальцем */
    padding: 6px 4px !important;     /* вертикальные отступы */
    font-size: 14px;
    line-height: 1.2;
    display: flex;                   /* центрируем текст */
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    white-space: nowrap;             /* чтобы слово не ломалось по буквам */
  }
  
  /* === ЦВЕТА ДЛЯ OUTLINE-КНОПОК === */
  .game-buttons .btn-outline-success {
    color: #198754 !important;
    border-color: #198754 !important;
    background: transparent !important;
    transition: transform 0.2s ease;
  }
  
  /* === HOVER: ТОЛЬКО УВЕЛИЧЕНИЕ, БЕЗ ЗЕЛЁНОГО ФОНА === */
  .game-buttons .btn-outline-success:hover,
  .game-buttons .btn-outline-success:focus,
  .game-buttons .btn-outline-success:active,
  .game-buttons .btn-outline-success:not(:disabled):not(.disabled):active {
    transform: scale(1.08);
    color: #198754 !important;
    background: transparent !important;
    border-color: #198754 !important;
    box-shadow: none !important;
  }


  /* Статус ответа под инпутом */
#status {
  min-height: 28px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease;
}

/* Успех / ошибка */
.status-correct {
  color: #50CF87;
}

.status-wrong {
  color: #e74c3c;
}

/* Тряска при ошибке */
.status-shake {
  animation: status-shake .25s linear 0s 1;
}

@keyframes status-shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-3px); }
  50%  { transform: translateX(3px); }
  75%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* Подсветка инпута при правильном / неправильном ответе */
.answer-correct {
  border-color: #50CF87 !important;
  box-shadow: 0 0 0 0.25rem rgba(80, 207, 135, 0.25);
}

.answer-wrong {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.2);
}

/* Для анимации +1 возле счётчика */
.score-item {
  position: relative; /* чтобы +1 позиционировался внутри */
}

.score-plus {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #50CF87;
  animation: scorePlus 0.6s ease-out forwards;
}

@keyframes scorePlus {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1);
  }
}


/* Контейнер ответа — выглядит как инпут */
.answer-input {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 38px 6px 38px;
}

/* “Плейсхолдер” когда пусто */
.answer-input:empty::before {
  content: "Нажимай на формы глагола по очереди";
  color: #999;
  font-weight: 400;
}

/* Каждое выбранное слово */
.answer-word {
  font-weight: 700;           /* делаем жирным */
  margin: 0 3px;
}

/* Анимация появления слова */
.answer-word-anim {
  animation: answerPop 0.25s ease-out;
}

@keyframes answerPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Анимация появления (у тебя уже есть) */
.answer-word-anim {
  animation: answerPop 0.25s ease-out;
}

@keyframes answerPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Анимация исчезновения при новом раунде */
.answer-word-exit {
  animation: answerRemove 0.18s ease-in forwards;
}

@keyframes answerRemove {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}


/* Анимация появления RU слова */
.word-ru-enter {
    animation: ruEnter 0.25s ease-out forwards;
}

@keyframes ruEnter {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация исчезновения RU слова */
.word-ru-exit {
    animation: ruExit 0.18s ease-in forwards;
}

@keyframes ruExit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
}


/* ============================ */
/* Русское слово — фиксируем высоту строки */
#word-ru {
  min-height: 32px;           /* чтобы при смене не прыгало */
}

/* Наш "инпут" с ответом */


/* Плейсхолдер и текст внутри — одинаковый размер */
.answer-input,
.answer-input:empty::before {
  font-size: 16px;
  line-height: 1.2;
}

/* Плейсхолдер, когда пусто */
.answer-input:empty::before {
  content: "Нажимай на формы глагола по очереди";
  color: #999;
  font-weight: 400;
}


/* Статус — фиксированная высота, центр по вертикали и горизонтали */
#status {
  height: 48px;                  /* фикс вместо min-height */
  font-size: 1.0rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;              /* лишний текст не увеличит высоту */
  transition: opacity .2s ease, transform .2s ease;
}

@media (max-width: 576px) {
  #status {
    height: 56px;                /* чуть выше, чтобы влезало 2 строки */
    font-size: 0.95rem;
  }
}


.answer-input-wrap {
  position: relative;
}

/* сам "инпут" с ответом у тебя уже есть */
.answer-input {
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 38px 6px 38px;
}

/* кнопка-иконка удаления */
.answer-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.answer-clear-btn_visible {
  opacity: 0.7;
  pointer-events: auto;
}

.answer-clear-btn_visible:hover {
  opacity: 1;
}