/* Панель над счетчиком: переключатель режима и кнопка «Клавиши» */
.counter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.counter-toolbar__keys {
    display: inline-flex;
    align-items: center;
    column-gap: 8px;
    padding: 12px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #fff;
    font-family: "Raleway";
    font-size: 14px;
    color: #141414;
    cursor: pointer;
    transition: 0.4s;
}

.counter-toolbar__keys:hover {
    border-color: #141414;
}

.counter-toolbar__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #141414;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Переключатель режима страницы счетчика: один хант / несколько консолей */
.counter-mode {
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    background-color: #d9d9d9;
}

.counter-mode__option {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.4s;
}

.counter-mode__option--active {
    background-color: #141414;
    color: #fff;
}

/* Режимы показываются по одному */
.counter-pane {
    display: none;
}

.counter-pane--active {
    display: block;
}

/* Лента хантов над счетчиком (режим «Один хант») */
.counter-hunts {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    overflow-x: auto;
}

.counter-hunts__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 6px;
    min-width: 170px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #F8F8F8;
    color: #141414;
    text-decoration: none;
    transition: 0.4s;
}

.counter-hunts__item:hover {
    border-color: #d9d9d9;
}

.counter-hunts__item--active,
.counter-hunts__item--active:hover {
    border-color: #141414;
}

.counter-hunts__img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.counter-hunts__name {
    font-size: 14px;
    text-transform: uppercase;
}

.counter-hunts__count {
    font-family: "Alatsi";
    font-size: 22px;
    font-weight: 700;
}

.counter-hunts__game,
.counter-hunts__timer,
.counter-hunts__limit {
    font-size: 12px;
    color: #838383;
}

.counter-hunts__timer {
    display: flex;
    align-items: center;
    column-gap: 6px;
}

.counter-hunts__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d9d9d9;
}

.counter-hunts__dot--running {
    background-color: #D18ABD;
}

.counter-hunts__add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    min-width: 170px;
    border: 2px dashed #5f5f5f;
    border-radius: 12px;
    color: #5f5f5f;
    cursor: pointer;
    transition: 0.4s;
}

.counter-hunts__add:hover {
    background-color: #F8F8F8;
}

.counter-hunts__add--disabled {
    opacity: 0.5;
    cursor: default;
}

.counter-hunts__add--disabled:hover {
    background-color: transparent;
}

.counter-hunts__plus {
    font-size: 40px;
    line-height: 100%;
}

/* Панель «Несколько консолей» */
.counter-panel {
    margin-top: 30px;
    margin-bottom: 60px;
}

.counter-panel__timer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.counter-panel__timer-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.counter-panel__timer-for {
    font-size: 14px;
    color: #838383;
}

.counter-panel__clock {
    margin-left: auto;
}

.counter-panel__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.counter-panel__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
    padding: 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.counter-panel__card--timer {
    border-color: #D18ABD;
}

.counter-panel__img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.counter-panel__name {
    font-size: 18px;
    text-transform: uppercase;
}

.counter-panel__game {
    font-size: 13px;
    color: #838383;
    text-align: center;
}

.counter-panel__count {
    font-family: "Alatsi";
    font-size: 40px;
    font-weight: 700;
}

.counter-panel__controls {
    display: flex;
    column-gap: 10px;
}

.counter-panel__btn {
    width: 60px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background-color: #141414;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: 0.4s;
}

.counter-panel__btn:hover {
    background-color: #333333;
}

.counter-panel__btn--minus {
    background-color: #d9d9d9;
    color: #141414;
}

.counter-panel__btn--minus:hover {
    background-color: #c4c4c4;
}

.counter-panel__links {
    display: flex;
    column-gap: 15px;
    font-size: 13px;
    text-transform: uppercase;
}

.counter-panel__link {
    color: #141414;
    text-decoration: underline;
    cursor: pointer;
}

.counter-panel__label {
    color: #D18ABD;
}

.counter-panel__add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 8px;
    min-height: 200px;
    border: 2px dashed #5f5f5f;
    border-radius: 12px;
    color: #5f5f5f;
    cursor: pointer;
    transition: 0.4s;
}

.counter-panel__add:hover {
    background-color: #F8F8F8;
}

.counter-panel__add--disabled {
    opacity: 0.5;
    cursor: default;
}

.counter-panel__plus {
    font-size: 40px;
    line-height: 100%;
}

.counter-panel__limit {
    font-size: 12px;
    color: #838383;
}

/* Таймер: время и кнопки «старт/пауза» и «сброс» — в счетчике и в панели */
.timer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.timer__value {
    font-family: "Alatsi";
    font-size: 30px;
    line-height: 100%;
}

.timer__controls {
    display: flex;
    gap: 8px;
}

.timer__play,
.timer__reset {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 6px;
    background-color: #141414;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.timer__reset {
    background-color: #d9d9d9;
    color: #141414;
}

.timer__play:hover {
    background-color: #333333;
}

.timer__reset:hover {
    background-color: #c4c4c4;
}

.timer__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timer__icon--play {
    fill: currentColor;
}

/* Идет — показываем «пауза», стоит — «старт» */
.timer__icon--pause,
.timer__play--running .timer__icon--play {
    display: none;
}

.timer__play--running .timer__icon--pause {
    display: block;
}

/* Счетчик ханта: большая «+», плитки и прогресс */
.hunt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.hunt__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.hunt__img {
    width: 230px;
    height: 230px;
    object-fit: contain;
}

.hunt__count-view {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.hunt__count {
    font-family: "Alatsi";
    font-size: 72px;
    line-height: 100%;
}

.hunt__count-form,
.hunt__step-form {
    display: none;
    align-items: center;
    gap: 8px;
}

.hunt__count-input,
.hunt__step-input {
    width: 120px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-family: "Alatsi";
    font-size: 22px;
}

.hunt__step-input {
    width: 70px;
    font-size: 18px;
}

.hunt__edit {
    display: flex;
    padding: 6px;
    border: none;
    border-radius: 6px;
    background-color: transparent;
    color: #838383;
    cursor: pointer;
    transition: 0.3s;
}

.hunt__edit:hover {
    background-color: #fff;
    color: #141414;
}

.hunt__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hunt__label {
    margin-top: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #838383;
    text-transform: uppercase;
}

.hunt__controls {
    display: flex;
    gap: 12px;
    width: 100%;
}

.hunt__plus {
    flex-grow: 1;
    height: 70px;
    border: none;
    border-radius: 6px;
    background-color: #141414;
    font-family: "Alatsi";
    font-size: 34px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.hunt__plus:hover {
    background-color: #333333;
}

.hunt__minus {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 6px;
    background-color: #d9d9d9;
    color: #141414;
    cursor: pointer;
    transition: 0.3s;
}

.hunt__minus:hover {
    background-color: #c4c4c4;
}

.hunt__hint {
    margin-top: 12px;
    font-size: 13px;
    color: #838383;
}

.hunt__side {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.hunt__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hunt__chip {
    display: inline-flex;
    align-items: center;
    column-gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #F8F8F8;
    font-size: 14px;
}

.hunt__chip--toggle {
    border: 1px solid #d9d9d9;
    background-color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.hunt__charm {
    display: none;
}

.hunt__check {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #c4c4c4;
    border-radius: 6px;
    color: transparent;
}

.hunt__check .hunt__icon {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.hunt__chip--toggle:has(.hunt__charm:checked) {
    border-color: #D18ABD;
    background-color: #fdf1fa;
}

.hunt__charm:checked + .hunt__check {
    border-color: #D18ABD;
    background-color: #D18ABD;
    color: #fff;
}

.hunt__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hunt__tile {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    padding: 16px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.hunt__tile--wide {
    grid-column: 1 / -1;
}

.hunt__tile-label {
    font-size: 12px;
    color: #838383;
    text-transform: uppercase;
}

.hunt__tile-value {
    font-family: "Alatsi";
    font-size: 28px;
    line-height: 110%;
}

.hunt__step-view {
    display: flex;
    align-items: center;
    column-gap: 6px;
}

.hunt__progress {
    padding: 16px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.hunt__progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

.hunt__chance {
    font-family: "Alatsi";
    font-size: 16px;
}

.hunt__bar {
    height: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #e6e6e6;
    overflow: hidden;
}

.hunt__bar-fill {
    height: 100%;
    max-width: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #D18ABD, #b46aa5);
    transition: width 0.3s;
}

.hunt__progress-note {
    margin-top: 8px;
    font-size: 12px;
    color: #838383;
}

.hunt__actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

/* Кнопки с общим классом .btn пишем двумя классами: main.css подключается позже
   и иначе перебил бы display из .btn */
.hunt__shiny.btn {
    display: flex;
    flex-grow: 1;
    column-gap: 10px;
}

.hunt__remove {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 56px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #fff;
    color: #141414;
    cursor: pointer;
    transition: 0.3s;
}

.hunt__remove:hover {
    border-color: #b5475b;
    color: #b5475b;
}

/* Экран поимки: показывается вместо счетчика после «Шайни!» */
.hunt-catch {
    position: relative;
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 35px;
    border-radius: 12px;
    background: radial-gradient(circle at 25% 40%, #fbe3f3 0%, #F8F8F8 55%);
    overflow: hidden;
}

.hunt-catch__sparkle {
    position: absolute;
    width: 26px;
    height: 26px;
    fill: #D18ABD;
}

.hunt-catch__sparkle--first {
    top: 25px;
    left: 30px;
}

.hunt-catch__sparkle--second {
    bottom: 40px;
    left: 40%;
    width: 18px;
    height: 18px;
    fill: #141414;
    opacity: 0.5;
}

.hunt-catch__img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.hunt-catch__title {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.hunt-catch__subtitle {
    margin-top: 6px;
    color: #838383;
}

.hunt-catch__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.hunt-catch__tile {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #fff;
}

.hunt-catch__tile b {
    font-family: "Alatsi";
    font-size: 26px;
    font-weight: 400;
}

.hunt-catch__luck {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #141414;
    font-size: 15px;
    color: #fff;
}

.hunt-catch__luck .hunt__icon {
    flex-shrink: 0;
    fill: #D18ABD;
    stroke: none;
}

.hunt-catch__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* Пустое состояние: счетчиков нет — большая пунктирная кнопка */
.counter-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    width: 100%;
    margin-top: 40px;
    padding: 50px 20px;
    border: 2px dashed #b5b5b5;
    border-radius: 12px;
    background-color: transparent;
    font-family: "Raleway";
    color: #141414;
    cursor: pointer;
    transition: 0.4s;
}

.counter-start:hover {
    border-color: #D18ABD;
    background-color: #fdf6fb;
}

.counter-start__circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #141414;
    color: #fff;
}

.counter-start__icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.counter-start__title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.counter-start__text {
    font-size: 14px;
    color: #838383;
}

/* Последние пойманные шайни */
.counter-caught {
    margin-top: 60px;
}

.counter-caught__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.counter-caught__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.counter-caught__link {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    font-size: 14px;
    color: #141414;
    text-transform: uppercase;
}

.counter-caught__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.counter-caught__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.counter-caught__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.counter-caught__date {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: #fff;
    font-size: 12px;
}

.counter-caught__img {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    object-fit: contain;
}

.counter-caught__name {
    margin-top: 8px;
    font-size: 18px;
    text-transform: uppercase;
}

.counter-caught__game {
    margin-top: 3px;
    font-size: 13px;
    color: #838383;
    text-align: center;
}

.counter-caught__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
}

.counter-caught__stat {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: 6px;
    background-color: #fff;
    font-size: 11px;
    color: #838383;
    text-align: center;
    text-transform: uppercase;
}

.counter-caught__stat b {
    font-family: "Alatsi";
    font-size: 18px;
    font-weight: 400;
    color: #141414;
}

.counter-caught__guest {
    display: flex;
    align-items: center;
    column-gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #fdf1fa;
    font-size: 14px;
}

.counter-caught__guest .counter-caught__icon {
    color: #D18ABD;
}

.counter-caught__guest a {
    color: #141414;
    text-decoration: underline;
}

/* Настройка нового счетчика: сводка слева, список шага справа */
.counter-setup {
    display: none;
    margin-top: 60px;
}

.counter-setup__title {
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.counter-setup__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: start;
}

.counter-setup__summary {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.counter-setup__row {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #F8F8F8;
    cursor: pointer;
    transition: 0.3s;
}

.counter-setup__row--active {
    border-color: #141414;
}

.counter-setup__row--disabled {
    opacity: 0.5;
    cursor: default;
}

.counter-setup__label {
    font-size: 12px;
    color: #838383;
    text-transform: uppercase;
}

.counter-setup__value {
    font-size: 16px;
    color: #b5b5b5;
}

.counter-setup__row--done .counter-setup__value,
.counter-setup__row--active .counter-setup__value {
    color: #141414;
}

.counter-setup__odds {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #141414;
    font-size: 14px;
    color: #fff;
}

.counter-setup__odds-value {
    font-family: "Alatsi";
    font-size: 28px;
}

.counter-setup__body {
    min-height: 420px;
    padding: 20px;
    border-radius: 12px;
    background-color: #F8F8F8;
}

.counter-setup__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.counter-setup__search {
    display: flex;
    flex-grow: 1;
    align-items: center;
    column-gap: 10px;
    padding: 0 14px;
    border-radius: 6px;
    background-color: #fff;
}

.counter-setup__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #838383;
    stroke-width: 2;
    stroke-linecap: round;
}

.counter-setup__input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    background-color: transparent;
    font-family: "Raleway";
    font-size: 15px;
}

/* Выпадающий список поколений — в виде поля поиска (общий компонент sort-select не трогаем).
   Два класса — потому что main.css подключается позже и перебил бы .sort-select { margin-bottom: 40px } */
.counter-setup__gens.sort-select {
    margin-bottom: 0;
}

.counter-setup__gens .sort-select__head {
    min-width: 210px;
    padding: 12px 40px 12px 14px;
    border-radius: 6px;
    background-color: #fff;
    font-family: "Raleway";
    font-size: 15px;
    text-align: left;
}

.counter-setup__gens .sort-select__head::after {
    top: 50%;
    right: 14px;
    margin-top: -5px;
}

.counter-setup__gens .sort-select__body {
    top: calc(100% + 6px);
    max-height: 280px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.counter-setup__gens .sort-option {
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
}

/* Кастомный скролл, как у списков сайта */
.counter-setup__list::-webkit-scrollbar,
.counter-setup__gens .sort-select__body::-webkit-scrollbar {
    width: 5px;
}

.counter-setup__list::-webkit-scrollbar-thumb,
.counter-setup__gens .sort-select__body::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #7b78a8;
}

.counter-setup__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 520px;
    padding-right: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #7b78a8 transparent;
}

.counter-setup__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.counter-setup__item:hover {
    border-color: #d9d9d9;
}

.counter-setup__item--active,
.counter-setup__item--active:hover {
    border-color: #D18ABD;
}

.counter-setup__img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* У игр — вертикальная обложка */
.counter-setup__item--game .counter-setup__img {
    width: 80px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.counter-setup__name {
    font-size: 14px;
    text-transform: uppercase;
}

.counter-setup__note {
    font-size: 12px;
    color: #838383;
}

.counter-setup__empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #838383;
    text-align: center;
}

/* Подсветка карточки при нажатии горячей клавиши */
.counter-panel__card--flash {
    border-color: #D18ABD;
    background-color: #fdf1fa;
}

.counter-hunts__item--flash {
    border-color: #D18ABD;
}

/* Окно «Горячие клавиши» — общий попап .modal (assets/css/modal.css), здесь только содержимое */
.hotkeys__table {
    width: 100%;
    border-collapse: collapse;
}

.hotkeys__table th {
    padding: 10px;
    border-bottom: 2px solid #141414;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.hotkeys__table td {
    padding: 10px;
    border-bottom: 1px solid #ececec;
}

.hotkeys__hunt {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.hotkeys__img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.hotkeys__game {
    font-size: 12px;
    color: #838383;
}

.hotkeys__key {
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #c4c4c4;
    border-bottom-width: 3px;
    border-radius: 6px;
    background-color: #fff;
    font-family: "Alatsi";
    font-size: 15px;
    color: #141414;
    cursor: pointer;
}

.hotkeys__key--empty {
    font-family: "Raleway";
    font-size: 12px;
    color: #838383;
}

.hotkeys__key--wait {
    border-color: #D18ABD;
    color: #D18ABD;
}

.hotkeys__clear {
    border: none;
    background-color: transparent;
    font-family: "Raleway";
    color: #838383;
    text-decoration: underline;
    cursor: pointer;
}

.hotkeys__warning {
    display: none;
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: #fdf1fa;
    font-size: 14px;
    color: #8a3d75;
}

/* Переключатель вместо стандартного чекбокса */
.hotkeys__option {
    display: flex;
    align-items: center;
    column-gap: 12px;
    margin-top: 15px;
    font-size: 14px;
    cursor: pointer;
}

.hotkeys__checkbox {
    display: none;
}

.hotkeys__switch {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background-color: #d9d9d9;
    transition: 0.3s;
}

.hotkeys__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    transition: 0.3s;
}

.hotkeys__checkbox:checked + .hotkeys__switch {
    background-color: #D18ABD;
}

.hotkeys__checkbox:checked + .hotkeys__switch::after {
    left: 23px;
}

.hotkeys__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

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

    /* Сводка уходит наверх: строки в два столбца, шанс и кнопка — на всю ширину */
    .counter-setup__layout {
        grid-template-columns: 1fr;
    }

    .counter-setup__summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .counter-setup__odds,
    .counter-setup__save {
        grid-column: 1 / -1;
    }

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

    .counter-caught__list {
        grid-template-columns: 1fr 1fr;
    }

    /* Счетчик и экран поимки — в одну колонку */
    .hunt,
    .hunt-catch {
        grid-template-columns: 1fr;
    }

    .hunt-catch {
        padding: 25px;
        text-align: center;
    }

    .hunt-catch__img {
        max-width: 200px;
    }

    .hunt-catch__btns {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .counter-mode {
        display: flex;
    }

    .hunt__img {
        width: 160px;
        height: 160px;
    }

    .hunt__count {
        font-size: 56px;
    }

    .hunt__tile-value {
        font-size: 22px;
    }

    .hunt-catch__title {
        font-size: 28px;
    }

    .hunt-catch__tile b {
        font-size: 20px;
    }

    .hunt-catch__btn {
        width: 100%;
    }

    .counter-caught__title {
        font-size: 24px;
    }

    .counter-caught__list {
        grid-template-columns: 1fr;
    }

    .counter-start {
        padding: 35px 15px;
    }

    .counter-setup__title {
        font-size: 24px;
    }

    .counter-setup__row {
        padding: 10px 12px;
    }

    .counter-setup__value {
        font-size: 14px;
    }

    .counter-setup__body {
        padding: 12px;
    }

    .counter-setup__list {
        grid-template-columns: repeat(2, 1fr);
        max-height: 60vh;
    }

    /* Поиск и поколение — друг под другом на всю ширину */
    .counter-setup__gens.sort-select,
    .counter-setup__gens .sort-select__container {
        width: 100%;
    }

    .counter-mode__option {
        flex-grow: 1;
        text-align: center;
    }

    .counter-panel__list {
        grid-template-columns: 1fr;
    }

    .counter-panel__clock {
        margin-left: 0;
    }

    .hotkeys__table th,
    .hotkeys__table td {
        padding: 8px 4px;
    }

    /* На узком экране остается только картинка покемона */
    .hotkeys__game,
    .hotkeys__name {
        display: none;
    }

    .hotkeys__clear {
        font-size: 12px;
    }
}
