/* --- 
======================================
Arquivo: css/rosa-neo.css
(Híbrido: Tema Neo + Rosa CSS Art da Inspiração)
======================================
--- */

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

body {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 197, 170, 0.35), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(200, 75, 95, 0.35), transparent 35%),
        linear-gradient(160deg, #fff8f2 0%, #ffece2 50%, #ffe3ea 100%);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transform: scale(0.86);
}

.rosa-wrapper {
    position: relative;
    width: 100px;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rosa-wrapper:hover {
    transform: scale(1.05);
}


.rosa-wrapper div {
    position: absolute;
}
.glow-ring {
    position: absolute;
     top: 0; 
    left: 0;
    transform: translate(-30px, 0px); 
    
    width: 250px;
    height: 250px;
    border: 2px solid #c84b5f;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(200, 75, 95, 0.7);
    pointer-events: none; 
}
@keyframes pulse {
    0%, 100% {
        transform: translate(-30px, 0px) scale(1); /* Posição inicial */
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(200, 75, 95, 0.7);
    }
    50% { 
        transform: translate(-30px, 0px) scale(1.1); /* Posição inicial + escala */
        opacity: 0.1; 
        box-shadow: 0 0 40px rgba(200, 75, 95, 0.8);
    }
}

.rose-petals > div {
    background: #ff0080; /* Cor Neon */
    width: 45px;
    height: 80px;
    position: absolute;
    transition: all 0.5s ease-out;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}
.rose-petals > div:nth-child(1) {
    border-radius: 15px;
    left: 20px;
    top: -6px;
    background: #ff0080; /* Cor Neon */
}
.rose-petals > div:nth-child(2), .rose-petals > div:nth-child(4), .rose-petals > div:nth-child(6) {
    border-radius: 0px 30px 0px 30px;
    background: #e60073; /* Neon mais escuro */
    left: 0;
    transform-origin: bottom right;
}
.rose-petals > div:nth-child(3), .rose-petals > div:nth-child(5), .rose-petals > div:nth-child(7) {
    border-radius: 30px 0px 30px 0px;
    background: #e60073; /* Neon mais escuro */
    left: 40px;
    transform-origin: bottom left;
}

.rose-petals > div:nth-child(2) { z-index: 5; background: #b3005a; top: 10px; height: 70px; }
.rose-petals > div:nth-child(3) { z-index: 4; background: #b3005a; top: 10px; height: 70px; }
.rose-petals > div:nth-child(4) { z-index: 3; background: #e60073; top: 5px; height: 75px; }
.rose-petals > div:nth-child(5) { z-index: 2; background: #e60073; top: 5px; height: 75px; }
.rose-petals > div:nth-child(6) { z-index: 1; background: #ff1a8c; }
.rose-petals > div:nth-child(7) { z-index: 0; background: #ff1a8c; }

.rose-leaves > div:nth-last-child(1) {
    width: 55px;
    height: 30px;
    background: #00ff88; /* Verde Neon */
    position: absolute;
    top: 60px;
    left: 15px;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.rose-leaves > div:nth-child(1) {
    width: 6px;
    height: 230px;
    border: none;
    top: 80px;
    background: #00b362; /* Verde Neon escuro */
    left: 40px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.thorns > div {
    width: 30px;
    height: 30px;
    background: #00b362; /* Verde Neon escuro */
    top: 100px;
    left: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.thorns > div:after, .thorns > div:before {
    /* Cor do fundo do body */
    background: #122139; 
    /* (Se o fundo for o gradiente, isso pode precisar de ajuste, mas é o design original) */
    width: 41px;
    height: 31px;
    border-radius: 100%;
    content: "";
    position: absolute;
    left: -12px;
    top: 17px;
}
.thorns > div:before { left: -11px; top: -11px; z-index: 0; }
.thorns > div:nth-child(2) { top: 150px; transform: rotate(180deg); left: 45px; }
.thorns > div:nth-child(3) { top: 180px; }
.thorns > div:nth-child(4) { top: 220px; transform: rotate(180deg); left: 45px; }


/* --- LÓGICA DE ANIMAÇÃO (do JS) --- */
/* O JS adiciona a classe .aberta ao rosaWrapper */
.rosa-wrapper.aberta .rose-petals > div {
    /* Adiciona um delay de 0.5s antes de cair */
    animation-delay: 0.5s;
}
.rosa-wrapper.aberta .rose-petals > div:nth-child(2) { animation: openRose2 3s ease-in-out forwards; }
.rosa-wrapper.aberta .rose-petals > div:nth-child(3) { animation: openRose3 3s ease-in-out forwards; }
.rosa-wrapper.aberta .rose-petals > div:nth-child(4) { animation: openRose4 3s ease-in-out forwards; }
.rosa-wrapper.aberta .rose-petals > div:nth-child(5) { animation: openRose5 3s ease-in-out forwards; }
.rosa-wrapper.aberta .rose-petals > div:nth-child(6) { animation: openRose6 3s ease-in-out forwards; }
.rosa-wrapper.aberta .rose-petals > div:nth-child(7) { animation: openRose7 3s ease-in-out forwards; }


.instruction {
    color: #8f2f4b;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 0 0 10px rgba(200, 75, 95, 0.2);
    animation: blink 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.5s;
    position: absolute;
    
    /* --- POSIÇÃO CORRIGIDA --- */
    /* Posicionado 20px abaixo do fundo do wrapper (que tem 300px) */
    bottom: -20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Garante que o texto não quebre */

    font-family: 'Playfair Display', serif;
    font-weight: 600;
    z-index: 10;
}
.instruction.hidden { opacity: 0; }
@keyframes blink { 50% { opacity: 0.6; } }

.btn-continuar {
    position: relative; /* em vez de absolute */
    margin-top: 40px;   /* distância abaixo da rosa */
    padding: 12px 30px;
    background: linear-gradient(45deg, #8f2f4b, #c84b5f);
    border: 2px solid #c84b5f;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(143, 47, 75, 0.35);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 10;
    transform: translateY(20px);
}
.btn-continuar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.btn-continuar:hover {
    transform: translateY(-3px) scale(1.03);
}

@media (max-width: 640px) {
    .container {
        transform: scale(0.72);
    }

    .instruction {
        width: 260px;
        font-size: 1.08em;
        bottom: -36px;
    }

    .btn-continuar {
        margin-top: 54px;
        font-size: 1em;
        padding: 11px 22px;
    }
}
/* --- KEYFRAMES DA SUA INSPIRAÇÃO --- */
/* (Eu limpei e adicionei os prefixos que faltavam) */
@keyframes openRose2 {
    50% { transform: rotate(-90deg); top: 80px; left: 100px; }
    100% { transform: rotate(-60deg); top: 210px; left: -30px; opacity: 0; }
}
@keyframes openRose3 {
    100% { transform: rotate(60deg); opacity: 0; }
}
@keyframes openRose4 {
    100% { transform: rotate(-30deg); opacity: 0; }
}
@keyframes openRose5 {
    100% { transform: rotate(30deg); opacity: 0; }
}
@keyframes openRose6 {
    100% { transform: rotate(-15deg); top: 5px; opacity: 0; }
}
@keyframes openRose7 {
    100% { transform: rotate(15deg); top: 5px; opacity: 0; }
}

/* Prefixos para compatibilidade */
@-webkit-keyframes openRose2 { 50% { -webkit-transform: rotate(-90deg); top: 80px; left: 100px; } 100% { -webkit-transform: rotate(-60deg); top: 210px; left: -30px; opacity: 0; } }
@-webkit-keyframes openRose3 { 100% { -webkit-transform: rotate(60deg); opacity: 0; } }
@-webkit-keyframes openRose4 { 100% { -webkit-transform: rotate(-30deg); opacity: 0; } }
@-webkit-keyframes openRose5 { 100% { -webkit-transform: rotate(30deg); opacity: 0; } }
@-webkit-keyframes openRose6 { 100% { -webkit-transform: rotate(-15deg); top: 5px; opacity: 0; } }
@-webkit-keyframes openRose7 { 100% { -webkit-transform: rotate(15deg); top: 5px; opacity: 0; } }