.audioD {
    max-width: 650px;
    margin: 0 auto;
    margin-top: 15px;
}

.dictant {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

#dictInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
}

#checkDict {
    margin-top: 10px;
    padding: 8px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background: #ff8a00;
    color: #fff;
    cursor: pointer;
}

#checkDict:hover {
    opacity: 0.9;
}

#dictResult {
    margin-left: 12px;
    font-size: 18px;
}

#dictResult.ok {
    color: #1a8b1a;
}

#dictResult.error {
    color: #d11a1a;
}













.astana-listening-task {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.astana-question {
    padding: 22px;
    margin-bottom: 24px;

    border: 1px solid #e2e2e2;
    border-radius: 14px;

    background: #fff;
}

.astana-question h3 {
    margin: 0 0 15px;

    font-size: 22px;
    font-weight: 700;

    color: #444;
}

.astana-question-text {
    margin-bottom: 18px;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;

    color: #555;
}

.astana-option {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 10px;
    padding: 13px 16px;

    border: 2px solid transparent;
    border-radius: 10px;

    font-size: 18px;
    line-height: 1.45;

    color: #555;

    cursor: pointer;

    transition: 0.2s;
}

.astana-option:hover {
    background: #fff8ef;
    border-color: #ffb15a;
}

.astana-option input {
    width: 20px;
    height: 20px;

    margin-top: 3px;

    flex-shrink: 0;

    cursor: pointer;
}


/* Дұрыс */

.astana-option.correct {
    background: #e4f8e9;
    border-color: #28a745;
    color: #247a36;
}


/* Қате */

.astana-option.wrong {
    background: #fdeaea;
    border-color: #dc3545;
    color: #b02a37;
}


/* Батырмалар */

.astana-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 10px;
}

#checkAstanaListening,
#resetAstanaListening {
    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    font-size: 18px;

    cursor: pointer;
}

#checkAstanaListening {
    background: #ff8a00;
    color: #fff;
}

#checkAstanaListening:hover {
    background: #e87900;
}

#resetAstanaListening {
    background: #e9ecef;
    color: #444;
}


/* Нәтиже */

#astanaListeningResult {
    min-height: 34px;

    margin-top: 20px;

    font-size: 21px;
    font-weight: 700;
}

#astanaListeningResult.success {
    color: #28a745;
}

#astanaListeningResult.error {
    color: #dc3545;
}


@media (max-width: 700px) {

    .astana-question h3 {
        font-size: 19px;
    }

    .astana-question-text {
        font-size: 18px;
    }

    .astana-option {
        font-size: 16px;
    }

}


.astana-word-match {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* Мағыналар */

.astana-meaning-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 28px;
}

.astana-meaning-item {
    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #f7f7f7;

    font-size: 18px;
    line-height: 1.4;

    color: #555;
}


/* Жолдар */

.astana-word-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.astana-word-row {
    display: grid;

    grid-template-columns: 55px 1fr 130px;

    align-items: center;

    gap: 15px;

    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 11px;

    background: #fff;
}


/* Нөмір */

.astana-word-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff8a00;
    color: #fff;

    font-size: 19px;
    font-weight: 700;
}


/* Сөз */

.astana-word-title {
    font-size: 20px;
    font-weight: 700;

    color: #555;
}


/* Select */

.astana-word-select {
    width: 100%;

    padding: 10px 12px;

    border: 2px solid #ccc;
    border-radius: 8px;

    background: #fff;

    font-size: 18px;

    cursor: pointer;
}


.astana-word-select.correct {
    border-color: #28a745;

    background: #e4f8e9;

    color: #247a36;
}


.astana-word-select.wrong {
    border-color: #dc3545;

    background: #fdeaea;

    color: #b02a37;
}


/* Батырмалар */

.astana-word-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 22px;
}


#checkAstanaWordMatch,
#resetAstanaWordMatch {
    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    font-size: 18px;

    cursor: pointer;
}


#checkAstanaWordMatch {
    background: #ff8a00;
    color: #fff;
}


#resetAstanaWordMatch {
    background: #e9ecef;
    color: #444;
}


/* Нәтиже */

#astanaWordResult {
    min-height: 34px;

    margin-top: 20px;

    font-size: 21px;
    font-weight: 700;
}


#astanaWordResult.success {
    color: #28a745;
}


#astanaWordResult.error {
    color: #dc3545;
}


@media (max-width: 700px) {

    .astana-meaning-list {
        grid-template-columns: 1fr;
    }

    .astana-word-row {
        grid-template-columns: 45px 1fr;
    }

    .astana-word-select {
        grid-column: 1 / -1;
    }

}


.neo-lesson {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.lesson-header {
    text-align: center;
    margin-bottom: 30px;
}

.lesson-header h1 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #ff7a00;
}

.lesson-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #444;
}

.lesson-header p {
    font-size: 18px;
    color: #666;
}

.lesson-block {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.lesson-block h3 {
    margin-bottom: 18px;
    font-size: 26px;
    color: #2f4f4f;
}

.video-wrap {
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid #f0f0f0;
    background: #000;
}

.image-task-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.task-image-wrap img {
    width: 100%;
    display: block;
    border-radius: 16px;
    border: 2px solid #ececec;
}

.task-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-question {
    font-size: 21px;
    line-height: 1.5;
    margin: 0;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    padding: 14px 16px;
    border: 2px solid #d8d8d8;
    border-radius: 12px;
    background: #f8f8f8;
    font-size: 19px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.option-btn:hover {
    background: #f1f7ff;
    border-color: #8ab8ff;
}

.option-btn.correct {
    background: #e2f8e8;
    border-color: #2dad55;
    color: #1b6e35;
    font-weight: 700;
}

.option-btn.wrong {
    background: #fde9e9;
    border-color: #dc4c4c;
    color: #a62b2b;
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.95;
}

.feedback {
    min-height: 36px;
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
}

.feedback.success {
    color: #1f8b3f;
}

.feedback.error {
    color: #c0392b;
}

@media (max-width: 850px) {
    .image-task-card {
        grid-template-columns: 1fr;
    }

    .lesson-header h1 {
        font-size: 28px;
    }

    .lesson-header h2 {
        font-size: 22px;
    }

    .task-question,
    .option-btn {
        font-size: 18px;
    }
}


.neologism-game {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* Жоғарғы панель */

.neo-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.neo-score,
.neo-time {
    padding: 10px 18px;

    border-radius: 12px;

    background: #f5f5f5;

    font-size: 19px;
    font-weight: 600;

    color: #555;
}

.neo-time {
    border: 2px solid #ff8a00;
    background: #fff7eb;
}


/* Ойын алаңы */

.neo-play-area {
    position: relative;

    width: 100%;
    height: 430px;

    overflow: hidden;

    border: 3px dashed #8ab8ff;
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #eef8ff,
            #ffffff
        );
}


/* Сөздер */

.neo-word {
    position: absolute;

    padding: 12px 20px;

    border: 2px solid #ddd;
    border-radius: 20px;

    background: #fff;

    font-size: 20px;
    font-weight: 700;

    color: #444;

    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,.10);

    transition: 0.2s;

    display: none;
}

.neo-word:hover {
    transform: scale(1.08);
    border-color: #ff8a00;
}


/* Дұрыс ұсталды */

.neo-word.caught {
    background: #dff7e5;

    border-color: #28a745;

    color: #247a36;

    animation: neoCatch .35s ease;
}

@keyframes neoCatch {

    0% {
        transform: scale(.8);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }

}


/* Қате */

.neo-word.wrong-hit {
    background: #fdeaea;

    border-color: #dc3545;

    animation: neoWrong .4s ease;
}

@keyframes neoWrong {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    75% {
        transform: translateX(7px);
    }

}


/* Хабарлама */

#neoMessage {
    min-height: 38px;

    margin-top: 18px;

    text-align: center;

    font-size: 21px;
    font-weight: 700;
}

#neoMessage.success {
    color: #28a745;
}

#neoMessage.error {
    color: #dc3545;
}


/* Батырмалар */

.neo-buttons {
    display: flex;
    justify-content: center;

    gap: 12px;

    margin-top: 15px;
}

#startNeoGame,
#resetNeoGame {
    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    font-size: 18px;

    cursor: pointer;
}

#startNeoGame {
    background: #ff8a00;
    color: #fff;
}

#resetNeoGame {
    background: #e9ecef;
    color: #444;
}


/* Телефон */

@media (max-width: 700px) {

    .neo-play-area {
        height: 500px;
    }

    .neo-word {
        font-size: 17px;
    }

}




