:root {
  --gok-ust: #4FC3F7; --gok-alt: #E1F5FE; --lacivert: #111111; --altin: #FFC107;
  --metin: #1B2A41; --kart: #ffffffee; --golge: 0 6px 0 rgba(0,0,0,.12);
  --yazi: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--yazi); color: var(--metin);
  background: linear-gradient(var(--gok-ust), var(--gok-alt) 75%);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
#sahne { position: relative; height: 100dvh; width: 100vw; overflow: hidden;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
.ekran { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom)); gap: 12px; }
.ekran[hidden] { display: none; }
h1 { font-size: 44px; margin: 8px 0; }
.baslik { font-size: 64px; color: var(--lacivert); text-shadow: 0 3px 0 #fff; margin: 0; }
.kucuk { font-size: 20px; text-align: center; margin: 0; }
.uyari { color: #C62828; font-size: 22px; font-weight: 700; }

button { font-family: inherit; color: inherit; border: 0; cursor: pointer; }
.buyuk-dugme { min-width: 260px; min-height: 96px; font-size: 42px; font-weight: 800; border-radius: 48px;
  background: #111; color: #fff; box-shadow: 0 6px 0 #0006; border: 4px solid #fff; }
.buyuk-dugme:active, .kare-dugme:active, .secenek:active { transform: translateY(4px); box-shadow: none; }
.kare-dugme { width: 72px; height: 72px; border-radius: 20px; font-size: 36px; background: var(--kart); box-shadow: var(--golge); }
.ust { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tuy-sayac { display: flex; align-items: center; gap: 8px; font-size: 40px; font-weight: 800;
  background: var(--kart); padding: 6px 20px; border-radius: 40px; box-shadow: var(--golge); min-height: 72px; }

/* Kartal Adam animasyonu */
.kartal { display: block; height: auto; max-width: 100%; pointer-events: none; }
.ucan { animation: suzul 3s ease-in-out infinite; }
@keyframes suzul { 50% { transform: translateY(-14px); } }
.sevinc { animation: zipla .7s ease-out; }
@keyframes zipla { 40% { transform: translateY(-30px) rotate(-6deg); } }

/* Harita */
#ekran-harita { justify-content: space-between; }
.daglar { display: flex; align-items: flex-end; justify-content: center; gap: 16px; width: 100%; flex: 1; max-height: 520px; }
.dag { flex: 1; max-width: 340px; min-height: 200px; display: flex; flex-direction: column; align-items: center;
  background: none; padding: 0; position: relative; }
.dag svg { width: 100%; height: auto; display: block; }
.dag .ad { font-size: 24px; font-weight: 800; background: var(--kart); padding: 8px 14px; border-radius: 20px;
  box-shadow: var(--golge); margin-top: -8px; text-align: center; }
.dag.kilitli { filter: grayscale(.85) opacity(.75); }
.dag .kilit { position: absolute; top: 34%; font-size: 52px; display: flex; align-items: center; gap: 4px;
  background: var(--kart); border-radius: 24px; padding: 4px 14px; font-weight: 800; font-size: 30px; }
.veli-link { position: absolute; right: 20px; bottom: max(12px, env(safe-area-inset-bottom));
  font-size: 16px; padding: 10px 16px; border-radius: 14px; background: #ffffff88; min-height: 44px; }

/* Soru */
.noktalar { display: flex; gap: 12px; }
.noktalar i { width: 26px; height: 26px; border-radius: 50%; background: #ffffff99; border: 3px solid #fff; }
.noktalar i.dolu { background: var(--altin); }
.noktalar i.simdi { border-color: var(--lacivert); }
.yonerge { font-size: 34px; font-weight: 800; text-align: center; margin: 4px 0; min-height: 44px; }
.soru-sahne { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  background: var(--kart); border-radius: 28px; padding: 18px; box-shadow: var(--golge); max-width: 100%; }
.soru-sahne:empty { display: none; }
.soru-yer { width: 92px; height: 92px; border: 5px dashed var(--lacivert); border-radius: 20px;
  display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--lacivert); }
.secenekler { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 8px; max-width: 100%; }
.secenek { min-width: 120px; min-height: 120px; padding: 12px; border-radius: 28px; background: #fff;
  box-shadow: var(--golge); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px;
  font-size: 60px; font-weight: 800; transition: opacity .3s, transform .2s; }
.secenek.grup { width: 210px; min-height: 180px; }
.secenek.soluk { opacity: .25; pointer-events: none; }
.secenek.dogru { background: #C8E6C9; outline: 6px solid #43A047; }
.secenek.salla { animation: salla .4s; }
@keyframes salla { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.kartal-kose { position: absolute; left: 12px; bottom: max(8px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; pointer-events: none; }
.balon { background: #fff; border-radius: 22px; padding: 12px 18px; font-size: 26px; font-weight: 800;
  max-width: 340px; margin: 0 0 80px -10px; box-shadow: var(--golge); }
.ucan-tuy { position: absolute; z-index: 9; pointer-events: none; animation: tuy-uc 1s ease-in forwards; }
@keyframes tuy-uc { to { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: .2; } }

/* Kanat Uçuşu */
.ucus { padding: 0; }
.ucus-ust { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 20px; right: 20px; z-index: 3;
  display: flex; gap: 16px; align-items: center; }
.sure-cubuk { flex: 1; height: 22px; border-radius: 12px; background: #ffffff88; overflow: hidden; }
.sure-cubuk i { display: block; height: 100%; width: 100%; background: var(--altin); transform-origin: left; }
.ucus-alan { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.ucus-alan > * { position: absolute; left: 0; top: 0; will-change: transform; }
.bulut { width: 180px; height: 90px; }
.ucus-ipucu { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  font-size: 24px; font-weight: 800; z-index: 3; pointer-events: none; }
.sallaniyor { animation: salla .4s; }

/* Kod / PIN */
.kod-kutu { font-size: 56px; letter-spacing: 16px; min-height: 76px; font-weight: 800; }
.tus-takimi { display: grid; grid-template-columns: repeat(3, 96px); gap: 14px; }
.tus-takimi button { height: 88px; font-size: 40px; font-weight: 800; border-radius: 24px; background: #fff; box-shadow: var(--golge); }


@media (max-height: 860px) {
  .yonerge { font-size: 28px; }
  .secenek { min-width: 100px; min-height: 100px; }
  .balon { font-size: 22px; margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
.dag-ikon { position: absolute; top: 48%; display: flex; gap: 2px; font-size: 26px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 0 #0004; pointer-events: none; }
#ekran-basla, #ekran-kod { justify-content: center; gap: 24px; }
.sag-ust { display: flex; align-items: center; gap: 14px; }
.veli-link { position: static; }
#harita-kartal { margin-top: 4vh; }
#ekran-soru .yonerge { margin-top: auto; }
#ekran-soru .secenekler { margin-bottom: auto; padding-bottom: 120px; }
@media (min-height: 900px) {
  .secenek { min-width: 150px; min-height: 150px; }
  .secenek.grup { width: 230px; min-height: 210px; }
  .yonerge { font-size: 40px; }
}
.veli-link { text-decoration: none; color: var(--metin); font-weight: 700; }
#harita-kartal .kartal, #basla-kartal .kartal { max-width: min(90vw, 480px); }
.ucus-ipucu { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 40px); }
