* {
    box-sizing: border-box;
}

:root {
    --bg: #100b15;
    --card: rgba(31, 19, 39, 0.78);
    --card-border: rgba(255, 255, 255, 0.08);

    --text: #fff8fc;
    --muted: #cdbdca;

    --pink: #ff76ad;
    --pink-light: #ffb8d4;
    --purple: #b890ff;

    --radius: 28px;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;

    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;

    overflow-x: hidden;

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 92, 159, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(173, 120, 255, 0.15),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #100b15,
            #18101e 55%,
            #100b15
        );
}

button,
input,
textarea {
    font: inherit;
}

button {
    touch-action: manipulation;
}

.background-glow {
    position: fixed;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.12;

    pointer-events: none;
}

.background-glow-one {
    top: -150px;
    left: -150px;

    background: var(--pink);
}

.background-glow-two {
    right: -180px;
    bottom: -150px;

    background: var(--purple);
}

.screen {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;

    width: 100%;

    display: flex;

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

    padding:
        max(32px, env(safe-area-inset-top))
        20px
        max(32px, env(safe-area-inset-bottom));
}

.hidden {
    display: none !important;
}

.card {
    width: min(680px, 100%);

    padding: 46px;

    background: var(--card);

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

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    text-align: center;

    animation: cardEnter 0.7s ease both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

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

.small-heart {
    font-size: 42px;

    margin-bottom: 20px;

    animation: heartBeat 1.8s infinite;
}

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

    50% {
        transform: scale(1.12);
    }
}

.eyebrow {
    margin: 0 0 12px;

    color: var(--pink-light);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2 {
    margin-top: 0;

    line-height: 1.1;
}

h1 {
    margin-bottom: 15px;

    font-size: clamp(38px, 7vw, 65px);
}

h2 {
    font-size: clamp(29px, 5vw, 45px);
}

.subtitle {
    color: var(--muted);

    line-height: 1.65;
}

.countdown {
    display: grid;

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

    gap: 12px;

    margin: 38px 0;
}

.time-box {
    padding: 18px 8px;

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

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
}

.time-box strong {
    display: block;

    margin-bottom: 5px;

    color: var(--pink-light);

    font-size: clamp(24px, 5vw, 36px);
}

.time-box span {
    color: var(--muted);

    font-size: 12px;
}

.primary-button,
.choice-button {
    border: 0;

    cursor: pointer;

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

.primary-button {
    min-height: 55px;

    padding: 14px 28px;

    color: #210d17;

    font-weight: 800;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--pink-light),
            var(--pink)
        );

    box-shadow:
        0 12px 35px rgba(255, 100, 170, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);

    box-shadow:
        0 15px 42px rgba(255, 100, 170, 0.38);
}

.question-number {
    margin-bottom: 17px;

    color: var(--pink-light);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.actions {
    position: relative;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;

    min-height: 68px;

    margin-top: 32px;
}

.choice-button {
    min-width: 130px;
    min-height: 52px;

    padding: 12px 22px;

    color: var(--text);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

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

.choice-button:hover {
    background: rgba(255, 255, 255, 0.11);

    transform: translateY(-2px);
}

.choice-button.positive {
    color: #2d101d;

    background:
        linear-gradient(
            135deg,
            #ffc0d9,
            #ff77ae
        );

    border: 0;

    font-weight: 800;
}

.progress {
    width: 100%;
    height: 5px;

    margin-bottom: 32px;

    overflow: hidden;

    border-radius: 99px;

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

.progress-inner {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--purple)
        );

    transition: width 0.45s ease;
}

.memory-image {
    width: 100%;

    max-height: 360px;

    margin-bottom: 28px;

    object-fit: cover;

    border-radius: 22px;
}

.memory-icon {
    margin-bottom: 25px;

    font-size: 54px;
}

.form-options {
    display: grid;

    gap: 11px;

    margin-top: 30px;
}

.form-option {
    width: 100%;

    padding: 17px;

    color: var(--text);

    cursor: pointer;

    text-align: left;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;

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

    transition: 0.2s;
}

.form-option:hover,
.form-option.selected {
    border-color: rgba(255, 118, 173, 0.65);

    background: rgba(255, 118, 173, 0.12);
}

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

    margin-top: 28px;

    padding: 17px;

    color: var(--text);

    outline: none;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.05);
}

.date-input {
    color-scheme: dark;
}

.wish-input {
    min-height: 150px;

    resize: vertical;
}

.navigation {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 30px;
}

.secondary-button {
    min-height: 50px;

    padding: 12px 20px;

    color: var(--muted);

    cursor: pointer;

    border: 0;
    border-radius: 999px;

    background: transparent;
}

.summary {
    display: grid;

    gap: 12px;

    margin: 30px 0;

    text-align: left;
}

.summary-row {
    padding: 15px 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);
}

.summary-row strong {
    display: block;

    margin-bottom: 4px;

    color: var(--pink-light);

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-icon {
    margin-bottom: 15px;

    font-size: 60px;
}

.reservation-code {
    display: inline-block;

    margin: 8px 0 20px;

    padding: 9px 14px;

    color: var(--pink-light);

    font-family: monospace;
    font-size: 17px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);
}

.error {
    color: #ffabb5;
}

@media (max-width: 600px) {

    .screen {
        align-items: flex-start;

        padding:
            max(24px, env(safe-area-inset-top))
            13px
            max(45px, env(safe-area-inset-bottom));
    }

    .card {
        margin: auto 0;

        padding: 32px 20px;

        border-radius: 23px;
    }

    .countdown {
        gap: 7px;
    }

    .time-box {
        padding: 15px 4px;

        border-radius: 14px;
    }

    .actions {
        gap: 9px;
    }

    .choice-button {
        min-width: 120px;
    }
}
