/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   BODY
===================================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* =====================================================
   CONTAINER
===================================================== */

.practice-container {
    width: 100%;
    max-width: 800px;
}

/* =====================================================
   CARD
===================================================== */

.practice-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

/* =====================================================
   ICON
===================================================== */

.icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 30px;
    user-select: none;
}

/* =====================================================
   VERBS PANEL
===================================================== */

.verbs-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =====================================================
   WORDS
===================================================== */

.word {
    text-align: center;
    font-size: 52px;
    font-weight: 600;
    color: #a0a0a0;
    padding: 18px;
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* =====================================================
   ACTIVE WORD
===================================================== */

.active {
    background: #2563eb;
    color: white;
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* =====================================================
   DIMMED WORDS
===================================================== */

.dimmed {
    opacity: 0.32;
}

/* =====================================================
   STATUS
===================================================== */

.status {
    margin-top: 30px;
    text-align: center;
    color: #666666;
    font-size: 16px;
    opacity: 0.20;
    transition: opacity 0.3s ease;
}

/* =====================================================
   PROGRESS
===================================================== */

.progress {
    margin-top: 25px;
    width: 100%;
    height: 18px;
    background: #e4e4e7;
    border-radius: 999px;
    overflow: hidden;
    opacity: 0.20;
    transition: opacity 0.3s ease;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #22c55e;
    transition: width 0.4s ease;
}

/* =====================================================
   COUNTER
===================================================== */

.counter {
    margin-top: 10px;
    text-align: center;
    color: #777777;
    font-size: 14px;
    opacity: 0.20;
    transition: opacity 0.3s ease;
}

/* =====================================================
   FOCUS MODE
===================================================== */

.focus-mode {
    opacity: 0.10;
}

/* =====================================================
   BUTTONS
===================================================== */

.actions {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {

    width: 110px;

    border: none;
    border-radius: 12px;

    padding: 14px 0;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-play {
    background: #22c55e;
    color: white;
}

.btn-stop {
    background: #ef4444;
    color: white;
}

.btn-check {

    background: #3b82f6;
}

.btn-check:hover {

    background: #2563eb;
}

.btn-next {

    background: #f59e0b;
}

.btn-next:hover {

    background: #d97706;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .practice-card {
        padding: 25px;
    }

    .icon {
        font-size: 52px;
    }

    .word {
        font-size: 38px;
        padding: 14px;
    }

}

@media (max-width: 480px) {

    .word {
        font-size: 30px;
    }

    .btn {
        width: 100%;
    }

}

.answer-container {

    margin-top: 35px;
    margin-bottom: 10px;

}

.answer-container input {

    width: 260px;

    padding: 10px;

    border: 1px solid #ddd;

    border-radius: 6px;

    text-align: center;
}

.action-row {

    display: flex;

    justify-content: center;

    gap: 12px;
}

.actions {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}

.answer-container {

    margin-top: 30px;
    margin-bottom: 15px;

    display: flex;
    justify-content: center;
}

.answer-container input {

    width: 450px;
    max-width: 90%;

    padding: 14px 16px;

    font-size: 1.8rem;

    font-weight: 600;

    text-align: center;

    color: #888;

    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.answer-container input::placeholder {

    color: #dddddd;

    opacity: 1;
}

.score-board {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 15px;

    font-size: 14px;

    font-weight: bold;
}

#correctCount {

    color: #22c55e;
}

#wrongCount {

    color: #ef4444;
}

.difficulty-panel {

    margin-top: 15px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 6px;
}

.difficulty-btn {

    border: none;

    border-radius: 8px;

    padding: 8px 12px;

    font-size: 12px;

    cursor: pointer;

    background: #e5e7eb;

    color: #666;

    min-width: 80px;
}

.active-level {

    background: #3b82f6;

    color: white;
}