*{box-sizing:border-box;margin:0;padding:0;font-family:Rubik,sans-serif;user-select:none}body{background:#d4e6f1;color:#2c3e50;height:100vh;width:100vw;display:flex;flex-direction:column;padding:10px;overflow:hidden}header{width:100%;display:flex;justify-content:space-between;align-items:center;background:#fff;padding:10px 20px;border-radius:14px;box-shadow:0 4px 12px #00000014;margin-bottom:8px;flex-shrink:0}h1{font-size:22px;font-weight:800;color:#2c3e50}.header-actions{display:flex;gap:10px;align-items:center}.stat-card{background:#f8f9fa;padding:8px 14px;border-radius:10px;border:2px solid #E9ECEF;font-weight:700;font-size:16px;display:flex;align-items:center;gap:6px}.stat-card span{color:#2980b9}.score-val{color:#27ae60;font-weight:800;font-size:20px}.timer-val{color:#e67e22;font-weight:800;font-size:18px}.btn-header{background:#edf2f7;border:2px solid #CBD5E1;color:#334155;padding:8px 14px;border-radius:10px;font-weight:700;font-size:15px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px;outline:none!important}.btn-header:hover{background:#e2e8f0}:focus-visible,.tv-focused{outline:4px solid #3B82F6!important;outline-offset:3px!important;box-shadow:0 0 18px #3b82f6b3!important;transform:scale(1.02) translateY(-2px)}.btn-header:focus,.btn-header:focus-visible,.btn-header.tv-focused{outline:none!important;box-shadow:0 4px 10px #0000001f!important;transform:translateY(-1px)}.settings-dropdown{position:absolute;top:65px;right:15px;left:15px;z-index:100;background:#fff;border-radius:18px;padding:20px;box-shadow:0 10px 30px #0003;border:2px solid #E2E8F0;display:none;flex-direction:column;gap:16px;animation:slideDown .2s ease-out}.settings-dropdown.open{display:flex}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.control-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.control-title{font-weight:700;font-size:15px;color:#334155}.regions-grid{display:flex;gap:8px;flex-wrap:wrap}.region-chip{display:flex;align-items:center;gap:6px;background:#f1f5f9;padding:6px 12px;border-radius:16px;border:2px solid #CBD5E1;font-weight:600;font-size:14px;cursor:pointer}.region-chip input{cursor:pointer;accent-color:#3B82F6;width:16px;height:16px}.control-group select{padding:8px 12px;border-radius:10px;border:2px solid #CBD5E1;background:#f8fafc;font-weight:700;font-size:14px;color:#334155;cursor:pointer;outline:none}.btn-start{background:#3b82f6;color:#fff;border:none;padding:10px 24px;font-size:15px;font-weight:700;border-radius:12px;cursor:pointer;transition:all .2s;align-self:flex-end;outline:none}.btn-start:hover{background:#2563eb}.main-container{width:100%;flex:1;display:flex;gap:10px;min-height:0;height:100%}.question-card{background:#fff;border-radius:18px;padding:14px;box-shadow:0 6px 16px #0000000f;text-align:center;width:360px;max-width:30vw;flex-shrink:0;display:flex;flex-direction:column;justify-content:space-between;gap:8px;position:relative;height:100%;overflow:hidden}.question-header-container{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0}.question-flag-header{width:130px;height:80px;object-fit:contain;background:#fff;border-radius:8px;border:2px solid rgba(0,0,0,.15);box-shadow:0 4px 8px #00000026;flex-shrink:0}.question-title{font-size:22px;font-weight:800;color:#1e293b;line-height:1.3}.options-grid{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;justify-content:space-between}.option-btn{background:#f8f9fa;border:3px solid #E9ECEF;border-radius:16px;padding:6px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;transition:all .15s ease;width:100%;position:relative;outline:none;flex:1;min-height:0;overflow:hidden}.option-btn:hover{border-color:#3498db;background:#ebf5fb;transform:translateY(-2px)}.flag-img{width:80%;max-width:160px;height:100%;max-height:75px;object-fit:contain;background:#fff;border-radius:6px;border:1px solid rgba(0,0,0,.12);box-shadow:0 2px 5px #0000001a;flex-shrink:1;padding:1px}.real-photo-img{width:92%;max-width:260px;height:100%;max-height:115px;object-fit:cover;border-radius:10px;border:2px solid #CBD5E1;box-shadow:0 4px 8px #0000001f;background:#e2e8f0;flex-shrink:1}.country-name{font-size:20px;font-weight:800;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex-shrink:0}.option-btn.correct{background:#d4edda!important;border-color:#28a745!important}.option-btn.wrong{background:#f8d7da!important;border-color:#dc3545!important;opacity:.5;pointer-events:none}.score-float{position:absolute;top:-18px;right:15px;font-size:20px;font-weight:800;color:#27ae60;animation:floatUp .8s ease-out forwards;pointer-events:none;text-shadow:0 2px 4px rgba(0,0,0,.1);white-space:nowrap;z-index:10}@keyframes floatUp{0%{opacity:0;transform:translateY(10px) scale(.5)}50%{opacity:1;transform:translateY(-10px) scale(1.2)}to{opacity:0;transform:translateY(-25px) scale(1)}}.map-card{background:#fff;border-radius:16px;padding:4px;box-shadow:0 8px 20px #0000000f;flex:1;display:flex;flex-direction:column;min-height:0;position:relative;overflow:hidden;height:100%}.map-container{width:100%;height:100%;background:#b3e5fc;border-radius:12px;position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}svg{width:100%;height:100%}svg path{fill:#e0e0e0;stroke:#fff;stroke-width:.6;transition:fill .3s ease}svg path.active-target{fill:#ffca28!important;stroke:#ff6f00;stroke-width:1.5;animation:pulse 1s infinite alternate}svg path.solved{fill:#66bb6a!important;stroke:#2e7d32;stroke-width:.8}@keyframes pulse{0%{fill:#ffe082}to{fill:#ffb300}}.flag-pin{transform-origin:bottom center;animation:drop .5s cubic-bezier(.175,.885,.32,1.275) forwards}@keyframes drop{0%{transform:scale(0) translateY(-30px);opacity:0}to{transform:scale(1) translateY(0);opacity:1}}.magnifier-bubble{position:absolute;left:15px;bottom:15px;width:320px;height:320px;background:#b3e5fc;border:5px solid #FF9F43;border-radius:50%;box-shadow:0 12px 30px #0000004d,inset 0 0 15px #0000001a;overflow:hidden;z-index:60;display:flex;justify-content:center;align-items:center;pointer-events:none}.magnifier-bubble-content{width:100%;height:100%;position:relative}@media (max-width: 800px){.main-container{flex-direction:column-reverse}.question-card{width:100%;max-width:100%;flex-direction:column;height:auto}.question-flag-header{width:90px;height:55px}.question-title{font-size:18px}.options-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;flex:initial}.option-btn{padding:6px;gap:4px;min-height:90px}.flag-img{max-width:100px;max-height:50px}.real-photo-img{max-width:140px;max-height:75px}.country-name{font-size:15px}.magnifier-bubble{width:180px;height:180px;left:10px;bottom:10px}}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;transition:opacity .3s;z-index:200}.modal-overlay.show{opacity:1;pointer-events:auto}.modal{background:#fff;padding:30px;border-radius:24px;text-align:center;max-width:440px;width:90%;box-shadow:0 20px 50px #0000004d;position:relative;z-index:210}.stars-container{font-size:42px;margin:5px 0;display:flex;justify-content:center;gap:8px}.star{opacity:.2;transform:scale(.8);transition:all .4s ease}.star.active{opacity:1;transform:scale(1.1);color:#f1c40f;text-shadow:0 0 10px rgba(241,196,15,.5)}.stats-summary{background:#f8fafc;border:2px solid #E2E8F0;border-radius:16px;padding:12px 16px;margin:15px 0;display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:700}.summary-row{display:flex;justify-content:space-between;color:#475569}.summary-row span:last-child{color:#0f172a}.final-score-box{font-size:24px;font-weight:800;color:#2563eb;margin-top:5px;border-top:2px dashed #CBD5E1;padding-top:8px}.btn-restart{background:#2ecc71;color:#fff;border:none;padding:12px 30px;font-size:18px;font-weight:800;border-radius:50px;cursor:pointer;margin-top:10px;transition:all .2s;outline:none}.btn-restart:hover{background:#27ae60;transform:scale(1.05)}#confetti-canvas{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:205}.save-score-box{display:flex;flex-direction:column;gap:8px;margin-top:12px}.save-score-box input{padding:10px 14px;border-radius:10px;border:2px solid #CBD5E1;font-weight:700;font-size:15px;text-align:center;outline:none}.save-score-box input:focus{border-color:#3b82f6}.btn-save-score{background:#2563eb;color:#fff;border:none;padding:10px 20px;font-size:15px;font-weight:800;border-radius:12px;cursor:pointer;transition:all .2s}.btn-save-score:hover{background:#1d4ed8}.btn-save-score:disabled{opacity:.6;cursor:default}.save-score-status{font-size:13px;font-weight:700;color:#16a34a;min-height:16px}.leaderboard-panel{position:fixed;inset:0;background:#0009;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;transition:opacity .25s;z-index:300}.leaderboard-panel.show{opacity:1;pointer-events:auto}.leaderboard-modal{background:#fff;border-radius:20px;padding:24px;width:90%;max-width:420px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 50px #0000004d}.leaderboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.leaderboard-header h2{font-size:20px}.btn-close-leaderboard{background:#f1f5f9;border:none;width:32px;height:32px;border-radius:50%;font-size:16px;font-weight:800;cursor:pointer}.leaderboard-row{display:flex;align-items:center;gap:12px;padding:10px 8px;border-bottom:1px solid #F1F5F9;font-weight:700}.leaderboard-rank{width:30px;text-align:center;font-size:18px}.leaderboard-name{flex:1;text-align:right;color:#1e293b}.leaderboard-score{color:#2563eb;font-weight:800}.leaderboard-loading,.leaderboard-empty{text-align:center;padding:24px 0;color:#64748b;font-weight:700}
