:root{--tg-theme-bg-color: #ffffff;--tg-theme-text-color: #000000;--tg-theme-hint-color: #999999;--tg-theme-link-color: #2481cc;--tg-theme-button-color: #2481cc;--tg-theme-button-text-color: #ffffff;--tg-theme-secondary-bg-color: #efeff3;--tg-theme-header-bg-color: #ffffff;--tg-theme-accent-text-color: #2481cc;--tg-theme-section-bg-color: #ffffff;--tg-theme-section-header-text-color: #6d6d71;--tg-theme-subtitle-text-color: #999999;--tg-theme-destructive-text-color: #ff3b30;--quiz-correct: #34c759;--quiz-wrong: #ff3b30;--quiz-selected: #007aff;--quiz-progress: #2481cc;--quiz-card-shadow: 0 2px 12px rgba(0, 0, 0, .08);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;min-height:100vh;overflow-x:hidden}body{background-color:var(--tg-theme-secondary-bg-color)}#root{width:100%;min-height:100vh;display:flex;flex-direction:column}button{font-family:inherit;cursor:pointer;border:none;outline:none;-webkit-tap-highlight-color:transparent}a{color:var(--tg-theme-link-color);text-decoration:none}img{max-width:100%;display:block}@keyframes fadeIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes pulseGlow{0%,to{box-shadow:0 0 #2481cc4d}50%{box-shadow:0 0 0 12px #2481cc00}}@keyframes countUp{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.app{width:100%;min-height:100vh;display:flex;flex-direction:column}.intro{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;animation:fadeIn .5s ease-out}.intro-icon{margin-bottom:24px;animation:scaleIn .6s ease-out}.intro-title{font-size:32px;font-weight:800;color:var(--tg-theme-text-color);margin-bottom:12px;letter-spacing:-.5px}.intro-description{font-size:15px;color:var(--tg-theme-hint-color);max-width:320px;line-height:1.6;margin-bottom:32px}.intro-details{display:flex;gap:24px;margin-bottom:40px}.intro-detail-item{display:flex;flex-direction:column;align-items:center;gap:4px}.detail-number{font-size:24px;font-weight:700;color:var(--tg-theme-button-color)}.detail-label{font-size:12px;color:var(--tg-theme-hint-color);text-transform:uppercase;letter-spacing:.5px}.btn-primary{width:100%;max-width:320px;padding:16px 32px;font-size:16px;font-weight:600;color:var(--tg-theme-button-text-color);background-color:var(--tg-theme-button-color);border-radius:12px;transition:opacity .2s,transform .15s}.btn-primary:active{opacity:.85;transform:scale(.97)}.btn-secondary{width:100%;max-width:320px;padding:16px 32px;font-size:16px;font-weight:600;color:var(--tg-theme-button-color);background-color:transparent;border:2px solid var(--tg-theme-button-color);border-radius:12px;transition:opacity .2s,transform .15s}.btn-secondary:active{opacity:.85;transform:scale(.97)}.progress-bar-container{position:sticky;top:0;z-index:10;width:100%;height:4px;background-color:var(--tg-theme-secondary-bg-color)}.progress-bar{height:100%;background-color:var(--quiz-progress);transition:width .4s ease;border-radius:0 2px 2px 0}.quiz-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 8px}.quiz-counter{font-size:14px;font-weight:600;color:var(--tg-theme-text-color)}.quiz-timer{font-size:14px;font-weight:600;color:var(--tg-theme-hint-color);font-variant-numeric:tabular-nums}.quiz-difficulty{padding:0 20px 8px}.difficulty-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.difficulty-easy{background-color:#e8f8ef;color:#27ae60}.difficulty-medium{background-color:#fef5e7;color:#f39c12}.difficulty-hard{background-color:#fdedec;color:#e74c3c}.question-card{margin:8px 20px 20px;padding:24px;background-color:var(--tg-theme-section-bg-color);border-radius:16px;box-shadow:var(--quiz-card-shadow);animation:slideIn .35s ease-out}.question-text{font-size:18px;font-weight:600;color:var(--tg-theme-text-color);line-height:1.5}.options-container{display:flex;flex-direction:column;gap:10px;padding:0 20px 32px;animation:fadeIn .4s ease-out .1s both}.option-btn{display:flex;align-items:center;gap:14px;width:100%;padding:16px 18px;font-size:15px;color:var(--tg-theme-text-color);background-color:var(--tg-theme-section-bg-color);border:2px solid transparent;border-radius:12px;box-shadow:var(--quiz-card-shadow);transition:border-color .2s,background-color .2s,transform .15s;text-align:left}.option-btn:active:not(:disabled){transform:scale(.98)}.option-letter{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;font-size:14px;font-weight:700;background-color:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-hint-color);flex-shrink:0;transition:background-color .2s,color .2s}.option-text{flex:1;font-weight:500;line-height:1.4}.option-btn.selected{border-color:var(--quiz-selected)}.option-btn.selected .option-letter{background-color:var(--quiz-selected);color:#fff}.option-btn.correct{border-color:var(--quiz-correct);background-color:#e8f8ef}.option-btn.correct .option-letter{background-color:var(--quiz-correct);color:#fff}.option-btn.wrong{border-color:var(--quiz-wrong);background-color:#fdedec}.option-btn.wrong .option-letter{background-color:var(--quiz-wrong);color:#fff}.option-btn:disabled{cursor:default}.result{flex:1;display:flex;flex-direction:column;align-items:center;padding:40px 24px;text-align:center;animation:fadeIn .5s ease-out}.result-heading{font-size:20px;font-weight:700;color:var(--tg-theme-hint-color);margin-bottom:28px;text-transform:uppercase;letter-spacing:1px}.score-circle{width:160px;height:160px;border-radius:50%;border:5px solid;display:flex;align-items:center;justify-content:center;margin-bottom:20px;animation:scaleIn .5s ease-out,pulseGlow 2s ease-in-out .5s infinite}.score-number{font-size:56px;font-weight:800;color:var(--tg-theme-text-color);animation:countUp .3s ease-out;font-variant-numeric:tabular-nums}.category-badge{display:inline-block;padding:6px 20px;border-radius:24px;font-size:14px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.5px;margin-bottom:28px;animation:fadeIn .4s ease-out .3s both}.result-stats{display:flex;gap:20px;margin-bottom:24px;animation:fadeIn .4s ease-out .4s both}.stat-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 16px;background-color:var(--tg-theme-section-bg-color);border-radius:12px;box-shadow:var(--quiz-card-shadow);min-width:90px}.stat-value{font-size:18px;font-weight:700;color:var(--tg-theme-text-color)}.stat-label{font-size:11px;font-weight:600;color:var(--tg-theme-hint-color);text-transform:uppercase;letter-spacing:.3px}.result-message{font-size:15px;color:var(--tg-theme-hint-color);line-height:1.6;max-width:340px;margin-bottom:36px;animation:fadeIn .4s ease-out .5s both}.result-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px;animation:fadeIn .4s ease-out .6s both}
