:root { --bg: #1a1a1a; --text: #4caf50; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex;
    flex-direction: column; justify-content: flex-start; align-items: center; }
.game-container { width: 100%; max-width: 400px; padding: 1rem; display: flex; flex-direction: column; align-items: center; position: relative;}
header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.back-btn { text-decoration: none; background: #ff9800; color: white; padding: 10px 20px; border-radius: 20px; font-weight: bold; box-shadow: 0 4px 0 #f57c00; }
.back-btn:active { transform: translateY(4px); box-shadow: 0 0 0; }
h1 { font-size: 2rem; color: #ff5722; text-shadow: 2px 2px 0 #000; }
.canvas-wrapper { position: relative; background: #2a2a2a; border-radius: 10px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 1rem; }
canvas { background: #e0f7fa; border-radius: 5px; }
.controls { width: 100%; display: flex; justify-content: center; }
.dpad { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.row { display: flex; gap: 5px; }
.dpad button { width: 60px; height: 60px; font-size: 2rem; border-radius: 10px; border: none; background: #ffcc80; cursor: pointer; box-shadow: 0 4px 0 #ffa726; transition: transform 0.1s; }
.dpad button:active { transform: translateY(4px); box-shadow: 0 0 0; }
.overlay { position: absolute; inset: 0; background: rgba(30,30,30,0.95); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; border-radius: 10px; }
.overlay h2 { font-size: 2.5rem; color: #4caf50; margin-bottom: 1rem; }
.btn { background: #4caf50; border: none; padding: 10px 30px; font-size: 1.2rem; font-weight: 900; border-radius: 50px; cursor: pointer; color: white; font-family: 'Outfit'; }
