body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e8f5e9;
    color: #3b2a1a;
}


header {
    background: #6b8e23;
    padding: 20px;
    text-align: center;
    color: white;
}


h1 {
    margin: 0;
    font-size: 36px;
}


nav {
    margin-top: 20px;
}


nav a {
    color: white;
    text-decoration: none;
    margin: 8px;
    font-size: 18px;
}


main {
    padding: 20px;
}


section {
    background: rgba(255,255,255,0.9);
    margin: 20px auto;
    padding: 25px;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}


h2 {
    color: #556b2f;
}


button {
    background: #d4a017;
    color: white;
    border: none;
    padding: 15px 25px;
    margin: 10px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
}


button:hover {
    background: #b8860b;
}


footer {
    background: #556b2f;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}


@media (max-width:600px){

h1 {
    font-size: 28px;
}

nav a {
    display:block;
    margin:10px;
}

}
#sound-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    background: #5d8f28;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.30);
    padding: 0;
    margin: 0;
}

#sound-toggle:active {
    transform: scale(0.94);
}
.magic-map {
    position: relative;
    width: 100%;
}

.magic-map > img {
    display: block;
    width: 100%;
    height: auto;
}

.map-hotspot {
    position: absolute;
    display: block;
    z-index: 20;
}

/* кнопка ГЕРОИ внутри нарисованной шапки */
.map-heroes {
    left: 37%;
    top: 2%;
    width: 11%;
    height: 10%;
}

/* кнопка ИСТОРИИ внутри нарисованной шапки */
.map-stories {
    left: 48%;
    top: 2%;
    width: 12%;
    height: 10%;
}
/* ВРЕМЕННО: показываем кликабельные зоны */
.map-hotspot {
    background: rgba(255, 0, 0, 0.35) !important;
    border: 3px solid red !important;
    z-index: 9999 !important;
.back-button {
}    display: inline-block;
    margin: 20px;
    padding: 12px 30px;
    background: #f4dfad;
    color: #5b3b18;
    border-radius: 30px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid rgba(120,80,30,0.3);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}



.back-button:hover {
    transform: translateY(-3px);
}


.map-back-button {
    display: inline-block;
    margin: 20px;
    padding: 12px 30px;
    background: #f4dfad;
    color: #5b3b18;
    border-radius: 30px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid rgba(120,80,30,0.3);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.map-back-button:hover {
    transform: translateY(-3px);
}
.back-button {
    display: inline-block;
    margin: 20px;
    padding: 12px 30px;
    background: #f4dfad;
    color: #5b3b18;
    border-radius: 30px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid rgba(120,80,30,0.3);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
    transition: 0.2s;
}

.back-button:hover {
    transform: translateY(-3px);
}

.back-button {
    background: rgba(255,0,0,0.35) !important;
    border: 3px solid red !important;
    z-index: 99999 !important;
    position: relative;
}

header nav .back-button {
    position: absolute;
    left: 55px;
    top: 520px;
    z-index: 9999;
}

.top-back {
    margin-top: 20px;
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 38px;
    margin: 4px auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
}

.news-track {
    position: absolute;
    top: 50%;
    left: 100%;
    white-space: nowrap;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    transform: translateY(-50%);
    animation: medoslavTicker 18s linear infinite;
    will-change: left, transform;
}

@keyframes medoslavTicker {
    from {
        left: 100%;
        transform: translateY(-50%);
    }

    to {
        left: 0;
        transform: translate(-100%, -50%);
    }
}

@media (max-width: 600px) {
    .news-track {
        font-size: 15px;
        animation-duration: 15s;
    }
}

/* ===== MOBILE MAIN MAP ===== */
@media (max-width: 600px) {

    main {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .welcome {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .magic-map {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .magic-map img {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }
}
