/* Lokman Hekime Akademi v2 — görsel sistem */
:root {
  --ink: #f2ede1;
  --muted: #a3bdb0;
  --paper: #081510;
  --surface: #0e1f17;
  --surface-2: #142a1f;
  --soft: #1b3527;
  --line: #2b4a3a;
  --emerald: #3ad186;
  --emerald-dark: #0d3d28;
  --gold: #e0b054;
  --gold-deep: #b8862c;
  --gold-soft: rgba(224, 176, 84, 0.13);
  --rose: #d18a9d;
  --wrong: #d18a9d; /* hata vurgusu (önceden tanımsızdı → currentColor'e düşüyordu) */
  --radius: 20px;
  --tap: 44px; /* minimum dokunma hedefi (WCAG 2.5.5 / Material) */
  --nav-h: 66px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow: 0 0 24px rgba(224, 176, 84, 0.18);
  color-scheme: dark;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  /* Aşırı kaydırma zincirini kes: pull-to-refresh / rubber-band TWA'da istenmez */
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  /* iOS yatay modda metinleri otomatik büyütmesin */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(58, 209, 134, 0.09), transparent 60%),
    radial-gradient(900px 480px at -20% 25%, rgba(224, 176, 84, 0.07), transparent 55%),
    linear-gradient(180deg, #081510 0%, #0b1d14 55%, #081510 100%);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
/* Çift dokunuş zoom'u ve tıklama gecikmesini kapat (tüm etkileşimli öğeler) */
button, a, input, select, textarea, label { touch-action: manipulation; }
/* iOS odakta otomatik zoom'u engelleyen taban font (sınıfıyla 16px vermeyenler için) */
input, select, textarea { font-size: 16px; font-family: inherit; }
/* Klavye ile gezinirken görünen odak halkası — fare tıklamasında görünmez */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(58, 209, 134, 0.65);
  outline-offset: 2px;
}
/* Uzun Türkçe kelimeler / URL benzeri diziler yatay taşıma yapmasın */
.card, .modal-panel, .quote, .paylasim-metin, .disclaimer { overflow-wrap: break-word; }
h1, h2, h3 { font-family: "Cormorant Garamond", "Outfit", serif; letter-spacing: 0.2px; margin: 0 0 8px; }

/* Yüzen ışık zerreleri */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55; }
main, .app-header, .bottom-nav { position: relative; z-index: 1; }

/* ---------- Üst bar ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(8, 21, 16, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 74, 58, 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); }
.brand-mark img { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 11px; }
.ig-link { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ses-dugme { font-size: 17px; line-height: 1; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.ses-dugme:active { transform: scale(0.93); }
.ses-dugme[aria-pressed="true"] { border-style: dashed; }

/* ---------- Duraklatma katmanı (canvas oyunları) ---------- */
.pause-wrap { position: relative; }
.pause-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: var(--tap); height: var(--tap); border-radius: 12px;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: rgba(8, 21, 16, 0.72); border: 1px solid var(--line); color: var(--ink);
}
.pause-btn:active { transform: scale(0.93); }
.pause-kaplama {
  position: absolute; inset: 0; z-index: 4; border-radius: 14px;
  background: rgba(6, 17, 12, 0.86); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.pause-kaplama[hidden] { display: none; }
.pause-kaplama strong { font-size: 20px; color: var(--gold); }
.pause-kaplama small { color: var(--muted); font-size: 12.5px; }
.pause-kaplama button { max-width: 200px; }

/* ---------- Görünümler ---------- */
main { max-width: 560px; margin: 0 auto; padding: 14px 14px 24px; }
.view { display: none; }
.view.active { display: block; animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Profil şeridi ---------- */
.profil {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(140deg, rgba(224,176,84,0.1), rgba(20,42,31,0.9) 55%);
  border: 1px solid rgba(224, 176, 84, 0.3);
  border-radius: var(--radius);
  padding: 13px 15px; margin-bottom: 12px;
  box-shadow: var(--glow);
}
.profil-seviye { position: relative; width: 52px; height: 52px; flex: 0 0 auto; }
.profil-seviye svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.profil-seviye .em { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.profil-body { flex: 1; min-width: 0; }
.profil-body strong { display: block; font-size: 14.5px; }
.profil-body small { color: var(--muted); font-size: 11.5px; display: block; }
.profil-sag { text-align: right; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.profil-sag b { display: block; color: var(--gold); font-size: 15px; }

/* ---------- Çipler ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.chip.active { background: var(--emerald-dark); border-color: var(--emerald); color: var(--ink); box-shadow: 0 0 16px rgba(58, 209, 134, 0.25); }
.segment { display: none; }
.segment.active { display: block; animation: rise 0.28s ease; }

/* ---------- Kartlar ---------- */
.card {
  background: linear-gradient(160deg, rgba(20, 42, 31, 0.92), rgba(14, 31, 23, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px;
  /* backdrop-filter kaldırıldı: zemin %92 opak, görsel farkı ihmal edilebilir;
     listede onlarca kart varken blur kaydırma performansını düşürüyordu */
}
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: linear-gradient(160deg, rgba(20, 42, 31, 0.9), rgba(14, 31, 23, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; margin-bottom: 10px;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.tile:active { transform: scale(0.98); border-color: var(--gold); box-shadow: var(--glow); }
.tile-emoji { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; font-size: 24px; background: var(--soft); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
/* AI üretimi kart ikonu (assets/games/tile_<id>.png) — kutuya tam oturur */
.tile-emoji img, .tile-emoji .tile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }

/* Oyun içi görseller (PNG veya gömülü SVG) — kapsayıcıyı doldurur */
.ba-e img, .bt-e img, .mm-e img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bag-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bag-thumb { width: 26px; height: 26px; object-fit: contain; display: block; }
/* Tarla hücresi ~95px: görsel hücreyi doldursun (emoji 2.4rem'di, PNG için küçük) */
.bt-parcel > span:first-child { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.bt-stage-img { width: 78%; height: 78%; object-fit: contain; display: block; margin: 0 auto; }
.agac-img { width: 92px; height: 92px; object-fit: contain; display: inline-block; }
.nota-img { width: 24px; height: 24px; object-fit: contain; display: inline-block; vertical-align: -5px; }
.oda-img { width: 92px; height: 92px; object-fit: contain; display: inline-block; }
.tile-body { min-width: 0; flex: 1; }
.tile-body strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.tile-body span { color: var(--muted); font-size: 12.5px; display: block; }
.tile-meta { color: var(--gold); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tile.yeni::after { content: "YENİ"; position: absolute; } /* kullanılmıyor; rozet tile-meta ile */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 10px; }
.section-title h2 { font-size: 22px; margin: 0; }
.section-title small { color: var(--muted); font-size: 12px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.97); filter: brightness(1.12); }
.btn + .btn { margin-top: 8px; }
.btn-primary { background: linear-gradient(135deg, #35c47c, #1d8a52); color: #06130c; box-shadow: 0 6px 22px rgba(53, 196, 124, 0.25); }
.btn-gold { background: linear-gradient(135deg, #ecc06a, #c08c2c); color: #1d1503; box-shadow: 0 6px 22px rgba(224, 176, 84, 0.28); }
.btn-ghost { background: rgba(27, 53, 39, 0.7); border: 1px solid var(--line); color: var(--ink); }
.btn-wa { background: linear-gradient(135deg, #2fbf64, #128c46); color: #06130c; }

/* ---------- Test akışı ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 6px 0 18px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 999px; transition: width 0.35s ease; }
.q-text { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.opt {
  display: block; width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 9px;
  font-size: 14.5px; line-height: 1.45; transition: all 0.14s ease;
}
.opt:active { border-color: var(--emerald); background: var(--emerald-dark); }
.result-hero {
  text-align: center; padding: 28px 18px 20px;
  background: radial-gradient(circle at 50% 0%, rgba(224, 176, 84, 0.16), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold); border-radius: var(--radius); margin-bottom: 12px;
  box-shadow: var(--glow);
  animation: heroIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes heroIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.result-hero .big { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.result-hero h3 { font-size: 26px; color: var(--gold); }
.result-hero p { color: var(--ink); font-size: 14.5px; opacity: 0.93; }
.advice { padding-left: 20px; margin: 8px 0 0; }
.advice li { margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.mini-note { color: var(--muted); font-size: 11.5px; margin-top: 10px; }
.disclaimer { color: var(--muted); font-size: 11px; text-align: center; margin: 18px 8px 4px; line-height: 1.5; }

/* ---------- Ürünler ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.p-card:active { transform: scale(0.97); border-color: var(--gold); }
.p-img { position: relative; aspect-ratio: 1; background: var(--soft); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-flag { position: absolute; top: 8px; left: 8px; background: rgba(8, 21, 16, 0.88); border: 1px solid var(--gold); color: var(--gold); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-cat { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; }
.p-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.p-price { color: var(--gold); font-weight: 700; font-size: 14.5px; margin-top: auto; }
.site-cta { text-align: center; margin-top: 14px; }
.site-cta p { margin-bottom: 10px; }

/* ---------- Modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 9, 6, 0.75); backdrop-filter: blur(4px); }
.modal-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto;
  overscroll-behavior: contain; /* panel sonuna dayanınca arkadaki sayfa kaymasın */
  background: linear-gradient(180deg, var(--surface-2), var(--paper));
  border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom));
  animation: slideup 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes slideup { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-grab { width: 42px; height: 4px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: var(--tap); height: var(--tap); border-radius: 13px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 17px; display: grid; place-items: center; z-index: 2; }
.modal-img { border-radius: 16px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.modal-panel h3 { font-size: 24px; }
.modal-panel .p-price { font-size: 20px; margin: 4px 0 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(224, 176, 84, 0.35); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.detail-list { padding-left: 18px; margin: 10px 0; }
.detail-list li { color: var(--muted); font-size: 13.5px; margin-bottom: 7px; }
.quote { background: var(--soft); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 10px 12px; color: var(--muted); font-size: 13px; font-style: italic; margin: 8px 0; }

/* ---------- Zikirmatik ---------- */
.zikir-select { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.zikir-select::-webkit-scrollbar { display: none; }
.zikir-wrap { text-align: center; }
.zikir-arabic { font-size: 27px; color: var(--gold); font-family: "Cormorant Garamond", serif; margin: 8px 0 2px; }
.zikir-meaning { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.tap-zone {
  position: relative; width: min(76vw, 295px); height: min(76vw, 295px);
  margin: 6px auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #1f6a41, var(--emerald-dark) 68%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.25);
  user-select: none; touch-action: manipulation;
  transition: transform 0.08s ease;
}
.tap-zone:active { transform: scale(0.97); }
.tap-count { font-size: 64px; font-weight: 700; line-height: 1; }
.tap-target { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tap-hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ring { position: absolute; inset: -1px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: rgba(255, 255, 255, 0.08); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.15s ease; }
.zikir-stats { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 86px; }
.stat b { display: block; font-size: 18px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 11px; }
.zikir-3d-btn { max-width: 260px; margin: 0 auto; }
#tesbih3d-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #050d09; }
#tesbih3d-wrap canvas { display: block; width: 100%; }
.t3d-overlay { position: absolute; top: 10px; left: 0; right: 0; text-align: center; pointer-events: none; }
.t3d-overlay b { font-size: 34px; color: var(--gold); text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.t3d-overlay small { display: block; color: var(--muted); font-size: 11px; }

/* ---------- Vakitler & Kıble ---------- */
.vakit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.vakit { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; text-align: center; }
.vakit b { display: block; font-size: 15px; }
.vakit span { color: var(--muted); font-size: 10.5px; }
.vakit.aktif { border-color: var(--gold); background: var(--gold-soft); }
.vakit.aktif b { color: var(--gold); }
.sehir-sec { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: inherit; font-size: 16px; padding: 10px 12px; } /* 16px: iOS odakta zoom'u engeller */
.kible-wrap { text-align: center; padding: 8px 0 4px; }
.kible-disk {
  width: 170px; height: 170px; margin: 8px auto; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 40%, #16452c, #0a1f14 75%);
  border: 2px solid var(--line);
}
.kible-ok { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; transition: transform 0.3s ease; }
.kible-n { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 11px; font-weight: 700; }

/* ---------- Günlük ---------- */
.task-item { display: flex; align-items: flex-start; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 9px; width: 100%; text-align: left; }
.task-check { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 1px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 15px; color: transparent; transition: all 0.15s ease; }
.task-item.done .task-check { background: var(--emerald); border-color: var(--emerald); color: #06130c; }
.task-item.done .task-text { color: var(--muted); text-decoration: line-through; }
.task-text { font-size: 14px; }
.gratitude-input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font: inherit; font-size: 16px; padding: 12px 14px; resize: none; min-height: 74px; } /* 16px: iOS zoom engeli */
.gratitude-input:focus { border-color: var(--emerald); }
.g-entry { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.g-entry small { color: var(--muted); display: block; font-size: 10.5px; margin-bottom: 2px; }
.g-entry p { margin: 0; font-size: 13.5px; color: var(--ink); }
.g-del { color: var(--muted); font-size: 16px; padding: 2px 6px; position: relative; }
/* Küçük satır-içi butonlarda görsel boyut korunur, dokunma alanı genişletilir */
.g-del::after { content: ""; position: absolute; inset: -13px; }
.dua-card { background: radial-gradient(circle at 50% 0%, rgba(224, 176, 84, 0.12), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid rgba(224, 176, 84, 0.4); }
.dua-card .arabic { font-size: 19px; color: var(--gold); font-family: "Cormorant Garamond", serif; line-height: 1.7; margin-bottom: 8px; }
.dua-card .src { color: var(--muted); font-size: 11.5px; margin-top: 8px; display: block; }
.rozet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rozet { text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; opacity: 0.5; } /* 0.38'den yükseltildi: kilitli rozet etiketi okunabilsin */
.rozet.acik { opacity: 1; border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--glow); }
.rozet .re { font-size: 22px; }
.rozet small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; line-height: 1.25; }
.rozet.acik small { color: var(--gold); }

/* ---------- Oyun bileşenleri (v1 portu) ---------- */
.game-hud { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin: 8px 2px 12px; }
/* Kartlar metin taşıdığı için sütun sayısı sabit 4: 6 sütunda kart 49px'e
   düşüyor ve 10px yazı okunmuyordu. minmax(0,1fr) şart — düz 1fr sütunlar
   uzun esma anlamının minimum genişliğinin altına inmiyor ve ızgara taşıyordu. */
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mem-card { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 26px; position: relative; transition: transform 0.2s ease, background 0.2s ease; cursor: pointer; }
.mem-card.flip { background: var(--emerald-dark); border-color: var(--emerald); }
.mem-card.done { background: var(--gold-soft); border-color: var(--gold); opacity: 0.9; animation: mem-glow 0.6s ease; }
.mem-card.hidden-face { color: transparent; }
.mem-card.hidden-face::after { content: "❁"; color: var(--line); font-size: 20px; position: absolute; }
/* Metin-tabanlı hafıza kartları (Esmâül Hüsna) — 4 sütunda ~77px kart,
   okunabilir olması için 11px taban; eşleşince biraz küçülür. */
.mem-card.mem-text { font-size: 11px; font-weight: 600; padding: 5px; text-align: center; line-height: 1.25; word-break: break-word; overflow: hidden; }
.mem-card.mem-text .mem-inner { display: block; }
.mem-card.mem-text.hidden-face .mem-inner { visibility: hidden; }
.mem-card.mem-text.hidden-face::after { content: "❁"; color: var(--line); font-size: 16px; position: absolute; visibility: visible; }
.mem-card.mem-text.done .mem-inner { font-size: 22px; color: var(--gold); }
/* Eşleşen ismin anlamı: kart içinde kırpılmasın diye ızgara altında tam genişlikte */
.mem-bilgi {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold);
  color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center;
}
.mem-bilgi strong { color: var(--gold); }
@keyframes mem-glow { 0% { box-shadow: 0 0 0 0 var(--gold); } 50% { box-shadow: 0 0 16px 4px var(--gold); } 100% { box-shadow: 0 0 0 0 var(--gold); } }
.quiz-opt.correct { border-color: var(--emerald); background: var(--emerald-dark); }
.quiz-opt.wrong { border-color: var(--rose); background: rgba(209, 138, 157, 0.13); }
.quiz-expl { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin: 4px 0 12px; }
.scramble-letters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.letter { width: 44px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.letter.used { opacity: 0.25; }
.answer-slots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; min-height: 48px; }
.slot { width: 44px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--emerald-dark); border: 1px solid var(--emerald); font-size: 19px; font-weight: 700; }
.slot.empty { background: var(--surface); border-style: dashed; border-color: var(--line); }
.nur-badge { background: var(--gold-soft); border: 1px solid rgba(224, 176, 84, 0.4); color: var(--gold); font-weight: 700; font-size: 16px; border-radius: 14px; padding: 8px 14px; text-align: center; white-space: nowrap; }
.nur-badge small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.match-cols { display: flex; gap: 10px; }
.match-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.match-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 8px; font-size: 13px; font-weight: 600; min-height: 52px; transition: all 0.15s ease; cursor: pointer; }
.match-item.anlam { font-weight: 400; font-size: 12px; color: var(--muted); }
.match-item.sel { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.match-item.ok { color: #06130c; font-weight: 700; pointer-events: none; border-width: 2.5px; animation: match-glow 0.5s ease; }
.match-item.ok::before { content: "✓ "; font-weight: 900; }
.match-item.ok-0 { border-color: #ffd75e; background: #f4c542; }
.match-item.ok-1 { border-color: #4ff0a2; background: #3ad186; }
.match-item.ok-2 { border-color: #ff9db5; background: #f286a4; }
.match-item.ok-3 { border-color: #c9a7ff; background: #b39ddb; }
.match-item.ok.anlam { color: #06130c; font-size: 12.5px; }
.match-item.no { border-color: var(--rose); background: rgba(209, 138, 157, 0.15); }
@keyframes match-glow { 0% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 12px 3px currentColor; } 100% { box-shadow: 0 0 0 0 currentColor; } }
.w-grid { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.w-row { display: flex; gap: 6px; }
.w-cell { width: 46px; height: 46px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.w-cell.aktif { border-color: var(--muted); }
.w-cell.g { background: #1d8a52; border-color: #1d8a52; color: #06130c; }
.w-cell.y { background: #c08c2c; border-color: #c08c2c; color: #1d1503; }
.w-cell.b { background: #14231b; border-color: #14231b; color: var(--muted); }
.kb { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.kb-row { display: flex; gap: 4px; justify-content: center; }
.kb-key { min-width: 26px; height: 44px; padding: 0 4px; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; flex: 1; max-width: 34px; }
.kb-key.wide { max-width: 52px; background: var(--emerald-dark); }
.kb-key.g { background: #1d8a52; color: #06130c; }
.kb-key.y { background: #c08c2c; color: #1d1503; }
.kb-key.b { opacity: 0.35; }
.ws-grid { display: grid; gap: 4px; }
.ws-cell { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; display: grid; place-items: center; padding: 0; }
.ws-cell.sel { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.ws-cell.found { border-color: var(--emerald); background: var(--emerald-dark); }
.cark-wrap { position: relative; display: inline-block; }
.cark-ok { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 26px; z-index: 2; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.bahce-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.plot { aspect-ratio: 1; border-radius: 14px; font-size: 28px; background: #101f16; border: 1px dashed var(--line); display: grid; place-items: center; transition: transform 0.12s ease; }
.plot:active { transform: scale(0.94); }
.plot.bloom { border: 1px solid var(--gold); background: var(--gold-soft); }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 320px; margin: 0 auto; }
.pz-tile { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); padding: 0; background-color: var(--soft); }
.pz-tile.bos { background: transparent; border-style: dashed; }

/* ---------- Yeni oyunlar ---------- */
.oyun-canvas { width: 100%; display: block; border-radius: 14px; touch-action: none; background: #08130d; }

/* ---------- Mizaç Mutfağı ---------- */
.denge-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #4a90d9, var(--soft) 50%, #d97a4a); overflow: hidden; margin: 12px 0 6px; position: relative; }
.denge-bar > i { display: block; height: 100%; background: var(--gold); opacity: 0.75; transition: width 0.3s ease; }
.mutfak-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mutfak-malz { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 13px; border: 2px solid var(--line); background: var(--surface-2); transition: all 0.18s ease; }
.mutfak-malz .mm-e { font-size: 26px; line-height: 1.1; }
.mutfak-malz strong { font-size: 11.5px; font-weight: 600; }
.mutfak-malz small { font-size: 10px; color: var(--muted); }
.mutfak-malz.secili { border-color: var(--gold); background: var(--gold-soft); }
.mutfak-malz.secili small { color: var(--gold); }

/* ---------- Hacamat'ın Vakti ---------- */
.takvim-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 4px 0 16px; }
.takvim-gun { aspect-ratio: 1; border-radius: 11px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; display: grid; place-items: center; transition: all 0.16s ease; }
.takvim-gun.secili { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

/* ---------- Şifa Kelime Avı ----------
   Dar ekranda 8 sütun + 4px boşluk hücreyi ~32px'e düşürüyordu (dokunma hedefi
   önerilen min 44px'in altı; yanlış hücreye dokunma çok olası). Boşluk daralır,
   hücre en az ~40px kalır. */
.avi-izgara {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px;
  /* Kart boşluğunu telafi et: dar ekranda hücreler olabildiğince büyüsün
     (8 sütun × 44px dokunma hedefi 375px'e sığmıyor; kart padding'i geri
     kazanılarak hücre ~42px'e çıkarılır) */
  margin: 0 -8px;
}
@media (min-width: 400px) { .avi-izgara { gap: 3px; margin: 0; } }
.avi-hucre {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); font-weight: 700;
  font-size: clamp(11px, 3.2vw, 14px);
  display: grid; place-items: center; padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  /* Dokunma hedefi: kare olmasa da ~44px'e yaklaşsın */
  min-height: 40px;
}
.avi-hucre.bulundu { background: var(--emerald-dark); border-color: var(--emerald); color: var(--muted); }
.avi-hucre.bas { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.avi-liste { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.avi-kelime { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.avi-kelime.bulundu { border-color: var(--emerald); background: var(--emerald-dark); color: var(--muted); text-decoration: line-through; }

/* ---------- Muhabbet Evi ---------- */
.koku-secenek { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.koku-btn { padding: 14px 10px; border-radius: 13px; border: 2px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; transition: all 0.16s ease; }
.koku-btn:active { border-color: var(--emerald); background: var(--emerald-dark); }

/* ---------- Bereket Bağı (idle) ---------- */
.bag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bag-arsa { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: all 0.2s ease; }
.bag-arsa.ekili { border-style: solid; border-color: var(--emerald); }
.bag-arsa.hazir { border-color: var(--gold); background: var(--gold-soft); animation: hazir-nabiz 1.4s ease-in-out infinite; }
@keyframes hazir-nabiz { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.bag-arsa .ba-e { font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; height: 50px; width: 50px; }
.bag-arsa .ba-e img { width: 50px; height: 50px; object-fit: contain; display: block; }
.bag-arsa .ba-alt { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.bag-arsa.hazir .ba-alt { color: var(--gold); }
.bag-tohum { display: flex; flex-direction: column; gap: 7px; }
.bag-tohum-btn { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface-2); text-align: left; transition: all 0.15s ease; }
.bag-tohum-btn.secili { border-color: var(--gold); background: var(--gold-soft); }
.bag-tohum-btn.yok { opacity: 0.45; }
.bag-tohum-btn .bt-e { font-size: 24px; flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.bag-tohum-btn .bt-e img { width: 40px; height: 40px; object-fit: contain; display: block; }
.bag-tohum-btn .bt-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bag-tohum-btn .bt-b strong { font-size: 13.5px; }
.bag-tohum-btn .bt-b small { font-size: 11px; color: var(--muted); }

/* ---------- Koku Notası Ustası ---------- */
.nota-piramit { display: flex; flex-direction: column; gap: 8px; }
.nota-katman { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 13px; border: 2px solid var(--line); background: var(--surface-2); text-align: left; transition: all 0.18s ease; }
.nota-katman.dolu { border-color: var(--gold); background: var(--gold-soft); }
.nota-katman .nk-ust { font-size: 14px; }
.nota-katman .nk-not { font-size: 11px; color: var(--muted); }
.nota-katman .nk-icerik { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.nota-havuz { display: flex; flex-direction: column; gap: 7px; }
.nota-btn { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); text-align: left; }
.nota-btn.used { opacity: 0.35; border-style: dashed; }
.nota-btn.secili { border-color: var(--gold); background: var(--gold-soft); }
.nota-btn strong { font-size: 13.5px; }
.nota-btn small { font-size: 11px; color: var(--muted); }

/* ---------- Zikir Ritmi ---------- */
.ritim-sahne { position: relative; display: grid; place-items: center; height: 200px; }
.ritim-ic-halka { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(224,176,84,0.25); }
.ritim-dis-halka { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 4px solid rgba(224,176,84,0.65); will-change: transform, opacity; }
.ritim-nabiz { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(224,176,84,0.35), transparent 70%); opacity: 0; }
.ritim-buton { position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, var(--emerald), var(--emerald-dark)); color: #06130c; font-weight: 800; font-size: 13px; letter-spacing: 0.5px; border: 2px solid rgba(255,255,255,0.15); }
.ritim-buton:active { transform: scale(0.94); }

/* ---------- Kur'an Sıralaması ---------- */
.sira-alan { display: flex; flex-direction: column; gap: 6px; }
.sira-yuva { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1.5px dashed var(--line); background: var(--soft); }
.sira-yuva.dolu { border-style: solid; border-color: var(--gold); background: var(--gold-soft); }
.sira-yuva .sy-no { font-size: 11px; font-weight: 800; color: var(--gold); min-width: 20px; }
.sira-yuva .sy-ad { flex: 1; font-size: 13.5px; font-weight: 600; }
.sira-yuva .sy-sil { font-size: 14px; color: var(--muted); padding: 2px 6px; position: relative; }
.sira-yuva .sy-sil::after { content: ""; position: absolute; inset: -14px; }
.sira-havuz { display: flex; flex-direction: column; gap: 7px; }
.sira-btn { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); text-align: left; }
.sira-btn.used { opacity: 0.3; }
.sira-btn strong { font-size: 13.5px; }
.sira-btn small { font-size: 11px; color: var(--muted); }

/* ---------- Test geçmişi ---------- */
.gecmis-kart { border-color: rgba(224, 176, 84, 0.35); }
.gecmis-cizgi { display: flex; flex-direction: column; }
.gecmis-satir { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); position: relative; }
.gecmis-satir:last-child { border-bottom: 0; }
.gecmis-satir.guncel .gc-govde strong { color: var(--gold); }
.gc-nokta { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--soft); border: 1px solid var(--line); }
.gecmis-satir.guncel .gc-nokta { border-color: var(--gold); background: var(--gold-soft); }
.gc-govde { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-govde strong { font-size: 14.5px; }
.gc-govde small { font-size: 11.5px; color: var(--muted); }
.gc-degisim { color: var(--emerald) !important; font-weight: 600; }

/* ---------- Kullanım Özeti ---------- */
.kullanim-satir { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.kullanim-satir .ks-ad { flex: 1; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kullanim-satir .ks-bar { flex: 0 0 70px; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.kullanim-satir .ks-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); border-radius: 999px; }
.kullanim-satir .ks-sayi { flex: 0 0 auto; font-size: 12px; color: var(--gold); min-width: 20px; text-align: right; }
.kullanim-gunler { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 10px; }
.kg-sutun { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.kg-sutun > i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--gold), var(--emerald)); min-height: 4px; transition: height 0.3s ease; }
.kg-sutun small { font-size: 10px; color: var(--muted); }

/* ---------- Hatırlatma kartı (ana ekran) ---------- */
.hatirlatma { border-color: rgba(224, 176, 84, 0.45) !important; background: linear-gradient(135deg, rgba(224,176,84,0.09), transparent 70%); }
.hatirlatma-baslik { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hatirlatma-baslik .hb-e { font-size: 26px; line-height: 1; }
.hatirlatma-baslik strong { font-size: 15px; color: var(--gold); }
.hatirlatma p { font-size: 13px; color: var(--ink); margin: 0; line-height: 1.5; }
.hatirlatma-liste { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.hatirlatma-satir { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.hatirlatma-satir .hs-e { font-size: 15px; flex: 0 0 auto; }
.hatirlatma-satir .hs-b { flex: 1; min-width: 0; }
.hatirlatma-satir .hs-b strong { display: block; font-size: 12.5px; }
.hatirlatma-satir .hs-b small { color: var(--muted); font-size: 11px; }
.hatirlatma-satir .hs-gun { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--gold); text-align: right; }
.hatirlatma-satir.bugun { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- Yedekleme ---------- */
.yedek-ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yedek-ozet > div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.yedek-ozet b { font-size: 15px; color: var(--gold); }
.yedek-ozet span { font-size: 10.5px; color: var(--muted); }
.yedek-dosya { display: block; width: 100%; font-size: 12.5px; color: var(--muted); padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); }
.yedek-dosya::file-selector-button { font: inherit; margin-right: 10px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.yedek-onay { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--emerald-dark); border: 1px solid var(--emerald); }

/* ---------- Nefes & Tefekkür ---------- */
.nefes-sahne { position: relative; display: grid; place-items: center; height: 190px; margin: 4px 0 6px; }
.nefes-daire { width: 150px; height: 150px; border-radius: 50%; border: 3px solid rgba(224, 176, 84, 0.55); background: radial-gradient(circle, rgba(224, 176, 84, 0.18), rgba(58, 209, 134, 0.06)); transform: scale(0.6); will-change: transform; }
.nefes-yazi { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.nefes-yazi strong { font-size: 16px; color: var(--gold); }
.nefes-yazi small { font-size: 13px; color: var(--muted); }
.kervan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; touch-action: none; }
.kv-cell { aspect-ratio: 1; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.kv-tile { position: absolute; inset: 4px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(150deg, #1e3f2d, #14432b); border: 1px solid var(--emerald); animation: pop 0.18s ease; }
.kv-tile.k4 { background: linear-gradient(150deg, #40381a, #4a3a12); border-color: var(--gold); }
.kv-tile.k6 { background: linear-gradient(150deg, #47270f, #3d2008); border-color: #d98a3d; }
.kv-tile.k7 { background: linear-gradient(150deg, #3a1830, #2c1226); border-color: var(--rose); box-shadow: 0 0 14px rgba(209, 138, 157, 0.35); }
.kv-tile b { font-size: 22px; line-height: 1; }
.kv-tile small { font-size: 8.5px; color: var(--muted); margin-top: 2px; }
@keyframes pop { from { transform: scale(0.6); } to { transform: none; } }
.oyun-kategori { margin: 14px 2px 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
/* display:inline-block şart: .tile-body span { display:block } kuralı bu rozetleri
   de yakalayıp tam genişliğe yayıyordu (rozet yerine kalın renkli bant görünüyordu). */
.tile .t-yeni { display: inline-block; background: var(--gold); color: #1d1503; font-size: 9px; font-weight: 800; border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.tile .t-3d { display: inline-block; background: var(--emerald); color: #06130c; font-size: 9px; font-weight: 800; border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Alt navigasyon ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex;
  background: rgba(8, 21, 16, 0.96); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(43, 74, 58, 0.7);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; transition: color 0.15s ease; }
.nav-ico { font-size: 21px; line-height: 1; }
.nav-btn.active { color: var(--gold); }

/* ---------- Toast & konfeti ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px); transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--gold); color: var(--ink);
  font-size: 13.5px; font-weight: 500; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow); z-index: 90; max-width: 88vw; text-align: center;
  animation: rise 0.22s ease;
}
#confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

@media (min-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== PREMIUM OYUN KATMANI (D Paketi) ===== */

/* 1. Oyun kartları — cam efekti + glow */
.mem-card,
.kv-cell,
.plot,
.w-cell,
.slot:not(.empty),
.letter:not(.used),
.match-item,
.quiz-opt,
.kb-key:not(.wide) {
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.mem-card:hover,
.match-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 2. Doğru/yanlış cevap — glow animasyonu */
@keyframes correctGlow {
  0% { box-shadow: 0 0 0 0 rgba(58, 209, 134, 0); }
  40% { box-shadow: 0 0 20px 6px rgba(58, 209, 134, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(58, 209, 134, 0); }
}
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.quiz-opt.correct,
.mem-card.done,
.match-item.ok {
  animation: correctGlow 0.6s ease;
}
.quiz-opt.wrong {
  animation: wrongShake 0.4s ease;
  border-color: var(--rose) !important;
  background: rgba(209, 138, 157, 0.15) !important;
}

/* 3. Skor göstergeleri — animasyonlu sayaç */
.nur-badge,
.game-hud {
  position: relative;
  overflow: hidden;
}
.nur-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(224, 176, 84, 0.12), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 4. Canvas oyunları — premium çerçeve */
.oyun-canvas {
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 5. Çark — premium görünüm */
.cark-wrap {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* 6. Bahçe grid — premium hücre */
.plot {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.plot.bloom {
  box-shadow: 0 0 20px rgba(224, 176, 84, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 7. Letter/slot butonları — premium dokunuş */
.letter {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.letter:active {
  transform: scale(0.94);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.slot:not(.empty) {
  background: linear-gradient(145deg, var(--emerald-dark), #0a2e1c);
  box-shadow: 0 4px 14px rgba(58, 209, 134, 0.2);
}

/* 8. Klavye tuşları — premium görünüm */
.kb-key {
  background: linear-gradient(145deg, var(--soft), var(--surface));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.kb-key:active {
  transform: scale(0.93);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.kb-key.wide {
  background: linear-gradient(145deg, var(--emerald-dark), #0a2e1c);
}

/* 9. W-cell (kelime oyunu) — premium */
.w-cell {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.w-cell.g {
  background: linear-gradient(145deg, #1d8a52, #15703f);
  box-shadow: 0 4px 14px rgba(29, 138, 82, 0.3);
}
.w-cell.y {
  background: linear-gradient(145deg, #c08c2c, #a67824);
  box-shadow: 0 4px 14px rgba(192, 140, 44, 0.3);
}

/* 10. Match item — premium */
.match-item {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.match-item.sel {
  box-shadow: 0 0 16px rgba(224, 176, 84, 0.3);
}

/* 11. Quiz seçenekleri — premium */
.quiz-opt {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quiz-opt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-color: var(--muted);
}

/* 12. Focus-visible — genel kural dosyanın başında (:where ile) tanımlı;
    buradaki bileşen-özel liste artık gereksiz, kaldırıldı. */

/* 13. Scroll-reveal (oyun segmentleri) */
.segment > * {
  animation: segReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes segReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HİKMET MERDİVENİ (Yarışma) ===== */
.yarisma-ladder {
  display: flex; gap: 3px; justify-content: center; align-items: flex-end;
  padding: 10px 12px; margin-bottom: 10px; overflow-x: auto;
  background: var(--surface); border-radius: 10px;
}
.merdiven-adim {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 28px; padding: 4px 2px; border-radius: 6px;
  background: var(--soft); opacity: 0.45; transition: all 0.3s;
}
.merdiven-adim.tamamlandi { opacity: 1; background: rgba(58,209,134,0.15); }
.merdiven-adim.aktif {
  opacity: 1; background: var(--gold); color: var(--paper);
  box-shadow: 0 0 10px rgba(212,175,55,0.4); transform: scale(1.15);
}
.adim-sayi { font-size: 10px; font-weight: 700; }
.adim-emoji { font-size: 14px; }
.yarisma-timer {
  position: relative; height: 6px; background: var(--soft);
  border-radius: 3px; margin: 0 12px 10px; overflow: hidden;
}
.timer-bar {
  height: 100%; width: 100%; background: var(--emerald);
  border-radius: 3px; transition: width 1s linear;
}
.timer-bar.azaldi { background: var(--wrong); animation: pulse-warn 0.5s infinite; }
@keyframes pulse-warn { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.yarisma-timer span {
  position: absolute; right: -28px; top: -9px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.joker-bar {
  display: flex; gap: 6px; justify-content: center;
  padding: 10px 12px; flex-wrap: wrap;
}
.joker-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-size: 13px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.joker-btn:hover { background: var(--soft); border-color: var(--gold); }
.joker-btn.kullanildi { opacity: 0.35; pointer-events: none; text-decoration: line-through; }
.joker-pct {
  display: inline-block; margin-left: 4px; font-size: 12px;
  color: var(--gold); font-weight: 700;
}
.yarisma-paylasim { text-align: center; }
.paylasim-metin {
  font-size: 13px; color: var(--muted); white-space: pre-line;
  padding: 8px; background: var(--soft); border-radius: 8px; margin: 8px 0;
}
.yarisma-opt { position: relative; }
.yarisma-opt.correct { animation: correctGlow 0.6s ease; }
.yarisma-opt.wrong { animation: wrongShake 0.4s ease; }

/* 14. Reduced motion destek */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ GENİŞLETME: GÜNLÜK ARAÇ KARTLARI ============ */
.iy-kart { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: linear-gradient(145deg, rgba(224,176,84,0.14), rgba(224,176,84,0.05)); border: 1px solid rgba(224,176,84,0.4); border-radius: 16px; padding: 13px 14px; margin: 10px 0; cursor: pointer; transition: transform 0.15s ease, border-color 0.2s ease; }
.iy-kart:hover { transform: translateY(-1px); border-color: var(--gold); }
.iy-e { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.iy-b { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.iy-b strong { color: var(--ink); font-size: 14.5px; }
.iy-b small { color: var(--muted); font-size: 11.5px; }
.iy-ok { color: var(--gold); font-weight: 800; font-size: 17px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

/* Manevi İlk Yardım */
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mood-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; cursor: pointer; transition: all 0.15s ease; }
.mood-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.mood-e { font-size: 26px; line-height: 1; }
.mood-btn strong { color: var(--ink); font-size: 13px; }
.mood-btn small { color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.iy-nefes-kart { text-align: center; }
.nefes-halka { width: 132px; height: 132px; margin: 8px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold); font-size: 14px; border: 2px solid rgba(224,176,84,0.55); background: radial-gradient(circle, rgba(224,176,84,0.16), rgba(224,176,84,0.02)); animation: nefesAl 14s ease-in-out infinite; will-change: transform; }
@keyframes nefesAl { 0% { transform: scale(0.9); } 28% { transform: scale(1.12); } 57% { transform: scale(1.12); } 100% { transform: scale(0.9); } }
.tap-zone-mini { width: 120px; height: 120px; margin: 6px auto 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(circle, rgba(58,209,134,0.14), rgba(58,209,134,0.03)); border: 2px solid rgba(58,209,134,0.5); cursor: pointer; }
.tap-zone-mini span { font-size: 30px; font-weight: 800; color: var(--ink); }
.tap-zone-mini small { color: var(--muted); font-size: 10.5px; }

/* 30 Günlük Programlar */
.prog-kart { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin: 8px 0; cursor: pointer; transition: all 0.15s ease; }
.prog-kart:hover { border-color: var(--gold); transform: translateY(-1px); }
.prog-e { font-size: 26px; }
.prog-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.prog-body strong { color: var(--ink); font-size: 14px; }
.prog-body small { color: var(--muted); font-size: 11px; }
.prog-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3a8c5c, #e0b054); border-radius: 99px; transition: width 0.5s ease; }
.prog-bar.buyuk { height: 10px; }

/* Dua Ansiklopedisi */
.dua-ara { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 16px; padding: 11px 13px; margin-bottom: 10px; } /* 16px: iOS zoom engeli */
.dua-ara:focus { border-color: var(--gold); }
.dua-satir { border-bottom: 1px solid var(--line); padding: 4px 0; }
.dua-satir:last-child { border-bottom: 0; }
.dua-ust { display: flex; align-items: stretch; gap: 6px; }
.dua-baslik { flex: 1; text-align: left; background: none; border: 0; padding: 10px 2px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.dua-baslik strong { color: var(--ink); font-size: 13.5px; }
.dua-baslik small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.dua-fav { background: none; border: 0; font-size: 18px; color: var(--line); cursor: pointer; padding: 0 8px; position: relative; }
.dua-fav::after { content: ""; position: absolute; inset: -12px; }
.dua-fav.aktif { color: var(--rose, #d18a9d); }
.dua-detay { padding: 4px 2px 12px; }
.dua-detay .arabic { font-size: 20px; line-height: 1.9; text-align: right; direction: rtl; color: var(--ink); margin: 6px 0 10px; }
.dua-btnlar { display: flex; gap: 8px; margin-top: 10px; }
.dua-btnlar .btn { margin: 0; }

/* Hicri Takvim */
.takvim-satir { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--ink); }
.takvim-satir:last-of-type { border-bottom: 0; }
.takvim-satir b { color: var(--gold); font-size: 12.5px; text-align: right; }
.takvim-not { color: var(--muted); font-size: 11px; margin: 4px 0 8px; line-height: 1.45; }

/* Kâinat Tefekkürü */
.kainat-canvas { display: block; width: 100%; border-radius: 14px; }

/* Zikir Odak Modu */
.odak-overlay { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 30%, #0f2a1c, #06110b 70%); display: flex; align-items: center; justify-content: center; animation: odakGir 0.3s ease; }
@keyframes odakGir { from { opacity: 0; } to { opacity: 1; } }
.odak-kapat { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--muted); font-size: 17px; cursor: pointer; }
.odak-ic { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.odak-baslik { color: var(--gold); font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.odak-zikir { color: var(--ink); font-size: 22px; font-weight: 700; text-align: center; }
.odak-halka { width: 240px; height: 240px; border-radius: 50%; border: 2px solid rgba(224,176,84,0.5); background: radial-gradient(circle, rgba(224,176,84,0.13), rgba(224,176,84,0.02)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: transform 1s ease-in-out; user-select: none; -webkit-tap-highlight-color: transparent; }
.odak-faz { color: var(--muted); font-size: 13px; }
.odak-sayi { color: var(--ink); font-size: 52px; font-weight: 800; line-height: 1; }
.odak-hedef { color: var(--gold); font-size: 12px; }
.odak-not { color: var(--muted); font-size: 12px; text-align: center; max-width: 260px; }
.odak-overlay .btn { width: auto; padding: 10px 26px; }

/* Mizaç Terazisi */
.terazi-kart { text-align: center; }
.terazi-sahne { position: relative; width: 200px; height: 130px; margin: 0 auto 6px; }
.terazi-kol { position: absolute; left: 50%; top: 30px; width: 170px; height: 6px; margin-left: -85px; border-radius: 4px; background: linear-gradient(90deg, #e0b054, #8a5a1a); transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.5, 1); transform-origin: center; }
.tz-uc { position: absolute; top: 2px; font-size: 22px; }
.tz-uc.sol { left: -14px; }
.tz-uc.sag { right: -14px; }
.terazi-direk { position: absolute; left: 50%; top: 33px; width: 6px; height: 66px; margin-left: -3px; background: linear-gradient(180deg, #8a5a1a, #4a3310); border-radius: 3px; }
.terazi-taban { position: absolute; left: 50%; bottom: 16px; width: 90px; height: 10px; margin-left: -45px; background: #4a3310; border-radius: 6px; }

/* ---------- Yatay (landscape) mod ----------
   Kısa telefon ekranlarında daireler dikeyde taşmasın: genişliği vw yerine
   vh ile sınırla. */
@media (orientation: landscape) and (max-height: 500px) {
  .tap-zone { width: min(58vh, 295px); height: min(58vh, 295px); }
  .odak-halka { width: min(54vh, 240px); height: min(54vh, 240px); }
  .zikir-stats { margin: 8px 0; }
  .tap-count { font-size: 52px; }
}

