* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

h1 { color: white; margin-bottom: 15px; }

.info-panel {
    background: white;
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stats { display: flex; justify-content: space-around; margin-bottom: 15px; }

.stat-box {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 10px;
}

.stat-label { font-size: 12px; color: #666; }
.stat-value { font-size: 24px; font-weight: bold; }

.time { color: #e74c3c; }
.score { color: #27ae60; }

.target-area {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ffc107;
    margin-bottom: 15px;
}

.target-area h3 {
    font-size: 14px;
    color: #856404;
    margin-bottom: 10px;
}

.target-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.target-shape {
    width: 50px;
    height: 50px;
    display: none;
}

.target-info {
    font-size: 18px;
    font-weight: bold;
}

.game-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 450px;
    margin-bottom: 15px;
}

.shape { 
    width: 18vw; 
    height: 18vw; 
    max-width: 65px;
    max-height: 65px;
    cursor: pointer;
}

.shape:hover { transform: scale(1.1); }

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-start { background: #27ae60; }
.btn-end { background: #e74c3c; }

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.game-over {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.game-over-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.final-score {
    font-size: 48px;
    color: #27ae60;
    font-weight: bold;
    margin: 15px 0;
}

.hidden {
    display: none !important;
}
@media (max-width: 500px) {
    .shape {
        width: 20vw;
        height: 20vw;
    }
}
button, .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.buttons {
    z-index: 999;
}
.game-over {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.game-over-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;

    /* CORREÇÃO IMPORTANTE */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.game-over-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}