/* ============================================================
   TRUST ISSUES — Neo-Retro 8-Bit HD Styles
   ============================================================ */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0c0403;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', 'Silkscreen', monospace;
}

#stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

canvas#game {
  display: block;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Touch controls for mobile */
#touch-controls {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  z-index: 100;
}

#touch-controls.hidden {
  display: none !important;
}

.tc-group {
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

.tc-btn {
  width: 64px;
  height: 64px;
  background: #280654;
  color: #FFD166;
  border: 3px solid #5C189A;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 0 #120224;
}

.tc-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #120224;
  background: #4A1078;
}

.tc-small {
  width: 48px;
  height: 48px;
  align-self: flex-end;
  font-size: 16px;
}

.tc-jump {
  width: 72px;
  height: 72px;
  font-size: 24px;
}
