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

body {
    overflow: hidden;
    background-color: #222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#strikes-board {
    color: #ff4444;
}

canvas {
    display: block;
    cursor: crosshair; /* Fallback */
}

/* Custom crosshair cursor using a data URI or we can draw it on canvas, 
   but native CSS cursor is smoother. Let's use a custom CSS cursor. */
body.game-active canvas {
    cursor: crosshair;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#game-over-screen h1 {
    color: #ff4444;
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px red;
}

#game-over-screen p {
    font-size: 28px;
    margin-bottom: 10px;
}

#restart-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    background-color: #44aa44;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#restart-btn:hover {
    background-color: #55cc55;
    transform: scale(1.05);
}

#restart-btn:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}