body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#stamina-container {
    width: 300px;
    height: 20px;
    border: 2px solid #fff;
    margin: 20px;
    background: rgba(0, 0, 0, 0.5);
    align-self: flex-start;
    position: relative;
}

#stamina-bar {
    width: 100%;
    height: 100%;
    background-color: #0f0;
    transition: width 0.1s, background-color 0.2s;
}

#stamina-text {
    position: absolute;
    top: -25px;
    left: 0;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

#distance-display {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    display: none;
    pointer-events: auto;
    z-index: 20;
}

h1 {
    font-size: 64px;
    text-shadow: 4px 4px 0px #000;
    margin: 0;
    color: #ff3333;
    text-transform: uppercase;
    letter-spacing: 5px;
}

p {
    font-size: 24px;
    margin-top: 20px;
}

button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    color: #000;
    pointer-events: auto;
    transition: all 0.2s;
}

button:hover {
    background: #ff3333;
    color: white;
    transform: scale(1.05);
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: auto;
    z-index: 10;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 3;
}

.damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(180, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 4;
}

/* Scanline effect */
.vignette::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
}