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

body {
    text-align: center;
    font-family: Arial;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#gameWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#scoreBar {
    font-size: 22px;
    font-weight: bold;
}

canvas {
    border: 4px solid white;
    display: block;
}

button {
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 20px;
    border: 2px solid red;
    box-shadow: 0px 0px 10px yellow;
    background-color: antiquewhite;
    padding: 0 24px;
}

button:hover {
    box-shadow: 0px 0px 18px yellow;
}

#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.78);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#overlay.show {
    display: flex;
}

#popup {
    background: #111;
    border: 3px solid red;
    box-shadow: 0 0 24px red;
    border-radius: 16px;
    padding: 36px 52px;
    text-align: center;
}

#popup h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

#popup p {
    font-size: 20px;
    margin: 8px 0;
}

#restartBtn {
    margin-top: 22px;
}
