@font-face{font-display:swap;font-family:'Inter';font-style:normal;font-weight:400;src:url(fonts/inter-v19-latin-regular.woff2) format('woff2')}@font-face{font-display:swap;font-family:'Inter';font-style:normal;font-weight:500;src:url(fonts/inter-v19-latin-500.woff2) format('woff2')}@font-face{font-display:swap;font-family:'Inter';font-style:normal;font-weight:600;src:url(fonts/inter-v19-latin-600.woff2) format('woff2')}@font-face{font-display:swap;font-family:'Inter';font-style:normal;font-weight:700;src:url(fonts/inter-v19-latin-700.woff2) format('woff2')}:root{--bg-body:#f3f4f6;--text-main:#111827;--card-front-bg:#ffffff;--card-front-text:#111827;--card-back-bg:#1e40af;--card-back-text:#ffffff}body{font-family:'Inter',sans-serif;background-color:var(--bg-body);color:var(--text-main);transition:background-color 0.3s,color 0.3s}body.custom-theme h1,body.custom-theme h2,body.custom-theme h3,body.custom-theme p,body.custom-theme span,body.custom-theme div:not(.flashcard-face):not(.face-content):not(.card-word):not(.card-definition):not(.card-answer-title):not(.favorite-star){color:var(--text-main)}body.custom-theme #quiz-interface h1,body.custom-theme #quiz-interface h2,body.custom-theme #quiz-interface h3,body.custom-theme #quiz-interface p,body.custom-theme #quiz-interface span,body.custom-theme #quiz-interface div,body.custom-theme #deck-editor-view h1,body.custom-theme #deck-editor-view h2,body.custom-theme #deck-editor-view p,body.custom-theme #deck-editor-view span,body.custom-theme #deck-editor-view div,body.custom-theme #leaderboard-view h1,body.custom-theme #leaderboard-view h2,body.custom-theme #leaderboard-view p,body.custom-theme #leaderboard-view span,body.custom-theme #leaderboard-view div{color:#111827}body.custom-theme .modal-content h1,body.custom-theme .modal-content h2,body.custom-theme .modal-content h3,body.custom-theme .modal-content p,body.custom-theme .modal-content label,body.custom-theme .modal-content span,body.custom-theme .modal-content div,body.custom-theme .modal-content input,body.custom-theme .modal-content textarea{color:#111827!important}body.custom-theme .text-red-600,body.custom-theme .text-red-500,body.custom-theme [class*="text-red-"]{color:#dc2626!important}body.custom-theme .card-word{color:var(--card-front-text)!important}body.custom-theme .card-definition,body.custom-theme .card-answer-title{color:var(--card-back-text)!important}body.custom-theme .set-button,body.custom-theme .set-info-btn,body.custom-theme .set-info-btn-mistakes,body.custom-theme .category-button,body.custom-theme .answer-btn{color:initial}body.custom-theme .text-white{color:#ffffff!important}body.custom-theme .text-gray-800{color:#1f2937!important}body.custom-theme .set-button div,body.custom-theme .set-info-btn span{color:inherit}.flashcard-container{position:relative;perspective:1000px;height:250px}.flashcard{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform 0.6s;cursor:pointer}.flashcard.is-flipped{transform:rotateY(180deg)}.flashcard-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;padding:1.5rem;border-radius:1rem;box-shadow:0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1);text-align:center;overflow-y:auto;scrollbar-width:none}.face-content{margin-top:auto;margin-bottom:auto;width:100%}.flashcard-face::-webkit-scrollbar{display:none}.flashcard-front{background-color:var(--card-front-bg);color:var(--card-front-text)}.flashcard-back{background-color:var(--card-back-bg);color:var(--card-back-text);transform:rotateY(180deg);padding:1.75rem}.card-word{font-size:1.5rem;font-weight:700}.card-answer-title{font-size:.875rem;font-weight:600;opacity:.8;margin-bottom:.5rem}.card-definition{font-size:1rem;font-weight:500}.category-button{background:#fff;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgb(0 0 0 / .04);transition:all 0.2s ease}.category-button:hover{background:#eef2ff;border-color:#c7d2fe;box-shadow:0 4px 12px rgb(99 102 241 / .1);transform:translateY(-1px)}.category-button.active{background-color:#1d4ed8;color:#fff;font-weight:700}.set-button{background:#3b82f6;border:none;box-shadow:0 2px 8px rgb(37 99 235 / .2);transition:all 0.2s ease}.set-button:hover{background:#2563eb;box-shadow:0 4px 16px rgb(37 99 235 / .3);transform:translateY(-1px)}.set-button.active{background:#1d4ed8;color:#fff;font-weight:700}.question-btn{background-color:#E5E7EB;color:#374151;border:1px solid #fff0;transition:all 0.2s}.question-btn:hover{background-color:#d1d5db}.question-btn.active{background-color:#1D4ED8;color:#fff}.answer-btn.correct{background-color:#22c55e!important;color:white!important;border-color:#16a34a!important}.answer-btn.incorrect{background-color:#ef4444!important;color:white!important;border-color:#dc2626!important}.answer-btn:disabled{cursor:not-allowed}.quiz-exit-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:.5rem;font-size:.875rem;font-weight:600;color:#6b7280;background:#f3f4f6;border:1px solid #e5e7eb;cursor:pointer;transition:all 0.2s}.quiz-exit-btn:hover{background:#fee2e2;color:#dc2626;border-color:#fca5a5}.modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgb(0 0 0 / .45);display:flex;justify-content:center;align-items:center;z-index:50;opacity:0;transition:opacity 0.3s ease;pointer-events:none}#theme-modal.modal-backdrop{background-color:#fff0}.modal-backdrop.visible{opacity:1;pointer-events:auto}.modal-content{background:#fff;padding:2rem;border-radius:1.25rem;box-shadow:0 25px 60px -12px rgb(0 0 0 / .2);width:90%;max-width:400px;transform:scale(.95) translateY(10px);transition:transform 0.3s cubic-bezier(.34,1.56,.64,1)}.modal-backdrop.visible .modal-content{transform:scale(1) translateY(0)}#tts-modal .modal-content{padding:1.25rem 1.5rem;max-width:420px;width:92%;max-height:85vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}#tts-voice-select{width:100%!important;max-width:100%!important;box-sizing:border-box!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important;display:block!important;cursor:pointer}#tts-voice-select option{max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:6px 10px;font-weight:500}.legal-notice-banner{background-color:var(--bg-body);color:var(--text-main);padding:.5rem 1rem;text-align:center;font-size:.75rem;font-weight:500;transition:background-color 0.3s,color 0.3s;opacity:.5}.set-info-btn{display:inline-flex;align-items:center;background-color:#1d4ed8;color:#fff;padding:.5rem 1rem;border-radius:.5rem;font-weight:700;font-size:1rem;border:1px solid #000;transition:background-color 0.2s ease-in-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / .05);cursor:default}.set-info-btn:hover{background-color:#1e40af}.set-info-btn .card-count{color:#f87171;font-weight:900;margin-left:.75rem;background-color:rgb(0 0 0 / .2);padding:.15rem .5rem;border-radius:.375rem;font-size:.875rem}.set-info-btn-mistakes{display:inline-flex;align-items:center;background-color:#dc2626;color:#fff;padding:.5rem 1rem;border-radius:.5rem;font-weight:700;font-size:1rem;border:1px solid #000;transition:background-color 0.2s ease-in-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / .05);cursor:default}.set-info-btn-mistakes:hover{background-color:#b91c1c}.set-info-btn-mistakes .card-count{color:#fde047;font-weight:900;margin-left:.75rem;background-color:rgb(255 255 255 / .15);padding:.15rem .6rem;border-radius:.5rem;font-size:.875rem}#review-mistakes-btn,#take-quiz-btn,#favorites-btn{border:1px solid #000}.favorite-star{position:absolute;top:12px;right:12px;font-size:1.75rem;color:#cbd5e1;cursor:pointer;transition:color 0.2s,transform 0.2s;z-index:10;text-shadow:0 1px 3px rgb(0 0 0 / .15);filter:drop-shadow(0 1px 1px rgb(0 0 0 / .05))}.favorite-star:hover{transform:scale(1.15)}.favorite-star.favorited{color:#f59e0b}.offline-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;background:#fbbf24;color:#78350f;font-size:.875rem;font-weight:600;box-shadow:0 -2px 10px rgb(0 0 0 / .15);animation:slide-up 0.4s ease-out}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0)}}body.custom-theme .srs-rating-btn.btn-hard,body.custom-theme .srs-rating-btn.btn-hard span{color:#991b1b!important}body.custom-theme .srs-rating-btn.btn-good,body.custom-theme .srs-rating-btn.btn-good span{color:#1e40af!important}body.custom-theme .srs-rating-btn.btn-easy,body.custom-theme .srs-rating-btn.btn-easy span{color:#065f46!important}body.custom-theme .due-badge-red{color:#dc2626!important;background:#fef2f2!important}body.custom-theme .due-badge-green{color:#16a34a!important;background:#f0fdf4!important}body.custom-theme .text-green-600{color:#16a34a!important}body.custom-theme #srs-session-title{color:var(--text-main)!important}body.custom-theme #srs-session-counter{color:var(--text-main)!important;opacity:.7}body.custom-theme #srs-study-view .kbd{background:rgb(255 255 255 / .1);border-color:rgb(255 255 255 / .2);color:var(--text-main)!important;box-shadow:0 1px 0 rgb(255 255 255 / .1)}body.custom-theme #srs-study-view>.flex>.flex>span{color:var(--text-main)!important;opacity:.7}body.custom-theme .srs-progress-track{background:rgb(255 255 255 / .15)}body.custom-theme #srs-finished h2{color:var(--text-main)!important}body.custom-theme #srs-finished p{color:var(--text-main)!important;opacity:.7}body.custom-theme #srs-finished .stat-card{background:rgb(255 255 255 / .08);border-color:rgb(255 255 255 / .12)}body.custom-theme #srs-finished .stat-card .text-xs{color:var(--text-main)!important;opacity:.6}body.custom-theme #srs-stat-total{color:#60a5fa!important}body.custom-theme #srs-stat-easy{color:#34d399!important}body.custom-theme #srs-stat-hard{color:#f87171!important}body.custom-theme .srs-face-front{background:var(--card-front-bg)!important;border-color:rgb(255 255 255 / .1)!important}body.custom-theme .srs-face-front span,body.custom-theme .srs-face-front h2,body.custom-theme .srs-face-front p{color:var(--card-front-text)!important}body.custom-theme .flashcard-container span[title]{box-shadow:0 0 0 2px rgb(0 0 0 / .3)}body.custom-theme #helper-text{color:var(--text-main)!important;opacity:.6}body.custom-theme .search-bar{background:rgb(255 255 255 / .08);border-color:rgb(255 255 255 / .15);color:var(--text-main)}body.custom-theme .search-icon{color:rgb(255 255 255 / .4)}body.custom-theme .category-button,body.custom-theme .category-button span{color:#1f2937!important}body.custom-theme .category-button:hover,body.custom-theme .category-button:hover span{color:#312e81!important}body.custom-theme .category-button.active,body.custom-theme .category-button.active span{color:#ffffff!important}body.custom-theme #public-decks-btn,body.custom-theme #my-decks-btn,body.custom-theme #stats-btn,body.custom-theme #stats-btn span{color:#374151!important}body.custom-theme #profile-dropdown,body.custom-theme #profile-dropdown p,body.custom-theme #profile-dropdown div{color:#374151!important}body.custom-theme #profile-dropdown #logout-btn{color:#dc2626!important}body.custom-theme .flashcard-front{border-color:rgb(255 255 255 / .08);box-shadow:0 2px 8px rgb(0 0 0 / .2)}body.custom-theme .flashcard-container:hover .flashcard-front{box-shadow:0 8px 30px rgb(99 102 241 / .15),0 2px 8px rgb(0 0 0 / .15)}body.custom-theme .flashcard-back{border-color:rgb(255 255 255 / .1)}body.custom-theme{background-image:none}body.custom-theme .signup-banner-glass{background:#1d4ed8!important}body.custom-theme .empty-state-container{background:rgb(255 255 255 / .04);border-color:rgb(255 255 255 / .08)}body.custom-theme .empty-state-container h3,body.custom-theme .empty-state-container p{color:var(--text-main)!important}body.custom-theme .header-bar{background:#111827!important;border-color:#1f2937!important}body.custom-theme .header-bar button{border-color:rgb(255 255 255 / .1)!important}body.custom-theme .stat-card{background:rgb(255 255 255 / .06);border-color:rgb(255 255 255 / .1)}