/* Flappy Bird tribute — page chrome. The game canvas is a fixed 288x512
 * logical surface scaled to fit the viewport while preserving the classic
 * tall portrait ratio as the visual anchor. */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(120% 90% at 50% 10%, #1b2733 0%, #10151c 58%, #0a0e13 100%);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #8fa3ad;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  overflow: hidden;
}

#stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #4ec0ca; /* matches the day sky so scaling edges blend */
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.65);
  touch-action: none;
  cursor: pointer;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#mute-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 20, 26, 0.45);
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
  transition: background-color 120ms ease;
}

#mute-btn:hover { background: rgba(9, 20, 26, 0.7); }

#mute-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

#page-footer {
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.55;
  text-align: center;
  padding: 0 14px;
}

@media (max-height: 560px) {
  #page-footer { display: none; }
}
