:root {
    /* Paleta de cores aconchegante e mística */
    --cor-primaria: #2D1B69;
    --cor-secundaria: #8B5A8C;
    --cor-terciaria: #D4A574;
    --cor-dourada: #F4D03F;
    --cor-rosa-suave: #F8BBD9;
    --cor-lavanda: #E8DAEF;
    --cor-creme: #FDF2E9;
    --cor-branco: #FFFFFF;
    --cor-texto-escuro: #2C3E50;
    --cor-texto-claro: #FFFFFF;
    
    /* Gradientes mágicos */
    --gradiente-principal: linear-gradient(135deg, #2D1B69 0%, #8B5A8C 50%, #D4A574 100%);
    --gradiente-suave: linear-gradient(45deg, #E8DAEF 0%, #F8BBD9 100%);
    --gradiente-dourado: linear-gradient(45deg, #F4D03F 0%, #D4A574 100%);
    --gradiente-misterioso: radial-gradient(circle at center, rgba(45, 27, 105, 0.9) 0%, rgba(139, 90, 140, 0.7) 100%);
    
    /* Sombras e efeitos */
    --sombra-suave: 0 4px 20px rgba(45, 27, 105, 0.15);
    --sombra-media: 0 8px 30px rgba(45, 27, 105, 0.25);
    --sombra-forte: 0 15px 40px rgba(45, 27, 105, 0.35);
    --sombra-polaroid: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradiente-principal);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--cor-texto-claro);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

/* Container principal responsivo */
.container {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Canvas para confetes */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Partículas de fundo */
#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Seção principal */
.secao {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Logo flutuante */
.logo-container {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-flutuante {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Texto misterioso */
.texto-misterioso {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 2s ease-out 0.5s forwards;
}

.linha-1, .linha-2 {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.linha-1 {
    font-size: 1.8rem;
    color: var(--cor-dourada);
}

.linha-2 {
    font-size: 1.4rem;
    color: var(--cor-lavanda);
}

/* Coração pulsante */
.coracao-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coracao-pulsante {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coracao-pulsante:hover {
    transform: scale(1.1);
}

.coracao-inner {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(248, 187, 217, 0.8));
    position: relative;
    z-index: 2;
}

.ondas-coracao {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.onda {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--cor-rosa-suave);
    border-radius: 50%;
    opacity: 0;
    animation: wave 3s ease-out infinite;
}

.onda-1 { animation-delay: 0s; }
.onda-2 { animation-delay: 1s; }
.onda-3 { animation-delay: 2s; }

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

@keyframes wave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instrução de toque */
.instrucao-toque {
    font-size: 1rem;
    color: var(--cor-lavanda);
    opacity: 0.8;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 0.8; }
    25%, 75% { opacity: 0.4; }
}

/* Botões responsivos */
.btn-continuar, .btn-revelar, .btn-resposta, .btn-celebrar {
    background: var(--gradiente-dourado);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--cor-primaria);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-media);
    min-height: 44px; /* Touch-friendly */
    min-width: 44px;
    margin: 1rem 0;
}

.btn-continuar:hover, .btn-revelar:hover, .btn-resposta:hover, .btn-celebrar:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-forte);
}

.btn-continuar:active, .btn-revelar:active, .btn-resposta:active, .btn-celebrar:active {
    transform: translateY(0);
}

/* Fotos polaroid responsivas */
.foto-polaroid {
    margin: 1rem;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    animation: float-photo 4s ease-in-out infinite;
}

.foto-polaroid:nth-child(even) {
    transform: rotate(2deg);
    animation: float-photo 4s ease-in-out infinite reverse;
}

.foto-polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    animation-play-state: paused;
}

.polaroid-frame {
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    box-shadow: var(--sombra-polaroid);
    border-radius: 4px;
    max-width: 280px;
    width: 100%;
}

.polaroid-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.polaroid-caption {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--cor-texto-escuro);
    margin-top: 1rem;
    font-weight: 600;
}

@keyframes float-photo {
    0%, 100% { 
        transform: translateY(0px) rotate(-2deg);
    }
    25% { 
        transform: translateY(-5px) rotate(-1deg);
    }
    50% { 
        transform: translateY(-8px) rotate(0deg);
    }
    75% { 
        transform: translateY(-5px) rotate(1deg);
    }
}

/* Navegação */
.navegacao {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.navegacao > * {
    pointer-events: auto;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100px;
    text-align: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Utilitários */
.escondido {
    display: none !important;
}

.texto-center {
    text-align: center;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .secao {
        padding: 1rem 0.5rem;
        max-width: 100%;
    }
    
    .linha-1 {
        font-size: 1.5rem;
    }
    
    .linha-2 {
        font-size: 1.2rem;
    }
    
    .coracao-inner {
        font-size: 3rem;
    }
    
    .logo-flutuante {
        width: 60px;
        height: 60px;
    }
    
    .polaroid-frame {
        max-width: 250px;
        padding: 0.8rem 0.8rem 2.5rem 0.8rem;
    }
    
    .polaroid-caption {
        font-size: 1rem;
    }
    
    .btn-continuar, .btn-revelar, .btn-resposta, .btn-celebrar {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .navegacao {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .secao {
        padding: 1rem 0.25rem;
    }
    
    .linha-1 {
        font-size: 1.3rem;
    }
    
    .linha-2 {
        font-size: 1.1rem;
    }
    
    .coracao-inner {
        font-size: 2.5rem;
    }
    
    .logo-flutuante {
        width: 50px;
        height: 50px;
    }
    
    .polaroid-frame {
        max-width: 200px;
        padding: 0.6rem 0.6rem 2rem 0.6rem;
    }
    
    .btn-continuar, .btn-revelar, .btn-resposta, .btn-celebrar {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .navegacao {
        flex-direction: row;
        justify-content: space-between;
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        max-width: 70px;
    }
}

/* Orientação landscape em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .secao {
        min-height: auto;
        padding: 1rem;
    }
    
    .texto-misterioso {
        margin-bottom: 1.5rem;
    }
    
    .coracao-container {
        margin-bottom: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
}

