:root {
    --bg-dark: #020308;
    --font-korean: 'Gowun Batang', 'Noto Serif KR', serif;
    --font-latin: 'Cormorant Garamond', serif;
    
    --color-starlight: #ffffff;
    --glow-pure-white: rgba(255, 255, 255, 0.9);
    --glow-blue-white: rgba(235, 243, 255, 0.65);
    --glow-soft-cream: rgba(255, 248, 232, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-korean);
    color: var(--color-starlight);
    user-select: none;
    touch-action: none;
}

#galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.artwork-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(15, 10, 30, 0.2) 0%, rgba(2, 3, 8, 0.65) 80%);
}

.poster-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    pointer-events: auto;
}

.neon-title {
    font-family: var(--font-korean);
    font-size: clamp(1.05rem, 2.3vw, 1.65rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    line-height: 1.3;
    color: #ffffff;
    position: relative;
    cursor: default;
    margin-bottom: 0.8rem;
    
    text-shadow: 
        0 0 6px var(--glow-pure-white),
        0 0 14px var(--glow-blue-white),
        0 0 28px var(--glow-soft-cream);
    
    animation: starlightGlow 4.5s ease-in-out infinite alternate;
}

.domain-caption {
    font-family: var(--font-latin);
    font-size: clamp(0.85rem, 1.8vw, 1.35rem);
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.poster-content:hover .domain-caption {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

/* Keyframe Animations */
@keyframes starlightGlow {
    0% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.85),
            0 0 12px rgba(235, 243, 255, 0.6),
            0 0 24px rgba(255, 248, 232, 0.35);
        filter: brightness(0.98);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 1),
            0 0 20px rgba(235, 243, 255, 0.85),
            0 0 35px rgba(255, 248, 232, 0.5);
        filter: brightness(1.08);
    }
    100% {
        text-shadow: 
            0 0 6px rgba(255, 255, 255, 0.9),
            0 0 15px rgba(235, 243, 255, 0.65),
            0 0 28px rgba(255, 248, 232, 0.4);
        filter: brightness(1.02);
    }
}

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

@keyframes hintPulse {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 0.75;
        transform: translateY(-3px);
    }
}

/* Mobile & Tablet Fine-tuning */
@media (max-width: 768px) {
    .neon-title {
        letter-spacing: 0.12em;
    }
    .interactive-hint {
        bottom: 1.5rem;
    }
}
