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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
    color: #ccc;
    cursor: none;
}

canvas#minimap {
    position: fixed;
    bottom: 15px;
    right: 15px;
    border: 2px solid rgba(100, 255, 100, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 70%);
}

.hidden { display: none !important; }

.title-container {
    text-align: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-title {
    font-size: 5rem;
    letter-spacing: 0.3em;
    color: #cc0000;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #880000, 0 0 90px #440000;
    animation: flicker 3s infinite alternate;
    margin-bottom: 20px;
}

.game-title .or {
    color: #fff;
    font-size: 3rem;
    text-shadow: 0 0 15px #fff;
}

.level-complete {
    color: #00cc44;
    text-shadow: 0 0 30px #00ff55, 0 0 60px #008833;
}

@keyframes flicker {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.6; }
    98% { opacity: 1; }
}

.subtitle {
    font-size: 1.1rem;
    color: #888;
    margin: 8px 0;
    letter-spacing: 0.1em;
}

.controls-info {
    margin: 30px 0 20px;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.8;
}

.start-btn {
    margin-top: 30px;
    padding: 15px 50px;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    background: transparent;
    color: #cc0000;
    border: 2px solid #cc0000;
    cursor: pointer;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}

.start-btn:hover {
    background: #cc0000;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.highscore {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* HUD */
#hud {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50;
}

#levelIndicator {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.3em;
}

#timer {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    color: #ddd;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: color 0.3s;
}

#timer.urgent {
    color: #ff2222;
    text-shadow: 0 0 15px rgba(255,0,0,0.7);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#keysDisplay {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.2rem;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255,200,0,0.5);
}

.key-icon { font-size: 1.4rem; }

#livesDisplay {
    position: absolute;
    top: 45px;
    left: 20px;
    font-size: 1.5rem;
    color: #ff3333;
    text-shadow: 0 0 8px rgba(255,0,0,0.5);
}

#hideWarning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ff0000;
    text-shadow: 0 0 30px #ff0000;
    animation: pulse 0.5s infinite;
    letter-spacing: 0.3em;
}

#interactPrompt {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #aaa;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border: 1px solid #555;
    letter-spacing: 0.1em;
}

#bottomBar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.bar-container {
    text-align: center;
}

.bar-container label {
    display: block;
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.bar-bg {
    width: 160px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00aa44, #44ff88);
    transition: width 0.15s;
}

.battery-fill {
    background: linear-gradient(90deg, #aaaa00, #ffff44);
}

/* Green tint when hiding in bush */
.bush-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 60, 0, 0.25);
    pointer-events: none;
    z-index: 40;
}

/* Vignette */
#vignette {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 30;
}

/* Damage flash */
.damage-flash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(180, 0, 0, 0.4);
    pointer-events: none;
    z-index: 45;
    animation: damageAnim 0.5s ease-out forwards;
}

@keyframes damageAnim {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Crosshair */
#crosshair {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    z-index: 55;
    pointer-events: none;
}
