body{
    margin:0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg,#f7fafc,#eef3f7);
    color:#1f2937;
}

.practice-module,
.practice-selector {
    max-width: 980px;
    margin: 30px auto;
    font-family: "Palatino Linotype", Palatino, serif;
    color: #1f2937;
}

/* ===== SOFT GLASS CARDS ===== */

.practice-hero,
.practice-card,
.practice-note,
.practice-finish,
.practice-theme-card {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    border: 1px solid #e6eaee;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.05),
        0 1px 0 rgba(255,255,255,0.6) inset;
    backdrop-filter: blur(6px);
}

.practice-hero {
    padding: 32px 26px;
    text-align: center;
    margin-bottom: 28px;
}

.practice-hero h1,
.practice-card-title,
.practice-selector-title,
.practice-theme-card h2,
.practice-word,
.practice-finish h2 {
    font-family: "Oswald", Arial, sans-serif;
    letter-spacing: 0.5px;
}

.practice-hero h1,
.practice-selector-title {
    font-size: 34px;
}

.practice-hero p,
.practice-selector-subtitle,
.practice-card-intro,
.practice-note,
.practice-finish p {
    color: #4b5563;
    line-height: 1.65;
    font-size: 18px;
}

/* ===== THEMES GRID ===== */

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 12px;
}

.practice-theme-card {
    padding: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}

.practice-theme-icon {
    font-size: 54px;
    margin-bottom: 14px;
}

.practice-theme-card p {
    margin: 8px 0 34px 0;
    color: #4b5563;
    line-height: 1.6;
}

.practice-theme-card .practice-btn {
    margin-top: 6px;
}

/* ===== PRACTICE CARD ===== */

.practice-card {
    padding: 28px 24px 26px 24px;
    transition: opacity 0.18s ease, transform 0.18s ease;   
}
.practice-card.is-switching{
    opacity:0;
    transform:translateY(6px);
}

.practice-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.practice-theme-badge {
    display: inline-block;
    background: #e6f6f5;
    color: #068b88;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 14px;
}

.practice-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.practice-controls label {
    font-weight: bold;
    color: #374151;
    font-family: "Oswald", Arial, sans-serif;
}

.practice-select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff;
    min-height: 44px;
}

/* ===== PROGRESS ===== */

.practice-progressbar {
    height: 4px;
    background: #e9edf1;
    border-radius: 999px;
    overflow: hidden;
    margin: 30px auto 36px auto;
    max-width: 520px;
}

.practice-progressfill {
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg,#068b88,#10b3ad);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== INNER LEARNING PANEL ===== */

.js-practice-area {
    max-width: 520px;
    margin: 0 auto;
    background: #f9fbfc;
    border-radius: 18px;
    padding: 28px 24px;
    border: 1px solid #e6eaee;
    scroll-margin-top: 18px;
}

/* ===== WORD ===== */

.practice-image {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 84px;
    margin: 10px 0 8px 0;
}

.practice-image img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 14px;
}

.practice-word {
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin: 6px 0 18px 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.practice-translation {
    display: none;
    text-align: center;
    font-size: 28px;
    color: #068b88;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.practice-sentence {
    display: none;
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 auto 20px auto;
    max-width: 720px;
    line-height: 1.65;
    color: #374151;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ===== BUTTONS ===== */

.practice-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.practice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.practice-btn:hover {
    transform: translateY(-1px);
}

.practice-btn:active {
    transform: translateY(0);
}

.practice-btn:focus-visible,
.practice-select:focus-visible {
    outline: 3px solid rgba(6,139,136,0.22);
    outline-offset: 2px;
}

.practice-btn[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.practice-btn-primary,
.practice-btn-secondary,
.practice-btn-nav {
    background: #068b88;
    color: #ffffff;
    font-family: "Palatino Linotype", Palatino, serif;
}

.practice-btn-primary:hover,
.practice-btn-secondary:hover,
.practice-btn-nav:hover {
    background: #05706e;
}

.practice-btn-good {
    background: #16a34a;
    color: #ffffff;
}

.practice-btn-good:hover {
    background: #12813b;
}

.practice-btn-bad {
    background: #dc2626;
    color: #ffffff;
}

.practice-btn-bad:hover {
    background: #b91c1c;
}

/* ===== NAV ===== */

.practice-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e9ed;
}

.practice-note {
    margin-top: 42px;
    padding: 18px 22px;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.85);
    border-radius: 999px;
    border: 1px solid #e6eaee;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.practice-finish {
    scroll-margin-top: 18px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.practice-finish.is-entering {
    opacity: 0;
    transform: translateY(10px);
}

.practice-restore-box{
    max-width: 760px;
    margin: 0 auto 24px auto;
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    border: 1px solid #e6eaee;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    padding: 22px 20px;
    text-align: center;
}

.practice-restore-label{
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #068b88;
    margin-bottom: 8px;
}

.practice-restore-title{
    font-family: "Oswald", Arial, sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #1f2937;
}

.practice-restore-text{
    color: #4b5563;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 18px;
}

.practice-restore-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

/* ===== MOBILE ===== */

@media (max-width: 640px) {

    .practice-module,
    .practice-selector {
        margin: 18px auto;
    }

    .practice-hero,
    .practice-card,
    .practice-theme-card,
    .practice-note,
    .practice-finish {
        border-radius: 16px;
    }

    .practice-hero {
        padding: 26px 18px;
    }

    .practice-hero h1,
    .practice-selector-title {
        font-size: 28px;
    }

    .practice-word {
        font-size: 34px;
    }

    .practice-translation {
        font-size: 24px;
    }

    .practice-image {
        min-height: 120px;
        font-size: 72px;
    }

    .practice-card {
        padding: 22px 16px;
    }

    .js-practice-area {
        padding: 22px 16px 26px 16px;
        border-radius: 16px;
    }

    .practice-note {
        margin-top: 30px;
        padding: 16px 18px;
        border-radius: 18px;
    }

    .practice-topbar {
        align-items: stretch;
    }

    .practice-controls {
        width: 100%;
    }

    .practice-controls label,
    .practice-select {
        width: 100%;
    }

    .practice-select {
        font-size: 16px;
        min-height: 46px;
    }

    .practice-buttons,
    .practice-nav {
        gap: 12px;
    }

    .practice-buttons .practice-btn,
    .practice-nav .practice-btn,
    .practice-finish .practice-btn {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px !important;
        min-height: 52px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .practice-finish a.practice-btn,
    .practice-finish button.practice-btn {
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 420px) {
    .practice-buttons .practice-btn,
    .practice-nav .practice-btn,
    .practice-finish .practice-btn {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .practice-word {
        font-size: 30px;
    }

    .practice-translation {
        font-size: 22px;
    }
}

.practice-btn,
.practice-btn:link,
.practice-btn:visited,
.practice-btn:hover,
.practice-btn:active,
.practice-btn:focus {
    text-decoration: none !important;
}