* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { font-family: 'Roboto', sans-serif; overflow: hidden; background: #000; touch-action: none; color: #fff; }
#game-root { position: relative; width: 100vw; height: 100vh; }
canvas { display: block; width: 100%; height: 100%; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20, 5, 0, 0.85); backdrop-filter: blur(5px); z-index: 10; transition: opacity 0.3s; }
.hidden { opacity: 0; pointer-events: none; }

h1 { font-family: 'Creepster', cursive; font-size: 5rem; margin-bottom: 1rem; text-align: center; color: #ffaa00; text-shadow: 0 5px 15px rgba(255, 0, 0, 0.8); letter-spacing: 4px; }
p { font-size: 1.2rem; margin-bottom: 2.5rem; text-align: center; max-width: 500px; color: #ccc; line-height: 1.6; }

.ui-btn { font-family: 'Creepster', cursive; padding: 15px 50px; font-size: 2rem; color: #fff; background: #8b0000; border: 2px solid #ff0000; border-radius: 8px; cursor: pointer; box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); transition: transform 0.1s, filter 0.2s; letter-spacing: 2px; }
.ui-btn:active { transform: translateY(4px); box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
.ui-btn:hover { filter: brightness(1.2); }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.hud-card { background: rgba(0, 0, 0, 0.6); padding: 10px 20px; border-radius: 8px; border: 1px solid #ff5500; text-align: center; }
.hud-card h2 { font-size: 1rem; color: #ffaa00; letter-spacing: 1px; }
.hud-card .big { font-size: 2rem; font-weight: bold; color: #fff; text-shadow: 0 0 10px #ff0000; }

#mobile-controls { position: absolute; inset: 0; display: flex; z-index: 4; pointer-events: none; }
.stick-zone { flex: 1; position: relative; pointer-events: auto; touch-action: none; }
.stick-base { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%); backdrop-filter: blur(4px); }
.stick-knob { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(0,0,0,0.5); }

#flash-overlay { position: absolute; inset: 0; background: #ff0000; opacity: 0; pointer-events: none; z-index: 20; transition: opacity 0.1s; }
