*{margin:0;padding:0;box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.6;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;color:#2c3e50}#root{width:100%;min-height:100vh}h1,h2,h3,h4,h5,h6{line-height:1.2}button{font-family:inherit;cursor:pointer}button:focus,button:focus-visible{outline:2px solid #667eea;outline-offset:2px}.main-menu{max-width:1200px;margin:0 auto;padding:2rem}.header{text-align:center;margin-bottom:2rem}.header h1{font-size:3rem;margin:0;color:#2c3e50}.subtitle{color:#7f8c8d;font-size:1.1rem;margin-top:.5rem}.player-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;border-radius:20px;margin-bottom:2rem;box-shadow:0 10px 30px #0003}.player-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.player-info h2{margin:0;font-size:1.8rem}.level-badge{background:#fff3;padding:.5rem 1rem;border-radius:20px;font-size:.9rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.xp-section{margin-bottom:1.5rem}.xp-bar-container{background:#fff3;border-radius:10px;height:20px;overflow:hidden;margin-bottom:.5rem}.xp-bar{background:linear-gradient(90deg,#f39c12,#e74c3c);height:100%;transition:width .5s ease;border-radius:10px}.xp-text{text-align:center;font-size:.9rem;opacity:.9}.quick-stats{display:flex;justify-content:space-around;gap:1rem}.stat-item{display:flex;align-items:center;gap:.5rem;background:#ffffff1a;padding:.75rem 1rem;border-radius:10px;flex:1;justify-content:center}.stat-icon{font-size:1.3rem}.stat-value{font-size:.9rem}.menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.menu-item{background:#fff;border:2px solid #e0e0e0;border-radius:15px;padding:1.5rem;display:flex;align-items:center;gap:1.5rem;cursor:pointer;transition:all .3s ease;text-align:left}.menu-item:hover{transform:translateY(-5px);box-shadow:0 10px 25px #0000001a;border-color:#667eea}.menu-icon{font-size:3rem;flex-shrink:0}.menu-content h3{margin:0 0 .5rem;color:#2c3e50;font-size:1.3rem}.menu-content p{margin:0;color:#7f8c8d;font-size:.95rem}@media(max-width:768px){.main-menu{padding:1rem}.header h1{font-size:2rem}.player-card{padding:1.5rem}.player-info{flex-direction:column;gap:1rem;text-align:center}.quick-stats{flex-direction:column}.menu-grid{grid-template-columns:1fr}}.interactive-continent-map{width:100%;padding:1.5rem;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:20px;box-shadow:0 10px 30px #0000001a}.map-header{text-align:center;margin-bottom:1.5rem}.map-header h3{margin:0 0 .5rem;color:#2c3e50;font-size:1.8rem;font-weight:700}.map-instruction{margin:0 0 1rem;color:#7f8c8d;font-size:1rem}.search-box{position:relative;max-width:500px;margin:0 auto}.country-search-input{width:100%;padding:.875rem 3rem .875rem 1rem;font-size:1rem;border:2px solid #e0e0e0;border-radius:12px;outline:none;transition:all .3s ease;background:#fff}.country-search-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.clear-search-btn{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:#e0e0e0;border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;color:#666;transition:all .2s ease}.clear-search-btn:hover{background:#d0d0d0;color:#333}.no-results{padding:2rem;text-align:center;color:#999;font-style:italic}.map-display{display:flex;gap:2rem;flex-wrap:wrap}.map-image-container{flex:1;min-width:400px;position:relative;background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 4px 15px #0000001a}.continent-map-image{width:100%;height:auto;display:block}.map-attribution{position:absolute;bottom:0;left:0;right:0;background:#000000b3;color:#fff;padding:.5rem;text-align:center;font-size:.75rem;z-index:1}.country-clickable-zone{position:absolute;transform:translate(-50%,-50%);z-index:10;cursor:pointer;background:transparent;border-radius:50%;transition:all .3s ease}.country-clickable-zone:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;background:#dc2626cc;border:2px solid rgba(255,255,255,.9);border-radius:50%;box-shadow:0 0 8px #dc262699;animation:capitalPulse 2s ease-in-out infinite}@keyframes capitalPulse{0%,to{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.3);opacity:.7}}.country-clickable-zone:hover{background:#667eea33;box-shadow:0 0 20px #667eea66;transform:translate(-50%,-50%) scale(1.1)}.country-clickable-zone:hover:before{background:#667eeae6;box-shadow:0 0 12px #667eeacc;animation:capitalPulse 1s ease-in-out infinite}.country-glow-zone{position:absolute;transform:translate(-50%,-50%);z-index:15;pointer-events:none;animation:zoneAppear .6s ease}@keyframes zoneAppear{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.glow-layer{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}.glow-outer{background:radial-gradient(ellipse,rgba(102,126,234,.15) 0%,rgba(118,75,162,.1) 40%,transparent 70%);box-shadow:0 0 40px #667eea66,0 0 80px #764ba24d,inset 0 0 30px #ffffff1a;animation:glowPulseOuter 3s ease-in-out infinite}@keyframes glowPulseOuter{0%,to{transform:translate(-50%,-50%) scale(1);opacity:.8}50%{transform:translate(-50%,-50%) scale(1.2);opacity:.5}}.glow-middle{background:radial-gradient(ellipse,rgba(102,126,234,.3) 0%,rgba(118,75,162,.2) 50%,transparent 80%);box-shadow:0 0 30px #667eea99,0 0 60px #764ba266;animation:glowPulseMiddle 2.5s ease-in-out infinite;animation-delay:.3s}@keyframes glowPulseMiddle{0%,to{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.15);opacity:.8}}.glow-inner{background:radial-gradient(ellipse,rgba(102,126,234,.5) 0%,rgba(118,75,162,.4) 60%,transparent 90%);box-shadow:0 0 20px #667eeacc,0 0 40px #764ba299,inset 0 0 20px #fff3;animation:glowPulseInner 2s ease-in-out infinite;animation-delay:.6s}@keyframes glowPulseInner{0%,to{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.1);opacity:.9}}.glow-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20px;height:20px;background:radial-gradient(circle,#ffffffe6,#667eeacc);border-radius:50%;box-shadow:0 0 15px #667eea,0 0 30px #764ba2cc;animation:centerPulse 1.5s ease-in-out infinite}@keyframes centerPulse{0%,to{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 15px #667eea,0 0 30px #764ba2cc}50%{transform:translate(-50%,-50%) scale(1.3);box-shadow:0 0 25px #667eea,0 0 50px #764ba2}}.highlight-label{position:absolute;top:100%;left:50%;transform:translate(-50%);margin-top:10px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.75rem 1.5rem;border-radius:14px;font-weight:700;font-size:1.1rem;white-space:nowrap;box-shadow:0 4px 20px #667eea80,0 8px 35px #00000040;border:2px solid rgba(255,255,255,.4);animation:labelFloat 2s ease-in-out infinite;z-index:20}@keyframes labelFloat{0%,to{transform:translate(-50%) translateY(0)}50%{transform:translate(-50%) translateY(-5px)}}.map-error{padding:3rem;text-align:center;color:#666;background:#f0f4f8;border-radius:15px}.country-cards-grid{flex:0 0 300px;display:grid;grid-template-columns:1fr;gap:.75rem;max-height:600px;overflow-y:auto;padding:.5rem}.country-card{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:#fff;border-radius:10px;cursor:pointer;transition:all .3s ease;border:2px solid transparent;box-shadow:0 2px 8px #00000014}.country-card:hover{transform:translate(5px);border-color:#667eea;box-shadow:0 4px 12px #667eea4d}.country-card.selected{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea;box-shadow:0 4px 15px #667eea66}.country-card.selected .country-card-capital{color:#ffffffe6}.country-card-flag{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:40px;height:40px}.country-card-flag img{width:100%;height:auto;border-radius:4px;box-shadow:0 1px 3px #0003}.country-card-name{flex:1;font-weight:600;font-size:.95rem}.country-card-capital{font-size:.85rem;color:#7f8c8d}.country-popup{position:fixed;bottom:2rem;right:2rem;width:400px;background:#fff;border-radius:15px;box-shadow:0 10px 40px #0003;animation:slideUp .3s ease;z-index:1000}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.popup-header{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:15px 15px 0 0;position:relative}.popup-close-btn{position:absolute;top:1rem;right:1rem;background:#fff3;border:none;border-radius:50%;width:32px;height:32px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:#fff;transition:all .2s ease}.popup-close-btn:hover{background:#ffffff4d;transform:rotate(90deg)}.popup-flag{flex:0 0 auto;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:10px}.popup-flag img{width:100%;height:auto;border-radius:4px}.popup-title h3{margin:0 0 .25rem;font-size:1.5rem;font-weight:700}.popup-title p{margin:0;font-size:1rem;opacity:.95}.popup-content{padding:1.5rem}.popup-fact{margin-bottom:1.5rem;padding:1rem;background:#f8f9fa;border-radius:10px;border-left:4px solid #667eea}.popup-fact strong{display:block;margin-bottom:.5rem;color:#667eea;font-size:.95rem}.popup-fact p{margin:0;color:#2c3e50;line-height:1.6}@media(max-width:1024px){.map-display{flex-direction:column}.map-image-container{min-width:100%}.country-cards-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:none}.country-popup{left:1rem;right:1rem;width:auto;bottom:1rem}}@media(max-width:768px){.interactive-continent-map{padding:1rem}.map-header h3{font-size:1.4rem}.country-cards-grid{grid-template-columns:1fr}.popup-header{padding:1rem}.popup-title h3{font-size:1.2rem}}.learn-mode{max-width:1400px;margin:0 auto;padding:2rem}.continent-tabs{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}.continent-tab{padding:.75rem 1.5rem;border:2px solid #e0e0e0;background:#fff;border-radius:10px;cursor:pointer;transition:all .3s;font-size:1rem}.continent-tab:hover{border-color:#667eea}.continent-tab.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea}.countries-list{background:#fff;border-radius:15px;padding:1.5rem;box-shadow:0 2px 10px #0000001a;max-height:70vh;overflow-y:auto}.countries-list h3{margin-top:0;color:#2c3e50;border-bottom:2px solid #e0e0e0;padding-bottom:.5rem}.country-item{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:10px;cursor:pointer;transition:all .3s;margin-bottom:.5rem}.country-item:hover{background:#f8f9fa}.country-item.selected{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.country-flag{font-size:2rem;flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:50px}.country-flag img{width:40px;height:auto;border-radius:4px;box-shadow:0 2px 4px #0000001a}.country-name{flex:1;font-weight:500}.mastery-badge{font-size:.75rem;padding:.25rem .75rem;border-radius:12px;color:#fff;white-space:nowrap}.country-item.selected .mastery-badge{background:#ffffff4d!important}.country-details{background:#fff;border-radius:15px;padding:2rem;box-shadow:0 2px 10px #0000001a}.country-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e0e0e0}.country-title{display:flex;align-items:center;gap:1rem}.country-header-flag{width:80px;height:auto;border-radius:8px;box-shadow:0 4px 8px #00000026;border:2px solid #e0e0e0}.flag-emoji-fallback{font-size:3rem}.country-header h2{margin:0;color:#2c3e50}.mastery-indicator{font-weight:600;font-size:1.1rem}.shape-section .shape-content{display:flex;align-items:center;gap:2rem}.country-shape-display{width:150px;height:auto;flex-shrink:0;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.shape-section p{flex:1}@media(max-width:1024px){.learn-content{grid-template-columns:1fr}.countries-list{max-height:300px}}@media(max-width:768px){.learn-mode{padding:1rem}.header-bar{flex-direction:column;align-items:flex-start;gap:1rem}.continent-tabs{gap:.5rem}.continent-tab{padding:.5rem 1rem;font-size:.9rem}.detail-grid{grid-template-columns:1fr}}.quiz-engine,.quiz-complete,.quiz-loading{max-width:900px;margin:0 auto;padding:2rem}.question-flag-display{display:flex;justify-content:center;margin-bottom:1rem}.question-flag-image{width:160px;height:auto;border-radius:12px;box-shadow:0 8px 20px #0003;border:3px solid #e0e0e0}.question-flag-emoji{font-size:8rem}.passport-display{display:flex;justify-content:center;margin-bottom:1rem}.passport-box-large{width:200px;height:140px;border-radius:15px;box-shadow:0 8px 20px #00000040;border:3px solid #ddd}.country-shape-image{width:200px;height:auto;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.shape-description{text-align:center;font-style:italic;color:#555;margin:0;font-size:1.1rem}.flag-option{display:flex;flex-direction:column;align-items:center;gap:.75rem;width:100%}.option-flag-image{width:80px;height:auto;border-radius:8px;box-shadow:0 4px 8px #00000026;border:2px solid #e0e0e0}.option-flag-emoji{font-size:3rem}.quiz-complete{text-align:center}.quiz-complete h2{font-size:2.5rem;color:#2c3e50;margin-bottom:2rem}.badges-earned{background:linear-gradient(135deg,#f39c12,#e74c3c);color:#fff;padding:2rem;border-radius:15px;margin:2rem 0}.badges-earned h3{margin-top:0}@media(max-width:768px){.quiz-engine,.quiz-complete{padding:1rem}.question-card{padding:2rem 1.5rem}.question-text{font-size:1.4rem}.options-grid{grid-template-columns:1fr}.option-btn{padding:1rem;font-size:1rem}.score-circle{width:200px;height:200px}.score-percentage{font-size:3rem}.quiz-header{flex-direction:column;align-items:flex-start;gap:1rem}}.quiz-selector{max-width:1000px;margin:0 auto;padding:2rem}.selector-header{text-align:center;margin-bottom:3rem}.selector-header h2{font-size:2.5rem;color:#2c3e50;margin-bottom:.5rem}.selector-subtitle{font-size:1.1rem;color:#7f8c8d}.question-types-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:3rem}.type-card{background:#fff;border:3px solid #e0e0e0;border-radius:15px;padding:1.5rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:1rem;position:relative}.type-card:hover{transform:translateY(-3px);box-shadow:0 5px 15px #0000001a}.type-card.selected{border-color:#667eea;background:linear-gradient(135deg,#f0f3ff,#e8ecff)}.type-icon{font-size:3rem;flex-shrink:0}.type-content{flex:1}.type-content h3{margin:0 0 .5rem;color:#2c3e50;font-size:1.2rem}.type-content p{margin:0;color:#7f8c8d;font-size:.9rem}.type-checkbox{width:30px;height:30px;border:2px solid #667eea;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#fff;background:transparent;flex-shrink:0}.type-card.selected .type-checkbox{background:#667eea}.selector-actions{background:#fff;padding:2rem;border-radius:15px;box-shadow:0 5px 20px #0000001a}.btn-secondary{padding:.75rem 1.5rem;border:2px solid #667eea;background:#fff;color:#667eea;border-radius:10px;font-size:1rem;cursor:pointer;font-weight:600;transition:all .3s;margin-bottom:1.5rem}.btn-secondary:hover{background:#f0f3ff}.selected-info{text-align:center;margin-bottom:1.5rem;min-height:50px;display:flex;align-items:center;justify-content:center}.selected-info p{font-size:1.1rem;color:#555;margin:0}.selected-info .error{color:#e74c3c;font-weight:600}.action-buttons{display:flex;gap:1rem;justify-content:center}.btn-cancel,.btn-start{padding:1rem 2.5rem;border:none;border-radius:12px;font-size:1.1rem;cursor:pointer;font-weight:600;transition:all .3s}.btn-cancel{background:#95a5a6;color:#fff}.btn-cancel:hover{background:#7f8c8d}.btn-start{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-start:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.btn-start:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.quiz-selector{padding:1rem}.selector-header h2{font-size:2rem}.question-types-grid{grid-template-columns:1fr}.type-card{padding:1rem}.type-icon{font-size:2rem}.action-buttons{flex-direction:column}.btn-cancel,.btn-start{width:100%}}.continent-selector{max-width:1400px;margin:0 auto;padding:2rem}.continent-selection-content{margin-top:2rem;text-align:center}.selection-instruction{font-size:1.3rem;color:#666;margin-bottom:2rem;font-weight:500}.continent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;max-width:900px;margin:0 auto}.continent-card{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:15px;padding:2.5rem 2rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea33;display:flex;flex-direction:column;align-items:center;gap:1rem}.continent-card:hover{transform:translateY(-5px);box-shadow:0 8px 25px #667eea66}.continent-card:active{transform:translateY(-2px)}.continent-icon{font-size:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.continent-name{font-size:1.4rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.2)}.question-types-selector{display:flex;flex-direction:column;gap:1rem;margin:2rem auto;max-width:500px}.type-checkbox{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;background:#fff;border:3px solid #e0e0e0;border-radius:15px;cursor:pointer;transition:all .3s ease;-webkit-user-select:none;user-select:none}.type-checkbox:hover{border-color:#667eea;transform:translate(5px);box-shadow:0 4px 15px #667eea33}.type-checkbox.checked{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;color:#fff;box-shadow:0 4px 15px #667eea66}.type-checkbox input[type=checkbox]{width:24px;height:24px;cursor:pointer;accent-color:#667eea}.type-checkbox.checked input[type=checkbox]{accent-color:white}.checkbox-icon{font-size:2rem;flex-shrink:0}.checkbox-label{display:flex;flex-direction:column;gap:.25rem;flex:1}.checkbox-label strong{font-size:1.1rem;font-weight:600}.checkbox-label small{font-size:.9rem;opacity:.8}.type-checkbox.checked .checkbox-label small{opacity:.95}.start-quiz-btn{margin:2rem auto 0;padding:1rem 2.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:15px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea4d;display:block}.start-quiz-btn:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 6px 20px #667eea66}.start-quiz-btn:active:not(:disabled){transform:translateY(-1px)}.start-quiz-btn:disabled{background:#ccc;cursor:not-allowed;box-shadow:none;opacity:.6}@media(max-width:768px){.question-types-selector{max-width:100%}.type-checkbox{padding:1rem}.checkbox-icon{font-size:1.5rem}.start-quiz-btn{width:100%;padding:.875rem 1.5rem;font-size:1rem}}.speed-round-start,.speed-round-end,.speed-round-active{max-width:900px;margin:0 auto;padding:2rem;min-height:80vh}.speed-round-start{display:flex;flex-direction:column}.speed-header{margin-bottom:2rem}.speed-start-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.speed-start-content h1{font-size:4rem;margin-bottom:2rem;color:#2c3e50}.speed-description{background:#fff;padding:2rem;border-radius:20px;margin-bottom:2rem;box-shadow:0 5px 20px #0000001a;max-width:600px}.speed-description p{font-size:1.3rem;color:#555;margin:1rem 0}.speed-best{font-size:1.5rem!important;color:#667eea!important;font-weight:700!important;margin-top:1.5rem!important}.start-btn{padding:1.5rem 4rem;font-size:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:15px;cursor:pointer;font-weight:700;transition:all .3s}.start-btn:hover{transform:scale(1.05);box-shadow:0 10px 30px #667eea66}.speed-game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:3rem;background:#fff;padding:1.5rem 2rem;border-radius:15px;box-shadow:0 5px 15px #0000001a}.timer-display{font-size:3rem;font-weight:700}.score-display-small{font-size:2rem;font-weight:700;color:#2c3e50}.speed-question-card{background:#fff;padding:3rem;border-radius:20px;box-shadow:0 10px 30px #0000001a}.speed-question{text-align:center;font-size:2rem;color:#2c3e50;margin-bottom:3rem}.speed-options{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}.speed-option{padding:2rem;font-size:1.3rem;border:3px solid #e0e0e0;background:#fff;border-radius:15px;cursor:pointer;transition:all .2s;font-weight:500}.speed-option:hover{transform:scale(1.05);border-color:#667eea;box-shadow:0 5px 15px #667eea33}.speed-option:active{transform:scale(.98)}.speed-round-end{text-align:center}.speed-round-end h1{font-size:3rem;color:#2c3e50;margin-bottom:3rem}.final-score{margin:3rem 0}.score-display{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3rem 4rem;border-radius:30px;box-shadow:0 15px 40px #667eea4d}.score-number{font-size:6rem;font-weight:700;line-height:1}.score-label{font-size:1.5rem;margin-top:.5rem;opacity:.9}.new-best{font-size:2rem;color:#f39c12;margin-top:2rem;font-weight:700}.speed-stats{background:#fff;padding:2rem;border-radius:15px;margin:2rem auto;max-width:500px;box-shadow:0 5px 15px #0000001a}.speed-stats p{font-size:1.2rem;color:#2c3e50;margin:1rem 0;font-weight:500}.speed-actions{display:flex;gap:1.5rem;justify-content:center;margin-top:2rem}.retry-btn,.menu-btn{padding:1rem 2.5rem;font-size:1.2rem;border:none;border-radius:12px;cursor:pointer;font-weight:600;transition:all .3s}.retry-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.retry-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.menu-btn{background:#fff;color:#667eea;border:2px solid #667eea}.menu-btn:hover{background:#f0f3ff;transform:translateY(-2px)}@media(max-width:768px){.speed-start-content h1{font-size:2.5rem}.speed-description{padding:1.5rem}.speed-description p{font-size:1.1rem}.start-btn{padding:1rem 2rem;font-size:1.2rem}.timer-display{font-size:2rem}.score-display-small{font-size:1.5rem}.speed-question{font-size:1.4rem}.speed-options{grid-template-columns:1fr;gap:1rem}.speed-option{padding:1.5rem;font-size:1.1rem}.score-number{font-size:4rem}.speed-actions{flex-direction:column}.retry-btn,.menu-btn{width:100%}}.learn-states{max-width:1400px;margin:0 auto;padding:2rem}.header-bar{display:flex;align-items:center;gap:2rem;margin-bottom:2rem}.back-btn{background:#3498db;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:10px;cursor:pointer;font-size:1rem;transition:background .3s}.header-bar h2{margin:0;color:#2c3e50}.region-tabs{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}.region-tab{padding:.75rem 1.5rem;border:2px solid #e0e0e0;background:#fff;border-radius:10px;cursor:pointer;transition:all .3s;font-size:1rem}.region-tab:hover{border-color:#667eea}.region-tab.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea}.learn-content{display:grid;grid-template-columns:350px 1fr;gap:2rem;min-height:500px}.states-list{background:#fff;border-radius:15px;padding:1.5rem;box-shadow:0 2px 10px #0000001a;max-height:70vh;overflow-y:auto}.states-list h3{margin-top:0;color:#2c3e50;border-bottom:2px solid #e0e0e0;padding-bottom:.5rem}.state-item{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-radius:10px;cursor:pointer;transition:all .3s;margin-bottom:.5rem}.state-item:hover{background:#f8f9fa}.state-item.selected{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.state-name{flex:1;font-weight:500}.state-abbr{font-size:.9rem;font-weight:600;padding:.25rem .75rem;border-radius:8px;background:#0000001a}.state-item.selected .state-abbr{background:#ffffff4d}.state-details{background:#fff;border-radius:15px;padding:2rem;box-shadow:0 2px 10px #0000001a}.state-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e0e0e0}.state-title{display:flex;flex-direction:column;gap:.5rem}.state-header h2{margin:0;color:#2c3e50}.state-nickname{color:#7f8c8d;font-style:italic;font-size:1.1rem}.state-shape-display{display:flex;justify-content:center;margin-bottom:2rem;padding:2rem;background:#f8f9fa;border-radius:15px}.state-shape-large{width:300px;height:auto;filter:drop-shadow(0 4px 12px rgba(0,0,0,.15))}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.detail-card{background:#f8f9fa;padding:1.5rem;border-radius:10px;border-left:4px solid #667eea}.detail-card h4{margin:0 0 .5rem;color:#7f8c8d;font-size:.9rem}.detail-card p{margin:0;color:#2c3e50;font-size:1.1rem;font-weight:500}.detail-section{background:#f8f9fa;padding:1.5rem;border-radius:10px;margin-bottom:1rem}.detail-section h4{margin:0 0 1rem;color:#2c3e50}.detail-section p{margin:0;color:#555;line-height:1.6;font-size:1.05rem}.no-selection{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:15px;box-shadow:0 2px 10px #0000001a}.no-selection p{color:#7f8c8d;font-size:1.2rem}@media(max-width:1024px){.learn-content{grid-template-columns:1fr}.states-list{max-height:300px}}@media(max-width:768px){.learn-states{padding:1rem}.header-bar{flex-direction:column;align-items:flex-start;gap:1rem}.region-tabs{gap:.5rem}.region-tab{padding:.5rem 1rem;font-size:.9rem}.detail-grid{grid-template-columns:1fr}.state-shape-large{width:200px}}.states-quiz,.states-quiz-complete,.quiz-loading{max-width:900px;margin:0 auto;padding:2rem}.quiz-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.quiz-header h2{margin:0;color:#2c3e50}.quiz-info{color:#7f8c8d;font-weight:500}.progress-bar-container{background:#e0e0e0;height:8px;border-radius:10px;overflow:hidden;margin-bottom:2rem}.progress-bar{background:linear-gradient(90deg,#667eea,#764ba2);height:100%;transition:width .5s ease}.quiz-status{display:flex;justify-content:center;gap:3rem;margin-bottom:2rem}.stat{font-size:1.2rem;font-weight:600;color:#2c3e50}.question-card{background:#fff;border-radius:20px;padding:3rem;box-shadow:0 10px 30px #0000001a}.question-text-container{display:flex;flex-direction:column;align-items:center;gap:1.5rem;margin-bottom:2rem}.shape-display{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-bottom:1rem}.state-shape-image{width:200px;height:auto;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.question-text{text-align:center;font-size:1.8rem;color:#2c3e50;line-height:1.4;margin:0}.options-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:2rem}.option-btn{padding:1.5rem;font-size:1.1rem;border:3px solid #e0e0e0;background:#fff;border-radius:15px;cursor:pointer;transition:all .3s ease;text-align:center;min-height:80px;display:flex;align-items:center;justify-content:center}.option-btn:hover:not(:disabled){transform:translateY(-3px);border-color:#667eea;box-shadow:0 5px 15px #667eea33}.option-btn.selected{border-color:#667eea;background:#f0f3ff}.option-btn.correct{border-color:#2ecc71;background:#d4edda;color:#155724}.option-btn.incorrect{border-color:#e74c3c;background:#f8d7da;color:#721c24}.option-btn:disabled{cursor:not-allowed;opacity:.7}.answer-feedback{text-align:center;margin-top:2rem}.feedback{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;border-radius:15px;margin-bottom:1.5rem;font-size:1.2rem;font-weight:500}.correct-feedback{background:#d4edda;color:#155724}.incorrect-feedback{background:#f8d7da;color:#721c24}.feedback-icon{font-size:2rem}.quiz-btn{padding:1rem 2.5rem;border:none;border-radius:12px;font-size:1.1rem;cursor:pointer;transition:all .3s;font-weight:600}.quiz-btn.primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.quiz-btn.primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.states-quiz-complete{text-align:center}.states-quiz-complete h2{font-size:2.5rem;color:#2c3e50;margin-bottom:2rem}.quiz-score{display:flex;justify-content:center;margin:3rem 0}.score-circle{width:250px;height:250px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;box-shadow:0 15px 40px #0003}.score-percentage{font-size:4rem;font-weight:700;margin-bottom:.5rem}.score-fraction{font-size:1.5rem;opacity:.9}.quiz-stats{background:#fff;border-radius:15px;padding:2rem;margin:2rem 0;box-shadow:0 5px 15px #0000001a}.quiz-stats p{font-size:1.2rem;color:#2c3e50;margin:1rem 0;font-weight:500}.quiz-loading{text-align:center;padding:4rem;font-size:1.5rem;color:#7f8c8d}@media(max-width:768px){.states-quiz,.states-quiz-complete{padding:1rem}.question-card{padding:2rem 1.5rem}.question-text{font-size:1.4rem}.options-grid{grid-template-columns:1fr}.option-btn{padding:1rem;font-size:1rem}.score-circle{width:200px;height:200px}.score-percentage{font-size:3rem}.quiz-header{flex-direction:column;align-items:flex-start;gap:1rem}.state-shape-image{width:150px}}.stats-page{max-width:1400px;margin:0 auto;padding:2rem}.stats-header{display:flex;align-items:center;gap:2rem;margin-bottom:2rem}.stats-header h2{margin:0;color:#2c3e50}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(450px,1fr));gap:2rem}.stats-card{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 5px 20px #0000001a}.stats-card h3{margin-top:0;color:#2c3e50;font-size:1.5rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e0e0e0}.stats-card h4{color:#555;font-size:1.1rem;margin-top:1.5rem;margin-bottom:1rem}.profile-content{display:flex;flex-direction:column;gap:1rem}.profile-item{display:flex;justify-content:space-between;padding:.75rem;background:#f8f9fa;border-radius:10px}.profile-label{color:#7f8c8d;font-weight:500}.profile-value{color:#2c3e50;font-weight:700}.stat-row{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid #f0f0f0}.stat-row:last-child{border-bottom:none}.stat-value{font-weight:700;color:#667eea}.stat-value.correct{color:#2ecc71}.stat-value.incorrect{color:#e74c3c}.mastery-overview{grid-column:span 2}.mastery-summary{text-align:center;margin-bottom:2rem}.mastery-circle{position:relative;width:200px;height:200px;margin:0 auto 1rem}.mastery-circle svg{transform:rotate(-90deg)}.mastery-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.mastery-number{font-size:3rem;font-weight:700;color:#667eea;line-height:1}.mastery-label{font-size:1.5rem;color:#7f8c8d}.mastery-description{font-size:1.2rem;color:#555;font-weight:500}.continent-breakdown{background:#f8f9fa;padding:1.5rem;border-radius:10px}.continent-stat{margin-bottom:1.5rem}.continent-stat:last-child{margin-bottom:0}.continent-header{display:flex;justify-content:space-between;margin-bottom:.5rem;font-weight:600;color:#2c3e50}.progress-bar-small{background:#e0e0e0;height:12px;border-radius:6px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#667eea,#764ba2);height:100%;transition:width .5s ease;border-radius:6px}.badges-display{grid-column:span 2}.badges-section{margin-bottom:2rem}.badges-section:last-child{margin-bottom:0}.badges-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.badge-item{display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.5rem;border-radius:15px;transition:transform .3s}.badge-item.earned{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 5px 15px #667eea4d}.badge-item.earned:hover{transform:translateY(-5px)}.badge-item.locked{background:#f8f9fa;color:#999;border:2px dashed #ddd}.badge-icon{font-size:3rem;margin-bottom:.5rem}.badge-name{font-weight:700;font-size:1rem;margin-bottom:.25rem}.badge-desc{font-size:.85rem;opacity:.9}.badge-item.locked .badge-desc{opacity:.7}@media(max-width:1200px){.stats-grid{grid-template-columns:1fr}.mastery-overview,.badges-display{grid-column:span 1}}@media(max-width:768px){.stats-page{padding:1rem}.stats-header{flex-direction:column;align-items:flex-start;gap:1rem}.badges-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.badge-item{padding:1rem}.badge-icon{font-size:2rem}.mastery-circle{width:150px;height:150px}.mastery-number{font-size:2.5rem}}.map-explorer{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem}.header-bar{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem}.back-btn{padding:.75rem 1.5rem;background:#fff3;color:#fff;border:2px solid rgba(255,255,255,.3);border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.back-btn:hover{background:#ffffff4d;transform:translate(-5px)}.header-bar h2{margin:0;color:#fff;font-size:2rem;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.2)}.continent-selector{background:#fffffff2;border-radius:20px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 10px 30px #00000026}.continent-selector h3{margin:0 0 1rem;color:#2c3e50;font-size:1.3rem;text-align:center}.continent-buttons{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.continent-btn{padding:.875rem 1.75rem;background:#fff;color:#667eea;border:2px solid #e0e0e0;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #00000014}.continent-btn:hover{transform:translateY(-3px);box-shadow:0 4px 15px #667eea4d;border-color:#667eea}.continent-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea;box-shadow:0 4px 15px #667eea66}.map-content{animation:fadeIn .5s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(max-width:768px){.map-explorer{padding:1rem}.header-bar{flex-direction:column;align-items:flex-start;gap:1rem}.header-bar h2{font-size:1.5rem}.continent-selector{padding:1rem}.continent-selector h3{font-size:1.1rem}.continent-buttons{gap:.5rem}.continent-btn{padding:.625rem 1.25rem;font-size:.9rem}}.app{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.back-btn{background:#3498db;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:10px;cursor:pointer;font-size:1rem;transition:background .3s;font-family:inherit}.back-btn:hover{background:#2980b9}
