:root {
  --gok: #bfe6ff;
  --cimen: #7ccf5b;
  --sari: #ffd23f;
  --turuncu: #ff9f1c;
  --pembe: #ff6fa5;
  --mor: #8e7dff;
  --yazi: #3b2a1a;
  --kart: #ffffff;
  --golge: 0 8px 0 rgba(0, 0, 0, .18), 0 14px 24px rgba(0, 0, 0, .12);
  font-family: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  color: var(--yazi);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--gok);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  background: var(--gok) url("../assets/img/arkaplan.webp") center / cover no-repeat;
}

/* büyük yuvarlak ikon düğmeler (ev, müzik) */
.yuvarlak {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: var(--kart);
  box-shadow: var(--golge);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .12s;
}
.yuvarlak:active { transform: translateY(5px) scale(.96); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }

.ust-bar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 20;
  pointer-events: none;
}
.ust-bar > * { pointer-events: auto; }

/* başla perdesi: ilk dokunuşla sesi açar (tarayıcı kuralı) */
.perde {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(2px);
}
.perde button {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 8px solid #fff;
  background: var(--cimen);
  box-shadow: var(--golge);
  cursor: pointer;
  animation: nabiz 1.2s ease-in-out infinite;
}
.perde button::after {
  content: "";
  display: block;
  margin-left: 18px;
  border-left: 70px solid #fff;
  border-top: 44px solid transparent;
  border-bottom: 44px solid transparent;
}

/* seviye noktaları (üst ortada) */
.seviyeler { display: flex; gap: 10px; align-items: center; }
.seviyeler i {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .6); border: 4px solid #fff;
  transition: transform .2s;
}
.seviyeler i.tamam { background: var(--sari); }
.seviyeler i.simdi { background: var(--pembe); transform: scale(1.25); }

.tekrar { position: fixed; left: 16px; bottom: 16px; z-index: 20; }

/* oyun alanı: üst barın altındaki her şey */
.alan { position: fixed; inset: 100px 16px 16px; }

/* seviye sonu "ileri" düğmesi */
.ileri {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, .3);
}
.ileri.goster { display: grid; }
.ileri button {
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 8px solid #fff;
  background: var(--turuncu);
  box-shadow: var(--golge);
  cursor: pointer;
  animation: nabiz 1.2s ease-in-out infinite;
  display: grid; place-items: center;
}
.ileri button::after {
  content: "";
  margin-left: 14px;
  border-left: 62px solid #fff;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
}

@keyframes nabiz { 50% { transform: scale(1.08); } }
@keyframes zipla { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px); } }
@keyframes salla { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

.konfeti {
  position: fixed;
  top: -20px;
  width: 14px;
  height: 20px;
  border-radius: 4px;
  z-index: 40;
  pointer-events: none;
  animation: dus linear forwards;
}
@keyframes dus { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
