* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #141228;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; color: #e8dcc4; }
#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
#hud { position: fixed; top: 10px; left: 0; right: 0; pointer-events: none; display: flex; justify-content: center; }
.hud-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  background: rgba(20,18,40,.72); border: 1px solid rgba(84,230,210,.35);
  border-radius: 10px; padding: 8px 14px; font-size: 14px; letter-spacing: .04em; }
.hud-row b { color: #ffb454; }
#hud-layer b, #hud-layer { color: #54e6d2; }
#touch-controls { position: fixed; bottom: 14px; left: 0; right: 0;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px;
  pointer-events: none; }
#touch-controls button, #touch-controls .tc-group { pointer-events: auto; }
.tc-group { display: flex; gap: 10px; }
#touch-controls button {
  width: 56px; height: 56px; border-radius: 14px; font-size: 22px;
  color: #e8dcc4; background: rgba(36,31,74,.8);
  border: 1px solid rgba(84,230,210,.5); touch-action: none; user-select: none;
  -webkit-tap-highlight-color: transparent; cursor: pointer; }
#touch-controls button:active { background: rgba(84,230,210,.35); }
.tc-small { width: auto !important; height: 44px !important; padding: 0 14px; font-size: 13px !important; letter-spacing: .1em; }
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(12,10,26,.78); z-index: 10; }
.panel { max-width: 560px; width: calc(100% - 40px); padding: 28px 30px; text-align: center;
  background: linear-gradient(160deg, rgba(36,31,74,.96), rgba(20,18,40,.96));
  border: 1px solid rgba(84,230,210,.4); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.panel h1 { font-size: clamp(28px, 7vw, 44px); letter-spacing: .35em; color: #ffe3a8; margin-bottom: 12px; }
.panel p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; color: #cfc4e8; }
.keys { list-style: none; text-align: left; display: inline-block; margin: 6px 0 18px; font-size: 13.5px; line-height: 1.9; }
.keys b { color: #54e6d2; }
.btn { display: inline-block; padding: 13px 34px; border-radius: 999px; text-decoration: none;
  font-weight: 700; letter-spacing: .12em; font-size: 15px; color: #141228;
  background: linear-gradient(90deg, #ffb454, #54e6d2); cursor: pointer; }
.btn:active { transform: translateY(1px); }
#ov-why { color: #ffb454; min-height: 1em; }
@media (max-width: 480px) {
  .hud-row { font-size: 12px; gap: 10px; }
  #touch-controls button { width: 50px; height: 50px; }
}
