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

body {
    font-family: Georgia, serif;
    background: #071329;
    color: #e5efff;
    overflow-x: hidden;
}

.screen {
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 25px 18px;
}

.hidden {
    display: none !important;
}

/* YILDIZLI GÖKYÜZÜ */

#password-screen,
#birthday-screen {
    background:
        radial-gradient(ellipse at 50% 100%, #244b79 0%, transparent 55%),
        linear-gradient(180deg, #050c20, #102b50 65%, #1d4168);
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 70% 20%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, #a9d7ff, transparent),
        radial-gradient(2px 2px at 85% 60%, white, transparent),
        radial-gradient(2px 2px at 15% 80%, white, transparent);
    background-size: 230px 230px;
    animation: starsMove 12s linear infinite;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-80px); }
}

/* GİRİŞ EKRANI */

.welcome {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 35px 22px;
    border: 1px solid #799bc5;
    border-radius: 25px;
    background: rgba(7, 20, 43, 0.78);
    box-shadow: 0 0 40px rgba(92, 156, 225, 0.2);
    backdrop-filter: blur(10px);
}

.moon {
    font-size: 75px;
    color: #e5edff;
    margin-bottom: 20px;
    animation: moonGlow 3s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    from { text-shadow: 0 0 15px #91baff; }
    to { text-shadow: 0 0 45px #d3e5ff; }
}

.welcome h1 {
    font-size: clamp(25px, 6vw, 34px);
    line-height: 1.4;
    margin-bottom: 18px;
}

.welcome p {
    color: #b8cee9;
    line-height: 1.7;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #719bd0;
    background: #0b1c36;
    color: white;
    text-align: center;
    font-size: 18px;
    outline: none;
}

button {
    width: 100%;
    margin-top: 16px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #719bd0, #b0d3ff);
    color: #071329;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#error-message {
    color: #ffb5b5;
    margin-top: 12px;
}

/* DOĞUM GÜNÜ EKRANI */

.sky {
    width: 100%;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(86, 133, 190, .25), transparent 50%);
}

.birthday-content {
    width: 100%;
    max-width: 550px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: appear 1.5s ease;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.birthday-content h1 {
    font-size: clamp(34px, 8vw, 52px);
    color: #e3edff;
    text-shadow: 0 0 25px #83b8ff;
    margin-bottom: 12px;
}

.birthday-content > p {
    color: #c5dcff;
    margin-bottom: 25px;
    font-size: 18px;
}

.utku-photo {
    width: min(75%, 290px);
    max-height: 340px;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid #9ebee9;
    box-shadow: 0 0 35px rgba(115, 172, 255, .4);
    margin-bottom: 30px;
}

/* MEKTUP */

.envelope {
    max-width: 310px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #a5c7f2;
    border-radius: 18px;
    background: rgba(17, 39, 72, .85);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.envelope-icon {
    font-size: 55px;
    color: #d5e6ff;
    margin-bottom: 10px;
}

.envelope p {
    color: #dceaff;
}

.letter {
    margin: 25px auto 0;
    padding: 30px 22px;
    max-width: 450px;
    background: #e8effb;
    color: #172c4b;
    border-radius: 15px;
    box-shadow: 0 0 35px rgba(130, 180, 255, .3);
    animation: letterOpen 1s ease;
}

.letter h2 {
    margin-bottom: 20px;
    color: #294d7c;
}

.letter p {
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@keyframes letterOpen {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TELEFON UYUMLULUĞU */

@media (max-width: 480px) {
    .welcome {
        padding: 30px 18px;
    }

    .birthday-content h1 {
        font-size: 35px;
    }

    .utku-photo {
        width: min(80%, 260px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
