/* Mapa Arconia RPG - vzhled LiveAtlasu v barvach Arconie (17. 11. 2026).
   Nacita se po CSS LiveAtlasu (index.html). Zadne obrazky ani pisma odjinud. */

/* Pismo Monocraft vsude (LiveAtlas ma natvrdo Raleway, ten se z Google nenacita). Vcetne pseudo-elementu
   (popisek "Lokace" je ::before) a hlasek vpravo dole ("Odkaz zkopirovan" = .vue-notification-group mimo #app). */
#app, #app *, #app *::before, #app *::after,
.leaflet-container, .leaflet-container *, .leaflet-container *::before, .leaflet-container *::after,
.leaflet-popup-content, .leaflet-tooltip,
.vue-notification-group, .vue-notification-group *, .vue-notification-group *::before, .vue-notification-group *::after {
    font-family: 'Monocraft', ui-monospace, Menlo, Consolas, monospace !important;
    letter-spacing: 0;
}

/* Prazdno kolem mapy = tmave fialova webu (stejna barva jako pozadi dlazdic v worlds.txt) */
.leaflet-container,
.map {
    background-color: #1b1626 !important;
}

/* Ovladani: tmave fialove dlazdice s tvrdym stinem a svetlou hranou nahore (jako tlacitka ve hre) */
.leaflet-control,
.leaflet-control-button,
.leaflet-control a,
.leaflet-control button,
.clock,
.leaflet-control-coordinates {
    border: 0.2rem solid #07040d !important;
    box-shadow: inset 0 0.2rem 0 rgba(255, 255, 255, 0.10), inset 0 -0.3rem 0 rgba(0, 0, 0, 0.35), 0 0.3rem 0 rgba(7, 4, 13, 0.75) !important;
}

.leaflet-control-zoom a,
.leaflet-control-zoom button {
    border: 0 !important;
    box-shadow: none !important;
}

.leaflet-control a:hover,
.leaflet-control button:hover,
.leaflet-control-button:hover {
    outline: 0.2rem solid #ffffff;
    outline-offset: -0.2rem;
}

.leaflet-control a[aria-expanded=true],
.leaflet-control button[aria-expanded=true],
.leaflet-control a[aria-pressed=true],
.leaflet-control button[aria-pressed=true] {
    background-color: #7e22ce !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 0.2rem #c084fc, 0 0.3rem 0 rgba(7, 4, 13, 0.75) !important;
}

/* Hodiny nahore uprostred jako krajinka (kontrola 17. 11.): nahore obloha, po ktere jde slunce a mesic (LiveAtlas je
   posouva po oblouku s polomerem 50 px kolem stredu sve ikony 150x120 px), dole pruh "zeme" s casem a fialovou carou
   obzoru. Pruh je pres celou sirku, neprusvitny a nad ikonami (z-index LiveAtlasu), takze cast ikony pod obzorem zmizi:
   slunce/mesic nikdy nejde pres cislice a u kraju netrci useknute kousky - pri vychodu a zapadu je videt pul slunce nad
   obzorem. (clip-path na ikone nejde: LiveAtlas posouva transformaci celou vrstvu ikony i s orezem.) Obloha 6,6rem (stred oblouku 0,6rem pod hornim okrajem,
   v poledne se vejdou i paprsky), pruh 2,4rem; cele 9rem (LiveAtlas 6rem), na uzkych obrazovkach LiveAtlas zmensi x 0,83. Cas 2rem bez prolozeni
   (Monocraft je sirsi nez monospace LiveAtlasu). Zlute ve dne, tyrkysove v noci (barvy v index.html). */
.clock {
    height: 9rem !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

.clock .clock__sun,
.clock .clock__moon {
    top: 0.6rem !important;
}

/* Nether a End nemaji herni cas (LiveAtlas tam necha cas prazdny a ikony mimo) -> hodiny tam vubec neukazovat */
.clock:has(> .clock__time:empty) {
    display: none !important;
}

.clock .clock__time {
    align-self: stretch;
    box-sizing: border-box;
    height: 2.4rem;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 2rem !important;
    line-height: 2.2rem !important;
    letter-spacing: 0 !important;
    text-align: center;
    background-color: #110b1c !important;
    border-top: 0.2rem solid #4c3478;
    border-radius: 0 !important;
}

/* Box Lokace vlevo dole */
.leaflet-control-coordinates .value {
    font-variant-numeric: tabular-nums;
}

/* Vybrane polozky v menu (svety, mapy, vrstvy) fialove */
.menu > input[type=radio]:checked + label,
.menu > li > button[aria-pressed=true] {
    background-color: #7e22ce !important;
    color: #ffffff !important;
}

/* Hrac na mape: hlava ostra (pixely), stitek se jmenem tmavy s fialovym okrajem */
.map .marker.marker--player .player__icon {
    image-rendering: pixelated;
    border: 0.2rem solid #07040d;
    box-shadow: 0 0.2rem 0 rgba(0, 0, 0, 0.6);
}

.map .marker.marker--player .marker__label {
    border-left: 0.3rem solid #a855f7;
    border-radius: 0.2rem;
}

/* Ikony znacek (vanilla predmety 32 px) se stinem, aby byly videt na svetlem terenu */
.map .marker .marker__icon {
    image-rendering: pixelated;
    filter: drop-shadow(0 0.2rem 0 rgba(7, 4, 13, 0.8));
}

/* Bubliny znacek */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background-color: rgba(17, 11, 28, 0.94) !important;
    color: #f4eeff !important;
    border: 0.2rem solid #5b21b6;
    border-radius: 0.2rem !important;
}

.leaflet-popup-content b {
    color: #ffffff;
}

/* Napis Arconia vpravo dole: bez rameckru, ostre pixely, 1x */
.leaflet-control-logo,
.leaflet-control-logo a {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.leaflet-control-logo img {
    display: block;
    image-rendering: pixelated;
    width: 241px;
    height: 67px;
    max-width: none;
    filter: drop-shadow(0 3px 0 rgba(7, 4, 13, 0.75));
}

@media (max-width: 600px) {
    .leaflet-control-logo {
        display: none !important;
    }
}

/* Ramecek fokusu jen pri ovladani klavesnici, ne po kliknuti mysi do mapy */
.map:focus:not(:focus-visible),
.leaflet-container:focus:not(:focus-visible) {
    outline: none !important;
}

/* Hrac jede po mape plynule (test 17. 11.): web se pta 1x za sekundu, posun hlavy trva celou sekundu rovnomerne.
   LiveAtlas ma 0,3 s ease-in, takze hlava 0,3 s jela a 0,7 s stala. Pri animaci zoomu (Leaflet da tridu
   leaflet-zoom-anim panelu mapy) rychlost Leafletu, hlava sedi s mapou do 0,3 s (overeno). Nad 150 hracu LiveAtlas da vrstve hracu tridu no-animations = bez prechodu. */
.map .marker.marker--player {
    transition: transform 1s linear;
}

.map .leaflet-zoom-anim .marker.marker--player {
    transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}

.map .no-animations .marker.marker--player {
    transition: none;
}
