/* Flappy Bird replica — stage layout.
   The game renders at a fixed 288x512 logical resolution on a canvas that is
   scaled (nearest-neighbour) to the largest size that fits the viewport while
   preserving the original tall portrait ratio. */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#screen {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #4ec0ca;
  touch-action: none;
  cursor: pointer;
  /* Sized by JS to preserve the 288:512 ratio; these are safe fallbacks. */
  width: min(100vw, calc(100vh * 0.5625));
  height: min(100vh, calc(100vw / 0.5625));
}

#mute {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 38px;
  height: 34px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

#mute canvas {
  width: 19px;
  height: 17px;
  image-rendering: pixelated;
}

#mute:hover { background: rgba(0, 0, 0, 0.45); }
#mute:active { transform: translateY(1px); }
