* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
body { background: #000; font-family: 'Orbitron', sans-serif; overflow: hidden; touch-action: none; }
#game-container { position: relative; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; background: #000; }
canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
#ui-layer { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 10; pointer-events: none; }
#hud { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; padding: 14px 20px; pointer-events: none; }
#hud span { font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; color: #ffaa00; text-shadow: 0 0 8px #ffaa00; }
.screen { background: rgba(15, 10, 0, 0.9); backdrop-filter: blur(14px); border: 2px solid #ffaa00; border-radius: 16px; padding: 3rem 2.5rem; text-align: center; display: none; flex-direction: column; gap: 18px; align-items: center; pointer-events: auto; box-shadow: 0 0 40px rgba(255,170,0,0.25); }
.screen.active { display: flex; animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards; }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
h1 { color: #ffaa00; font-size: 2.8rem; text-shadow: 0 0 20px #ffaa00; letter-spacing: 3px; }
.screen p { color: #ccc; font-size: 1.05rem; letter-spacing: 1px; }
button { background: transparent; border: 2px solid #ffaa00; color: #ffaa00; padding: 14px 40px; font-size: 1.4rem; font-family: 'Orbitron', sans-serif; font-weight: 700; cursor: pointer; border-radius: 6px; transition: all 0.25s; box-shadow: 0 0 12px rgba(255,170,0,0.3); margin-top: 8px; }
button:hover { background: #ffaa00; color: #000; box-shadow: 0 0 30px #ffaa00; }
/* Touch buttons */
.touch-btn { position: absolute; bottom: 20px; width: 130px; height: 60px; display: flex; align-items: center; justify-content: center; border: 2px solid #ffaa00; color: #ffaa00; font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; border-radius: 10px; background: rgba(255,170,0,0.1); z-index: 20; touch-action: none; -webkit-tap-highlight-color: transparent; }
#leftBtn  { left: 20px; }
#rightBtn { right: 20px; }
@media (hover: hover) and (pointer: fine) { .touch-btn { display: none; } }
@media (max-width: 600px) { h1 { font-size: 2rem; } .screen { padding: 2rem 1.5rem; width: 92%; } #hud span { font-size: 0.8rem; } }