body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ecf0f1;
}

.game-container {
    position: relative;
    text-align: center;
    background: #34495e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #f1c40f;
}

.stats {
    font-size: 1.2rem;
    font-weight: bold;
}

#score {
    margin-right: 20px;
    color: #2ecc71;
}

#timer {
    color: #e74c3c;
}

canvas {
    background-color: #7f8c8d;
    border: 4px solid #bdc3c7;
    border-radius: 4px;
    display: block;
    cursor: crosshair;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

.content {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 30px;
    border-radius: 8px;
    max-width: 80%;
}

.content h2 {
    margin-top: 0;
    color: #e67e22;
}

button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}

button:hover {
    background: #d35400;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #ecf0f1;
    text-decoration: underline;
}
