@media (max-width: 768px) {
    .player-char {
        width: 60px;
        height: 75px;
    }

    .char{
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .player-char {
        width: 40px;
        height: 50px;
        flex: 1 1 40px;
    }

    .char{
        font-size: 20px;
    }
}

body{
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    background-color: var(--primary-bg-color);
    font-family: roboto, sans-serif;
}

.game{
    font-weight: bolder;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
    gap: 100px;
    overflow: hidden;
}


.title{
    font-family: "Dancing Script", sans-serif;
    scale: 5;
    filter:drop-shadow(1px 1px 1px black);
    display: flex;
    width: 100px;
    justify-content: left;
    align-items: center;
}

.title span{
    color: white;
    animation: enter 1s forwards;
}

@keyframes enter {
    0% {
        transform: translateY(5px);
        color: rgba(255, 255, 255, 0);
        filter:drop-shadow(0px 5px 1px black);
    }
}

.start button {
    all: unset;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: green;
    border: 8px solid white;
    outline: 8px solid green;
    color: white;
    overflow: visible;
    transition: transform 0.12s ease, background-color 0.12s ease, outline-color 0.12s ease, filter 0.12s ease;
    filter: drop-shadow(5px 5px 0px black);
}

.start button svg {
    width: 30px;
    height: auto;
    fill: currentColor;
    transform: translateX(4px);
}

.start button:hover {
    background-color: #009900;
    outline-color: #008000;
    transform: scale(1.08);
}

.start button:active {
    background-color: #006800;
    transform: scale(0.94);
}

.caracteres{
    display: flex;
    gap: 20px;
    font-size: 100px;
    align-items: center;
    justify-content: center;
}

.playerText{
    position: relative;
    display: flex;
    gap: 10px;
    max-width: 100vw;
}


.player-char{
    height: 100px;
    width: 80px;
    display: flex;
    color: white;
    font-size: 220%;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-bg-color);
    border-radius: 15px;
}

.player-char .filled{
    transform: translateY(10px);
}

.filled {
  background-color: rgb(38, 34, 61);
  animation: efeitoMola 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes efeitoMola {
  0% {
    transform: scale(0.5);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(38, 34, 61, 0.7);
  }
  
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 15px rgba(38, 34, 61, 0); 
  }
}

.referencia{
    width: 600px;
    height: 150px;
    text-align: center;
    color: white;
}

.inputTexto{
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.dropSlot{
    position: relative;
}

.drop{
    color: rgb(120, 0, 0);
    opacity: 1;
    position: var(--posicao);
    height: 100px;
    width: 80px;
    display: flex;
    font-size: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    animation: drop 0.8s ease-in;
    transform: rotate(var(--rotacao));
}

@keyframes drop {
  to {
    transform: 
      translate(var(--dx), var(--dy))
      rotate(var(--rotacao));
    opacity: 0;
  }
}

.error{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.fly{
    color: greenyellow;
    text-align: center;
    position: absolute;
    display: flex;
    font-size: 30px;
    animation: fly 1s ease;
}

@keyframes fly {
    to{
        transform: translateY(-30px);
        opacity: 0;
    }
}

.flyNegativo{
    color: rgb(255, 47, 47);
    text-align: center;
    position: absolute;
    display: flex;
    font-size: 30px;
    animation: fly 1s ease-out;
}

.vida{
    background-color: white;
    width: 100vw;
    height: 5px;
    transform: scaleX(var(--vida-atual));
    transition: transform 0.1s ease;
}

.gameRodape{
    color: white;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
}

.gameRodape .left{
    font-size: 40px;
}

.gameRodape .right{

}

.pulse{
    animation: pulse 0.2s ease;
}

@keyframes pulse {
    50% {
        transform: scale(1.1)
    }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-over-back{
    background-color: var(--secondary-bg-color);
    padding: 20px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    border: var(--primary-bg-color) 5px solid;
}

.game-over-title{
    overflow-wrap: break-word;
    text-align: center;
    max-width: 500px;
}

.placar div{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(16, 14, 27);
    width: 170px;
    height: 60px;
    padding: 5px;
    border-radius: 10px;
    font-size: 20px;
}

.pontos, .combo{
    margin: 10px;
}

.placar{
    display: flex;
    gap: 20px;
}

.reiniciar {
    all: unset;
    cursor: pointer;

    width: 75px;
    height: 75px;
    border-radius: 50%;

    background-color: #2ecc71; /* verde mais moderno */
    background-image: url('../assets/restart.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55%;

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

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        filter 0.3s ease;
}

.reiniciar:hover {
    transform: scale(1.12) rotate(-180deg);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.reiniciar:active {
    transform: scale(0.95) rotate(-540deg);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hidden{
    display: none;
}

.morto{
    width: 100vw;
    transform: scaleX(1);
    animation: piscar 0.5s infinite
}

@keyframes piscar {
  0%   { background-color: white; }
  50%  { background-color: red; }
  100% { background-color: white; }
}

.timeout{
    background-image: url('../assets/timeout.png');
    opacity: 1;
    position: fixed;
    width: 100vw;
    height: 100vh;
    scale: 0.6;
    align-self: center;
    background-repeat: no-repeat;
    background-position: center;
    animation: stampTimeout 2s forwards;
}

@keyframes stampTimeout {
    10% {
        scale: 0.5;
        opacity: 1;
    }
    90%{
        scale: 0.5;
        opacity: 1;
    }
    100% {
        scale:0.8;
        opacity: 0;
    }
}
