:root{color-scheme:light}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top,#e0f2fe,#f9fafb 55%)}html,body{overflow-x:hidden}.app-root{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.app-wrapper{display:flex;flex-direction:column;align-items:center;width:100%}.app-card{width:100%;max-width:900px;background:#fff;border-radius:24px;box-shadow:0 18px 60px #0f172a26;padding:24px 24px 28px;box-sizing:border-box}.global-footer{margin-top:24px;margin-bottom:12px;width:100%;text-align:center;font-size:13px;color:#6b7280;opacity:.85;-webkit-user-select:none;user-select:none}.app-header{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:16px}.header-text{max-width:70%}.app-title{margin:0;font-size:28px;letter-spacing:.02em}.app-subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.ghost-button{border:1px solid #e5e7eb;background:#f9fafb;border-radius:999px;padding:6px 12px;font-size:13px;cursor:pointer;color:#374151;display:inline-flex;align-items:center;gap:6px;transition:background .15s,border-color .15s,transform .1s;white-space:nowrap}.ghost-button:hover{background:#eef2ff;border-color:#c7d2fe;transform:translateY(-1px)}.feedback-overlay{position:fixed;inset:0;background:#0f172a73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2000;display:flex;align-items:center;justify-content:center}.feedback-modal{width:90%;max-width:360px;background:#ffffffd9;border-radius:18px;padding:22px 20px;box-shadow:0 20px 40px #0000004d;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:0;transform:translateY(12px) scale(.96);animation:popup .25s ease-out forwards}@keyframes popup{to{opacity:1;transform:translateY(0) scale(1)}}.feedback-title{text-align:center;margin-bottom:14px;font-size:18px;color:#0f172a}.feedback-input-wrapper{position:relative;margin-bottom:18px}.feedback-placeholder{position:absolute;top:12px;left:14px;color:#2d2f33;opacity:.9;pointer-events:none}.feedback-textarea{width:100%;height:120px;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;resize:none;font-size:14px;background:#ffffffb3;-webkit-backdrop-filter:blur(.1px);backdrop-filter:blur(.1px);box-sizing:border-box}.feedback-textarea:focus{outline:none;border-color:#2563eb}.feedback-buttons{display:flex;justify-content:flex-end;gap:10px}.feedback-cancel,.feedback-send{padding:8px 14px;border-radius:8px;font-size:14px;cursor:pointer;border:none}.feedback-cancel{background:#e5e7eb;color:#374151}.feedback-cancel:hover{background:#d1d5db}.feedback-send{background:#2563eb;color:#fff}.feedback-send:disabled{background:#9ca3af;cursor:not-allowed}.feedback-send:hover:not(:disabled){background:#1d4ed8}.category-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.category-pill{border:1px solid #e5e7eb;background:#f9fafb;border-radius:999px;padding:4px 10px;font-size:12px;cursor:pointer;color:#4b5563;transition:background .15s,color .15s,border-color .15s}.category-pill--active{background:#2563eb;border-color:#2563eb;color:#fff}.toggle-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}.toggle-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#4b5563}.flashcard{position:relative;width:100%;margin:0 auto 18px;max-width:520px;perspective:1000px}.flashcard-inner{position:relative;width:100%;min-height:190px;padding:20px 16px;border-radius:22px;background:linear-gradient(135deg,#eef2ff,#e0f2fe);box-shadow:0 16px 40px #4b556359;box-sizing:border-box;transform-style:preserve-3d;transition:transform .75s ease;cursor:pointer}.flashcard.flashcard--flipped .flashcard-inner{transform:rotateY(180deg)}.flashcard-face{position:absolute;inset:0;padding:26px 20px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;backface-visibility:hidden;text-align:center}.flashcard-back{transform:rotateY(180deg);display:flex;flex-direction:column;justify-content:center;align-items:center}.flashcard-tajik{font-size:32px;margin-bottom:8px}.flashcard-pron-latin{font-size:16px;color:#111827}.flashcard-pron-cyr{font-size:14px;color:#374151;margin-top:2px}.flashcard-hint{margin-top:14px;font-size:12px;color:#6b7280}.flashcard-translation{font-size:17px;color:#111827;margin:6px 0;text-align:center}.flashcard-translation strong{font-weight:600;margin-left:4px}.flashcard-translation .label{font-weight:600;color:#374151}.flashcard:hover .flashcard-inner{box-shadow:0 20px 45px #37415159}.toast{position:absolute;top:20px;left:50%;transform:translate(-50%);z-index:5000;background:#10b981f2;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;font-weight:500;box-shadow:0 8px 20px #00000040;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:toast-pop .25s ease-out forwards,toast-fade .25s ease-in 2.5s forwards}@keyframes toast-pop{0%{opacity:0;transform:translate(-50%) translateY(10px) scale(.95)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}@keyframes toast-fade{to{opacity:0;transform:translate(-50%) translateY(10px) scale(.95)}}.audio-button{margin-top:8px;padding:6px 12px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;font-size:13px;cursor:pointer;color:#374151;transition:background .15s,transform .1s}.audio-button:hover{background:#e0e7ff;transform:translateY(-1px)}.nav-row{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:6px}.nav-counter{display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;font-size:14px;font-weight:500;color:#374151;line-height:1}.primary-button{border:none;border-radius:999px;padding:8px 16px;font-size:14px;cursor:pointer;background:#2563eb;color:#fff;display:inline-flex;align-items:center;gap:4px;box-shadow:0 8px 20px #2563eb59;transition:background .15s,transform .08s,box-shadow .08s}.primary-button:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 10px 24px #2563eb66}.primary-button:active{transform:translateY(0);box-shadow:0 6px 14px #2563eb59}.category-dropdown{display:none}@media(max-width:640px){.category-row{display:none}.category-dropdown{display:block;width:100%;padding:10px;font-size:15px;border-radius:12px;border:1px solid #d1d5db;background:#f9fafb;margin:12px 0 16px}.app-card{border-radius:18px;padding:18px 14px 22px}.flashcard{max-width:100%}.category-row{max-height:80px;overflow-y:auto}}
