* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.stage { position: fixed; inset: 0; background: #000; overflow: hidden; }
.frame {
  position: absolute;
  background-image: url('/assets/background.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #000;
}
.hit {
  position: absolute;
  left: 23.5%; top: 64.9%; width: 53%; height: 24.8%;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  border-radius: 18px;
}
.hit:active { transform: scale(0.97); filter: brightness(0.9); }
.flash {
  position: fixed; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.flash.on { opacity: 0.35; }
.msg {
  position: fixed;
  right: 12px; bottom: 12px;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
  font-family: system-ui, sans-serif;
}
.msg.on { opacity: 1; }
.msg.err { background: rgba(220,40,40,0.85); }
