@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --bg: #fffafd;
    --pink: #ff5c9a;
    --baby-pink: #ffc5da;
    --soft-pink: #fff0f6;
    --light-pink: #ffe3ee;
    --purple-pink: #e5b8ff;
    --text: #442936;
    --muted: #927381;
    --white: #ffffff;
    --border: rgba(255, 92, 154, 0.18);
}

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

html {
    background: #fffafd;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 10%, #ffe1ec 0%, transparent 30%),
        radial-gradient(circle at 90% 85%, #f3ddff 0%, transparent 30%),
        linear-gradient(145deg, #ffffff, #fffafd 55%, #fff1f7);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 4px;
}

/* BACKGROUND */

.ambient {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: .35;
    z-index: 0;
}

.ambient-one {
    top: -170px;
    left: -120px;
    background: #ffb6d1;
}

.ambient-two {
    bottom: -170px;
    right: -120px;
    background: #e5b8ff;
}

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .25;
    background-image:
        radial-gradient(circle, #ff9fc4 1px, transparent 1px),
        radial-gradient(circle, #d8a5f5 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    background-position: 10px 20px, 50px 80px;
    z-index: 0;
}

/* FLOATING HEARTS */

#hearts {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.floating-heart {
    position: absolute;
    bottom: -30px;
    color: rgba(255, 92, 154, .35);
    animation: floatHeart linear forwards;
    user-select: none;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg) scale(.7);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) rotate(30deg) scale(1.2);
        opacity: 0;
    }
}

/* PROGRESS */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 92, 154, .08);
    z-index: 100;
}

#progressBar {
    height: 100%;
    width: 5%;
    background: linear-gradient(90deg, #ff8fba, #ff4f91, #e4a8ff);
    box-shadow: 0 0 14px rgba(255, 92, 154, .45);
    transition: width .5s ease;
}

/* PAGES */

#app {
    position: relative;
    z-index: 2;
}

.page {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 70px 22px 35px;
    align-items: center;
    justify-content: center;
}

.page.active {
    display: flex;
    animation: pageIn .6s ease both;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.page-content {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.page-number {
    position: absolute;
    top: 24px;
    right: 22px;
    color: #c6a8b5;
    font-size: .72rem;
    letter-spacing: .18em;
}

/* TYPOGRAPHY */

.eyebrow,
.mission-label,
.level,
.quiz-label,
.legendary,
.status-label {
    color: var(--pink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.7rem, 13vw, 5.5rem);
}

h1 span,
h2 span,
.date-question span {
    display: block;
    color: var(--pink);
}

h2 {
    margin: 15px 0 24px;
    font-size: clamp(2.3rem, 10vw, 4.5rem);
}

h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

p {
    margin: 14px auto;
    max-width: 570px;
    color: #634b57;
    font-size: 1rem;
    line-height: 1.75;
}

.lead {
    margin-top: 35px;
    font-size: 1.08rem;
}

.lead strong {
    color: var(--pink);
}

.big-text {
    font-size: clamp(1.2rem, 5vw, 1.65rem);
    line-height: 1.6;
}

.highlight {
    color: #e83f82;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.funny {
    color: #795d6b;
}

.huge {
    font-size: 3rem;
}

.dramatic-line {
    margin-top: 28px;
    font-size: 1.1rem;
    color: var(--pink);
    opacity: 0;
    animation: revealLine 1s ease .7s forwards;
}

@keyframes revealLine {
    to {
        opacity: 1;
    }
}

/* BUTTONS */

.primary-btn,
.choice-buttons button,
.game-options button,
.quiz-options button,
.final-options button {
    border: 1px solid var(--border);
    color: #542d3e;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    border-radius: 18px;
    min-height: 58px;
    padding: 14px 20px;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.primary-btn {
    width: 100%;
    max-width: 430px;
    margin: 32px auto 0;
    display: block;
    background: linear-gradient(135deg, #ff77aa, #ff4f91);
    color: white;
    border: 0;
    font-weight: 700;
    box-shadow:
        0 12px 30px rgba(255, 92, 154, .22);
}

.primary-btn span {
    margin-left: 8px;
}

.primary-btn:hover,
.primary-btn:active,
.choice-buttons button:hover,
.game-options button:hover,
.quiz-options button:hover,
.final-options button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 92, 154, .45);
    box-shadow: 0 10px 30px rgba(255, 92, 154, .16);
}

.primary-btn:active,
.choice-buttons button:active,
.game-options button:active,
.quiz-options button:active,
.final-options button:active {
    transform: scale(.97);
}

/* DECORATION */

.small-heart {
    color: var(--pink);
    font-size: 4rem;
    animation: pulse 1.7s infinite ease-in-out;
}

.giant-heart {
    color: var(--pink);
    font-size: 7rem;
    line-height: 1;
    text-shadow:
        0 0 15px rgba(255, 92, 154, .45),
        0 0 55px rgba(255, 92, 154, .25);
    animation: heartbeat 1.5s infinite;
}

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

    12% {
        transform: scale(1.12);
    }

    24% {
        transform: scale(1);
    }

    36% {
        transform: scale(1.08);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.12);
    }
}

.warning-icon,
.location-icon,
.camera-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.quote-mark {
    font-family: Georgia, serif;
    color: var(--pink);
    font-size: 6rem;
    line-height: .6;
    opacity: .7;
}

.sparkle {
    color: var(--pink);
    font-size: 3rem;
    animation: spin 5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SIDE EFFECTS */

.side-effects {
    margin: 28px auto;
    max-width: 420px;
    display: grid;
    gap: 10px;
}

.side-effects div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    color: #694f5d;
    box-shadow: 0 5px 20px rgba(255, 92, 154, .05);
}

/* MISSION */

.mission-box {
    margin: 30px auto;
    padding: 30px 20px;
    max-width: 430px;
    border-radius: 25px;
    border: 1px solid rgba(255, 92, 154, .22);
    background:
        linear-gradient(145deg, #fff0f6, #fff8fc);
    box-shadow:
        inset 0 1px rgba(255,255,255,.9),
        0 20px 60px rgba(255, 92, 154, .10);
}

.mission-box span,
.mission-box small {
    display: block;
    color: var(--pink);
    font-size: .65rem;
    letter-spacing: .18em;
}

.mission-box strong {
    display: block;
    margin: 15px 0;
    font-size: clamp(2rem, 9vw, 3.3rem);
    line-height: .95;
    color: #592d40;
    font-family: "Playfair Display", serif;
}

/* GAME */

.game-options,
.choice-buttons,
.final-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 28px auto 15px;
    max-width: 450px;
}

.game-options button,
.choice-buttons button,
.final-options button {
    width: 100%;
    font-weight: 600;
}

.game-result,
.response,
.quiz-response,
.final-response {
    min-height: 30px;
    margin: 18px auto;
    color: #e83f82;
    line-height: 1.6;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* QUESTION */

.question-mark {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    color: white;
    background: linear-gradient(135deg, #ff77aa, #e4a7ff);
    box-shadow: 0 0 45px rgba(255, 92, 154, .22);
}

/* MEETING */

.orbit-heart {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink);
    font-size: 2.5rem;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,92,154,.25);
    box-shadow: 0 0 40px rgba(255,92,154,.15);
    animation: orbitPulse 2s ease-in-out infinite;
}

@keyframes orbitPulse {
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 65px rgba(255,92,154,.25);
    }
}

.awkward {
    margin: 25px auto;
    padding: 18px;
    max-width: 350px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--border);
}

.awkward span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.awkward strong {
    font-size: 1.7rem;
    letter-spacing: .4rem;
}

/* CHALLENGE */

.challenge {
    margin: 30px auto;
    max-width: 450px;
    padding: 24px;
    border-left: 3px solid var(--pink);
    background: linear-gradient(90deg, #fff0f6, transparent);
    text-align: left;
}

.challenge span {
    color: var(--pink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.challenge p {
    margin: 10px 0;
}

/* QUIZ */

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 450px;
    margin: 30px auto 10px;
}

.quiz-options button {
    min-height: 56px;
}

/* CONFESSION */

.confession-page {
    background:
        radial-gradient(circle at center, rgba(255, 166, 198, .22), transparent 48%),
        radial-gradient(circle at 80% 80%, rgba(229, 184, 255, .18), transparent 40%);
}

.glowing-heart {
    width: 145px;
    height: 145px;
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 190, .3), transparent 68%);
    animation: glowHeart 2s ease-in-out infinite;
}

.glowing-heart div {
    color: var(--pink);
    font-size: 6rem;
    text-shadow:
        0 0 20px rgba(255, 92, 154, .55),
        0 0 70px rgba(255, 92, 154, .3);
    animation: heartbeat 1.5s infinite;
}

@keyframes glowHeart {
    50% {
        transform: scale(1.05);
    }
}

/* SINCERE */

.nothing-list {
    margin: 25px auto;
    max-width: 400px;
    display: grid;
    gap: 8px;
}

.nothing-list div {
    color: var(--muted);
    padding: 9px;
}

/* FINAL */

.final-heart {
    width: 115px;
    height: 115px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff77aa, #e1a5ff);
    box-shadow:
        0 0 40px rgba(255,92,154,.25),
        0 0 100px rgba(225,165,255,.15);
    animation: heartbeat 1.5s infinite;
}

.date-question {
    margin: 25px 0 35px;
    font-size: clamp(2.5rem, 12vw, 5rem);
}

.final-options button:first-child {
    background: linear-gradient(135deg, #ff77aa, #ff4f91);
    color: white;
    border: 0;
}

/* ENDING */

.last-page {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 155, 193, .22), transparent 40%);
}

.ending-name {
    color: var(--pink);
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
}

.ending-hearts {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ending-hearts span {
    color: var(--pink);
    font-size: 1.8rem;
    animation: floating .9s ease-in-out infinite alternate;
}

.ending-hearts span:nth-child(2) {
    font-size: 3rem;
    animation-delay: .3s;
}

.ending-hearts span:nth-child(3) {
    animation-delay: .6s;
}

@keyframes floating {
    from {
        transform: translateY(5px);
    }

    to {
        transform: translateY(-12px);
    }
}

.ending h2 {
    margin: 10px 0 20px;
    font-family: "DM Sans", sans-serif;
    font-size: 1.2rem;
    letter-spacing: .05em;
}

.ending h2 span {
    display: inline;
    color: var(--pink);
}

.loading-bar {
    height: 7px;
    max-width: 330px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 92, 154, .12);
}

.loading-bar div {
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff91b9, #ff4f91, #dca4ff);
    animation: loading 2s ease-in-out infinite alternate;
}

@keyframes loading {
    from {
        width: 40%;
    }

    to {
        width: 78%;
    }
}

.ending-divider {
    width: 50px;
    height: 1px;
    margin: 28px auto;
    background: var(--pink);
}

.ending h3 {
    color: var(--pink);
}

.final-line {
    margin-top: 35px;
    color: var(--muted);
}

.prize {
    color: #593241;
    font-weight: 600;
}

/* DESKTOP */

@media (min-width: 700px) {

    .page {
        padding-left: 40px;
        padding-right: 40px;
    }

    .game-options,
    .choice-buttons,
    .final-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .quiz-options {
        grid-template-columns: 1fr 1fr;
    }

    .side-effects {
        grid-template-columns: 1fr 1fr;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}