.wreck-explorer-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        url('https://dev.8f-2.cc/the-sound-of-sinking/wp-content/uploads/2025/10/wreck-explorer-bg-top.png') no-repeat top center,
        linear-gradient(
        to bottom,
        #E6002B 0%,
        #E3FFC0 20%,
        #0B1B2A 50%
    );
    background-attachment: scroll;
    background-size: contain;
}

.map-container {
    position: absolute;
    max-width: 45%;
    max-height: 45%;
    top: 60vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.penghu-map {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.wreck-points {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.wreck-point {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 11;
}

.wreck-point[data-position="top-left"] {
    left: 20%;
    top: 20%;
}

.wreck-point[data-position="top-right"] {
    right: 20%;
    top: 20%;
}

.wreck-point[data-position="right"] {
    right: 10%;
    top: 50%;
}

.wreck-point[data-position="bottom-right"] {
    right: 20%;
    bottom: 20%;
}

.wreck-point[data-position="bottom-left"] {
    left: 20%;
    bottom: 20%;
}

.point-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.wreck-point:hover .point-dot {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.point-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.wreck-point:hover .point-label {
    opacity: 1;
}

.semicircle-menu {
    position: absolute;
    width: 240px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.semicircle-menu.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-item:nth-child(1) {
    right: 5px;
    top: -10px;
    animation: menuItemAppear 0.3s ease 0.05s forwards;
}

.menu-item:nth-child(2) {
    right: -10px;
    top: 40px;
    transform: translateY(-50%);
    animation: menuItemAppear 0.3s ease 0.1s forwards;
}

.menu-item:nth-child(3) {
    right: -5px;
    top: 90px;
    animation: menuItemAppear 0.3s ease 0.15s forwards;
}

.menu-item:nth-child(4) {
    right: 35px;
    top: 140px;
    animation: menuItemAppear 0.3s ease 0.2s forwards;
}

.menu-item:nth-child(5) {
    right: 50px;
    top: 180px;
    animation: menuItemAppear 0.3s ease 0.25s forwards;
}

.menu-item:nth-child(6) {
    right: 75px;
    top: 220px;
    animation: menuItemAppear 0.3s ease 0.25s forwards;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    filter: brightness(1.2);
}

@keyframes menuItemAppear {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wreck-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wreck-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: 10px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
}

.modal-text {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.modal-text img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

.modal-text p {
    margin: 10px 0;
}

@media (max-width: 768px) {
    .wreck-point[data-position="top-left"] {
        left: 15%;
        top: 15%;
    }

    .wreck-point[data-position="top-right"] {
        right: 15%;
        top: 15%;
    }

    .wreck-point[data-position="right"] {
        right: 8%;
        top: 50%;
    }

    .wreck-point[data-position="bottom-right"] {
        right: 15%;
        bottom: 15%;
    }

    .wreck-point[data-position="bottom-left"] {
        left: 15%;
        bottom: 15%;
    }

    .semicircle-menu {
        width: 180px;
        height: 90px;
    }

    .menu-item {
        padding: 6px 10px;
        font-size: 11px;
    }
}