/* style.css - 176 Mobile Portrait 9:16 Pixel Art Game */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #06070b;
  color: #e6e8ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container {
  position: relative;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  max-width: 540px; /* Optional cap on large ultra-wide monitors, but perfectly scales */
  max-height: 960px;
  background-color: #0d0f18;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 80px rgba(180, 40, 60, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
}

/* Subtle overlay elements if needed (e.g. mute toggle button) */
#audio-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(15, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background 0.15s ease;
}

#audio-toggle:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile full-screen hint / subtle vignette */
.vignette-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  z-index: 5;
}
