.additional-height {
    height: 100px;
}
.content__form-row {
    display: flex;
    gap: 50px;
    align-items: flex-end;
}
.content__form-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.content__form-label span {
    color: var(--light-black);
}
.content__form-select-container {
    position: relative;
    display: flex;
}
.content__form-select-container .arrow-select {
    width: 32px;
    height: 32px;
    position: absolute;
    bottom: 50%;
    right: 24px;
    transform: translateY(50%);
    z-index: 1;
}
.content__form-select-container .arrow-select svg {
    width: 100%;
    height: 100%;
}
.content__form-input,
.content__form-select {
    padding: 25px 24px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    color: var(--black);
}
.content__form-select {
    cursor: pointer;
}
.group-game {
    background-color: var(--light-gray);
}
.group-game .container {
    padding-top: 35px;
    padding-bottom: 35px;
}
.group-game-button {
    cursor: pointer;
    width: 100%;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 23px 32px;
    color: var(--white);
    border: 4px solid var(--primary-orange);
    border-radius: 12px;
    transition: 0.4s;
}
.group-game-button.orange {
    background-color: var(--primary-orange);
}
.group-game-button.orange:hover {
    background-color: var(--black);
}
.group-game-button.black {
    background-color: var(--black);
}
.group-game-button.black:hover {
    background-color: var(--primary-orange);
}
#open-group-game-settings.group-game-button {
    max-width: 343px;
    margin-left: auto;
}
.group-game-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background-color: rgba(27, 27, 27, 0.8);
    z-index: 1000;
}
.group-game-modal.group-game-victory-modal {
    display: none;
}
.group-game-modal .modal-container {
    max-height: calc(100vh - 50px);
    max-width: 1255px;
    width: 100%;
    padding: 50px;
    border: 2px solid #F7631B;
    border-radius: 25px;
    background-color: var(--white);
    overflow: auto;
}
.group-game-modal .content-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.group-game-settings.group-game-modal .content-wrap {
    padding-bottom: 115px;
}

.group-game-modal .close-btn-container {
    width: auto;
    align-self: flex-end;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.group-game-modal .close {
    display: inline-flex;
}
.group-game-modal .close svg {
    width: 54px;
    height: 54px;
}
.group-game-modal .content {
    max-width: 832px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.group-game-modal .content h2 {
    margin-bottom: 40px;
}
.group-game-modal .content__form-wrap {
    max-width: 690px;
    width: 100%;
}
.group-game-modal .content__form-wrap form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.group-game-modal .content__form-wrap .form-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.group-game-modal .content__form-row .first-element {
    min-width: 60%;
    width: 60%;
}
.group-game-modal .content__form-row .second-element {
    width: calc(40% - 50px);
}
.group-game-modal .content__form-row .avatar {
    position: relative;
    display: flex;
    justify-content: center;
}
.group-game-modal .content__form-row .avatar-buttons {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}
.group-game-modal .content__form-row .prev-button,
.group-game-modal .content__form-row .next-button {
    cursor: pointer;
    width: 36px;
    height: 36px;
}
.group-game-modal .content__form-row .prev-button svg,
.group-game-modal .content__form-row .next-button svg {
    width: 100%;
    height: 100%;
}
.group-game-modal .avatar-window {
    width: 140px;
    height: 140px;
    overflow: hidden;
}
.group-game-modal .avatar-wrapper {
    display: flex;
    transition: 0.4s;
}
.group-game-modal .avatar-wrapper .avatar-img {
    width: 140px;
    height: 140px;
    display: flex;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}
.group-game-modal form input[type="submit"].group-game-button {
    max-width: 408px;
}
.room-container {
    max-width: 674px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: wrap column;
    gap: 35px;
}
.room-details {
    display: flex;
    flex-flow: wrap row;
    gap: 10px;
    justify-content: space-evenly;
}
.room-details-item {
    display: flex;
    flex-flow: wrap row;
    align-items: center;
    gap: 10px;
}
.room-details-item span {
    font-size: 22px;
    line-height: 34px;
}
.test-template {
    background: var(--light-gray);
    padding: 50px 0;
    padding-bottom: calc(168px + 50px);
}
.test-template .container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.test-template .learn-info_head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.test-template .learn-info_head-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.test-template .learn-info_head .avatar-container {
    display: flex;
    align-items: center;
    gap: 14px;
}
.test-template .learn-info_head .avatar-img {
    width: 54px;
    height: 54px;
}
.test-template .learn-info_head .avatar-img img {
    width: 100%;
    height: 100%;
}
.test-template .learn-info_head .circular-progress {
    --value: 0;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-orange) calc(var(--value) * 3.6deg),
        var(--dark-gray) 0deg
    );
}
.test-template .learn-info_head .circular-progress::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--light-gray);
    border-radius: 50%;
}
.test-template .learn-info_head .circular-progress.mobile {
    display: none;
}
.test-template .learn-info_head .progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E1E1E;
}
.test-template .learn-info_head .questions_indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}
.test-template .learn-info_head .questions_indicator img {
    width: 32px;
    height: 32px;
}
.test-template .learn-info_content {
    padding: 20px;
    border: 1px solid var(--gray) !important;
}
.test-template .learn-info_inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.test-template .learn-info_inner .learn-info_images,
.test-template .list__ {
    width: calc(50% - 10px);
}
.test-template .learn-info_inner .learn-info_images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.test-template .learn-info_inner .learn-info_images img {
    height: 360px;
    max-width: 100%;
    flex-grow: 1;
    object-fit: cover;
    border-radius: 20px;
}
.test-template[data-type="audio"] .learn-info_inner .learn-info_images {
    width: calc(70% - 10px);
}
.test-template .learn-info_inner .learn-info_image {
    width: 100%;
    position: relative;
    display: flex;
}
.test-template[data-type="audio"] .learn-info_inner .learn-info_image {
    max-width: calc(50% - 5px);
}
.test-template .learn-info_inner .learn-info_images img {
    width: 100%;
}
.test-template .learn-info_inner .learn-info_image .option {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    font-size: 24px;
    line-height: 34px;
}
.test-template[data-type="audio"] .list__ {
    width: calc(30% - 10px);
}
.test-template[data-type="audio"] .list__container .audio-player {
    margin-bottom: 35px;
} 
.test-template form .group-game-button[type="submit"] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -168px;
    background-color: var(--primary-orange);
    max-width: 343px;
}
.test-template form .group-game-button[type="submit"]:hover {
    background-color: var(--black);
}

.game-url-input {
    width: 100%;
    height: 84px;
    padding: 25px 144px 25px 24px;
    font-size: 22px;
    line-height: 34px;
    border-radius: 12px;
    border: 1px #C2C2C2 solid;
    outline: 0;
}

.game-url-button {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #C2C2C2;
    box-shadow: 0 0 0 0 #CD4B0A;
    transition: box-shadow 0.3s linear, border-color 0.3s linear;
}

.game-url-button:hover {
    border-color: #CD4B0A;
    box-shadow: 0 0 0 1px #CD4B0A;
}

.game-url {
    position: relative;
}

.timer {
    display: flex;
    flex-flow: wrap column;
    text-align: center;
    gap: 10px;
}
.timer-time {
    font-size: 62px;
    font-weight: 700;
    line-height: 80px;
}
.timer-subtitle {
    color: #C2C2C2;
}

.players {
    display: flex;
    flex-flow: wrap column;
    gap: 35px;
}
.players-title {
    padding-top: 35px;
    border-top: 1px solid #CACACA;
    font-size: 24px;
    line-height: 34px;
    font-weight: 600;
    color: #161616;
}

.player-avatar {
    width: 54px;
    height: 54px;
    border-radius: 4px;
}

.player-avatar-container {
    display: flex;
    flex-shrink: 0;
    position: relative;
}

.playersboard .players-board-list {
    column-count: 3;
    column-gap: 20px;
}

.leaderboard .players-board-list {
    display: flex;
    flex-flow: wrap column;
    gap: 10px;
}

.next-step .players-board-list {
    display: flex;
    flex-flow: wrap column;
    gap: 10px;
}

.playersboard .players-board {
    max-height: 328px;
    overflow-y: auto;
}

.leaderboard .players-board {
    max-height: 375px;
    overflow: auto;
    max-width: calc(100vw - 32px);
}

.leaderboard .players-board-item {
    min-width: max-content;
}


.playersboard .players-board-item {
    margin-bottom: 20px;
    gap: 12px;
}

.leaderboard .players-board-item {
    gap: 16px;
    padding: 0 12px 0 0;
}

.next-step .players-board-item {
    gap: 16px;
    padding: 0 12px 0 0;
}

.players-board-item {
    break-inside: avoid;
    display: flex;
    align-items: center;
    height: 67px;
    padding: 0 5px 0 0;
}

.leaderboard .players-board-item.my-player {
    border-radius: 12px;
    background: #fff;
    box-shadow: 1px 2px 4px 0px #5D5D5D0A;
}

.next-step .players-board-item.my-player {
    border-radius: 12px;
    background: #fff;
    box-shadow: 1px 2px 4px 0px #5D5D5D0A;
}

.player-board-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(0deg, rgb(248, 248, 250, 1), rgba(248, 248, 250, 0) 100%);
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 1;
}

.players-board-container {
    position: relative;
}

.pos-badge .player-pos {
    display: none;
}

.pos-badge::after {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.pos-badge-1::after {
    background-image: url("/images/group_game/icons/pos-1.svg");
}

.pos-badge-2::after {
    background-image: url("/images/group_game/icons/pos-2.svg");
}

.pos-badge-3::after {
    background-image: url("/images/group_game/icons/pos-3.svg");
}

.playersboard .my-player .player-avatar-container::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("/images/group_game/icons/player-star.svg");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -10px;
    top: -8px;
}

.player-name {
    word-break: break-word;
}

.player-points {
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 10px;
}

.mgb-100 {
    margin-bottom: 100px;
}

.room-actions {
    display: flex;
    flex-flow: wrap row;
    gap: 16px;
}

.room-actions .action-button {
    width: 100%;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 19px;
    border-radius: 12px;
    transition: 0.4s;
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.room-actions .action-button:nth-child(1) {
    background-color: var(--white);
    color: var(--black);
    border: 4px solid var(--primary-orange);
}

.room-actions .action-button:hover:nth-child(1) {
    background-color: var(--primary-orange);
    color: var(--white);
    border: 4px solid var(--primary-orange);
}

.room-actions .action-button:nth-child(2) {
    background-color: var(--primary-orange);
    color: var(--white);
    border: 4px solid var(--primary-orange);
}

.room-actions .action-button:hover:nth-child(2) {
    background-color: var(--black);
}

.timer-time.ready {
    color: var(--primary-orange);
}

.next-step-timer {
    color: #C2C2C2;
    text-align: center;
}

.next-step-timer span {
    color: var(--primary-orange);
}

.leaderboard .player-pos-container, .next-step .player-pos-container {
    width: 36px;
}

.playersboard .player-pos-container {
    width: 24px;
}

.player-pos-container {
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.player-pos-avatar-container {
    display: flex;
    flex-flow: wrap row;
    align-items: center;
    flex-shrink: 0;
}

.player-prize-container {
    display: flex;
    flex-flow: wrap column;
    height: 100%;
    justify-content: space-evenly;
}

.player-prize-name {
    line-height: 20px;
    font-weight: 600;
    color: var(--primary-orange);
}

.next-step .players-board-item:nth-child(3):not(.my-player) {
    border-bottom: 1px #CACACA solid;
    padding-bottom: 10px;
}

.group-game-victory-modal .avatar {
    display: flex;
    flex-flow: wrap column;
    align-content: center;
    text-align: center;
    gap: 16px;
}

.group-game-victory-modal .avatar .avatar-img {
    width: 140px;
    height: 140px;
    position: relative;
}

.victory-avatar-badge {
    position: absolute;
    width: 54px;
    height: 54px;
    right: -27px;
    top: -27px;
}

.victory-description-container {
    display: flex;
    flex-flow: wrap column;
    gap: 20px;
    width: min-content;
    text-align: center;
}

.victory-description-title {
    width: max-content;
}

.victory-description-title span {
    color: var(--primary-orange);
}

.group-game-victory-modal .avatar .avatar-img .ava {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.group-game-victory-modal .content h2 {
    margin-bottom: 20px;
}

.group-game-victory-modal .content {
    gap: 40px;
}

.group-game-victory-modal .content-wrap {
    position: relative;
}

.group-game-victory-modal .modal-container {
    position: relative;
}

.background-victory {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 50px;
}


@media screen and (max-width: 687px) {
    .playersboard .players-board-list {
        column-count: 2;
    }
    .victory-description-title, .victory-description-container {
        width: 100%;
    }
}

@media screen and (max-width: 540px) {
    .playersboard .players-board-list {
        column-count: 1;
    }
    .room-actions .action-button {
        flex: auto;
    }
}


@media (max-width: 991.98px) {
    .group-game-modal .content-wrap {
        padding-bottom: 30px;
    }
    .test-template .learn-info_inner {
        flex-direction: column;
    }
    .test-template[data-type="audio"] .learn-info_inner {
        gap: 24px;
    }
    .test-template .learn-info_inner .learn-info_images,
    .test-template .list__,
    .test-template[data-type="audio"] .learn-info_inner .learn-info_images,
    .test-template[data-type="audio"] .list__{
        width: 100%;
    }
    .test-template .learn-info_inner .learn-info_images {
        flex-direction: column;
    }
    .test-template .learn-info_inner .learn-info_images img {
        height: auto;
    }
    .test-template[data-type="audio"] .learn-info_inner .learn-info_image {
        max-width: 100%;
        width: 100%;
    }
    .test-template[data-type="audio"] .list__container .audio-player {
        margin-bottom: 24px;
    }
}

@media (max-width: 767.98px) {
    .additional-height {
        height: 32px;
    }
    .content__form-row {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    .content__form-label span.text.p3 {
        font-size: 14px;
        line-height: 20px;
    }
    .content__form-input,
    .content__form-select {
        padding: 16px 24px;
    }
    .content__form-input.text.p2,
    .content__form-select.text.p2 {
        font-size: 16px;
        line-height: 24px;
    }
    .group-game .container {
        padding-top: 0;
        padding-bottom: 22px;
    }
    #open-group-game-settings.group-game-button {
        font-size: 16px;
        line-height: 24px;
        max-width: 180px;
        padding: 12px 24px;
    }
    .group-game-modal .modal-container {
        padding: 23px 15px;
        max-height: calc(100vh - 35px);
    }
    .group-game-modal .close-btn-container span.text.p3 {
        font-size: 16px;
        line-height: 22px;
    }
    .group-game-modal .close svg {
        width: 44px;
        height: 44px;
    }
    .group-game-modal .content-wrap {
        gap: 24px;
    }
    .group-game-modal .content h2 {
        margin-bottom: 24px;
    }
    .group-game-modal .content__form-wrap form {
        gap: 36px;
    }
    .group-game-modal .content__form-wrap .form-content {
        gap: 14px;
    }
    .group-game-modal .content__form-row .first-element,
    .group-game-modal .content__form-row .second-element {
        width: 100%;
    }
    .group-game-modal .content__form-row .second-element.avatar-container {
        margin-bottom: 10px;
        order: -1;
        max-width: 232px;
    }
    .group-game-modal form input[type="submit"].group-game-button.text.p2 {
        max-width: 100%;
        font-size: 24px;
        line-height: 34px;
    }
    .test-template {
        padding: 32px 0;
        padding-bottom: calc(132px + 32px);
    }
    .test-template .learn-info_head-container {
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .test-template .learn-info_head .circular-progress.mobile {
        display: block;
    }
    .test-template .learn-info_head .circular-progress.desktop {
        display: none;
    }
    .test-template .learn-info_head .circular-progress {
        width: 80px;
        height: 80px;
    }
    .test-template .learn-info_head .progress-value.text.p2 {
        font-size: 24px;
        line-height: 34px;
    }
    .test-template .learn-info_head .questions_indicator {
        gap: 6px;
    }
    .test-template .learn-info_content {
        padding: 12px;
    }
    .test-template form .group-game-button[type="submit"] {
        bottom: -132px;
        font-size: 24px;
        line-height: 34px;
    }
}