/* =====================================================================
   3 Ulduz — əsas stil (mobil-first, 1–2-ci sinif uşaqları üçün)
   Palitra "Şirniyyat-pop": canlı, amma 6 əsas rəng + isti açıq səth.
   Rəngləri dəyişmək üçün yalnız :root-dakı dəyişənləri dəyiş.
   ===================================================================== */

/* Bayraq emojiləri (🇦🇿 🇬🇧) Windows-da hərf kimi görünür ("AZ", "GB").
   Bu şrift yalnız bayraq simvollarına aiddir (unicode-range), qalan mətnə toxunmur.
   Mənbə: Twemoji Country Flags (CC-BY 4.0), fonts/ qovluğunda saxlanılır. */
@font-face {
  font-family: "Bayraq";
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  font-display: swap;
}

:root {
  /* Əsas rənglər */
  --benovse: #7c5cff;
  --benovse-tund: #5a3fd9;
  --benovse-acig: #efeaff;
  --mercan: #ff6b6b;
  --mercan-tund: #d94848;
  --gunes: #ffc93c;
  --gunes-tund: #e0a400;
  --nane: #2ed3a0;
  --nane-tund: #13a87b;
  --goy: #3db4ff;
  --goy-tund: #1a8fd8;
  --narinci: #ff9f43;

  /* Mətn və səthlər */
  --metn: #2b2350;
  --metn-zeif: #6b6390;
  --seth: #fff8ec;
  --ag: #ffffff;
  --xett: #ece6ff;
  --kilid: #c9c3dd;

  /* Vəziyyət (həmişə ikon + söz ilə birlikdə) */
  --ugur: #0f7a5a;
  --ugur-fon: #dcfaef;
  --sehv: #c0392b;
  --sehv-fon: #ffe6e3;

  /* Köhnə adlar (saat və s. üçün) */
  --deniz-ust: var(--goy);
  --deniz-alt: var(--goy-tund);
  --yasil: var(--nane-tund);
  --qizil: var(--gunes);
  --boss: var(--mercan);

  --sema-fon: linear-gradient(180deg, #cdf3ff 0%, #e9f9ff 45%, #fff5dc 100%);
  --kolge: 0 6px 0 rgba(43, 35, 80, .14);
  --kolge-yumsaq: 0 10px 24px rgba(43, 35, 80, .12);
  --radius: 24px;
  --sirift-bas: "Bayraq", "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  --sirift: "Bayraq", "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sirift);
  font-weight: 600;
  color: var(--metn);
  background: var(--seth);
  background-image: var(--sema-fon);
  background-attachment: fixed;
}
/* Valideyn səhifələri: eyni palitranın sakit versiyası */
body.sakit { background: #f6f4fb; background-image: none; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

h1, h2, h3, .dunya-ad, .netice-soz, .sual-metn, .bolme-basliq { font-family: var(--sirift-bas); }

:focus-visible { outline: 4px solid var(--benovse); outline-offset: 3px; }

/* ---------- Yuxarı panel ---------- */
.ust {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--xett);
}
.ust-sol { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Uşağın adı hərf-hərf bölünməsin: bir sətir, sığmırsa "…" */
.ust .profil-duyme { min-width: 0; }
.ust .profil-duyme .dunya-ad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust .profil-duyme .sinif { white-space: nowrap; }
@media (max-width: 360px) {
  .ust { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .ust .ust-sol, .ust .profil-duyme { gap: 6px; }
  .ust .profil-duyme .maskot { font-size: 32px; }
  .ust .ust-sag { gap: 5px; }
  .ust .qepik-kutu { padding: 6px 10px; }
  .ust .ikon-duyme, .ust .valideyn-kecid { width: 40px; height: 40px; min-width: 40px; }
}
.ust-sag { display: flex; align-items: center; gap: 8px; }
.maskot { font-size: 40px; line-height: 1; }
.maskot.boyuk { font-size: 96px; }
.dunya-ad { font-weight: 800; font-size: 20px; line-height: 1.1; }
.sinif { font-size: 14px; color: var(--metn-zeif); }
.qepik-kutu {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gunes); padding: 8px 14px; border-radius: 999px;
  font-weight: 900; font-size: 18px; box-shadow: 0 4px 0 var(--gunes-tund);
}
.qepik-kutu.kicik { padding: 4px 10px; font-size: 15px; box-shadow: 0 3px 0 var(--gunes-tund); }
.ikon-duyme, .geri, .valideyn-kecid {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: var(--benovse-acig); color: var(--metn); text-decoration: none;
  font: inherit; font-size: 22px; font-weight: 900;
  box-shadow: 0 4px 0 var(--xett);
}
.ikon-duyme:active, .geri:active, .valideyn-kecid:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--xett); }

.bolme-basliq { color: var(--metn); margin: 24px 4px 12px; font-size: 24px; font-weight: 800; }

/* ---------- Düymələr (qalın "3D") ---------- */
.esas-duyme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 14px 26px; min-height: 56px;
  background: var(--gunes); color: var(--metn); text-decoration: none;
  border: none; border-radius: 999px; box-shadow: 0 6px 0 var(--gunes-tund);
  font: inherit; font-family: var(--sirift-bas); font-weight: 800; font-size: 20px; cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.esas-duyme:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gunes-tund); }
.esas-duyme:disabled { opacity: .45; cursor: default; transform: none; }
.esas-duyme.benovse { background: var(--benovse); color: var(--ag); box-shadow: 0 6px 0 var(--benovse-tund); }
.esas-duyme.nane { background: var(--nane); box-shadow: 0 6px 0 var(--nane-tund); }
.esas-duyme.whatsapp { background: #25d366; color: #fff; box-shadow: 0 6px 0 #179c4b; }
.esas-duyme.qiymet.catmir { background: #eeeaf7; color: var(--metn-zeif); box-shadow: 0 6px 0 var(--kilid); }

.ipucu-duyme, .ikinci-duyme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 18px; min-height: 52px; border: none; border-radius: 999px;
  background: var(--ag); color: var(--metn); font: inherit; font-weight: 800; font-size: 17px;
  box-shadow: 0 5px 0 var(--xett); cursor: pointer; text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.ipucu-duyme:active, .ikinci-duyme:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--xett); }
.ipucu-duyme:disabled { opacity: .55; }
.ikinci-duyme.genis { width: 100%; margin-top: 14px; background: var(--benovse-acig); }
.ikinci-duyme.qirmizi { background: var(--sehv-fon); color: var(--sehv); }

/* ---------- Kartlar ---------- */
.kart {
  margin-top: 20px; padding: 24px 20px;
  background: var(--ag); border-radius: var(--radius);
  box-shadow: var(--kolge-yumsaq);
  border: 3px solid var(--xett);
}
.kart.merkez { text-align: center; }

/* ---------- Bildiriş ---------- */
.mesaj {
  position: fixed; left: 50%; bottom: 96px; z-index: 50; transform: translate(-50%, 220px);
  max-width: calc(100% - 32px);
  background: var(--metn); color: var(--ag);
  padding: 14px 22px; border-radius: 20px; font-weight: 800; font-size: 17px; text-align: center;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.mesaj.gorunur { transform: translate(-50%, 0); }

/* ---------- Mərhələ ekranı ---------- */
.oyun-ust { gap: 12px; }
.oyun-ust-orta { flex: 1; min-width: 0; }
.oyun-ust-sag { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.merhele-basliq { font-weight: 800; font-size: 16px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irelileme { height: 16px; background: var(--xett); border-radius: 999px; overflow: hidden; }
.irelileme-dolu {
  height: 100%; width: 0; border-radius: 999px; transition: width .4s cubic-bezier(.34, 1.56, .64, 1);
  background: linear-gradient(90deg, var(--nane), var(--goy));
}
.sual-sayi { flex: none; font-weight: 900; font-size: 16px; }

.sual-ust { display: flex; align-items: flex-start; gap: 10px; }
.sual-ust .sual-metn { flex: 1; }
.ses-duyme {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--goy); color: var(--ag); font-size: 26px; box-shadow: 0 5px 0 var(--goy-tund);
}
.ses-duyme:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--goy-tund); }
.ses-duyme.danisir { animation: nebz 1s ease-in-out infinite; }

.sual-metn { font-size: 26px; font-weight: 800; line-height: 1.35; margin: 0 0 20px; }
.sual-metn.kicik { font-size: 19px; margin-bottom: 10px; }

/* Şəkilli suallar: emojilər bir-bir "pop" ilə çıxır */
.sekil-qutu {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  margin: 0 0 20px; padding: 16px; border-radius: 20px; background: var(--benovse-acig);
  font-size: 44px; line-height: 1.15;
}
.sekil-qutu .emoji { display: inline-block; animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.sekil-qutu .ayirici { font-size: 34px; font-weight: 900; color: var(--benovse); align-self: center; padding: 0 4px; }
.sekil-qutu.kicik { font-size: 28px; padding: 10px; }
/* "A | B" şəkilləri: hər tərəf ayrıca ağ qutuda */
.sekil-terefler { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; width: 100%; }
.sekil-teref {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 6px; border-radius: 16px; background: var(--ag); border: 3px dashed var(--benovse);
}
.sekil-teref .teref-ad { font-size: 15px; font-weight: 900; color: var(--benovse); text-transform: uppercase; letter-spacing: .5px; }
.sekil-teref .teref-ici { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.sekil-qutu .sekil-teref .emoji { font-size: .8em; }
@media (max-width: 380px) { .sekil-qutu .sekil-teref .emoji { font-size: .6em; } .sekil-terefler { gap: 6px; } }

.variantlar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.variant {
  min-height: 80px; padding: 8px; border: 4px solid var(--xett); border-radius: 22px;
  background: var(--ag); font: inherit; font-family: var(--sirift-bas); font-size: 32px; font-weight: 800; color: var(--metn);
  cursor: pointer; box-shadow: 0 6px 0 var(--xett);
  transition: transform .08s, box-shadow .08s, border-color .15s, background .15s;
}
.variant:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--xett); }
.variant.secilib {
  border-color: var(--benovse); background: var(--benovse-acig); box-shadow: 0 6px 0 var(--benovse);
  animation: secim .35s cubic-bezier(.34, 1.56, .64, 1);
}
.variant.uzun { font-size: 20px; line-height: 1.2; }
.variantlar.tek-sutun { grid-template-columns: 1fr; }
.variantlar.tek-sutun .variant { min-height: 64px; padding: 10px 16px; }
/* Tək sayda variant: sonuncu bütün eni tutur (boş xana qalmasın) */
.variantlar:not(.tek-sutun) .variant:last-child:nth-child(odd) { grid-column: 1 / -1; }
.variant.sekilli { font-size: 26px; letter-spacing: 2px; line-height: 1.2; }

/* ---------- WhatsApp əlaqə düyməsi (qarşılama ekranı, valideyn paneli) ---------- */
.whatsapp-uzen {
  /* Yuxarı sağ küncdə, loqonun yanında — heç nəyin üstünə düşmür */
  position: fixed; z-index: 30; right: max(12px, env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top));
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px 0 10px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 0 #1da851, 0 10px 24px rgba(37, 211, 102, .4);
  animation: yuxari-cix .6s .9s cubic-bezier(.2, .9, .3, 1) both;
}
.whatsapp-uzen:active { transform: translateY(4px); box-shadow: 0 2px 0 #1da851; }
.whatsapp-uzen-ikon { display: grid; place-items: center; font-size: 26px; line-height: 0; }
.whatsapp-uzen::after {            /* yumşaq nəbz halqası */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: wa-nebz 2.4s ease-out 2s infinite; pointer-events: none;
}
@keyframes wa-nebz { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
/* Dar ekranda yalnız dairəvi ikon (loqo ilə toqquşmasın) */
@media (max-width: 520px) { .whatsapp-uzen-yazi { display: none; } .whatsapp-uzen { width: 46px; padding: 0; justify-content: center; } }

/* ---------- Cavabdan sonra: yaşıl — düz, qırmızı — səhv (js/oyun.js cavabGosterisi) ---------- */
#ekran.yoxlanilir .sual-kart, #ekran.yoxlanilir .alt-duymeler { pointer-events: none; }
#ekran.yoxlanilir .alt-duymeler { opacity: .45; transition: opacity .2s; }
.sual-kart { position: relative; transition: border-color .2s, background .2s, box-shadow .2s; }
.variant.duz, .variant.duz-goster {
  border-color: #22b07d; background: #d8f8ea; color: var(--ugur); box-shadow: 0 6px 0 #22b07d;
}
.variant.duz { animation: sicra .5s cubic-bezier(.34, 1.56, .64, 1); }
.variant.duz-goster { animation: nebz .8s ease-in-out 2; }
.variant.sehv {
  border-color: #ef4b3f; background: #ffe3e0; color: var(--sehv); box-shadow: 0 6px 0 #ef4b3f;
  animation: silkele .5s ease-in-out;
}
.variant.solgun { opacity: .45; transform: scale(.97); }
.sual-kart.kart-duz { box-shadow: 0 0 0 5px #22b07d, 0 14px 30px rgba(34, 176, 125, .25); background: #f1fdf7; animation: sicra .5s cubic-bezier(.34, 1.56, .64, 1); }
.sual-kart.kart-sehv { box-shadow: 0 0 0 5px #ef4b3f, 0 14px 30px rgba(239, 75, 63, .22); background: #fff5f4; }
.sual-kart.kart-duz .bosluq-input { border-color: #22b07d; color: var(--ugur); box-shadow: 0 6px 0 #22b07d; }
.sual-kart.kart-sehv .bosluq-input { border-color: #ef4b3f; color: var(--sehv); box-shadow: 0 6px 0 #ef4b3f; }
.duz-cavab-qeyd {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 16px; text-align: center;
  background: #d8f8ea; color: var(--ugur); font-weight: 800; font-size: 18px;
}
/* Düz/səhv nişanı: ekrana bərkidilir — üst panelin (sticky, z-index 10) DƏRHAL altında və onun ÜSTÜNDƏ.
   --ust-alt = panelin alt kənarı (px), js/oyun.js → ustAltOlc() ölçür (şrift böyüdülmüş telefonlarda da düz). */
.cavab-nisan {
  position: fixed; left: 50%; top: calc(var(--ust-alt, 76px) + 10px); z-index: 25; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
  padding: 8px 18px 8px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-family: var(--sirift-bas); font-size: 22px; font-weight: 800; color: #fff;
  animation: nisan-gel .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.cavab-nisan span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.28); font-size: 20px; }
.cavab-nisan.duz { background: #22b07d; box-shadow: 0 6px 0 #158a60, 0 10px 24px rgba(34, 176, 125, .35); }
.cavab-nisan.sehv { background: #ef4b3f; box-shadow: 0 6px 0 #c0392b, 0 10px 24px rgba(239, 75, 63, .3); }
@media (max-width: 360px) {
  .cavab-nisan { font-size: 18px; padding: 6px 14px 6px 6px; gap: 6px; }
  .cavab-nisan span { width: 30px; height: 30px; font-size: 17px; }
}

.bosluq-input {
  display: block; width: 150px; margin: 0 auto; padding: 12px;
  font: inherit; font-family: var(--sirift-bas); font-size: 44px; font-weight: 800; text-align: center;
  color: var(--metn); background: var(--ag);
  border: 4px solid var(--xett); border-radius: 22px; outline: none; box-shadow: 0 6px 0 var(--xett);
}
.bosluq-input:focus { border-color: var(--benovse); }

.alt-duymeler { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.alt-duymeler .esas-duyme { margin-top: 0; margin-left: auto; }
.esas-duyme.hazir { animation: nebz 1.2s ease-in-out infinite; }
.ipucu-metn { font-weight: 800; font-size: 18px; color: var(--metn); min-height: 1em; }

/* ---------- Nəticə ---------- */
.netice-ulduz { font-size: 64px; letter-spacing: 6px; line-height: 1.1; }
.netice-ulduz span { display: inline-block; animation: ulduz-gel .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.netice-ulduz span:nth-child(2) { animation-delay: .25s; }
.netice-ulduz span:nth-child(3) { animation-delay: .5s; }
.netice-ulduz .dolu { color: var(--gunes); text-shadow: 0 4px 0 var(--gunes-tund); }
.netice-ulduz .bos { color: var(--kilid); }
.netice-soz { font-size: 26px; font-weight: 800; margin: 8px 0; }
.netice-say { font-size: 18px; color: var(--metn-zeif); margin: 0; }
.qazanc {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: 14px; padding: 10px 24px; border-radius: 20px;
  background: #fff4cf; font-family: var(--sirift-bas); font-size: 30px; font-weight: 800; color: #8a5a00;
  animation: pop .6s .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
.qazanc small { font-family: var(--sirift); font-size: 13px; font-weight: 700; opacity: .85; }
.qazanc-reqem { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; line-height: 1.1; }
.netice-duymeler { margin-bottom: 8px; }
.netice-kart .maskot { animation: reqs 1.2s ease-in-out infinite; display: inline-block; }

.izah-kart { padding: 18px; }
.cavab-setir { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.sehv-cavab, .duz-cavab { padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.sehv-cavab { background: var(--sehv-fon); color: var(--sehv); }
.duz-cavab { background: var(--ugur-fon); color: var(--ugur); }
.izah-addim { margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.6; }

/* ---------- Səhvlər / mağaza düymələri ---------- */
.sehvler-duyme {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 16px; padding: 14px; border-radius: var(--radius); min-height: 60px;
  background: var(--ag); color: var(--metn); text-decoration: none;
  font-weight: 800; font-size: 18px; box-shadow: 0 6px 0 var(--xett);
}
.sehv-say { background: var(--mercan); color: var(--ag); border-radius: 999px; padding: 2px 10px; font-size: 15px; }
.iki-duyme { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Boss taymeri ---------- */
.taymer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.taymer-zolaq { flex: 1; height: 18px; background: var(--xett); border-radius: 999px; overflow: hidden; }
.taymer-dolu { height: 100%; width: 100%; background: var(--gunes); border-radius: 999px; transition: width .2s linear; }
.taymer-dolu.az { background: var(--mercan); }
.taymer-yazi { flex: none; min-width: 48px; text-align: center; font-weight: 900; font-size: 22px; }

/* ---------- Analoq saat ---------- */
.saat-yer { display: flex; justify-content: center; margin: 0 0 20px; }
.saat { width: 220px; height: 220px; }
.saat-yer.kicik .saat { width: 140px; height: 140px; }
.saat-uz { fill: #fffdf5; stroke: var(--benovse); stroke-width: 7; }
.saat-cizgi { stroke: #b7b0cf; stroke-width: 1.5; }
.saat-cizgi.uzun { stroke: var(--metn); stroke-width: 3; }
.saat-reqem { font: 800 16px var(--sirift); fill: var(--metn); text-anchor: middle; dominant-baseline: central; }
.saat-eqreb-s { stroke: var(--mercan); stroke-width: 8; stroke-linecap: round; }
.saat-eqreb-d { stroke: var(--goy-tund); stroke-width: 5; stroke-linecap: round; }
.saat-merkez { fill: var(--metn); }
.saat-qur { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.saat-qur-sira { display: grid; grid-template-columns: 80px 60px 64px 60px; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.saat-qur-sira b { text-align: center; font-size: 32px; font-family: var(--sirift-bas); }
.qur-duyme {
  width: 60px; height: 60px; border: none; border-radius: 50%;
  background: var(--gunes); box-shadow: 0 5px 0 var(--gunes-tund);
  font: inherit; font-size: 32px; font-weight: 900; cursor: pointer;
}
.qur-duyme:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gunes-tund); }

/* ---------- Profil seçmə pəncərəsi ---------- */
.profil-duyme {
  display: flex; align-items: center; gap: 10px;
  border: none; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.profil-pencere {
  position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center;
  background: rgba(43, 35, 80, .5); padding: 16px;
}
.profil-pencere.gorunur { display: flex; }
.profil-pencere .kart { width: 100%; max-width: 400px; margin: 0; animation: pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.profil-pencere-siyahi { display: grid; gap: 10px; margin: 14px 0; }
.profil-secim {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 72px;
  border: 4px solid var(--xett); border-radius: 22px; background: var(--ag);
  font: inherit; font-size: 20px; font-weight: 800; color: var(--metn); cursor: pointer;
}
.profil-secim.secilib { border-color: var(--benovse); background: var(--benovse-acig); }
.profil-secim .maskot { font-size: 36px; }

/* ---------- Avatar seçimi ---------- */
.avatar-sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.avatar-duyme {
  aspect-ratio: 1; border: 4px solid var(--xett); border-radius: 20px; background: var(--ag);
  font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--xett);
  transition: transform .1s;
}
.avatar-duyme:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--xett); }
.avatar-duyme.secilib { border-color: var(--benovse); background: var(--benovse-acig); box-shadow: 0 4px 0 var(--benovse); animation: secim .35s; }
.profil-pencere .kart { max-height: calc(100vh - 32px); overflow-y: auto; }

/* ---------- Qeydiyyat ekranı (uşaq hələ yoxdur) ---------- */
.qeydiyyat-ekran { text-align: center; padding-top: 24px; }
.qeydiyyat-maskotlar { display: flex; justify-content: center; gap: 10px; font-size: 52px; }
.qeydiyyat-maskotlar span { display: inline-block; animation: atil 1.8s ease-in-out infinite; }
.qeydiyyat-maskotlar span:nth-child(2) { animation-delay: .2s; }
.qeydiyyat-maskotlar span:nth-child(3) { animation-delay: .4s; }
.qeydiyyat-maskotlar span:nth-child(4) { animation-delay: .6s; }
.qeydiyyat-kart { text-align: left; }
.qeydiyyat-addim { margin: 0 0 8px; padding-left: 22px; line-height: 1.9; font-size: 17px; }
.genis-duyme { width: 100%; }

/* ---------- Geyindirilmiş maskot ---------- */
.maskot-qurulu { position: relative; display: inline-block; line-height: 1; }
.maskot-esas { display: inline-block; }
.esya { position: absolute; line-height: 1; pointer-events: none; }
.esya-bas { font-size: .55em; left: 50%; top: -.36em; transform: translateX(-50%); }
.esya-goz { font-size: .42em; left: 50%; top: .3em; transform: translateX(-50%); }
.esya-el  { font-size: .45em; right: -.32em; bottom: -.04em; }
.ust .maskot { padding-top: 6px; }

/* ---------- Mağaza ---------- */
.magaza-vitrin { padding: 52px 20px 28px; background: radial-gradient(circle at 50% 60%, #fff4cf, var(--ag) 70%); }
.vitrin-maskot { font-size: 120px; display: inline-block; animation: uzme 3s ease-in-out infinite; }
.yer-secim { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.yer-duyme {
  padding: 12px; min-height: 52px; border: 3px solid var(--xett); border-radius: 999px; background: var(--ag);
  font: inherit; font-weight: 800; font-size: 17px; color: var(--metn); cursor: pointer;
}
.yer-duyme.secilib { background: var(--benovse); border-color: var(--benovse); color: var(--ag); }
.esya-siyahi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.esya-kart {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px;
  background: var(--ag); border: 4px solid var(--xett); border-radius: var(--radius); box-shadow: var(--kolge-yumsaq);
}
.esya-kart.geyinib { border-color: var(--nane); background: var(--ugur-fon); }
.esya-ikon { font-size: 52px; line-height: 1.1; animation: uzme 3s ease-in-out infinite; }
.esya-ad { font-weight: 800; text-align: center; }
.esya-kart .esas-duyme, .esya-kart .ikinci-duyme { margin-top: 4px; padding: 10px 18px; min-height: 48px; font-size: 17px; }

/* ---------- Valideyn paneli ---------- */
.esas-duyme + .esas-duyme, .bosluq-input + .esas-duyme { margin-top: 16px; }
.profil-siyahi { display: flex; flex-wrap: wrap; gap: 8px; }
.profil-cip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 3px solid var(--xett); border-radius: 999px; background: var(--ag);
  font: inherit; font-weight: 800; font-size: 16px; color: var(--metn); cursor: pointer;
}
.profil-cip.secilib { border-color: var(--benovse); background: var(--benovse-acig); }
.profil-cip.elave { background: transparent; color: var(--benovse); border: 3px dashed var(--benovse); }
.profil-ikon { font-size: 20px; }
.oynayir { background: var(--nane); color: var(--metn); font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.profil-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gostericiler { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.gosterici { background: #f6f4fb; border-radius: 16px; padding: 12px; }
.gosterici-deyer { font-size: 22px; font-weight: 900; }
.gosterici-yazi { font-size: 13px; color: var(--metn-zeif); margin-top: 2px; }
.qeyd { font-size: 15px; margin: 14px 0 0; color: var(--metn-zeif); }
.qeyd b { white-space: nowrap; color: var(--metn); }
.qeyd.ilk { margin-top: 0; margin-bottom: 12px; }
.alt-qeyd { color: var(--metn-zeif); font-size: 14px; text-align: center; margin-top: 20px; }
.qrafik-basliq { font-weight: 800; font-size: 15px; margin: 18px 0 8px; }
.hefte-qrafik { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 140px; }
.hefte-sutun { display: flex; flex-direction: column; min-width: 0; cursor: default; }
.hefte-zolaq-yer { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--xett); }
.hefte-zolaq { width: 100%; max-width: 28px; margin: 0 auto; background: var(--benovse); border-radius: 4px 4px 0 0; }
.hefte-sutun:hover .hefte-zolaq { background: var(--benovse-tund); }
.hefte-gun { font-size: 12px; text-align: center; margin-top: 4px; color: var(--metn-zeif); white-space: nowrap; }
.movzu-kart { padding: 18px; }
.movzu-bas { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 10px; }
.ada-ikon.kicik { font-size: 24px; }
.movzu-cem { margin-left: auto; font-weight: 900; }
.movzu-siyahi { list-style: none; margin: 12px 0 0; padding: 0; }
.movzu-siyahi li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--xett); font-size: 15px; }
.movzu-ad { flex: 1; min-width: 0; }
.movzu-ulduz { color: var(--gunes-tund); letter-spacing: 1px; }
.movzu-ulduz .bos { color: var(--kilid); }
.movzu-faiz { min-width: 46px; text-align: right; font-weight: 800; color: var(--ugur); }
.movzu-faiz.zeif { color: var(--sehv); }
.movzu-bos { min-width: 46px; text-align: right; font-size: 12px; color: var(--metn-zeif); }
.diqqet-siyahi { margin: 0; padding-left: 20px; line-height: 1.7; }
.ayar-basliq { font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.ayar-basliq:not(:first-child) { margin-top: 20px; }
.ayar-secim { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.ayar-secim input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--benovse); }
.ayar-secim small { display: block; font-size: 14px; color: var(--metn-zeif); }
.ad-deyis { display: flex; gap: 8px; }
.ad-deyis .esas-duyme { margin-top: 0; flex: none; }
.metn-input {
  flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--metn);
  border: 3px solid var(--xett); border-radius: 16px; outline: none; background: var(--ag);
}
.metn-input:focus { border-color: var(--benovse); }
.tehluke { background: #fffafa; }
.sinif-secim { display: flex; gap: 8px; }
.sinif-secim.kicik { margin: 10px 0 4px; }
.sinif-secim.kicik button { min-height: 44px; padding: 8px; }
.fenn-nisanlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fenn-nisan-duyme {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 60px;
  border: 3px solid var(--xett); border-radius: 16px; background: var(--ag); cursor: pointer;
  font: inherit; font-weight: 800; font-size: 13px; color: var(--metn);
}
.fenn-nisan-duyme small { font-size: 12px; color: var(--metn-zeif); }
.fenn-nisan-duyme.secilib { border-color: var(--reng); background: color-mix(in srgb, var(--reng) 12%, white); }
.sinif-secim button { flex: 1; }
.sinif-secim .secilib { background: var(--benovse); color: var(--ag); box-shadow: 0 5px 0 var(--benovse-tund); }

/* ---------- Abunəlik ---------- */
.nisan {
  position: absolute; top: -10px; right: -6px;
  background: var(--nane); color: var(--metn);
  font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px;
}
.nisan.tam { background: var(--benovse); color: var(--ag); }
.abune-xatirlatma {
  display: block; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: #fff1dc; color: #a14a00; font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 #ffd9a8;
}
.abune-xatirlatma[hidden] { display: none; }
.abune-aktiv .qalan-gun { display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--benovse-acig); color: var(--benovse-tund); font-weight: 800; }
.ustunlukler { margin: 0; padding-left: 4px; list-style: none; line-height: 1.9; font-size: 17px; }
.usaq-secim { display: grid; gap: 10px; }
.usaq-setir {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  border: 3px solid var(--xett); background: var(--ag); cursor: pointer;
}
.usaq-setir input { width: 26px; height: 26px; accent-color: var(--benovse); }
.usaq-setir .maskot { font-size: 34px; }
.usaq-setir .usaq-melumat { flex: 1; min-width: 0; }
.usaq-setir small { display: block; color: var(--metn-zeif); font-size: 13px; }
.usaq-setir.secilib { border-color: var(--benovse); background: var(--benovse-acig); }
.cem-setir { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-weight: 800; font-size: 18px; }
.cem-setir b { font-family: var(--sirift-bas); font-size: 32px; color: var(--benovse-tund); }
.sifaris-duymeler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sifaris-duymeler .esas-duyme { margin-top: 0; }
.xeberdarliq { color: #a14a00; font-weight: 700; margin: 0 0 10px; }
.sehv-metn { color: var(--sehv); font-weight: 700; }
.abune-kart { display: flex; flex-direction: column; gap: 4px; color: var(--metn); text-decoration: none; border-left: 8px solid var(--benovse); }
.abune-kart b { font-size: 18px; }
.abune-kart span { color: var(--metn-zeif); }
.abune-kart .xeberdarliq { margin: 6px 0 0; }
.veziyyet-nisan { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.veziyyet-nisan.aktiv { background: var(--ugur-fon); color: var(--ugur); }
.veziyyet-nisan.pulsuz { background: #f0eef6; color: var(--metn-zeif); }
.veziyyet-nisan.bitir { background: #fff1dc; color: #a14a00; }

/* ---------- Dil sualları: söz kartı, dinləmə ---------- */
.soz-kart {
  margin: 0 auto 20px; padding: 14px 20px; width: fit-content; max-width: 100%;
  border-radius: 22px; background: var(--benovse-acig); border: 4px dashed var(--benovse);
  font-family: var(--sirift-bas); font-size: 40px; font-weight: 800; text-align: center; line-height: 1.2;
}
.soz-kart.kicik { font-size: 24px; padding: 6px 14px; margin-bottom: 10px; }
.dinle-duyme {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 0 auto 20px; width: 120px; height: 120px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--goy); color: var(--ag); font-size: 52px; box-shadow: 0 7px 0 var(--goy-tund);
  justify-content: center;
}
.dinle-duyme span { font-size: 16px; font-weight: 800; }
.dinle-duyme:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--goy-tund); }
.bosluq-input.metnli { width: 100%; max-width: 280px; font-size: 34px; }

/* ---------- Sırala ---------- */
.sira-yer {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  min-height: 76px; padding: 10px; margin-bottom: 14px;
  border: 4px dashed var(--xett); border-radius: 20px; background: #faf8ff;
}
.sira-bos { color: var(--metn-zeif); font-size: 15px; }
.kerpicler { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kerpic {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 56px; padding: 8px 14px; border: 3px solid var(--xett); border-radius: 16px;
  background: var(--ag); font: inherit; font-weight: 800; font-size: 18px; color: var(--metn);
  box-shadow: 0 5px 0 var(--xett); cursor: pointer; text-align: left;
}
.kerpic:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--xett); }
.kerpic.secilib { border-color: var(--benovse); background: var(--benovse-acig); box-shadow: 0 5px 0 var(--benovse); }
.kerpic-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--benovse); color: var(--ag); font-size: 13px; }
.herfli .kerpic { min-width: 56px; justify-content: center; font-family: var(--sirift-bas); font-size: 30px; }
/* Qısa (emoji) kərpiclər bir sətirdə: 1-2-3 ardıcıllığı pozulmasın */
.sira-yer.tek-setir { flex-wrap: nowrap; gap: 8px; padding: 14px 8px 10px; }
.sira-yer.tek-setir .kerpic {
  position: relative; flex: 0 1 64px; min-width: 0; justify-content: center;
  padding: 8px 4px; font-size: 26px;
}
/* Nömrə küncdə kiçik nişan — 5 kərpic də 320px ekrana bir sətirdə sığır */
.sira-yer.tek-setir .kerpic-no {
  position: absolute; top: -9px; left: -7px; width: 20px; height: 20px; font-size: 12px;
  box-shadow: 0 0 0 2px #fff;
}
/* Sağdan sola: 1-ci xana sağda */
.sira-yer.sagdan { flex-direction: row-reverse; }
/* Sıra tapşırığının şəkilli işarəsi (js/oyun.js siraIpucuHtml): oxumadan başa düşülsün */
.sira-ipucu {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: -2px auto 10px; padding: 6px 14px;
  width: max-content; max-width: 100%; border-radius: 999px; background: var(--benovse-acig); color: var(--benovse-tund);
}
.sira-ipucu.sag { margin-left: auto; margin-right: 0; flex-direction: row-reverse; }
.sira-ip-ox { font-size: 18px; line-height: 1; opacity: .7; }
.sira-ip-boyuk-ox { font-size: 26px; line-height: 1; animation: sira-ox 1.2s ease-in-out infinite; }
.sira-ipucu.sag .sira-ip-boyuk-ox { animation-name: sira-ox-sol; }
.sira-ipucu.asagi .sira-ip-boyuk-ox, .sira-ipucu.yuxari .sira-ip-boyuk-ox { animation-name: none; }
.sira-ip-nq { display: inline-block; border-radius: 50%; background: var(--benovse); }
.sira-ip-nq.n1 { width: 10px; height: 10px; } .sira-ip-nq.n2 { width: 17px; height: 17px; } .sira-ip-nq.n3 { width: 26px; height: 26px; }
.sira-ip-reqem { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--benovse); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; }
.sira-ip-yazi { font-size: 13px; font-weight: 800; white-space: nowrap; }
@keyframes sira-ox { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes sira-ox-sol { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
/* Cavabdan sonra: hər kərpic öz yerinə görə yaşıl/qırmızı; altında düz sıra */
.kerpic.duz { border-color: #22b07d !important; background: #d8f8ea !important; box-shadow: 0 5px 0 #22b07d !important; }
.kerpic.duz .kerpic-no { background: #22b07d; }
.kerpic.sehv { border-color: #ef4b3f !important; background: #ffe3e0 !important; box-shadow: 0 5px 0 #ef4b3f !important; animation: silkele .5s ease-in-out; }
.kerpic.sehv .kerpic-no { background: #ef4b3f; }
.duz-sira-bas { margin: 4px 0 6px; text-align: center; font-weight: 800; color: var(--ugur); }
.sira-yer.duz-sira { border-color: #9be3c4; background: #f1fdf7; margin-bottom: 0; }
#ekran.yoxlanilir .kerpicler:empty, #ekran.yoxlanilir .sira-ipucu { display: none; }

/* ---------- Uyğunlaşdır ---------- */
.cut-sutunlar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cut-sutun { display: grid; gap: 10px; align-content: start; }
.cut {
  min-height: 60px; padding: 8px; border: 4px solid var(--xett); border-radius: 18px; background: var(--ag);
  font: inherit; font-weight: 800; font-size: 20px; color: var(--metn); cursor: pointer; box-shadow: 0 5px 0 var(--xett);
}
.cut.sekilli { font-size: 34px; }
.cut.aktiv { border-color: var(--metn); background: #fff4cf; animation: nebz 1s ease-in-out infinite; }
.cut.cutlesib { background: #fbfaff; }
.cut-qeyd { text-align: center; font-weight: 800; color: var(--metn-zeif); margin: 14px 0 0; min-height: 1.2em; }
.cut-qeyd[hidden] { display: none; }
/* Cavabdan sonra cütlər: yaşıl — düz, qırmızı — səhv */
.cut.duz { border-color: #22b07d; background: #d8f8ea; box-shadow: 0 5px 0 #22b07d; color: var(--ugur); }
.cut.sehv { border-color: #ef4b3f; background: #ffe3e0; box-shadow: 0 5px 0 #ef4b3f; color: var(--sehv); }
.duz-cutler { margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: #f1fdf7; border: 2px solid #9be3c4; }
.duz-cut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 0; font-weight: 800; color: var(--ugur); text-align: center; }
.duz-cut + .duz-cut { border-top: 1px dashed #b6ead3; }
.duz-cut i { font-style: normal; color: var(--metn-zeif); }
.bosluq-doldu { display: inline-block; padding: 0 8px; border-radius: 10px; background: #d8f8ea; color: var(--ugur); box-shadow: inset 0 -3px 0 #22b07d; }
/* Səhvdən sonra: "Başa düşdüm →" basıla bilsin, ipucu gizlənsin */
#ekran.yoxlanilir.basa-dus .alt-duymeler { pointer-events: auto; opacity: 1; }
#ekran.yoxlanilir.basa-dus .ipucu-duyme { display: none; }
/* Oyunun alt düymələri dar ekranda da bir sətirdə (İpucu · 2 🪙 / Davam →) */
#ekran .alt-duymeler .ipucu-duyme, #ekran .alt-duymeler .esas-duyme { white-space: nowrap; }
@media (max-width: 380px) {
  #ekran .alt-duymeler { gap: 8px; }
  #ekran .alt-duymeler .ipucu-duyme { padding: 12px 14px; font-size: 15px; }
  #ekran .alt-duymeler .esas-duyme { padding-left: 18px; padding-right: 18px; font-size: 18px; }
}
/* Robot: göstəriş zamanı idarə düymələri lazım deyil */
#ekran.yoxlanilir .robot-duymeler, #ekran.yoxlanilir .robot-isle, #ekran.yoxlanilir #robot-netice:empty { display: none; }
#ekran.basa-dus #davam { flex: 1; white-space: nowrap; animation: nebz 1.4s ease-in-out infinite; }

/* ---------- Robot ---------- */
.robot-meydan {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto 14px;
  border-radius: 18px; overflow: hidden; background: #e9f9f2; border: 4px solid var(--nane);
}
.xana { border: 1px solid rgba(19, 168, 123, .18); display: grid; place-items: center; font-size: 26px; }
.xana.manee { background: #d8d2c4; }
.xana.hedef { animation: parilti 1.6s ease-in-out infinite; }
.robot-fiqur {
  position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n));
  display: grid; place-items: center; font-size: 30px; transition: transform .3s ease; z-index: 2;
}
.robot-proqram {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center;
  min-height: 56px; padding: 8px; margin-bottom: 12px; border: 4px dashed var(--xett); border-radius: 18px;
}
.emr { padding: 4px 8px; border-radius: 12px; background: var(--ugur-fon); font-size: 22px; font-weight: 800; }
.robot-duymeler { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.robot-ox {
  width: 64px; height: 64px; border: none; border-radius: 18px; cursor: pointer;
  background: var(--ag); font-size: 30px; box-shadow: 0 5px 0 var(--xett); border: 3px solid var(--xett);
}
.robot-ox:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--xett); }
.robot-ox.tekrar { width: auto; padding: 0 12px; font-size: 20px; font-weight: 900; background: #fff4cf; }
.robot-ox.sil { background: var(--sehv-fon); }
.robot-isle { width: 100%; }

/* ---------- Mərhələnin giriş kartı (keçid şərti) ---------- */
.giris-kart { text-align: center; padding: 28px 22px 22px; }
.giris-kart-ikon { font-size: 72px; line-height: 1; animation: atil 2s ease-in-out infinite; }
.giris-kart-ad { margin: 10px 0 6px; font-size: 28px; line-height: 1.15; }
.giris-kart-sert {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 18px;
  background: var(--benovse-acig); color: var(--metn); font-size: 18px; line-height: 1.45; text-align: left;
}
.giris-kart-sert b { color: var(--benovse-tund); }
.giris-kart-ulduz { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.giris-kart-ulduz li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px;
  background: #fff8e1; font-size: 15px;
}
.giris-kart-ulduz span { font-size: 18px; letter-spacing: -2px; white-space: nowrap; }
.giris-kart-qeyd { margin: 14px 0 0; font-size: 15px; color: var(--metn-zeif); }
.giris-kart .esas-duyme { margin-top: 22px; }
/* Dərsin əvvəlində xatırlatma (məs. Feelings emojiləri) */
.xatirlatma { margin: 18px 0 0; padding: 14px 10px; border-radius: 20px; background: var(--benovse-acig); }
.xatirlatma-basliq { margin: 0 0 10px; font-weight: 900; font-size: 17px; }
.xatirlatma-kartlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xatirlatma-kart { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: var(--ag); min-width: 0; }
.xatirlatma-emoji { font-size: 34px; line-height: 1.1; }
.xatirlatma-kart b { font-size: 16px; overflow-wrap: anywhere; }
.xatirlatma-kart small { font-size: 13px; color: var(--metn-zeif); overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .xatirlatma { padding: 10px 6px; }
  .xatirlatma-kartlar { gap: 5px; }
  .xatirlatma-kart { padding: 6px 2px; }
  .xatirlatma-emoji { font-size: 26px; }
  .xatirlatma-kart b { font-size: 13px; }
  .xatirlatma-kart small { font-size: 11px; }
}

/* ---------- 🚩 Valideyn şikayəti ---------- */
.bayraq-duyme {
  flex: none; width: 36px; height: 36px; margin-top: 2px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 59, 48, .1); font-size: 17px; line-height: 1; opacity: .75;
}
.bayraq-duyme:active { transform: scale(.9); opacity: 1; }
.sikayet-fon { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 16, 40, .4); animation: fon-gel .25s ease both; }
.sikayet-pencere {
  width: 100%; max-width: 520px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: var(--ag); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(20, 16, 40, .2);
  font-family: "Bayraq", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  transform: translateY(var(--cek, 0)); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  animation: sheet-gel .42s cubic-bezier(.2, .9, .3, 1) backwards;
}
.sikayet-basliq { margin: 0; font-size: 18px; font-weight: 700; }
.sikayet-alt { margin: 4px 0 14px; font-size: 14px; font-weight: 500; color: var(--metn-zeif); }
.sikayet-sebebler { display: flex; flex-wrap: wrap; gap: 8px; }
.sikayet-sebeb {
  padding: 10px 14px; min-height: 44px; border: none; border-radius: 999px; cursor: pointer;
  background: #f2f2f7; font: inherit; font-size: 15px; font-weight: 600; color: var(--metn);
}
.sikayet-sebeb.secilib { background: #ff3b30; color: #fff; }
.sikayet-qeyd {
  width: 100%; min-height: 70px; margin-top: 12px; padding: 12px 14px; border: none; border-radius: 14px; resize: vertical;
  background: #f2f2f7; font: inherit; font-size: 16px; color: var(--metn); outline: none;
}
.sikayet-qeyd:focus { box-shadow: inset 0 0 0 2px var(--benovse); }
.sikayet-duymeler { display: flex; gap: 10px; margin-top: 14px; }
.sikayet-duymeler > * { flex: 1; margin-top: 0; min-height: 50px; font-size: 17px; }
@media (min-width: 700px) { .sikayet-fon { align-items: center; } .sikayet-pencere { border-radius: 28px; } }

/* ---------- Planşet ---------- */
@media (min-width: 700px) {
  .sual-metn { font-size: 30px; }
  .variant { min-height: 92px; font-size: 36px; }
}

/* =====================================================================
   Mobil "proqram" qatı (iOS hissi) — bütün səhifələr üçün
   ===================================================================== */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  min-height: 100vh; min-height: 100dvh; overflow-x: clip;
  overscroll-behavior-y: none; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
p, h1, h2, h3, li, .dunya-ad { overflow-wrap: anywhere; }

/* Toxunma: ani reaksiya, zoom yox, mətn seçilmir */
button, a, label, .variant, .kerpic, .cut, .merhele {
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; font-size: max(16px, 1em); }
.esas-duyme, .ikinci-duyme, .ipucu-duyme, .ikon-duyme, .geri, .valideyn-kecid, .fenn-kart, .profil-secim, .avatar-duyme {
  transition: transform .14s cubic-bezier(.3, .7, .4, 1), box-shadow .14s, background-color .2s, opacity .2s;
}
.fenn-kart:active, .profil-secim:active, .salam-kart .esas-duyme:active { transform: scale(.97); }

/* Çentik və alt xətt (safe area) */
.ust { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
main#ekran { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.ust { border-bottom: 1px solid rgba(43, 35, 80, .08); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

/* Bildiriş — iOS kimi yuxarıdan */
.mesaj {
  top: calc(10px + env(safe-area-inset-top)); bottom: auto;
  transform: translate(-50%, calc(-100% - 40px)); opacity: 0;
  background: rgba(30, 24, 60, .88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); border-radius: 22px; font-size: 16px; padding: 13px 20px;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), opacity .25s;
  pointer-events: none;
}
.mesaj.gorunur { transform: translate(-50%, 0); opacity: 1; }

/* Alt pəncərələr (sheet) — ortaq hissələr */
.tutacaq { width: 40px; height: 5px; border-radius: 999px; background: rgba(60, 60, 67, .25); margin: -6px auto 14px; flex: none; }
.cekilir { transition: none !important; }
body:has(.profil-pencere.gorunur), body:has(.vereq-fon.gorunur), body:has(.vp-perde.gorunur) { overflow: hidden; }

/* Profil pəncərəsi → aşağıdan çıxan sheet */
.profil-pencere { align-items: flex-end; padding: 0; background: rgba(20, 16, 40, .4); }
.profil-pencere.gorunur { animation: fon-gel .25s ease both; }
.profil-pencere .kart {
  max-width: 520px; max-height: 88vh; max-height: 88dvh; margin: 0; border: none;
  border-radius: 28px 28px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(var(--cek, 0)); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  animation: sheet-gel .42s cubic-bezier(.2, .9, .3, 1) backwards;
  box-shadow: 0 -10px 40px rgba(20, 16, 40, .2);
}
.profil-pencere .ikinci-duyme { width: 100%; margin-top: 4px; }
@media (min-width: 700px) {
  .profil-pencere { align-items: center; padding: 16px; }
  .profil-pencere .kart { border-radius: 28px; padding-bottom: 20px; }
}

@keyframes sheet-gel { from { transform: translateY(100%); } to { transform: translateY(var(--cek, 0)); } }
@keyframes fon-gel { from { background-color: rgba(20, 16, 40, 0); } }

/* Səhifə açılanda yumşaq görünmə (proqram hissi) */
main, .vp { animation: sehife-gel .28s ease-out both; }
@keyframes sehife-gel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hərəkəti azaltmaq istəyənlər üçün */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
