/* Okuma Kampı — tablet öncelikli, sakin ve okunaklı arayüz */
:root {
  --bg: #f4f8f3;
  --surface: #ffffff;
  --surface-2: #eef4ec;
  --ink: #17251b;
  --ink-2: #4b5d50;
  --ink-3: #7a8a7e;
  --line: #d9e4d6;
  --primary: #2e9e5b;
  --primary-ink: #ffffff;
  --primary-soft: #dff2e6;
  --danger: #d6455d;
  --danger-soft: #fde6ea;
  --ok: #2e9e5b;
  --ok-soft: #dff2e6;
  --warn: #c98a0b;
  --warn-soft: #fbf0d6;

  /* modül renkleri */
  --c-okuma: #2e9e5b;
  --c-dikkat: #e8781c;
  --c-paragraf: #7b5cd6;
  --c-hafiza: #2f7de1;
  --c-yazma: #d9487a;
  --c-soz: #b8860b;
  --c-nefes: #1aa3a3;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 6px 20px rgba(20, 40, 25, .07);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-read: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --read-size: 21px;
  --read-lh: 1.7;
  --read-ls: 0;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1712;
    --surface: #17221b;
    --surface-2: #1e2c23;
    --ink: #e7f0e9;
    --ink-2: #b4c4b8;
    --ink-3: #8a9b8f;
    --line: #2b3b30;
    --primary: #45b874;
    --primary-ink: #08140c;
    --primary-soft: #1f3a29;
    --danger: #ef6b80;
    --danger-soft: #3c1e25;
    --ok: #45b874;
    --ok-soft: #1f3a29;
    --warn: #e0a83a;
    --warn-soft: #3a2f16;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1712;
  --surface: #17221b;
  --surface-2: #1e2c23;
  --ink: #e7f0e9;
  --ink-2: #b4c4b8;
  --ink-3: #8a9b8f;
  --line: #2b3b30;
  --primary: #45b874;
  --primary-ink: #08140c;
  --primary-soft: #1f3a29;
  --danger: #ef6b80;
  --danger-soft: #3c1e25;
  --ok: #45b874;
  --ok-soft: #1f3a29;
  --warn: #e0a83a;
  --warn-soft: #3a2f16;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}
:root[data-theme="sepia"] {
  --bg: #f6efe1;
  --surface: #fffaf0;
  --surface-2: #f1e7d3;
  --ink: #3b2f22;
  --ink-2: #6b5a46;
  --ink-3: #8f7d66;
  --line: #e4d6bd;
  --primary-soft: #e6efdc;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
:root[data-dyslexia="1"] {
  --read-ls: .06em;
  --read-lh: 1.9;
}
:root[data-dyslexia="1"] .reading-text { word-spacing: .18em; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Yükleme ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--ink-2); }
.boot-logo { font-size: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- Kabuk ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gutter) 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.topbar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.main.wide { max-width: 1240px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px; text-decoration: none; color: var(--ink-3);
  font-size: .8rem; font-weight: 700; min-height: 60px;
}
.tabbar a .ico { font-size: 1.45rem; line-height: 1; }
.tabbar a[aria-current="page"] { color: var(--primary); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line);
}
.card + .card { margin-top: 16px; }
.grid > .card, .grid-2 > .card, .grid-3 > .card, .stack > .card { margin-top: 0; }
.stack > * + .card { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1f7f6b 100%);
  color: #fff; border-radius: 24px; padding: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 1.8rem; }
.hero p { opacity: .95; }
.hero .bubble { position: absolute; right: -20px; top: -20px; font-size: 140px; opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.hero .btn { background: #fff; color: #155b37; }
.hero .btn.ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 14px;
  border: 2px solid transparent; background: var(--primary); color: var(--primary-ink);
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--primary-soft); color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.big { min-height: 64px; font-size: 1.2rem; padding: 14px 28px; border-radius: 18px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; border-radius: 10px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: 1.3rem;
}

/* ---------- Bugünün planı ---------- */
.plan { display: grid; gap: 12px; }
.step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  min-height: 76px; box-shadow: var(--shadow);
}
.step .ico {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: color-mix(in srgb, var(--mc, var(--primary)) 16%, transparent);
}
.step .txt { flex: 1; min-width: 0; }
.step .txt b { display: block; font-size: 1.05rem; }
.step .txt span { color: var(--ink-2); font-size: .9rem; }
.step .state { font-size: 1.5rem; }
.step.done { opacity: .72; }
.step.done .state { color: var(--ok); }
.step.next { outline: 3px solid color-mix(in srgb, var(--mc, var(--primary)) 55%, transparent); }

.progressbar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progressbar > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }

/* ---------- Modül başlığı ---------- */
.mod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mod-head .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--mc) 16%, transparent); }
.mod-head h2 { margin: 0; }
.mod-head .sub { color: var(--ink-2); font-size: .92rem; }
.mod-head .spacer { flex: 1; }
.session-progress { display: flex; gap: 6px; margin: 0 0 14px; }
.session-progress i { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); }
.session-progress i.on { background: var(--primary); }
.session-progress i.cur { background: color-mix(in srgb, var(--primary) 45%, var(--surface-2)); }

/* ---------- Okuma ---------- */
.reading-wrap { max-width: 760px; margin: 0 auto; }
.reading-text {
  font-family: var(--font-read); font-size: var(--read-size); line-height: var(--read-lh);
  letter-spacing: var(--read-ls); color: var(--ink);
  background: var(--surface); border-radius: var(--radius); padding: 28px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  hyphens: manual; -webkit-user-select: none; user-select: none;
}
.reading-text h3 { font-family: var(--font); font-size: 1.3em; margin-bottom: .6em; }
.reading-text p { margin: 0 0 .9em; text-indent: 1.4em; }
.reading-text .w { border-radius: 4px; transition: background-color .12s, color .12s; }
.reading-text.pacer .w { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.reading-text.pacer .w.read { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.reading-text.pacer .w.hl { color: var(--ink); background: color-mix(in srgb, var(--c-okuma) 18%, transparent); }
.reading-text.chunk .w { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.reading-text.chunk .w.hl { color: var(--ink); background: color-mix(in srgb, var(--c-okuma) 22%, transparent); }
.reading-bar {
  position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.4rem; }
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mode-pick label {
  display: block; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  cursor: pointer;
}
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick label:has(input:checked) { border-color: var(--c-okuma); background: color-mix(in srgb, var(--c-okuma) 10%, var(--surface)); }
.mode-pick b { display: block; }
.mode-pick span { font-size: .88rem; color: var(--ink-2); }
.flash-box {
  min-height: 220px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-read); font-size: calc(var(--read-size) * 1.5); font-weight: 600;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px;
}

/* ---------- Sorular ---------- */
.q { margin-bottom: 18px; }
.q .qtext { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; white-space: pre-line; }
.q .qtag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); font-size: 1.02rem; line-height: 1.4;
}
.opt .key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; }
.opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt:disabled { cursor: default; }
.explain { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .95rem; }
.passage { white-space: pre-line; font-family: var(--font-read); font-size: calc(var(--read-size) * .92); line-height: var(--read-lh); letter-spacing: var(--read-ls); background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.passage .roman { font-weight: 800; color: var(--c-paragraf); margin-right: 4px; }

/* ---------- Sonuç ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.stat .v { font-size: 1.9rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--ink-2); font-size: .88rem; font-weight: 700; }
.stat .d { font-size: .85rem; font-weight: 800; }
.stat .d.up { color: var(--ok); }
.stat .d.down { color: var(--danger); }
.feedback { padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); font-weight: 600; }
.feedback.warn { background: var(--warn-soft); }

/* ---------- Dikkat oyunları ---------- */
.schulte {
  display: grid; gap: 8px; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 1;
  position: relative;
}
.schulte button {
  border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font-size: clamp(1.2rem, 4.2vw, 2.2rem); font-weight: 800; font-variant-numeric: tabular-nums;
}
.schulte button.found { background: var(--ok-soft); border-color: var(--ok); color: var(--ink-3); }
.schulte button.miss { animation: shake .25s; border-color: var(--danger); }
.schulte .dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--danger); pointer-events: none; opacity: .8; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hunt { display: grid; gap: 4px; margin: 0 auto; width: min(100%, 720px); }
.hunt button {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--surface);
  font-family: var(--font-read); font-size: clamp(1.1rem, 3.4vw, 1.8rem); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hunt button.hit { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); }
.hunt button.fa { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
.hunt button.missed { box-shadow: inset 0 0 0 3px var(--warn); }
.target-letter { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 10px; border-radius: 14px; background: var(--surface-2); font-family: var(--font-read); font-size: 2rem; font-weight: 800; }
.stroop-word { font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 900; letter-spacing: .02em; text-align: center; min-height: 1.4em; }
.stroop-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
.stroop-btns button { min-height: 70px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: 1.2rem; font-weight: 800; }
.stroop-btns button i { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: -4px; margin-right: 8px; }

/* ---------- Nefes ---------- */
.breath { display: grid; place-items: center; min-height: 380px; text-align: center; }
.breath .circle {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c-nefes) 60%, #fff), var(--c-nefes));
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--c-nefes) 14%, transparent);
  transition: transform 4s ease-in-out;
}
.breath .circle.in { transform: scale(1.7); }
.breath .label { margin-top: 64px; font-size: 1.6rem; font-weight: 800; }

/* ---------- Zihin haritası ---------- */
.mm-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; overflow: hidden; }
.mm-wrap svg { width: 100%; height: auto; display: block; }
.mm-node-center { fill: var(--c-paragraf); }
.mm-text { font-family: var(--font); fill: var(--ink); }
.mm-text-center { fill: #fff; font-weight: 800; }
.mm-line { stroke-width: 4; fill: none; stroke-linecap: round; }
.tap-text .w { cursor: pointer; padding: 1px 2px; border-radius: 6px; }
.tap-text .w.picked { background: color-mix(in srgb, var(--c-paragraf) 22%, transparent); outline: 2px solid var(--c-paragraf); }
.tap-text .w.good { background: var(--ok-soft); outline: 2px solid var(--ok); }
.tap-text .w.bad { background: var(--danger-soft); outline: 2px dashed var(--danger); }
.tap-text .w.expected { outline: 2px dashed var(--warn); }
.pillset { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .92rem; }
.pill.ok { background: var(--ok-soft); }
.pill.no { background: var(--danger-soft); }

/* ---------- Söz varlığı ---------- */
.flash-card {
  min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.flash-card .kind { font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--c-soz); margin-bottom: 10px; }
.flash-card .soz { font-size: clamp(1.4rem, 3.6vw, 2.1rem); font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
.flash-card .anlam { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.flash-card .ornek { margin-top: 14px; font-style: italic; color: var(--ink-2); max-width: 640px; }
.leitner { display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.leitner div { flex: 1; background: color-mix(in srgb, var(--c-soz) 30%, var(--surface-2)); border-radius: 8px 8px 0 0; position: relative; min-height: 4px; }
.leitner div span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: .8rem; font-weight: 800; }

/* ---------- Hafıza ---------- */
.word-show { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; text-align: center; min-height: 140px; display: grid; place-items: center; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick-grid button { min-height: 58px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.05rem; }
.pick-grid button.sel { border-color: var(--c-hafiza); background: color-mix(in srgb, var(--c-hafiza) 14%, var(--surface)); }
.pick-grid button.correct { border-color: var(--ok); background: var(--ok-soft); }
.pick-grid button.wrong { border-color: var(--danger); background: var(--danger-soft); }
.pick-grid button.missed { border-color: var(--warn); border-style: dashed; }
.digit-show { font-size: clamp(3rem, 12vw, 6rem); font-weight: 900; text-align: center; min-height: 160px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.keypad button { min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: 1.5rem; font-weight: 800; }
.digit-entry { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: .2em; min-height: 56px; font-variant-numeric: tabular-nums; }
.pairs { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 0 auto; }
.pairs button {
  min-height: 96px; border-radius: 16px; border: 2px solid var(--line); background: var(--c-hafiza); color: #fff;
  font-weight: 800; font-size: 1rem; padding: 8px; line-height: 1.25;
}
.pairs button.open { background: var(--surface); color: var(--ink); }
.pairs button.matched { background: var(--ok-soft); color: var(--ink); border-color: var(--ok); }
.lesson { font-size: 1.08rem; }
.lesson .example { background: color-mix(in srgb, var(--c-hafiza) 10%, var(--surface)); border-left: 5px solid var(--c-hafiza); padding: 12px 16px; border-radius: 10px; margin: 12px 0; }

/* ---------- Yazma ---------- */
.prompt-card { border-left: 6px solid var(--c-yazma); }
.write-area {
  width: 100%; min-height: 320px; resize: vertical; padding: 18px 20px;
  font-family: var(--font-read); font-size: var(--read-size); line-height: 1.7;
  border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink);
}
.write-area:focus { outline: none; border-color: var(--c-yazma); }
.plan-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface);
}
.field textarea { min-height: 80px; resize: vertical; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.checklist input { width: 24px; height: 24px; flex: none; accent-color: var(--c-yazma); }
.auto-check { display: flex; gap: 8px; align-items: baseline; }
.auto-check .s { font-weight: 900; }

/* ---------- İlerleme ---------- */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 18px; height: 18px; border-radius: 5px; background: var(--surface-2); }
.heat i.l1 { background: color-mix(in srgb, var(--primary) 35%, var(--surface-2)); }
.heat i.l2 { background: color-mix(in srgb, var(--primary) 65%, var(--surface-2)); }
.heat i.l3 { background: var(--primary); }
.heat i.today { outline: 2px solid var(--ink); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); }
.chart .lbl { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.badge { text-align: center; padding: 14px 10px; border-radius: 16px; background: var(--surface-2); }
.badge .e { font-size: 2.2rem; }
.badge b { display: block; font-size: .92rem; }
.badge span { font-size: .78rem; color: var(--ink-2); }
.badge.locked { filter: grayscale(1); opacity: .45; }

/* ---------- Kütüphane ---------- */
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 140px;
  border-top: 6px solid var(--mc);
}
.tile .e { font-size: 2rem; }
.tile b { font-size: 1.08rem; }
.tile span { color: var(--ink-2); font-size: .9rem; }
.list { display: grid; gap: 8px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item small { color: var(--ink-2); }
.search { width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 800; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }

/* ---------- Ayarlar ---------- */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .t b { display: block; }
.setting .t span { color: var(--ink-2); font-size: .9rem; }
.switch { position: relative; width: 60px; height: 34px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(26px); }
input[type="time"], select.inp, input.inp { min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); }
input[type="range"] { width: 200px; accent-color: var(--primary); }

/* ---------- Tost ve diyalog ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 22px; padding: 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.celebrate { text-align: center; padding: 10px 0; }
.celebrate .big-emoji { font-size: 86px; line-height: 1; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); }
.tip .e { font-size: 1.6rem; }

@media (min-width: 900px) {
  .home-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: min(640px, 100%); bottom: 14px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding-bottom: 0; }
  .main { padding-bottom: 120px; }
  .reading-bar { bottom: 96px; }
}
@media (max-width: 560px) {
  :root { --read-size: 19px; }
  h1 { font-size: 1.45rem; }
  .reading-text { padding: 20px 18px; }
  .card { padding: 16px; }
  .pairs { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
