* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
body { font-family: 'VT323', monospace; 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(0, 20, 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: 1rem; text-align: center; color: #00ff00; text-shadow: 0 0 20px #00ff00; }
p { font-size: 1.8rem; margin-bottom: 2.5rem; text-align: center; max-width: 500px; color: #ccc; }

.ui-btn { font-family: 'VT323', monospace; padding: 15px 50px; font-size: 2.5rem; color: #000; background: #00ff00; border: none; cursor: pointer; box-shadow: 0 0 20px #00ff00; transition: transform 0.1s; border-radius: 5px; }
.ui-btn:active { transform: scale(0.95); }

#hud { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: center; z-index: 5; pointer-events: none; }
.hud-card { background: rgba(0, 0, 0, 0.8); border: 2px solid #00ff00; padding: 10px 30px; font-size: 2rem; color: #00ff00; text-shadow: 0 0 10px #00ff00; border-radius: 5px; }
.hud-card strong { margin-left: 10px; font-size: 2.5rem; color: #fff; }

#dpad { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 70px 70px 70px; grid-template-rows: 70px 70px 70px; gap: 10px; z-index: 5; }
.d { background: rgba(0, 255, 0, 0.2); border: 2px solid #00ff00; border-radius: 10px; color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.d:active { background: rgba(0, 255, 0, 0.6); }
.up { grid-column: 2; grid-row: 1; }
.left { grid-column: 1; grid-row: 2; }
.right { grid-column: 3; grid-row: 2; }
.down { grid-column: 2; grid-row: 3; }
