/* =========================================
   CONFIGURAÇÕES GERAIS
========================================= */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;

    overflow: hidden;

    font-family: "Poppins", sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(109, 94, 247, 0.22),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #10172f 0%,
            #0b1026 45%,
            #070a18 100%
        );
}


/* =========================================
   CANVAS / CÉU ESTRELADO
========================================= */

#stars {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;
}


/* =========================================
   PAISAGEM / CHÃO / ÁRVORES
========================================= */

.landscape {
    position: fixed;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 26vh;

    min-height: 150px;
    max-height: 260px;

    z-index: 1;

    pointer-events: none;

    background-image:
        url("../img/landscape.webp");

    background-repeat:
        no-repeat;

    background-position:
        center bottom;

    background-size:
        100% auto;
}


/*
   Não usamos mais o degradê/sombra
   sobre a paisagem.
*/

.landscape::before {
    display: none;
}


/* =========================================
   CONTEÚDO PRINCIPAL
========================================= */

.container {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 430px;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0 auto;

    padding:
        max(24px, env(safe-area-inset-top))
        20px
        max(55px, env(safe-area-inset-bottom));

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================
   CORAÇÃO
========================================= */

.heart {
    width: 52px;
    height: 52px;

    margin-bottom: 12px;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.heart img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 10px
            rgba(255, 111, 174, 0.45)
        );
}


/* =========================================
   TÍTULO
========================================= */

h1 {
    font-family:
        "Great Vibes",
        cursive;

    font-size:
        clamp(
            2.2rem,
            10vw,
            3rem
        );

    font-weight: 400;

    line-height: 1.1;

    color: #ffffff;

    margin-bottom: 25px;

    text-shadow:
        0 0 15px
        rgba(255, 255, 255, 0.15),

        0 0 30px
        rgba(109, 94, 247, 0.2);
}


/* =========================================
   CONTADOR
========================================= */

.countdown {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 22px;
}


/* =========================================
   CAIXAS DO CONTADOR
========================================= */

.time-box {
    min-height: 94px;

    padding:
        14px
        8px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.15
        );

    background:
        linear-gradient(
            135deg,
            rgba(
                255,
                255,
                255,
                0.13
            ),
            rgba(
                255,
                255,
                255,
                0.05
            )
        );

    box-shadow:
        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            0.12
        ),

        0 8px 30px
        rgba(
            0,
            0,
            0,
            0.18
        );

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}

.time-box span {
    display: block;

    font-size: 2rem;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 1px;

    color: #ffffff;

    text-shadow:
        0 0 15px
        rgba(
            109,
            94,
            247,
            0.35
        );
}

.time-box small {
    margin-top: 8px;

    font-size: 0.72rem;

    font-weight: 400;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    color:
        rgba(
            255,
            255,
            255,
            0.68
        );
}


/* =========================================
   MENSAGEM
========================================= */

.message {
    width: 95%;

    margin-bottom: 22px;
}

.message p {
    font-size: 0.88rem;

    font-weight: 300;

    line-height: 1.6;

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    transition:
        opacity 0.3s ease;
}


/* =========================================
   PLAYER
========================================= */

.music-player {
    width: 100%;

    padding: 15px;

    border-radius: 20px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}

.music-player h2 {
    margin-bottom: 12px;

    font-size: 0.8rem;

    font-weight: 500;

    letter-spacing: 0.4px;

    color:
        rgba(
            255,
            255,
            255,
            0.8
        );
}


/* =========================================
   BOTÕES
========================================= */

.music-player button,
#openGift {
    width: 100%;

    min-height: 48px;

    padding:
        12px
        16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-radius: 14px;

    font-family:
        "Poppins",
        sans-serif;

    font-size: 0.82rem;

    font-weight: 500;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(
                109,
                94,
                247,
                0.45
            ),
            rgba(
                255,
                111,
                174,
                0.3
            )
        );

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            0.16
        );

    cursor: pointer;

    -webkit-tap-highlight-color:
        transparent;
}

.music-player button:active,
#openGift:active {
    transform:
        scale(0.97);
}


/* =========================================
   MÚSICA ATUAL
========================================= */

.current-song {
    min-height: 34px;

    margin:
        8px
        0;

    display: flex;

    align-items: center;
    justify-content: center;
}

.current-song p {
    font-size: 0.72rem;

    color:
        rgba(
            255,
            255,
            255,
            0.58
        );

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================
   BOTÃO DE NOVA MÚSICA
========================================= */

#randomMusic {
    background:
        rgba(
            255,
            255,
            255,
            0.07
        );
}


/* =========================================
   ÁREA DE DESBLOQUEIO
========================================= */

#unlockSection {
    width: 100%;

    margin-top: 18px;
}


/* =========================================
   ELEMENTOS ESCONDIDOS
========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   BOTÃO DA HOMENAGEM
========================================= */

#openGift {
    background:
        linear-gradient(
            135deg,
            rgba(
                255,
                111,
                174,
                0.7
            ),
            rgba(
                109,
                94,
                247,
                0.7
            )
        );
}


/* =========================================
   RODAPÉ
========================================= */

footer {
    position: fixed;

    z-index: 3;

    bottom:
        max(
            10px,
            env(
                safe-area-inset-bottom
            )
        );

    left: 50%;

    transform:
        translateX(-50%);

    width: 100%;

    text-align: center;

    pointer-events: none;
}

footer p {
    font-size: 0.61rem;

    font-weight: 300;

    letter-spacing: 0.3px;

    color:
        rgba(
            255,
            255,
            255,
            0.32
        );
}


/* =========================================
   TELAS MUITO BAIXAS
========================================= */

@media (max-height: 700px) {

    .container {
        padding-top: 14px;
        padding-bottom: 42px;
    }


    .heart {
        width: 40px;
        height: 40px;

        margin-bottom: 7px;
    }


    h1 {
        font-size: 2.1rem;

        margin-bottom: 15px;
    }


    .countdown {
        gap: 9px;

        margin-bottom: 14px;
    }


    .time-box {
        min-height: 76px;

        padding: 9px;
    }


    .time-box span {
        font-size: 1.65rem;
    }


    .time-box small {
        margin-top: 5px;

        font-size: 0.62rem;
    }


    .message {
        margin-bottom: 14px;
    }


    .music-player {
        padding: 11px;
    }


    .music-player button {
        min-height: 42px;

        padding: 9px;
    }


    .landscape {
        height: 22vh;

        min-height: 120px;

        background-size:
            100% auto;
    }

}


/* =========================================
   COMPUTADORES / TELAS LARGAS
========================================= */

@media (min-width: 700px) {

    /*
       No PC não usamos 100% da largura
       como referência da imagem.

       Isso evita que a paisagem fique
       gigante só porque o monitor é largo.
    */

    .landscape {
        height: 230px;

        min-height: 230px;
        max-height: 230px;

        background-size:
            auto 230px;

        background-position:
            center bottom;
    }


    /*
       Mantém o conteúdo com tamanho
       semelhante ao celular.
    */

    .container {
        max-width: 430px;
    }

}


/* =========================================
   MONITORES MUITO LARGOS
========================================= */

@media (min-width: 1200px) {

    .landscape {
        height: 220px;

        min-height: 220px;
        max-height: 220px;

        background-size:
            auto 220px;
    }

}