* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.conteiner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
}

#menu {
    width: 90%;
    max-width: 500px;
}

h1 {
    margin-top: 0;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

h2 {
    font-weight: 400;
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.personagens {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.personagens img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 12px;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.personagens img:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.personagens img.selecionado {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

button {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #fbbf24;
    color: #0f172a;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

#game {
    width: 100%;
    max-width: 960px; 
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

#hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.stats {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
}

.stats span { 
    color: #cbd5e1; 
}

.stats b { 
    color: #f8fafc; 
    font-size: 1.2rem; 
}

#game-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

canvas {
    background: #bae6fd;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

#telas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 450px;
    z-index: 10;
}

#telas.vitoria h1 { 
    color: #4ade80; 
    text-shadow: 0 2px 10px rgba(74, 222, 128, 0.3); 
}

#telas.gameover h1 { 
    color: #f87171; 
    text-shadow: 0 2px 10px rgba(248, 113, 113, 0.3); 
}

#tela-pontos {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #000000;
}

footer {
    text-align: center;  
    padding-bottom: 20px;
    width: 100%;
    color: #cbd5e1;     
    font-size: 0.9rem;  
}

footer a {
    color: #fbbf24;     
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline; 
}