.explore-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.explore-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 32px;
    color: #5a2d82;
}

.explore-subtitle {
    margin: 0 0 20px;
    text-align: center;
    color: #5d6470;
    font-size: 15px;
}

.explore-map-panel {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.explore-map-wrap {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.explore-map {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 2px solid #dcc7f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.map-link {
    position: absolute;
    display: inline-block;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d7c1f4;
    border-radius: 999px;
    color: #4d2d75;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.map-region {
    position: absolute;
    padding: 3px 8px;
    background: #f6f0fb;
    border: 1.5px solid #6a4ba3; /* thinner border */
    border-radius: 999px;
    color: #4d2f7a;
    font-size: 10px;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
    white-space: nowrap;

    box-shadow: 0 2px 4px rgba(0,0,0,0.15);

    transform: translate(-50%, -50%);
}

.map-link:hover {
    background: #fff;
    transform: translateY(-1px);
}

.map-link-disabled {
    color: #8a8395;
    cursor: default;
    pointer-events: none;
}

.region-frostpeak {
    top: 12%;
    left: 42%;
}

.region-verdant {
    top: 20%;
    left: 73%;
}

.region-ember {
    top: 32%;
    left: 24%;
}

.region-dawnbreak {
    top: 33%;
    left: 58%;
}

.region-whispering {
    top: 40%;
    left: 78%;
}

.region-tidebreak {
    top: 56%;
    left: 60%;
}

.region-everdusk {
    top: 60%;
    left: 80%;
}

.region-luminara {
    top: 70%;
    left: 42%;
}

.region-shipwreck {
    top: 62%;
    left: 18%;
}

.region-southwind {
    top: 90%;
    left: 45%;
}

.region-calaria {
    top: 14%;
    left: 84%;
}

.explore-links-panel {
    background: #faf7ff;
    border: 1px solid #e4d6f6;
    border-radius: 14px;
    padding: 16px;
}

.explore-links-title {
    margin: 0 0 12px;
    font-size: 20px;
    color: #5a2d82;
    text-align: center;
}

.explore-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.explore-links-list a {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.explore-links-list a:hover {
    opacity: 0.95;
}

/* ===============================
   cartographer
=============================== */

.cartographer-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.cartographer-title {
    text-align: center;
    font-size: 32px;
    color: #5a2d82;
    margin: 0 0 6px;
}

.cartographer-subtitle {
    text-align: center;
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
}

.cartographer-message {
    max-width: 760px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
}

.cartographer-message.success {
    background: #e8f9ea;
    border: 1px solid #70b77a;
    color: #226a2f;
}

.cartographer-message.error {
    background: #ffe5e5;
    border: 1px solid #d96b6b;
    color: #b10000;
}

.cartographer-panel {
    background: #faf7ff;
    border: 1px solid #dfcff5;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.cartographer-maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.cartographer-map-card {
    background: #faf7ff;
    border: 1px solid #dfcff5;
    border-radius: 14px;
    padding: 12px;
    margin: 0 auto;
    max-width: 700px;
}

.cartographer-map-header h2 {
    margin: 0 0 6px;
    color: #5a2d82;
    font-size: 22px;
    text-align: center;
    margin-bottom: 4px;
}

.cartographer-location {
    text-align: center;
    font-size: 13px;
    color: #6d6480;
    margin-bottom: 4px;
}

.cartographer-map-description {
    text-align: center;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    margin: 0 0 14px;
    margin-bottom: 13px;
}

.cartographer-progress {
    text-align: center;
    font-weight: 700;
    color: #4d2f7a;
    margin-bottom: 10px;
    margin-bottom: 10px;
}

.cartographer-piece-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.cartographer-piece {
    background: #f7fbf6;
    border: 1px solid #7fbe84;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.cartographer-piece.owned {
    background: #e8f9ea;
    border-color: #70b77a;
}

.cartographer-piece.missing {
    background: #fff3f3;
    border-color: #d96b6b;
}

.cartographer-piece-image-wrap {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.cartographer-piece-image {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    display: block;
}

.cartographer-piece-image.placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #777;
}

.cartographer-piece-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.25;
}

.cartographer-piece-status {
    font-size: 12px;
    font-weight: 700;
}

.cartographer-piece.owned .cartographer-piece-status {
    color: #226a2f;
}

.cartographer-piece.missing .cartographer-piece-status {
    color: #a10000;
}

.cartographer-map-footer {
    text-align: center;
    margin-top: 4px;
}

.cartographer-status {
    font-weight: 700;
    font-size: 14px;
}

.cartographer-status.unlocked {
    color: #226a2f;
}

.cartographer-status.incomplete {
    color: #6d6480;
}

.cartographer-btn {
    background: linear-gradient(135deg, #d492fd, #91caff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
}

.cartographer-btn:hover {
    opacity: 0.96;
}

.cartographer-intro-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    background: linear-gradient(180deg, #fff, #f8f1ff);
    border: 1px solid #dfcff5;
    border-radius: 16px;
    padding: 18px;
    margin: 0 auto 18px;
    max-width: 980px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.cartographer-npc-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cartographer-npc-image {
    max-width: 150px;
    max-height: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.cartographer-dialogue {
    background: #ffffff;
    border: 1px solid #e3d6f6;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: none;
    position: relative;
    color: #43395a;
    line-height: 1.5;
    font-size: 15px;
}

.cartographer-dialogue::before {
    display: none;
}

.cartographer-dialogue-title {
    margin: 0 0 8px;
    color: #5a2d82;
    font-size: 22px;
}

.cartographer-intro-card,
.cartographer-map-card {
    padding: 14px;
}

.unlocked-map {
    background: #eef9f0;
    border: 1px solid #7bc48a;
    text-align: center;
    padding: 16px;
}

.unlocked-map h2 {
    color: #2e7d32;
}

.cartographer-status.unlocked {
    margin-top: 10px;
    font-weight: 700;
    color: #2e7d32;
}

