@charset "utf-8";

.star-map-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px 6px;
    z-index: 12;
}

.night-sky-link-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 55%),
        rgba(9, 19, 38, 0.62);
    color: #f7f0da;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(2, 8, 20, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.star-preview-toggle-btn {
    border: 1px dashed rgba(255, 244, 196, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 234, 173, 0.12), rgba(255, 210, 110, 0.04)),
        rgba(18, 25, 46, 0.72);
    color: #ffe9a5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(2, 8, 20, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.star-preview-note {
    margin: 0;
    padding: 0 20px 10px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 235, 184, 0.86);
}

#view-night-sky.tab-content {
    display: none;
    background:
        radial-gradient(circle at top, rgba(103, 130, 182, 0.28), transparent 30%),
        linear-gradient(180deg, #030611 0%, #081124 28%, #10172f 58%, #04070f 100%);
    color: #ffffff;
    overflow: hidden;
}

#view-night-sky.tab-content.active {
    display: flex;
}

.night-sky-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 6px;
    z-index: 20;
}

.night-sky-page-header .back-btn {
    margin-right: 0;
}

.night-sky-preview-toggle-btn {
    padding: 8px 14px;
    font-size: 12px;
}

.night-sky-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.night-sky-scroll::-webkit-scrollbar {
    display: none;
}

.night-sky-stage {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 24px 56px;
    box-sizing: border-box;
}

.night-sky-background {
    position: absolute;
    inset: 0 24px auto 24px;
    pointer-events: none;
    overflow: hidden;
}

.night-sky-bg-star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    animation: nightSkyBackgroundTwinkle var(--duration) var(--delay) infinite alternate;
}

.night-sky-map {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.night-sky-month-label {
    position: absolute;
    font-size: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.58);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
}

.night-sky-star {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    animation: nightSkyStarTwinkle var(--duration) var(--delay) infinite alternate;
}

.night-sky-star.special-diamond {
    position: absolute;
    background: transparent !important;
    overflow: visible;
    z-index: 10;
}

.night-sky-star.special-diamond::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--halo-rgb, 255, 255, 255), 0.4) 0%,
        rgba(var(--halo-rgb, 255, 255, 255), 0.18) 34%,
        rgba(var(--halo-rgb, 255, 255, 255), 0.07) 56%,
        rgba(var(--halo-rgb, 255, 255, 255), 0) 76%
    );
    z-index: 0;
    pointer-events: none;
    animation: nightSkyDiamondHaloPulse var(--duration) var(--delay) infinite alternate;
}

.night-sky-star.special-diamond::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(var(--diamond-rgb, 255, 255, 255));
    clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 40px 20px rgba(var(--halo-rgb, 255, 255, 255), 0.95),
        0 0 60px 40px rgba(var(--halo-rgb, 255, 255, 255), 0.4);
    z-index: 1;
    pointer-events: none;
}

.night-sky-star:hover {
    transform: translate(-50%, -50%) scale(1.28);
}

.night-sky-empty {
    position: relative;
    margin: 80px auto 0;
    width: calc(100% - 40px);
    padding: 18px 20px;
    text-align: center;
    border-radius: 20px;
    background: rgba(7, 14, 30, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(233, 241, 255, 0.82);
    line-height: 1.7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@keyframes nightSkyBackgroundTwinkle {
    0% { opacity: 0.12; }
    100% { opacity: 0.92; }
}

@keyframes nightSkyStarTwinkle {
    0% { opacity: 0.38; }
    100% { opacity: 1; }
}

@keyframes nightSkyDiamondHaloPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 1;
    }
}
