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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #51321f, #bd7740);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 960px;
    text-align: center;
}

.cabecalho {
    color: white;
    margin-bottom: 20px;
}

.cabecalho h1 {
    font-size: 38px;
    margin-bottom: 8px;
    text-shadow: 3px 3px #59351f;
}

.cabecalho p {
    font-size: 16px;
}

.area-jogo {
    position: relative;
    background: #fff4df;
    border: 6px solid #754323;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px #28160966;
}

.placar {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffe1aa;
    color: #55321d;
    font-weight: bold;
    font-size: 16px;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #f8e8c8;
}

.tela {
    position: absolute;
    inset: 0;
    background: #3b2416d9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    color: white;
    padding: 20px;
}

.tela h2 {
    font-size: 38px;
    color: #ffce70;
}

.tela p {
    font-size: 17px;
    max-width: 450px;
}

.tela small {
    font-size: 13px;
    color: #ffe3b2;
}

button {
    border: none;
    border-radius: 12px;
    background: #f39b35;
    color: #40230e;
    padding: 16px 28px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px #a75b1d;
    transition: 0.2s;
}

button:hover {
    background: #ffc15d;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(3px);
    box-shadow: 0 2px #a75b1d;
}

.escondido {
    display: none;
}

footer {
    margin-top: 18px;
    color: white;
    font-size: 14px;
}
a{
    color: #FFF;
}

@media (max-width: 600px) {

    body {
        padding: 8px;
    }

    .cabecalho h1 {
        font-size: 28px;
    }

    .placar {
        font-size: 12px;
        padding: 12px;
    }

    .tela h2 {
        font-size: 27px;
    }

    .tela p {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 13px 18px;
    }
}
