.map-viewport[hidden],
.ocean-outer-ambient[hidden] {
    display: none !important;
}

.island-data-map .path-track {
    stroke: rgba(255, 243, 186, 0.68);
    stroke-width: 5;
    stroke-dasharray: 7 13;
}

.island-data-map .path-fill {
    stroke-width: 7;
    filter: drop-shadow(0 1px 2px #95611b);
    transition: none;
}

.island-data-map .path-fill.is-progress-ready {
    transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.atoll-map .island-character {
    position: absolute;
    left: 25%;
    top: 68.6%;
    width: clamp(23px, 4.1cqw, 78px);
    transform: translate(-50%, -75%);
    z-index: 8;
    pointer-events: none;
}

.atoll-lagoon-mist {
    position: absolute;
    left: 56%;
    top: 6%;
    width: 44%;
    height: 38%;
    z-index: 4;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(218, 246, 241, 0.43) 0%, rgba(218, 246, 241, 0.2) 39%, transparent 73%);
    transition: opacity 0.9s ease;
}

.atoll-lagoon-mist.is-cleared {
    opacity: 0;
}

.atoll-exit-light {
    position: absolute;
    left: 89.3%;
    top: 72.4%;
    z-index: 7;
    width: clamp(5px, 0.72cqw, 13px);
    aspect-ratio: 0.8;
    border: 1px solid #79502a;
    border-radius: 30%;
    transform: translate(-50%, -50%);
    background: #ffeeb4;
    box-shadow: 0 0 0.65cqw 0.35cqw #ffd875a6;
    pointer-events: none;
}

.atoll-wave {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 7%;
    height: 3%;
    border-radius: 50%;
    border-top: max(1px, 0.17cqw) solid rgba(201, 253, 252, 0.68);
    animation: atoll-ripple 5.5s ease-out var(--delay, 0s) infinite;
}

@keyframes atoll-ripple {
    0%, 100% { transform: translateX(-5%) scale(0.7); opacity: 0; }
    35% { opacity: 0.55; }
    84% { transform: translateX(18%) scale(1.18); opacity: 0; }
}

.atoll-bottle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: clamp(9px, 1.55cqw, 25px);
    aspect-ratio: 2.1;
    border: max(1px, 0.08cqw) solid #116769;
    border-radius: 38% 22% 24% 38%;
    background: linear-gradient(170deg, #b4fff2 0 20%, #52c8af 28%, #248b85 90%);
    box-shadow: 0 0.35cqw 0.3cqw rgba(0, 86, 112, 0.32);
    animation: atoll-drift 8s ease-in-out var(--delay, 0s) infinite alternate;
}

.atoll-bottle::before {
    position: absolute;
    content: "";
    left: 19%;
    top: 29%;
    width: 42%;
    height: 45%;
    border-radius: 2px;
    background: #fff3c4;
}

.atoll-bottle::after {
    position: absolute;
    content: "";
    left: 96%;
    top: 29%;
    width: 25%;
    height: 43%;
    border-radius: 1px;
    background: #a06542;
}

@keyframes atoll-drift {
    from { transform: translate(0, 0) rotate(-22deg); }
    to { transform: translate(2cqw, 0.65cqh) rotate(-11deg); }
}

.island-data-map.is-arriving {
    --arrival-room: max(0px, calc(100dvh - var(--map-safe-bottom) - var(--map-top) - var(--map-height)));
    animation: atoll-arrive 0.65s ease-out both;
}

@keyframes atoll-arrive {
    from { opacity: 0; transform: translateY(min(0.5rem, var(--arrival-room))); }
    to { opacity: 1; transform: translateY(0); }
}

#atoll-station-dialog {
    width: 570px;
    max-height: min(90dvh, 710px);
    overflow: hidden;
}

#atoll-station-dialog[open] {
    display: flex;
    flex-direction: column;
}

#atoll-station-dialog::backdrop {
    background: rgba(6, 16, 36, 0.78);
    backdrop-filter: blur(5px);
}

#atoll-station-dialog h2 {
    margin-right: 32px;
    margin-left: 0;
    text-align: left;
}

#atoll-station-dialog p {
    margin: 0 0 14px;
    text-align: left;
}

.atoll-station-list {
    display: grid;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    text-align: left;
}

.atoll-station-list li {
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #0f172a;
}

.atoll-station-list small {
    display: block;
    line-height: 1.4;
    color: #475569;
}

@media (prefers-reduced-motion: reduce) {
    .atoll-lagoon-mist,
    .island-data-map .path-fill.is-progress-ready {
        transition: none;
    }

    .island-data-map.is-arriving {
        animation: none;
    }
}
