:root { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #18212f; background: #eef4ff; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; padding: 14px; display: grid; place-items: center; overflow-x: hidden; }
.card { width: min(100%, 680px); padding: clamp(24px, 6vw, 48px); border-radius: 24px; background: #fff; box-shadow: 0 18px 60px rgba(38,71,135,.14); }
h1 { margin: 0 0 28px; font-size: clamp(32px, 7vw, 48px); line-height: 1.1; }
h2 { font-size: 21px; }
.eyebrow, .progress { margin: 0 0 10px; color: #526581; font-weight: 700; }
.word-list { margin: 0 0 30px; padding: 0; list-style: none; }
.word-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 4px; border-bottom: 1px solid #e4eaf3; font-size: 19px; }
.word-list .word-card { align-items: flex-start; flex-direction: column; gap: 6px; }
.word-list .word-card span { text-align: left; }
.word-list span { color: #526581; text-align: right; }
button, .button { width: 100%; min-height: 58px; border: 2px solid #ccd8ea; border-radius: 16px; background: #fff; color: #18212f; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.button { display: grid; place-items: center; padding: 10px 18px; text-decoration: none; }
button:hover, .button:hover { border-color: #3b6fe5; background: #f3f7ff; }
button:active, .button:active { transform: scale(.98); }
button:disabled { opacity: .65; cursor: wait; }
.primary { border-color: #3165d4; background: #3165d4; color: #fff; }
.primary:hover { border-color: #2453b8; background: #2453b8; }
.secondary { margin-top: 12px; }
.menu, .lesson-list, .result-actions { display: grid; gap: 12px; }
.menu-item { display: flex; justify-content: space-between; gap: 18px; min-height: 68px; padding: 20px; border: 2px solid #e1e8f2; border-radius: 16px; color: inherit; text-decoration: none; }
.menu-item span { color: #526581; }
.question-word { margin: 4px 0 32px; color: #3165d4; font-size: clamp(46px, 12vw, 72px); font-weight: 800; text-align: center; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.manual-answer { display: grid; gap: 12px; }
.manual-answer label { color: #526581; font-weight: 700; }
.manual-answer input { width: 100%; min-height: 60px; padding: 0 18px; border: 2px solid #ccd8ea; border-radius: 16px; color: #18212f; font: inherit; font-size: 21px; }
.manual-answer input:focus { border-color: #3165d4; outline: 3px solid rgba(49,101,212,.14); }
.sentence { margin: 8px 0 32px; padding: 24px; border-radius: 18px; background: #f3f7ff; font-size: clamp(23px,5vw,30px); font-weight: 700; line-height: 1.35; text-align: center; }
.result { margin: 0 0 28px; font-size: 22px; }
.mistakes { margin-bottom: 28px; }
.compact { margin-bottom: 0; }
.compact li { padding: 10px 4px; font-size: 17px; }
.progress-list { max-height: 55vh; overflow: auto; }
.user-bar { display: flex; justify-content: space-between; gap: 16px; margin: -8px 0 26px; color: #526581; font-weight: 700; }
.user-bar a { color: #3165d4; }
.user-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.course-list { display: grid; gap: 14px; }
.course-card { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 18px 22px; text-align: left; }
.course-card strong { font-size: 26px; }
.course-card strong span { color: #526581; font-size: 18px; }
.course-card small { color: #526581; font-size: 16px; }
.word-main { color: #3165d4; font-size: 25px; }
.chinese-word-card .word-main { font-size: 38px; line-height: 1; }
.word-card .pinyin { color: #3165d4; font-size: 18px; }
.word-card .translation { color: #18212f; font-weight: 700; }
.question-word small { display: block; margin-top: 8px; color: #526581; font-size: .38em; font-weight: 700; }
.choice-pinyin { display: block; margin-top: 4px; color: #526581; font-size: 14px; }
.feedback { margin-bottom: 24px; padding: 22px; border-radius: 18px; }
.feedback h1 { margin-bottom: 22px; font-size: clamp(30px, 7vw, 42px); }
.feedback p { font-size: 20px; line-height: 1.45; }
.feedback-correct { background: #eaf8ef; border: 2px solid #73bd8c; }
.feedback-wrong { background: #fff1f0; border: 2px solid #e2918a; }
.word-pair { margin-bottom: 0; }
.form-error { padding: 14px; border-radius: 12px; background: #fff1f0; color: #9a2f25; font-weight: 700; }
.pin-label { margin-bottom: 4px; text-align: center; font-size: 21px; }
.pin { margin: 0 0 24px; color: #3165d4; font-size: clamp(54px, 15vw, 80px); font-weight: 800; letter-spacing: .14em; text-align: center; }
@media (max-width: 520px) {
    .card { padding: 24px 18px; border-radius: 20px; }
    .answers { grid-template-columns: 1fr; }
    .menu-item { flex-direction: column; gap: 4px; }
    .word-list li { font-size: 17px; }
    .user-bar { align-items: flex-start; flex-direction: column; gap: 5px; }
    .user-links { justify-content: flex-start; }
    .course-card { min-height: 84px; }
}
