.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;
}














.akbota-match-task {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* Ақпараттар */

.akbota-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 28px;
}

.akbota-info-item {
    padding: 13px 16px;

    background: #f7f7f7;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 18px;
    line-height: 1.4;

    color: #555;
}


/* Сәйкестендіру жолдары */

.akbota-match-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.akbota-match-row {
    display: grid;

    grid-template-columns: 55px 1fr 130px;

    gap: 15px;

    align-items: center;

    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 11px;

    background: #fff;
}


/* Нөмір */

.akbota-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;
}


/* Сөз */

.akbota-word {
    font-size: 20px;
    font-weight: 700;

    color: #555;
}


/* Select */

.akbota-select {
    width: 100%;

    padding: 10px 12px;

    border: 2px solid #ccc;
    border-radius: 8px;

    background: #fff;

    font-size: 18px;

    cursor: pointer;
}

.akbota-select.correct {
    border-color: #28a745;

    background: #e4f8e9;

    color: #247a36;
}

.akbota-select.wrong {
    border-color: #dc3545;

    background: #fdeaea;

    color: #b02a37;
}


/* Батырмалар */

.akbota-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 22px;
}

#checkAkbotaMatch,
#resetAkbotaMatch {
    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    font-size: 18px;

    cursor: pointer;
}

#checkAkbotaMatch {
    background: #ff8a00;

    color: #fff;
}

#checkAkbotaMatch:hover {
    background: #e87900;
}

#resetAkbotaMatch {
    background: #e9ecef;

    color: #444;
}


/* Нәтиже */

#akbotaMatchResult {
    min-height: 34px;

    margin-top: 20px;

    font-size: 21px;
    font-weight: 700;
}

#akbotaMatchResult.success {
    color: #28a745;
}

#akbotaMatchResult.error {
    color: #dc3545;
}


/* Телефон */

@media (max-width: 700px) {

    .akbota-info-list {
        grid-template-columns: 1fr;
    }

    .akbota-match-row {
        grid-template-columns: 45px 1fr;
    }

    .akbota-select {
        grid-column: 1 / -1;
    }

    .akbota-word {
        font-size: 18px;
    }

}





.travel-match-game {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* =========================
   БЕЛГІЛЕР
========================= */

.travel-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-bottom: 30px;
}

.travel-card {
    padding: 13px 18px;

    background: #fff;

    border: 2px solid #ff9a27;
    border-radius: 12px;

    font-size: 18px;
    font-weight: 600;
    color: #555;

    cursor: grab;

    box-shadow: 0 3px 8px rgba(0,0,0,0.08);

    transition: 0.2s;
}

.travel-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 6px 13px rgba(0,0,0,0.12);
}

.travel-card:active {
    cursor: grabbing;
}

.travel-card.dragging {
    opacity: 0.4;
}


/* =========================
   ҮШ АЙМАҚ
========================= */

.travel-zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.travel-zone {
    min-height: 300px;

    padding: 18px;

    border-radius: 18px;

    transition: 0.2s;
}

.astana-zone {
    background: #e9f6ff;
    border: 3px dashed #249ce5;
}

.almaty-zone {
    background: #effbea;
    border: 3px dashed #4caf50;
}

.aksu-zone {
    background: #fff0f5;
    border: 3px dashed #e86a9f;
}

.travel-zone-title {
    margin-bottom: 15px;

    text-align: center;

    font-size: 23px;
    font-weight: 800;

    color: #444;
}

.travel-drop-area {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    padding: 10px;

    color: #999;

    font-size: 15px;
}


/* Drag кезінде */

.travel-zone.drag-over {
    transform: scale(1.02);

    box-shadow: 0 0 0 5px rgba(255,138,0,0.14);
}


/* =========================
   ДҰРЫС
========================= */

.travel-card.correct {
    width: 90%;

    text-align: center;

    background: #e4f8e9;

    border-color: #28a745;

    color: #247a36;

    cursor: default;

    animation: travelCorrect 0.4s ease;
}

@keyframes travelCorrect {

    0% {
        transform: scale(0.85);
    }

    60% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================
   ҚАТЕ
========================= */

.travel-card.wrong {
    background: #fdeaea;

    border-color: #dc3545;

    animation: travelWrong 0.4s;
}

@keyframes travelWrong {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }

}


/* =========================
   ХАБАРЛАМА
========================= */

#travelMatchMessage {
    min-height: 38px;

    margin-top: 22px;

    text-align: center;

    font-size: 21px;
    font-weight: 700;
}

#travelMatchMessage.success {
    color: #28a745;
}

#travelMatchMessage.error {
    color: #dc3545;
}


/* RESET */

#resetTravelMatch {
    display: block;

    margin: 15px auto 0;

    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    background: #ff8a00;
    color: #fff;

    font-size: 18px;

    cursor: pointer;
}

#resetTravelMatch:hover {
    background: #e87900;
}


/* MOBILE */

@media (max-width: 850px) {

    .travel-zones {
        grid-template-columns: 1fr;
    }

    .travel-card {
        width: 100%;
        text-align: center;
    }

}




.far-place-task {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.far-place-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.far-place-card {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 20px;

    border: 2px solid #ddd;
    border-radius: 14px;

    background: #fff;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition: 0.2s;
}

.far-place-card:hover {
    border-color: #ff8a00;
    background: #fff8ef;
    transform: translateY(-2px);
}

.far-place-icon {
    flex-shrink: 0;
    font-size: 42px;
}

.far-place-text {
    font-size: 19px;
    line-height: 1.5;
    color: #555;
}

.far-place-card.correct {
    border-color: #28a745;
    background: #e5f8e9;
    color: #247a36;
    animation: farCorrect 0.4s ease;
}

.far-place-card.wrong {
    border-color: #dc3545;
    background: #fdeaea;
    animation: farWrong 0.4s ease;
}

@keyframes farCorrect {
    0% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes farWrong {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    75% {
        transform: translateX(7px);
    }
}

.far-place-result {
    min-height: 38px;
    margin-top: 20px;

    text-align: center;

    font-size: 21px;
    font-weight: 700;
}

.far-place-result.success {
    color: #28a745;
}

.far-place-result.error {
    color: #dc3545;
}

#resetFarPlace {
    display: block;

    margin: 15px auto 0;

    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    background: #ff8a00;
    color: white;

    font-size: 18px;

    cursor: pointer;
}

#resetFarPlace:hover {
    background: #e87900;
}

@media (max-width: 700px) {

    .far-place-card {
        align-items: flex-start;
    }

    .far-place-text {
        font-size: 17px;
    }

}



.literary-style-game {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* =========================
   ТҮСІНДІРМЕ
========================= */

.style-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

    margin-bottom: 25px;
}

.style-info-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    border-radius: 12px;
}

.literary-info {
    background: #f3efff;
}

.normal-info {
    background: #eaf6ff;
}

.style-info-item strong {
    display: block;

    font-size: 19px;

    color: #444;
}

.style-info-item span {
    font-size: 16px;

    color: #777;
}

.style-dot {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border-radius: 50%;

    border: 2px solid #333;
}

.purple-dot {
    background: #8b69e5;
}

.blue-dot {
    background: #168bd5;
}


/* =========================
   КАРТОЧКАЛАР
========================= */

.style-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;

    margin-bottom: 30px;
}

.style-card {
    max-width: 430px;

    padding: 14px 18px;

    border: 2px solid #e0a235;
    border-radius: 12px;

    background: #fffaf0;

    color: #555;

    font-size: 18px;
    line-height: 1.45;

    cursor: grab;

    box-shadow: 0 3px 8px rgba(0,0,0,0.08);

    transition: 0.2s;
}

.style-card:hover {
    transform: translateY(-3px);

    border-color: #ff8a00;

    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.style-card:active {
    cursor: grabbing;
}

.style-card.dragging {
    opacity: 0.4;
}


/* =========================
   ҚОРЖЫНДАР
========================= */

.style-baskets {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.style-basket {
    min-height: 330px;

    padding: 20px;

    border-radius: 20px;

    text-align: center;

    transition: 0.2s;
}

.literary-basket {
    background: #f3efff;

    border: 3px dashed #8765df;
}

.normal-basket {
    background: #eaf6ff;

    border: 3px dashed #168bd5;
}

.basket-icon {
    font-size: 50px;
}

.style-basket h3 {
    margin: 8px 0 16px;

    font-size: 23px;
}

.literary-basket h3 {
    color: #6846c8;
}

.normal-basket h3 {
    color: #167dbb;
}

.basket-drop {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    padding: 10px;

    color: #999;

    font-size: 15px;
}


/* Drag кезінде */

.style-basket.drag-over {
    transform: scale(1.02);

    box-shadow: 0 0 0 5px rgba(255,138,0,0.15);
}


/* =========================
   ДҰРЫС
========================= */

.style-card.correct {
    width: 92%;
    max-width: none;

    text-align: center;

    background: #e3f8e8;

    border-color: #28a745;

    color: #247a36;

    cursor: default;

    animation: styleCorrect 0.4s ease;
}

@keyframes styleCorrect {

    0% {
        transform: scale(.85);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================
   ҚАТЕ
========================= */

.style-card.wrong {
    background: #fdeaea;

    border-color: #dc3545;

    animation: styleWrong 0.4s;
}

@keyframes styleWrong {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }

}


/* =========================
   ХАБАРЛАМА
========================= */

#styleGameMessage {
    min-height: 38px;

    margin-top: 22px;

    text-align: center;

    font-size: 21px;
    font-weight: 700;
}

#styleGameMessage.success {
    color: #28a745;
}

#styleGameMessage.error {
    color: #dc3545;
}


/* RESET */

#resetStyleGame {
    display: block;

    margin: 15px auto 0;

    padding: 12px 25px;

    border: none;
    border-radius: 10px;

    background: #ff8a00;

    color: #fff;

    font-size: 18px;

    cursor: pointer;
}

#resetStyleGame:hover {
    background: #e87900;
}


/* MOBILE */

@media (max-width: 800px) {

    .style-info,
    .style-baskets {
        grid-template-columns: 1fr;
    }

    .style-card {
        width: 100%;
        max-width: none;
    }

}










