

/* Start:/local/components/custom/games.detail/templates/.default/style.css?17702196681732*/
.games-detail__top {
    margin-bottom: 3.4375rem;
}

.games-detail__header h1 {
    text-align: center;
    text-transform: uppercase;

    @media (min-width: 1200px) {
        text-align: left;
    }
}

.progress-fill {
    height: 100%;
    background: #339af0;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 1.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--primary-blue);

    @media (min-width: 1200px) {
        text-align: left;
    }
}

.games-detail__body {
    border: 2px solid #5e9efc;
    border-radius: 2.5rem;
    background-color: #f0f5ff;
    padding: 2.25rem;
}

#currentGameContainer {
    margin-bottom: 2.375rem;
}

.game-result {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 2.125rem;
    animation: fadeIn 0.3s ease;
    color: #3474E2;
}

.game-result.correct {
    color: var(--green);
}

.game-result.incorrect {
    color: var(--red);
}

.result-icon {
    display: none;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.correct .result-icon {
    background: var(--green);
    color: white;
}

.incorrect .result-icon {
    background: var(--red);
    color: white;
}

.game-not-found {
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    color: #856404;
}

.no-games {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* End */


/* Start:/local/components/custom/games.detail/templates/.default/css/base.css?177021966859*/
/* Стили для пошагового режима */


/* End */


/* Start:/local/components/custom/games.detail/templates/.default/css/word_picture.css?1770219668401*/
.game-image {
    height: 16.25rem;
    object-fit: contain;
    margin-bottom: 2.5rem;

    @media (min-width: 1200px) {
        height: 33.25rem;
    }
}

.game-instruction {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 2.75rem;

    @media (min-width: 1200px) {
        margin-bottom: 1.875rem;
    }
}

.word-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* End */


/* Start:/local/components/custom/games.detail/templates/.default/css/reading.css?17702196681118*/
.game-text {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 26px;
}

.game-images-instruction {
    font-size: 30px;
    margin-bottom: 30px;
}

.images-list {
    display: grid;
    gap: 26px;

    @media (min-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-option {
    position: relative;
}

.image-radio {
    display: none;
}

.image-label {
    display: block;
    cursor: pointer;
    border: 4px solid var(--white);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.image-label:hover {
    border-color: #448AFF;
}

.image-label.selected {
    border-color: #448AFF;
}

.image-label img {
    width: 100%;
    height: 244px;
    object-fit: cover;
    display: block;

    @media (min-width: 992px) {
        height: 200px;
    }
}

.image-label.correct-answer {
}

.image-label.wrong-answer {

}

.no-images-message {
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffecb5;
    border-radius: 15px;
    color: #856404;
    font-size: 1.25rem;
    grid-column: 1 / -1;
}

/* End */


/* Start:/local/components/custom/games.detail/templates/.default/css/audio_picture.css?17702196683138*/
.audio-player {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 20px;
    background: #5E9EFC;
    border: none;
    cursor: pointer;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 28px;
    color: #fff;
    transition: all 0.3s ease;

    @media (min-width: 992px) {
        max-width: 450px;
        margin-bottom: 16px;
        font-size: 24px;
    }
}

.play-button:hover {
    background: #228be6;
    transform: scale(1.05);
}

.play-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.play-button svg {
    height: 33px;
    width: 33px;
    margin-right: 5px;
}

.play-button i {
    font-size: 24px;
}

.play-button.playing i::before {
    content: "⏸";
}

.play-button:not(.playing) i::before {
    content: "▶";
}

.replay-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #495057;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.replay-button:hover {
    background: #343a40;
}

.replay-button i {
    font-size: 20px;
}

.audio-info {
    font-size: 1.25rem;
    color: #666;
    margin-top: 1rem;
}

.audio-message.success {
    background-color: #ebfbee;
    color: #2b8a3e;
    border: 2px solid #37b24d;
}

.audio-message.error {
    background-color: #fff5f5;
    color: #c92a2a;
    border: 2px solid #fa5252;
}

.game-images-instruction-audio {
    font-size: 30px;
    margin-bottom: 30px;

    @media (min-width: 992px) {
        font-size: 28px;
        margin-bottom: 50px;
    }
}

.images-list-audio {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 26px;

    @media (min-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-option-audio {
    position: relative;
}

.image-radio-audio {
    display: none;
}

.image-label-audio {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 3px solid var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.image-label-audio:hover {
    border-color: #448AFF;
}

.image-label-audio.selected {
    border-color: #448AFF;
}

.image-label-audio img {
    width: 100%;
    height: 244px;
    object-fit: cover;
    display: block;

    @media (min-width: 992px) {
        height: 200px;
    }
}

.image-label-audio.correct-answer {
}

.image-label-audio.wrong-answer {
}

.no-audio-message {
    padding: 2rem;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffecb5;
    border-radius: 10px;
    color: #856404;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.no-images-message-audio {
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffecb5;
    border-radius: 15px;
    color: #856404;
    font-size: 1.25rem;
    grid-column: 1 / -1;
}

/* End */


/* Start:/local/components/custom/games.detail/templates/.default/css/sentence_match.css?17702196687018*/
.phrases-container {
    margin-bottom: 60px;
}

.game-instruction-match {
    font-size: 30px;
    margin-bottom: 42px;
}

.match-header {
    display: none;

    @media (min-width: 992px) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: center;
        font-size: 26px;
        font-weight: 500;
        color: #5F8FDC;
    }
}

.match-row {
    margin-bottom: 32px;

    @media (min-width: 992px) {
        display: grid;
        align-items: center;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.start-phrase {
    font-size: 26px;
    margin-bottom: 1rem;

    @media (min-width: 992px) {
        margin-bottom: 0;
    }
}

.drop-zone {
    position: relative;
    padding-right: 40px;
}

.drop-zone-content {
    position: relative;
    border: 2px dashed #adb5bd;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 15px 26px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 27px;

    @media (min-width: 992px) {
        padding: 8px 25px;
        font-size: 25px;
    }
}

.drop-zone-content.hover {
    border-color: #339af0;
    background: #d0ebff;
}

.drop-zone.filled .drop-zone-content {
    border-style: solid;
    border-color: #5E9EFC;
    background: transparent;
    color: #5F8FDC;
}

.drop-zone.filled:hover .drop-zone-content {
    border-color: #339af0;
    background: #f0f8ff;
}

.ending-in-zone {
    overflow: hidden;
}

.ending-card {
    font-size: 27px;
    padding: 16px 28px;
    border-radius: 20px;
    border: 2px solid #5E9EFC;
    color: #5F8FDC;
    cursor: grab;
    user-select: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;

    @media (min-width: 992px) {
        padding: 8px 25px;
        font-size: 25px;
    }
}

.ending-card:hover {
    background: #e7f5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 154, 240, 0.2);
}

.ending-card:active {
    cursor: grabbing;
}

.ending-card.dragging {
    transform: scale(0.95);
}

.ending-card.in-dropzone {
    border-color: #37b24d;
    background: #ebfbee;
    color: #2b8a3e;
}

.endings-list {
    display: grid;
    gap: 30px;
    padding: 5px 30px;

    @media (min-width: 992px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-indicator {
    display: none;
    position: absolute;
    top: 50%;
    right: -10px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(-50%);
}

.result-indicator.correct {
    display: flex;
    background: #37b24d;
    color: white;
}

.result-indicator.incorrect {
    display: flex;
    background: #fa5252;
    color: white;
}

.result-indicator.empty {
    background: #f8f9fa;
    color: #adb5bd;
    border: 2px dashed #adb5bd;
}

.match-result {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.match-result.correct {
    color: #2b8a3e;
    background: #ebfbee;
    border: 2px solid #37b24d;
}

.match-result.incorrect {
    color: #c92a2a;
    background: #fff5f5;
    border: 2px solid #fa5252;
}

.drop-zone-placeholder {
    font-size: 1rem;
    color: #adb5bd;
    font-style: italic;
}

.controls-match {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #868e96;
    font-size: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.drop-zone.selected .drop-zone-content {
    border-color: #339af0;
    background-color: #e7f5ff;
    box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.3);
}

.drop-zone.empty.selected .drop-zone-content{
    border-color: #339af0;
    background-color: #e7f5ff;
    animation: pulse 1s infinite;
}

.drop-zone.active:hover .drop-zone-content {
    border-color: #339af0;
    background-color: #f0f8ff;
}

.endings-info {
    text-align: center;
}

/* Скрытие карточек в списке */
.ending-card.hidden {
    display: none;
}

/* Кнопка удаления карточки из поля */
.remove-from-zone {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fa5252;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.remove-from-zone:hover {
    background: #e03131;
    transform: scale(1.1);
}

.drop-zone.filled:hover .remove-from-zone {
    opacity: 1;
}

/* Индикатор выбранной карточки в списке */
.ending-card.selected {
    border-color: #339af0;
    background-color: #e7f5ff;
    box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.3);
    transform: translateY(-2px);
}

/* Анимация при перемещении */
.ending-card.moving {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ending-card {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(51, 154, 240, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(51, 154, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(51, 154, 240, 0);
    }
}

/* Состояние ожидания выбора */
.waiting-for-selection .start-phrase,
.waiting-for-selection .drop-zone {
    cursor: pointer;
}

.waiting-for-selection .start-phrase:hover,
.waiting-for-selection .drop-zone:hover {
    border-color: #339af0;
    background-color: #f0f8ff;
}

/* Подсветка при совпадении */
.match-success {
    animation: matchSuccess 0.5s ease;
}

@keyframes matchSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Кнопка отмены выбора */
.cancel-selection {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background: #495057;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cancel-selection:hover {
    background: #343a40;
}




/* Индикатор выбора в заголовке */
.selection-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 1.25rem;
    color: #495057;
}

.selection-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.selection-dot.active {
    background: #339af0;
    animation: pulse 1s infinite;
}

/* End */
/* /local/components/custom/games.detail/templates/.default/style.css?17702196681732 */
/* /local/components/custom/games.detail/templates/.default/css/base.css?177021966859 */
/* /local/components/custom/games.detail/templates/.default/css/word_picture.css?1770219668401 */
/* /local/components/custom/games.detail/templates/.default/css/reading.css?17702196681118 */
/* /local/components/custom/games.detail/templates/.default/css/audio_picture.css?17702196683138 */
/* /local/components/custom/games.detail/templates/.default/css/sentence_match.css?17702196687018 */
