.exercise-toolbar-button {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    background: rgb(255 255 255 / 50%);
    border: 2px solid rgb(255 255 255 / 68%);
    border-radius: 13px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-align: center;
    transition: transform 0.08s ease, filter 0.08s ease;
    width: 40px;
}

.exercise-toolbar-button:active,
.dictionary-level-tab:active,
.exercise-action:active,
.exercise-puzzle:active {
    filter: brightness(0.96);
    transform: translateY(1px) scale(0.98);
}

.exercise-toolbar-button img {
    display: block;
    height: 27px;
    width: 27px;
}

.dictionary-level-tab {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    background: rgb(255 255 255 / 88%);
    border: 1px solid rgb(182 213 255 / 78%);
    box-sizing: border-box;
    color: #8b9be8;
    display: flex;
    flex-direction: column;
    font-family: "Nunito", Arial, sans-serif;
    font-size: clamp(12px, 3.8vw, 15px);
    font-weight: 900;
    gap: 2px;
    justify-content: center;
    line-height: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.08s ease, filter 0.08s ease, background-color 0.08s ease;
}

.dictionary-level-tab:first-child {
    border-radius: 0 0 0 18px;
}

.dictionary-level-tab:last-child {
    border-radius: 0 0 18px 0;
}

.dictionary-level-tab--active {
    background: #ffcc08;
    color: #111;
}

.dictionary-level-tab__label,
.dictionary-level-tab__number {
    display: block;
}

.dictionary-level-tab__label {
    transform: translateY(-2px);
}

.dictionary-level-tab__number {
    font-size: 1.22em;
}

.exercise-action {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    border: 0;
    border-radius: 16px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1;
    height: 36px;
    min-height: 36px;
    padding: 10px 16px 9px;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.08s ease, filter 0.08s ease;
    white-space: nowrap;
}

.exercise-action--red {
    background: #ff7d73;
}

.exercise-action--green {
    background: #20c91c;
}

.exercise-action--blue {
    background: #13aee7;
}

.exercise-action--purple {
    background: #e33cff;
}

.exercise-action--progress-reset {
    font-size: clamp(10px, 2.7vw, 12px);
}

.exercise-action:disabled {
    background: #d9e1e7;
    cursor: default;
    filter: none;
    transform: none;
}

.exercise-action img {
    display: block;
    filter: brightness(0) invert(1);
    height: 18px;
    width: 18px;
}

.exercise-action img:first-child {
    margin-left: -4px;
}

.exercise-action img:last-child {
    margin-right: -4px;
    margin-top: -3px;
}

.exercise-action.exercise-action--next {
    gap: 8px;
}

.exercise-action.exercise-action--next img {
    animation: exercise-action-spin 1.4s linear infinite;
    height: 23px;
    margin-left: 2px;
    margin-right: -4px;
    width: 23px;
}

.exercise-action__icon {
    align-items: center;
    background: rgb(255 255 255 / 92%);
    border-radius: 50%;
    color: #13aee7;
    display: inline-flex;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    height: 17px;
    justify-content: center;
    line-height: 1;
    text-transform: none;
    width: 17px;
}

.exercise-action--green .exercise-action__icon {
    color: #20c91c;
}

.exercise-puzzle {
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    border: 2px solid rgb(255 255 255 / 55%);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgb(0 75 110 / 18%);
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-family: "Nunito", Arial, sans-serif;
    font-size: clamp(18px, 5.5vw, 22px);
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 46px;
    min-width: clamp(66px, 19vw, 82px);
    padding: 10px 12px;
    text-align: center;
    transition: transform 0.08s ease, filter 0.08s ease, background-color 0.08s ease;
}

.exercise-puzzle--blue {
    background: #13aee7;
}

.exercise-puzzle--correct {
    background: #29c535;
}

.exercise-puzzle--wrong {
    background: tomato;
}

.exercise-puzzle--wide {
    justify-content: flex-start;
    line-height: 1.15;
    max-width: none;
    min-width: 0;
    padding: 10px 14px;
    text-align: left;
    width: 100%;
}

@keyframes exercise-action-spin {
    from {
        transform: rotate(-360deg);
    }

    to {
        transform: rotate(0);
    }
}
