.kt-world-map-box {
    width: 1040px;
    max-width: 100%;
    margin: 0 auto 14px;
}

.kt-world-map-head {
    min-height: 42px;
    padding: 7px 12px 7px 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    color: #f6e7d0;
    background: linear-gradient(180deg, rgba(92, 48, 17, 0.98), rgba(55, 27, 10, 0.98));
}

.kt-world-map-head strong {
    display: block;
    font-family: "Noto Serif", "Times New Roman", Georgia, serif;
    font-size: 15px;
}

.kt-world-map-head span {
    display: block;
    margin-top: 2px;
    color: rgba(246, 231, 208, 0.72);
    font-size: 11px;
}

.kt-world-map-refresh {
    margin-left: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(231, 190, 123, 0.5);
    border-radius: 6px;
    color: #fff1ce;
    font: inherit;
    font-size: 11px;
    font-weight: bold;
    background: rgba(154, 89, 34, 0.7);
    cursor: pointer;
}

.kt-world-map-refresh:hover,
.kt-world-map-refresh:focus {
    background: rgba(186, 111, 43, 0.9);
}

.kt-world-map-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #2b2118 url('/Images/gcld/world-map-overview.jpg?v=20260826') center / 100% 100% no-repeat;
}

.kt-world-map-canvas svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.kt-world-road {
    display: none;
}

.kt-world-city {
    stroke: rgba(43, 25, 12, 0.86);
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.kt-world-city:hover,
.kt-world-city:focus {
    opacity: 0.78;
}

.kt-world-city.is-neutral {
    fill: #8b8378;
}

.kt-world-city.is-wei {
    fill: #2d8de3;
}

.kt-world-city.is-shu {
    fill: #e4514e;
}

.kt-world-city.is-wu {
    fill: #3cbf67;
}

.kt-world-city.is-battle {
    fill: #ffd438;
    stroke: #ff572c;
    stroke-width: 1.8;
    transform-box: fill-box;
    transform-origin: center;
    animation: kt-world-battle 0.8s ease-in-out infinite alternate;
}

@keyframes kt-world-battle {
    from {
        fill: #ff6a32;
        stroke: #ffd438;
        opacity: 0.55;
        transform: scale(0.78);
    }
    to {
        fill: #fff23d;
        stroke: #ff3d20;
        opacity: 1;
        transform: scale(1.28);
    }
}

.kt-world-map-legend {
    padding: 9px 12px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    color: #60452f;
    font-size: 12px;
    background: rgba(241, 225, 201, 0.96);
}

.kt-world-map-legend span {
    display: inline-block;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
}

.kt-world-map-legend i {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(70, 43, 22, 0.25);
}

.kt-world-map-legend .is-wei i { background: #2d8de3; }
.kt-world-map-legend .is-shu i { background: #e4514e; }
.kt-world-map-legend .is-wu i { background: #3cbf67; }
.kt-world-map-legend .is-battle i { background: #ffd438; }

.kt-world-map-tooltip {
    position: absolute;
    z-index: 3;
    max-width: 190px;
    padding: 7px 9px;
    border: 1px solid rgba(232, 190, 116, 0.7);
    border-radius: 6px;
    color: #fff4d6;
    font-size: 11px;
    line-height: 1.45;
    background: rgba(43, 23, 10, 0.94);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
}

.kt-world-map-tooltip strong,
.kt-world-map-tooltip span {
    display: block;
}

.kt-world-map-tooltip[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .kt-world-map-box {
        width: 100%;
    }

    .kt-world-map-head {
        min-height: 48px;
    }

    .kt-world-map-head span {
        font-size: 10px;
    }

    .kt-world-map-refresh {
        padding: 7px 8px;
    }

    .kt-world-map-canvas {
        min-height: 205px;
    }

    .kt-world-city {
        stroke-width: 0.65;
    }

    .kt-world-city.is-battle {
        stroke-width: 2;
    }

    .kt-world-map-legend {
        padding: 8px 10px;
        font-size: 11px;
    }

    .kt-world-map-legend span {
        margin-right: 10px;
        margin-bottom: 5px;
    }
}

@supports not (aspect-ratio: 5 / 3) {
    .kt-world-map-canvas {
        height: 0;
        padding-bottom: 60%;
    }
}
