/* Pequeno reset na página*/
html {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100%;
    color: #fff;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22) 0, transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14) 0, transparent 24%),
        linear-gradient(180deg, #0a2d45 0%, #1f6fb2 45%, #59b7f1 100%);
    font-family: 'UnifrakturMaguntia', Pixel, Arial, Helvetica, sans-serif;
}

.conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 18px 20px 28px;
    gap: 14px;
}

h1 {
    margin: 0;
    letter-spacing: 1px;
    font-size: 54px;
    color: #fff8cf;
    text-shadow:
        0 2px 0 #734f00,
        0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Estilo do Game */

@font-face {
    font-family: 'Pixel';
    src: url(../fonts/Pixel.ttf);
}

[tp-flappy] {
    position: relative;
    border: 8px solid #f4fbff;
    border-radius: 22px;
    height: 700px;
    width: 1200px;
    max-width: calc(100vw - 40px);
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.3) 0, transparent 20%),
        radial-gradient(circle at 75% 28%, rgba(255, 255, 255, 0.25) 0, transparent 18%),
        linear-gradient(180deg, #42b6ff 0%, #8ed8ff 65%, #b9ecff 100%);
    overflow: hidden;
    box-shadow:
        0 24px 40px rgba(0, 0, 0, 0.35),
        inset 0 -70px 120px rgba(11, 111, 48, 0.2);
}

.passaro {
    position: absolute;
    width: 60px;
    left: calc(50% - 30px);
    filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.3));
}

.par-de-barreiras {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.barreira {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.barreira .borda {
    height: 30px;
    width: 130px;
    background: linear-gradient(180deg, #8bdc2b 0%, #63aa17 100%);
    border: 2px solid #182a0d;
    border-radius: 5px;
}

.barreira .corpo {
    height: 150px;
    width: 110px;
    background: linear-gradient(90deg, #6faf16 0%, #94e434 35%, #76be1b 100%);
    border-left: 2px solid #182a0d;
    border-right: 2px solid #182a0d;
}

.placar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
}

.progresso,
.melhor-progresso {
    font-family: 'UnifrakturMaguntia', Pixel;
    text-shadow: 2px 2px 0 #000;
}

.progresso {
    font-size: 40px;
}

.melhor-progresso {
    font-size: 26px;
    color: #ffe88f;
}

.fim-de-jogo {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.62) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 200;
    font-family: 'UnifrakturMaguntia', Pixel;
    text-align: center;
    padding: 20px;
}

.fim-de-jogo__titulo {
    margin: 0;
    font-size: 72px;
    color: #fff4c2;
    text-shadow: 0 4px 0 #5b4200;
}

.fim-de-jogo__resumo {
    margin: 0;
    font-size: 30px;
    color: #fff;
}

.fim-de-jogo__botao {
    border: 0;
    background: linear-gradient(180deg, #ffe066 0%, #ffc107 100%);
    color: #1e1e1e;
    font-family: 'UnifrakturMaguntia', Pixel;
    font-size: 28px;
    padding: 14px 30px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 0 #b48300, 0 9px 20px rgba(0, 0, 0, 0.32);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.fim-de-jogo__botao:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.fim-de-jogo__botao:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #b48300, 0 5px 14px rgba(0, 0, 0, 0.28);
}
