/* Vollbild-Layout: die Karte füllt den ganzen Bildschirm, Steuerelemente schweben darüber. */

html, body.map-page {
    height: 100%;
    margin: 0;
    overflow: hidden;
    display: block;
    background: #eaf4fb;
}

.map-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #eaf4fb;
    touch-action: none;
    z-index: 0;
}

#worldMap {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#worldMap.panning {
    cursor: grabbing;
}

.country {
    fill: #cfd8e3;
    stroke: #ffffff;
    stroke-width: 0.6px;
    vector-effect: non-scaling-stroke;
    transition: fill 0.15s ease;
}

#worldMap:not(.round-answered) .country:hover {
    fill: #a9c9e6;
    cursor: pointer;
}

.country.wrong {
    fill: #e74c3c;
}

.country.correct {
    fill: #2ecc71;
}

.country.reveal {
    fill: #2ecc71;
}

/* Zoom-Steuerung */
.zoom-controls {
    position: fixed;
    right: 16px;
    bottom: 108px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 15;
}

.zoom-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.zoom-btn:hover {
    background: white;
    transform: none;
}

.zoom-reset {
    font-size: 15px;
}

/* Schwebende Leisten oben/unten */
.hud {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 18px;
}

.hud-top {
    top: 0;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hud-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.hud-bottom {
    bottom: 0;
    flex-direction: column;
    gap: 8px;
    padding: 10px 18px 16px;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
}

.hud .back-link {
    margin: 0;
    flex-shrink: 0;
}

.hud .settings-btn {
    position: static;
    flex-shrink: 0;
}

.hud .find-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.hud .find-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #97a2ad;
}

.hud .target-country {
    font-size: 20px;
    font-weight: 800;
    color: #2c3e50;
}

.hud .stats {
    margin: 0;
    gap: 8px;
}

.hud #score,
.hud #timer,
.hud #highscore {
    padding: 6px 12px;
    font-size: 13px;
}

.hud-bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hud-bottom-buttons button {
    margin: 0;
}

.feedback {
    min-height: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.feedback.wrong {
    color: #c0392b;
}

.feedback.correct {
    color: #1e824c;
}

@media (max-width: 720px) {
    .hud-top {
        justify-content: center;
        text-align: center;
    }

    .hud .find-row {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hud .stats {
        order: 4;
        width: 100%;
        justify-content: center;
    }

    .zoom-controls {
        bottom: 130px;
    }
}
