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

:root {
    --bg: #10070d;
    --card: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: #fff;
    --muted: #c7b9bf;
    --pink: #ff4f91;
    --pink-light: #ff8fba;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 79, 145, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255, 0, 102, 0.12),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;
}

.app {
    width: 100%;
    min-height: 100vh;
}

.screen {
    min-height: 100vh;
    width: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
}

.card,
.form-card {
    width: 100%;
    max-width: 520px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 28px;

    padding: 36px 28px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4);
}

.card {
    text-align: center;
}

.emoji {
    font-size: 54px;
    margin-bottom: 18px;

    animation: float 2.5s ease-in-out infinite;
}

.small-text {
    color: var(--pink-light);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 14px;
}

h1 {
    font-size: clamp(34px, 9vw, 54px);
    line-height: 1.05;

    margin-bottom: 22px;
}

h2 {
    font-size: 30px;
    line-height: 1.15;

    margin-bottom: 12px;
}

.description,
.hint {
    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 28px;
}

.primary-btn,
.secondary-btn {
    border: none;

    border-radius: 50px;

    padding: 16px 28px;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-btn {
    color: white;

    background:
        linear-gradient(
            135deg,
            #ff4f91,
            #ff176f
        );

    box-shadow:
        0 10px 30px rgba(255, 79, 145, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.primary-btn:active,
.secondary-btn:active {
    transform: scale(0.96);
}

.secondary-btn {
    color: white;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid var(--border);
}

.button-row {
    display: flex;

    justify-content: center;
    gap: 14px;

    position: relative;
}

.funny-message {
    min-height: 30px;

    color: var(--pink-light);

    font-weight: 700;

    margin-top: 22px;
}

.progress {
    display: flex;

    justify-content: space-between;

    color: var(--pink-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 28px;
}

.options {
    display: grid;
    gap: 12px;
}

.option-card {
    width: 100%;

    text-align: left;

    padding: 17px;

    color: white;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid var(--border);

    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);

    background: rgba(255, 79, 145, 0.13);

    border-color: rgba(255, 79, 145, 0.5);
}

.option-card strong {
    display: block;

    font-size: 16px;

    margin-bottom: 5px;
}

.option-card span {
    color: var(--muted);

    font-size: 13px;
}

.date-input,
.text-input {
    width: 100%;

    padding: 17px;

    margin-bottom: 18px;

    color: white;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid var(--border);

    border-radius: 16px;

    font-size: 16px;

    outline: none;
}

.date-input:focus,
.text-input:focus {
    border-color: var(--pink);
}

.full {
    width: 100%;
}

.location-options {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 18px;
}

.location-options button {
    padding: 14px 10px;

    color: white;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid var(--border);

    border-radius: 15px;

    cursor: pointer;

    font-size: 14px;

    transition: 0.2s ease;
}

.location-options button:hover {
    background: rgba(255, 79, 145, 0.15);
}

.loading-text {
    color: var(--muted);

    min-height: 60px;

    margin-bottom: 20px;

    line-height: 1.7;
}

.hidden {
    display: none !important;
}

.date-ticket {
    text-align: left;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 20px;

    margin: 25px 0;
}

.date-ticket div {
    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

.date-ticket div:last-child {
    border-bottom: none;
}

.date-ticket span {
    display: block;

    color: var(--pink-light);

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 5px;
}

.date-ticket strong {
    font-size: 15px;
}

.final-note {
    padding: 18px;

    border-radius: 18px;

    background: rgba(255, 79, 145, 0.1);

    line-height: 1.7;
}

.saving {
    margin-top: 18px;

    color: var(--muted);

    font-size: 12px;
}

.big-heart {
    font-size: 70px;

    animation:
        heartbeat 1.2s infinite;
}

/* Floating background hearts */

.background-hearts::before,
.background-hearts::after {
    content: "♥  ♥  ♥  ♥  ♥";

    position: fixed;

    color: rgba(255, 79, 145, 0.06);

    font-size: 100px;

    letter-spacing: 40px;

    pointer-events: none;

    z-index: -1;
}

.background-hearts::before {
    top: 10%;
    left: -100px;

    transform: rotate(-20deg);
}

.background-hearts::after {
    bottom: 10%;
    right: -100px;

    transform: rotate(20deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

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

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {

    .screen {
        padding: 16px;
    }

    .card,
    .form-card {
        padding: 30px 20px;

        border-radius: 24px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 27px;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row button {
        width: 100%;
    }
}