* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Verdana', 'Tahoma', sans-serif;
    /* 2000s standard */
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
    /* Simple sky gradient fallback */
    border: 5px solid #444;
    overflow: hidden;
}

canvas {
    display: block;
    /* Background handled in JS or CSS */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#hud {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(to bottom, #444, #222);
    /* Bevel effect */
    border-bottom: 2px solid #666;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.stat-box {
    background: #000;
    padding: 5px 10px;
    border: 1px solid #666;
    color: #0f0;
    /* Terminal green */
}

#health-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#health-bar-bg {
    width: 200px;
    height: 20px;
    background-color: #333;
    border: 2px solid #fff;
}

#health-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ff3333, #990000);
    transition: width 0.2s;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Enable clicks */
    text-align: center;
    backdrop-filter: blur(2px);
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd700;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px #000;
    font-family: 'Impact', sans-serif;
}

.screen p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

button {
    padding: 10px 30px;
    font-size: 20px;
    background: linear-gradient(to bottom, #d9534f, #c9302c);
    color: white;
    border: 2px solid #fff;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

button:hover {
    background: linear-gradient(to bottom, #c9302c, #ac2925);
    transform: translateY(1px);
}

.hidden {
    display: none !important;
}

.active {
    display: flex !important;
}