/* -------------------------------------------------
   CORE SETUP & ARCTIC SCENE STYLES 
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: linear-gradient(to bottom, #09101a 0%, #1b263b 40%, #3e5c76 70%, #2b3849 100%);
    color: #fff;
    position: relative;
}

/* -------------------------------------------------
   ATMOSPHERIC SKY & ENVIRONMENT
------------------------------------------------- */
.sky-container {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    /* The Moon Glow */
    background: radial-gradient(circle at 85% 12%, rgba(27, 43, 58, 0.6) 0%, transparent 50%);
}

#scene {
    z-index: 1; /* Keep stars safely behind the moon */
}

.moon-3d-container {
    position: absolute;
    top: 10%; 
    right: 15%;
    width: 120px; 
    height: 120px;
    z-index: 5; /* Moon sits above the stars */
    pointer-events: none; 
    mix-blend-mode: screen;
}

.moon-3d-container canvas {
    display: block; width: 100%; height: 100%;
}

.star {
    position: absolute; background: white; border-radius: 50%; opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite; z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.ocean-surface {
    position: absolute; bottom: 0; left: 0; right: 0; height: 20%; 
    background: linear-gradient(to bottom, #3e5c76 0%, #09101a 100%);
    z-index: 5; 
    backdrop-filter: blur(2px); border-top: 1px solid rgba(255,255,255,0.1);
}

#snow-mirror {
    position: absolute; top: 80%; left: 0; width: 100%; height: 20%;
    z-index: 15; pointer-events: none;
}

/* -------------------------------------------------
   COMPONENT FIXES & UTILITIES
------------------------------------------------- */
.comment-card .comment-footer {
    position: relative;
    z-index: 2; /* Elevate clickable icons above the stretched-link card overlay */
}

.rotating-flake {
    animation: snowflake-spin 12s linear infinite;
}