/* 9:16 Dikey Mobil Prototip Kabugu — Sifir dis bagimlilik, itch.io uyumlu */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #1d2436 0%, #0d1018 75%);
  color: #f6f4ef;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.stage-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.phone-frame {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  background: #10141f;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (min-width: 540px) and (min-height: 680px) {
  .stage-shell {
    padding: 14px;
  }

  .phone-frame {
    height: min(94dvh, 860px);
    border-radius: 22px;
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.65),
      0 0 0 2px rgba(255, 255, 255, 0.11);
  }
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.mute-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 18, 28, 0.56);
  color: #f8fafc;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 90ms ease, background 120ms ease;
}

.mute-btn:active {
  transform: scale(0.92);
}

.mute-btn[aria-pressed='true'] {
  opacity: 0.62;
}
