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

body {
    font-family: 'Outfit', sans-serif;
    background: #0a0a0f;
    color: white;
    overflow: hidden;
}

#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* === SCROLL CONTAINER === */
main {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

main::-webkit-scrollbar {
    display: none;
}

/* === PHASE LAYOUTS === */
.phase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    position: relative;
}

.phase-center {
    justify-content: center;
}

.phase-heart-left {
    justify-content: flex-end;
}

.phase-heart-right {
    justify-content: flex-start;
}

.heart-spacer {
    flex: 0 0 50%;
}

/* === TEXT PANELS === */
.text-panel {
    max-width: 440px;
    padding: 36px;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.text-panel[data-direction="bottom"] {
    transform: translateY(50px);
}

.text-panel[data-direction="left"] {
    transform: translateX(-60px);
}

.text-panel[data-direction="right"] {
    transform: translateX(60px);
}

.text-panel.visible {
    opacity: 1;
    transform: none;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.text-panel:hover {
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.2), 0 8px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 107, 0.25);
}

/* === TYPOGRAPHY === */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-style: italic;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3, #f368e0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.15rem;
    opacity: 0.5;
    font-weight: 300;
}

.phase-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.35;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 14px;
    color: #ffdde1;
}

.text-panel p {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.8;
    margin-bottom: 10px;
}

.storm-text h2 {
    color: #888;
}

.storm-text p {
    color: rgba(255, 255, 255, 0.45);
}

.heal-text h2 {
    color: #ffd700;
}

.proposal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: #ff6b6b;
    margin-bottom: 14px;
}

.proposal-panel {
    text-align: center;
}

/* === NAV PROMPT === */
.nav-prompt {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    opacity: 0.5;
    animation: breathe 3s ease infinite;
    pointer-events: none;
}

.nav-prompt span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-prompt kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: inherit;
    font-size: 0.75rem;
}

.nav-arrow {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: bounceArrow 2s ease infinite;
}

/* === PHASE DOTS === */
.phase-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.phase-dot.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* === BUTTONS === */
.button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-yes {
    padding: 14px 36px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.4s ease;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
}

.btn-no {
    padding: 14px 36px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s;
}

.music-toggle:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.music-toggle.playing {
    animation: pulse 1.8s ease infinite;
    border-color: #ff6b6b;
}

/* === SUCCESS === */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(20, 0, 30, 0.95), rgba(0, 0, 0, 0.98));
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 1.2s ease;
}

.success-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

.success-content p {
    font-size: 1.2rem;
    opacity: 0.75;
    margin-bottom: 28px;
}

.celebration-gif {
    width: 400px;
    max-width: 85vw;
    height: auto;
    border-radius: 24px;
    margin-bottom: 20px;
    animation: celebBounce 1s ease infinite alternate;
}

@keyframes celebBounce {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-10px) scale(1.02);
    }
}

.btn-replay {
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s;
}

.btn-replay:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* === PARTICLES === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 107, 107, 0.35);
    border-radius: 50%;
    animation: drift linear infinite;
}

.hidden {
    display: none !important;
}

/* === KEYFRAMES === */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(6px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

@keyframes drift {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) translateX(25px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .proposal-title {
        font-size: 2rem;
    }

    .text-panel {
        padding: 24px;
        max-width: 85%;
    }

    .phase-heart-left,
    .phase-heart-right {
        flex-direction: column;
        justify-content: center;
    }

    .heart-spacer {
        flex: 0 0 30vh;
    }

    .celebration-gif {
        width: 260px;
    }

    .phase-dots {
        display: none;
    }
}