:root {
    --primary-color: #ffffff;
    --accent-color: #FFD700;
    --bg-gradient-start: #2b5876;
    --bg-gradient-end: #4e4376;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a1a; /* Solid dark background */
    font-family: var(--font-family);
    color: var(--primary-color);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Ensure UI is above the game canvas */
}

/* Make buttons clickable */
button, #start-btn, #restart-btn {
    pointer-events: auto;
}

#score-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    text-align: left;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#score {
    font-size: 4rem;
    font-weight: 900;
}

#best-score {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

#lives {
    font-size: 1.5rem;
    color: #FF4444;
    font-weight: 700;
    margin-top: 5px;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

h1 {
    font-size: 5rem;
    line-height: 0.9;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

button {
    background: var(--primary-color);
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    font-family: var(--font-family);
    pointer-events: auto;
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.final-score {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Removed city silhouette */