* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { font-family: 'Teko', sans-serif; overflow: hidden; background: #222; 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(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 10; transition: opacity 0.3s; }
.hidden { opacity: 0; pointer-events: none; }

h1 { font-size: 6rem; margin-bottom: 0rem; text-align: center; color: #ffaa00; text-shadow: 0 5px 15px #ff0000; letter-spacing: 2px; line-height: 1; }
p { font-size: 1.5rem; margin-bottom: 2.5rem; text-align: center; max-width: 500px; color: #ccc; line-height: 1.2; }

.ui-btn { font-family: 'Teko', sans-serif; padding: 10px 60px; font-size: 3rem; color: #fff; background: #880000; border: 4px solid #ff0000; border-radius: 8px; cursor: pointer; box-shadow: 0 5px 0 #550000; transition: transform 0.1s; letter-spacing: 2px; }
.ui-btn:active { transform: translateY(5px); box-shadow: 0 0 0 #550000; }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.hud-box { background: rgba(0, 0, 0, 0.6); padding: 5px 20px; border-radius: 8px; border: 2px solid #ffaa00; font-size: 2rem; color: #ffaa00; text-shadow: 0 0 5px #ff0000; display: flex; align-items: center; gap: 10px; }
.hud-box strong { font-size: 3rem; color: #fff; }

#mobile-controls { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 5; }
.ctrl-group { display: flex; gap: 10px; }
.dbtn { font-family: 'Teko', sans-serif; padding: 15px 25px; font-size: 2rem; background: rgba(255,255,255,0.2); border: 2px solid #fff; border-radius: 10px; color: #fff; backdrop-filter: blur(5px); cursor: pointer; }
.dbtn:active { background: rgba(255,255,255,0.6); color: #000; }
