*{margin:0;padding:0;box-sizing:border-box}body{font-family:Arial,sans-serif;background-color:#1a1a2e;overflow:hidden;height:100vh;display:flex;justify-content:center;align-items:center}#app{width:100%;max-width:400px;height:100vh;display:flex;flex-direction:column;background-color:#0f0f1e;position:relative}#hud{flex-shrink:0;background-color:#16213e;color:#fff;padding:10px 15px;display:flex;justify-content:space-between;align-items:center;font-size:14px;min-height:60px}.hud-left,.hud-right{display:flex;flex-direction:column;gap:5px}.hud-left{align-items:flex-start}.hud-right{align-items:flex-end}.score-container,.high-score-container,.lives-container,.level-container{display:flex;gap:5px}.label{opacity:.8}#score,#high-score,#lives,#level{font-weight:700;color:gold}.sound-toggle{background:transparent;border:none;color:#fff;font-size:18px;cursor:pointer;padding:5px;margin-top:5px;opacity:.8;transition:opacity .2s}.sound-toggle:hover{opacity:1}.sound-toggle.muted{opacity:.5}#game-canvas{flex:1;width:100%;display:block;background-color:#0a0a0a;min-height:0}.touch-controls{flex-shrink:0;padding:12px 0 8px;display:flex;flex-direction:column;align-items:center;gap:10px;background:#10102a;border-top:1px solid rgba(255,255,255,.05)}.touch-row{display:flex;justify-content:center;gap:12px}.touch-button{width:60px;height:60px;border-radius:12px;border:2px solid rgba(255,255,255,.2);background:#ffffff14;color:#fff;font-size:22px;font-weight:700;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .1s,background .1s,border-color .1s}.touch-button:active,.touch-button.active{transform:scale(.95);background:#fff3;border-color:gold}.touch-button:focus{outline:none;border-color:gold}#ad-slot{flex-shrink:0;width:100%;height:90px;background-color:#2a2a3e;border-top:2px solid #3a3a4e;display:flex;align-items:center;justify-content:center;color:#666;font-size:12px}@media (min-width: 768px){body{background:linear-gradient(135deg,#1a1a2e,#16213e)}#app{box-shadow:0 0 30px #00000080;border-radius:10px;overflow:hidden;height:calc(100vh - 40px);max-height:800px}.touch-controls{padding:10px 0}.touch-button{width:50px;height:50px}}
