﻿


#view-mystar.tab-content {
    background: linear-gradient(180deg, #0b1a30 0%, #1a2a47 100%);
    color: #ffffff;
    display: none; 
    flex-direction: column;
    padding: 0;
    overflow: hidden; 
}
#view-mystar.tab-content.active {
    display: flex;
}


.star-fragment-header {
    background: rgba(11, 26, 48, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.star-fragment-header .fragment-icon { 
    width: 18px; 
    height: 18px; 
    object-fit: contain; 
    vertical-align: middle; 
    margin-right: 2px;
}
.star-fragment-header span#fragment-count { color: #ffd700; font-size: 18px; font-weight: 900; margin-left: auto; }
.star-fragment-box {
    margin-top: 25px;
    padding: 20px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--border-color);
}

.star-fragment-box strong {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 900;
}

.fragment-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}



.star-map-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
}

.star-map-title {
    text-align: center;
    padding: 20px 0 0px 0;
    font-size: 16px;
    font-weight: normal; 
    font-family: inherit; 
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    z-index: 10;
}


.star-map-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 60px 0; 
    position: relative;
    scroll-behavior: smooth;
}
.star-map-scroll::-webkit-scrollbar { display: none; }


.star-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 22px); 
    gap: 20px 4px; 
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: 100%;
    padding: 40px 15px 20px 15px; 
}


.month-label {
    grid-column: 1;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-self: flex-start;
    padding-left: 5px;
}


.star-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; 
    width: 100%;
    position: relative;
}

.star-day-label {
    display: none; 
}


.star-node {
    width: 6px;
    height: 6px;
    background-color: #4a5a73; 
    border-radius: 50%;
    transition: all 0.5s ease;
    position: relative;
}


.star-node[data-level="1"] {
    background-color: #ffffff;
    opacity: 0.9;
    width: 7px; height: 7px;
    box-shadow: 0 0 8px rgba(255,255,255,0.7);
}
.star-node[data-level="2"] {
    background-color: #ffffff;
    opacity: 0.95;
    width: 8px; height: 8px;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
.star-node[data-level="3"] {
    background-color: #ffffff;
    opacity: 1;
    width: 9px; height: 9px;
    box-shadow: 0 0 12px rgba(255,255,255,0.9);
}
.star-node[data-level="4"] {
    background-color: #ffffff;
    opacity: 1;
    width: 11px; height: 11px;
    box-shadow: 0 0 16px rgba(255,255,255,1), 0 0 6px rgba(255,255,255,0.9) inset;
}
.star-node[data-level="5"] {
    background-color: transparent;
    opacity: 1;
    width: 23px;
    height: 23px;
    position: relative;
    overflow: visible;
    z-index: 10;
    animation: twinkleDiamond 2.2s infinite alternate;
}

.star-node[data-level="5"]::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.22) 32%, rgba(255,255,255,0.08) 54%, rgba(255,255,255,0) 76%);
    z-index: 0;
    pointer-events: none;
    animation: diamondHaloPulse 2.2s infinite alternate;
}

.star-node[data-level="5"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    clip-path: polygon(50% 0%, 64% 38%, 100% 50%, 64% 62%, 50% 100%, 36% 62%, 0% 50%, 36% 38%);
    box-shadow:
        0 0 18px rgba(255,255,255,0.78),
        0 0 31px 8px rgba(255,255,255,0.98),
        0 0 54px 21px rgba(255,255,255,0.4);
    z-index: 1;
    pointer-events: none;
}


@keyframes twinkle {
    0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 16px rgba(255,255,255,0.8); }
    100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 28px 5px rgba(255,255,255,1); }
}

@keyframes twinkleDiamond {
    0% {
        transform: scale(1);
        opacity: 0.88;
    }
    100% {
        transform: scale(1.07);
        opacity: 1;
    }
}

@keyframes diamondHaloPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.72;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 1;
    }
}


.constellation-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.constellation-lines line {
    stroke: rgba(255, 255, 255, 0.4); 
    stroke-width: 0.8;
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.5));
}

