/* Easyso Own Game (Balon Patlat) - Responsive CSS (2025-09-11) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #87ceeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  padding-top: var(--header-h);
}

/* 900x600 => 3:2 oran. Ekrana sığdır: min(100vw, 1.5 * 100vh) */
#cv {
  width: min(100vw, calc(100vh * 1.5));
  height: auto;         /* Görsel boyut, piksel tuvali ölçekler */
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* piksel oyunlarında net görüntü */
}

/* Oyun üstü UI */
.ui {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#restart {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  background: #111;
  color: #fff;
  cursor: pointer;
}
#restart:active { transform: translateY(1px); }

@media (max-width: 480px) {
  .ui { font-size: 14px; padding: 6px 10px; }
  #restart { padding: 8px 14px; }
}

/* Sabit header için düzenleme */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
