/* Bilgi Adası — ortak stiller (portal + oyunlar) */
:root {
  --gok-1: #7fd3ff;
  --gok-2: #c8efff;
  --zemin: #fff9ef;
  --metin: #2b2350;
  --metin-soluk: #6b6390;
  --beyaz: #ffffff;

  --mat: #ff8a3d;      /* Matematik */
  --mat-koyu: #e0661a;
  --tr: #8c5cf6;       /* Türkçe */
  --tr-koyu: #6a3be0;
  --hb: #2fbf71;       /* Hayat Bilgisi */
  --hb-koyu: #1f9a57;
  --fen: #2f9bff;      /* Fen */
  --fen-koyu: #1c78d6;

  --dogru: #2fbf71;
  --yanlis: #ff5a6e;
  --yildiz: #ffc93c;

  --golge: 0 6px 0 rgba(43, 35, 80, .18);
  --radius: 22px;
  --font: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--metin);
  background: var(--zemin);
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

/* 3D "basılabilir" buton */
.btn {
  --renk: var(--fen);
  --renk-koyu: var(--fen-koyu);
  border: 0;
  border-radius: 18px;
  padding: 12px 22px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--renk);
  box-shadow: 0 6px 0 var(--renk-koyu);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  user-select: none;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--renk-koyu); }
.btn:focus-visible { outline: 4px solid #2b2350; outline-offset: 3px; }
.btn.turuncu { --renk: var(--mat); --renk-koyu: var(--mat-koyu); }
.btn.mor { --renk: var(--tr); --renk-koyu: var(--tr-koyu); }
.btn.yesil { --renk: var(--hb); --renk-koyu: var(--hb-koyu); }
.btn.beyaz { --renk: #fff; --renk-koyu: #d9d3ee; color: var(--metin); }

.ikon-btn {
  width: 48px; height: 48px;
  border: 0; border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 #d9d3ee;
  font-size: 1.4rem;
  display: grid; place-items: center;
}
.ikon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9d3ee; }

.yildiz-sayac {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px 6px 10px;
  font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 4px 0 #d9d3ee;
}
.yildiz-sayac .y { color: var(--yildiz); font-size: 1.4rem; line-height: 1; }

/* Maskot konuşma balonu */
.balon-konusma {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--golge);
}

/* Oyun sonu yıldızları */
.sonuc-yildizlar { display: flex; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.sonuc-yildizlar span {
  font-size: 3.4rem; line-height: 1;
  color: #e3dcf5;
  transform: scale(.4); opacity: 0;
  animation: yildizGel .5s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.sonuc-yildizlar span.dolu { color: var(--yildiz); text-shadow: 0 4px 0 #e0a512; }
.sonuc-yildizlar span:nth-child(2) { animation-delay: .25s; font-size: 4.2rem; }
.sonuc-yildizlar span:nth-child(3) { animation-delay: .5s; }
@keyframes yildizGel { to { transform: scale(1); opacity: 1; } }

.titre { animation: titre .4s; }
@keyframes titre {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

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