* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink1: #fff0f5;
    --pink2: #ffd6e7;
    --pink3: #ffadd2;
    --pink4: #f783ac;
    --pink5: #e64980;
    --peach: #fff3e8;
    --peach2: #ffd8b1;
    --cream: #fffdf8;
    --text-dark: #5c2e3a;
    --text-mid: #9b4d6e;
}

body {
    background: linear-gradient(135deg, #fff0f5 0%, #fff8e1 50%, #fce4ec 100%);
    min-height: 100vh;
    font-family: 'Noto Sans Thai', sans-serif;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20'%3E🌸%3C/text%3E%3C/svg%3E"), auto;
}

/* Floating petals background */
.petals-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    font-size: 20px;
    animation: fall linear infinite;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Header */
.site-header {
    text-align: center;
    margin-bottom: 10px;
}

.header-emoji {
    font-size: 56px;
    display: block;
    margin-bottom: 8px;
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    56% {
        transform: scale(1);
    }
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 42px;
    color: var(--pink5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.site-subtitle {
    font-size: 15px;
    color: var(--text-mid);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 40px 48px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(230, 73, 128, 0.12), 0 2px 12px rgba(230, 73, 128, 0.08);
    border: 1.5px solid rgba(255, 173, 210, 0.4);
    margin-bottom: 32px;
    text-align: center;
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body {
    font-size: 15.5px;
    color: var(--text-mid);
    line-height: 1.85;
}

/* Big question */
.question-card {
    animation-delay: 0.45s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 245, 0.92));
}

.big-question {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--pink5);
    margin: 8px 0 20px;
    line-height: 1.3;
}

.question-sub {
    font-size: 14.5px;
    color: var(--text-mid);
    margin-bottom: 28px;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-yes {
    background: linear-gradient(135deg, #f783ac, #e64980);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 42px;
    font-size: 18px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 73, 128, 0.35);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.btn-yes:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 8px 28px rgba(230, 73, 128, 0.45);
}

.btn-yes:active {
    transform: scale(0.97);
}

.btn-no {
    background: white;
    color: var(--text-mid);
    border: 1.5px solid var(--pink3);
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-family: 'Noto Sans Thai', sans-serif;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}

.btn-no:hover {
    transform: translateY(10px) translateX(8px);
}

/* Confirm overlay */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 230, 240, 0.88);
    backdrop-filter: blur(8px);
    z-index: 110;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.confirm-overlay.show {
    display: flex;
    animation: fadeIn 0.35s ease;
}

.confirm-box {
    background: white;
    border-radius: 28px;
    padding: 40px 44px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 48px rgba(230, 73, 128, 0.18);
    border: 1.5px solid rgba(255, 173, 210, 0.45);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.confirm-emoji {
    font-size: 52px;
    display: block;
    margin-bottom: 14px;
}

.confirm-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--pink5);
    margin-bottom: 10px;
}

.confirm-msg {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 28px;
}

.confirm-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-confirm-yes {
    background: linear-gradient(135deg, #f783ac, #e64980);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 17px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 73, 128, 0.35);
    transition: all 0.22s ease;
    width: 100%;
}

.btn-confirm-yes:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 28px rgba(230, 73, 128, 0.45);
}

.btn-confirm-cancel {
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--pink3);
    border-radius: 50px;
    padding: 11px 32px;
    font-size: 14px;
    font-family: 'Noto Sans Thai', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-confirm-cancel:hover {
    background: var(--pink1);
}

/* Result overlay */
.result-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 220, 235, 0.92);
    backdrop-filter: blur(6px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 32px;
}

.result-overlay.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result-emoji-big {
    font-size: 88px;
    display: block;
    margin-bottom: 16px;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: var(--pink5);
    margin-bottom: 12px;
    animation: fadeUp 0.6s 0.2s ease both;
}

.result-msg {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 380px;
    line-height: 1.7;
    animation: fadeUp 0.6s 0.35s ease both;
}

/* Timer */
.timer-box {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 173, 210, 0.5);
    border-radius: 20px;
    padding: 20px 36px;
    animation: fadeUp 0.6s 0.5s ease both;
    opacity: 0;
}

.timer-label {
    font-size: 13px;
    color: var(--text-mid);
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.timer-digits {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.timer-unit {
    text-align: center;
    min-width: 56px;
}

.timer-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--pink5);
    line-height: 1;
    display: block;
}

.timer-unit-label {
    font-size: 11px;
    color: var(--text-mid);
    margin-top: 4px;
    display: block;
}

.timer-sep {
    font-size: 28px;
    color: var(--pink3);
    line-height: 1;
    margin-bottom: 14px;
}

.btn-close-overlay {
    margin-top: 24px;
    background: linear-gradient(135deg, #f783ac, #e64980);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 15px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 73, 128, 0.3);
    animation: fadeUp 0.6s 0.7s ease both;
    opacity: 0;
}

/* Timer card shown after yes */
.couple-timer-card {
    display: none;
    animation-delay: 0.15s;
}

.couple-timer-card.visible {
    display: block;
    animation: fadeUp 0.8s 0.1s ease both;
}

.big-timer-digits {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0 8px;
}

.big-timer-unit {
    text-align: center;
    min-width: 64px;
    background: linear-gradient(135deg, var(--pink1), var(--peach));
    border-radius: 14px;
    padding: 12px 8px 10px;
    border: 1px solid rgba(255, 173, 210, 0.35);
}

.big-timer-num {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--pink5);
    line-height: 1;
    display: block;
}

.big-timer-lbl {
    font-size: 11px;
    color: var(--text-mid);
    margin-top: 5px;
    display: block;
}

.big-timer-sep {
    font-size: 28px;
    color: var(--pink3);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.start-date-note {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 10px;
}

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in forwards;
    top: -20px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Photo placeholder */
.photo-area {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd6e7, #ffadd2);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 18px rgba(230, 73, 128, 0.2);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    color: var(--pink3);
    font-size: 18px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--pink3), transparent);
}

footer {
    font-size: 13px;
    color: var(--text-mid);
    opacity: 0.7;
    margin-top: 8px;
}