:root {
    --rmUI-bg1: #ffdde1;
    --rmUI-bg2: #ee9ca7;
    --rmUI-bg3: #c084fc;
    --rmUI-bg4: #60a5fa;
    --rmUI-text: #1f1f1f;
    --rmUI-white: #ffffff;
    --rmUI-shadow: rgba(0, 0, 0, 0.2);
    --rmUI-glass: rgba(255, 255, 255, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    height: 100vh;

    font-family: 'Nunito', sans-serif;

    background: linear-gradient(135deg, var(--rmUI-bg1), var(--rmUI-bg2), var(--rmUI-bg3), var(--rmUI-bg4));
    overflow: hidden;
    color: var(--rmUI-text);
    
    position: relative;
}

/* BACKGROUND */

.rmUI-background {
    position: fixed;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.rmUI-gradient {
    position: absolute;

    width: 100%;
    height: 100%;

    background: radial-gradient(circle at top, rgba(255,255,255,0.6), transparent 60%);
}

/* MAIN PAGE */

.rmUI-page {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
}

.rmUI-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    position: relative;

    width: min(520px, 90%);
    padding: 32px;

    background: var(--rmUI-glass);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;

    box-shadow: 0 20px 60px var(--rmUI-shadow);

    backdrop-filter: blur(12px);
}

.rmUI-card__subtitle {
    display: block;

    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 500;

    opacity: 0.8;
}

.rmUI-card__title {
    display: block;

    margin-bottom: 16px;

    font-size: 28px;
    font-weight: 700;

    text-align: center;
}

.rmUI-card__description {
    display: block;

    margin-bottom: 24px;

    font-size: 15px;
    font-weight: 400;

    text-align: center;
    opacity: 0.9;
}

/* BUTTONS */

.rmUI-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rmUI-button {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px 18px;

    border: none;
    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 25px var(--rmUI-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rmUI-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.rmUI-button:active {
    transform: scale(0.98);
}

.rmUI-button--yes {
    background: linear-gradient(135deg, #34d399, #60a5fa);
    color: white;
}

.rmUI-button--no {
    background: linear-gradient(135deg, #f87171, #fb7185);
    color: white;
}

.rmUI-button--next {
    margin-top: 20px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: white;
}

.rmUI-button--accept {
    background: linear-gradient(135deg, #34d399, #60a5fa);
    color: white;
}

.rmUI-button--decline {
    background: linear-gradient(135deg, #f87171, #fb7185);
    color: white;
    position: relative;
}

/* MODAL BASE */

.rmUI-modal {
    display: none;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.rmUI-modal__window {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    width: min(600px, 92%);

    padding: 28px;

    background: var(--rmUI-white);
    border-radius: 24px;

    box-shadow: 0 30px 80px var(--rmUI-shadow);
}

.rmUI-modal__window--small {
    width: min(420px, 90%);
}

/* ENVELOPE */

.rmUI-envelope {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    width: 100%;
    height: 320px;
}

.rmUI-envelope__paper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    width: 80%;
    height: 80%;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px var(--rmUI-shadow);
    overflow-y: auto;
    padding: 20px;
}

/* COUNTDOWN */

.rmUI-countdown {
    font-size: 48px;
    font-weight: 800;
}

/* LETTER */

.rmUI-letter {
    display: none;
    width: 100%;
    height: 100%;
}

.rmUI-letter__title {
    font-family: 'Marck Script', cursive;
    font-size: 24px;
    text-align: center;
    margin-bottom: 12px;
}

.rmUI-letter__content {
    width: 100%;
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

.rmUI-letter__content p {
    margin-bottom: 8px;
    animation: rmUI-fadeIn 0.5s ease forwards;
}

/* QUESTION */

.rmUI-question__title {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
}

.rmUI-question__text {
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    opacity: 0.9;
}

/* FINAL SCENE */

.rmUI-finale {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: linear-gradient(135deg, #ffdde1, #c084fc, #60a5fa);

    text-align: center;

    color: white;
    z-index: 2000;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rmUI-finale__date {
    font-size: 22px;
    font-weight: 700;
    opacity: 0.9;
}

.rmUI-finale__arrow {
    margin: 10px 0;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.rmUI-finale__title {
    font-size: 54px;
    font-weight: 900;
    text-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.rmUI-finale__text {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.95;
}

/* PARTICLES */

#rmUI-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
    overflow: hidden;
}

/* ANIMATIONS */

@keyframes rmUI-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rmUI-float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}