:root {
    color-scheme: light;
    --atlas-bg: #f5f6f8;
    --atlas-panel: #ffffff;
    --atlas-panel-2: #f8fafc;
    --atlas-line: rgba(71, 85, 105, 0.15);
    --atlas-gold: #b98132;
    --atlas-gold-bright: #c68b37;
    --atlas-text: #273142;
    --atlas-muted: #737d8d;
}

.worldmap-embed {
    box-sizing: border-box;
    overflow-x: hidden;
    color: var(--atlas-text);
    padding-bottom: 12px;
}

.worldmap-embed * {
    box-sizing: border-box;
}

[data-marker-type][hidden] {
    display: none !important;
}

.atlas-shell {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 30px 24px 56px;
}

.worldmap-embed .heading_top > h2 {
    display: none;
}

.heading_top {
    position: relative;
    width: min(100%, 1160px);
    margin: 0 auto 18px;
    padding: 22px 24px 20px;
    overflow: hidden;
    border: 1px solid var(--atlas-line);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    box-shadow: 0 16px 44px rgba(30, 41, 59, 0.08);
    text-align: center;
}

.heading_top::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--atlas-gold-bright), transparent);
}

.atlas-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--atlas-gold-bright);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
}

#bg_theme {
    margin: 0;
    padding: 0;
    color: var(--atlas-text);
    background: transparent;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-shadow: none;
}

.atlas-subtitle {
    margin: 8px 0 0;
    color: var(--atlas-muted);
    font-size: 13px;
}

.atlas-marker-toggles {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.marker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(71, 85, 105, 0.16);
    border-radius: 999px;
    color: var(--atlas-muted);
    background: #f7f8fa;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.marker-toggle:hover,
.marker-toggle:focus-visible {
    border-color: rgba(185, 129, 50, 0.52);
    outline: none;
}

.marker-toggle.is-active {
    border-color: rgba(185, 129, 50, 0.46);
    color: #76501e;
    background: #fffaf1;
    box-shadow: 0 5px 14px rgba(185, 129, 50, 0.12);
}

.marker-toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.marker-toggle-dot.mvp {
    background: #c68b37;
    box-shadow: 0 0 8px rgba(198, 139, 55, 0.52);
}

.marker-toggle-dot.miniboss {
    background: #647eb4;
    box-shadow: 0 0 8px rgba(100, 126, 180, 0.46);
}

.marker-toggle-dot.empty {
    border: 1px solid #9ba3af;
    background: #d9dde3;
}

.atlas-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    color: #6f7988;
    font-size: 11px;
}

.atlas-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.active {
    background: var(--atlas-gold-bright);
    box-shadow: 0 0 12px rgba(242, 189, 104, 0.72);
}

.legend-dot.inactive {
    border: 1px solid #9ba3af;
    background: #e3e6ea;
}

.world_map .boss-marker {
    position: absolute !important;
    z-index: 22;
    width: clamp(20px, 2.7vw, 38px);
    height: clamp(20px, 2.7vw, 38px);
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.78));
}

.world_map .mini-boss-marker {
    position: absolute !important;
    z-index: 21;
    width: clamp(18px, 2.25vw, 30px);
    height: clamp(18px, 2.25vw, 30px);
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.72));
}

.world_map {
    position: relative;
    width: min(100%, 1280px);
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 0 auto 46px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(212, 154, 69, 0.3);
    border-radius: 24px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
        url("../img/worldmap.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow:
        0 24px 64px rgba(30, 41, 59, 0.12),
        inset 0 0 90px rgba(74, 85, 96, 0.08);
}

.world_map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
}

.world_map::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 48px 10px rgba(52, 62, 72, 0.12);
}

.world_map a {
    color: inherit;
}

.world_map img {
    z-index: 2;
    max-width: none;
    max-height: none;
    object-fit: fill;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: saturate(1.12) brightness(1.08);
    box-shadow: none;
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.world_map a:hover img,
.world_map a:focus-visible img {
    z-index: 25;
    transform: scale(1.34);
    filter: saturate(1.2) brightness(1.14);
    box-shadow:
        0 0 0 2px rgba(242, 189, 104, 0.22),
        0 8px 22px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 154, 69, 0.28);
}

.world_map .smap.inactive {
    opacity: 0.48;
    filter: grayscale(0.55) brightness(0.82);
}

.world_map a:hover .smap.inactive,
.world_map a:focus-visible .smap.inactive {
    opacity: 0.7;
}

.supplementary-map .smap.inactive,
.list_dun .smap.inactive {
    opacity: 0.38;
    filter: grayscale(0.75) brightness(0.88);
}

.supplementary-section {
    width: min(100%, 1160px);
    margin: -22px auto 46px;
    padding: 18px;
    border: 1px solid var(--atlas-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.07);
}

.supplementary-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.supplementary-title strong {
    color: #76501e;
    font-size: 15px;
}

.supplementary-title span {
    color: var(--atlas-muted);
    font-size: 11px;
}

.supplementary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 8px;
}

.supplementary-map a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 7px;
    border: 1px solid rgba(71, 85, 105, 0.12);
    border-radius: 10px;
    color: var(--atlas-text);
    background: #f7f8fa;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.supplementary-map a:hover,
.supplementary-map a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--atlas-gold);
    box-shadow: 0 8px 18px rgba(30, 41, 59, 0.1);
}

.supplementary-map img {
    position: static;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 6px;
}

.supplementary-map span {
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
}

.supplementary-map small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--atlas-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body > #overDiv,
#overDiv {
    pointer-events: none;
    overflow: hidden;
    border-radius: 14px;
    clip-path: inset(0 round 14px);
    filter: drop-shadow(0 14px 28px rgba(30, 41, 59, 0.18));
}

.detail {
    margin: 0;
    min-width: 360px;
    max-width: 440px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 154, 69, 0.28);
    border-radius: 0 0 14px 14px;
    color: #394456;
    background: #ffffff;
    font-size: 12px;
    line-height: 1.55;
}

.detail .name {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    padding-left: 12px;
    color: #283345;
}

.detail .monster-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
    vertical-align: middle;
}

.detail .amount,
.detail .time {
    box-sizing: border-box;
    color: #687386;
}

.detail .time {
    padding-right: 12px;
}

.detail .line {
    border-color: rgba(71, 85, 105, 0.12);
}

.detail #head {
    padding-top: 10px;
    color: var(--atlas-gold-bright);
}

.detail .line:last-child {
    border-bottom: 0;
}

.heading_map#bg_theme {
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(212, 154, 69, 0.28);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    color: #8d5d1d;
    background: #fffaf1;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.dungeon {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 1160px);
    margin: 0 auto;
}

.dungeon_group {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--atlas-line);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.07);
    transition: border-color 160ms ease, transform 160ms ease;
}

.dungeon_group:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 154, 69, 0.34);
}

.dungeon_name {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 11px 15px;
    border-bottom: 1px solid var(--atlas-line);
    color: #76501e;
    font-size: 15px;
    font-weight: 500;
}

.dungeon_name::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1px solid var(--atlas-gold-bright);
    transform: rotate(45deg);
}

.dungeon_group_inner {
    display: flex;
    flex-flow: row wrap;
    gap: 9px;
}

.cover_map,
.list_dun {
    display: block;
}

.list_dun a {
    position: relative;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 10px;
    background: #f4f6f8;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.list_dun a:hover,
.list_dun a:focus-visible {
    z-index: 2;
    transform: translateY(-3px);
    border-color: var(--atlas-gold);
    background: #ffffff;
    box-shadow: 0 9px 20px rgba(30, 41, 59, 0.14), 0 0 16px rgba(185, 129, 50, 0.12);
}

.list_dun img {
    position: static !important;
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
    object-fit: cover;
    border-radius: 6px;
}

.list_dun .dungeon-mvp-stack {
    position: absolute;
    right: -5px;
    bottom: -6px;
    z-index: 3;
    display: flex;
    gap: 1px;
    pointer-events: none;
}

.list_dun .dungeon-mini-boss-stack {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
    display: flex;
    gap: 1px;
    pointer-events: none;
}

.list_dun img.dungeon-mvp-marker {
    position: static !important;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.72));
}

.list_dun img.dungeon-mini-boss-marker {
    position: static !important;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.68));
}

body > br,
.world_map + br {
    display: none;
}

@media (max-width: 980px) {
    .atlas-shell {
        padding-inline: 14px;
    }

}

@media (max-width: 760px) {
    .atlas-shell {
        padding-top: 16px;
    }

    .heading_top {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .atlas-legend {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .dungeon {
        grid-template-columns: 1fr;
    }

    .dungeon_group,
    .dungeon_group_inner {
        flex-direction: row;
    }

    .cover_map,
    .list_dun {
        width: auto;
        align-items: initial;
    }

    .detail {
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .list_dun a {
        width: 52px;
        height: 52px;
    }

    .list_dun img {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .world_map img,
    .dungeon_group,
    .list_dun a {
        transition: none;
    }
}
