body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #111;
    font-family: Arial, sans-serif;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

canvas {
    display: block;
}

#mode-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

#mode-link:hover {
    background: rgba(0, 0, 0, 0.8);
    text-decoration: underline;
}

#mode-link:focus-visible {
    outline: 3px solid #9cc7ff;
    outline-offset: 2px;
}

#overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(5, 8, 16, 0.72);
    color: white;
    z-index: 20;
}

#overlay.hidden {
    display: none;
}

#overlay-title {
    font-size: 56px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#overlay-sub {
    font-size: 24px;
}

#overlay-hint {
    font-size: 18px;
    color: #cfd6e0;
}
