:root {
    --bg-main: #fff7f1;
    --bg-card: rgba(255, 255, 255, 0.86);
    --text-main: #2d1b2f;
    --text-muted: #7b647c;
    --accent: #ff4f8b;
    --accent-dark: #d93670;
    --border-soft: rgba(255, 79, 139, 0.22);
    --shadow-soft: 0 24px 80px rgba(255, 79, 139, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, #ffe1ed 0, transparent 34%),
        radial-gradient(circle at bottom right, #ffe8c7 0, transparent 34%),
        var(--bg-main);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.creator-card {
    width: min(920px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
    backdrop-filter: blur(14px);
}

.brand-block {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff9f6e);
    box-shadow: 0 12px 30px rgba(255, 79, 139, 0.3);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1;
}

.intro-text {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.wish-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.82);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.13);
}

.field-error {
    margin: 0;
    color: #c21f4d;
    font-size: 13px;
    font-weight: 700;
}

.primary-button {
    border: 0;
    border-radius: 999px;
    padding: 16px 22px;
    font: inherit;
    font-weight: 800;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #ff9f6e);
    box-shadow: 0 18px 38px rgba(255, 79, 139, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(255, 79, 139, 0.34);
}

@media (max-width: 720px) {
    .creator-card {
        padding: 24px;
        border-radius: 26px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


.result-card {
    max-width: 720px;
}

.share-box {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.action-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: center;
}

.primary-link,
.secondary-link {
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-link {
    color: white;
    background: linear-gradient(135deg, var(--accent), #ff9f6e);
    box-shadow: 0 18px 38px rgba(255, 79, 139, 0.28);
}

.secondary-link {
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border-soft);
}


.wish-view-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
        linear-gradient(135deg, #ff8ab3, #ffd1a6);
}

.wish-stage {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.interactive-card {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    padding: 38px 30px;
    text-align: center;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 100px rgba(90, 20, 60, 0.22);
    backdrop-filter: blur(16px);
    animation: cardEnter 900ms ease both;
}

.card-type {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.recipient-line,
.sender-line,
.wish-message {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

.wish-message {
    max-width: 560px;
    margin: 20px auto;
}

.surprise-button {
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #ff9f6e);
    box-shadow: 0 18px 40px rgba(255, 79, 139, 0.32);
}

.secret-box {
    display: none;
    margin: 24px auto 0;
    max-width: 520px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 240, 247, 0.9);
    border: 1px dashed rgba(255, 79, 139, 0.5);
}

.secret-box.is-visible {
    display: block;
    animation: popIn 500ms ease both;
}

.floating-shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.48;
    filter: blur(1px);
    animation: floatAround 8s ease-in-out infinite;
}

.shape-one {
    width: 120px;
    height: 120px;
    left: 8%;
    top: 12%;
    background: #fff;
}

.shape-two {
    width: 180px;
    height: 180px;
    right: 7%;
    bottom: 12%;
    background: #ffe7f1;
    animation-delay: 1.2s;
}

.shape-three {
    width: 90px;
    height: 90px;
    right: 20%;
    top: 14%;
    background: #fff1d8;
    animation-delay: 2s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }
}


/* JS */

.magic-bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    animation: bubbleRise linear forwards;
}

.heart-particle {
    position: absolute;
    bottom: 40px;
    font-size: 26px;
    color: #ff4f8b;
    animation: heartFly 4s ease forwards;
    pointer-events: none;
}

@keyframes bubbleRise {
    from {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    to {
        transform: translateY(-110vh) scale(1.8);
        opacity: 0;
    }
}

@keyframes heartFly {
    from {
        transform: translateY(0) scale(0.8);
        opacity: 1;
    }

    to {
        transform: translateY(-240px) rotate(20deg) scale(1.4);
        opacity: 0;
    }
}


.field-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}


.generated-links {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.generated-links .share-box {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
}

.generated-links label {
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 800;
}

.global-actions {
    margin-top: 28px;
}


.wish-view-page[data-theme="eid"] {
    background:
        radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.95), transparent 8%),
        linear-gradient(135deg, #10233f, #315f72, #f5c76b);
}

.wish-view-page[data-theme="birthday"] {
    background:
        radial-gradient(circle at 20% 20%, #ffffff, transparent 18%),
        linear-gradient(135deg, #ff7ab6, #ffd166, #7bdff2);
}

.wish-view-page[data-theme="funny"] {
    background:
        radial-gradient(circle at 30% 25%, #ffffff, transparent 18%),
        linear-gradient(135deg, #f9dc5c, #ff9f1c, #ff6b6b);
}

.wish-view-page[data-theme="romantic"] {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9), transparent 24%),
        linear-gradient(135deg, #ff8ab3, #ffd1a6);
}

.button-playground {
    position: relative;
    min-height: 90px;
    display: grid;
    place-items: center;
    margin-top: 14px;
}

.runaway-button {
    position: relative;
    transition: transform 180ms ease;
}

.love-button {
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid var(--border-soft);
}

.interactive-card.is-shaking {
    animation: cardShake 420ms ease;
}

.sparkle-particle {
    position: absolute;
    font-size: 22px;
    pointer-events: none;
    animation: sparkleFly 2.8s ease forwards;
}

@keyframes cardShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px) rotate(-1deg);
    }

    50% {
        transform: translateX(8px) rotate(1deg);
    }

    75% {
        transform: translateX(-5px) rotate(-1deg);
    }
}

@keyframes sparkleFly {
    from {
        transform: translateY(0) scale(0.8);
        opacity: 1;
    }

    to {
        transform: translateY(-180px) scale(1.5) rotate(25deg);
        opacity: 0;
    }
}


.copy-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, #2d1b2f, #7b647c);
}

.copy-button.is-copied {
    background: linear-gradient(135deg, #1f9d55, #7bd88f);
}