/* Base styles */
body {
margin: 0;
overflow: hidden;
background-color: #1f2937; /* Dark slate background */
font-family: 'Inter', sans-serif;
color: #f3f4f6;
cursor: default;
}

/* Game Canvas */
canvas {
display: block;
}

/* Overlay UI container */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 1rem;
box-sizing: border-box;
z-index: 10;
}

/* Instructions Box (Top Center) */
.instructions-box {
pointer-events: auto;
background: rgba(17, 24, 39, 0.85);
backdrop-filter: blur(5px);
border-radius: 12px;
padding: 1.5rem;
max-width: 90%;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
text-align: center;
transition: opacity 0.3s ease-in-out;
}

.instructions-box h1 {
font-size: 1.5rem;
font-weight: bold;
color: #f3f4f6;
margin-bottom: 0.5rem;
}

.instructions-box p {
font-size: 0.875rem;
color: #d1d5db;
margin-top: 0.5rem;
}

.instructions-box button {
background-color: #4f46e5;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
margin-top: 1rem;
transition: background-color 0.2s, transform 0.1s;
pointer-events: auto;
}

.instructions-box button:hover {
background-color: #6366f1;
transform: translateY(-1px);
}

/* Crosshair */
.crosshair {
width: 2px;
height: 2px;
background-color: white;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Color Palette (Bottom Left) */
.color-palette-container {
pointer-events: auto;
position: absolute;
bottom: 1rem;
left: 1rem;
background: rgba(17, 24, 39, 0.85);
backdrop-filter: blur(5px);
border-radius: 12px;
padding: 0.75rem;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

#color-palette {
display: flex;
gap: 0.75rem;
}

/* Helper classes (formerly Tailwind) */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.rounded-full { border-radius: 9999px; }
.border-2 { border-width: 2px; }
.border-white { border-color: rgba(255, 255, 255, 0.5); }
.transition-all { transition-property: all; }
.duration-150 { transition-duration: 150ms; }
.cursor-pointer { cursor: pointer; }
.scale-110 { transform: scale(1.1); }
.ring-4 { box-shadow: 0 0 0 4px; }
.ring-offset-2 { outline-offset: 2px; }
.ring-yellow-400 { box-shadow: 0 0 0 4px #fbbf24; }
.ring-offset-gray-900 { box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.7); }

/* NEW Score Tracker Style */
.score-tracker {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white; /* Choose a color that stands out from your scene */
    font-size: 24px;
    font-family: sans-serif;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    border-radius: 5px;
    pointer-events: none; /* Essential for overlay elements */
}