body {
    margin: 0;
    font-family: 'Comic Sans MS', cursive;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: white;
    text-align: center;
    overflow-x: hidden;
}

h1 {
    margin-top: 30px;
    font-size: 2.6em;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px pink; }
    to { text-shadow: 0 0 25px white; }
}

.name {
    font-size: 2em;
    margin: 20px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    50% { transform: scale(1.1); }
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.caption {
    margin-top: 5px;
    font-size: 1.1em;
}

/* Message */
.msg {
    background: rgba(255,255,255,0.2);
    padding: 25px;
    margin: 20px;
    border-radius: 20px;
    line-height: 1.6;
}

/* Cake */
.cake {
    width: 200px;
    height: 150px;
    background: #6b3e26;
    margin: 40px auto;
    border-radius: 12px;
    position: relative;
}

.cake::before {
    content: '';
    position: absolute;
    top: -30px;
    width: 100%;
    height: 30px;
    background: pink;
    border-radius: 12px 12px 0 0;
}

.candle {
    width: 10px;
    height: 40px;
    background: white;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
}

.flame {
    width: 16px;
    height: 16px;
    background: orange;
    border-radius: 50%;
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 0.3s infinite alternate;
}

@keyframes flicker {
    to { transform: translateX(-50%) scale(1.2); }
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: #ff1e56;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
}

/* Popup */
#finalPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 20px;
}
