@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --pink-bg: #fadadd;
    --pink-soft: #fff1f4;
    --pink-main: #fb607f;
    --pink-dark: #d93663;
    --text-main: #2d1b22;
    --text-muted: #7d5965;
    --white-glass: rgba(255, 255, 255, 0.72);
    --border-soft: rgba(255, 255, 255, 0.85);
    --shadow-card: 0 24px 60px rgba(171, 62, 91, 0.25);
    --shadow-button: 0 12px 24px rgba(217, 54, 99, 0.28);
}

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

html,
body {
    min-height: 100%;
}

body {
    width: 100%;
    font-family: "Poppins", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, #fff8fa 0%, transparent 32%),
        radial-gradient(circle at bottom right, #ffc3cf 0%, transparent 34%),
        linear-gradient(135deg, #fff5f7 0%, var(--pink-bg) 100%);
}

button,
a {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.page {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    overflow-x: hidden;
}

.background-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.background-decoration span {
    position: absolute;
    display: block;
    width: clamp(120px, 26vw, 260px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    filter: blur(2px);
}

.background-decoration span:nth-child(1) {
    top: 8%;
    left: 7%;
}

.background-decoration span:nth-child(2) {
    right: -60px;
    top: 18%;
    background: rgba(251, 96, 127, 0.16);
}

.background-decoration span:nth-child(3) {
    left: -70px;
    bottom: 8%;
    background: rgba(255, 255, 255, 0.28);
}

.celebration-background {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    pointer-events: none;
}

.celebration-background.show {
    display: block;
}

.celebration-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invite-card {
    position: relative;
    z-index: 2;
    width: min(94vw, 430px);
    min-height: min(760px, 92dvh);
    display: flex;
    flex-direction: column;
    border-radius: 34px;
    padding: clamp(1rem, 3vw, 1.35rem);
    background: var(--white-glass);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.invite-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    border: 1px dashed rgba(217, 54, 99, 0.22);
    pointer-events: none;
}

.card-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0.4rem 0 0.9rem;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pink-dark);
}

.card-header h1 {
    font-family: "Allura", cursive;
    font-size: clamp(4.2rem, 18vw, 6rem);
    line-height: 0.9;
    color: var(--pink-dark);
    text-shadow: 0 4px 0 rgba(255, 255, 255, 0.8);
}

.subtitle {
    margin-top: 0.35rem;
    font-size: clamp(0.82rem, 3vw, 0.95rem);
    color: var(--text-muted);
}

.image-box {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.actual-image {
    flex: 1;
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 1rem);
    border-radius: 26px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 243, 247, 0.72) 55%, rgba(255, 225, 232, 0.62) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.gif {
    width: min(68vw, 255px);
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(92, 38, 55, 0.18));
    animation: floatCute 3s ease-in-out infinite;
}

.gif.small {
    width: min(68vw, 270px);
}

.gif.medium {
    width: min(74vw, 330px);
}

.gif.large {
    width: min(82vw, 430px);
}

.text-one {
    width: 100%;
    display: grid;
    place-items: center;
    margin-top: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.text-one p {
    font-size: clamp(1rem, 4vw, 1.28rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.45;
}

.date-details {
    display: none;
    width: 100%;
    margin-top: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 244, 0.86));
    border: 1px solid rgba(217, 54, 99, 0.16);
    box-shadow: 0 16px 30px rgba(171, 62, 91, 0.14);
    animation: popIn 0.28s ease-in-out;
}

.date-details.show {
    display: block;
}

.details-title {
    font-family: "Allura", cursive;
    font-size: clamp(2.35rem, 9vw, 3.3rem);
    line-height: 1;
    text-align: center;
    color: var(--pink-dark);
    margin-bottom: 0.75rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.62rem 0;
    font-size: clamp(0.9rem, 3.3vw, 1rem);
    border-top: 1px dashed rgba(217, 54, 99, 0.24);
}

.detail-row span {
    font-weight: 600;
    color: var(--text-muted);
}

.detail-row strong {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
}

.yes-no {
    position: relative;
    z-index: 2;
    min-height: 145px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 3vw, 1rem);
    padding-top: 1rem;
}

.yes,
.no {
    min-height: 68px;
    width: 42%;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Allura", cursive;
    font-size: clamp(2.8rem, 10vw, 4.2rem);
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7f9b, var(--pink-main), var(--pink-dark));
    box-shadow: var(--shadow-button);
    transition:
        transform 0.16s ease,
        opacity 0.16s ease,
        width 0.22s ease,
        min-height 0.22s ease,
        filter 0.16s ease;
}

.no {
    background: linear-gradient(135deg, #ffc0cb, #ff8ea5, #fb607f);
}

.yes:hover,
.no:hover {
    opacity: 0.96;
    transform: translateY(-2px) scale(0.98);
    filter: brightness(1.02);
}

.yes:active,
.no:active {
    transform: translateY(1px) scale(0.96);
}

.yes-no.stage-one .yes {
    width: 62%;
}

.yes-no.stage-one .no {
    width: 28%;
}

.yes-no.stage-two .yes {
    width: 72%;
}

.yes-no.stage-two .no {
    width: 18%;
    font-size: clamp(2rem, 7vw, 3rem);
}

.yes-no.stage-three .yes {
    width: 82%;
}

.yes-no.stage-three .no {
    width: 12%;
    min-width: 54px;
    font-size: clamp(1.45rem, 5.5vw, 2.2rem);
}

.yes-no.stage-final .yes,
.yes-no.accepted .yes {
    width: 96%;
}

.gift-button {
    font-size: clamp(2.35rem, 9vw, 3.7rem);
}

@keyframes floatCute {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 480px) {
    .page {
        padding: 0.85rem;
        align-items: start;
    }

    .invite-card {
        width: 100%;
        min-height: calc(100dvh - 1.7rem);
        border-radius: 28px;
    }

    .invite-card::before {
        border-radius: 22px;
    }

    .actual-image {
        min-height: 230px;
    }

    .text-one {
        margin-top: 0.75rem;
        padding: 0.85rem;
    }

    .yes-no {
        min-height: 132px;
        padding-top: 0.85rem;
    }

    .yes,
    .no {
        min-height: 62px;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.14rem;
        text-align: center;
    }

    .detail-row strong {
        text-align: center;
    }
}

@media (max-width: 350px) {
    .card-header h1 {
        font-size: 4rem;
    }

    .actual-image {
        min-height: 205px;
    }

    .yes,
    .no {
        font-size: 2.55rem;
    }
}