:root {
    --bg-start: #fff5f7;
    --bg-end: #ffe8d6;
    --card-bg: #ffffff;
    --text: #2d1b2e;
    --text-muted: #6b5b6e;
    --primary: #e8437f;
    --primary-hover: #d63370;
    --secondary: #ffb4c8;
    --secondary-text: #5c2a3a;
    --accent: #ff8fab;
    --success: #2ecc71;
    --error: #e74c3c;
    --shadow: 0 20px 60px rgba(232, 67, 127, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
    line-height: 1.5;
}

.page {
    min-height: 100vh;
    display: flex;
    /* safe center: falls die Karte höher als der Viewport ist, oben andocken */
    align-items: safe center;
    justify-content: center;
    padding: 24px 16px;
}

@supports not (align-items: safe center) {
    .page {
        align-items: center;
    }
}

.card {
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.card-wide {
    max-width: 580px;
}

.wizard-card {
    max-width: 560px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.hero {
    margin-bottom: 28px;
}

/* Index: hero pitch */

.hero-pitch {
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 8px;
    padding-right: 0;
    overflow: visible;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-pitch h1 {
    text-align: center;
    max-width: 28ch;
}

/* Emoji mist orb – top-right corner */

.hero-emoji-mist {
    --mist-cycle: 8s;
    position: absolute;
    top: -18px;
    right: -14px;
    width: 96px;
    height: 96px;
    pointer-events: none;
    z-index: 2;
    animation: mistFloat 7s ease-in-out infinite;
}

.hero-emoji-mist__fog {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.55;
}

.hero-emoji-mist__fog--a {
    inset: 4px 8px 20px 4px;
    background: radial-gradient(circle at 40% 45%, rgba(255, 143, 171, 0.75) 0%, rgba(232, 67, 127, 0.2) 55%, transparent 78%);
    animation: mistDriftA 6s ease-in-out infinite;
}

.hero-emoji-mist__fog--b {
    inset: 18px 0 6px 16px;
    background: radial-gradient(circle at 55% 50%, rgba(255, 200, 215, 0.7) 0%, rgba(255, 143, 171, 0.15) 60%, transparent 80%);
    animation: mistDriftB 8s ease-in-out infinite;
}

.hero-emoji-mist__fog--c {
    inset: 10px 14px 10px 0;
    background: radial-gradient(circle at 50% 55%, rgba(232, 67, 127, 0.35) 0%, transparent 70%);
    animation: mistDriftC 5.5s ease-in-out infinite;
}

.hero-emoji-mist__core {
    position: absolute;
    inset: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-emoji-mist__emoji {
    position: absolute;
    font-size: 2.15rem;
    line-height: 1;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.72) rotate(-10deg);
    animation: emojiMorph var(--mist-cycle) ease-in-out infinite;
    animation-delay: calc(var(--i) * -1s);
    will-change: opacity, filter, transform;
}

@keyframes mistFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes mistDriftA {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(-4px, 3px) scale(1.08); opacity: 0.72; }
}

@keyframes mistDriftB {
    0%, 100% { transform: translate(0, 0) scale(1.05); opacity: 0.45; }
    50% { transform: translate(5px, -4px) scale(0.95); opacity: 0.65; }
}

@keyframes mistDriftC {
    0%, 100% { transform: translate(0, 0) scale(0.95); opacity: 0.35; }
    50% { transform: translate(-2px, -5px) scale(1.1); opacity: 0.55; }
}

@keyframes emojiMorph {
    0%, 1.5% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.7) rotate(-12deg);
    }
    4%, 9% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) rotate(0deg);
    }
    12.5%, 100% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.12) rotate(10deg);
    }
}

.eyebrow-glow {
    animation: eyebrowPulse 3s ease-in-out infinite;
}

@keyframes eyebrowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 67, 127, 0); }
    50% { box-shadow: 0 0 0 6px rgba(232, 67, 127, 0.12); }
}

.hero-hook {
    font-size: 1.02rem;
    line-height: 1.55;
    text-align: center;
    max-width: 38ch;
}

.hero-hook em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.hero-story {
    margin: 20px 0;
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(232, 67, 127, 0.07) 0%, rgba(255, 180, 200, 0.12) 100%);
    border: 1px solid rgba(232, 67, 127, 0.18);
    border-top: 4px solid var(--primary);
}

.hero-story p {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
}

.hero-story strong {
    color: var(--primary);
}

.hero-steps {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.hero-steps li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: left;
    max-width: 36ch;
}

.hero-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.hero-badges li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: #1e8449;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-badges li:nth-child(2) {
    background: rgba(232, 67, 127, 0.1);
    color: var(--primary);
}

.hero-badges li:nth-child(3) {
    background: rgba(255, 180, 200, 0.35);
    color: var(--secondary-text);
}

.hero-cta {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 32ch;
}

.hero-cta-finger {
    display: inline-block;
    font-size: 2.75rem;
    line-height: 1;
    transform-origin: center top;
    animation: heroFingerPulse 1.35s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(232, 67, 127, 0.25));
}

@keyframes heroFingerPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateY(8px) scale(1.18);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta-finger {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

.eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(232, 67, 127, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.2;
}

.lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.highlight {
    color: var(--primary);
}

#create-form:not(.is-hidden) {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    min-width: 0;
    max-width: 100%;
}

.field span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.field input {
    padding: 14px 16px;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.field-hint {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 67, 127, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 67, 127, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    margin-top: 8px;
}

.btn-ghost:hover {
    color: var(--primary);
}

.error-message {
    margin: 0;
    color: var(--error);
    font-size: 0.9rem;
}

/* Validierungs-Toast unten mittig */
.form-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10050;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(45, 27, 46, 0.94);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 36px rgba(45, 27, 46, 0.28);
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.form-toast.is-error {
    background: rgba(192, 57, 43, 0.96);
}

.form-toast:not(.is-error) {
    background: rgba(45, 27, 46, 0.94);
}

.form-section.is-error-highlight,
.email-replace-box.is-error-highlight {
    outline: 2px solid rgba(231, 76, 60, 0.45);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
    animation: formSectionShake 0.45s ease;
}

@keyframes formSectionShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-section.is-error-highlight,
    .email-replace-box.is-error-highlight {
        animation: none;
    }
}

.email-replace-box {
    margin: 12px 0 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.email-replace-text {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

#create-form.is-hidden {
    display: none !important;
}

#result-section {
    display: none !important;
}

#result-section.is-visible {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

/* Legal: Info-Button, Modal, Cookie-Hinweis */

.legal-fab {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9998;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(45, 27, 46, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45, 27, 46, 0.08);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.legal-fab:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    transform: translateY(-1px);
}

.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(0, 0, 0, 0.55);
}

.legal-modal.is-open {
    display: flex;
}

body.legal-modal-open {
    overflow: hidden;
}

.legal-modal__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: min(82vh, 680px);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.legal-modal__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 12px;
    border-bottom: 1px solid #f3e8ec;
}

.legal-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.legal-modal__close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f8eef1;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.legal-modal__close:hover {
    background: #f0e0e4;
    color: var(--text);
}

.legal-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px 22px 22px;
}

.legal-modal__footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid #f3e8ec;
    background: rgba(255, 255, 255, 0.98);
}

.legal-modal__footer-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: left;
}

.legal-modal__accept {
    width: 100%;
    min-height: 46px;
}

.legal-section + .legal-section {
    margin-top: 18px;
}

.legal-section h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.legal-subheading {
    margin: 18px 0 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.legal-section h5.legal-subheading {
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
}

.legal-section p,
.legal-section li {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.legal-section ul {
    margin: 0 0 10px;
    padding-left: 1.2rem;
}

.legal-section a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--primary-hover);
}

.legal-section-promo {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(232, 67, 127, 0.06);
    border: 1px solid rgba(232, 67, 127, 0.14);
}

.legal-section-donate__action {
    margin: 0;
}

.donate-box {
    margin-top: 4px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #f7f9fc;
    border: 1px solid rgba(0, 48, 135, 0.12);
    text-align: center;
}

.donate-box__text {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.btn-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffc439;
    color: #003087;
    border: 1px solid #f2ba36;
    box-shadow: 0 2px 6px rgba(0, 48, 135, 0.14);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.btn-paypal:hover {
    background: #f2ba36;
    border-color: #e6ad2f;
    color: #003087;
    box-shadow: 0 4px 10px rgba(0, 48, 135, 0.18);
}

.btn-paypal__brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: #003087;
    letter-spacing: -0.03em;
    line-height: 1;
}

.btn-paypal__brand-light {
    color: #009cde;
}

.btn-paypal__label {
    line-height: 1;
    color: #003087;
}

/* Consent-Modal: mittig zentriert, kein Ablehnen – nur Akzeptieren oder Seite verlassen */
.legal-cookie {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.legal-cookie:not([hidden]) {
    display: flex;
}

.legal-cookie__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 440px;
    max-height: min(88vh, 640px);
    overflow: auto;
    margin: 0 auto;
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    text-align: center;
}

.legal-cookie__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.legal-cookie__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.legal-cookie__note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
    opacity: 0.95;
}

.legal-cookie__link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.legal-cookie__link:hover {
    color: var(--primary-hover);
}

.legal-cookie__accept {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

/* Gesamte App sperren bis Consent (Startseite + Einladungslinks) */
body.consent-pending {
    overflow: hidden;
}

body.consent-pending main,
body.consent-pending .adsense-footer,
body.consent-pending .heart-merge-overlay,
body.consent-pending .qr-modal,
body.consent-pending .form-toast {
    pointer-events: none !important;
    user-select: none !important;
}

body.consent-pending .legal-fab,
body.consent-pending .legal-cookie,
body.consent-pending .legal-cookie *,
body.consent-pending .legal-modal,
body.consent-pending .legal-modal * {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Info-Modal über dem Consent-Modal lesbar halten */
body.consent-pending .legal-modal {
    z-index: 10002;
}

#qr-modal {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

#qr-modal.is-open {
    display: flex !important;
}

body.qr-modal-open {
    overflow: hidden;
}

.qr-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fff;
}

/* qrcode.js rendert canvas + img; nur eines anzeigen, sonst doppelter QR */
.qr-code-container canvas,
.qr-code-container img {
    width: 216px !important;
    height: 216px !important;
    max-width: none;
}

.qr-code-container img {
    display: block;
}

.qr-code-container canvas {
    display: none;
}

.qr-code-container.has-canvas-only canvas {
    display: block;
}

.qr-code-container.has-canvas-only img {
    display: none;
}

.success-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.15);
    color: #1e8449;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-text {
    margin: 0;
    color: var(--text-muted);
}

.link-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-box input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: #faf7f8;
    color: var(--text);
}

.copy-feedback {
    margin: 0;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Create form: photo upload */

.photo-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.photo-picker {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px dashed #f0b8c8;
    background: rgba(232, 67, 127, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.photo-picker:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
}

/* Create form: slot rows */

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-add-slot {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
}

.btn-add-slot.is-wiggle {
    animation: addSlotWiggle 0.7s ease;
}

@keyframes addSlotWiggle {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    15% {
        transform: translateX(-5px) rotate(-1.2deg);
    }
    30% {
        transform: translateX(5px) rotate(1.2deg);
    }
    45% {
        transform: translateX(-4px) rotate(-0.8deg);
    }
    60% {
        transform: translateX(4px) rotate(0.8deg);
    }
    75% {
        transform: translateX(-2px) rotate(-0.4deg);
    }
    90% {
        transform: translateX(2px) rotate(0.4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-add-slot.is-wiggle {
        animation: none;
        box-shadow: 0 0 0 3px rgba(232, 67, 127, 0.35);
    }
}

.slot-row {
    padding: 16px;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    background: #fffafb;
}

.slot-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.slot-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.slot-row-fields .field {
    min-width: 0;
}

.datetime-stepper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.datetime-stepper .slot-date,
.datetime-stepper .time-input-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

/* Datum: Overflow-Schutz wie bei der Uhrzeit (iOS/WebKit) */
.datetime-stepper .slot-date {
    display: block;
    overflow: hidden;
}

.datetime-stepper .slot-date,
.datetime-stepper .slot-time {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

/* iOS/WebKit: type=date und type=time wachsen sonst oft über den Container hinaus */
.datetime-stepper .slot-date::-webkit-date-and-time-value,
.datetime-stepper .slot-time::-webkit-date-and-time-value {
    text-align: left;
    min-width: 0;
    width: 100%;
}

.datetime-stepper .slot-date::-webkit-datetime-edit,
.datetime-stepper .slot-time::-webkit-datetime-edit {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.datetime-stepper .slot-date::-webkit-datetime-edit-fields-wrapper,
.datetime-stepper .slot-time::-webkit-datetime-edit-fields-wrapper {
    min-width: 0;
    max-width: 100%;
}

.datetime-stepper .slot-date::-webkit-calendar-picker-indicator,
.datetime-stepper .slot-time::-webkit-calendar-picker-indicator {
    flex-shrink: 0;
    margin-left: 4px;
}

.stepper-btn {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition), transform 0.2s ease;
}

.stepper-btn:hover {
    border-color: var(--accent);
    background: #fff5f8;
}

.stepper-btn:active {
    transform: scale(0.96);
}

.time-input-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.datetime-stepper--time.is-empty .slot-time {
    color: transparent;
}

.datetime-stepper--time.is-empty .slot-time::-webkit-datetime-edit,
.datetime-stepper--time.is-empty .slot-time::-webkit-datetime-edit-fields-wrapper {
    color: transparent;
}

.datetime-stepper--time:not(.is-empty) .time-placeholder {
    display: none;
}

.time-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
    pointer-events: none;
}

.datetime-stepper--time.is-empty .time-input-wrap .slot-time {
    border-style: dashed;
    background: #fffafb;
}

/* Profile avatar on invite page */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(232, 67, 127, 0.15);
    box-shadow: 0 10px 30px rgba(232, 67, 127, 0.2);
}

.profile-name {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

/* Slot selection on invite page */

.slot-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.slot-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.slot-option:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 67, 127, 0.12);
}

.slot-option.selected {
    border-color: var(--primary);
    background: rgba(232, 67, 127, 0.06);
    box-shadow: 0 8px 24px rgba(232, 67, 127, 0.18);
}

.slot-option-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.slot-option-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.slot-option-time {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
}

/* Wizard */

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f0e0e4;
    transition: background var(--transition), transform var(--transition);
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: var(--accent);
}

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(16px);
}

.wizard-step.active {
    display: block;
    animation: stepIn var(--transition) forwards;
}

@keyframes stepIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 28px;
}

.summary-closing {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--text-muted);
}

.step-header-typed {
    min-height: 8.5rem;
}

.step-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.typewriter-line {
    margin: 0;
    min-height: 1.35em;
}

.typewriter-lead {
    margin-top: 12px;
    min-height: 1.3em;
}

.typewriter-line.is-typing::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: var(--primary);
    animation: typewriterBlink 0.55s step-end infinite;
}

@keyframes typewriterBlink {
    50% {
        opacity: 0;
    }
}

.step-reveal.is-visible {
    animation: stepReveal 0.4s ease forwards;
}

@keyframes stepReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slot-option.throw-in,
.activity-card.throw-in {
    opacity: 0;
    pointer-events: none;
}

.slot-option.throw-in-left,
.activity-card.throw-in-left {
    animation: throwInLeft 0.5s cubic-bezier(0.22, 1.12, 0.36, 1) forwards;
}

.slot-option.throw-in-right,
.activity-card.throw-in-right {
    animation: throwInRight 0.5s cubic-bezier(0.22, 1.12, 0.36, 1) forwards;
}

@keyframes throwInLeft {
    0% {
        opacity: 0;
        transform: translate(-42px, -28px) rotate(-14deg) scale(0.82);
    }
    70% {
        opacity: 1;
        transform: translate(4px, 4px) rotate(2deg) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
    }
}

@keyframes throwInRight {
    0% {
        opacity: 0;
        transform: translate(42px, -28px) rotate(14deg) scale(0.82);
    }
    70% {
        opacity: 1;
        transform: translate(-4px, 4px) rotate(-2deg) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
    }
}

/* Yes / No area */

.yes-no-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}

.yes-no-area.runaway-active {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 20px;
}

.runaway-container {
    overflow: hidden;
}

.btn-yes,
.btn-no {
    min-width: 120px;
}

.btn-yes {
    z-index: 2;
}

.runaway-btn-positioned {
    position: absolute;
    z-index: 3;
    transition: left 0.25s ease, top 0.25s ease;
}

.runaway-btn.jumping {
    box-shadow: 0 12px 30px rgba(232, 67, 127, 0.4);
}

/* Confetti */

.wizard-step-summary {
    position: relative;
    overflow: hidden;
}

.wizard-step-summary .summary-match,
.wizard-step-summary .step-header,
.wizard-step-summary .summary-box,
.wizard-step-summary .mail-notice,
.wizard-step-summary .btn,
.wizard-step-summary .donate-box,
.wizard-step-summary .summary-create-link {
    position: relative;
    z-index: 3;
}

.summary-create-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(232, 67, 127, 0.2);
    text-align: center;
}

.summary-create-link__teaser {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.summary-create-link__anchor {
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition), transform 0.2s ease;
}

.summary-create-link__anchor:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
    text-decoration: underline;
}

.summary-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.match-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 136px;
}

.match-avatar {
    --match-avatar-size: 128px;
    --match-avatar-overlap: calc(var(--match-avatar-size) * 0.2);
    width: var(--match-avatar-size);
    height: var(--match-avatar-size);
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 10px 24px rgba(232, 67, 127, 0.28));
}

.match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 4px solid #fff;
    box-sizing: border-box;
}

.match-avatar--creator {
    margin-right: calc(var(--match-avatar-overlap) * -1);
    z-index: 1;
}

.match-avatar--responder {
    z-index: 2;
}

.summary-match.is-animated .match-avatar--creator {
    animation: matchSlideInLeft 0.65s cubic-bezier(0.22, 1.12, 0.36, 1) forwards;
}

.summary-match.is-animated .match-avatar--responder {
    animation: matchSlideInRight 0.65s cubic-bezier(0.22, 1.12, 0.36, 1) forwards;
}

@keyframes matchSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-64px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes matchSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(64px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.confetti-layer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.confetti-piece {
    position: absolute;
    top: -10%;
    animation-name: confettiFall;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    opacity: 0.95;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.summary-profile {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.summary-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(232, 67, 127, 0.2);
}

/* Activity groups (create form) */

.activity-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 12px;
    border: 1px solid #f0e0e4;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 250, 0.65));
}

.activity-group-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.activity-group-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.activity-group-toggle {
    align-self: center;
    margin-top: 2px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgba(232, 67, 127, 0.08);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.activity-group-toggle:hover {
    background: rgba(232, 67, 127, 0.14);
}

.activity-group-toggle:active {
    transform: scale(0.98);
}

.activity-group-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Activity grid */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.activity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    border: 2px solid #f0e0e4;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

/* Hover nur auf echten Pointern – sonst bleibt auf Mobile der rosa Rahmen nach dem Tippen hängen */
@media (hover: hover) and (pointer: fine) {
    .activity-card:hover:not(.selected) {
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(232, 67, 127, 0.12);
    }
}

.activity-card:focus {
    outline: none;
}

.activity-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.activity-card:active:not(.selected) {
    border-color: #f0e0e4;
    background: #fff;
    box-shadow: none;
    transform: none;
}

.activity-card.selected {
    border-color: var(--primary);
    background: rgba(232, 67, 127, 0.06);
    box-shadow: 0 8px 24px rgba(232, 67, 127, 0.2);
    transform: none;
}

.activity-card.selected:active {
    border-color: var(--primary);
    background: rgba(232, 67, 127, 0.06);
    box-shadow: 0 8px 24px rgba(232, 67, 127, 0.2);
}

.activity-icon {
    font-size: 2rem;
}

.activity-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* Summary */

.summary-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(232, 67, 127, 0.06), rgba(255, 143, 171, 0.1));
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    text-align: right;
}

.mail-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(46, 204, 113, 0.12);
    color: #1e8449;
    font-size: 0.95rem;
}

.mail-notice.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
}

@media (max-width: 480px) {
    .card {
        padding: 24px 20px;
    }

    .slot-row-fields {
        grid-template-columns: 1fr;
    }

    /* Mobile: native Date-/Time-Picker statt Pfeil-Stepper */
    .datetime-stepper .stepper-btn {
        display: none;
    }

    .slot-row {
        overflow: hidden;
        max-width: 100%;
    }

    .datetime-stepper {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .datetime-stepper .slot-date,
    .datetime-stepper .time-input-wrap {
        flex: none;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .datetime-stepper .slot-date,
    .datetime-stepper .slot-time {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* iOS Safari: nativer Date-Picker-Text darf die Karte nicht sprengen */
    .datetime-stepper .slot-date::-webkit-datetime-edit,
    .datetime-stepper .slot-date::-webkit-datetime-edit-fields-wrapper,
    .datetime-stepper .slot-time::-webkit-datetime-edit,
    .datetime-stepper .slot-time::-webkit-datetime-edit-fields-wrapper {
        max-width: 100%;
        min-width: 0;
    }

    .page {
        align-items: flex-start;
    }

    .wizard-page {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .photo-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .yes-no-area {
        flex-direction: column;
    }

    .yes-no-area.runaway-active {
        min-height: 260px;
    }

    .btn-yes,
    .btn-no {
        width: 100%;
        max-width: 200px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-groups {
        gap: 14px;
    }

    .activity-group {
        padding: 12px 10px 10px;
    }

    .activity-group-title {
        font-size: 0.9rem;
    }

    .activity-card {
        padding: 18px 12px;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .summary-value {
        text-align: left;
    }

    .hero-pitch {
        padding-right: 0;
        padding-top: 8px;
    }

    .hero-cta-finger {
        font-size: 3rem;
    }

    .hero-emoji-mist {
        width: 78px;
        height: 78px;
        top: -10px;
        right: -6px;
    }

    .hero-emoji-mist__core {
        inset: 16px;
    }

    .hero-emoji-mist__emoji {
        font-size: 1.75rem;
    }
}

/* Ad interstitial (invite link gate, later Google Ads image) */

.ad-interstitial {
    width: 100%;
    max-width: 580px; /* wie .card-wide auf der Ersteller-Seite */
}

.ad-interstitial.is-done {
    display: none !important;
}

.ad-interstitial-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.ad-interstitial-title {
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary);
    animation: adTitlePulse 1.6s ease-in-out infinite;
}

@keyframes adTitlePulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.98);
        text-shadow: 0 0 0 rgba(232, 67, 127, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
        text-shadow: 0 4px 18px rgba(232, 67, 127, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-interstitial-title {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.ad-interstitial-media {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f7eef1;
}

.ad-interstitial-media--ads {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

/* Einzelnes AdSense-Unit */
.adsense-slot {
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fffafb;
    border: 1px solid #f0e0e4;
    box-sizing: border-box;
}

.adsense-slot .adsbygoogle {
    display: block;
    width: 100%;
}

.adsense-slot--square {
    max-width: 336px;
    min-height: 250px;
}

.adsense-slot--square .adsbygoogle {
    min-height: 250px;
}

.adsense-slot--wide {
    max-width: 100%;
    min-height: 90px;
}

.adsense-slot--wide .adsbygoogle {
    min-height: 90px;
}

.adsense-slot--interstitial {
    max-width: 100%;
}

/* Ergebnis-Karte: ein Quadrat unter „Neuen Link erstellen“ */
.adsense-result {
    width: 100%;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px dashed rgba(232, 67, 127, 0.2);
}

.adsense-result .adsense-slot--result {
    max-width: 100%;
}

/* Footer unter dem gesamten Layout (außerhalb der Karte) */
.adsense-footer {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Mobil: nur Quadrat · Desktop: nur Breit */
.adsense-slot--footer-desktop {
    display: none;
}

.adsense-slot--footer-mobile {
    display: block;
}

@media (min-width: 768px) {
    .adsense-slot--footer-mobile {
        display: none;
    }

    .adsense-slot--footer-desktop {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .adsense-footer {
        max-width: 728px;
    }
}

.ad-loading {
    width: 100%;
}

.ad-loading-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #f0e0e4;
    overflow: hidden;
}

.ad-loading-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: none;
}

.ad-loading-fill.is-running {
    animation: adLoadingBar 10s linear forwards;
}

@keyframes adLoadingBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Heart merge overlay (accept animation) */

.heart-merge-overlay {
    position: fixed;
    inset: 0;
    /* Über Consent-Resten, unter Legal-Info-Modal */
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 245, 247, 0.92);
    backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.heart-merge-overlay.is-active {
    opacity: 1;
}

.heart-merge-overlay.is-fading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.heart-merge {
    position: relative;
    width: 140px;
    height: 140px;
}

.heart-merge-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.heart-merge-half--left {
    left: 0;
}

.heart-merge-half--right {
    right: 0;
}

.heart-merge-emoji {
    position: absolute;
    top: 0;
    font-size: 140px;
    line-height: 1;
    user-select: none;
}

.heart-merge-half--left .heart-merge-emoji {
    left: 0;
}

.heart-merge-half--right .heart-merge-emoji {
    right: 0;
}

.heart-merge-overlay.is-active .heart-merge-half--left {
    animation: heartMergeLeft 3s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.heart-merge-overlay.is-active .heart-merge-half--right {
    animation: heartMergeRight 3s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.heart-merge-overlay.is-active .heart-merge {
    animation: heartMergePulse 3s ease-in-out forwards;
}

@keyframes heartMergeLeft {
    0% {
        transform: translateX(-90px) rotate(-8deg);
    }
    65% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes heartMergeRight {
    0% {
        transform: translateX(90px) rotate(8deg);
    }
    65% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes heartMergePulse {
    0%, 60% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(232, 67, 127, 0));
    }
    75% {
        transform: scale(1.12);
        filter: drop-shadow(0 8px 24px rgba(232, 67, 127, 0.45));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 16px rgba(232, 67, 127, 0.3));
    }
}
