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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a2e;
    color: #e0e1dd;
    overflow: hidden;
}

.game-container {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: #16213e;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 15px 10px;
}

.header h1 {
    font-weight: 700;
    letter-spacing: 2px;
    color: #0f3460;
    text-shadow: 1px 1px 2px rgba(224, 225, 221, 0.5);
}

#score {
    font-size: 1.2em;
    font-weight: 600;
}

#game-canvas {
    display: block;
    background: #1a1a2e;
    border-radius: 10px;
    border: 2px solid #0f3460;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(22, 33, 62, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

.overlay-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.overlay-content p {
    margin-bottom: 20px;
    max-width: 300px;
}

button {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: #e94560;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.6);
}

button:active {
    transform: translateY(-1px);
}