:root {
    /* Christmas Red Theme - Light Mode */
    --background: 45 20% 96%;
    --foreground: 0 0% 15%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 15%;
    --primary: 348 70% 45%; /* Rich Christmas Red */
    --primary-foreground: 0 0% 100%;
    --secondary: 45 95% 60%; /* Gold Accent */
    --secondary-foreground: 0 0% 15%;
    --muted: 45 20% 92%; /* Cream/Beige */
    --muted-foreground: 0 0% 40%;
    --accent: 45 95% 60%; /* Gold Accent */
    --accent-foreground: 0 0% 15%;
    --border: 45 20% 85%;
    --ring: 348 70% 45%;
    --radius: 0.75rem;
    
    /* Cores de Bola de Natal */
    --ornament-gold: linear-gradient(145deg, hsl(45 95% 75%), hsl(38 85% 55%));
    --ornament-blue: linear-gradient(145deg, hsl(210 80% 65%), hsl(210 70% 45%));
    --ornament-green: linear-gradient(140 50% 60%), hsl(140 50% 35%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow-x: hidden; /* Garante que não haja scroll horizontal */
}

.text-clip-gold {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(to bottom right, hsl(45 95% 70%), hsl(38 85% 55%));
}

.shadow-gold {
    box-shadow: 0 10px 30px -5px hsl(45 95% 60% / 0.4);
}

.hover-shadow-gold:hover {
    box-shadow: 0 15px 40px -5px hsl(45 95% 60% / 0.6);
    transform: scale(1.05) translateY(-4px);
}

.bg-gradient-gold {
    background-image: linear-gradient(to bottom right, hsl(45 95% 65%), hsl(38 85% 55%));
}

/* Keyframes for animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(-10%);
    }
    50% {
        transform: translateY(30%);
    }
}

/* Keyframe para o ícone de loading */
@keyframes spinner-grow {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}


.ball-shadow-360 {
    box-shadow: 0 0 12px 2px rgba(0,0,0,0.5), 0 0 32px 12px rgba(0,0,0,0.18);
}

.animate-pulse { animation: pulse 2s infinite; }
.animate-float-bounce {
    animation: float-bounce 6s ease-in-out infinite alternate;
}

/* Estilo para o Preloader */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--primary)); /* Vermelho Natal */
    z-index: 1000; /* Acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loading-screen.loaded {
    opacity: 0;
    pointer-events: none; /* Desativa a interação após o carregamento */
}

/* O ícone de presente original foi substituído pelo Papai Noel */
.loading-icon {
    color: hsl(var(--accent)); /* Cor Dourada */
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estilos de transição e foco para inputs */
input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

/* Classes para centralizar e estilizar o container principal do APP */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 400px; /* Garante que o container não suma */
    position: relative; /* Para posicionar o botão de fechar */
}

.snow { position:fixed; top:0; left:0; width:100vw; height:100vh; pointer-events:none; z-index:999; }

.will-change-transform { will-change: transform; }

/* Estilo para ocultar a view principal do site quando o app estiver ativo */
.main-site-content {
    transition: opacity 0.3s ease-in-out;
}

/* --- ESTILOS DO PAPAI NOEL --- */

/* Ajustando o fundo do body para a tela de loading */
#loading-screen {
    background-color: hsl(348 70% 45%); /* Mantém o Primary Red */
}

ul {
    /* Removido display: table e largura fixa */
    list-style: none;
    margin: 0 auto;
    max-width: 800px;
    padding: 0;
    position: relative; 
    /* Usando Flexbox para controle de layout */
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-screen ul li {
    display: inline-block;
    /* float: left; -- REMOVIDO */
}

.santaclaus {
    display: block;
    margin: 0 10px; /* Adiciona margem lateral para separação */
    max-width: 500px;
    transform: scale(0.65); /* Reduz o tamanho geral para caber bem */
    position: relative;
    z-index: 10;
}

/* Media Query para reduzir o Papai Noel em telas pequenas, liberando espaço para o HO HO HO */
@media (max-width: 640px) {
    .santaclaus {
        transform: scale(0.45); 
        margin: 0; /* Remove margens extras em mobile */
    }
}

@media (max-width: 480px) {
    .santaclaus {
        transform: scale(0.4); 
    }
}


.santaclaus > div {
    margin: 0 auto;
    max-width: 400px;
}

.santaclaus .chapeu {
    display: block;
    position: relative;
    width: 310px;
    z-index: 99;
}

.santaclaus .chapeu .cone-1 {
    border-left: 50px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 70px solid hsl(var(--primary)); /* Cor primária */
}

.santaclaus .chapeu .cone-2 {
    background-color: hsl(var(--primary));
    border-top: 0px solid transparent;
    border-right: 340px solid hsl(var(--primary));
    border-bottom: 100px solid transparent;
    border-color: transparent;
    box-shadow: -25px 15px 30px -5px rgba(1,1,1,0.3);
    position: relative;
    left: -56px;
    top: 49px;

    -webkit-transform: rotate(-15deg);
    -moz-transform: rotate(-15deg);
    transform: rotate(-15deg);

    -webkit-border-radius: 30% 100% 0 100%;
    -moz-border-radius: 30% 100% 0 100%;
    border-radius: 30% 100% 0 100%;
}

.santaclaus .chapeu::after,
.santaclaus .chapeu::before {
    background-color: hsl(var(--primary-foreground)); /* Cor branca */
    content: " ";
    display: block;
}

.santaclaus .chapeu::after {
    box-shadow: 0px -15px 40px -5px rgba(1,1,1,0.4);
    height: 80px;
    margin-left: -15px;
    position: relative;
    width: 340px;

    -webkit-border-radius: 0.8em;
    -moz-border-radius: 0.8em;
    border-radius: 0.8em;
}

.santaclaus .chapeu::before {
    box-shadow: 20px 20px 40px -5px rgba(1,1,1,0.3);
    height: 80px;
    left: -120px;
    position: absolute;
    top: 80px;
    width: 80px;
    z-index: 111;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.santaclaus .face {
    background-color: #ffccbc; /* Cor de pele */
    box-shadow: 0px 0px 30px 5px rgba(1,1,1,0.3);
    content: " ";
    display: block;
    height: 130px;
    position: relative;
    top: -10px;
    width: 300px;
}

.santaclaus > .orelhas {
    background-color: #eea2ad; /* Cor de pele mais escura */
    box-shadow: 0px 0px 30px 5px rgba(1,1,1,0.3);
    display: block;
    height: 60px;
    margin: 0 auto;
    position: relative;
    top: -125px;
    width: 330px;
    z-index: -1;

    -webkit-border-radius: 1em 1em 2em 2em;
    -moz-border-radius: 1em 1em 2em 2em;
    border-radius: 1em 1em 2em 2em;
}

.santaclaus .face > .eyes {
    display: inline-block;
    height: 0px;
    margin: 20px auto 0;
    max-width: 160px;
    width: 100%;
}

.santaclaus .face > .eyes::before,
.santaclaus .face > .eyes::after {
    background-color: #111;
    content: " ";
    display: inline-block;
    float: left;
    height: 20px;
    width: 20px;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.santaclaus .face > .eyes::after {
    float: right;
}

.santaclaus .face > .nariz {
    background-color: #EEA2AD;
    height: 50px;
    margin: 0 auto;
    position: relative;
    width: 70px;
    z-index: 111;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.santaclaus .face > .barba {
    background-color: hsl(var(--primary-foreground)); /* Cor branca */
    box-shadow: -10px 10px 10px -5px rgba(1,1,1,0.3);
    height: 240px;
    margin: 0 auto;
    position: relative;
    top: -30px;
    width: 340px;
    left: -20px;

    -webkit-transform: rotate(-20deg);
    -moz-transform: rotate(-20deg);
    transform: rotate(-20deg);

    -webkit-border-radius: 0% 100% 70% 100%;
    -moz-border-radius: 0% 100% 70% 100%;
    border-radius: 0% 100% 70% 100%;

    -webkit-animation: animaBarba 1.6s ease-in-out infinite alternate;
    -moz-animation: animaBarba 1.6s ease-in-out infinite alternate;
    animation: animaBarba 1.6s ease-in-out infinite alternate;
}

.santaclaus .face > .barba > .boca {
    background-color: transparent !important; /* Garantir que a boca não tenha cor de fundo na barba */
    box-shadow: none !important;
    height: 50px;
    left: 30px;
    margin: 0 auto;
    position: relative;
    top: 20px;
    width: 60px;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;

    -webkit-animation: hoho 1.6s ease-in-out infinite alternate;
    -moz-animation: hoho 1.6s ease-in-out infinite alternate;
    animation: hoho 1.6s ease-in-out infinite alternate;
}

.hohoho {
    height: 0;
    padding-top: 150px; /* Reduzido de 200px para dar mais espaço */
    width: 100px; /* Reduzido de 150px para caber melhor */
    position: relative;
    top: 0; 
    left: 0;

    -webkit-animation: txtHohoho 1.6s ease-in-out infinite alternate;
    -moz-animation: txtHohoho 1.6s ease-in-out infinite alternate;
    animation: txtHohoho 1.6s ease-in-out infinite alternate;
}

.hohoho h2::before {
    text-shadow: 0px 10px 20px rgba(1,1,1,0.4);
    color: hsl(var(--primary-foreground)); /* Cor branca */
    content: "HO";
    font-size: 48px; /* Reduzido de 62px */
    line-height: 1.4em;
}

/*Texto Hohoho do lado direito*/
.hohoho:last-of-type h2 {
    margin: 0 0px 20px; /* Ajustado margem */
    text-align: right;
}

.hohoho:last-of-type h2:nth-child(2) {margin-right: -30px;} /* Ajustado margem */
.hohoho:last-of-type h2:first-child,
.hohoho:last-of-type h2:last-child {
    -webkit-animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
    -moz-animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
    animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
}

/*Texto Hohoho do lado esquerdo*/
.hohoho:first-of-type h2 {
    margin: 0 0px 20px 0; /* Ajustado margem */
    text-align: left;
}

.hohoho:first-of-type h2:nth-child(2) {margin-left: -30px;} /* Ajustado margem */
.hohoho:first-of-type h2:first-child,
.hohoho:first-of-type h2:last-child {
    -webkit-animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
    -moz-animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
    animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
}

/*Texto Ho do meio em ambos os lados*/
.hohoho h2:nth-child(2) {
    -webkit-animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
    -moz-animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
    animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
}

/**************
** Animações **
***************/

/*FadeIn e fadeOut para textos Hohoho*/
@keyframes txtHohoho {
    from {opacity: .2}
    to {opacity: 1}
}

/*Texto Ho do meio em ambos os lados*/
@-webkit-keyframes txtHohohoMiddle {
    from {-webkit-transform: scale(1.5);}
    to {-webkit-transform: scale(1);}
}
@-moz-keyframes txtHohohoMiddle {
    from {-moz-transform: scale(1.5);}
    to {-moz-transform: scale(1);}
}
@keyframes txtHohohoMiddle {
    from {transform: scale(1.5);}
    to {transform: scale(1);}
}

/*Hohoho do lado esquerdo*/
@-webkit-keyframes txtHohohoLeft {
    to {-webkit-transform: scale(1.5);}
}
@-moz-keyframes txtHohohoLeft {
    to {-moz-transform: scale(1.5);}
}
@keyframes txtHohohoLeft {
    to {transform: scale(1.5);}
}

/*Hohoho do lado direito*/
@-webkit-keyframes txtHohohoRight {
    to {-webkit-transform: scale(1.5);}
}
@-moz-keyframes txtHohohoRight {
    to {-moz-transform: scale(1.5);}
}
@keyframes txtHohohoRight {
    to {transform: scale(1.5);}
}

/*Movimenta barba*/
@-webkit-keyframes animaBarba {
    to {-webkit-transform: rotate(-10deg);}
}
@-moz-keyframes animaBarba {
    to {-moz-transform: rotate(-10deg);}
}
@keyframes animaBarba {
    to {transform: rotate(-10deg);}
}

/*Hoho no movimento da boca*/
@-webkit-keyframes hoho {
    0% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}
@-moz-keyframes hoho {
    0% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}
@keyframes hoho {
    0% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: hsl(var(--primary-foreground));
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}
