/* İkra' — Kelime Kelime Kur'an Ezberi */
@font-face {
  font-family: "Amiri Quran";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/amiri-quran-arabic.woff2") format("woff2");
}
/* Lora (başlıklar) + Manrope (gövde) — çevrimdışı gömülü, latin + latin-ext (Türkçe tam) */
@font-face {
  font-family: "Lora";
  font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/manrope-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #0a1612; --bg2: #10201a;
  --panel: rgba(19,36,31,.78); --panel2: #1a2f28;
  --gold: #c9a84c; --gold-bright: #ffd97a; --gold-soft: #e0c987;
  --text: #ede9dd; --muted: #9ab0a5; --green: #4caf7d;
  --border: rgba(201,168,76,.25); --uyari: #e0a54c;
}
body.mushaf {
  --bg: #f5eeda; --bg2: #efe6cc;
  --panel: rgba(255,252,243,.88); --panel2: #f0e9d6;
  --gold: #a07d1c; --gold-bright: #8a6a10; --gold-soft: #7a5f10;
  --text: #2c2416; --muted: #7a6f55; --green: #2e7d54;
  --border: rgba(160,125,28,.35); --uyari: #b05e10;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M60 10 L95 45 L60 80 L25 45 Z'/%3E%3Cpath d='M60 25 L80 45 L60 65 L40 45 Z'/%3E%3Ccircle cx='60' cy='45' r='6'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  font-family: "Manrope", "Segoe UI", -apple-system, "Helvetica Neue", Tahoma, sans-serif;
  min-height: 100vh; transition: background-color .4s, color .4s;
}
h1, h2, h3, .nur-baslik, .tanitim-baslik { font-family: "Lora", Palatino, Georgia, serif; }
h2 { font-weight: 600; }
.arabic { font-family: "Amiri Quran", "KFGQPC HAFS Uthmanic Script", "Traditional Arabic", "Scheherazade New", serif; }
.gizli { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ===== AÇILIŞ ===== */
.splash {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--bg) radial-gradient(ellipse at 50% 32%, rgba(46,85,70,.55) 0%, transparent 65%);
  padding: 24px; transition: opacity .6s;
}
.splash.kapan { opacity: 0; pointer-events: none; }
.bismillah-top { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.splash .ikra {
  font-size: 92px; color: var(--gold-bright); line-height: 1.25;
  text-shadow: 0 0 40px rgba(201,168,76,.45);
  animation: glow 3.5s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { text-shadow: 0 0 30px rgba(201,168,76,.35), 0 0 80px rgba(201,168,76,.15); }
  50% { text-shadow: 0 0 55px rgba(255,217,122,.65), 0 0 120px rgba(201,168,76,.35); }
}
.splash h1 {
  font-family: "Lora", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 600; font-size: 56px; letter-spacing: 2px;
  margin-top: 12px; color: var(--hatRengi, #d4b466);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .splash h1 {
    background: linear-gradient(165deg, #f6e7b4 8%, var(--hatRengi, #d4b466) 46%, #a8842e 92%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 16px rgba(212, 180, 102, .28));
  }
}
.splash .motto { color: var(--gold-soft); font-size: 16px; margin-top: 10px; font-style: italic; }
.splash .alt { color: var(--muted); font-size: 13px; margin-top: 6px; }
.splash-durum { color: var(--muted); font-size: 13px; margin-top: 30px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px auto 0; width: 280px; max-width: 78%; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { color: var(--gold); font-size: 17px; }

/* ===== ÜST BAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--bg); /* opak: içerik kayarken başlığın altından metin görünmesin */
  box-shadow: 0 1px 0 var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 10px; font-size: 17px;
  background: radial-gradient(circle at 30% 30%, #2e5546, #16302a);
  border: 1px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
body.mushaf .logo-icon { background: radial-gradient(circle at 30% 30%, #efe2bd, #e2d3a8); }
.logo-yazi b {
  font-size: 20px; color: var(--gold-soft); display: block; line-height: 1.1;
  font-family: "Lora", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 700; letter-spacing: .5px;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-yazi b {
    background: linear-gradient(165deg, #f6e7b4, #c9a84c 58%, #a8842e);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  body.mushaf .logo-yazi b { background: linear-gradient(165deg, #8a6a1e, #6f540f 60%, #4e3a08); -webkit-background-clip: text; background-clip: text; }
}
.logo-yazi small { color: var(--muted); font-size: 11px; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 7px 11px; font-size: 14px;
}
.icon-btn:hover { border-color: var(--gold); }

.tabs {
  display: flex; gap: 4px; padding: 9px 12px 10px; overflow-x: auto; /* üst pay: şerit başlık çizgisine yapışmasın */
  position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 39; background: var(--bg);
}
.tab {
  flex: 1; min-width: 86px; padding: 9px 8px; border-radius: 10px; font-size: 13px;
  background: var(--panel2); color: var(--muted); border: 1px solid transparent;
  white-space: nowrap;
}
.tab.on { background: var(--gold); color: #14100a; font-weight: 700; }
body.mushaf .tab.on { color: #fff8e8; }

.icerik { max-width: 780px; margin: 0 auto; padding: 12px 14px calc(28px + env(safe-area-inset-bottom)); }
body.ses-acik .icerik { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } /* alt bosluk yalniz ses cubugu acikken */

/* ===== KARTLAR ===== */
.kart {
  background: var(--panel); /* backdrop-filter yok: uzun surede yüzlerce kartta kaydırmayı takıltıyordu */
  border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; margin: 12px 0;
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
  position: relative; overflow: hidden;
}
/* Ayet kartları: ekran dışındakiler çizilmez (Safari 18+; eski sürümler yok sayar) */
.kart[id^="ayet-"], .oku-ayet { content-visibility: auto; contain-intrinsic-size: auto 320px; }
body.mushaf .kart { box-shadow: 0 6px 22px rgba(122,95,16,.1); }
.kart::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.kart h2 { color: var(--gold-soft); font-size: 16px; margin-bottom: 10px; }
.kart h3 { color: var(--gold-soft); font-size: 14px; margin: 10px 0 6px; }

/* ===== SURE LİSTESİ ===== */
.hedef-kart { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hedef-sayi { font-size: 30px; color: var(--gold-bright); font-weight: 700; }
.hedef-detay { flex: 1; min-width: 150px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.seri-noktalar { display: flex; gap: 4px; margin-top: 4px; }
.seri-noktalar i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); font-style: normal; }
.seri-noktalar i.bos { background: rgba(154,176,165,.25); }

.sure-satir {
  display: flex; align-items: center; gap: 12px; padding: 11px 8px;
  border-bottom: 1px solid rgba(154,176,165,.12); cursor: pointer; border-radius: 8px;
}
.sure-satir:hover { background: rgba(201,168,76,.06); }
.sure-num {
  min-width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700;
  background: var(--panel2); border: 1px solid var(--border); color: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.sure-adlar { flex: 1; min-width: 0; }
.sure-adlar b { font-size: 15px; display: block; }
.sure-adlar small { color: var(--muted); font-size: 12px; }
.sure-ar { font-size: 20px; color: var(--gold-soft); }
.sure-ilerleme { text-align: right; min-width: 74px; }
.sure-ilerleme .oran { font-size: 12px; color: var(--muted); }
.mini-bar { width: 74px; height: 5px; background: rgba(154,176,165,.2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.mini-bar div { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 3px; }
.rozet { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(76,175,125,.15); color: var(--green); }

/* ===== SURE GÖRÜNÜMÜ ===== */
.sure-baslik { text-align: center; margin: 14px 0 4px; }
.sure-baslik .arabic { font-size: 32px; color: var(--gold-soft); }
.sure-baslik .tr { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sure-baslik .nuzul-etiket {
  display: inline-block; margin-top: 8px; font-size: 12px; color: var(--gold-soft);
  border: 1px solid var(--gold); border-radius: 20px; padding: 3px 12px;
}
.sure-bilgi {
  border-left: 3px solid var(--green); font-size: 13.5px; line-height: 1.65;
}
.sure-bilgi .baslik { color: var(--green); font-weight: 700; font-size: 13px; margin-bottom: 5px; }

.arac-cubugu {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  position: sticky; top: calc(121px + env(safe-area-inset-top)); z-index: 30;
  background: var(--panel2); /* yapışkan çubukta backdrop-filter her kaydırma karesinde yeniden çizdiriyordu */
  border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; margin: 10px 0;
}
.btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 13px; font-size: 13px;
}
.btn.gold { background: var(--gold); color: #14100a; font-weight: 700; border-color: var(--gold); }
body.mushaf .btn.gold { color: #fff8e8; }
.btn.aktif { background: var(--green); color: #0d1b17; font-weight: 700; border-color: var(--green); }

/* ===== AYET KARTI ===== */
.ayet-ust { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ayet-rub {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; transform: rotate(45deg);
  border: 1.5px solid var(--gold); border-radius: 9px;
  background: radial-gradient(circle, rgba(201,168,76,.14), transparent);
}
.ayet-rub span { transform: rotate(-45deg); color: var(--gold-bright); font-weight: 700; font-size: 13px; }
.ayet-islemler { display: flex; gap: 6px; flex-wrap: wrap; }
.full-arabic { direction: rtl; text-align: center; font-size: 33px; line-height: 2.05; margin: 8px 0 4px; }
.full-arabic .aynum { color: var(--gold); font-size: 26px; }
.okunus-buyuk {
  text-align: center; font-size: 22px; font-weight: 700; line-height: 1.6;
  margin: 4px 0 10px; transition: color .25s;
}
.okunus-buyuk .w { transition: color .2s; }
.okunus-buyuk .w.vurgu { color: var(--gold-bright); text-shadow: 0 0 16px rgba(255,217,122,.5); }
.kelimeler { text-align: center; font-size: 15.5px; line-height: 2; margin-bottom: 12px; }
.kelimeler .k { white-space: nowrap; cursor: pointer; }
.kelimeler .ok { color: var(--gold-soft); font-weight: 700; }
.kelimeler .k:hover .ok { text-decoration: underline; }
.kelimeler .an { color: var(--muted); }
.kelimeler .ayrac { color: var(--gold); margin: 0 7px; font-size: 12px; }
.kelimeler .k.vurgu .ok { color: var(--gold-bright); text-decoration: underline; }

.meal-sekmeler { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
.meal-sekme {
  background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 18px; padding: 4px 12px; font-size: 12px;
}
.meal-sekme.on { background: var(--gold); color: #14100a; font-weight: 700; border-color: var(--gold); }
body.mushaf .meal-sekme.on { color: #fff8e8; }
.meal {
  background: var(--panel2); border-left: 3px solid var(--gold);
  border-radius: 9px; padding: 11px 14px; font-size: 14.5px; line-height: 1.65; margin-bottom: 6px;
}
.meal .kaynak { display: block; color: var(--muted); font-size: 11.5px; margin-top: 5px; }
.fark-uyari {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--uyari);
  background: rgba(224,165,76,.1); border: 1px dashed var(--uyari);
  border-radius: 9px; padding: 5px 10px; margin-bottom: 7px;
}
.nuzul-box {
  background: rgba(201,168,76,.07); border: 1px solid rgba(201,168,76,.4);
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; line-height: 1.65; margin-top: 9px;
}
.nuzul-box .baslik { color: var(--gold-soft); font-weight: 700; font-size: 12.5px; margin-bottom: 5px; }
.nuzul-box .kaynak { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; font-style: italic; }

/* Ezber modu */
body.ezber .kelimeler .an, body.ezber .kelimeler .ayrac { display: none; }
body.ezber .meal, body.ezber .meal-sekmeler, body.ezber .nuzul-box, body.ezber .fark-uyari { display: none; }
/* Perde: filter: blur() yerine saydam yazı + gölge. Görünüm aynı (bulanık), ama her ayet için
   ayrı bir filtre katmanı oluşmaz; yüzlerce kartlı surede kaydırma akıcı kalır. */
body.ezber .okunus-buyuk { color: transparent; text-shadow: 0 0 9px var(--text); cursor: pointer; }
body.ezber .okunus-buyuk:not(.acik) .w { color: transparent; text-shadow: 0 0 9px var(--text); }
body.ezber .okunus-buyuk.acik { color: inherit; text-shadow: none; }
body.ezber .full-arabic.perde { color: transparent; text-shadow: 0 0 11px var(--text); cursor: pointer; }
body.ezber .full-arabic.perde.acik { color: inherit; text-shadow: none; }
.ezber-serit {
  text-align: center; color: var(--green); font-size: 12.5px;
  padding: 8px; background: rgba(76,175,125,.08);
  border: 1px dashed var(--green); border-radius: 9px; margin: 8px 0;
}

/* ===== SES ÇUBUĞU ===== */
.ses-cubugu {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.play-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #14100a;
  box-shadow: 0 0 16px rgba(201,168,76,.4);
}
.ses-bilgi { flex: 1; font-size: 12.5px; color: var(--muted); }

/* ===== QUIZ ===== */
.quiz-soru { font-size: 19px; text-align: center; line-height: 1.8; margin: 14px 0; }
.quiz-soru .bosluk {
  display: inline-block; min-width: 90px; border-bottom: 2px dashed var(--gold);
  color: var(--gold-bright); text-align: center;
}
.quiz-secenekler { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.quiz-secenek {
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  border-radius: 11px; padding: 13px; font-size: 15px; text-align: center;
}
.quiz-secenek:hover { border-color: var(--gold); }
.quiz-secenek.dogru { background: rgba(76,175,125,.25); border-color: var(--green); }
.quiz-secenek.yanlis { background: rgba(224,90,76,.2); border-color: #e05a4c; }
.quiz-durum { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.sirala-havuz { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.sirala-kelime {
  background: var(--panel2); border: 1px solid var(--gold); color: var(--gold-soft);
  border-radius: 9px; padding: 8px 13px; font-size: 16px; font-weight: 700;
}
.sirala-kelime.kullanildi { opacity: .25; pointer-events: none; }
.sirala-cevap {
  min-height: 46px; border: 1px dashed var(--border); border-radius: 11px;
  padding: 9px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.7;
}

/* ===== İLERLEME ===== */
.halka-satir { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.halka-kart { text-align: center; min-width: 160px; flex: 1; }
.halka { position: relative; width: 104px; height: 104px; margin: 0 auto 8px; }
.halka svg { transform: rotate(-90deg); }
.halka .bgc { fill: none; stroke: rgba(154,176,165,.18); stroke-width: 8; }
.halka .fgc { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; }
.halka .orta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.halka .orta b { font-size: 20px; color: var(--gold-bright); }
.halka .orta span { font-size: 10.5px; color: var(--muted); }
.ist-tablo { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ist-tablo td { padding: 7px 6px; border-bottom: 1px solid rgba(154,176,165,.12); }
.ist-tablo td:last-child { text-align: right; color: var(--gold-soft); font-weight: 700; }

/* ===== KELİME POP ===== */
.kelime-pop {
  position: fixed; z-index: 80; max-width: 260px;
  background: var(--panel2); border: 1px solid var(--gold); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; line-height: 1.6;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.kelime-pop .ar { font-size: 24px; color: var(--gold-soft); text-align: center; display: block; }

/* ===== OKUMA MODU ===== */
:root { --okuCarpan: 1; }
.oku-arac {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  position: sticky; top: calc(121px + env(safe-area-inset-top)); z-index: 30;
  background: var(--panel2); /* yapışkan çubukta backdrop-filter her kaydırma karesinde yeniden çizdiriyordu */
  border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; margin: 10px 0;
}
.oku-ayet { padding: 14px 4px 12px; border-bottom: 1px solid rgba(154,176,165,.14); }
.oku-ar {
  direction: rtl; text-align: right;
  font-size: calc(30px * var(--okuCarpan)); line-height: 2;
}
.oku-ar .aynum { color: var(--gold); font-size: calc(24px * var(--okuCarpan)); }
.oku-okunus {
  font-size: calc(14.5px * var(--okuCarpan)); line-height: 1.7;
  color: var(--green); font-style: italic; margin-top: 5px; letter-spacing: 0.2px;
}
body.okunussuz .oku-okunus { display: none; }
.oku-meal {
  font-size: calc(15px * var(--okuCarpan)); line-height: 1.75;
  color: var(--text); margin-top: 6px;
}
.oku-meal .ayet-no-kucuk { color: var(--gold-soft); font-weight: 700; font-size: calc(12.5px * var(--okuCarpan)); }
.oku-fark { font-size: 11.5px; color: var(--uyari); margin-top: 5px; }
.oku-diger {
  margin-top: 4px; padding: 7px 10px; border-left: 2px solid var(--uyari);
  background: rgba(224,165,76,.06); border-radius: 7px;
}
.oku-diger div { font-size: calc(12.5px * var(--okuCarpan)); color: var(--muted); line-height: 1.6; margin: 3px 0; }
.oku-diger b { color: var(--gold-soft); font-weight: 600; }
body.sadece-ar .oku-diger { display: none; }
.oku-gecis { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0; }
body.sadece-ar .oku-meal, body.sadece-ar .oku-fark, body.sadece-ar .oku-okunus { display: none; }
body.sadece-ar .oku-ar { text-align: justify; }

.altnot { text-align: center; color: var(--muted); font-size: 11.5px; padding: 16px 10px; }
.hata-kutu { background: rgba(224,90,76,.12); border: 1px solid #e05a4c; border-radius: 10px; padding: 12px; font-size: 13px; }

@media (max-width: 560px) {
  .full-arabic { font-size: 28px; }
  .okunus-buyuk { font-size: 19px; }
  .kelimeler { font-size: 14px; }
  .splash .ikra { font-size: 72px; }
  .quiz-secenekler { grid-template-columns: 1fr; }
}

/* ===== NAMAZ ===== */
details.namaz-bolum { margin: 12px 0; }
details.namaz-bolum summary {
  cursor: pointer; list-style: none; font-size: 16px; font-weight: 700;
  color: var(--gold-soft); padding: 4px 2px; user-select: none;
}
details.namaz-bolum summary::before { content: "▸ "; color: var(--gold); }
details.namaz-bolum[open] summary::before { content: "▾ "; }
.namaz-aciklama { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 6px 0 10px; }
.namaz-oge { margin: 12px 0; }
.namaz-oge .oge-ad { color: var(--green); font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.namaz-oge .full-arabic { font-size: 27px; }
/* Dua sesli takip: okunan satır çerçevelenir, Türkçesi altınla öne çıkar */
.namaz-oge.ns-aktif {
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 8px 10px; background: rgba(201,168,76,.07);
}
.namaz-oge.ns-aktif .meal { color: var(--gold-bright); font-weight: 600; }

/* ===== KIBLE ===== */
.kible-sahne { text-align: center; padding: 8px 0 4px; }
.pusula {
  position: relative; width: 230px; height: 230px; margin: 14px auto;
  border-radius: 50%; border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 40%, rgba(46,85,70,.5), transparent 70%);
  box-shadow: 0 0 34px rgba(201,168,76,.18), inset 0 0 24px rgba(0,0,0,.25);
}
.pusula .kadran { position: absolute; inset: 0; transition: transform .18s linear; }
.pusula .yon {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.pusula .yon.g { top: auto; bottom: 8px; }
.pusula .yon.d { left: auto; right: 10px; top: 50%; transform: translateY(-50%); }
.pusula .yon.b { left: 10px; top: 50%; transform: translateY(-50%); }
.pusula .kabe {
  position: absolute; left: 50%; top: 50%; font-size: 30px;
  transform-origin: 0 0;
}
.pusula .ibre {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 92px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  transform-origin: 50% 0; border-radius: 3px;
}
.pusula .merkez {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px rgba(255,217,122,.6);
}
.kible-derece { font-size: 26px; color: var(--gold-bright); font-weight: 700; margin-top: 6px; }
.kible-detay { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ===== KONULAR ===== */
.konu-kart { border-left: 3px solid var(--gold); }
.konu-cipler { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.konu-cip {
  background: rgba(201,168,76,.1); border: 1px solid var(--border);
  color: var(--gold-soft); border-radius: 16px; padding: 4px 12px; font-size: 12.5px;
}
/* Günün Nuru ve Hazırlayan kartları */
.nur-kart {
  position: relative; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(212, 180, 102, .35);
  background: linear-gradient(150deg, rgba(212, 180, 102, .10), rgba(46, 85, 70, .12) 55%, transparent);
}
body.mushaf .nur-kart { background: linear-gradient(150deg, rgba(201, 168, 76, .16), rgba(160, 125, 28, .05) 55%, transparent); }
.nur-kart::after {
  content: "✦"; position: absolute; right: -6px; top: -14px;
  font-size: 74px; color: rgba(212, 180, 102, .08); pointer-events: none;
}
.nur-etiket {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--gold-soft);
  margin-bottom: 6px; text-transform: capitalize;
}
.nur-resim {
  margin: 6px 0 12px; border-radius: 13px; overflow: hidden;
  border: 1px solid rgba(201, 168, 76, .4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.nur-resim svg { display: block; width: 100%; height: auto; }
.nur-govde { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.nur-gorsel {
  width: 60px; height: 60px; flex: none; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); border: 1px solid rgba(201, 168, 76, .4);
  background: radial-gradient(circle at 32% 28%, rgba(201, 168, 76, .16), rgba(201, 168, 76, .05));
}
.nur-gorsel svg { width: 38px; height: 38px; }
.nur-icerik { flex: 1; min-width: 0; }
.nur-baslik { font-size: 15.5px; color: var(--text); display: block; }
.nur-metin { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 6px 0 0; }
.nur-alt {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  margin-top: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap;
}
.nur-git { color: var(--gold-soft); font-weight: 600; white-space: nowrap; text-transform: capitalize; }
.hazirlayan-kart {
  border: 1px solid rgba(212, 180, 102, .35);
  background: linear-gradient(150deg, rgba(212, 180, 102, .08), transparent 60%);
}

.kissa-liste { margin: 6px 0 2px 4px; font-size: 13.5px; line-height: 1.7; }
.kissa-liste li { margin: 3px 0 3px 16px; }
.akil-kanca {
  background: rgba(76,175,125,.08); border: 1px dashed var(--green);
  border-radius: 9px; padding: 9px 12px; font-size: 13px; line-height: 1.6;
  color: var(--text); margin-top: 9px;
}
.akil-kanca b { color: var(--green); }

/* Kıssa sahihlik rozetleri */
.kissa-rozet {
  display: table; margin-top: 5px; padding: 2px 9px; border-radius: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.5;
  border: 1px solid var(--border); color: var(--muted); background: rgba(154,176,165,.07);
}
.kissa-rozet.r-kuran    { color: var(--gold-soft); border-color: rgba(212,180,102,.45); background: rgba(212,180,102,.08); }
.kissa-rozet.r-muttefek { color: #e8c66a; border-color: rgba(232,198,106,.5);  background: rgba(232,198,106,.09); }
.kissa-rozet.r-sahih    { color: #c9d4dd; border-color: rgba(201,212,221,.4);  background: rgba(201,212,221,.07); }
.kissa-rozet.r-sitte    { color: #d0a67e; border-color: rgba(208,166,126,.4);  background: rgba(208,166,126,.08); }
.kissa-rozet.r-siyer    { color: var(--muted); border-style: dashed; }
.kissa-rozet.rozet-detay {
  display: block; margin-top: 10px; padding: 7px 12px; border-radius: 9px;
  font-size: 12px; font-weight: 400; letter-spacing: 0;
}
.kissa-rozet.rozet-detay b { font-weight: 700; }

.sozluk-satir {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 4px; border-bottom: 1px solid rgba(154,176,165,.12);
  font-size: 13.5px;
}
.sozluk-satir b { color: var(--gold-soft); font-weight: 700; }
.sozluk-satir span { color: var(--muted); text-align: right; }

/* ===== NAMAZ MODU (Seccade Ekranı) ===== */
.akis-satir {
  display: flex; align-items: center; gap: 8px; padding: 7px 4px;
  border-bottom: 1px solid rgba(154,176,165,.12);
}
:root { --secBoyut: 1; }
.seccade {
  position: fixed; inset: 0; z-index: 200;
  background: #060f0c radial-gradient(ellipse at 50% 20%, rgba(46,85,70,.4), transparent 70%);
  display: flex; flex-direction: column;
}
body.mushaf .seccade { background: #f5eeda radial-gradient(ellipse at 50% 20%, rgba(160,125,28,.12), transparent 70%); }
.seccade.dondur {
  width: 100vh; height: 100vw;
  transform: rotate(90deg) translateY(-100vw);
  transform-origin: top left;
}
.sec-ust {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  position: relative; z-index: 220; flex-wrap: wrap;
}
.sec-sayac { font-size: 12.5px; color: var(--muted); }
.sec-govde {
  flex: 1; overflow-y: auto; padding: 12px 26px 60px;
  display: flex; flex-direction: column; justify-content: safe center; gap: 6px;
}
.sec-blok { margin: 8px 0; }
.sec-okunus {
  font-size: calc(44px * var(--secBoyut)); line-height: 1.5; font-weight: 700;
  color: var(--text); text-align: center; letter-spacing: .2px;
}
.sec-meal {
  font-size: calc(15px * var(--secBoyut)); color: var(--muted);
  text-align: center; margin-top: 4px; line-height: 1.6;
}
/* Uzun okunuşta kademeli küçülme: anlam aynı ekranda kalsın */
.sec-okunus.nm-orta { font-size: calc(31px * var(--secBoyut)); line-height: 1.45; }
.sec-okunus.nm-uzun { font-size: calc(24px * var(--secBoyut)); line-height: 1.45; }
.sec-anlam.nm-orta { font-size: calc(27px * var(--secBoyut)); }
.sec-anlam.nm-uzun { font-size: calc(21px * var(--secBoyut)); }
@media (orientation: landscape) {
  .sec-okunus.nm-orta { font-size: calc(38px * var(--secBoyut)); }
  .sec-okunus.nm-uzun { font-size: calc(29px * var(--secBoyut)); }
}
.sec-dokun { position: absolute; top: 64px; bottom: 0; z-index: 210; }
.sec-dokun.sol { left: 0; width: 34%; }
.sec-dokun.sag { right: 0; width: 66%; }
.sec-ipucu {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 205;
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.4), transparent);
  transition: opacity 1s;
}
.sec-ipucu.sonuk { opacity: 0; }
@media (orientation: landscape) {
  .sec-okunus { font-size: calc(56px * var(--secBoyut)); }
}

.sec-anlam {
  /* Dokunma katmanının üstünde ve kendi içinde kaydırılabilir: uzun anlam asla kaybolmaz */
  position: relative; z-index: 215;
  max-height: 38vh; overflow-y: auto;
  touch-action: pan-y; -webkit-overflow-scrolling: touch;
  font-size: calc(44px * var(--secBoyut)); line-height: 1.45; font-weight: 600;
  color: var(--gold-bright); text-align: center; margin-top: 14px;
}
@media (orientation: landscape) {
  .sec-anlam { font-size: calc(56px * var(--secBoyut)); }
}
body.mushaf .sec-anlam { color: #8a6a10; }

.akis-satir.zamm {
  background: rgba(255,217,122,.13);
  border-left: 3px solid var(--gold-bright);
  border-radius: 8px;
}
body.mushaf .akis-satir.zamm { background: rgba(160,125,28,.14); border-left-color: var(--gold); }
.zamm-sec {
  flex: 1; min-width: 120px;
  background: var(--panel2); color: var(--gold-bright); font-weight: 700;
  border: 1px solid var(--gold); border-radius: 8px; padding: 7px 8px;
  font-family: inherit; font-size: 13.5px;
}
body.mushaf .zamm-sec { color: #8a6a10; }

.ekle-isaret {
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--gold-bright); font-weight: 700;
  border: 2px dashed var(--gold); border-radius: 9px;
  padding: 7px 10px; margin: 4px 0;
  background: rgba(255,217,122,.07);
}

.esma-satir {
  display: flex; align-items: center; gap: 12px; padding: 9px 6px;
  border-bottom: 1px solid rgba(154,176,165,.12);
}
.ayet-link {
  color: var(--gold-bright); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--gold); font-size: 14px;
}

.blok-sec {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; margin: 5px 0; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel2);
  font-size: 14px; user-select: none;
}
.blok-sec .kutu { font-size: 18px; color: var(--muted); }
.blok-sec.on { border-color: var(--gold); background: rgba(201,168,76,.12); font-weight: 700; }
.blok-sec.on .kutu { color: var(--gold-bright); }

/* Dinleme modu: Arapça karaoke */
.din-ar {
  direction: rtl; text-align: center;
  font-size: calc(40px * var(--secBoyut)); line-height: 2;
  color: var(--text); margin-bottom: 10px;
}
.din-ar .w { transition: color .15s; }
.din-ar .w.vurgu { color: var(--gold-bright); text-shadow: 0 0 20px rgba(255,217,122,.55); }
@media (orientation: landscape) {
  .din-ar { font-size: calc(52px * var(--secBoyut)); }
}

.vefa-avatar {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--gold-bright);
  font-family: "Amiri Quran", "Traditional Arabic", Georgia, serif;
  background: radial-gradient(circle at 32% 28%, #2e5546, #14261f);
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(201,168,76,.25), inset 0 0 12px rgba(0,0,0,.35);
}
body.mushaf .vefa-avatar { background: radial-gradient(circle at 32% 28%, #efe2bd, #dccb9c); }

.din-kelime { font-size: calc(17px * var(--secBoyut)); line-height: 2.1; margin-bottom: 12px; }
.din-kelime .k.vurgu .ok { color: var(--gold-bright); text-decoration: underline; text-shadow: 0 0 14px rgba(255,217,122,.5); }
@media (orientation: landscape) { .din-kelime { font-size: calc(20px * var(--secBoyut)); } }

.sec-anlam.okunuyor {
  text-shadow: 0 0 18px rgba(255,217,122,.55);
  animation: mealNabiz 1.6s ease-in-out infinite; /* opacity nabzı: text-shadow animasyonu her karede yeniden boyatıyordu */
}
@keyframes mealNabiz {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

/* ===== YOL HARİTASI ===== */
.yol { position: relative; padding: 10px 0 40px; }
.yol::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(201,168,76,.15));
  transform: translateX(-50%);
}
.yol-durak {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 46%; margin: 14px 0; cursor: pointer;
}
.yol-durak.sol { margin-right: auto; flex-direction: row-reverse; text-align: right; }
.yol-durak.sag { margin-left: auto; }
.yol-nokta {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--muted);
  background: var(--panel2); border: 2px solid var(--border);
}
.yol-durak.tam .yol-nokta { background: radial-gradient(circle at 32% 28%, #4a7a62, #1d3b30); border-color: var(--gold-bright); box-shadow: 0 0 14px rgba(255,217,122,.4); }
.yol-durak.yari .yol-nokta { border-color: var(--green); color: var(--green); }
.yol-ad { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.yol-ad small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }

/* ===== AÇILIŞ: vakte duyarlı atmosfer + hat animasyonu ===== */
.splash { --parla1: rgba(201,168,76,.45); --parla2: rgba(255,217,122,.65); --hatRengi: #ffd97a; }
.splash.vakit-sabah {
  background: #0d1b14 radial-gradient(ellipse at 50% 22%, rgba(214,170,80,.5) 0%, rgba(46,85,70,.4) 45%, transparent 70%);
  --hatRengi: #ffe3a1; --parla1: rgba(230,190,100,.5); --parla2: rgba(255,230,150,.75);
}
.splash.vakit-gunduz {
  background: #0f2019 radial-gradient(ellipse at 50% 26%, rgba(96,150,120,.55) 0%, rgba(30,60,48,.4) 50%, transparent 72%);
  --hatRengi: #ffd97a;
}
.splash.vakit-aksam {
  background: #140f0c radial-gradient(ellipse at 50% 65%, rgba(196,106,52,.42) 0%, rgba(70,42,28,.35) 45%, transparent 72%);
  --hatRengi: #ffbe8a; --parla1: rgba(230,140,80,.45); --parla2: rgba(255,180,120,.7);
}
.splash.vakit-gece {
  background: #081210 radial-gradient(ellipse at 50% 30%, rgba(40,78,64,.55) 0%, transparent 65%);
}

/* Hattatın kalemi: sağdan sola beliriş */
.splash .ikra {
  color: var(--hatRengi);
  opacity: 0;
  animation: hatBelir 1.5s cubic-bezier(.3,.6,.2,1) .45s forwards, glowVakit 3.5s ease-in-out 2s infinite;
  text-shadow: none;
  will-change: opacity, filter, transform;
}
@keyframes hatBelir {
  0% { opacity: 0; filter: blur(14px); transform: translateY(10px) scale(.97); }
  60% { opacity: 1; filter: blur(3px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); text-shadow: 0 0 40px var(--parla1); }
}
@keyframes glowVakit {
  0%, 100% { text-shadow: 0 0 30px var(--parla1), 0 0 80px var(--parla1); }
  50% { text-shadow: 0 0 55px var(--parla2), 0 0 120px var(--parla1); }
}
.bismillah-top { opacity: 0; animation: solukGel .9s ease .1s forwards; }
.splash h1 { opacity: 0; letter-spacing: 14px; animation: harfTopla 1s ease 1.7s forwards; }
@keyframes harfTopla { 0% { opacity: 0; letter-spacing: 14px; } 100% { opacity: 1; letter-spacing: 2px; } }
.splash .motto, .splash .alt { opacity: 0; animation: solukGel .8s ease 2.15s forwards; }
@keyframes solukGel { to { opacity: 1; } }

/* Ayraç: yıldız patlar, çizgiler ortadan uçlara çizilir */
.divider span { display: inline-block; transform: scale(0); animation: yildizDog .5s cubic-bezier(.3,1.6,.5,1) 2.25s forwards; }
@keyframes yildizDog { to { transform: scale(1); } }
.divider::before { transform-origin: right center; }
.divider::after { transform-origin: left center; }
.divider::before, .divider::after { transform: scaleX(0); animation: cizgiCek .8s ease 2.45s forwards; }
@keyframes cizgiCek { to { transform: scaleX(1); } }
.splash-durum { opacity: 0; animation: solukGel .6s ease 2.7s forwards; }

/* ===== BAŞLIK DÜZENİ: arayüz metinlerinde Her Kelime Büyük (içerik hariç) ===== */
.kart h2, .kart h3, .btn, .tab, .icon-btn, .meal-sekme, .zamm-sec, .blok-sec,
.hedef-detay, .hedef-detay b, .sure-adlar b, .sure-adlar small, .oge-ad,
.namaz-bolum summary, .yol-ad, .ist-tablo td, .quiz-durum, .sure-baslik .tr,
.nuzul-etiket, .sec-sayac, .rozet, .durum, .akis-satir, .esma-satir b,
.progress-label, .sure-ilerleme .oran, .splash .alt, .logo-yazi small,
.sec-ipucu, .ezber-serit, .kible-detay, .kible-derece, .splash-durum, .ses-bilgi,
.oku-arac, .namaz-oge .oge-ad, .konu-cip, .vefa-avatar + div div {
  text-transform: capitalize;
}
/* İçerik alanları asla dönüştürülmez */
.meal, .meal *, .okunus-buyuk, .kelimeler, .kelimeler *, .full-arabic, .arabic,
.oku-okunus, .oku-meal, .oku-diger, .sec-okunus, .sec-anlam, .sec-meal,
.din-ar, .din-kelime, .nuzul-box, .nuzul-box *, .sure-bilgi, .akil-kanca,
.kissa-liste, .kelime-pop, .kelime-pop *, .namaz-aciklama, .esma-satir span,
.oku-fark, .fark-uyari, .altnot, .splash .motto, .logo-yazi small {
  text-transform: none;
}

/* ===== Dinleme: sığdırma + akış geçişi ===== */
.sec-govde { overflow-x: hidden; }
.ayet-akis { animation: ayetSuzul .85s cubic-bezier(.25,.7,.3,1); }
@keyframes ayetSuzul {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Uzunluğa göre otomatik boyut (dikey) */
.din-kisa .din-ar { font-size: calc(42px * var(--secBoyut)); }
.din-orta .din-ar { font-size: calc(33px * var(--secBoyut)); line-height: 1.9; }
.din-uzun .din-ar { font-size: calc(26px * var(--secBoyut)); line-height: 1.85; }
.din-cokuzun .din-ar { font-size: calc(21px * var(--secBoyut)); line-height: 1.8; }
.din-orta .din-kelime { font-size: calc(15px * var(--secBoyut)); }
.din-uzun .din-kelime { font-size: calc(13.5px * var(--secBoyut)); line-height: 1.9; }
.din-cokuzun .din-kelime { font-size: calc(12px * var(--secBoyut)); line-height: 1.8; }
.din-meal-satiri { font-size: calc(21px * var(--secBoyut)); }
.din-orta .din-meal-satiri { font-size: calc(18px * var(--secBoyut)); }
.din-uzun .din-meal-satiri { font-size: calc(15.5px * var(--secBoyut)); }
.din-cokuzun .din-meal-satiri { font-size: calc(14px * var(--secBoyut)); }
/* En sıkışık kademe: ölçüp sığdırma (dinSigdir) gerekirse buraya düşer */
.din-mini .din-ar { font-size: calc(17px * var(--secBoyut)); line-height: 1.75; }
.din-mini .din-kelime { font-size: calc(10.5px * var(--secBoyut)); line-height: 1.7; }
.din-mini .din-meal-satiri { font-size: calc(12.5px * var(--secBoyut)); line-height: 1.55; }
.din-uzun .sec-meal { font-size: calc(13px * var(--secBoyut)); }
.din-cokuzun .sec-meal { font-size: calc(12px * var(--secBoyut)); }
.din-mini .sec-meal { font-size: calc(11px * var(--secBoyut)); }
/* Her şeye rağmen taşarsa: ortalamayı bırak, üstten başlat ki kaydırınca tamamı okunabilsin */
.sec-govde.din-tasti { justify-content: flex-start; }
/* Taşan dev ayetlerde meal alta SABİTLENİR: Arapça+kelimeler arkada kayar, meal hep görünür kalır */
.din-tasti .din-meal-satiri {
  position: sticky; bottom: -2px; z-index: 2;
  background: rgba(6, 15, 12, .95); border-top: 1px solid var(--border);
  margin-top: 10px; padding: 8px 6px 10px; border-radius: 8px 8px 0 0;
  max-height: 32vh; overflow-y: auto;
}
body.mushaf .din-tasti .din-meal-satiri { background: rgba(245, 238, 218, .96); }
/* Yatayda da orantılı */
@media (orientation: landscape) {
  .din-kisa .din-ar { font-size: calc(54px * var(--secBoyut)); }
  .din-orta .din-ar { font-size: calc(40px * var(--secBoyut)); }
  .din-uzun .din-ar { font-size: calc(30px * var(--secBoyut)); }
  .din-cokuzun .din-ar { font-size: calc(24px * var(--secBoyut)); }
  .din-mini .din-ar { font-size: calc(19px * var(--secBoyut)); }
}


/* ===== Ana Sayfa: Ferah Duzen ===== */
.ana-hedef .hedef-ust { display: flex; align-items: center; gap: 18px; }
.ana-hedef .hedef-sayi { font-size: 42px; line-height: 1; color: var(--gold-bright); font-weight: 700; }
.ana-hedef .hedef-sayi small { font-size: 17px; font-weight: 600; color: var(--muted); }
.ana-hedef .hedef-bilgi { flex: 1; min-width: 0; }
.ana-hedef .hedef-bilgi b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 5px; }
.ana-hedef .hedef-bilgi span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.ana-hedef .seri-noktalar { margin-top: 9px; }
.hedef-btn { width: 100%; margin-top: 14px; padding: 12px; font-size: 15px; border-radius: 12px; }

.ders-kart { border-color: rgba(201, 168, 76, .45); }
.ders-cta {
  width: 100%; border: none; border-radius: 13px; padding: 14px 12px 12px;
  background: var(--gold); color: #14100a; font-weight: 700; font-size: 17px;
  font-family: inherit; letter-spacing: .2px;
}
body.mushaf .ders-cta { color: #fff8e8; }
.ders-cta small { display: block; font-weight: 500; font-size: 11.5px; opacity: .82; margin-top: 4px; letter-spacing: 0; }
.mini-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mini-git {
  background: var(--panel2); border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 4px 8px; font-size: 11.5px; color: var(--text); font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.25;
  text-transform: capitalize;
}
.mini-git i { font-style: normal; font-size: 18px; }

/* Ust bar: slogan tek satirda kalir, tasarsa uc nokta */
.logo { min-width: 0; flex: 1; margin-right: 8px; }
.logo-yazi { min-width: 0; }
.logo-yazi small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Krem Acilis (mushaf zevkinde) ===== */
.splash.splash-krem {
  background: #f5eeda radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, .22), transparent 70%);
  --hatRengi: #8a6a1e; --parla1: rgba(160, 125, 28, .30); --parla2: rgba(160, 125, 28, .16);
}
.splash.splash-krem .bismillah-top { color: #8a7a55; }
.splash.splash-krem .ikra { color: #8a6a1e; }
.splash.splash-krem h1 { color: #7a5c14; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .splash.splash-krem h1 {
    background: linear-gradient(165deg, #b8923c 6%, #7a5c14 50%, #503c09 94%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(160, 125, 28, .22));
  }
}
.splash.splash-krem .motto { color: #8a6a1e; }
.splash.splash-krem .splash-durum { color: #7a6f57; }
.splash.splash-krem .divider span { color: #a07d1c; }
.splash.splash-krem .divider::before { background: linear-gradient(90deg, transparent, #a07d1c); }
.splash.splash-krem .divider::after { background: linear-gradient(90deg, #a07d1c, transparent); }


/* ===== Tanitim kartlari (Dinle/Namaz sekme girisleri) ===== */
.tanitim-baslik { display: block; font-size: 15.5px; color: var(--gold-soft); margin-bottom: 6px; }
.tanitim-metin { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0 0 4px; }

/* ===== Dinleyici: duzenli arac seridi ===== */
.din-ust { flex-wrap: nowrap; }
.din-sayac { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: 13px; }
.din-arac2 { display: flex; gap: 6px; padding: 2px calc(10px + env(safe-area-inset-right)) 8px calc(10px + env(safe-area-inset-left)); position: relative; z-index: 220; }
.arac-btn {
  flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 1px; font-size: 11.5px; color: var(--text); font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize;
}
.arac-btn.aktif { background: var(--gold); color: #14100a; border-color: var(--gold); font-weight: 700; }
body.mushaf .arac-btn.aktif { color: #fff8e8; }
.sec-ipucu { transition: opacity 1.2s; }


/* ===== Hatim Mozaigi ===== */
.mozaik { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 5px; }
.moz {
  aspect-ratio: 1; border-radius: 6px; cursor: pointer;
  background: rgba(154, 176, 165, .14); border: 1px solid rgba(154, 176, 165, .18);
  transition: transform .15s;
}
.moz:hover { transform: scale(1.15); }
.moz.yari { background: linear-gradient(0deg, var(--gold) calc(var(--o) * 100%), rgba(154, 176, 165, .14) calc(var(--o) * 100%)); border-color: rgba(201, 168, 76, .4); }
.moz.tam { background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 8px rgba(201, 168, 76, .5); }

/* ===== Nisanlar ===== */
.nisan-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.nisan {
  text-align: center; padding: 12px 6px 10px; border-radius: 13px;
  background: var(--panel2); border: 1px solid var(--border);
  opacity: .38; filter: grayscale(.9);
}
.nisan.kazanildi { opacity: 1; filter: none; border-color: rgba(201, 168, 76, .55); background: linear-gradient(160deg, rgba(201, 168, 76, .14), transparent); }
.nisan span { font-size: 26px; display: block; margin-bottom: 4px; }
.nisan small { font-size: 10.5px; color: var(--muted); line-height: 1.3; display: block; text-transform: capitalize; }
.nisan.kazanildi small { color: var(--text); }

/* ===== Ezber Sinamasi ===== */
.sin-gizli { color: transparent !important; text-shadow: 0 0 8px var(--text); opacity: .45; transition: opacity .3s; }
.sin-devam {
  position: absolute; left: 0; right: 0; bottom: 12%; z-index: 230; text-align: center;
}
.sin-devam .sin-soru { font-size: 15px; color: var(--gold-soft); margin-bottom: 10px; font-weight: 700; }

/* ===== Eko Tekrar ipucu ===== */
.eko-ipucu {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%); z-index: 230;
  background: rgba(201, 168, 76, .14); border: 1px solid rgba(201, 168, 76, .5);
  color: var(--gold-soft); border-radius: 22px; padding: 9px 20px; font-size: 15px; font-weight: 700;
  animation: ekoNefes 1.6s ease-in-out infinite;
}
@keyframes ekoNefes { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* ===== Tefsir + Dualar ===== */
.tefsir-btn { margin-top: 8px; font-size: 12px; padding: 6px 12px; }
.tefsir-kutu {
  margin-top: 8px; padding: 10px 12px; border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, .06); border-radius: 0 10px 10px 0;
  font-size: 13.5px; line-height: 1.8;
}
.dua-govde { margin-top: 8px; }


/* ===== Yanlis Bilinenler ===== */
.yanlis-oge { border-bottom: 1px solid rgba(154, 176, 165, .12); padding: 4px 0; }
.yanlis-bas { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; }
.yanlis-bas b { flex: 1; font-size: 14px; line-height: 1.5; }
.yanlis-isaret { font-size: 14px; }
.yanlis-ok { color: var(--muted); font-size: 13px; }
.yanlis-dogru { font-size: 13.5px; line-height: 1.8; padding: 4px 6px 8px 30px; }

/* ===== Namaz Ogretici ===== */
.og-adim { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(154, 176, 165, .1); }
.og-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.og-adim b { font-size: 14px; }
.og-adim p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 3px; }
.og-etiket {
  font-size: 10px; font-weight: 700; letter-spacing: .4px; padding: 2px 8px;
  border-radius: 10px; border: 1px solid var(--border); color: var(--muted); vertical-align: middle;
}
.og-etiket.farz { color: var(--gold-soft); border-color: rgba(201, 168, 76, .5); background: rgba(201, 168, 76, .08); }
.og-duruslar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.og-duruslar > div {
  text-align: center; padding: 12px 8px; border-radius: 13px;
  background: var(--panel2); border: 1px solid var(--border);
}
.og-cizim { display: block; width: 52px; height: 52px; margin: 0 auto 6px; color: var(--gold-soft); }
.og-cizim svg { width: 100%; height: 100%; }
.og-duruslar b { display: block; font-size: 14px; color: var(--gold-soft); }
.og-duruslar small { font-size: 11px; color: var(--muted); line-height: 1.45; display: block; margin-top: 3px; }


/* ===== Sure arama kutusu ===== */
.ara-kutu {
  width: 100%; margin: 2px 0 10px;
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 14px; font-size: 16px; font-family: inherit;
}
.ara-kutu:focus { outline: none; border-color: var(--gold); }
.ara-kutu::placeholder { color: var(--muted); }


/* Dinleyici: hicbir sey ekrandan tasamaz, yatay kayma olmaz */
.seccade { overflow: hidden; }
.din-ust {
  padding-left: calc(10px + env(safe-area-inset-left));
  padding-right: calc(10px + env(safe-area-inset-right));
}


/* ===== Yakinlastirma kilidi + nazik gecisler ===== */
html, body { touch-action: pan-x pan-y; }
button, .btn, .icon-btn, .tab, .sure-satir, .arac-btn, .mini-git { touch-action: manipulation; }
/* iOS: 16px altindaki girdi kutulari odakta sayfayi yakinlastirir; hepsini 16px yap */
input, select, textarea { font-size: 16px !important; }

.icerik.sayfa-gecis { animation: sayfaGel .3s cubic-bezier(.25, .7, .3, 1); }
@keyframes sayfaGel {
  0% { opacity: 0; transform: translateY(9px); }
  100% { opacity: 1; transform: translateY(0); }
}
.seccade { animation: perdeGel .32s ease-out; }
@keyframes perdeGel { 0% { opacity: 0; } 100% { opacity: 1; } }
.kelime-pop { animation: perdeGel .18s ease-out; }
details.namaz-bolum > *:not(summary) { animation: perdeGel .3s ease-out; }


/* ===== Namaz Vakitleri ===== */
.vakit-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vakit-kutu {
  text-align: center; padding: 9px 4px; border-radius: 11px;
  background: var(--panel2); border: 1px solid var(--border);
}
.vakit-kutu small { display: block; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.vakit-kutu b { font-size: 15.5px; color: var(--text); }
.vakit-kutu.aktif { border-color: var(--gold); background: rgba(201, 168, 76, .12); }
.vakit-kutu.aktif b { color: var(--gold-soft); }
.vakit-serit {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--gold-soft);
  background: rgba(201, 168, 76, .09); border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 12px; padding: 8px 12px; margin: 2px 0 4px; cursor: pointer;
  text-transform: capitalize;
}

/* ===== Ayet Defteri ===== */
.defter-ikonlar { display: inline-flex; gap: 6px; margin-top: 6px; }
.df-btn {
  background: var(--panel2); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 9px; font-size: 12px; opacity: .55; font-family: inherit;
}
.df-btn.aktif { opacity: 1; border-color: var(--gold); background: rgba(201, 168, 76, .14); }
.defter-not {
  font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 4px;
  border-left: 2px solid var(--gold); padding-left: 8px; font-style: italic;
}

/* ===== Tecvid Okulu ===== */
.tecvid-renk {
  display: inline-block; width: 14px; height: 14px; border-radius: 4px;
  vertical-align: -2px; margin-left: 4px;
}


/* Bolunmus dev ayet: parca gostergesi */
.parca-cip {
  display: table; margin: 0 auto 10px; padding: 3px 14px; border-radius: 13px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--gold-soft);
  border: 1px solid rgba(201, 168, 76, .45); background: rgba(201, 168, 76, .1);
  text-transform: capitalize;
}


/* ===== Odak Modu: dikkat dagitanlar suzulerek cekilir ===== */
.din-ust, .din-arac2 { transition: transform .45s cubic-bezier(.4,.1,.2,1), opacity .45s; }
.seccade.sade .din-ust { transform: translateY(-130%); opacity: 0; pointer-events: none; }
.seccade.sade .din-arac2 { transform: translateY(-160%); opacity: 0; pointer-events: none; }
.seccade.sade .sec-ipucu { opacity: 0; }

.topbar, .tabs { transition: transform .4s cubic-bezier(.4,.1,.2,1), opacity .4s; }
body.oku-odak .topbar { transform: translateY(-120%); opacity: 0; pointer-events: none; }
body.oku-odak .tabs { transform: translateY(-220%); opacity: 0; pointer-events: none; }
body.oku-odak .oku-arac { opacity: 0; pointer-events: none; transition: opacity .4s; }


/* YouTube resmi oynatici cercevesi */
.yt-cerceve { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.yt-cerceve iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Kenar tasmasi: ekran cekildiginde ustte/altta bos alan birakma */
html { overscroll-behavior-y: none; background: var(--bg); }
body { overscroll-behavior-y: none; }

/* Acilis ayet perdesi: yazi markasi cekildikten sonra Duha 93:3 usulca belirir */
.splash .ayet-perde {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; opacity: 0; pointer-events: none;
  transition: opacity 1s ease;
}
.splash .ayet-perde .ayet-ar {
  font-size: 34px; line-height: 1.9; color: var(--hatRengi, #ffd97a);
  text-shadow: 0 0 26px var(--parla1, rgba(201,168,76,.45));
}
.splash .ayet-perde .ayet-tr {
  margin-top: 22px; font-size: 19px; line-height: 1.7; font-style: italic;
  font-family: Georgia, 'Palatino Linotype', serif; color: var(--gold-soft);
  max-width: 340px;
}
.splash .ayet-perde .ayet-kaynak {
  margin-top: 14px; font-size: 13px; letter-spacing: 2px; color: var(--muted);
}
.splash .ayet-perde .ayet-cizgi {
  width: 66px; height: 1px; margin-top: 20px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.splash.ayet-asamasi .bismillah-top, .splash.ayet-asamasi .ikra, .splash.ayet-asamasi h1,
.splash.ayet-asamasi .motto, .splash.ayet-asamasi .divider, .splash.ayet-asamasi .splash-durum {
  opacity: 0 !important; transition: opacity .8s ease;
}
.splash.ayet-asamasi .ayet-perde { opacity: 1; transition-delay: .55s; }
.splash.splash-krem .ayet-perde .ayet-ar { color: #8a6a1e; text-shadow: none; }
.splash.splash-krem .ayet-perde .ayet-tr { color: #7a5c14; }
.splash.splash-krem .ayet-perde .ayet-kaynak { color: #8a7a55; }
.splash.kapan { transition: opacity 1.1s ease; }

/* Ilerleme sayfasi duzeni */
.ist-tablo { width: 100%; border-collapse: collapse; }
.ist-tablo td { padding: 9px 6px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.ist-tablo tr:last-child td { border-bottom: none; }
.ist-tablo td:last-child { text-align: right; font-weight: 700; color: var(--gold-soft); white-space: nowrap; }
.halka-kart .orta span { text-transform: none; letter-spacing: .3px; }
.ilerleme-ozet {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 4px 2px 10px;
}
.ilerleme-ozet b { font-size: 30px; color: var(--gold-soft); font-family: Georgia, serif; }
.ilerleme-ozet span { color: var(--muted); font-size: 13px; }

/* ===== TABLET / GENIS EKRAN =====
   iPad'de arka planlar tam genislikte kalir, icerik ise .icerik ile ayni
   olcude ortalanir; baslik ve sekmeler kartlarla hizalanir. */
@media (min-width: 900px) {
  .topbar, .tabs {
    padding-left: calc((100% - 780px) / 2);
    padding-right: calc((100% - 780px) / 2);
  }
  .tabs { justify-content: flex-start; }
  .tab { flex: 0 1 auto; }
  .ses-cubugu > * { max-width: 780px; }
  .ses-cubugu { justify-content: center; }
}
