/* .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;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.answer-input-wrap:focus-within {
  box-shadow: 0 0 12px var(--primary-color);
}
/* сам "инпут" с ответом у тебя уже есть */
.answer-input {
  /* height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 38px 6px 38px; */
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);

}

/* кнопка-иконка удаления */
.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;
}

/* Статус ответа */
#status {
  font-weight: 700;
  font-size: 1rem;
  min-height: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

/* Правильный ответ */
#status.correct {
  color: #28b463; /* современный зелёный */
  transform: scale(1.1);
  text-shadow: 0 2px 8px rgba(40,180,99,0.4);
}

/* Неправильный ответ */
#status.wrong {
  color: #04140b; /* современный красный */
  transform: scale(1.1);
  text-shadow: 0 2px 8px rgba(230,60,60,0.4);
}

/* Добавляем плавное исчезновение после показа */
#status.hide {
  opacity: 0;
  transform: scale(1);
}


/* =========================================
   GAME PROGRESS
========================================= */

.verbs-progress-wrap {
    width: 100%;
    max-width: 620px;

    margin-left: auto;
    margin-right: auto;
}

.verbs-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;
}

.verbs-progress-label {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verbs-progress-text {
    color: #064e3b;

    font-size: 12px;
    font-weight: 700;
}

.verbs-progress-track {
    position: relative;

    width: 100%;
    height: 7px;

    overflow: hidden;

    background: #e7f3eb;
    border-radius: 999px;
}

.verbs-progress-bar {
    width: 0%;
    height: 100%;

    background: #22c55e;
    border-radius: inherit;

    transition: width 0.3s ease;
}

@media (max-width: 575.98px) {

    .verbs-progress-wrap {
        margin-bottom: 18px !important;
    }

    .verbs-progress-head {
        margin-bottom: 6px;
    }

    .verbs-progress-track {
        height: 6px;
    }

    .verbs-progress-label,
    .verbs-progress-text {
        font-size: 11px;
    }
}


/* =========================================
   OVERALL VERBS STATISTICS
========================================= */

.verbs-overall-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    width: 100%;
    max-width: 620px;

    margin-left: auto;
    margin-right: auto;

    /* Убираем внешнюю карточку */
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.verbs-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 0;
    padding: 11px 14px;

    background: #f7fbf8;
    border: 1px solid #edf5f0;
    border-radius: 12px;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.verbs-stat-item:hover {
    background: #f0faf4;
    transform: translateY(-1px);
}

.verbs-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    border-radius: 9px;

    background: #dcfce7;
    color: #16a34a;

    font-size: 14px;
}

.verbs-stat-item > div:last-child {
    display: flex;
    flex-direction: column;
}

.verbs-stat-item strong {
    color: #064e3b;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.1;
}

.verbs-stat-item span {
    margin-top: 2px;

    color: #8a9b92;

    font-size: 9px;
    line-height: 1.2;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {

    .verbs-overall-stats {
        gap: 5px;

        padding: 7px;

        border-radius: 13px;
    }

    .verbs-stat-item {
        flex-direction: column;

        gap: 4px;

        padding: 8px 4px;

        text-align: center;
    }

    .verbs-stat-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;

        border-radius: 8px;

        font-size: 12px;
    }

    .verbs-stat-item > div:last-child {
        align-items: center;
    }

    .verbs-stat-item strong {
        font-size: 15px;
    }

    .verbs-stat-item span {
        margin-top: 1px;

        font-size: 9px;
    }
}


/* =========================================
   CURRENT SESSION SUMMARY
========================================= */

.session-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 7px;
}


/* Correct / wrong */

.session-score {
    display: flex;
    align-items: center;

    gap: 7px;
}

.session-score-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 46px;
    height: 30px;

    padding: 0 9px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;
}

.session-score-item i {
    font-size: 13px;
}


/* Correct */

.session-score-item.success {
    background: #ecfdf3;
    color: #15803d;
}


/* Wrong */

.session-score-item.error {
    background: #fff1f2;
    color: #dc2626;
}


/* Meta */

.session-meta {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #7b8f84;

    font-size: 10px;
}

.session-meta span {
    display: inline-flex;
    align-items: center;

    gap: 4px;
}

.session-meta i {
    color: #94a3b8;

    font-size: 10px;
}

.session-meta strong {
    color: #475569;
    font-weight: 600;
}

@media (max-width: 575.98px) {

    .verbs-progress-wrap {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
    }

}