@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&display=swap');

:root {
  --krem: #fdf3e3;
  --krem-koyu: #f3dfc2;
  --turuncu: #e8743b;
  --turuncu-koyu: #c95a26;
  --kirmizi: #c0392b;
  --kahve: #4a2f1e;
  --kahve-acik: #8a6a55;
  --beyaz: #fffaf2;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--krem);
  color: var(--kahve);
  font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  overscroll-behavior: none;
}

a { color: inherit; }

.dugme {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  background: var(--turuncu);
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--turuncu-koyu);
  transition: transform .08s, box-shadow .08s;
}
.dugme:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--turuncu-koyu); }
.dugme.ikincil { background: var(--beyaz); color: var(--kahve); box-shadow: 0 5px 0 var(--krem-koyu); }

/* Oyun sayfası iskeleti */
.oyun {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.ust .geri, .ust .ses {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--beyaz);
  box-shadow: 0 3px 0 var(--krem-koyu);
  font-size: 18px; text-decoration: none; cursor: pointer;
  color: var(--kahve);
  font-family: inherit;
}
.ust .bilgi { flex: 1; display: flex; justify-content: space-around; gap: 8px; }
.ust .bilgi span { white-space: nowrap; }
.ust small { display: block; font-size: 11px; font-weight: 500; color: var(--kahve-acik); margin-bottom: 3px; }

.sahne { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
canvas { display: block; border-radius: 18px; }

.perde {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(253, 243, 227, .93);
  text-align: center;
  padding: 24px;
  z-index: 5;
}
.perde[hidden] { display: none; }
.perde h1 { font-size: 40px; line-height: 1; margin: 0 0 10px; color: var(--turuncu-koyu); }
.perde p { font-size: 18px; line-height: 1.35; margin: 0 auto 20px; max-width: 320px; font-weight: 500; }
.perde .skor { font-size: 54px; font-weight: 800; line-height: 1; margin: 0 0 6px; }
.perde .dugmeler { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.perde .yuzler { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.perde .yuzler img {
  width: 84px; height: 84px; object-fit: cover; object-position: 50% 62%;
  border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(74,47,30,.2);
}
