@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #0a0a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 별이 빛나는 밤하늘 배경 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle var(--twinkle-duration) infinite ease-in-out alternate;
}

/* 반짝이는 큰 별 */
.bright-star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: brightTwinkle 3s infinite ease-in-out alternate;
    z-index: -4;
}

/* 유성우 */
.shooting-star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 1;
    z-index: 1;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 100%);
    transform-origin: left center;
    transform: translate(-50%, -50%) rotate(var(--angle));
    z-index: -1;
}

.shooting-star-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    animation: fadeTrail 2.5s ease-out;
}

@keyframes fadeTrail {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

/* 오로라 효과 */
.aurora-container {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, 
        rgba(10, 10, 26, 0) 0%, 
        rgba(32, 190, 96, 0.1) 30%, 
        rgba(32, 190, 96, 0.2) 50%, 
        rgba(32, 190, 96, 0.1) 70%, 
        rgba(10, 10, 26, 0) 100%);
    filter: blur(50px);
    transform-origin: center;
    border-radius: 50% 50% 30% 30% / 100% 100% 20% 20%;
    opacity: 0;
    animation: auroraWave 30s infinite alternate ease-in-out, 
               auroraAppear 120s infinite;
    overflow: hidden;
    display: none;
}

.aurora:first-child {
    display: block;
    top: 40%;
    left: 0;
    width: 100%;
    height: 250px;
    animation-delay: 0s, 0s;
    background: linear-gradient(180deg, 
        rgba(10, 10, 26, 0) 0%, 
        rgba(32, 190, 96, 0.1) 30%, 
        rgba(32, 190, 96, 0.25) 50%, 
        rgba(32, 190, 96, 0.1) 70%, 
        rgba(10, 10, 26, 0) 100%);
    border-radius: 50% 50% 40% 40% / 100% 100% 30% 30%;
}

.aurora::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 120%;
    height: 40%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 80%,
        rgba(255, 255, 255, 0) 100%);
    animation: auroraWaveInner 20s infinite alternate ease-in-out;
    border-radius: 50%;
    transform: scaleY(0.3);
}

.aurora::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: auroraShimmer 15s infinite linear;
    opacity: 0.4;
}

/* 애니메이션 */
@keyframes twinkle {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes brightTwinkle {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.6);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px 4px rgba(255, 255, 255, 1);
    }
    100% {
        opacity: 0.8;
        box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.8);
    }
}

@keyframes showAurora {
    0%, 90%, 100% {
        opacity: 0;
    }
    5%, 7% {
        opacity: 0.2;
    }
    10%, 80% {
        opacity: 0.5;
    }
    85% {
        opacity: 0.2;
    }
}

@keyframes auroraAppear {
    0%, 100% {
        opacity: 0;
    }
    10%, 15% {
        opacity: 0.2;
    }
    20%, 80% {
        opacity: 0.5;
    }
    85%, 90% {
        opacity: 0.2;
    }
}

@keyframes auroraWave {
    0% {
        transform: scaleX(0.95) scaleY(1.05) translateY(2%) translateX(-1%) rotate(var(--rotate, 0deg));
        filter: blur(50px) brightness(1);
    }
    25% {
        transform: scaleX(1.05) scaleY(0.95) translateY(-1%) translateX(1%) rotate(calc(var(--rotate, 0deg) + 1deg));
        filter: blur(55px) brightness(1.2);
    }
    50% {
        transform: scaleX(0.98) scaleY(1.02) translateY(1%) translateX(2%) rotate(calc(var(--rotate, 0deg) - 0.5deg));
        filter: blur(45px) brightness(1.1);
    }
    75% {
        transform: scaleX(1.02) scaleY(0.98) translateY(-1%) translateX(-1%) rotate(calc(var(--rotate, 0deg) + 0.5deg));
        filter: blur(55px) brightness(1.15);
    }
    100% {
        transform: scaleX(1) scaleY(1) translateY(0.5%) translateX(-0.5%) rotate(var(--rotate, 0deg));
        filter: blur(50px) brightness(1.05);
    }
}

@keyframes auroraWaveInner {
    0% {
        transform: translateX(-5%) scaleY(0.3);
    }
    50% {
        transform: translateX(3%) scaleY(0.4);
    }
    100% {
        transform: translateX(-3%) scaleY(0.3);
    }
}

@keyframes auroraShimmer {
    0% {
        transform: translateX(-100%) skewX(-5deg);
    }
    100% {
        transform: translateX(100%) skewX(5deg);
    }
}

/* 기존 배경 효과 제거 */
body::before, body::after, .bg-orb {
    display: none;
}

/* 기존 애니메이션 제거 */
@keyframes backgroundPulse {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes dreamyBackground {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes dreamyBackground2 {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes floatOrb {
    0% { opacity: 0; }
    100% { opacity: 0; }
}

h1 {
    margin-bottom: 2rem;
    font-weight: 700;
    color: #e94560;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.input-container {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    resize: none;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.7);
}

.counter-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.counter-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 10;
    transition: all 0.3s ease;
}

.counter-label {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #e94560;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    border-radius: 50%;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.8) 0%, rgba(233, 69, 96, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes pulse {
    0% {
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        color: #e94560;
        text-shadow: 0 0 15px rgba(233, 69, 96, 0.8);
    }
    100% {
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
} 