@import url('https://fonts.googleapis.com/css2?family=Protest+Revolution&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bonheur Royale', cursive;
    text-decoration: none;
}

body {
    /* height: 100vh; */
    width: 100%;
    background: url(./assets/pexels-anntarazevich-6712383.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
}

.main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
}

.main h2 {
    color: var(--white);
    letter-spacing: 2px;
    font-size: 45px;
    transform: rotate(-2deg);
    border-bottom: 2px dotted var(--white);
    border-radius: 1rem;
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

:root {
    --primary: #4be1ec;
    --secondary: #cb5eee;
    --white: #fff;
    --gray: #9b9b9b;
}

.quote-heading {
    font-size: 2rem;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
}

/* Rose Day: no blur on heading so background (face) stays sharp */
.rose-right .quote-heading {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.25);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    margin: 0.1rem;
    height: 80vh;
    width: 100vw;
    position: relative;
}

.left {
    text-align: center;
    background: url(./assets/night-sky-background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    padding: 0.75rem;
    font-size: 1.4rem;
    border-top-left-radius: 1rem;
    /* Rounded top-left corner */
    border-bottom-left-radius: 1rem;
    /* Rounded bottom-left corner */
}

#user-profile-text,
#fpname,
#spname {
    font-family: 'Protest Revolution', sans-serif;
    text-transform: uppercase;
    padding: 0.2rem 0;
    color: var(--white);
}

h3 {
    margin: 1rem;
}

.right {
    margin-left: 4px;
    height: 100%;
    width: 100%;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
    overflow-y: scroll;
    text-align: center;
    color: var(--white);
    background: url(./assets/biel-morro-kcKiBcDTJt4-unsplash.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-top-right-radius: 1rem;
    /* Rounded top-right corner */
    border-bottom-right-radius: 1rem;
    /* Rounded bottom-right corner */
    justify-items: center;
    background-position: center;
    will-change: transform;
}

/* Quote pages: flex layout for full-screen quote + express section (same as Rose Day) */
.propose-right,
.chocolate-right,
.teddy-right,
.promise-right,
.hug-right,
.kiss-right,
.valentine-right {
    display: flex;
    flex-direction: column;
}

/* Propose Day: same layout as Rose Day - background image + quiz game */
.propose-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.propose-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/1000214597.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.propose-right .back-container,
.propose-right .quote-heading,
.propose-right .propose-game-wrap,
.propose-right .quotes {
    position: relative;
    z-index: 1;
}

.propose-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Propose Day quiz game */
.propose-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1.25rem;
    background: #ffffff !important;
    border: 3px solid #e91e8c;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.propose-game-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #c2185b !important;
    margin-bottom: 0.75rem;
    text-align: center;
}

.propose-quiz-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

.propose-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.propose-option {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 3px solid #bdbdbd;
    border-radius: 12px;
    background: #f5f5f5 !important;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-align: left;
}

.propose-option:hover:not(:disabled) {
    background: #ffebee !important;
    border-color: #e91e8c;
    transform: scale(1.02);
}

.propose-option:disabled {
    cursor: default;
}

.propose-option.option-correct {
    background: #c8e6c9 !important;
    border-color: #2e7d32;
    color: #1b5e20;
}

.propose-option.option-wrong {
    background: #ffcdd2 !important;
    border-color: #c62828;
    color: #b71c1c;
}

.propose-quiz-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #c2185b !important;
    text-align: center;
    margin-top: 0.75rem;
    min-height: 1.5em;
}

.quotes.propose-hidden-until-game {
    display: none !important;
}

/* Specific background for rose.html - scrollable on desktop */
.rose-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.rose-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/rose-day-background.png) center 25% / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.rose-right .back-container,
.rose-right .quote-heading,
.rose-right .rose-game-wrap,
.rose-right .quotes {
    position: relative;
    z-index: 1;
}

/* Rose Day: no blur on quote cards so text stays sharp */
.rose-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Chocolate Day: same layout as Rose Day - background image + maths heart game */
.chocolate-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.chocolate-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./1000215484.png) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.chocolate-right .back-container,
.chocolate-right .quote-heading,
.chocolate-right .chocolate-game-wrap,
.chocolate-right .chocolate-reveal-wrap,
.chocolate-right .quotes {
    position: relative;
    z-index: 1;
}

.chocolate-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Chocolate Day maths heart equation game */
.chocolate-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1.25rem;
    background: #ffffff !important;
    border: 3px solid #6d4c41;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.chocolate-game-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #5d4037 !important;
    margin-bottom: 0.75rem;
    text-align: center;
}

.chocolate-quiz-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.chocolate-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chocolate-option {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: 3px solid #bdbdbd;
    border-radius: 12px;
    background: #f5f5f5 !important;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-align: left;
}

.chocolate-option:hover:not(:disabled) {
    background: #efebe9 !important;
    border-color: #6d4c41;
    transform: scale(1.02);
}

.chocolate-option:disabled {
    cursor: default;
}

.chocolate-option.option-correct {
    background: #c8e6c9 !important;
    border-color: #2e7d32;
    color: #1b5e20;
}

.chocolate-option.option-wrong {
    background: #ffcdd2 !important;
    border-color: #c62828;
    color: #b71c1c;
}

.chocolate-quiz-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #5d4037 !important;
    text-align: center;
    margin-top: 0.75rem;
    min-height: 1.5em;
}

.quotes.chocolate-hidden-until-game {
    display: none !important;
}

/* Chocolate Day reveal: Dairy Milk + animated symmetric heart + "This is for you" */
.chocolate-reveal-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    margin: 0.75rem 0;
}

.chocolate-reveal-wrap.chocolate-reveal-hidden {
    display: none !important;
}

.chocolate-reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 3px solid #6d4c41;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.chocolate-reveal-bar {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* Heart: Unicode dil symbol ❤ with pop + beat animation */
.chocolate-heart-pop {
    display: inline-block;
    font-size: 4rem;
    line-height: 1;
    color: #c62828;
    margin: 12px 0;
    transform-origin: center center;
    animation: chocolateHeartPop 0.6s ease-out forwards, chocolateHeartBeat 0.7s ease-in-out 0.6s infinite;
}

@keyframes chocolateHeartPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes chocolateHeartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.chocolate-for-you {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #5d4037 !important;
    margin: 0;
    text-align: center;
}

.chocolate-reveal-timer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #8d6e63 !important;
    margin: 0.25rem 0 0;
    min-height: 1.5em;
}

/* Teddy Day: same layout as Rose Day - background teddy.jpg + catch game */
.teddy-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.teddy-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/teddy.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.teddy-right .back-container,
.teddy-right .quote-heading,
.teddy-right .teddy-game-wrap,
.teddy-right .teddy-reveal-wrap,
.teddy-right .quotes {
    position: relative;
    z-index: 1;
}

.teddy-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Teddy Day: teddy falling + bag catch game */
.teddy-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 3px solid #8d6e63;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.teddy-game-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #5d4037 !important;
    margin-bottom: 0.5rem;
    text-align: center;
}

.teddy-catch-area {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(to bottom, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d7ccc8;
    margin-bottom: 0.5rem;
}

.teddy-bag {
    position: absolute;
    bottom: 12px;
    width: 52px;
    height: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: #5d4037;
    border-radius: 6px 6px 3px 3px;
    border: 2px solid #3e2723;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 2;
}

.teddy-bag::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 8px;
    border: 2px solid #3e2723;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
}

.teddy-teddy-fall {
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 1;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
}

.teddy-teddy-fall img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.teddy-catch-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #5d4037 !important;
    text-align: center;
    min-height: 1.5em;
}

.quotes.teddy-hidden-until-game {
    display: none !important;
}

/* Teddy Day: after countdown - screenshot + message */
.teddy-reveal-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    margin: 0.75rem 0;
}

.teddy-reveal-wrap.teddy-reveal-hidden {
    display: none !important;
}

.teddy-reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 3px solid #8d6e63;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.teddy-reveal-img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.teddy-reveal-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #5d4037 !important;
    margin: 0;
    text-align: center;
    line-height: 1.5;
    max-width: 320px;
}

.teddy-reveal-timer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #8d6e63 !important;
    margin: 0.5rem 0 0;
    min-height: 1.5em;
}

/* Promise Day: same layout as Rose Day - background 1000216715.jpg + message/video flow */
.promise-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.promise-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/1000216715.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.promise-right .back-container,
.promise-right .quote-heading,
.promise-right .promise-game-wrap,
.promise-right .promise-reveal-wrap,
.promise-right .quotes {
    position: relative;
    z-index: 1;
}

.promise-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Promise Day: first message + 5 sec countdown */
.promise-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 3px solid #c2185b;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.promise-first-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.promise-countdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #c2185b !important;
    text-align: center;
    min-height: 1.5em;
}

/* Promise Day: title + video + retry (after 5 sec) */
.promise-reveal-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promise-reveal-wrap.promise-reveal-hidden {
    display: none !important;
}

.promise-reveal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #c2185b !important;
    text-align: center;
    margin-bottom: 1rem;
}

.promise-video-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0.75rem;
}

.promise-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.promise-video-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #fff;
}

.promise-video-time {
    min-width: 2.5em;
    text-align: center;
}

.promise-video-progress {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.promise-video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c2185b;
    cursor: pointer;
}

.promise-video-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c2185b;
    cursor: pointer;
    border: none;
}

.promise-redirect-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #c2185b;
    text-align: center;
    margin: 0.5rem 0 0;
}

.promise-redirect-msg.promise-redirect-hidden {
    display: none !important;
}

.promise-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #c2185b;
    background: rgba(255, 255, 255, 0.95);
    color: #c2185b;
    cursor: pointer;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    transition: transform 0.2s, background 0.2s;
}

.promise-retry-btn:hover {
    background: #fce4ec;
    transform: scale(1.08);
}

.promise-three-countdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c2185b !important;
    text-align: center;
    margin-top: 0.75rem;
    min-height: 1.5em;
}

.quotes.promise-hidden-until-game {
    display: none !important;
}

/* Hug Day: same layout as Rose Day - background Snapchat-2113618655 + animation/reveal */
.hug-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.hug-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/Snapchat-2113618655.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.hug-right .back-container,
.hug-right .quote-heading,
.hug-right .hug-game-wrap,
.hug-right .hug-reveal-wrap,
.hug-right .quotes {
    position: relative;
    z-index: 1;
}

.hug-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Hug Day: animation image + final photo */
.hug-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hug-animation-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hug-animation-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pencil sketch layer (Gemini_Generated_Image.png): revealed by scratching, then fades to show full color photo */
.hug-grayscale-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: opacity 14s ease-in-out;
}

.hug-grayscale-layer.hug-to-color {
    opacity: 0;
}

/* Scratch card: canvas grey overlay, image only visible where scratched */
.hug-scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.hug-countdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e91e8c !important;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5em;
}

.quotes.hug-hidden-until-game {
    display: none !important;
}

/* Kiss Day: same layout as Rose Day - background Snapchat-1107078834 + jigsaw puzzle */
.kiss-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.kiss-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/Snapchat-1107078834.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.kiss-right .back-container,
.kiss-right .quote-heading,
.kiss-right .kiss-game-wrap,
.kiss-right .quotes {
    position: relative;
    z-index: 1;
}

.kiss-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

.kiss-game-wrap {
    position: relative;
    z-index: 2;
    margin: 0.75rem 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiss-puzzle-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e91e8c !important;
    text-align: center;
    margin-bottom: 0.25rem;
}

.kiss-puzzle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
}

.kiss-puzzle-wrap.kiss-puzzle-hidden {
    display: none !important;
}

.kiss-puzzle-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 0.5rem;
}

.kiss-puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 280px;
    height: 280px;
    background: #333;
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kiss-puzzle-piece {
    min-width: 0;
    min-height: 0;
    background-size: 300% 300%;
    background-repeat: no-repeat;
    background-color: #444;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kiss-puzzle-piece:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 2px #e91e8c, 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kiss-puzzle-piece.selected {
    box-shadow: 0 0 0 3px #e91e8c;
    transform: scale(1.02);
}

.kiss-scratch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.kiss-scratch-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 0.75rem;
}

.kiss-animation-wrap {
    position: relative;
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.kiss-animation-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.kiss-scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.kiss-countdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e91e8c !important;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5em;
}

.quotes.kiss-hidden-until-game {
    display: none !important;
}

/* Valentine Day: same layout as Promise Day - message + 10s countdown + video + 3s countdown + quotes */
.valentine-right {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
}

.valentine-right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url(./assets/Snapchat-204534319.jpg) center / cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.92;
}

.valentine-right .back-container,
.valentine-right .quote-heading,
.valentine-right .promise-game-wrap,
.valentine-right .promise-reveal-wrap,
.valentine-right .valentine-heart-step,
.valentine-right .valentine-done-msg-wrap,
.valentine-right .quotes {
    position: relative;
    z-index: 1;
}

.valentine-right .quote {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.right::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.right {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

lord-icon {
    border: 2px solid var(--secondary);
    border-radius: 50%;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    will-change: transform;
}

/* Full-screen quote tile with margin (e.g. Rose Day single quote) */
.quotes.quotes-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 1rem 1.5rem;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

/* Quote box height = message height for all quotes */
.quotes.quotes-fullscreen .quote {
    flex: 0 0 auto;
    height: auto;
    min-height: 8rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem;
    cursor: default;
    aspect-ratio: auto;
    box-sizing: border-box;
    white-space: pre-line;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
}

.quotes.quotes-fullscreen .quote .quote-typewriter-text {
    white-space: pre-line;
    text-align: center;
}

.typewriter-cursor {
    animation: typewriter-blink 0.7s step-end infinite;
    margin-left: 1px;
}

@keyframes typewriter-blink {
    50% { opacity: 0; }
}

.express-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.express-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
}

.express-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.express-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.express-btn {
    align-self: flex-end;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

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

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

/* Success modal (same theme as password modal) */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-modal.hidden {
    display: none;
}

.success-modal-content {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 320px;
}

.success-modal-title {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.success-modal-message {
    color: #f9f9f9;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.success-modal-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.success-modal-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.quote {
    border: 1.5px solid #ffffff;
    padding: 1rem;
    margin: 0.75rem;
    border-radius: 1rem;
    color: var(--white);
    font-family: cursive;
    font-size: 1rem;
    cursor: pointer;
    aspect-ratio: 8/2;
    min-height: 14rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 17rem;
    will-change: transform;
}

.back {
    display: flex;
    align-items: center;
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0 0 10px 0;
    transition: background-color 0.3s, color 0.3s;
}

.back .material-symbols-outlined,
.back .back-text {
    color: var(--white);
    transition: color 0.3s;
}

.back:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.back:hover .material-symbols-outlined,
.back:hover .back-text {
    color: var(--primary);
    /* Change to your desired hover color */
}

.back .back-text {
    margin-left: 0.5rem;
    font-size: 1rem;
}

.back-container {
    position: relative;
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 1.5rem;
    color: var(--white);
    font-family: 'Protest';
    transform: rotate(-1deg);
    border-bottom: 2px dotted var(--white);
    border-radius: 1rem;
    padding: 0.35rem 0.5rem;
}

/* Mobile: reduce padding on day pages */
@media only screen and (max-width: 768px) {
    .hero {
        padding: 0.5rem 0.75rem;
    }

    .quotes.quotes-fullscreen {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .quotes.quotes-fullscreen .quote {
        padding: 1rem 1.25rem;
    }

    .quote-heading {
        padding: 0.4rem 0.5rem;
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 400px) {
    .main {
        height: max-content;
        margin: 0;
        padding: 0.5rem 0.75rem;
    }

    .left,
    .right {
        width: 100%;
    }

    .left {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        padding: 0.5rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        padding: 0.75rem 0.5rem;
        margin: 0;
        height: max-content;
    }

    .right {
        height: max-content;
        margin: 0;
        padding: 0.5rem;
        border-bottom-right-radius: 1rem;
        border-bottom-left-radius: 1rem;
    }

    .quotes {
        display: flex;
        flex-direction: column;
    }

    .quotes.quotes-fullscreen {
        padding: 0.5rem 0.75rem;
    }

    .quotes.quotes-fullscreen .quote {
        padding: 0.75rem 1rem;
    }

    .back {
        display: none;
    }
}

/* Add this media query to handle the layout for mobile devices */
@media only screen and (max-width: 600px) {
    .lovers-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lovers-details img {
        margin-bottom: 1rem;
    }
}