
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 24px;
    font-family: Arial, sans-serif;
    color: white;
    background:
        radial-gradient(circle at top, #173b78, transparent 55%),
        linear-gradient(135deg, #020617, #071b3d, #100b2e);
}

#space {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.birthday-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid rgba(120, 190, 255, 0.6);
    border-radius: 28px;
    background: rgba(5, 15, 40, 0.78);
    box-shadow: 0 0 35px rgba(40, 130, 255, 0.35);
    backdrop-filter: blur(10px);
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(24px, 6vw, 36px);
    color: #a9e6ff;
    text-shadow: 0 0 15px #168bff;
}

.photo-frame {
    width: min(100%, 300px);
    margin: 0 auto 18px;
    padding: 7px;
    border: 2px solid #77caff;
    border-radius: 20px;
    box-shadow: 0 0 22px #168bff;
    animation: glow 2s ease-in-out infinite alternate;
}

.photo-frame img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 14px;
}

h2 {
    margin: 12px 0;
    font-size: 28px;
    color: #8edbff;
}

#messageText {
    min-height: 60px;
    margin: 18px 0;
    font-size: 20px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#nextWish {
    padding: 13px 22px;
    border: none;
    border-radius: 30px;
    color: #04152f;
    background: linear-gradient(90deg, #80e5ff, #b8c9ff);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(91, 183, 255, 0.6);
}

#nextWish:hover {
    transform: scale(1.05);
}

.hint {
    margin-top: 18px;
    color: #b7c9ed;
    font-size: 13px;
}

@keyframes glow {
    from {
        box-shadow: 0 0 12px #168bff;
    }
    to {
        box-shadow: 0 0 30px #7c5cff;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .birthday-card {
        padding: 22px 16px;
    }

    #messageText {
        font-size: 18px;
    }
}
