/*
 * NiceCraft UI for LiveAtlas
 * Warstwa motywu nie zmienia logiki Dynmapy ani skompilowanych plików aplikacji.
 */

:root {
    --background-base: rgba(10, 14, 12, .93);
    --background-dark: #050806;
    --background-light: rgba(255, 255, 255, .065);
    --background-error: rgba(127, 29, 29, .94);
    --background-marker: rgba(7, 11, 9, .96);
    --background-disabled: rgba(255, 255, 255, .045);
    --background-hover: rgba(34, 197, 94, .12);
    --background-active: rgba(34, 197, 94, .2);
    --background-selected: #22c55e;
    --outline-focus: #4ade80;
    --border-radius: 1.4rem;
    --border-color: rgba(255, 255, 255, .1);
    --border-error: #ef4444;
    --box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .025);
    --text-base: rgba(244, 244, 245, .76);
    --text-emphasis: #f4f4f5;
    --text-subtle: rgba(212, 212, 216, .48);
    --text-disabled: rgba(212, 212, 216, .34);
    --text-marker: #f4f4f5;
    --text-hover: #f4f4f5;
    --text-active: #fff;
    --text-selected: #031008;
    --text-shadow: none;
    --text-night: #86efac;
    --text-day: #facc15;
    --nc-green: #22c55e;
    --nc-green-light: #4ade80;
    --nc-green-dark: #15803d;
    --nc-panel: rgba(8, 12, 10, .9);
    --nc-line: rgba(255, 255, 255, .09);
}

html,
body,
#app {
    font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body {
    background:
        radial-gradient(circle at 85% 10%, rgba(34, 197, 94, .09), transparent 35%),
        #050806;
    text-shadow: none;
    letter-spacing: 0;
}

#app::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, .2) 100%),
        linear-gradient(180deg, rgba(5, 8, 6, .08), transparent 20%);
}

/* Bez ramki focus otaczającej całą mapę po kliknięciu. */
#app .map:focus,
#app .map:focus-visible {
    outline: none !important;
}

#app .map:focus::before,
#app .map:focus-visible::before {
    content: none !important;
    display: none !important;
    border: 0 !important;
}

button,
input,
.menu > input[type="radio"] + label,
.notification {
    font-family: Outfit, system-ui, sans-serif !important;
}

button,
.leaflet-control a,
.leaflet-control-button,
.menu > input[type="radio"] + label {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

button:hover,
.leaflet-control a:hover,
.leaflet-control-button:hover {
    color: var(--nc-green-light) !important;
}

input {
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--nc-line);
    border-radius: 1rem;
    color: #f4f4f5;
    min-height: 4.2rem;
}

input::placeholder {
    color: rgba(212, 212, 216, .38);
}

input:focus {
    border-color: rgba(34, 197, 94, .7);
    box-shadow: 0 0 0 .3rem rgba(34, 197, 94, .1);
    outline: none !important;
}

* {
    scrollbar-color: rgba(34, 197, 94, .42) transparent;
}

*::-webkit-scrollbar {
    width: .65rem;
    height: .65rem;
}

*::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, .38);
    border: 1px solid rgba(5, 8, 6, .8);
    border-radius: 999px;
}

/* Ekran ładowania */
#splash {
    background:
        linear-gradient(rgba(5, 8, 6, .94), rgba(5, 8, 6, .98)),
        radial-gradient(circle at center, rgba(34, 197, 94, .16), transparent 42%);
}

#splash::before {
    content: "";
    position: absolute;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, .08);
    filter: blur(9rem);
    pointer-events: none;
}

#splash__logo {
    display: none;
}

#nicecraft-splash-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.nicecraft-splash-mark {
    width: 9rem;
    height: 9rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(74, 222, 128, .38);
    border-radius: 2.4rem;
    background: linear-gradient(145deg, rgba(34, 197, 94, .18), rgba(5, 8, 6, .82));
    box-shadow: 0 0 5rem rgba(34, 197, 94, .18), inset 0 1px rgba(255, 255, 255, .08);
    color: var(--nc-green-light);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -.3rem;
}

#nicecraft-splash-brand strong {
    color: #fff;
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -.16rem;
}

#nicecraft-splash-brand small {
    margin-top: .45rem;
    color: var(--nc-green-light);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .23rem;
}

#splash__spinner {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    stroke: var(--nc-green-light);
}

#splash__error-message {
    border: 1px solid rgba(248, 113, 113, .35);
}

/* Branding nad panelem */
.nicecraft-brand {
    position: relative;
    width: 31rem;
    min-height: 7rem;
    display: grid;
    grid-template-columns: 4.6rem 1fr auto;
    align-items: center;
    gap: 1.2rem;
    align-self: flex-end;
    box-sizing: border-box;
    margin: 0 6rem 1rem 0;
    padding: 1.1rem 1.3rem;
    pointer-events: auto;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--nc-line);
    border-radius: 1.4rem;
    background: linear-gradient(135deg, rgba(14, 21, 17, .97), rgba(7, 11, 9, .93));
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(1.6rem) saturate(1.15);
    overflow: hidden;
}

.nicecraft-brand::after {
    content: "";
    position: absolute;
    inset: auto -20% -150% 20%;
    height: 14rem;
    background: radial-gradient(circle, rgba(34, 197, 94, .2), transparent 62%);
    pointer-events: none;
}

.nicecraft-brand:hover {
    color: #fff;
    border-color: rgba(74, 222, 128, .32);
    transform: translateY(-1px);
}

.nicecraft-brand__mark {
    width: 4.6rem;
    height: 4.6rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74, 222, 128, .3);
    border-radius: 1.2rem;
    background: rgba(34, 197, 94, .1);
    color: var(--nc-green-light);
    font-size: 2.7rem;
    font-weight: 800;
}

.nicecraft-brand__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nicecraft-brand__copy strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.05rem;
}

.nicecraft-brand__copy small {
    margin-top: .25rem;
    color: var(--text-subtle);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .07rem;
    text-transform: uppercase;
}

.nicecraft-brand__copy i {
    width: .65rem;
    height: .65rem;
    display: inline-block;
    margin-right: .3rem;
    border-radius: 50%;
    background: var(--nc-green);
    box-shadow: 0 0 1rem rgba(34, 197, 94, .9);
}

.nicecraft-brand__arrow {
    color: var(--text-subtle);
    font-size: 1.7rem;
}

/* Panele boczne */
.sidebar {
    padding-top: 1rem;
}

.sidebar__content {
    width: 31rem;
    padding-right: .4rem;
}

.sidebar__section,
.chat,
.modal__content,
#map-context-menu ul {
    border: 1px solid var(--nc-line);
    background:
        linear-gradient(145deg, rgba(14, 19, 16, .96), rgba(7, 10, 8, .94));
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(1.6rem) saturate(1.12);
}

.sidebar__section {
    max-width: 31rem;
    padding: 1.35rem;
}

.sidebar__section::before,
.chat::before,
.modal__content::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 1.8rem;
    right: 1.8rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, .42), transparent);
    pointer-events: none;
}

.sidebar__section .section__heading,
.sidebar__section .section__heading button {
    font-weight: 700;
}

.sidebar__section .section__heading button {
    color: #f4f4f5;
    font-size: 1.65rem;
    letter-spacing: -.02rem;
}

.sidebar__section .section__heading button .svg-icon {
    color: var(--nc-green-light);
}

.sidebar__section .section__search {
    top: 4.5rem;
    background: linear-gradient(180deg, rgba(10, 14, 12, .98) 76%, transparent);
    box-shadow: none;
}

.menu > input[type="radio"] + label,
.menu > li > button,
.menu > button,
.player {
    border-radius: .9rem;
}

.menu > input[type="radio"] + label:hover,
.menu > li > button:hover,
.menu > button:hover,
.player:hover {
    background: rgba(34, 197, 94, .09);
}

.menu > input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 .7rem 2rem rgba(34, 197, 94, .18);
}

.world {
    min-height: 4.4rem;
    margin-bottom: .65rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.world__name,
.player__name,
.target__name {
    color: #f4f4f5;
    font-weight: 600;
}

.player .player__icon {
    padding-right: 1.1rem;
}

.player .player__icon img,
.target__icon img {
    border-radius: .8rem;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, .24), 0 .5rem 1.5rem rgba(0, 0, 0, .35);
}

/* Przyciski mapy */
.leaflet-control,
.sidebar__buttons button {
    border: 1px solid var(--nc-line) !important;
    background: rgba(8, 12, 10, .9) !important;
    box-shadow: var(--box-shadow) !important;
    backdrop-filter: blur(1.4rem);
}

.leaflet-bar {
    overflow: hidden;
}

.leaflet-bar a {
    border-color: rgba(255, 255, 255, .07);
}

.leaflet-control-logo a,
.leaflet-control-button,
.sidebar__buttons button {
    color: rgba(244, 244, 245, .78);
}

.leaflet-control-logo a:hover,
.leaflet-control-button:hover,
.sidebar__buttons button:hover {
    background: rgba(34, 197, 94, .11) !important;
    color: var(--nc-green-light) !important;
}

.leaflet-control-coordinates {
    border-radius: 1.2rem;
}

.leaflet-control-coordinates .value {
    color: #fff;
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 1.7rem;
}

.leaflet-control-coordinates .value[data-label]::before {
    color: var(--nc-green-light);
    font-family: Outfit, sans-serif;
    font-weight: 700;
    letter-spacing: .08rem;
    text-transform: uppercase;
}

.clock {
    border-radius: 1.4rem;
}

.clock .clock__time {
    background: rgba(5, 8, 6, .84);
    border: 1px solid rgba(255, 255, 255, .06);
    font-family: ui-monospace, "Cascadia Code", monospace;
}

/* Markery, popupy i powiadomienia */
.map .marker .marker__label {
    padding: .7rem 1rem;
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: .8rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .42);
    backdrop-filter: blur(1rem);
}

.leaflet-popup .leaflet-popup-content-wrapper,
.leaflet-popup .leaflet-popup-tip,
.leaflet-tooltip {
    background: rgba(7, 11, 9, .96);
    color: var(--text-base);
}

.leaflet-popup .leaflet-popup-content-wrapper {
    border: 1px solid rgba(74, 222, 128, .18);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .5);
}

.leaflet-container a.leaflet-popup-close-button {
    top: -.8rem;
    right: -.8rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0b100d;
    color: #fff;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--nc-green-light);
}

.infowindow {
    color: var(--text-base) !important;
    font-family: Outfit, sans-serif !important;
}

.infowindow h1,
.infowindow h2,
.infowindow h3,
.infowindow strong {
    color: #fff !important;
}

.infowindow a {
    color: var(--nc-green-light) !important;
}

.notification {
    border: 1px solid var(--nc-line);
    border-left: .3rem solid var(--nc-green);
}

.chat__send {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #031008 !important;
    font-weight: 800;
}

.modal {
    background: radial-gradient(circle at 70% 20%, rgba(34, 197, 94, .08), transparent 38%), rgba(2, 4, 3, .72);
    backdrop-filter: blur(.6rem);
}

.modal__header {
    border-bottom: 1px solid var(--nc-line);
}

@media (max-width: 767px) {
    .nicecraft-brand {
        width: min(31rem, calc(100vw - 8rem));
        min-height: 6rem;
        margin-right: 5.5rem;
        padding: .8rem 1rem;
    }

    .nicecraft-brand__mark {
        width: 4rem;
        height: 4rem;
        font-size: 2.3rem;
    }

    .nicecraft-brand__copy strong {
        font-size: 1.75rem;
    }

    .sidebar__content {
        width: min(31rem, calc(100vw - 7rem));
    }

    .sidebar__section {
        max-width: 100%;
    }
}

@media (max-width: 480px), (max-height: 480px) {
    .nicecraft-brand {
        display: none;
    }

    .sidebar {
        padding-top: .4rem;
    }

    .sidebar__section {
        border-radius: 1.15rem;
    }

    .leaflet-control-coordinates {
        padding: .5rem 1rem;
    }
}

/* V3: header od krawędzi do krawędzi i własne boxy kontrolek mapy */
.nicecraft-site-header__inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 0 1.8rem;
}

.leaflet-control-zoom,
.leaflet-control-layers,
.leaflet-control-logo,
.leaflet-control-link,
.leaflet-control-login,
.leaflet-control-chat {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

.leaflet-control-zoom {
    display: grid;
    gap: .55rem;
}

.leaflet-control-zoom a,
.leaflet-control-layers-toggle,
.leaflet-control-logo a,
.leaflet-control-link a,
.leaflet-control-login a,
.leaflet-control-chat a,
.leaflet-control-button,
.sidebar__buttons button {
    width: 4.8rem !important;
    height: 4.8rem !important;
    display: grid !important;
    place-items: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .095) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(145deg, rgba(16, 22, 18, .96), rgba(6, 10, 8, .95)) !important;
    color: rgba(244, 244, 245, .78) !important;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .045) !important;
    backdrop-filter: blur(1.6rem) saturate(1.12);
    overflow: hidden;
}

.leaflet-control-zoom a:first-child,
.leaflet-control-zoom a:last-child,
.leaflet-bar a:first-child,
.leaflet-bar a:last-child {
    border-radius: 1.25rem !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-layers-toggle:hover,
.leaflet-control-logo a:hover,
.leaflet-control-link a:hover,
.leaflet-control-login a:hover,
.leaflet-control-chat a:hover,
.leaflet-control-button:hover,
.sidebar__buttons button:hover,
.sidebar__buttons button[aria-expanded="true"] {
    border-color: rgba(74, 222, 128, .42) !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, .17), rgba(7, 12, 9, .97)) !important;
    color: var(--nc-green-light) !important;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .36), 0 0 2.4rem rgba(34, 197, 94, .1), inset 0 1px rgba(255, 255, 255, .06) !important;
    transform: translateY(-1px);
}

.leaflet-control-zoom a.leaflet-disabled {
    opacity: .38;
    color: rgba(244, 244, 245, .4) !important;
    background: rgba(7, 10, 8, .88) !important;
}

.leaflet-control-layers-toggle[aria-expanded="true"] {
    border-color: rgba(74, 222, 128, .45) !important;
    background: rgba(34, 197, 94, .15) !important;
    color: var(--nc-green-light) !important;
}

.leaflet-control-layers .leaflet-control-layers-list {
    padding: 1rem !important;
    border: 1px solid rgba(74, 222, 128, .16);
    border-radius: 1.3rem;
    background: linear-gradient(145deg, rgba(13, 18, 15, .97), rgba(6, 9, 7, .96));
    box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(1.8rem);
}

.sidebar__buttons {
    gap: .65rem;
}

.sidebar__buttons button .svg-icon,
.leaflet-control-button .svg-icon,
.leaflet-control-layers-toggle .svg-icon {
    width: 2.35rem !important;
    height: 2.35rem !important;
}

.clock,
.clock.clock--digital {
    width: 12.6rem;
    height: 5.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    box-sizing: border-box;
    padding: .5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .095);
    border-radius: 1.3rem;
    background: linear-gradient(145deg, rgba(16, 22, 18, .96), rgba(6, 10, 8, .95));
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .045);
    backdrop-filter: blur(1.6rem);
    overflow: hidden;
}

.clock::before {
    content: "CZAS SERWERA";
    color: rgba(212, 212, 216, .42);
    font-family: Outfit, sans-serif;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1rem;
    line-height: 1;
}

.clock .clock__sun,
.clock .clock__moon {
    display: none !important;
}

.clock .clock__time,
.clock.clock--digital .clock__time {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nc-green-light);
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.leaflet-control-coordinates {
    min-height: 4.8rem;
    border: 1px solid rgba(255, 255, 255, .095) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(145deg, rgba(16, 22, 18, .96), rgba(6, 10, 8, .95)) !important;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .045) !important;
}

@media (max-width: 980px) {
    .nicecraft-site-header__inner {
        width: 100%;
        padding: 0 1.2rem;
    }
}

@media (max-width: 480px), (max-height: 480px) {
    .nicecraft-site-header__inner {
        padding: 0 .9rem;
    }

    .leaflet-control-zoom a,
    .leaflet-control-layers-toggle,
    .leaflet-control-logo a,
    .leaflet-control-link a,
    .leaflet-control-login a,
    .leaflet-control-chat a,
    .leaflet-control-button,
    .sidebar__buttons button {
        width: 4.35rem !important;
        height: 4.35rem !important;
        border-radius: 1.1rem !important;
    }

    .clock,
    .clock.clock--digital {
        width: 10.8rem;
        height: 4.7rem;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* V2: pełna rama strony NiceCraft */
#app {
    position: fixed;
    inset: 7.4rem 0 0;
    width: auto;
    height: auto;
}

.nicecraft-site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 5000;
    height: 7.4rem;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, .085);
    background: linear-gradient(90deg, rgba(5, 8, 6, .985), rgba(10, 15, 12, .97) 50%, rgba(5, 8, 6, .985));
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, .3);
    backdrop-filter: blur(2rem) saturate(1.15);
}

.nicecraft-site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(34, 197, 94, .34) 32%, rgba(34, 197, 94, .12) 70%, transparent 95%);
}

.nicecraft-site-header__inner {
    width: min(148rem, calc(100% - 4rem));
    height: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
}

.nicecraft-site-logo {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
}

.nicecraft-site-logo:hover {
    color: #fff;
}

.nicecraft-site-logo__mark {
    width: 4.6rem;
    height: 4.6rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74, 222, 128, .32);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(34, 197, 94, .16), rgba(7, 11, 9, .8));
    box-shadow: 0 0 2.8rem rgba(34, 197, 94, .12), inset 0 1px rgba(255, 255, 255, .07);
    color: var(--nc-green-light);
    font-size: 2.75rem;
    font-weight: 800;
}

.nicecraft-site-logo__copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nicecraft-site-logo__copy strong {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -.065rem;
}

.nicecraft-site-logo__copy small {
    margin-top: .55rem;
    color: rgba(212, 212, 216, .42);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .11rem;
}

.nicecraft-site-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.nicecraft-site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding: 0 1.25rem;
    color: rgba(244, 244, 245, .62);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}

.nicecraft-site-nav a:hover {
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(34, 197, 94, .045));
}

.nicecraft-site-nav a.is-active {
    color: var(--nc-green-light);
}

.nicecraft-site-nav a.is-active::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    bottom: 0;
    left: 1.2rem;
    height: .2rem;
    border-radius: 999px 999px 0 0;
    background: var(--nc-green);
    box-shadow: 0 0 1.5rem rgba(34, 197, 94, .72);
}

.nicecraft-site-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
}

.nicecraft-map-live {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: rgba(244, 244, 245, .55);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .11rem;
}

.nicecraft-map-live i {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--nc-green);
    box-shadow: 0 0 1.3rem rgba(34, 197, 94, .95);
    animation: nicecraft-live-pulse 2s ease-in-out infinite;
}

@keyframes nicecraft-live-pulse {
    50% { opacity: .46; transform: scale(.78); }
}

.nicecraft-server-address {
    width: auto !important;
    height: 4.7rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    gap: .2rem;
    margin: 0 !important;
    padding: .65rem 1.4rem !important;
    border: 1px solid rgba(74, 222, 128, .27) !important;
    border-radius: 1.15rem !important;
    background: rgba(34, 197, 94, .075) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .045) !important;
    cursor: pointer;
}

.nicecraft-server-address:hover,
.nicecraft-server-address.is-copied {
    border-color: rgba(74, 222, 128, .55) !important;
    background: rgba(34, 197, 94, .14) !important;
}

.nicecraft-server-address span {
    color: rgba(212, 212, 216, .48);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1rem;
}

.nicecraft-server-address strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .055rem;
}

.sidebar {
    top: 7.4rem;
    padding-top: 1.4rem;
}

.nicecraft-brand {
    display: none !important;
}

@media (max-width: 980px) {
    .nicecraft-site-header__inner {
        gap: 1.4rem;
    }

    .nicecraft-site-nav a {
        padding: 0 .75rem;
        font-size: 1.22rem;
    }

    .nicecraft-site-logo__copy small,
    .nicecraft-map-live {
        display: none;
    }
}

@media (max-width: 767px) {
    #app {
        inset: 6.4rem 0 0;
    }

    .nicecraft-site-header {
        height: 6.4rem;
    }

    .nicecraft-site-header__inner {
        width: calc(100% - 2rem);
        gap: 1rem;
    }

    .nicecraft-site-nav {
        margin-left: auto;
    }

    .nicecraft-site-nav a {
        display: none;
    }

    .nicecraft-site-nav a.is-active {
        display: flex;
        padding: 0 1rem;
    }

    .nicecraft-site-actions {
        margin-left: 0;
    }

    .nicecraft-server-address {
        height: 4.3rem !important;
        padding: .55rem 1rem !important;
    }

    .nicecraft-server-address span {
        display: none;
    }

    .sidebar {
        top: 6.4rem;
    }
}

@media (max-width: 480px), (max-height: 480px) {
    #app {
        inset: 5.8rem 0 0;
    }

    .nicecraft-site-header {
        height: 5.8rem;
    }

    .nicecraft-site-logo__mark {
        width: 3.8rem;
        height: 3.8rem;
        border-radius: 1rem;
        font-size: 2.2rem;
    }

    .nicecraft-site-logo__copy strong {
        font-size: 1.75rem;
    }

    .nicecraft-site-nav {
        display: none;
    }

    .nicecraft-server-address {
        height: 3.9rem !important;
    }

    .nicecraft-server-address strong {
        font-size: 1.05rem;
    }

    .sidebar {
        top: 5.8rem;
        padding-top: .6rem;
    }
}

/* Priorytet V3 po regułach responsywnych V2. */
.nicecraft-site-header__inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-right: 1.8rem;
    padding-left: 1.8rem;
}

@media (max-width: 980px) {
    .nicecraft-site-header__inner {
        width: 100%;
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }
}

@media (max-width: 480px), (max-height: 480px) {
    .nicecraft-site-header__inner {
        width: 100%;
        padding-right: .9rem;
        padding-left: .9rem;
    }
}

/* V4: wskaźnik kafelków potrafił pozostać aktywny mimo gotowej mapy. */
.leaflet-control-loading {
    display: none !important;
    visibility: hidden !important;
    animation: none !important;
}

/* Kolor czasu ma być zielony niezależnie od pory dnia w świecie. */
.clock .clock__time.day,
.clock .clock__time.night,
.clock.clock--digital .clock__time.day,
.clock.clock--digital .clock__time.night {
    color: var(--nc-green-light) !important;
}

/* V5: loader przeniesiony 1:1 z pozostałych stron NiceCraft. */
#splash {
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 0;
    background:
        radial-gradient(circle at center, rgba(34, 197, 94, 0.08), transparent 34%),
        #060607;
    transition: opacity 0.58s ease, visibility 0.58s ease;
}

#splash::before,
#nicecraft-splash-brand,
#splash__logo,
#splash__spinner {
    display: none !important;
}

#splash .loader-shell {
    width: min(350px, 84vw);
    text-align: center;
}

#splash .loader-emblem {
    position: relative;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.1rem;
    border: 1px solid rgba(34, 197, 94, 0.42);
    color: #4ade80;
    background: rgba(34, 197, 94, 0.055);
    transform: rotate(45deg);
    animation: loaderFloat 2.3s ease-in-out infinite;
}

#splash .loader-emblem > span {
    font-size: 2.8rem;
    font-weight: 900;
    transform: rotate(-45deg);
}

#splash .loader-brand {
    color: #4ade80;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
}

#splash .loader-progress {
    height: 4px;
    margin-top: 1.45rem;
    border-radius: 999px;
    background: #202024;
    overflow: hidden;
}

#splash .loader-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #15803d, #22c55e, #4ade80, #10b981);
    animation: loaderProgress 0.95s ease forwards;
}

#splash .loader-copy {
    margin-top: 0.8rem;
    color: #77777d;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#splash #splash__error {
    position: absolute;
    top: calc(50% + 145px);
    margin-top: 0;
}

@keyframes loaderProgress {
    to { width: 100%; }
}

@keyframes loaderFloat {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-8px); }
}
