/* =====================================================================
   Xəritə: bir uzun şaquli yol, dünyadan dünyaya keçir.
   Hər dünyanın rəngi data/dunyalar.js-dən gəlir (inline style).
   ===================================================================== */

body.xerite-sehife { background: #cdf3ff; }
.xerite { max-width: 640px; margin: 0 auto; padding: 0 0 120px; }
.xerite-ust { padding: 0 16px; }

/* ---------- Dünya bölməsi ---------- */
.dunya {
  position: relative; overflow: hidden;
  margin: 16px 0 0; border-radius: 36px;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .06);
}
.dunya-banner {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  margin: 16px 16px 0; padding: 12px 16px;
  background: rgba(255, 255, 255, .85); border-radius: 26px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 0 rgba(43, 35, 80, .12);
}
.belediyci { font-size: 56px; line-height: 1; animation: atil 2.2s ease-in-out infinite; flex: none; }
.dunya-banner-metn { flex: 1; min-width: 0; }
.dunya-banner-ad { font-family: var(--sirift-bas); font-weight: 800; font-size: 22px; line-height: 1.1; }
.dunya-banner-movzu { font-size: 15px; color: var(--metn-zeif); }
.dunya-banner-ulduz { font-weight: 900; color: #a77300; white-space: nowrap; }
.dunya-banner .nisan { position: static; display: inline-block; margin-top: 4px; }

/* ---------- Bəzəklər ---------- */
.dekor { position: absolute; z-index: 1; pointer-events: none; line-height: 1; }
.dekor.yellen   { animation: yellen 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.dekor.uzme     { animation: uzme 3.6s ease-in-out infinite; }
.dekor.parilti  { animation: parilti 2.4s ease-in-out infinite; }
.dekor.kec      { left: 0; animation: kec-saga 22s linear infinite; }
.dekor.kec.sola { animation-name: kec-sola; }
.dekor.uc       { left: 0; animation: uc 16s linear infinite; }
.dekor.qabarciq { animation: qabarciq 5s ease-in infinite; }

/* ---------- Yol ---------- */
.yol-svg { position: absolute; left: 0; top: 0; width: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.yol-esas { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 18; stroke-linecap: round; }
.yol-qiriq { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 16; opacity: .55; }
.yol-kecilib { fill: none; stroke-width: 10; stroke-linecap: round; }

/* ---------- Mərhələ düymələri ---------- */
.dayanacaq {
  position: absolute; z-index: 4; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.merhele {
  position: relative;
  width: 78px; height: 78px; border-radius: 50%;
  border: 6px solid var(--ag);
  background: var(--gunes); color: var(--metn);
  box-shadow: 0 7px 0 var(--gunes-tund), 0 12px 20px rgba(43, 35, 80, .18);
  font: inherit; font-family: var(--sirift-bas); font-size: 32px; font-weight: 800;
  cursor: pointer; transition: transform .1s, box-shadow .1s;
  display: grid; place-items: center;
}
.merhele:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--gunes-tund); }
.merhele.kecilib { background: var(--nane); box-shadow: 0 7px 0 var(--nane-tund), 0 12px 20px rgba(43, 35, 80, .18); }
.merhele.boss { width: 96px; height: 96px; background: var(--mercan); color: var(--ag); font-size: 42px; box-shadow: 0 7px 0 var(--mercan-tund), 0 12px 20px rgba(43, 35, 80, .2); }
.merhele.boss.kecilib { background: var(--benovse); box-shadow: 0 7px 0 var(--benovse-tund); }
.merhele.kilidli { background: #e9e5f5; color: #8e88a8; font-size: 28px; box-shadow: 0 7px 0 var(--kilid); }
.merhele.cari { width: 92px; height: 92px; animation: atil 1.4s ease-in-out infinite; }
.merhele.cari.boss { width: 104px; height: 104px; }
.merhele.cari::before, .merhele.cari::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .9); animation: halqa 1.6s ease-out infinite;
}
.merhele.cari::after { animation-delay: .8s; }
.merhele.titre { animation: titre .5s ease-in-out; }
.dayanacaq-ulduz {
  margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  font-size: 16px; letter-spacing: 1px; color: var(--gunes-tund); line-height: 1.3;
}
.dayanacaq-ulduz .bos { color: var(--kilid); }

/* Hazırkı mərhələnin yanında maskot və danışıq balonu */
.yol-maskot { position: absolute; z-index: 5; transform: translate(-50%, -60%); pointer-events: none; text-align: center; }
.yol-maskot .maskot { font-size: 54px; animation: atil 1.4s ease-in-out infinite; display: inline-block; }
.balon {
  position: relative; display: inline-block; margin-bottom: 6px; padding: 8px 12px; border-radius: 16px;
  background: var(--ag); font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(43, 35, 80, .12); animation: uzme 2.6s ease-in-out infinite;
}
.balon::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--ag); border-bottom: 0;
}

/* ---------- Bağlı dünya (duman) ---------- */
.duman {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(5px) saturate(.6); backdrop-filter: blur(5px) saturate(.6);
}
.duman-ikon { font-size: 72px; animation: uzme 3s ease-in-out infinite; }
.duman-metn { font-family: var(--sirift-bas); font-size: 22px; font-weight: 800; max-width: 300px; }
.duman-alt { font-size: 15px; color: var(--metn-zeif); max-width: 300px; }
.duman .bulud { position: absolute; font-size: 90px; opacity: .9; animation: kec-saga 30s linear infinite; }

/* ---------- Dünyalar arası keçid (Quşlar səması) ---------- */
.kecid { position: relative; height: 120px; overflow: hidden; }
.kecid .dekor { top: 30%; }

/* ---------- Tezliklə ---------- */
.tezlikle .dunya-banner { margin-bottom: 16px; }

/* ---------- Alt naviqasiya ---------- */
.alt-nav {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 480px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
  background: rgba(255, 255, 255, .72); border-radius: 30px;
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 30px rgba(43, 35, 80, .16), 0 1px 3px rgba(43, 35, 80, .08);
}
.alt-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; min-height: 64px; border-radius: 20px;
  color: var(--metn); text-decoration: none; font-weight: 800; font-size: 13px;
}
.alt-nav a .nav-ikon { font-size: 30px; line-height: 1.1; transition: transform .15s; }
.alt-nav a:active .nav-ikon { transform: scale(.85); }
.alt-nav a.aktiv { background: var(--benovse-acig); color: var(--benovse-tund); }
.alt-nav .sehv-say { position: absolute; top: 2px; right: calc(50% - 30px); font-size: 12px; padding: 1px 7px; }
.alt-nav.dord { grid-template-columns: repeat(4, 1fr); }
.merhele.odenisli { background: #f1ecff; color: var(--benovse); box-shadow: 0 7px 0 #d6cbff; }
.fenn-nisan {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 6px;
  font-size: 12px; vertical-align: -4px;
}
.fenn-nisan:empty { display: none; }
.ust .profil-duyme > div:last-child { min-width: 0; }
.ust .sinif { font-size: 13px; line-height: 1.25; }

/* ---------- Mərhələ kartı (aşağıdan çıxır) ---------- */
.vereq-fon { position: fixed; inset: 0; z-index: 45; background: rgba(20, 16, 40, .4); display: none; }
.vereq-fon.gorunur { display: block; animation: fon-gel .25s ease both; }
.vereq {
  position: fixed; left: 50%; bottom: 0; z-index: 46; transform: translate(-50%, 110%);
  width: 100%; max-width: 520px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--ag); border-radius: 28px 28px 0 0; text-align: center;
  box-shadow: 0 -10px 40px rgba(20, 16, 40, .2);
  transition: transform .42s cubic-bezier(.2, .9, .3, 1);
}
.vereq.gorunur { transform: translate(-50%, var(--cek, 0)); }
.vereq-ikon { font-size: 64px; line-height: 1.1; }
.vereq-ad { font-family: var(--sirift-bas); font-size: 26px; font-weight: 800; margin: 4px 0; }
.vereq-ulduz { font-size: 34px; letter-spacing: 4px; color: var(--gunes); }
.vereq-ulduz .bos { color: var(--kilid); }
.vereq-qeyd { color: var(--metn-zeif); margin: 6px 0 0; line-height: 1.5; }
.vereq-qeyd b { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--benovse-acig); color: var(--benovse-tund); font-size: 15px; }
.xerite { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.vereq-derslik { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--metn-zeif); }
.alt-nav a { border-radius: 24px; transition: background-color .2s, color .2s; }
.vereq .esas-duyme { width: 100%; font-size: 24px; min-height: 64px; }

@media (min-width: 700px) {
  .merhele { width: 88px; height: 88px; }
  .merhele.cari { width: 100px; height: 100px; }
  .merhele.boss { width: 104px; height: 104px; }
}
