* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
}

.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.stat-label {
    margin-right: 5px;
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.game-main {
    padding: 30px;
}

.question-section {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.question-text {
    font-size: 28px;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.answer-marker {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.answer-section {
    margin-top: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 20px;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-btn.selected {
    border-color: #667eea;
    background: #f3f4f6;
}

.option-btn.correct {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.option-btn.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.option-btn:disabled {
    cursor: not-allowed;
}

.feedback {
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.feedback.correct {
    background: #d1fae5;
    color: #065f46;
    border: 3px solid #10b981;
}

.feedback.incorrect {
    background: #fee2e2;
    color: #991b1b;
    border: 3px solid #ef4444;
}

.feedback.hidden {
    display: none;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
}

.continue-btn.hidden {
    display: none;
}

.leaflet-popup-content {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #374151;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: monospace;
}

.difficulty-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.difficulty-btn {
    padding: 30px;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.difficulty-btn:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 20px;
    }

    .question-text {
        font-size: 22px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}
