/* Rigor Oyun Bahçesi — ortak stil (5 yaş, dokunmatik + fare) */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

body {
  background: linear-gradient(160deg, #7ed6ff 0%, #b9f0ff 45%, #d9ffe0 100%);
  color: #17324a;
  overflow: hidden;
}

/* --- Geri (ev) butonu — her oyunun sol üstünde --- */
.ev {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 90;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 0 #b7ccd8, 0 6px 14px rgba(0, 0, 0, .18);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ev:active { transform: translateY(3px); box-shadow: 0 1px 0 #b7ccd8; }

/* --- Puan / durum rozeti --- */
.rozet {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 90;
  background: #fff;
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 0 #b7ccd8, 0 6px 14px rgba(0, 0, 0, .18);
  min-width: 90px;
  text-align: center;
}

/* --- Büyük yuvarlak buton --- */
.dugme {
  border: none;
  border-radius: 26px;
  padding: 18px 34px;
  font-size: 26px;
  font-weight: bold;
  font-family: inherit;
  color: #fff;
  background: #ff7043;
  box-shadow: 0 5px 0 #d1502a;
  cursor: pointer;
}
.dugme:active { transform: translateY(4px); box-shadow: 0 1px 0 #d1502a; }

/* --- Kutlama katmanı --- */
.kutlama {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(255, 255, 255, .88);
  text-align: center;
}
.kutlama.acik { display: flex; }
.kutlama .yildiz { font-size: 90px; animation: zipla .6s ease-in-out infinite alternate; }
.kutlama p { font-size: 38px; margin: 0; font-weight: bold; color: #1c7a3e; }

@keyframes zipla {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-18px) scale(1.12); }
}

canvas { display: block; touch-action: none; }
