/* Diadaptasi untuk dikadoin.id — palet bright pastel v2 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: linear-gradient(120deg, #fffafc, #ffedf4, #ffd6e4, #fffafc);
    background-size: 400% 400%;
    animation: gradientBG 14s ease infinite;
    color: #b5657f;
    text-align: center;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatUp {
    to { transform: translateY(-110vh); opacity: 0; }
}

/* HERO */
.hero {
    margin: 60px auto 40px;
    max-width: 460px;
    padding: 35px 25px;
    border-radius: 28px;
    border: 2px solid #ffafcc;
    background: rgba(255, 233, 241, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px rgba(247, 143, 179, 0.25);
    position: relative;
    z-index: 10;
}

.hero h1 {
    color: #b5657f;
    font-size: 2.4em;
    margin: 0 0 10px;
}

.hero p {
    opacity: 0.95;
    margin: 8px 0;
}

/* COUNTDOWN */
.countdown {
    font-size: 1.5em;
    color: #f76b9c;
    margin: 18px 0 4px;
}

.countdown-label {
    font-size: 0.95em;
    opacity: 0.8;
}

/* BUTTON */
button {
    margin-top: 18px;
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff8fab, #f76b9c);
    color: white;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(247, 107, 156, 0.4);
    transition: 0.25s;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
}

/* MUSIC GLOW */
.music-glow {
    animation: glowPulse 1.2s infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 25px rgba(255, 143, 171, 0.4); }
    to { box-shadow: 0 0 60px rgba(247, 107, 156, 0.75); }
}

/* SLIDESHOW */
.slideshow {
    margin: 40px auto;
    max-width: 320px;
    position: relative;
    z-index: 10;
}

.slide {
    width: 100%;
    border-radius: 22px;
    border: 3px solid #ffafcc;
    box-shadow: 0 18px 36px rgba(247, 143, 179, 0.3);
    background: #ffedf4;
}

/* CANDLE */
.candle-section {
    margin: 30px auto;
    position: relative;
    z-index: 10;
}

#flame {
    font-size: 50px;
    animation: flicker 0.3s infinite alternate;
}

#candle {
    font-size: 80px;
    cursor: pointer;
}

@keyframes flicker {
    from { transform: rotate(-3deg); }
    to { transform: rotate(3deg); }
}

.blow-out {
    animation: blowOut 0.6s forwards;
}

@keyframes blowOut {
    to { opacity: 0; transform: scale(0); }
}

/* SURPRISE POPUP */
.popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(181, 101, 127, 0.35);
    padding: 20px;
}

.popup > div {
    background: #fffafc;
    border: 3px solid #ffafcc;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 380px;
    box-shadow: 0 24px 60px rgba(247, 107, 156, 0.45);
    animation: popIn 0.45s ease;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-msg {
    font-size: 1.25em;
    color: #b5657f;
    white-space: pre-line;
    margin: 0 0 6px;
    line-height: 1.6;
}

/* WATERMARK */
.watermark {
    position: fixed;
    inset: -60%;
    z-index: 900;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    transform: rotate(-28deg);
    opacity: 0.08;
}

.watermark span {
    font-size: 30px;
    font-weight: 700;
    color: #b5657f;
    margin: 42px 36px;
    white-space: nowrap;
    user-select: none;
}

/* TIER BUTTON */
.tier-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 950;
    margin: 0;
    padding: 8px 16px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #b5657f;
    border: 1.5px solid #ffafcc;
    box-shadow: 0 4px 12px rgba(247, 143, 179, 0.25);
}

/* CONFETTI */
canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* FOOTER */
.copyright {
    margin: 40px 0 25px;
    font-size: 13px;
    color: #b5657f;
    opacity: 0.85;
    position: relative;
    z-index: 10;
}

.brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8fab, #f76b9c);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 13px;
}
