/* ── Kaos Kent · arayüz stilleri ── */
:root {
  --panel: rgba(12, 16, 28, 0.62);
  --kenar: rgba(255, 255, 255, 0.12);
  --yazi: #f1f5f9;
  --soluk: #9aa4b2;
  --sari: #ffd60a;
  --kirmizi: #ef476f;
  --yesil: #7cfc9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #0d1117; color: var(--yazi);
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  user-select: none; -webkit-user-select: none;
}

#oyun { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.gizli { display: none !important; }

.panel {
  background: var(--panel);
  border: 1px solid var(--kenar);
  border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

kbd {
  display: inline-block; min-width: 24px; padding: 2px 7px; margin: 0 2px;
  border-radius: 6px; background: rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid rgba(0, 0, 0, 0.4);
  font: 600 13px 'Rubik', sans-serif; color: var(--yazi); text-align: center;
}

/* ── HUD ── */
#hud { position: fixed; inset: 0; pointer-events: none; }

#sol-ust { position: absolute; top: 16px; left: 16px; padding: 10px 16px; }
#para { font-family: 'Bungee', 'Rubik', sans-serif; font-size: 28px; color: var(--yesil); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.satir { font-size: 14px; color: var(--soluk); margin-top: 2px; }
.satir b { color: #ff7ad9; }

#yildizlar { position: absolute; top: 14px; right: 18px; display: flex; gap: 2px; font-size: 36px; }
#yildizlar span { color: rgba(255, 255, 255, 0.16); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); transition: color .2s, transform .2s; }
#yildizlar span.dolu { color: var(--sari); transform: scale(1.1); text-shadow: 0 0 14px rgba(255, 214, 10, 0.7), 0 2px 3px rgba(0, 0, 0, 0.6); }
#yildizlar.ariyor span.dolu { animation: yanip 0.7s steps(2) infinite; }
@keyframes yanip { 50% { opacity: 0.25; } }

#gorev-panel {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 10px 22px 12px; text-align: center; min-width: 290px;
  border-top: 3px solid var(--gorev-renk, var(--sari));
}
#gorev-baslik { font-weight: 800; font-size: 18px; }
#gorev-detay { font-size: 14px; color: var(--soluk); margin-top: 2px; }
#gorev-sure { font-family: 'Bungee', sans-serif; font-size: 24px; margin-top: 4px; }
#gorev-sure.az { color: var(--kirmizi); animation: yanip 0.5s steps(2) infinite; }

#bildirimler {
  position: absolute; top: 128px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.bildirim {
  background: var(--panel); border: 1px solid var(--kenar);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: bildirimGir .25s ease-out, bildirimCik .4s ease-in 2.6s forwards;
}
@keyframes bildirimGir { from { opacity: 0; transform: translateY(-8px); } }
@keyframes bildirimCik { to { opacity: 0; transform: translateY(-8px); } }

#duyuru { position: absolute; top: 30%; left: 0; right: 0; text-align: center; opacity: 0; padding: 0 16px; }
#duyuru.goster { animation: duyuru 2.9s ease forwards; }
#duyuru h2 {
  font-family: 'Bungee', sans-serif; font-size: clamp(30px, 6vw, 64px); font-weight: 400;
  color: var(--duyuru-renk, var(--sari));
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.45);
}
#duyuru p { font-size: 18px; font-weight: 600; margin-top: 6px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); }
@keyframes duyuru {
  0% { opacity: 0; transform: scale(1.35); }
  10% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

#ipucu {
  position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--kenar);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}

#yakalanma {
  position: absolute; bottom: 180px; left: 50%; transform: translateX(-50%);
  text-align: center; font-family: 'Bungee', sans-serif; font-size: 20px; color: #4cc9f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
#yakalanma .cubuk { width: 240px; margin: 6px auto 0; }
#yakalanma .cubuk i { background: linear-gradient(90deg, #4cc9f0, #ef476f); }

.cubuk { width: 140px; height: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden; }
.cubuk i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ef476f, #ff8fab); border-radius: 99px; }
.cubuk.nitro i { background: linear-gradient(90deg, #4cc9f0, #b5179e); }

#sol-alt { position: absolute; left: 16px; bottom: 16px; padding: 12px 16px; }
#arac-ad { font-size: 13px; font-weight: 700; color: var(--soluk); margin-bottom: 2px; }
#hiz-kutu { display: flex; align-items: baseline; gap: 6px; }
#hiz { font-family: 'Bungee', sans-serif; font-size: 40px; line-height: 1; min-width: 70px; }
#hiz-kutu small { color: var(--soluk); font-weight: 600; }
.cubuk-satir { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 14px; }

#mini {
  position: absolute; right: 16px; bottom: 16px; width: 180px; height: 180px;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); background: #222;
}

/* ── Ekranlar ── */
.ekran {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(10, 12, 20, 0.25), rgba(10, 12, 20, 0.78));
}
.kart {
  background: rgba(14, 18, 30, 0.84); border: 1px solid var(--kenar); border-radius: 22px;
  padding: 28px 32px; max-width: 470px; width: 100%; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.kart.genis { max-width: 540px; }

h1 {
  font-family: 'Bungee', sans-serif; font-weight: 400; font-size: clamp(46px, 10vw, 76px); line-height: 0.95;
  color: var(--sari); text-shadow: 0 5px 0 #b5179e, 0 12px 30px rgba(0, 0, 0, 0.5);
}
h1 span { display: block; color: #4cc9f0; text-shadow: 0 5px 0 #3a0ca3, 0 12px 30px rgba(0, 0, 0, 0.5); }
h2 { font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 30px; color: var(--sari); }
.alt { color: var(--soluk); margin-top: 12px; font-weight: 600; }

.kontroller { margin-top: 18px; display: grid; gap: 6px; text-align: left; }
.kontroller div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.kontroller em { font-style: normal; color: var(--soluk); }
.ipucu-metin { margin-top: 16px; font-size: 14px; color: #ffb3e6; line-height: 1.5; }

button {
  font-family: 'Bungee', sans-serif; font-size: 22px; padding: 12px 40px; margin-top: 18px;
  border: 0; border-radius: 14px; cursor: pointer; color: #1b1b1b;
  background: linear-gradient(180deg, #ffd60a, #ff9f1c); box-shadow: 0 5px 0 #b86e00;
  transition: transform .1s, box-shadow .1s;
}
button:hover { transform: translateY(-2px); }
button:active { transform: translateY(3px); box-shadow: 0 2px 0 #b86e00; }
button.ikincil {
  background: rgba(255, 255, 255, 0.1); color: var(--yazi); box-shadow: none;
  font: 600 14px 'Rubik', sans-serif; padding: 8px 20px; margin-top: 12px;
}

#istatistik { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ist { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px; }
.ist b { display: block; font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 22px; }
.ist span { font-size: 12px; color: var(--soluk); }

#magaza-para { margin-top: 6px; font-family: 'Bungee', sans-serif; color: var(--yesil); font-size: 18px; }
.magaza-oge {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 8px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent;
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.magaza-oge:hover { border-color: rgba(255, 214, 10, 0.55); background: rgba(255, 255, 255, 0.08); }
.magaza-oge.kapali { opacity: 0.45; cursor: default; }
.magaza-oge.kapali:hover { border-color: transparent; background: rgba(255, 255, 255, 0.05); }
.magaza-oge .ikon { font-size: 26px; }
.magaza-oge .bilgi { flex: 1; }
.magaza-oge .ad { font-weight: 700; }
.magaza-oge .ac { font-size: 13px; color: var(--soluk); }
.magaza-oge .fiyat { font-family: 'Bungee', sans-serif; color: var(--yesil); }

@media (max-width: 640px) {
  #mini { width: 120px; height: 120px; }
  #para { font-size: 20px; }
  #yildizlar { font-size: 24px; }
  #hiz { font-size: 28px; }
  #gorev-panel { top: 70px; min-width: 0; width: calc(100% - 32px); }
  .kart { padding: 22px 18px; }
}
