/* =========================================================================================
 * Gelernt teması — standart renk sistemi
 *
 * KURAL 1 · Her anlamın tek rengi var, her rengin yalnızca İKİ tonu var:
 *   ana ton (yazı, ikon, çizgi, dolgu)  +  açık ton "-t" (yalnızca zemin)
 *     --blue   eylem: düğme, bağlantı, seçili öğe, soru ilerlemesi, aktif sekme
 *     --green  doğru: doğru cevap, ilerleme çubukları (doğru sayısı), tamamlanma
 *     --red    yanlış: yanlış cevap, sayaç rozeti, silme
 *     --amber  ödül: XP, seri, yıldız, taç, günlük hedef
 *   Nötrler: --ink (yazı) · --muted (ikincil yazı) · --gray (pasif/yeni) · --line · --soft · --card · --bg
 * KURAL 2 · Kehribar ASLA yazı rengi değildir (yalnızca ikon/çubuk). Yazılar: ink, muted, blue, green, red.
 * KURAL 3 · Modül renkleri (config.js) tek bir soğuk renk ailesinden, aynı parlaklıkta; yalnızca modül kimliğinde
 *   (ikon kutusu, modül başlık çubuğu, devam kartı) kullanılır. Yeşil/kırmızı/kehribarla karışmaz.
 * KURAL 4 · Rütbe metalleri (app.js › RANKS) yalnızca rütbe rozeti ve seviye çubuğunda.
 * Kontrast (WCAG AA): ana tonlar beyaz zeminde ≥ 4.5:1 (kehribar ≥ 3:1, yalnız grafik), modül renkleri beyaz yazıyla ≥ 4.7:1.
 * Eski değişken adları (--accent, --ok, --bad, --gold …) bu dört renge bağlıdır; yeni sabit renk kodu yazılmaz.
 * ========================================================================================= */
html.modern {
  --bg: #ffffff; --card: #ffffff; --ink: #1f2630; --muted: #5b6675; --gray: #c3c9d2; --line: #e1e5ea; --soft: #f2f5f9;
  --blue: #0076d3; --blue-t: #e2f6ff;
  --green: #1a872b; --green-t: #e2fce1;
  --red: #d53d37; --red-t: #ffece9;
  --amber: #d28300; --amber-t: #fff0c7;
  /* eski adlar → standart renkler */
  --accent: var(--blue); --accentt: var(--blue); --blue2: var(--blue);
  --ok: var(--green); --okt: var(--green); --okbg: var(--green-t);
  --bad: var(--red); --badt: var(--red); --badbg: var(--red-t);
  --gold: var(--amber); --gold2: var(--amber); --orange: var(--amber); --orange2: var(--amber); --warn: var(--amber);
  --goldt: var(--ink); --oranget: var(--ink);
  --c: var(--blue);
  --r: 18px;
  --sh1: 0 0 0 1.5px var(--line);
  --sh2: 0 0 0 1.5px var(--line), 0 6px 20px rgba(20, 30, 45, .08);
  --glass: rgba(255, 255, 255, .92);
}
@media (prefers-color-scheme: dark) {
  html.modern {
    --bg: #131f24; --card: #1a2a31; --ink: #eef4f8; --muted: #a6b3bd; --gray: #4b5d66; --line: #2e3f47; --soft: #22343c;
    --blue: #6ab3fd; --blue-t: #142f4b;
    --green: #75d079; --green-t: #18361a;
    --red: #f6857a; --red-t: #47211d;
    --amber: #fcb442; --amber-t: #442e09;
    --c: #0076d3;
    --sh2: 0 0 0 1.5px var(--line), 0 10px 30px rgba(0, 0, 0, .4);
    --glass: rgba(19, 31, 36, .92);
  }
}

/* ---------- tipografi ---------- */
html.modern body { font-family: "Lexend", -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: normal; letter-spacing: 0; font-weight: 400; }
@media (min-width: 520px) { html.modern body { background: var(--soft); } html.modern .shell { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(20, 30, 45, .10); } }
html.modern b, html.modern strong { font-weight: 600; }
html.modern h1, html.modern h2, html.modern .ab-title { font-weight: 700; letter-spacing: -.01em; }
html.modern .muted, html.modern .tr { color: var(--muted); }
html.modern .fcap, html.modern .ab-mod, html.modern .stsub, html.modern .sec { text-transform: none; letter-spacing: 0; }

html.modern .fcap { font-size: .8rem; font-weight: 600; }
html.modern :focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; }
html.modern .linkbtn, html.modern .oblv { color: var(--blue); }

/* ---------- üst çubuk ---------- */
html.modern .appbar { border-bottom: 1.5px solid var(--line); }
html.modern .ab-title { min-width: 0; font-size: 1.05rem; }

html.modern .ab-pill { border: 0; box-shadow: var(--sh1); color: var(--blue); font-weight: 600; }
html.modern .modbar .appbar { background: var(--c); border-bottom: 0; box-shadow: none; }
html.modern .modbar .ab-pill { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.homebar { gap: 4px; }
.homebar .ab-sp { flex: 1; width: auto; }
.kchip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border: 0; border-radius: 12px; background: none; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.kchip:active { background: var(--soft); }
.kchip .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.kchip.flame .ic { color: var(--gray); }
.kchip.flame.hot .ic, .kchip.xp .ic { color: var(--amber); fill: var(--amber-t); }
.kchip.lvl .ic { color: var(--blue); }
html.modern .ab-note i, html.modern .tabbar .badge { background: var(--red); color: #fff; }

/* ---------- maskot (bahçe cücesi, brand.js) ---------- */
img.mascot { display: block; flex: none; height: auto; }
.z-happy, .z-levelup, .z-celebrate { animation: zhappy .5s ease-out; transform-origin: 50% 90%; }
.z-cheer, .z-goal { animation: zhop 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes zhappy { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes zhop { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .z-happy, .z-levelup, .z-celebrate, .z-cheer, .z-goal { animation: none; } }
@media (prefers-color-scheme: dark) { img.mascot { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)) drop-shadow(0 0 4px rgba(255, 255, 255, .22)); } }   /* lacivert kol ve bacaklar koyu zeminde kaybolmasın */

/* ---------- logo (brand.js): tiklenmiş kutu + gelernt, ge- ve -t mavi; boyut yazı boyutundan ---------- */
.glogo { display: inline-flex; align-items: baseline; gap: .18em; font-family: "Bricolage Grotesque", "Lexend", sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); white-space: nowrap; vertical-align: baseline; }
.glogo-box { width: .72em; height: .72em; flex: none; transform: translateY(.07em); }   /* kutu sağda, l/t harflerinin boyunda, taban çizgisinde */
html.modern .glogo b { color: var(--blue); font-weight: 800; }
/* "gelernt" damgası: grup bitince kategori sayfasında ve sonuç ekranında */
.gstamp { display: inline-flex; padding: 5px 12px 6px; border: 2.5px solid var(--green); border-radius: 12px; transform: rotate(-5deg); font-size: 1.3rem; }
.gstamp .glogo, html.modern .gstamp .glogo b { color: var(--green); }
.gstamp .glogo-box rect { fill: var(--green); }

/* ---------- kartlar, listeler ---------- */
html.modern .rows, html.modern .words, html.modern .legend, html.modern .info, html.modern .instcard, html.modern .rvhero, html.modern .hcard, html.modern .mcard, html.modern .stcard, html.modern .stq, html.modern .stbox:not(.x), html.modern .obfeat li, html.modern .obcard, html.modern .obsum > div {
  border: 0; box-shadow: var(--sh1); border-radius: var(--r); background: var(--card);
}
html.modern .sec { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 24px 4px 10px; }
html.modern .sec .cnt { font-size: .78rem; font-weight: 400; color: var(--muted); }
html.modern .ico { border-radius: 14px; background: var(--c); color: #fff; box-shadow: none; font-size: 1.15rem; font-weight: 700; }
html.modern .play { background: var(--c); box-shadow: none; }
html.modern .mi { background: var(--soft); color: var(--ink); }
html.modern .chev { color: var(--gray); }
html.modern .mc-crown { background: var(--green-t); color: var(--green); }
html.modern .mc-bar, html.modern .mpb, html.modern .bar { background: var(--soft); }
html.modern .mc-bar i, html.modern .mpb i, html.modern .bar i { background: var(--green); }
html.modern .okc, html.modern .mpt { color: var(--ink); } html.modern .okc .ic { color: var(--green); } html.modern .mpt .ic, html.modern .mc-crown.ms { color: var(--amber); }

/* devam kartı: modül renginde, ince Bavyera deseni */

/* ---------- düğmeler: eylem = mavi, her zaman ---------- */
html.modern .btn { border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); font-weight: 600; font-size: 1rem; text-transform: none; letter-spacing: 0; transition: transform .06s, box-shadow .06s; }
html.modern .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--line); }
html.modern .btn.primary { background: var(--blue); color: #fff; box-shadow: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { html.modern .btn.primary { background: #0076d3; } }
/* cevap sonrası "Devam": sonucun rengini taşır — doğru = yeşil, yanlış = kırmızı, pas = gri (cevap kutusu şeridiyle aynı) */
html.modern .btn.go-ok, html.modern .btn.go-bad, html.modern .btn.go-skip { color: #fff; box-shadow: none; font-weight: 600; }
html.modern .btn.go-ok { background: var(--green); } html.modern .btn.go-bad { background: var(--blue); } html.modern .btn.go-skip { background: var(--muted); }
@media (prefers-color-scheme: dark) { html.modern .btn.go-ok, html.modern .btn.go-bad, html.modern .btn.go-skip { color: var(--bg); } }
html.modern .btn.primary:active:not(:disabled), html.modern .btn.go-ok:active, html.modern .btn.go-bad:active, html.modern .btn.go-skip:active { box-shadow: none; opacity: .9; }
html.modern .btn.ghost { background: none; box-shadow: none; color: var(--muted); }
html.modern .btn.danger { background: var(--red); color: #fff; box-shadow: none; }
html.modern .cta-row .btn { text-align: center; line-height: 1.2; padding: 0 10px; font-size: .95rem; }
html.modern .instcard .ib, html.modern .stp, html.modern .stcount.full, html.modern .aim.me, html.modern .hn { background: var(--blue); color: #fff; }
html.modern .chip { border: 0; box-shadow: var(--sh1); font-weight: 500; }
html.modern .chip.on { background: var(--blue-t); color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
html.modern .tabs a.on, html.modern .seg button.on { color: var(--ink); }
html.modern .txt { border: 0; background: var(--card); box-shadow: var(--sh1); }
html.modern .txt:focus { box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px var(--blue-t); }
html.modern .switch input:checked + span { background: var(--blue); }
html.modern .bigchoice button.on { border-color: var(--blue); background: var(--blue-t); } html.modern .bigchoice button.on b { color: var(--blue); }
.bigchoice:has([data-act="gxp"]) { grid-template-columns: repeat(2, 1fr); }

/* ---------- sekme çubuğu ---------- */
html.modern .tabbar { margin: 0; border-radius: 0; padding: 6px 8px calc(6px + var(--sab)); background: var(--glass); box-shadow: none; border-top: 1.5px solid var(--line); }
html.modern .tabbar a { font-weight: 500; border-radius: 12px; margin: 0 2px; color: var(--muted); }
html.modern .tabbar a.on { background: var(--blue-t); color: var(--blue); font-weight: 600; }
html.modern .tabbar a span .ic { width: 24px; height: 24px; }
html.modern .shell:has(.tabbar) .cta { padding-bottom: 10px; }

/* ---------- Öğren (ana sayfa) ---------- */

.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); text-decoration: none; color: inherit; transition: transform .06s; }
.mtile:active { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--line); }
.mtile .ico { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 13px; font-size: 1.1rem; }
.mtile b { font-size: .95rem; line-height: 1.2; }
.mtile small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.mt-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }

/* ---------- karşılama kartı (İlerleme) ---------- */
.kgreet { position: relative; background: var(--card); border-radius: 22px; padding: 16px 16px 14px; margin-bottom: 14px; box-shadow: var(--sh1); overflow: hidden; }
.kgreet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--ink) 0 33.3%, var(--red) 33.3% 66.6%, var(--amber) 66.6%); }
.kg-top { display: flex; align-items: flex-end; gap: 4px; margin: 0 0 12px -8px; }
.kbub { position: relative; flex: 1; background: var(--soft); border-radius: 16px; padding: 10px 14px; font-size: .95rem; line-height: 1.45; margin-bottom: 16px; }
.kbub::after { content: ""; position: absolute; left: -6px; bottom: 16px; width: 12px; height: 12px; background: var(--soft); transform: rotate(45deg); }
.kg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; margin-top: 10px; }
.kg-l { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .kg-l small { color: var(--muted); font-weight: 400; }
.kg-l > .ic { width: 18px; height: 18px; color: var(--amber); }
.kg-v { color: var(--muted); font-weight: 500; white-space: nowrap; }
.kbar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 6px; }
.kbar i { display: block; height: 100%; min-width: 10px; border-radius: 99px; background: var(--blue); transition: width .5s; }
.kbar.gold i { background: var(--amber); }
.kbar.rank i { background: var(--blue); }
.kgreet.done .kbar.gold i { background: var(--green); }
.kg-next { font-size: .82rem; color: var(--muted); margin-top: 8px; } .kg-next b { color: var(--ink); }
.kweek { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.kweek span { display: grid; justify-items: center; gap: 4px; font-size: .74rem; font-weight: 500; color: var(--muted); }
.kweek i { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.kweek .on i { background: var(--amber-t); box-shadow: inset 0 0 0 1.5px var(--amber); }
.kweek .on i .ic { width: 16px; height: 16px; color: var(--amber); fill: var(--amber-t); }
.kweek .now { color: var(--ink); font-weight: 600; } .kweek .now i { box-shadow: inset 0 0 0 1.5px var(--ink); }
.kweek .now.on i { box-shadow: inset 0 0 0 1.5px var(--amber); }
.kweek .fut i { opacity: .5; }
.kinfo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px; padding: 10px; border: 0; border-radius: 12px; background: var(--blue-t); color: var(--blue); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.kinfo .ic { width: 17px; height: 17px; }
.kstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kt2 { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--sh1); }
.kt2 .ic { grid-row: 1 / 3; width: 26px; height: 26px; }
.kt2 b { font-size: 1.25rem; font-weight: 700; line-height: 1.1; } .kt2 span { font-size: .8rem; color: var(--muted); }
.kt2.xp .ic, .kt2.fl .ic { color: var(--amber); fill: var(--amber-t); } .kt2.ms .ic { color: var(--green); } .kt2.ac .ic { color: var(--green); }

/* ---------- test seçimi ---------- */

html.modern .pickrow.on { background: var(--blue-t); box-shadow: inset 4px 0 0 var(--blue); } html.modern .pickrow.on .radio { border-color: var(--blue); background: radial-gradient(var(--blue) 42%, transparent 48%); }

html.modern .stack .ok, html.modern .segs .ok { background: var(--green); border-color: var(--green); }
html.modern .stack .bad, html.modern .segs .bad { background: var(--red); border-color: var(--red); }

/* ---------- soru ekranı ---------- */
html.modern .quiz .appbar { border-bottom: 0; }
html.modern .qp .bar { height: 10px; background: var(--soft); border-radius: 99px; }
html.modern .qp .bar i { background: var(--blue); border-radius: 99px; min-width: 10px; }
html.modern .quiz .qctx, html.modern .mtag { color: var(--muted); }
html.modern .mtag { border: 0; box-shadow: var(--sh1); font-weight: 600; }
html.modern .qtitle { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
html.modern .big { font-size: 2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
html.modern .sent { font-size: 1.25rem; line-height: 1.55; font-weight: 400; }
html.modern .blank { border-bottom-color: var(--blue); }
html.modern .say { background: var(--blue-t); color: var(--blue); }
html.modern .hint2 .ic { color: var(--amber); }
html.modern .opt { border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); font-weight: 500; font-size: 1.02rem; line-height: 1.35; margin-bottom: 2px; }
html.modern .opt:hover:not(:disabled) { box-shadow: 0 0 0 1.5px var(--blue), 0 2px 0 var(--blue); background: var(--card); }
html.modern .opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--blue); }
html.modern .opt .kn { box-shadow: 0 0 0 1px var(--line); border-radius: 8px; color: var(--muted); }
html.modern .opt.right { background: var(--green-t); color: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
html.modern .opt.wrong { background: var(--red-t); color: var(--red); box-shadow: 0 0 0 1.5px var(--red); }
html.modern .opt.dim { opacity: .45; }
html.modern .umlaut button { border: 0; box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); font-weight: 500; }
html.modern .sent mark, html.modern .fr mark { background: var(--amber-t); color: inherit; }
html.modern .pastnote { color: var(--muted); }

/* cevap kutusu: kart zemini, solda anlam rengi şeridi, kompakt + "Ayrıntılar" */
html.modern .fb { border: 0; border-radius: 18px; padding: 14px 16px 12px 20px; background: var(--card); box-shadow: var(--sh2); max-height: 46vh; }
html.modern .fb.ok { box-shadow: inset 4px 0 0 var(--green), var(--sh2); }
html.modern .fb.bad { box-shadow: inset 4px 0 0 var(--amber), var(--sh2); }   /* yanlış = mola, ceza değil: kırmızı yerine turuncu */
html.modern .fb.skip { box-shadow: inset 4px 0 0 var(--muted), var(--sh2); }
html.modern .fbh { justify-content: flex-start; gap: 10px; margin-bottom: 6px; }
.fbh .mascot { margin: -12px -10px 0 -12px; align-self: flex-end; }   /* alt boşluk yok: ayaklar her zaman ayırıcı çizginin üstünde kalır */
.fbt { display: grid; line-height: 1.25; flex: 1; }
.fbt b { font-size: 1.2rem; font-weight: 700; }
.fb.ok .fbt b { color: var(--green); } .fb.bad .fbt b { color: var(--amber); } .fb.skip .fbt b { color: var(--ink); }
.fbt small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.fbt .xpv { color: var(--ink); font-weight: 600; }
html.modern .fr { grid-template-columns: 96px 1fr; padding: 9px 0; border-top: 1.5px solid var(--line); }
html.modern .fr dt { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 500; color: var(--muted); }
html.modern .fr dd { font-size: 1rem; line-height: 1.5; color: var(--ink); }
html.modern .fr dd b { font-weight: 600; }
html.modern .fr.ans dd b { color: var(--green) !important; }
html.modern .fr.mine s { color: var(--red); text-decoration-thickness: 1.5px; }
.wrongans { color: var(--red); font-weight: 600; }   /* kullanıcının yanlış cevabı: üstü çizili değil, yalnız kırmızı */
html.modern .fr dd small { color: var(--muted); font-size: .88rem; }
html.modern .addnote { border: 0; background: var(--card); box-shadow: var(--sh1); font-weight: 500; color: var(--ink); }
.fbmore { margin-top: 2px; border-top: 1.5px solid var(--line); }
.fbmore summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 0 2px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--blue); }
.fbmore summary::-webkit-details-marker { display: none; }
.fbmore summary .ic { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .15s; }
.fbmore[open] summary .ic { transform: rotate(90deg); }
.fbmore summary small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.fbmore .frows { margin-top: 4px; }

/* ---------- sonuç ---------- */
.kres { padding-top: 6px; }
.kres-art { width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; display: grid; place-items: end center; overflow: hidden; background: var(--blue-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M14 0L28 8 14 16 0 8z' fill='%230076d3' fill-opacity='.10'/%3E%3C/svg%3E"); box-shadow: 0 0 0 4px var(--card), 0 0 0 5.5px var(--line); }
.kres-art .mascot { margin: -10px 0 -6px; }
.catdone { display: grid; justify-items: center; gap: 8px; margin: 18px 0 2px; }
.catdone b { font-size: 1.1rem; color: var(--ink); } .catdone small { color: var(--muted); }
.kres h2 { font-size: 1.6rem; color: var(--ink); margin-top: 16px; }
.ktiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.kt { border-radius: 16px; padding: 12px 6px; display: grid; gap: 2px; background: var(--card); box-shadow: var(--sh1); }
.kt span { display: inline-flex; gap: 4px; align-items: center; justify-content: center; font-size: .78rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; padding: 0; }
.kt span .ic { width: 14px; height: 14px; color: var(--k); }
.kt b { font-size: 1.4rem; font-weight: 700; color: var(--ink); background: none; padding: 0; }
.kt.gold { --k: var(--amber); } .kt.green { --k: var(--green); } .kt.green b { color: var(--green); } .kt.orange { --k: var(--amber); }
html.modern .newly { color: var(--ink); }

/* seviye / rütbe kutlaması, bildirim hapı */
.lvup { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; background: rgba(20, 30, 45, .45); animation: fade .2s; }
.lvcard { background: var(--card); border-radius: 24px; padding: 22px 28px 20px; text-align: center; box-shadow: 0 0 0 2px var(--rc, var(--amber)), 0 20px 50px rgba(0, 0, 0, .25); animation: lvpop .4s cubic-bezier(.2, 1.3, .4, 1); max-width: 300px; }
.lvcard .mascot { margin: 0 auto; }
.lvcard > b { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.lvcard p { margin: 4px 0 0; color: var(--muted); } .lvcard p b { color: var(--ink); }
@keyframes lvpop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
html.modern .fxpill { background: var(--ink); color: var(--bg); box-shadow: 0 8px 20px rgba(20, 30, 45, .25); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
html.modern .fxpill .ic { width: 17px; height: 17px; color: var(--amber); fill: var(--amber-t); }

/* ---------- puanlar paneli ---------- */
.xpnote { margin: 0 0 10px; } .xph { margin: 18px 0 4px; font-size: 1.05rem; }
.xptab { display: grid; border-radius: 16px; box-shadow: var(--sh1); overflow: hidden; }
.xptab div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .92rem; } .xptab div + div { border-top: 1.5px solid var(--line); }
.xptab b { color: var(--ink); white-space: nowrap; font-weight: 600; }

/* ---------- kelime durumları (Neu · Gesehen · Geübt · Gelernt) ---------- */

html.modern .stars .ic { color: var(--gray); } html.modern .stars .ic.on { color: var(--amber); fill: var(--amber); }
html.modern .ic.flame { color: var(--amber); stroke: var(--amber); fill: var(--amber-t); fill-opacity: 1; }
html.modern .chk { background: var(--green); color: #fff; }
html.modern .lv { color: var(--blue); } html.modern .lv-C1 { background: var(--blue); color: #fff; }
html.modern .row.rv.ok .ico { background: var(--green-t); color: var(--green); }
html.modern .row.rv.bad .ico { background: var(--red-t); color: var(--red); }
html.modern .row.rv.skip .ico { background: var(--soft); color: var(--muted); }
html.modern .fly { background: var(--amber-t); border-color: var(--amber); color: var(--ink); }
html.modern .gap.late { background: var(--amber-t); border-bottom-color: var(--amber); }

/* ---------- çeviri modu ---------- */
html.modern body.trmode::after { box-shadow: inset 0 0 0 4px var(--blue); background: color-mix(in srgb, var(--blue) 5%, transparent); }
html.modern #trui { background: var(--blue); } html.modern #trui button { color: var(--blue); }
html.modern #trdock { background: var(--blue-t); border-top-color: var(--blue); }
html.modern #trpop { border-color: var(--blue); }

/* ---------- tanıtım ---------- */
.obart { display: grid; place-items: center; }
html.modern .obhero h1 { font-size: 2.7rem; margin: 12px 0 10px; }
.tgate .tg-logo { font-size: 2.4rem; display: flex; justify-content: center; }
.zempty { display: grid; justify-items: center; gap: 6px; padding: 24px 0; }
.zempty b { color: var(--ink); font-size: 1.15rem; margin-top: 4px; } .zempty small { max-width: 300px; } .zempty em { font-style: normal; font-weight: 600; color: var(--blue); }
.mc-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .mc-done .gstamp { font-size: 1rem; }
html.modern .obdots i.on, html.modern .obdots i.done { background: var(--blue); }
html.modern .obopt { border: 0; box-shadow: var(--sh1); }
html.modern .obopt.on { box-shadow: 0 0 0 2px var(--blue); background: var(--blue-t); }
html.modern .obopt.on .radio { border-color: var(--blue); background: radial-gradient(var(--blue) 42%, transparent 48%); }
html.modern .obemoji { background: var(--blue-t); color: var(--blue); box-shadow: none; }
html.modern .row.main { background: var(--blue-t); }
 html.modern .pick input { accent-color: var(--blue); } html.modern .chev.big { color: #fff; }

/* dar telefonlarda üst çubuk: düğmeler başlığı sıkıştırmasın, sağ kenara yapışmasın */
@media (max-width: 400px) {
  html.modern .appbar { gap: 4px; padding-left: 4px; padding-right: 12px; }
  html.modern .appbar > .ab-btn:first-child { width: 36px; }
  html.modern .ab-acts { gap: 6px; }
  html.modern .ab-pill { margin-right: 0; padding: 0 10px; min-width: 0; gap: 4px; }
  html.modern .ab-title { font-size: .98rem; }
}
@media (max-width: 340px) {
  html.modern .ab-note { width: 32px; }
  html.modern .ab-pill { padding: 0 8px; }
  html.modern .ab-title { font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
}

/* hizalama düzeltmeleri */
html.modern .ab-title { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; line-height: 1.15; }
html.modern .ab-title .ab-mod { white-space: nowrap; }
html.modern .quizbar .ab-note { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; }
html.modern .quizbar .ab-note i { top: 4px; right: 2px; }
html.modern .quizbar .ab-note .ic { width: 24px; height: 24px; }
html.modern .pickrow { gap: 12px; }
html.modern .pickrow .cnt2 { white-space: nowrap; }
.mtile small { overflow: visible; white-space: normal; text-overflow: clip; line-height: 1.25; }
.gcard { display: grid; gap: 10px; padding: 14px 14px 12px; margin-bottom: 12px; border-radius: 20px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); transition: transform .06s; }
.gcard:active { transform: translateY(2px); box-shadow: 0 0 0 1.5px var(--line); }
.gc-top { display: flex; align-items: center; gap: 10px; }
.gc-t { display: grid; flex: 1; min-width: 0; line-height: 1.2; } .gc-t b { font-size: 1.1rem; } .gc-t small { font-size: .82rem; color: var(--muted); }
.gc-tag { font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 99px; background: var(--blue-t); color: var(--blue); white-space: nowrap; }
.gc-cats { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.gc-foot { display: flex; align-items: center; gap: 10px; }
.gcard .mt-bar { flex: 1; margin: 0; } .gcard .mt-bar i { background: var(--green); }
.gc-n { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mtile:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- kelime kartı (panel) ---------- */
.ws-top { position: sticky; top: -8px; z-index: 2; margin: -8px -18px 0; padding: 8px 10px 0; height: 44px; background: var(--card); display: flex; justify-content: center; }
.ws-top .grip { margin-top: 2px; }
.ws-x { position: absolute; right: 10px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ws-x .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.ws-x:active { transform: scale(.92); }
.ws-card { margin-top: -6px; padding: 16px 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--c) 9%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 18%, transparent); }

.ws-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .95rem; font-weight: 700; }

.ws-hint { margin: -2px 2px 0; font-size: .78rem; color: var(--muted); }

/* ---------- kelime durumu etiketi (listede ve kartta) ---------- */
.wpill { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; line-height: 1; vertical-align: middle; }
.wpill .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.wpill.new { background: var(--soft); color: var(--muted); }
.wpill.ok { background: var(--green-t); color: var(--green); }
.wpill.bad { background: var(--red-t); color: var(--red); }
.wpill.skip { background: var(--soft); color: var(--ink); }
.wpill.master { background: var(--green-t); color: var(--ink); } .wpill.master .ic { color: var(--green); }
/* kart: ilerleme özeti + alıştırma tablosu */
.ws-sec .wpill { font-size: .78rem; }
.ws-sum { display: grid; gap: 6px; margin-top: -2px; font-size: .84rem; color: var(--muted); }
.ws-sum b { color: var(--ink); font-weight: 600; }
.ws-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; } .ws-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
html.modern .ws-modes li { display: grid; grid-template-columns: 36px 1fr auto 50px; gap: 10px; align-items: center; padding: 8px 12px; min-height: 52px; }
html.modern .ws-modes li.ws-mh { min-height: 0; padding: 8px 12px 6px; font-size: .72rem; font-weight: 600; color: var(--muted); grid-template-columns: 1fr auto 50px; }
.ws-mh span:nth-child(3) { text-align: center; }
.ws-modes .mi { width: 36px; height: 36px; }
.ws-modes .mn { font-weight: 600; }
.mst { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; justify-self: end; }
.mst .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.mst.ok { background: var(--green-t); color: var(--green); } .mst.bad { background: var(--red-t); color: var(--red); }
.mst.skip { background: var(--soft); color: var(--ink); } .mst.new { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); } .mst.off { background: none; color: var(--muted); }
.ws-modes li.off .mi, .ws-modes li.off .mn { opacity: .45; }

/* ---------- alıştırma kutuları: içinde işaret, yanında doğru sayısı ---------- */
html.modern .segs { gap: 3px; }
html.modern .segs i { position: relative; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--gray); background: var(--card); display: grid; place-items: center; }
html.modern .segs i::after { font: 800 10px/1 system-ui, sans-serif; color: #fff; font-style: normal; }
html.modern .segs i.ok { background: var(--green); border-color: var(--green); } html.modern .segs i.ok::after { content: "✓"; }
html.modern .segs i.bad { background: var(--red); border-color: var(--red); } html.modern .segs i.bad::after { content: "✕"; font-size: 9px; }
html.modern .segs i.skip { background: var(--muted); border-color: var(--muted); } html.modern .segs i.skip::after { content: "–"; }
html.modern .segs i.off { border-style: dashed; background: none; opacity: .6; }
@media (prefers-color-scheme: dark) { html.modern .segs i::after { color: var(--bg); } }
html.modern .wp small { min-width: 0; font-size: .76rem; font-weight: 600; color: var(--muted); }
/* başlık satırı: alıştırma adları dikey, tam kutuların üstünde */
html.modern .w.whead { min-height: 0; padding-top: 10px; padding-bottom: 4px; cursor: default; align-items: flex-end; }
html.modern .w.whead:active { background: none; }
.whead .lv, .whead .wp small, .whead .chev { visibility: hidden; }
.whead .meta { align-items: flex-end; }
html.modern .segh i { height: auto; border: 0; background: none; display: flex; justify-content: center; overflow: visible; }
html.modern .segh i::after { content: none; }
.segh b { font-style: normal; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 15px; }
html.modern .segs i.na { visibility: hidden; }

/* soru başlığı satırı: başlık solda, sağda küçük Nota ekle / Yapay zekaya sor ikonları (ek satır yok, soru kaymaz) */
.qhead { display: flex; align-items: center; gap: 8px; }
.qhead .qtitle { flex: 1; min-width: 0; }
.qtools { display: inline-flex; gap: 6px; flex: none; margin: -6px 0; }
.qtool { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; }
.qtool .ic { width: 18px; height: 18px; stroke-width: 2.1; }
.qtool:active { transform: scale(.92); }
.qtool.done, .qtool:disabled { color: var(--green); background: var(--green-t); opacity: 1; cursor: default; }

/* ---------- Öğren sekmesi: Öğrenme yolu · Modüller ---------- */

/* sıradaki set */

/* set listesi */
/* ustalık rozetleri: rütbe metalleriyle aynı (app.js › RANKS): Çırak bronz · Kalfa gümüş · Usta altın */

/* test paneli ve sonuç */

/* gözden geçirme: sıradaki set başlığı, kurs kartında bugün, alttaki düğme, rütbe yükselişi */

/* sade yol ekranı: kaldığın yer kartı + tek satır ilerleme */

/* konu: ustalık çubuğu, ne bekliyor, sonra gelecek konular */

/* Ustalık Yolu: 3 hazır test önerisi ve "Yolun" geçmişi */

/* seviye seçimi */
.lvopt { align-items: flex-start; }
.lvopt .obico { margin-top: 2px; }
.lvopt .rt { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.lvopt .rt small { line-height: 1.4; }
.lvex { margin-top: 3px; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink); font-style: normal; font-size: .72rem; font-weight: 600; }
.lvopt .radio { margin-top: 11px; }
.lvsum { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.lvsum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .86rem; }
.lvsum span { color: var(--muted); } .lvsum b { text-align: right; }
.lvtip { margin: 10px 4px 0; }
.lvok { margin-top: 14px; }
.sheet .obopts { animation: none; }                     /* panelde her seçimde yeniden oynamasın */
.kg-mile { margin-top: 6px; } .kg-mile .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--amber); }
.fbtools { margin: 0 0 0 auto; align-self: flex-start; gap: 8px; }   /* cevap kartının sağ üstü: yapay zekâ ve not simgeleri yan yana, satır kaplamaz */
/* Dokunma hedefi 44×44 px (görünen daire 36 px, çevresinde görünmez halka): başparmakla yanlış düğmeye basmayı önler; iki hedef birbirine taşmaz */
.fbtools .qtool { position: relative; width: 36px; height: 36px; }
.fbtools .qtool::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }

/* ---- Alttan gölgeli (3D) tasarım: modül ikonları ve butonlar ----
 * İkon: kendi renginin %70 koyusu, 4 px iç alt kenar. Buton: dışta 4 px koyu kenar, basınca 4 px iner. */
html.modern .ico, .ico { box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--c) 70%, #000); }
html.modern .btn { box-shadow: 0 0 0 1.5px var(--line), 0 4px 0 var(--line); }
html.modern .btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 1.5px var(--line); }
html.modern .btn.primary { box-shadow: 0 4px 0 color-mix(in srgb, var(--blue) 68%, #000); }
html.modern .btn.go-ok { box-shadow: 0 4px 0 color-mix(in srgb, var(--green) 68%, #000); }
html.modern .btn.go-bad { box-shadow: 0 4px 0 color-mix(in srgb, var(--blue) 68%, #000); } html.modern .btn.danger { box-shadow: 0 4px 0 color-mix(in srgb, var(--red) 68%, #000); }
html.modern .btn.go-skip { box-shadow: 0 4px 0 color-mix(in srgb, var(--muted) 68%, #000); }
html.modern .btn.primary:active:not(:disabled), html.modern .btn.go-ok:active, html.modern .btn.go-bad:active, html.modern .btn.go-skip:active, html.modern .btn.danger:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 0 transparent; opacity: 1; }
html.modern .btn.ghost, html.modern .btn.ghost:active { box-shadow: none; transform: none; }
html.modern .btn:disabled { box-shadow: 0 0 0 1.5px var(--line); }
html.modern .btn.primary:disabled { box-shadow: none; }
/* 3D butonların 4 px alt kenarı için pay: butonlar arası ve alt çubukta */
.cta { gap: 14px 10px; padding-bottom: calc(14px + var(--sab)); }
.cta-row { gap: 10px; padding-bottom: 4px; }

/* Hatırlama sahnesi (cevap kartındaki ampul düğmesi) */
.scene { display: flex; align-items: stretch; gap: 6px; margin: 10px 0 8px; }
.scene .sp { flex: 1; border: 2px solid #1b1b1b; border-radius: 10px; padding: 8px 6px; text-align: center; background: #fff7e6; color: #1b1b1b; }
.scene .se { font-size: 34px; line-height: 1.15; }
.scene .sl { font-size: 12px; margin-top: 2px; }
.scene .sm { align-self: center; min-width: 64px; text-align: center; font-weight: 700; font-size: 13px; padding: 4px 8px; border-radius: 99px; background: #7cc4a4; color: #1b1b1b; }
.scene .sm.r { background: #ef8a8a; } .scene .sm.o { background: #f4a259; } .scene .sm.b { background: #8fb8f0; }
.sx { margin: 6px 0; font-size: 15px; } .sx b { background: #7cc4a4; color: #1b1b1b; border-radius: 4px; padding: 0 4px; }
.smemo { margin: 8px 0; padding: 8px 10px; border-left: 4px solid #f4a259; background: rgba(244,162,89,.15); border-radius: 4px; font-size: 14px; }
.smemo small { display: block; margin-top: 3px; opacity: .75; }

.sparts { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sx small { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }
.scene .sd { font-size: 14px; font-weight: 600; margin-top: 4px; line-height: 1.25; } .scene .sd b { background: #7cc4a4; border-radius: 4px; padding: 0 3px; }
.scene .sl { opacity: .75; }
.sx .sxl { display: block; margin: 0 0 1px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }

.smemo i { font-style: normal; opacity: .7; font-size: 13px; }
.scene .sm { font-size: 11px; letter-spacing: .02em; max-width: 84px; line-height: 1.2; }
.scene .vb, .vb { font-style: normal; font-weight: 700; background: #f4a259; color: #1b1b1b; border-radius: 4px; padding: 0 3px; }
/* Kaydet: kaydedilince yer imi içi dolar (Instagram gibi) */
.qtool.done .ic path:first-child { fill: currentColor; }

/* Geri bildirim düğmesi: her ekranda sol altta, tabbar/CTA üstünde */
.fbk { position: fixed; left: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: 600 12px/1 inherit; box-shadow: 0 2px 10px rgba(0,0,0,.12); opacity: .92; cursor: pointer; }
.fbk .ic { width: 16px; height: 16px; } .fbk:active { transform: scale(.95); }
.fbk-kinds { margin: 4px 0 10px; } .fbk-page { display: flex; gap: 6px; align-items: center; margin: 8px 0 12px; word-break: break-word; } .fbk-page .ic { width: 14px; height: 14px; flex: none; }
#fbtext { width: 100%; resize: vertical; }
/* panel açıkken düğme üstte, kararan alanda durur; panelin altını kapatmaz */
#sheet.open ~ .fbk { bottom: auto; top: calc(10px + env(safe-area-inset-top)); z-index: 90; }
#sheet.open:has(.fbk-kinds) ~ .fbk { display: none; }
/* Soru ekranında: sadece ikon, alt tuşların (ä ö ü ß, Devam) üstünde, hafif saydam */
body:has(.shell.quiz) .fbk { bottom: calc(158px + env(safe-area-inset-bottom)); width: 34px; padding: 0; justify-content: center; opacity: .65; }
body:has(.shell.quiz) .fbk span { display: none; }
body:has(.shell.quiz) #sheet.open ~ .fbk { bottom: auto; opacity: .92; }

/* Profil: baş harfli yuvarlak simge */
.avatar { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: calc(var(--s) * .46); line-height: 1; background: var(--muted); }
.avatar .ic { width: 58%; height: 58%; stroke-width: 2; }
.ab-av { width: 44px; height: 44px; flex: none; display: grid; place-items: center; text-decoration: none; }
.tabbar a span .avatar { display: grid; opacity: .75; } html.modern .tabbar a span .avatar .ic { width: 58%; height: 58%; } .tabbar a.on span .avatar { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.phead { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; } .pav { border: 0; background: none; padding: 0; cursor: pointer; }
.pn { display: grid; gap: 3px; min-width: 0; } .pn b { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pn small { color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* büyük profil simgesine ince, simge renginde gölge halkası */
.avatar.ring { --av: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, var(--av) 22%, transparent), 0 3px 8px color-mix(in srgb, var(--av) 28%, transparent); }

/* Kategori sayfası: Başla'nın üstünde iki seçici (hangi sorular · kaç soru) */
.cta-opts { display: flex; gap: 8px; width: 100%; margin-bottom: 8px; }
.optpill { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .86rem/1 inherit; cursor: pointer; }
.optpill .ic { width: 17px; height: 17px; color: var(--blue); flex: none; }
.optpill span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.optpill i { font-style: normal; color: var(--muted); font-size: .8rem; }
.optpill:last-child { flex: 0 0 auto; }
/* Sürüklenebilir geri bildirim düğmesi */
.fbk { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fbk.moved, body:has(.shell.quiz) .fbk.moved { bottom: auto; right: auto; }
.fbk.drag { opacity: 1; transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.22); cursor: grabbing; transition: transform .12s; }
#sheet.open ~ .fbk.moved { left: 10px !important; top: calc(10px + env(safe-area-inset-top)) !important; }
/* alt düğmesi (Başla vb.) olan sayfalarda varsayılan yer biraz daha yukarıda */
body:has(.shell .cta):not(:has(.shell.quiz)) .fbk:not(.moved) { bottom: calc(196px + env(safe-area-inset-bottom)); }

/* İlerleme kartında sıfırla: sağ üstte küçük ikon düğme, dokununca seçenekler (tümü / tek alıştırma) */
.mc-reset { margin-left: auto; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; }
.mc-reset .ic { width: 18px; height: 18px; } .mc-reset:active { transform: scale(.92); }
/* Alttaki sabit bölüm (seçiciler + Başla): üstüne gölge, kayan listeden ayrı olduğu belli olsun */
.shell:has(.cta-opts) .cta { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 18px -6px rgba(0,0,0,.14); padding-top: 12px; }
/* Geri bildirim: kenara yapışan küçük yuvarlak (yalnız ikon); yeri JS belirler */
.fbk.moved { width: 40px; height: 40px; padding: 0; justify-content: center; bottom: auto !important; right: auto; transition: left .18s ease, top .18s ease; }
.fbk.moved span { display: none; } .fbk.moved .ic { width: 19px; height: 19px; }
.fbk.drag { transition: none; }
/* Kaydettiklerim filtresi */
.nfrow { display: grid; gap: 6px; margin: 4px 0 10px; } .nfrow > span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.nfrow .chips { margin: 0; } .nfrow .chip { min-height: 34px; padding: 0 12px; }

.ssub { margin: 10px 0 2px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.ssub { font-size: .95rem; font-weight: 700; color: var(--ink); } .ssub small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 500; color: var(--muted); } .ssub small b { color: var(--ink); }
.sparts { margin: 10px 0 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.sparts + .btn { margin-top: 14px; }
/* Modal ipucu sayfası: bu cümlede + en çok karıştırılan + çekim */
.shere { margin: 4px 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--blue-t); font-size: .92rem; } .shere .sxl { display: block; margin: 0 0 2px; color: var(--blue); }
.sconf { margin: 12px 0 0; } .sconf .sxl { display: block; margin: 0 0 4px; } .sconf ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; } .sconf li::marker { color: var(--muted); }
.sforms { margin: 10px 0 0; display: grid; gap: 4px; font-size: .82rem; color: var(--muted); } .sforms small b { color: var(--ink); }

/* Konu anlatımı (kategori › Konu) */
.lesson { font-size: .95rem; line-height: 1.5; padding-bottom: 24px; }
.lesson h3 { margin: 18px 0 8px; font-size: 1rem; }
.lesson .l-lead { margin: 4px 0 6px; font-size: 1.02rem; }
.lesson .l-steps, .lesson .l-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.lesson .l-note { margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.lesson .l-tw { overflow-x: auto; }
.lesson .l-tab { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.lesson .l-tab th, .lesson .l-tab td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.lesson .l-tab thead th { background: var(--soft); font-size: .78rem; color: var(--muted); font-weight: 600; }
.lesson .l-tab tbody th { background: var(--soft); font-size: .8rem; color: var(--muted); }
.lesson .l-tab tr:last-child th, .lesson .l-tab tr:last-child td { border-bottom: 0; }
.lesson .l-tab td { font-weight: 700; }
.lesson .l-diff { background: color-mix(in srgb, var(--c, #b5563a) 16%, transparent); color: var(--ink); }
.lesson .l-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson .l-ex li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.lesson .l-ex .l-k { flex: none; min-width: 38px; text-align: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--c, #b5563a); border-radius: 6px; padding: 2px 4px; margin-top: 2px; }
.lesson .l-ex small { display: block; color: var(--muted); font-size: .8rem; }
.lesson .l-err s { color: var(--red, #c0392b); }
.lesson .l-tab small { font-weight: 500; font-size: .7rem; color: var(--muted); }
.lesson .l-pair td:nth-child(odd) { background: var(--soft); color: var(--muted); font-weight: 600; }
.lesson .l-adv td.l-q { color: var(--muted); font-weight: 600; }
.lesson .l-adv th { text-align: left; padding-left: 12px; }
.lesson .l-par td { text-align: left; padding-left: 10px; }
.lesson .l-par thead th { text-align: left; padding-left: 10px; }
.lesson .l-par tbody th { width: 28%; color: var(--ink); font-size: .85rem; }
.lesson .l-par { table-layout: fixed; }
.lesson .l-par td, .lesson .l-par th { padding: 8px 6px; overflow-wrap: anywhere; }
.lesson .l-par tbody th { width: 24%; }
.lesson .l-par thead th:nth-child(2) { width: 40%; }
.lesson .l-par th small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); margin-top: 2px; }

/* Edat tablosu (PräpositionMeister ana tablosu): poster */
.ptshell main.scroll { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 8px; }
.px-tools { flex: none; display: flex; gap: 6px; margin: 0 0 8px; }
.px-b { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.px-b:last-child { margin-left: auto; }
.px-b svg { width: 16px; height: 16px; vertical-align: -3px; }
.px-view { flex: 1; min-height: 240px; position: relative; overflow: hidden; touch-action: none; border-radius: 12px; background: color-mix(in srgb, var(--line) 45%, transparent); -webkit-user-select: none; user-select: none; cursor: grab; }
.px-view:active { cursor: grabbing; }
.px-view .px-poster { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.px-poster { width: 1180px; background: #fff; color: #1d1d1f; padding: 18px; border-radius: 12px; border: 1px solid #ddd; box-sizing: border-box;
  --akk: #2f6fdb; --dat: #2e9d5b; --wechsel: #d9822b; --gen: #a3417a; font-family: inherit; }
.px-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.px-title b { font-size: 28px; letter-spacing: -.01em; } .px-title span { font-size: 15px; color: #777; font-weight: 600; }
.px { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin: -6px; width: calc(100% + 12px); }
.px th, .px td { vertical-align: top; border-radius: 10px; }
.px-corner { width: 150px; background: #f3f1ec; color: #888; font-size: 12px; font-weight: 700; padding: 10px; text-align: left; }
.px-corner span { display: block; } .px-corner span + span { margin-top: 40px; }
.px-h { color: #fff; padding: 10px 12px 12px; text-align: left; }
.px-h b { display: block; font-size: 22px; } .px-h small { display: block; font-size: 13px; opacity: .92; font-weight: 600; margin: 2px 0 8px; }
.px-h.px-akk { background: var(--akk); } .px-h.px-dat { background: var(--dat); } .px-h.px-wechsel { background: var(--wechsel); } .px-h.px-gen { background: var(--gen); }
.px-mf, .px-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; text-align: center; }
.px-mf span { font-size: 10px; opacity: .85; font-weight: 700; }
.px-art span { background: rgba(255,255,255,.22); border-radius: 6px; padding: 3px 0; font-weight: 800; font-size: 15px; }
.px-art i { grid-column: 1 / -1; font-style: normal; font-size: 11px; font-weight: 700; text-align: left; margin-top: 4px; opacity: .9; }
.px-r { background: #f3f1ec; padding: 10px; text-align: left; }
.px-r b { display: block; font-size: 16px; color: #333; } .px-r small { display: block; font-size: 12px; color: #888; font-weight: 600; margin-top: 2px; }
.px td { padding: 8px; }
.px td.px-akk { background: #edf3fd; } .px td.px-dat { background: #ebf6f0; } .px td.px-wechsel { background: #fdf3e8; } .px td.px-gen { background: #f8edf3; }
.px-w { display: inline-flex; flex-direction: column; margin: 0 4px 6px 0; padding: 4px 8px; background: #fff; border-radius: 7px; box-shadow: 0 1px 0 rgba(0,0,0,.08); cursor: pointer; }
.px-w b { font-size: 16px; line-height: 1.15; } .px-w small { font-size: 11px; color: #777; line-height: 1.2; }
.px-akk .px-w b { color: #1f55b5; } .px-dat .px-w b { color: #1f7a45; } .px-wechsel .px-w b { color: #b0661a; } .px-gen .px-w b { color: #872f63; }
.px-none { color: #ccc; font-size: 18px; }
@media print {
  @page { size: A3 landscape; margin: 10mm; }
  body * { visibility: hidden !important; }
  .px-poster, .px-poster * { visibility: visible !important; }
  .px-view .px-poster, .px-poster { position: absolute; left: 0; top: 0; transform: none !important; width: 100%; border: 0; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ptshell main.scroll, .px-view { overflow: visible !important; height: auto !important; background: none; }
}
.pt-link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #7a51aa; background: transparent; color: #7a51aa; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pt-link svg { width: 16px; height: 16px; }
.lesson + .pt-link, .tabs + .pt-link { margin: 0 0 10px; }
.pt-over { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: var(--bg); padding: calc(8px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.pt-over-bar { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.pt-over-bar b { font-size: 1.1rem; }
.pt-over .ws-x { position: static; }
@media print { .pt-over { position: static; padding: 0; } .pt-over-bar { display: none; } }

/* ===== Geliştirici notları (yalnızca sahibi görür) ===== */
.dnb { position: fixed; z-index: 40; width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); opacity: .8; box-shadow: 0 4px 14px rgba(0,0,0,.22); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dnb .ic { width: 18px; height: 18px; } .dnb:active { transform: scale(.94); }
.dnb.moved { bottom: auto; right: auto; } .dnb.drag { opacity: 1; transform: scale(1.1); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
#sheet.open ~ .dnb { display: none; }
.dn-chips { margin: 4px 0 8px; }
.dn-chips .chip.dn-p1.on, .dn-pp .chip.dn-p1.on { background: var(--bad); } .dn-chips .chip.dn-p2.on { background: var(--warn); } .dn-chips .chip.dn-p3.on { background: var(--muted); }
.dn-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.dn-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 14px; padding: 12px 14px; }
.dn-card.dn-p1 { border-left-color: var(--bad); } .dn-card.dn-p3 { border-left-color: var(--gray); } .dn-card.done { border-left-color: var(--ok); }
.dn-top { display: flex; gap: 8px; align-items: center; font-size: .74rem; font-weight: 700; margin-bottom: 6px; }
.dn-pr { color: var(--warn); } .dn-p1 .dn-pr { color: var(--bad); } .dn-p3 .dn-pr { color: var(--muted); }
.dn-k { background: var(--soft); border-radius: 8px; padding: 1px 8px; font-weight: 600; } .dn-d { margin-left: auto; color: var(--muted); font-weight: 500; }
.dn-text { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; font-size: .95rem; }
.dn-where { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--muted); font-size: .8rem; word-break: break-word; } .dn-where .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.dn-ctx { margin: 6px 0 0; font-size: .78rem; color: var(--muted); } .dn-ctx summary { cursor: pointer; } .dn-ctx p { margin: 4px 0 0; word-break: break-word; }
.dn-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .dn-acts button { border: 0; background: var(--soft); color: var(--ink); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: .82rem; } .dn-acts .del { color: var(--bad); }
.dn-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }

/* Yanlış örnekler: çizgi yok, kırmızı renk yeterli */
.lesson .l-err s { text-decoration: none; }
/* Kategori rozeti: iki satırlı kısaltma (dass / zu) sığsın */
.abbr { text-align: center; line-height: 1.05; }
.dn-tabs { margin-bottom: 10px; } .dn-by { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--ok); font-size: .78rem; font-weight: 600; } .dn-by .ic { width: 14px; height: 14px; }
.dn-log { border-left-color: var(--ok); } .dn-log .dn-pr { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); } .dn-log .dn-pr .ic { width: 14px; height: 14px; } .dn-log .dn-text { margin-bottom: 4px; }

.dn-chk { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--line); background: var(--card); color: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dn-chk .ic { width: 15px; height: 15px; stroke-width: 3; } .dn-chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.dn-closed { margin: 6px 0 0; padding-left: 18px; font-size: .8rem; color: var(--ink); } .dn-closed li { margin: 3px 0; word-break: break-word; }

.dnret { position: fixed; z-index: 41; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); overflow: hidden; }
.dnret button { border: 0; background: none; color: inherit; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; } .dnret button + button { padding: 0 12px 0 4px; opacity: .7; }
.dnret .ic { width: 15px; height: 15px; }
body:has(.shell.quiz) .dnret { bottom: calc(158px + env(safe-area-inset-bottom)); }
#sheet.open ~ .dnret { display: none; }
.catrule { margin: 10px 0 4px; font-size: .86rem; color: var(--muted); } .catrule summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; } .catrule .ic { width: 15px; height: 15px; } .catrule p { margin: 6px 0 0; color: var(--ink); }
.ws-modes.noswitch li { grid-template-columns: 36px 1fr auto; } .ws-modes.noswitch li.ws-mh { grid-template-columns: 1fr auto; }

/* ===== Kelime kartı (wordCard, kelime kartının başında) ve cevap kartındaki satırlar (wrows) ===== */
.wcard { display: grid; gap: 6px; padding: 14px 16px 16px; border-radius: 18px; background: color-mix(in srgb, var(--c) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); text-align: left; }
.sheet .wcard { margin-top: -6px; }
.wc-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 2px; }
.wc-grp { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-word { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.wc-word > span { min-width: 0; overflow-wrap: anywhere; }
.wcard .say { flex: none; margin: 0; width: 30px; height: 30px; background: var(--card); box-shadow: var(--sh1); }
.wcard .say .ic { width: 15px; height: 15px; }
.wc-tr { font-size: 1rem; line-height: 1.35; }
.wc-line { font-size: .95rem; line-height: 1.4; color: var(--muted); }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wcard .wc-chips { margin-top: 4px; }
.wc-chip { display: inline-block; padding: 4px 10px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.wc-chip b { font-weight: 700; }
.wc-bar { display: inline-block; width: 1.5px; height: 1em; margin: 0 1.5px; vertical-align: -.15em; background: currentColor; opacity: .55; }
.wc-note { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.wc-eg { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--card); }
.wc-eg .eg-de { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; line-height: 1.35; } .wc-eg .eg-de > span { min-width: 0; }
.wc-eg .eg-tr { margin-top: 2px; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.wrows .fr dd .say { width: 26px; height: 26px; margin: 0 0 0 6px; vertical-align: -6px; } .wrows .fr dd .say .ic { width: 13px; height: 13px; }
.wrows .wc-chips { gap: 5px; } .wrows .wc-chip { padding: 2px 8px; font-size: .76rem; }
.wrows .fr dd small { margin-top: 3px; }
.wr-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 0 6px; }

/* cilalama: Ayrıntılar bölümü */
.fbmore .wrows { margin: 6px 0 0; }
.fbmore .wr-head { padding: 10px 0 8px; }
.fbmore .wrows .fr { padding: 10px 0; }
.fbmore .wrows .fr dd { font-size: .95rem; line-height: 1.45; }
.fbmore .wrows .fr dd b { font-weight: 700; }
.fbmore .wrows .fr dd small { display: block; margin-top: 3px; font-size: .84rem; }
.wcard { gap: 8px; }
.wc-word { font-size: 1.7rem; }
.wc-line { margin-top: -2px; }
.wc-chip { font-weight: 500; }
.wc-eg { margin-top: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* Kelime kartı › İlerlemen: çözüldüyse işaretli onay kutusu, aksi hâlde boş */
.mchk { justify-self: end; width: 24px; height: 24px; margin-right: 6px; border-radius: 7px; border: 2px solid var(--line); background: var(--card); color: transparent; display: inline-flex; align-items: center; justify-content: center; }
.mchk .ic { width: 15px; height: 15px; stroke-width: 3; } .mchk.on { background: var(--ok); border-color: var(--ok); color: #fff; }

/* GrammatikMeister: kural metni, tablo cevabı, yönlendirmeler */
.rtext { margin: 10px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--sh1); font-size: 1.08rem; font-weight: 600; line-height: 1.45; }
.sent mark { background: var(--amber-t, rgba(255,214,0,.35)); color: inherit; border-radius: 4px; padding: 0 2px; }
.okm { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--ok); } .okm .ic { width: 16px; height: 16px; stroke-width: 3; }
.gram-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 4px 0 2px; padding: 10px 0 4px; border-top: 1.5px solid var(--line); }
.gram-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--accent); text-decoration: none; } .gram-links .ic { width: 15px; height: 15px; }
.verb-tip { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #116bb5 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #116bb5 22%, transparent); color: inherit; text-decoration: none; }
.verb-tip .vt-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #116bb5; color: #fff; } .verb-tip .vt-ico .ic { width: 18px; height: 18px; }
.verb-tip b { font-size: .92rem; } .verb-tip small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.lesson + .verb-tip { margin-top: 16px; }
html.modern .fr.tb { grid-template-columns: 122px 1fr; }
.cfrow { display: flex; align-items: stretch; gap: 8px; } .cfrow .txt { flex: 1; min-width: 0; }
.cpre { display: inline-flex; align-items: center; padding: 0 12px; border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.cpre { min-width: 92px; justify-content: center; }

/* Tabloyu doldur: kişi sekmeleri */
.gtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.gtab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--soft); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.gtab.on { background: var(--blue-t); color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
.gtab.full:not(.on):not(.bad)::after { content: " ✓"; color: var(--ok); }
.gtab.bad { background: color-mix(in srgb, var(--bad) 14%, var(--card)); color: var(--bad); }
.gpane { display: none; } .gpane.on { display: grid; }
.gpane label span:empty { display: none; }
.gpane { gap: 8px; }
/* Tabloyu doldur kutu durumları (html.modern .txt'yi ezmek için aynı önek) */
html .multi .txt.cf.given { background: var(--soft); box-shadow: none; color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1; font-style: italic; }
html .multi .txt.cf.ok { background: var(--okbg); box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--okt); -webkit-text-fill-color: var(--okt); opacity: 1; font-weight: 600; }
html .multi .txt.cf.ok2 { background: var(--amber-t); box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; font-weight: 600; }
html .multi .txt.cf.retry { box-shadow: inset 0 0 0 2px var(--bad); }
html .multi .txt.cf.bad { background: var(--badbg); box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; font-weight: 700; }
.cfrow .cfbox { position: relative; flex: 1; min-width: 0; display: flex; } .cfbox .txt { flex: 1; min-width: 0; }
.cfnote { position: absolute; right: 12px; top: -9px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; padding: 0 7px; border-radius: 7px; background: var(--card); font-size: .72rem; font-weight: 700; line-height: 18px; color: var(--muted); }
.cfbox:not(.noted) .cfnote { display: none; }
.cfnote .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.cf.ok2 + .cfnote { color: var(--amber); } .cf.retry + .cfnote { color: var(--bad); } .cf.bad + .cfnote { color: var(--bad); font-weight: 500; }
.gcnt { font-size: .74rem; font-weight: 600; opacity: .75; margin-left: 2px; }
/* Gramer tablosu (GrammatikMeister posteri): Edat tablosuyla aynı tuval; satır rengi --fc (yapı ailesi) */
.rows.mtable { margin-bottom: 12px; }
.pt-link.gx-link { border-color: #0076d3; color: #0076d3; }
.gx-poster { width: 1240px; }
.gx-legend { --fc: #3a3a3c; display: flex; gap: 24px; margin: -4px 2px 12px; font-size: 14px; color: #555; font-weight: 600; }
.gx-legend i { display: inline-block; font-style: normal; margin-right: 6px; padding: 2px 9px; border-radius: 6px; font-weight: 800; }
.gx-legend .gx-fin { background: var(--fc); color: #fff; } .gx-legend .gx-end { box-shadow: inset 0 0 0 2px var(--fc); color: var(--fc); }
.gx { width: calc(100% + 12px); margin: -6px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.gx col.gx-c1 { width: 160px; } .gx col.gx-c2 { width: 230px; } .gx col.gx-c3 { width: 250px; }
.gx th, .gx td { border-radius: 10px; }
.gx thead th { background: #f3f1ec; color: #777; font-size: 12px; font-weight: 700; text-align: left; padding: 8px 10px; vertical-align: bottom; }
.gx-sh span { background: none !important; box-shadow: none !important; color: #777 !important; font-size: 12px !important; font-weight: 700 !important; min-height: 0 !important; padding: 0 !important; }
.gx-fam th { background: var(--fc); color: #fff; padding: 0; text-align: left; }
.gx-go { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; cursor: pointer; }
.gx-go b { font-size: 21px; } .gx-go small { font-size: 13px; font-weight: 600; opacity: .9; }
.gx-fnote { flex: 1; font-size: 13px; font-weight: 600; opacity: .95; }
.gx-go em { font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.22); }
.gx tbody tr:not(.gx-fam) > * { background: color-mix(in srgb, var(--fc) 7%, #fff); padding: 9px 10px; vertical-align: middle; text-align: left; }
.gx-name b { display: block; font-size: 16px; color: var(--fc); line-height: 1.2; }
.gx-lv { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 800; color: #666; background: #fff; border-radius: 6px; padding: 1px 6px; }
.gx-ne, .gx-f { font-size: 13.5px; line-height: 1.35; color: #444; } .gx-f { color: #333; } .gx-f b { color: var(--fc); }
.gx-slots { display: grid; grid-template-columns: 92px 120px minmax(0, 1fr) 196px; gap: 6px; }
.gx-slots span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 34px; padding: 4px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); font-size: 15px; font-weight: 600; color: #333; line-height: 1.2; }
.gx-slots .gx-fin { background: var(--fc); color: #fff; font-weight: 800; }
.gx-slots .gx-end { background: #fff; box-shadow: inset 0 0 0 2px var(--fc); color: var(--fc); font-weight: 800; }
.gx-slots .gx-e { background: transparent; box-shadow: none; color: #c4c4c4; }
.gx-slots em.gx-fin { font-style: normal; margin-left: 5px; padding: 2px 7px; border-radius: 6px; background: var(--fc); color: #fff; }
.gx-tr { display: block; margin-top: 5px; font-size: 12px; color: #777; font-style: italic; }
.gx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gx-card { --fc: #3a3a3c; background: #f8f7f4; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.45; color: #333; }
.gx-card.gx-wide { grid-column: span 2; }
.gx-ct { display: block; margin-bottom: 8px; font-size: 17px; color: #1d1d1f; }
.gx-card ul { margin: 0; padding-left: 18px; } .gx-card li { margin: 3px 0; } .gx-card b { color: #1d1d1f; }
.gx-card u { text-decoration-color: #d9822b; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.gx-p { margin: 8px 0 0; font-size: 13px; color: #555; }
.gx-strip { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 0 0 8px; }
.gx-strip .gx-sl { grid-row: 1 / 3; font-size: 12.5px; font-weight: 700; color: #666; }
.gx-strip .gx-tr { grid-column: 2; margin-top: 3px; }
.gx-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gx-mini th, .gx-mini td { padding: 4px 6px; text-align: left; border-bottom: 1px solid #ebe8e1; }
.gx-mini thead th { font-size: 11px; font-weight: 700; color: #888; }
.gx-mini thead .gx-hv { font-size: 14px; color: #1d1d1f; border-bottom: 2px solid #ddd; }
.gx-mini tbody th { font-size: 12px; font-weight: 700; color: #777; }
.gx-mini td:nth-child(3n+2) { border-left: 2px solid #ebe8e1; }
.gx-k2 { color: #b0661a; font-weight: 700; }
.gmean { margin: 2px 0 2px; padding: 9px 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: .9rem; line-height: 1.4; }
.gmean i { color: var(--ink); font-style: normal; font-weight: 600; }
/* Tabloyu doldur: uzun cevap kutuya sığsın (hätte bezahlt werden müssen), uzun özne iki satıra kırılsın (die Rechnungen) */
html .multi .txt.cf.lng { font-size: .92rem; } html .multi .txt.cf.xlng { font-size: .8rem; padding-left: 10px; padding-right: 10px; }
.gpane .cpre { white-space: normal; max-width: 46%; line-height: 1.15; text-align: center; padding: 6px 10px; }
.gx-card.gx-full { grid-column: 1 / -1; } .gx-kt td { font-size: 14px; } .gx-kt small { color: #888; }
.gpane .cpre { min-width: 108px; }
/* kelime kartı: yanlış ✗ */
.mchk.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
/* Tabloyu doldur: boş kutu uyarısı */
.gwarn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-t); color: var(--ink); font-size: .88rem; line-height: 1.4; }
.gwarn .ic { flex: none; width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }
.gtab.todo:not(.full) { box-shadow: 0 0 0 2px var(--amber); }
/* Kelimeler: seviye ve durum katlanır */
.lfilt { margin: 4px 0 6px; } .lfilt summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.lfilt summary::-webkit-details-marker { display: none; } .lfilt summary .ic { width: 16px; height: 16px; } .lfilt[open] summary { color: var(--ink); }
/* soru ekranından açılan konu / kural sayfası */
.ksh { margin: 4px 2px 8px; font-size: 1.15rem; } .krule { display: flex; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: .92rem; line-height: 1.45; } .krule .ic { flex: none; width: 18px; height: 18px; color: var(--amber); }
/* Tabloyu doldur: kutu cümlenin içinde (Ich sehe [___] Frau.) */
.cfrow.frame { align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.cfrow.frame .fpre, .cfrow.frame .fpost { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.cfrow.frame .cfbox { flex: 0 1 150px; min-width: 104px; }
.cfrow.frame .cpre { min-width: 0; }
.qhead .qkonu { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 0; border-radius: 999px; background: var(--soft); color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.qhead .qkonu .ic { width: 15px; height: 15px; } .qhead { display: flex; align-items: center; gap: 8px; }
.gcard .ico { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 14px; }

/* tanıtım: kaynak ve sayılar, kategori örnekleri */
.obstat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.obstat > div { display: grid; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); }
.obstat b { font-size: 1.3rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; } .obstat span { font-size: .78rem; color: var(--muted); }
html.modern .obhero > p.obsrc { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .86rem; line-height: 1.45; color: var(--muted); max-width: none; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--blue-t); }
.obsrc .ic { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.obcats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.obcats li { display: grid; gap: 1px; font-size: .84rem; line-height: 1.35; padding: 7px 10px; border-radius: 10px; background: var(--soft); }
.obcats b { font-size: .84rem; } .obcats span { color: var(--muted); }
.obhow .obcard { align-items: flex-start; } .obhow .obcard > span { margin-top: 2px; }

/* tanıtım: karşılama — dikey logo ve dört ana özellik */
.obwel { display: grid; justify-items: center; text-align: center; padding-top: 18px; animation: obin .4s ease-out; }
.glogo-stack { display: grid; justify-items: center; gap: 14px; font-family: "Bricolage Grotesque", "Lexend", sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.glogo-stack svg { width: 64px; height: 64px; transform: rotate(-6deg); filter: drop-shadow(0 8px 14px rgba(0, 104, 196, .28)); animation: glgpop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.glg-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: glgtick .45s ease-out .35s forwards; }
@keyframes glgpop { from { transform: rotate(-16deg) scale(.6); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes glgtick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .glogo-stack svg, .glg-tick { animation: none; stroke-dashoffset: 0; } }
.glogo-stack .glogo-wm { font-size: 2.9rem; } html.modern .glogo-stack b { color: var(--blue); font-weight: 800; }
.obw-h { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: 22px 0 6px; color: var(--ink); text-wrap: balance; }
.obw-sub { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 320px; margin: 0 auto 22px; }
.obhd { text-align: center; margin: 10px 0 18px; animation: obin .35s ease-out; }
.obhd h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink); }
.obhd p { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0 auto; max-width: 330px; }
.obdone .obsum { width: 100%; margin-top: 4px; } .obdone .obw-sub { margin-top: 14px; }
.obwel .obw-h { text-wrap: balance; }
.obpil { width: 100%; display: grid; gap: 8px; text-align: left; }
.obpil > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); }
.obpil span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-t); color: var(--blue); }
.obpil span .ic { width: 20px; height: 20px; }
.obpil p { margin: 0; display: grid; line-height: 1.3; } .obpil b { font-size: .93rem; } .obpil small { color: var(--muted); font-size: .8rem; }


.obwel .obpil { margin-top: 4px; }
.obintro { padding-top: 7vh; } .obintro .obw-sub { max-width: 340px; text-wrap: pretty; font-size: 1rem; line-height: 1.55; }

/* ---------- tanıtım (yeni akış): sorun → fikir → kapsam → her yönden → kontrol → görünürlük → seviye → hedef → deneme → sonuç ---------- */
.onboard .cta { gap: 8px; }
.obfoot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.obfoot .ic { width: 14px; height: 14px; }
.obtxt { color: var(--muted); font-size: .95rem; line-height: 1.55; text-align: center; margin: 18px auto 0; max-width: 340px; text-wrap: pretty; }
.obtxt b { color: var(--ink); }
.obbrand { text-align: center; font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--ink); margin: 12px auto 0; max-width: 320px; text-wrap: balance; }
@keyframes obrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.obmess { display: grid; gap: 8px; max-width: 300px; margin: 6px auto 0; }
.obmess > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--sh1); font-size: .92rem; animation: obrise .4s ease-out both; animation-delay: calc(var(--k) * 90ms); }
.obmess > div:nth-child(odd) { transform: rotate(-1.4deg); margin-right: 18px; } .obmess > div:nth-child(even) { transform: rotate(1.2deg); margin-left: 18px; }
.obmess span { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.obmess .ic { width: 17px; height: 17px; }
.obseg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); margin-bottom: 12px; }
.obseg button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 8px 0; border-radius: 10px; cursor: pointer; }
.obseg button.on { background: var(--card); color: var(--blue); box-shadow: var(--sh1); }
.obcov { border-radius: 18px; background: var(--card); box-shadow: var(--sh1); padding: 14px 16px; text-align: center; }
.obcov > p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.obcov-chain { display: inline-block; margin: 10px 0 12px; padding: 4px 12px; border-radius: 99px; background: var(--blue-t); color: var(--blue); font-weight: 600; font-size: .85rem; }
.obcov dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.obcov dl div { display: grid; gap: 2px; } .obcov dt { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; } .obcov dd { margin: 0; font-size: .74rem; color: var(--muted); }
.obsrc2 { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: .84rem; line-height: 1.45; color: var(--muted); }
.obsrc2 .ic { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }
.obasp { list-style: none; margin: 0; padding: 4px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--sh1); }
.obasp li { display: grid; grid-template-columns: 6.6rem 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); animation: obrise .35s ease-out both; animation-delay: calc(var(--k) * 70ms); }
.obasp li:last-child { border-bottom: 0; }
.obasp b { font-size: .92rem; } .obasp small { color: var(--muted); font-size: .82rem; }
.obasp .mchk { margin-right: 0; }
.obasp-sum { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--soft); font-size: .88rem; }
.obasp-sum span { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; } .obasp-sum .ic { width: 16px; height: 16px; }
.oblvg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.oblvg button { display: grid; gap: 2px; padding: 14px 10px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--sh1); font: inherit; color: var(--ink); cursor: pointer; }
.oblvg b { font-size: 1.35rem; color: var(--blue); } .oblvg small { color: var(--muted); font-size: .8rem; }
.oblvg button.on { background: var(--blue-t); box-shadow: 0 0 0 2px var(--blue); }
.obchain { margin: 10px 2px 0; font-size: .85rem; font-weight: 600; text-align: center; color: var(--blue); }
.obchain.muted { font-weight: 400; color: var(--muted); }
.obsec { margin: 22px 2px 8px; font-weight: 700; font-size: 1rem; } .obsec small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.obwhy { display: grid; gap: 8px; }
.obwhy button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--sh1); font: inherit; font-size: .92rem; color: var(--ink); text-align: left; cursor: pointer; }
.obwhy .cbx { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--gray); display: grid; place-items: center; color: transparent; }
.obwhy .cbx .ic { width: 14px; height: 14px; stroke-width: 3; }
.obwhy button.on { background: var(--blue-t); box-shadow: 0 0 0 2px var(--blue); } .obwhy button.on .cbx { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: none; box-shadow: none; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .obmess > div, .obrel-r, .obasp li { animation: none; } }
.onboard .obhd { margin: 4px 0 14px; } .onboard .obhd h1 { font-size: 1.32rem; line-height: 1.25; text-wrap: balance; }
.ob-s4 .obasp li { padding: 6px 0; } .ob-s4 .obtxt { margin-top: 12px; } .ob-s4 .obbrand { margin-top: 8px; }
.obstill .obhd, .obstill .obwel, .obstill .obopts, .obstill .obq, .obstill .obmess > div, .obstill .obrel-r, .obstill .obasp li { animation: none; }
.obasp-sum { justify-content: flex-start; gap: 12px; } .obasp-sum span { flex: none; } .obasp-sum small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.ob-s4 .obsec { margin-top: 18px; }
.ob-s4 .obbrand { margin-top: 16px; }
.obgrp { display: grid; gap: 10px; }
.obgrp-c { border-radius: 16px; background: var(--card); box-shadow: var(--sh1); padding: 11px 14px; border-left: 4px solid var(--c); animation: obrise .4s ease-out both; animation-delay: calc(var(--k) * 140ms); }
.obgrp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.obgrp-h .ico { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; }
.obgrp-h .ico .ic { width: 15px; height: 15px; }
.obgrp-h b { flex: 1; min-width: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obgrp-h em { flex: none; font-style: normal; font-size: .76rem; font-weight: 600; color: var(--blue); background: var(--blue-t); padding: 3px 8px; border-radius: 99px; }
.obgrp-w { display: flex; flex-wrap: wrap; gap: 6px; }
.obgrp-w { gap: 5px; } .obgrp-w span { padding: 4px 9px; border-radius: 9px; background: var(--soft); font-size: .84rem; font-weight: 500; }
.obstill .obgrp-c { animation: none; }
@media (prefers-reduced-motion: reduce) { .obgrp-c { animation: none; } }
.obstill .obcalm { animation: none; }
.obmess2 { grid-template-columns: 1fr 1fr; max-width: none; gap: 8px; }
.obmess2 > div, .obmess2 > div:nth-child(odd), .obmess2 > div:nth-child(even) { margin: 0; align-items: flex-start; gap: 8px; padding: 9px 10px; font-size: .8rem; line-height: 1.3; }
.obmess2 > div:nth-child(1) { rotate: -2deg; } .obmess2 > div:nth-child(2) { rotate: 1.5deg; translate: 0 4px; }
.obmess2 > div:nth-child(3) { rotate: 1deg; translate: 2px 0; } .obmess2 > div:nth-child(4) { rotate: -1.8deg; translate: 0 3px; }
.obmess2 > div:nth-child(5) { rotate: -1deg; translate: -2px 0; } .obmess2 > div:nth-child(6) { rotate: 2deg; translate: 0 2px; }
.obmess2 span { width: 24px; height: 24px; border-radius: 8px; } .obmess2 .ic { width: 14px; height: 14px; }
.obask { text-align: center; margin: 20px auto 0; max-width: 330px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.obask b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
/* her yönden ekranı: gerçek kelime başlığı + o kelimenin alıştırmaları */
.obword { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px 18px 0 0; background: var(--blue-t); box-shadow: var(--sh1); }
.obword + .obasp { border-radius: 0 0 18px 18px; }
.obword-t { flex: 1; display: grid; line-height: 1.3; } .obword-t b { font-size: 1.02rem; } .obword-t small { color: var(--muted); font-size: .8rem; }
.obword-l { flex: none; font-size: .75rem; font-weight: 700; color: var(--blue); background: var(--card); padding: 3px 8px; border-radius: 99px; }
.ob-s4 .obasp li { grid-template-columns: 26px 4.8rem 1fr auto; }
.ob-s4 .obasp .mi { color: var(--muted); display: grid; place-items: center; width: 26px; height: 26px; margin: 0; background: none; } .ob-s4 .obasp .mi .ic { width: 17px; height: 17px; }
.ob-s4 .obasp small { line-height: 1.3; }
.obkaos { margin: 18px 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--blue); }
.obintro .obw-sub.obw-lead { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.obintro .obw-h { margin-top: 18px; }
/* tanıtım: kısa sayfalar dikeyde ortalı, uzunlar normal kayar */
html.modern .onboard .scroll { display: flex; flex-direction: column; }
.obpg { margin-block: auto; width: 100%; padding-block: 8px; }
.obintro, .obtry0 { padding-top: 0; }
.obcov-chain { margin-top: 0; }
.ob-s4 .obtxt { margin-top: 12px; font-size: .9rem; }
.obasp-sum small { font-weight: 600; color: var(--ink); }
.obintro .obw-sub { margin-top: 2px; }
.ob-s1 .obask { font-size: .98rem; font-weight: 500; color: var(--ink); margin-top: 22px; }
.ob-s1 .obask { max-width: 320px; line-height: 1.5; text-wrap: balance; }
.obchain small { display: block; margin-top: 3px; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ===== tanıtım düzeni (son): sabit başlık + hemen altında içerik + tek boşluk ölçüsü =====
 * Başlık her sayfada aynı yükseklikte başlar; içerik başlığa 24px ile bağlıdır, boşluk altta kalır.
 * Bloklar arası tek ölçü (16px); birbirine ait parçalar (kelime başlığı + listesi, seviye + kapsam satırı) bitişik. */
html.modern .onboard .scroll { padding: 20px 20px 16px; }
.obpg { flex: 1 0 auto; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.obpg > * { margin-top: 0; margin-bottom: 0; }
.obpg { padding-top: 3vh; }
.obpg > .obhd + * { margin-top: 8px; }
.obpg > .obwel:only-child { margin-block: auto; }
.onboard .obhd { margin: 0; animation: obin .35s ease-out; }
.onboard .obhd h1 { font-size: 1.36rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.onboard .obhd p { margin-top: 8px; font-size: .92rem; line-height: 1.5; max-width: 320px; text-wrap: balance; }
/* üst çubuk: geri ve Atla aynı genişlikte, noktalar her sayfada aynı yerde */
.obbar > :first-child, .obbar > :last-child { flex: none; width: 52px; }
.obbar .ab-btn { justify-content: flex-start; }
/* kartlar: tek kart dili (18px köşe, ince çerçeve, aynı iç boşluk) */
.obgrp-c { border-left: 0; padding: 14px 16px; }
.obgrp-h b { display: flex; align-items: center; gap: 8px; }
.obgrp-h b::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.obgrp { gap: 10px; }
.obcov { padding: 16px; }
.obcov dl { margin-top: 14px; }
/* sınav notu: kutu değil, sakin bir dipnot */
.obsrc2 { background: none; padding: 0 8px; justify-content: center; text-align: left; font-size: .8rem; max-width: 320px; margin-inline: auto !important; }
/* dağınık kartlar biraz daha okunur */
.obmess2 > div, .obmess2 > div:nth-child(odd), .obmess2 > div:nth-child(even) { font-size: .82rem; padding: 10px 11px; }
/* kelime başlığı + alıştırmalar tek kart */
.obpg > .obword + .obasp { margin-top: -16px; }
/* seviye sayfası: daha sakin yoğunluk */
.oblvg { gap: 8px; }
.oblvg button { padding: 11px 10px; border-radius: 14px; }
.oblvg b { font-size: 1.2rem; }
.obpg > .oblvg + .obchain { margin-top: -6px; }
.obsec { margin-top: 8px !important; margin-bottom: -6px !important; padding-inline: 2px; }
.obwhy { gap: 6px; }
.obwhy button { padding: 10px 12px; font-size: .9rem; border-radius: 12px; }
.obwhy .cbx { width: 20px; height: 20px; border-radius: 6px; }
/* hedef seçenekleri ve not */
.onboard .obopts { gap: 8px; }
.onboard .obopt { padding: 13px 16px; border-radius: 16px; }
.obnote { margin: 0; font-size: .85rem; }
.obintro .obw-lead { margin: 14px auto 4px; font-size: 1rem; }

/* ---------- tanıtım: test hazırlayıcı kart ---------- */
.obtb { border-radius: 20px; background: var(--card); box-shadow: var(--sh1); padding: 16px; display: grid; gap: 14px; }
.obtb-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.obtb-top > div { display: grid; line-height: 1.3; } .obtb-top b { font-size: 1rem; } .obtb-top small { color: var(--muted); font-size: .78rem; }
.obtb-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.obtb-r { display: grid; gap: 7px; }
.obtb-l { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.obtb-l .ic { width: 14px; height: 14px; }
.obtb-c { display: flex; flex-wrap: wrap; gap: 6px; }
.obtb-c button { border: 0; font: inherit; font-size: .86rem; font-weight: 500; padding: 7px 12px; border-radius: 99px; background: var(--soft); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.obtb-c button.on { background: var(--blue); color: var(--bg); font-weight: 600; }
.obtb-go { margin-top: 2px; text-align: center; padding: 12px; border-radius: 14px; background: var(--blue-t); color: var(--blue); font-weight: 700; font-size: .92rem; }
.onboard.obstill .obhd, .onboard.obstill .obpg > * { animation: none; }
.gpane .cpre { min-width: 112px; }

/* Tabloyu doldur ve Çekim kutuları: renk senin denemenin durumu, yazı içeriğin kendisi. Doğru biçim her yerde yeşil.
 *   ok: ilk denemede (yeşil) · ok2: ikinci denemede (kehribar zemin, yazı koyu) · retry: bir hak daha (kırmızı çerçeve)
 *   bad: iki kez yanlış → kutuda doğrusu yeşil, çerçeve ve etiket kırmızı (etikette senin yazdığın) */
html .multi .txt.cf.retry { background: var(--red-t); }
html .multi .txt.cf.bad { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--red); color: var(--green); -webkit-text-fill-color: var(--green); font-weight: 700; }
.cf.ok2 + .cfnote { color: var(--ink); background: var(--amber-t); }
.cf.bad + .cfnote { color: var(--red); font-weight: 600; }
.cf.bad + .cfnote .ic { color: var(--red); stroke-width: 3; }
.fb .fbt small b, .fb.ok .fbt small b, .fb.bad .fbt small b { font-size: inherit; font-weight: 700; color: var(--ink); }   /* alt yazıdaki sayılar başlık boyutunda olmasın */
.fbc .fbh .mascot { width: 78px; height: auto; margin: -10px -8px 0 -10px; }   /* tablo/çekim kartı ince: kutular görünür kalsın */
.fbc .fbt b { font-size: 1.12rem; }

/* ===== Bisiklet turu ve puan (2026-10-14) ===== */
/* Tur kartı (ana sayfa ve Profil): şu an bulunduğun yerin fotoğrafı, rütbe rozeti, köşede mini harita, altta ince XP çubuğu */
.tour { position: relative; display: block; height: 168px; margin-bottom: 12px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--sh1);
  background: linear-gradient(135deg, #2f6fdd 0%, #3f8f3a 100%); }   /* fotoğraf yoksa (çevrimdışı) bu */
.tour::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 3; background: linear-gradient(90deg, #1f2433 0 33.3%, #d53d37 33.3% 66.6%, #d28300 66.6%); }
.tc-bg, .tc-shade { position: absolute; inset: 0; }
.tc-bg img { width: 100%; height: 100%; object-fit: cover; }
.tc-shade { background: linear-gradient(180deg, rgba(10, 16, 30, .25) 0%, rgba(10, 16, 30, 0) 28%, rgba(10, 16, 30, .4) 50%, rgba(10, 16, 30, .88) 100%); }
.tc-map { position: absolute; top: 12px; right: 12px; z-index: 2; width: 74px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.tc-txt { position: absolute; left: 16px; right: 100px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; }
.tc-txt small { font-size: .74rem; font-weight: 700; letter-spacing: .02em; opacity: .92; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tc-txt b { font-size: 1.6rem; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-next { margin: 3px -84px 0 0; font-size: .86rem; opacity: .95; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* haritanın altına uzanır: tek satır */ .tc-next strong { font-weight: 800; }
.tc-rank { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #7a4b00; font-size: .76rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); } .tc-rank svg { width: 14px; height: 14px; color: #d28300; }
.tc-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 5px; background: rgba(255, 255, 255, .22); }   /* sıradaki durağa biriken XP: sayısız */
.tc-bar i { display: block; height: 100%; background: #f5b432; box-shadow: 0 0 10px rgba(245, 180, 50, .8); transition: width 1.1s cubic-bezier(.3, .7, .3, 1); }
.tc-gain { position: absolute; left: 14px; top: 48px; z-index: 3; padding: 3px 9px; border-radius: 99px; background: #f5b432; color: #3b2600; font-size: .78rem; font-weight: 800; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); animation: tcGain 2.6s ease-out .3s both; }   /* testten dönünce: kazanılan XP */
@keyframes tcGain { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tc-gain { animation: none; } .tc-bar i { transition: none; } }
/* Mini harita (tourMap): Rota'da büyük ve şehir adlarıyla */
.tm { display: block; width: 100%; height: auto; }
.tm-land { fill: var(--soft); stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tm-done, .tm-todo { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-done { stroke: var(--green); stroke-width: 2.5; }
.tm-todo { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 1.5 3.5; opacity: .7; }
.tm.big .tm-done { stroke-width: 3.5; } .tm.big .tm-todo { stroke-width: 1.6; }
.tm-pulse { fill: var(--blue); opacity: .35; transform-box: fill-box; transform-origin: center; animation: tmPulse 1.8s ease-out infinite; }
@keyframes tmPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm-pulse { animation: none; opacity: 0; } }
.tm-me { fill: var(--blue); stroke: var(--card); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tm-next { fill: var(--card); stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tm-big { fill: var(--card); stroke: var(--muted); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tm-lab { fill: var(--ink); font-size: 19px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--soft); stroke-width: 4px; stroke-linejoin: round; }
.tm-bigwrap { margin: 0 auto 10px; max-width: 360px; padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--sh1); }
.tm-rank { flex-basis: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 4px; color: #7a4b00; } .tm-rank svg { width: 15px; height: 15px; color: #d28300; }
.tm-sum { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: .86rem; color: var(--muted); } .tm-sum b { color: var(--ink); }
/* Günlük hedef kartı (Profil) ve tekrar hatırlatması (ana sayfa) */
.dcard { margin-bottom: 12px; padding: 14px 16px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--sh1); }
.tr-due { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 10px; border-radius: 12px; background: var(--green-t); color: var(--ink); font-size: .84rem; text-decoration: none; }
.tr-due svg { color: var(--green); flex: none; }
.xpv.minus { color: var(--red); }
.ptfly { position: fixed; z-index: 90; transform: translate(-50%, -50%); font-weight: 900; font-size: 1.5rem; pointer-events: none; animation: ptfly 1.2s ease-out forwards; text-shadow: 0 2px 0 var(--card); }
.ptfly.up { color: var(--green); } .ptfly.down { color: var(--red); animation-name: ptdown; }
@keyframes ptfly { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -70px; } }
@keyframes ptdown { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: 50px; } }
/* Rota sayfası */
.rt-note { margin: -4px 0 10px; }
.lnk { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.route { list-style: none; padding: 0 0 0 4px; margin: 0 0 20px; }
.rs { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 8px 0 8px 22px; color: var(--muted); font-size: .9rem; }
.rs::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.rs:first-child::before { top: 50%; } .rs:last-child::before { bottom: 50%; }
.rs.on::before { background: var(--green); }
.rs-dot { position: absolute; left: 1px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--line); }
.rs.big .rs-dot { left: -1px; width: 14px; height: 14px; margin-top: -7px; box-shadow: 0 0 0 2.5px var(--muted); }
.rs.on .rs-dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.rs-dev { margin-left: 6px; padding: 2px 7px; border: 1px dashed var(--muted); border-radius: 8px; background: none; color: var(--muted); font-size: .7rem; cursor: pointer; }   /* yalnız geliştirici modunda */
.rs b { font-weight: 600; } .rs.big b { font-weight: 800; color: var(--ink); font-size: 1rem; } .rs.on b { color: var(--ink); }
.rs small { margin-left: auto; font-size: .78rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.rs.open { cursor: pointer; } .rs.open small { color: var(--blue); font-weight: 700; } .rs.open small svg { color: var(--amber); }
.rs.nx { color: var(--ink); } .rs.nx .rs-dot { box-shadow: 0 0 0 2.5px var(--blue); } .rs.nx small { color: var(--blue); font-weight: 700; }
/* Varış kartı ve yer soruları */
.arrive { text-align: center; padding-bottom: 4px; } .arrive h2 { margin: 4px 0 2px; } .arrive .btn + .btn { margin-top: 8px; }
.ph { position: relative; margin: 0 0 12px; border-radius: 18px; overflow: hidden; background: var(--soft); }
.ph img { display: block; width: 100%; height: 190px; object-fit: cover; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 7px; font-size: .68rem; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.ph figcaption a { color: inherit; }
.ph.off { display: none; }
.ar-sub { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.pq-lead { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 16px 0 6px; font-size: .8rem; font-weight: 700; color: var(--blue); }
.pq-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; } .pq-head b { font-size: 1.25rem; font-weight: 800; } .pq-head span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.pq-q { margin: 0 0 4px; text-align: left; font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.pq-tr { margin: 0 0 10px; text-align: left; font-size: .84rem; color: var(--muted); } .pq-tr summary { cursor: pointer; color: var(--blue); font-weight: 600; } .pq-tr p { margin: 6px 0 0; }
.arrive .opts { text-align: left; }
.pq-info { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); text-align: left; } .pq-info.ok { background: var(--green-t); } .pq-info p { margin: 6px 0 0; line-height: 1.45; }
.pq-sum { margin: 4px 0 12px; }
/* Harita yolculuğu: durağa varınca son duraktan yeni durağa (app.js mapRide) */
.mride { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #dfe9f3; animation: mrIn .25s ease-out; cursor: pointer; }
.mride.out { opacity: 0; transition: opacity .25s; }
@keyframes mrIn { from { opacity: 0; } }
.mr-map { flex: 1; width: 100%; min-height: 0; }
.mr-land { fill: #fbfaf6; stroke: #b9c3cf; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mr-done, .mr-todo, .mr-cur { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mr-done, .mr-todo { vector-effect: non-scaling-stroke; }
.mr-done { stroke: var(--green); stroke-width: 3; opacity: .55; }
.mr-todo { stroke: #9aa6b6; stroke-width: 2; stroke-dasharray: 2 5; }
.mr-cur { stroke: var(--green); }
.mr-big { fill: #fff; stroke: #6b7385; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mr-blab { fill: #6b7385; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #fbfaf6; stroke-width: 3px; stroke-linejoin: round; }
.mr-from { fill: var(--green); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mr-to { fill: #fff; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; }
.mride.arr .mr-to { fill: var(--red); }
.mr-to, .mr-tolab { opacity: 0; } .mride.arr .mr-to, .mride.arr .mr-tolab { opacity: 1; transition: opacity .3s; }   /* varış yeri gizli: yol çizilince belirir */
.mr-lab { fill: #1f2433; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: #fbfaf6; stroke-width: 4px; stroke-linejoin: round; }
#mrBike circle { fill: var(--blue); stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.mr-cap { position: absolute; left: 16px; right: 16px; bottom: calc(28px + var(--sab, 0px)); padding: 14px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 10px 30px rgba(20, 30, 45, .18); text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
.mride.arr .mr-cap { opacity: 1; transform: none; }
.mr-cap { display: flex; align-items: center; gap: 12px; text-align: left; }
.mr-ph { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: blur(6px); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--green); transition: filter .7s .15s; }
.mride.arr .mr-ph { filter: none; }
.mr-cap small { display: block; color: var(--muted); font-size: .82rem; } .mr-cap b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-top: 2px; }
.mr-src { position: absolute; right: 8px; top: calc(6px + var(--sat, 0px)); font-size: .62rem; color: #6b7385; }
/* Soru ekranı durak rozeti (qxChip): halka XP ile dolar, sayı sıradaki durağa kalan XP; doğru cevapta “+N XP” uçup girer */
.qx { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 9px 3px 3px; border-radius: 99px; background: var(--soft); max-width: 112px; }
.qx-ring { flex: none; width: 30px; height: 30px; transform: rotate(-90deg); }
.qx-bg { fill: var(--card); stroke: var(--line); stroke-width: 3.5; }
.qx-fg { fill: none; stroke: #e0a020; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray .5s ease-out; }
.qx-t { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.qx-t small { font-size: .62rem; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-t b { font-size: .9rem; font-weight: 800; color: var(--ink); white-space: nowrap; } .qx-t b i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); } .qx-t b svg { width: 15px; height: 15px; color: var(--green); vertical-align: -2px; }
.qx.bump { animation: qxBump .45s ease-out; }
@keyframes qxBump { 30% { transform: scale(1.14); } 60% { transform: scale(.97); } }
.qx.arr { background: var(--green-t); } .qx.arr .qx-fg { stroke: var(--green); } .qx.arr .qx-t small { color: var(--green); }
.qx-fly { position: fixed; z-index: 95; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: 99px; background: #f5b432; color: #3b2600; font-size: .82rem; font-weight: 800; pointer-events: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); transition: transform .6s cubic-bezier(.5, 0, .3, 1), opacity .6s ease-in; }
@media (prefers-reduced-motion: reduce) { .qx.bump { animation: none; } .qx-fg { transition: none; } }
.kchip small { font-size: .7em; font-weight: 700; margin-left: 1px; }

/* Cümle sorusu: bağlam cümlesi (soluk, boşluklu cümlenin önünde) ve gizli çeviri bağlantısı */
.sent .sctx { color: var(--muted); }
.sub-tr { margin: 4px 0 8px; font-size: .86rem; } .sub-tr summary { cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; width: max-content; } .sub-tr summary::-webkit-details-marker { display: none; }
.sub-tr summary::before { content: "▸ "; } .sub-tr[open] summary::before { content: "▾ "; } .sub-tr .sub { margin: 4px 0 0; }
/* Sonuç ekranı: iki satırlı düğme (ne yapar + kaç soru) */
.btn.two { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: auto; min-height: 56px; padding: 8px 10px; line-height: 1.2; }
.btn.two b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.btn.two small { font-size: .78rem; font-weight: 500; opacity: .8; }
.btn.two[disabled] { opacity: .5; }
.btn.done-link { min-height: 40px; font-size: .9rem; }
/* Seçili seviyede soru olmayan modül: tıklanmaz, hangi seviyede açıldığı yazar */
.mtile.off { opacity: .6; box-shadow: 0 0 0 1.5px var(--line); }
.mtile.off:active { transform: none; }
.mtile.off .ico { filter: grayscale(.6); }

/* Bisikletin sepeti: Rota sayfasında hatıra ızgarası, varış kartında "Sepetine eklendi" */
.bk-n { font-weight: 600; color: var(--muted); margin-left: 6px; }
.bsk { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 0 0 20px; }
.bk { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--soft); font-size: 1.5rem; line-height: 1; color: var(--muted); padding: 0; }
.bk:not(.on) { font-size: 1rem; font-weight: 700; opacity: .55; }
.bk.on { cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.bk-add { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 14px; background: var(--soft); text-align: left; }
.bk-add .bk-e { font-size: 1.8rem; line-height: 1; }
.bk-add b { display: block; } .bk-add small { display: block; color: var(--muted); }
.bk-sheet { text-align: center; } .bk-big { font-size: 4rem; line-height: 1.2; margin: 6px 0; }

/* Klavye açıkken (app.js html.kbd): alt çubuk ve rozet küçülür, yazma kutusu görünür kalır */
html.kbd .quiz .qx { display: none; }
html.kbd .quiz .appbar { padding-top: 4px; padding-bottom: 4px; }
html.kbd .cta { padding-top: 6px; padding-bottom: calc(6px + var(--sab)); gap: 6px; }
html.kbd .cta .umlaut button { height: 34px; }
html.kbd .cta .btn.wide { min-height: 44px; height: 44px; }
html.kbd .quiz .qbody { padding-top: 6px; }

/* Yansımalı fiil: Yazma kutusunun önünde hazır "sich"; çekim satırlarında özne ve sich kutunun çevresinde */
.cfrow.frame .fpre { white-space: nowrap; } .cfrow.frame .cpre ~ .fpre { color: var(--muted); font-weight: 500; }
/* Çekim satırı cümle gibi: üstte küçük zaman etiketi, altında "er/sie/es [kutu] sich" */
.gpane .cfrow.frame .cpre { flex: 0 0 100%; max-width: none; min-width: 0; justify-content: flex-start; padding: 0 2px; background: none; border-radius: 0; font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
.gpane .cfrow.frame { gap: 2px 8px; }
.gpane .cfrow.frame .fpre { color: var(--muted); font-weight: 500; } .gpane .cfrow.frame .fpost { font-weight: 600; }

/* Çekim: zaman adı başlık gibi; sich (amber) ve ayrılabilen önek (yeşil) işaretli ve hazır */
.gpane .cfrow.frame .cpre { font-size: 1.02rem; font-weight: 800; color: var(--ink); letter-spacing: 0; padding: 8px 2px 0; }
.gpane .cfrow.frame .fpre, .gpane .cfrow.frame .fpost { display: inline-flex; align-items: center; gap: 6px; }
.mk { padding: 3px 10px; border-radius: 10px; font-weight: 700; font-size: .95rem; }
.mk.r { background: var(--amber-t); color: var(--amber); } .mk.t { background: var(--green-t); color: var(--green); }

/* Cümle kur: üstte dizilen cümle, altta kalan parçalar (Duolingo gibi) */
.oline { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 84px; padding: 12px; margin: 6px 0 16px; border: 2px dashed var(--line); border-radius: 18px; background: var(--soft); }
.oline.ok { border: 2px solid var(--green); background: var(--green-t); } .oline.bad { border: 2px solid var(--red); background: var(--red-t); }
.ohint { align-self: center; color: var(--muted); font-size: .95rem; }
.obank { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip { padding: 10px 14px; border: 0; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.ochip:disabled { cursor: default; }
.ochip.ghost { opacity: .3; background: var(--soft); box-shadow: none; cursor: default; }
.oline .ochip { background: var(--card); }

/* Netlify'ın eklediği rozet ve çerçeveler görünmez (app.js ayrıca siler) */
[id*="netlify" i], [class*="netlify" i], iframe[src*="netlify" i] { display: none !important; }

/* Sorular sunucudan gelirken (app.js viewWait): 300 ms'den kısa beklemede görünmez; hata, internet yok ya da yavaş bağlantıda hemen (now). */
.qwait { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; opacity: 0; animation: qwin .25s ease .3s forwards; }
.qwait.now { animation-delay: 0s; }
.qwait b { font-size: 1.1rem; }
.qwait small { color: var(--muted); max-width: 300px; }
.qwait .qw-btns { display: flex; gap: 8px; margin-top: 8px; }
.qwait .z-idle { animation: zhop 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes qwin { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qwait { animation: none; opacity: 1; } .qwait .z-idle { animation: none; } }
/* Kelime kartı örneği sunucudan gelirken */
.wc-eg.wait { color: var(--muted); }
/* Kelime listesi: internet yokken ya da arama yapılamayınca (app.js wdOffNote, srNote) */
.wdoff { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.wdoff .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.wdoff span { display: flex; flex-direction: column; gap: 2px; }
.wdoff small { color: var(--muted); }
.lsent { margin: 8px 0 16px; }
/* ---- Giriş ekranı (#/giris) ve Hesap kartı ----
 * Sağlayıcı düğmeleri markaların kendi kurallarına göre; uygulamanın renk kurallarının tek istisnası (yalnız bu düğmeler):
 *  - Google (Sign in with Google marka kuralları): açık temada beyaz zemin, #747775 çerçeve, #1f1f1f yazı; koyu temada #131314 zemin,
 *    #8e918f çerçeve, #e3e3e3 yazı. Renkli "G" logosu değiştirilmez. Yazı tipi Roboto (yoksa sistem yazı tipi).
 *  - Apple (Human Interface Guidelines, Sign in with Apple): açık zeminde siyah düğme + beyaz logo/yazı, koyu zeminde beyaz düğme + siyah.
 *  - Facebook: marka mavisi #1877f2, beyaz "f".
 * Hepsi aynı boyda (52 px, uygulamanın düğme yüksekliği), logo solda yazı ortada. */
.lg { display: grid; gap: 10px; max-width: 400px; margin: 0 auto; padding: 4px 4px 28px; }
.lg-top { display: grid; justify-items: center; text-align: center; margin-bottom: 10px; animation: obrise .35s ease-out; }
.lg-top .mascot { margin-bottom: 6px; }
.lg-logo .glogo { font-size: 1.55rem; }
.lg-h { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 6px; color: var(--ink); text-wrap: balance; }
.lg-sub { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0; max-width: 320px; text-wrap: pretty; }
.lg-btns { display: grid; gap: 10px; }
.pbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 52px; border: 1px solid transparent; border-radius: 16px;
  font: 500 1rem/1.25 Roboto, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .01em; cursor: pointer; transition: transform .08s; }
.pbtn svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.pbtn:active:not(:disabled) { transform: scale(.98); }
.pbtn:disabled { opacity: .5; }
.pbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pbtn.google { background: #fff; border-color: #747775; color: #1f1f1f; }
.pbtn.apple { background: #000; color: #fff; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-weight: 600; }
.pbtn.apple svg { width: 19px; height: 19px; margin-top: -1px; }
.pbtn.facebook { background: #1877f2; color: #fff; font-family: Helvetica, Arial, sans-serif; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .pbtn.google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  .pbtn.apple { background: #fff; color: #000; }
}
.lg-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-mail .ic { width: 20px; height: 20px; }
.lg-form { display: grid; animation: obrise .25s ease-out; }
.lg-seg { grid-template-columns: 1fr 1fr; }
.lg-note { margin: 0 4px 12px; }
.lg-forgot { text-align: center; margin: 14px 0 0; }
.lg-legal { color: var(--muted); font-size: .75rem; line-height: 1.5; text-align: center; margin: 18px 12px 0; text-wrap: pretty; }
.lg-legal a, .lg-legal .lnk { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; }
.lgpage .appbar .ab-btn .ic { width: 22px; height: 22px; }
body:has(.lgpage) #fbk { display: none; }   /* giriş ekranında (zorunlu modda ilk ekran) geri bildirim düğmesi sağlayıcı düğmelerinin üstüne binmesin */
.ac-head { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh1); }
.ac-head > div { min-width: 0; display: grid; gap: 2px; }
.ac-head b { font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.ac-head small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.ac-cta { margin-bottom: 6px; }
.ac-cta .ic { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .lg-top, .lg-form { animation: none; } }

/* Premium (abonelik): Profil ve Hesap'ta rozet, profil simgesinin köşesinde küçük yıldız. Kehribar yalnız ikonda (KURAL 2), yazı ink. */
.probadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--amber-t); color: var(--ink); font-size: .72rem; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.probadge .ic { width: 13px; height: 13px; color: var(--amber); fill: var(--amber); stroke-width: 2; }
.avatar { position: relative; }
.avatar .avpro { position: absolute; right: -4px; bottom: -4px; width: max(14px, 40%); height: max(14px, 40%); border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); display: grid; place-items: center; }
html.modern .avatar .avpro .ic, .avatar .avpro .ic { width: 72%; height: 72%; color: var(--amber); fill: var(--amber); stroke-width: 2; }
.ac-pro { margin: -4px 0 12px; }

/* Eşleştirme: solda fiiller, sağda anlamlar (soru ekranında; ana sayfanın modül kutuları da .mgrid, onlara dokunmaz) */
.q .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; align-items: start; }
.mcol { display: flex; flex-direction: column; gap: 8px; }
.mchip { padding: 12px 10px; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 var(--line); color: var(--ink); font: inherit; font-size: .98rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; min-height: 52px; }
.mchip.sel { box-shadow: 0 0 0 2.5px var(--blue); background: var(--blue-t); }
.mchip.done { background: var(--green-t); box-shadow: 0 0 0 2px var(--green); color: var(--green); cursor: default; }
.mchip.bad { background: var(--red-t); box-shadow: 0 0 0 2px var(--red); color: var(--red); }

/* Fiil eşleştirme › Konu: her fiil kendi standart cümlesinde */
.fkl { display: flex; flex-direction: column; margin: 4px 0 14px; }
.fkr { padding: 9px 2px; border-bottom: 1px solid var(--line); text-align: left; } .fkr:last-child { border-bottom: 0; }
.fkh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.3; } .fkh b { font-size: 1rem; } .fkh span { color: var(--ink); font-size: .92rem; }
.fke { font-size: .88rem; line-height: 1.35; color: var(--ink); opacity: .85; margin-top: 2px; } .fke small { color: var(--muted); font-size: .82rem; margin-left: 6px; }

/* Fiil eşleştirme: soru başlığının üstünde üst kategori etiketleri; Konu sayfasında alt kategori başlıkları */
.anatags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; } .anatags i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--blue); background: var(--blue-t); padding: 2px 8px; border-radius: 8px; }

/* Alıştırma oyunları (Fiiller › Benzer Fiiller, Trennbar mı?): grup listesinden ayrı, kendi renginde kartlar */
.drills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.drill { --dc: #c2410c; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: linear-gradient(145deg, color-mix(in srgb, var(--dc) 14%, var(--card)), var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dc) 35%, transparent); }
.drill .dr-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--dc); color: #fff; }
.drill .dr-ico svg { width: 20px; height: 20px; }
.drill .dr-t b { display: block; font-size: 1rem; color: var(--dc); } .drill .dr-t small { display: block; font-size: .78rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.drill .dr-bar { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--dc) 15%, transparent); overflow: hidden; margin-top: auto; } .drill .dr-bar i { display: block; height: 100%; background: var(--dc); }
.drdesc { margin: 4px 4px 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.q .mpairs { gap: 8px 10px; margin-bottom: 4px; } .mpairs .mchip { min-height: 48px; }
.mpairs + .mgrid { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
