/* ══════════════════════════════════════════════════════════════
   Elifbâ — Osmanlıca öğrenme uygulaması
   Palet: İznik çinisi + tezhip · lâcivert gece, firûze, altın varak
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* — renk: gece (varsayılan) — */
  --bg:        #0B1120;
  --bg-2:      #0E1526;
  --panel:     #16203A;
  --panel-2:   #1D2A4A;
  --panel-3:   #26365C;
  --line:      #2A3A60;
  --line-soft: #1F2C4B;

  --ink:       #F2E8D5;   /* âharlı kâğıt */
  --ink-2:     #B9C4DC;
  --ink-3:     #7E8CAB;

  --gold:      #D9A441;   /* altın varak */
  --gold-2:    #F0C978;
  --gold-dim:  #6B5220;
  --firuze:    #2FBFA8;   /* çini firûzesi */
  --firuze-2:  #6FE0CE;
  --firuze-dk: #0F5D51;
  --lapis:     #3D6FD1;
  --bole:      #D0503A;   /* mercan kırmızısı */
  --bole-2:    #F07A62;
  --sage:      #6E9E76;

  --field:     rgba(0,0,0,.22);   /* girdi alanı zemini — temaya göre değişir */
  --ok-bg:     rgba(47,191,168,.14);
  --ok-line:   rgba(47,191,168,.55);
  --no-bg:     rgba(208,80,58,.14);
  --no-line:   rgba(208,80,58,.55);

  --shadow-1: 0 1px 2px rgba(0,0,0,.35);
  --shadow-2: 0 8px 28px -10px rgba(0,0,0,.65);
  --shadow-3: 0 22px 60px -22px rgba(0,0,0,.8);

  /* — tipografi — */
  --f-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --f-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  --f-ott: "Elifba Nesih", "Noto Naskh Arabic", "Traditional Arabic", "Segoe UI", serif;
  --ott-scale: 1;

  --r-1: 8px;  --r-2: 12px;  --r-3: 18px;  --r-4: 26px;
  --sp: 4px;
  --tap: 46px;
  --dur: .22s;
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}

/* — renk: kâğıt teması — */
[data-theme="paper"] {
  --bg:        #E9DEC6;
  --bg-2:      #F1E7D3;
  --panel:     #FBF4E4;
  --panel-2:   #F4EAD4;
  --panel-3:   #EADCBE;
  --line:      #D6C4A0;
  --line-soft: #E3D5B8;
  --ink:       #241C12;
  --ink-2:     #4E4030;
  --ink-3:     #7C6B54;
  --gold:      #A87515;
  --gold-2:    #C9962F;
  --gold-dim:  #E0CFA4;
  --firuze:    #12796C;
  --firuze-2:  #0E5F55;
  --lapis:     #2A54A8;
  --bole:      #B03A22;
  --bole-2:    #8E2C18;
  --field:     rgba(255,255,255,.72);
  --shadow-2: 0 8px 26px -14px rgba(80,60,20,.5);
  --shadow-3: 0 20px 50px -24px rgba(80,60,20,.55);
  color-scheme: light;
}
/* — yüksek kontrast — */
[data-contrast="high"] { --ink-2:#E4EAF6; --ink-3:#C3CDE2; --line:#4A5F92; }
[data-theme="paper"][data-contrast="high"] { --ink-2:#2B2115; --ink-3:#3D3020; --line:#9C8558; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

/* ═══ SAHNE ve CİHAZ ÇERÇEVESİ ═══ */
#stage { position: fixed; inset: 0; display: flex; flex-direction: column; }
#stage[data-mode="full"] { background: var(--bg); }
#stage[data-mode="phone"], #stage[data-mode="tablet"] {
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(61,111,209,.18), transparent 70%),
    radial-gradient(800px 500px at 85% 110%, rgba(217,164,65,.12), transparent 70%),
    var(--bg-2);
  align-items: center;
  padding: 0 16px 20px;
  overflow: auto;
}
#stage[data-mode="phone"]::before, #stage[data-mode="tablet"]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 14px);
}

#stage-bar {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  padding: 12px; z-index: 40; flex: none;
}
#stage[data-mode="full"] #stage-bar {
  position: fixed; top: 8px; right: 8px; left: auto; padding: 0;
  opacity: .28; transition: opacity var(--dur);
}
#stage[data-mode="full"] #stage-bar:hover,
#stage[data-mode="full"] #stage-bar:focus-within { opacity: 1; }
#stage[data-mode="full"] .stage-brand { display: none; }
#stage[data-mode="full"] .stage-seg span { display: none; }

.stage-brand { font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; color: var(--ink-2); }
.stage-brand .sb-ott { font-family: var(--f-ott); color: var(--gold); margin-inline-end: 6px; font-size: 1.25em; }
.stage-seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-soft); backdrop-filter: blur(8px); }
.stage-seg button {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: var(--dur);
}
.stage-seg button:hover { color: var(--ink); }
.stage-seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--gold-2); box-shadow: var(--shadow-1); }

#device { flex: none; display: flex; }
#stage[data-mode="full"] #device { position: absolute; inset: 0; }
/* flex: none — yoksa ölçeklenmiş sarmalayıcının içinde büzülür ve
   telefon/tablet biçimi gerçek genişliğini alamaz */
#device-frame { position: relative; overflow: hidden; background: var(--bg); flex: none; }
#stage[data-mode="full"] #device-frame { width: 100%; height: 100%; }
#stage[data-mode="phone"] #device-frame,
#stage[data-mode="tablet"] #device-frame {
  border-radius: 44px; border: 9px solid #05070D;
  box-shadow: 0 0 0 2px #26304A, 0 40px 90px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06);
  transform-origin: top left;
}
#stage[data-mode="phone"] #device-frame { width: 392px; height: 844px; }
#stage[data-mode="tablet"] #device-frame { width: 834px; height: 1050px; border-radius: 34px; }
#device-notch { display: none; }
#stage[data-mode="phone"] #device-notch {
  display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; border-radius: 999px; background: #05070D; z-index: 60;
}
#stage[data-mode="phone"] #shell { padding-top: 22px; }

/* ═══ KABUK / DÜZEN ═══ */
#shell { position: relative; width: 100%; height: 100%; display: grid; background: var(--bg); overflow: hidden; }
#shell[data-layout="mobile"]  { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "hud" "view" "tabs"; }
#shell[data-layout="tablet"]  { grid-template-columns: 84px 1fr; grid-template-rows: 1fr; grid-template-areas: "side view"; }
#shell[data-layout="desktop"] { grid-template-columns: 246px minmax(0,1fr) 296px; grid-template-rows: 1fr; grid-template-areas: "side view rail"; }

#sidebar { grid-area: side; display: none; }
#rail    { grid-area: rail; display: none; }
#hud     { grid-area: hud;  display: none; }
#tabbar  { grid-area: tabs; display: none; }
#view    { grid-area: view; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; overscroll-behavior: contain; position: relative; }
/* ekran değişiminde odak buraya taşınır (ekran okuyucu için); görsel halka istemiyoruz */
#view:focus, #view:focus-visible { outline: none; }

#shell[data-layout="mobile"]  #hud,
#shell[data-layout="mobile"]  #tabbar { display: flex; }
#shell[data-layout="tablet"]  #sidebar,
#shell[data-layout="desktop"] #sidebar { display: flex; }
#shell[data-layout="desktop"] #rail { display: block; }
#shell.in-lesson #tabbar, #shell.in-lesson #hud { display: none !important; }
#shell.in-lesson #sidebar, #shell.in-lesson #rail { visibility: hidden; }
#shell.in-lesson[data-layout="mobile"] { grid-template-areas: "view"; grid-template-rows: 1fr; }
#shell.in-lesson #view { overflow: hidden; }
#shell.in-lesson[data-layout="desktop"] { grid-template-columns: 246px minmax(0,1fr) 296px; }
.btn.ghost.on { background: rgba(217,164,65,.12); border-color: rgba(217,164,65,.42); color: var(--gold-2); }
.kbd-key.on { background: rgba(217,164,65,.18); border-color: var(--gold); color: var(--gold-2); }

/* — sol menü — */
#sidebar {
  flex-direction: column; gap: 4px; padding: 18px 12px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-inline-end: 1px solid var(--line-soft);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.sb-mark { font-size: 26px; color: var(--gold); line-height: 1; text-shadow: 0 0 22px rgba(217,164,65,.45); }
.sb-name { font-family: var(--f-display); font-size: 21px; letter-spacing: .05em; }
#shell[data-layout="tablet"] .sb-name { display: none; }
#shell[data-layout="tablet"] .side-brand { justify-content: center; padding: 6px 0 18px; }
#side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-foot { margin-top: auto; }
.side-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: var(--r-2); color: var(--ink-2);
  font-weight: 600; font-size: 14px; letter-spacing: .01em; transition: var(--dur) var(--ease);
  border: 1px solid transparent; text-align: start;
}
.side-link .ic { width: 21px; height: 21px; }
.side-link:hover { background: var(--panel); color: var(--ink); }
.side-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(217,164,65,.16), rgba(217,164,65,.04));
  border-color: rgba(217,164,65,.32); color: var(--gold-2);
}
.side-link .badge { margin-inline-start: auto; }
#shell[data-layout="tablet"] .side-link { justify-content: center; padding: 12px 0; }
#shell[data-layout="tablet"] .side-link span:not(.badge) { display: none; }
#shell[data-layout="tablet"] .side-link .badge { position: absolute; }

.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--bole); color: #fff; font-size: 11.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono);
}
.badge.gold { background: var(--gold); color: #201503; }

/* — mobil üst şerit — */
#hud {
  align-items: center; gap: 10px; padding: 10px 14px;
  background: linear-gradient(180deg, var(--bg-2), rgba(14,21,38,.72));
  border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(10px); z-index: 20;
}
.hud-stat { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14px; font-family: var(--f-mono); }
.hud-stat .ic { width: 19px; height: 19px; }
.hud-stat.streak { color: var(--gold-2); }  .hud-stat.streak .ic { fill: rgba(217,164,65,.22); }
.hud-stat.gem    { color: var(--firuze-2); } .hud-stat.gem .ic { fill: rgba(47,191,168,.2); }
.hud-stat.heart  { color: var(--bole-2); }  .hud-stat.heart .ic { fill: rgba(208,80,58,.25); }
.hud-stat.xp     { color: var(--lapis); filter: brightness(1.35); }
.hud-spacer { flex: 1; }

/* — mobil alt menü — */
#tabbar {
  align-items: stretch; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg-2), rgba(14,21,38,.9));
  border-top: 1px solid var(--line-soft); backdrop-filter: blur(10px); z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 5px; border-radius: var(--r-2); color: var(--ink-3);
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em; transition: var(--dur); position: relative;
}
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--gold-2); }
.tab[aria-current="page"]::after {
  content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 2.5px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold);
}
.tab .badge { position: absolute; top: 2px; right: 22%; transform: scale(.85); }

/* — sağ sütun — */
#rail { padding: 20px 16px; border-inline-start: 1px solid var(--line-soft); background: var(--bg-2); overflow-y: auto; }

/* ═══ TİPOGRAFİ / ORTAK ═══ */
.wrap { max-width: 720px; margin: 0 auto; padding: 22px 18px 40px; }
.wrap.wide { max-width: 1000px; }
#shell[data-layout="mobile"] .wrap { padding: 16px 14px 30px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; margin: 0; }
h1 { font-size: 27px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 16.5px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.eyebrow {
  font-family: var(--f-ui); font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 9px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.ott { font-family: var(--f-ott); direction: rtl; unicode-bidi: isolate; line-height: 1.85; font-size: calc(1em * var(--ott-scale)); }
.ott-lg { font-size: calc(38px * var(--ott-scale)); }
.ott-xl { font-size: calc(62px * var(--ott-scale)); }
.translit { font-family: var(--f-display); font-style: italic; color: var(--gold-2); }
.hr-rosette { display: flex; align-items: center; gap: 12px; color: var(--gold-dim); margin: 22px 0; }
.hr-rosette::before, .hr-rosette::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.hr-rosette span { font-size: 15px; color: var(--gold); opacity: .8; }

/* — kart — */
.card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-3);
  padding: 18px; box-shadow: var(--shadow-2); position: relative;
}
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { margin: 0; }
.card-h .ic { color: var(--gold); }

/* levha çerçevesi — imza öğe */
.levha { position: relative; padding: 22px; border-radius: var(--r-3); background: var(--panel); border: 1px solid var(--gold-dim); }
.levha::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(217,164,65,.28); border-radius: 14px; pointer-events: none;
}
.levha::after {
  content: "۞"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  color: var(--gold); background: var(--panel); padding: 0 8px; font-size: 15px; line-height: 1;
}

/* — düğmeler — */
.btn {
  --b: var(--panel-3); --bs: rgba(0,0,0,.5); --bc: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r-2);
  background: var(--b); color: var(--bc); font-weight: 800; font-size: 14.5px;
  letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--bs); border: 1px solid rgba(255,255,255,.07);
  transition: transform .08s ease, filter var(--dur), box-shadow .08s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--bs); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: 0 4px 0 var(--bs); }
.btn.primary { --b: var(--firuze); --bs: var(--firuze-dk); --bc: #04211C; }
.btn.gold    { --b: var(--gold); --bs: #7A5A16; --bc: #221704; }
.btn.danger  { --b: var(--bole); --bs: #7A2413; --bc: #fff; }
.btn.ghost   { --b: transparent; --bs: transparent; border-color: var(--line); box-shadow: none; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn.ghost:hover { background: var(--panel-2); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.iconbtn {
  width: 40px; height: 40px; border-radius: var(--r-2); display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink-2);
  border: 1px solid var(--line-soft); background: var(--panel); transition: var(--dur);
}
.iconbtn:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.iconbtn.on { color: var(--gold-2); border-color: rgba(217,164,65,.4); background: rgba(217,164,65,.1); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.chip.gold { color: var(--gold-2); border-color: rgba(217,164,65,.3); background: rgba(217,164,65,.09); }
.chip.fir  { color: var(--firuze-2); border-color: rgba(47,191,168,.3); background: rgba(47,191,168,.09); }
.chip.bole { color: var(--bole-2); border-color: rgba(208,80,58,.3); background: rgba(208,80,58,.09); }
.chip button { color: inherit; display: flex; }

/* — ilerleme çubuğu — */
.bar { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line-soft); }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--firuze), var(--firuze-2)); transition: width .4s var(--ease); box-shadow: 0 0 14px rgba(47,191,168,.5); }
.bar.gold > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 14px rgba(217,164,65,.45); }

/* ═══ ANA SAYFA: ELİFBÂ YOLU ═══ */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-4); padding: 26px 24px;
  background: linear-gradient(135deg, #16203A 0%, #1B2A4E 55%, #14243F 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-3); margin-bottom: 24px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(217,164,65,.16) 1.5px, transparent 2px),
    repeating-conic-gradient(from 22.5deg at 100% 0%, rgba(47,191,168,.07) 0deg 12deg, transparent 12deg 45deg);
  background-size: 24px 24px, 100% 100%;
}
.hero > * { position: relative; }
.hero h1 { font-size: 30px; margin-bottom: 6px; }
.hero .hero-ott { font-family: var(--f-ott); direction: rtl; font-size: 42px; color: var(--gold); opacity: .95; line-height: 1.4; text-shadow: 0 2px 24px rgba(217,164,65,.35); }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-family: var(--f-mono); font-size: 22px; color: var(--gold-2); line-height: 1.1; }
.hero-stat span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

.unit-head {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--r-3);
  background: linear-gradient(100deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  margin: 30px 0 8px; box-shadow: var(--shadow-2);
}
.unit-head .uh-no {
  font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase;
}
.unit-head h2 { font-size: 18.5px; }
.unit-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.unit-head .uh-ring { margin-inline-start: auto; }

/* yol */
.path { position: relative; padding: 12px 0 26px; }
.path::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--gold-dim) 0 7px, transparent 7px 15px); opacity: .55;
}
.node-row { display: flex; justify-content: center; margin: 8px 0; position: relative; }
.node-row[data-off="-2"] { transform: translateX(-124px); }
.node-row[data-off="-1"] { transform: translateX(-68px); }
.node-row[data-off="1"]  { transform: translateX(68px); }
.node-row[data-off="2"]  { transform: translateX(124px); }
#shell[data-layout="mobile"] .node-row[data-off="-2"] { transform: translateX(-92px); }
#shell[data-layout="mobile"] .node-row[data-off="2"]  { transform: translateX(92px); }
#shell[data-layout="mobile"] .node-row[data-off="-1"] { transform: translateX(-52px); }
#shell[data-layout="mobile"] .node-row[data-off="1"]  { transform: translateX(52px); }

.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.node-star {
  width: 74px; height: 74px; display: grid; place-items: center; position: relative;
  background: var(--panel-2); color: var(--ink-3);
  clip-path: polygon(50% 0%, 63% 20%, 85.4% 14.6%, 80% 37%, 100% 50%, 80% 63%, 85.4% 85.4%, 63% 80%, 50% 100%, 37% 80%, 14.6% 85.4%, 20% 63%, 0% 50%, 20% 37%, 14.6% 14.6%, 37% 20%);
  transition: transform var(--dur) var(--ease), filter var(--dur);
}
.node-star .ic { width: 27px; height: 27px; }
.node-star .n-ott { font-family: var(--f-ott); font-size: calc(36px * var(--ott-scale)); line-height: 1; margin-top: -.1em; }
.node button { display: contents; }
.node.locked .node-star { opacity: .5; }
.node.open .node-star { background: linear-gradient(150deg, var(--firuze), var(--firuze-dk)); color: #04211C; box-shadow: 0 0 0 0 rgba(47,191,168,.5); }
.node.done .node-star { background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: #221704; }
.node.gold .node-star { background: linear-gradient(150deg, #FBE3A6, var(--gold)); color: #221704; filter: drop-shadow(0 0 14px rgba(217,164,65,.55)); }
.node:not(.locked) .nodebtn:hover .node-star { transform: scale(1.09) rotate(11.25deg); }
.node .nodebtn { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px; border-radius: 16px; }
.node .nodebtn:disabled { cursor: not-allowed; }
.node-label { font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-align: center; max-width: 108px; line-height: 1.3; }
.node .stars { display: flex; gap: 2px; height: 11px; }
.node .stars .ic { width: 11px; height: 11px; color: var(--line); }
.node .stars .ic.on { color: var(--gold); fill: var(--gold); }
.node.current::after {
  content: ""; position: absolute; top: -9px; left: 50%; width: 92px; height: 92px;
  margin-inline-start: -46px; border-radius: 50%; pointer-events: none;
  border: 2px dashed var(--gold); opacity: .5; animation: spin 22s linear infinite;
}
.node.current .node-star { animation: bob 2.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.node-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #221704; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; z-index: 3;
}
.node-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--gold); }

/* ═══ DERS EKRANI ═══ */
.lesson { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lesson-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px; flex: none; }
.lesson-top .bar { flex: 1; }
.lesson-hearts { display: flex; align-items: center; gap: 4px; color: var(--bole-2); font-weight: 800; font-family: var(--f-mono); }
.lesson-hearts .ic { fill: currentColor; width: 21px; height: 21px; }
.lesson-body { flex: 1; overflow-y: auto; padding: 6px 18px 24px; min-height: 0; }
.lesson-body-in { max-width: 620px; margin: 0 auto; }
.lesson-foot {
  flex: none; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft); background: var(--bg-2);
}
.lesson-foot-in { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.lesson-foot .btn { flex: 1; }

.q-prompt { font-family: var(--f-display); font-size: 21px; margin-bottom: 18px; line-height: 1.3; }
#shell[data-layout="mobile"] .q-prompt { font-size: 18.5px; }
.q-sub { font-size: 13px; color: var(--ink-3); margin-top: -12px; margin-bottom: 16px; }

.stimulus {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px;
  border-radius: var(--r-3); margin-bottom: 20px; position: relative; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(217,164,65,.05), rgba(217,164,65,.05)),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(217,164,65,.07) 25px 26px),
    var(--panel);
  border: 1px solid var(--gold-dim);
}
.stimulus .big-ott { font-family: var(--f-ott); direction: rtl; font-size: calc(64px * var(--ott-scale)); line-height: 1.5; color: var(--ink); text-align: center; }
#shell[data-layout="mobile"] .stimulus .big-ott { font-size: calc(50px * var(--ott-scale)); }
.stimulus .sub { font-size: 13.5px; color: var(--ink-3); }

.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 15px;
  border-radius: var(--r-2); background: var(--panel); border: 1.5px solid var(--line);
  box-shadow: 0 3px 0 var(--line-soft); text-align: start; transition: transform .08s, border-color var(--dur), background var(--dur);
}
.opt:hover:not([disabled]) { border-color: var(--panel-3); background: var(--panel-2); }
.opt:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-soft); }
.opt .kbd {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3);
  font-family: var(--f-mono); font-size: 11.5px; display: grid; place-items: center; flex: none;
}
.opt .lbl { flex: 1; font-weight: 600; font-size: 15.5px; }
.opt .lbl.ott { font-size: calc(30px * var(--ott-scale)); text-align: right; }
.opt[aria-pressed="true"] { border-color: var(--firuze); background: rgba(47,191,168,.12); box-shadow: 0 3px 0 var(--firuze-dk); }
.opt[aria-pressed="true"] .kbd { border-color: var(--firuze); color: var(--firuze-2); }
.opt.right { border-color: var(--firuze) !important; background: var(--ok-bg) !important; }
.opt.wrong { border-color: var(--bole) !important; background: var(--no-bg) !important; }
.opt[disabled] { cursor: default; }
/* telefonda fiziksel klavye yok — rakam ipuçları gizlenir */
#shell[data-layout="mobile"] .opt .kbd { display: none; }
.opt.fade { opacity: .42; }

/* eşleştirme */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-col { display: flex; flex-direction: column; gap: 9px; }
.mtile {
  min-height: 56px; padding: 10px 12px; border-radius: var(--r-2); background: var(--panel);
  border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line-soft); display: flex; align-items: center;
  justify-content: center; gap: 8px; font-weight: 600; transition: var(--dur);
}
.mtile.ott { font-size: calc(30px * var(--ott-scale)); }
.mtile[aria-pressed="true"] { border-color: var(--lapis); background: rgba(61,111,209,.16); }
.mtile.matched { border-color: var(--firuze); background: var(--ok-bg); color: var(--firuze-2); opacity: .55; pointer-events: none; }
.mtile.miss { border-color: var(--bole); animation: shake .32s; }

/* kelime bankası */
.bank-line {
  min-height: 74px; border-radius: var(--r-2); border: 1.5px dashed var(--line); padding: 10px;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; margin-bottom: 16px;
  background: var(--field); direction: rtl;
}
.bank-line.ltr { direction: ltr; }
.bank-pool { display: flex; flex-wrap: wrap; gap: 8px; direction: rtl; }
.bank-pool.ltr { direction: ltr; }
.tile {
  padding: 8px 14px; border-radius: 10px; background: var(--panel-2); border: 1.5px solid var(--line);
  box-shadow: 0 3px 0 var(--line-soft); font-weight: 700; transition: var(--dur); font-size: 15px;
}
.tile.ott { font-family: var(--f-ott); font-size: calc(27px * var(--ott-scale)); line-height: 1.5; padding: 4px 14px; }
.tile:hover { border-color: var(--panel-3); }
.tile.used { opacity: .25; pointer-events: none; }
.tile.ghost { visibility: hidden; }

/* yazma / klavye */
.otf-input {
  min-height: 74px; border-radius: var(--r-2); border: 1.5px solid var(--line); background: var(--field);
  padding: 12px 16px; direction: rtl; font-family: var(--f-ott); font-size: calc(40px * var(--ott-scale));
  line-height: 1.6; margin-bottom: 12px; word-break: break-word;
}
.otf-input:empty::before {
  content: attr(data-ph); color: var(--ink-3); font-family: var(--f-ui); font-size: 14px;
  direction: ltr; unicode-bidi: isolate; display: inline-block;
}
.otf-input.caret::after { content: ""; display: inline-block; width: 2px; height: .8em; background: var(--gold); vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* 36 tuş: masaüstünde 9×4, mobilde 6×6 — tam sığar, artan tuş kalmaz */
.kbd-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; direction: rtl; }
#shell[data-layout="mobile"] .kbd-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.kbd-key {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2);
  border: 1px solid var(--line-soft); font-family: var(--f-ott); font-size: calc(23px * var(--ott-scale));
  transition: .12s; box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.kbd-key:hover { background: var(--panel-3); }
.kbd-key:active { transform: translateY(2px); box-shadow: none; }
.kbd-key.util { font-family: var(--f-ui); font-size: 12px; font-weight: 700; color: var(--ink-2); grid-column: span 2; aspect-ratio: auto; min-height: 40px; }

.txt-input {
  width: 100%; min-height: 58px; border-radius: var(--r-2); border: 1.5px solid var(--line);
  background: var(--field); padding: 12px 16px; font-size: 18px; font-family: var(--f-display);
}
.txt-input:focus { border-color: var(--gold); }
.txt-input::placeholder { color: var(--ink-3); font-family: var(--f-ui); font-size: 14px; }

/* geri bildirim şeridi */
.fb { flex: none; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1.5px solid transparent; }
.fb.ok { background: var(--ok-bg); border-top-color: var(--ok-line); }
.fb.no { background: var(--no-bg); border-top-color: var(--no-line); }
.fb-in { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fb.ok .fb-icon { background: var(--firuze); color: #04211C; }
.fb.no .fb-icon { background: var(--bole); color: #fff; }
.fb-txt { flex: 1; min-width: 180px; }
.fb-txt b { display: block; font-family: var(--f-display); font-size: 18px; }
.fb.ok .fb-txt b { color: var(--firuze-2); }
.fb.no .fb-txt b { color: var(--bole-2); }
.fb-txt small { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; }
.fb-txt small .ott { font-size: calc(22px * var(--ott-scale)); vertical-align: middle; }
.fb .btn { min-width: 150px; }
.fb.ok .shimmer { position: absolute; }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 30%,70% { transform: translateX(4px); } 50% { transform: translateX(-5px); } }
.shakeit { animation: shake .34s; }

/* ders sonu */
.done-wrap { display: grid; place-items: center; min-height: 100%; padding: 30px 18px; text-align: center; }
.done-medal { font-size: 76px; color: var(--gold); line-height: 1; text-shadow: 0 0 40px rgba(217,164,65,.5); animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.done-grid { display: grid; grid-template-columns: repeat(3, minmax(96px,1fr)); gap: 12px; margin: 26px 0; width: 100%; max-width: 420px; }
.done-cell { border-radius: var(--r-2); padding: 12px 8px; border: 1.5px solid; }
.done-cell b { display: block; font-family: var(--f-mono); font-size: 24px; line-height: 1.1; }
.done-cell span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.done-cell.g { border-color: rgba(217,164,65,.5); background: rgba(217,164,65,.08); } .done-cell.g b { color: var(--gold-2); }
.done-cell.f { border-color: rgba(47,191,168,.5); background: rgba(47,191,168,.08); } .done-cell.f b { color: var(--firuze-2); }
.done-cell.l { border-color: rgba(61,111,209,.5); background: rgba(61,111,209,.1); } .done-cell.l b { color: #7FA6EE; }

/* ═══ ELİFBÂ ═══ */
.abc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.abc-cell {
  border-radius: var(--r-2); border: 1px solid var(--line-soft); background: var(--panel); padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: var(--dur); position: relative;
}
.abc-cell:hover { border-color: var(--gold-dim); background: var(--panel-2); transform: translateY(-2px); }
.abc-cell .g { font-family: var(--f-ott); font-size: calc(44px * var(--ott-scale)); line-height: 1.2; color: var(--ink); }
.abc-cell .n { font-family: var(--f-display); font-size: 14px; color: var(--gold-2); }
.abc-cell .t { font-size: 11px; color: var(--ink-3); font-family: var(--f-mono); }
.abc-cell .ebced { position: absolute; top: 6px; inset-inline-end: 8px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); opacity: .7; }
.abc-cell[data-nc="1"]::after { content: ""; position: absolute; bottom: 6px; inset-inline-start: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--bole); opacity: .8; }

.forms-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; text-align: center; }
.form-box { border-radius: var(--r-2); border: 1px solid var(--line-soft); background: var(--panel-2); padding: 12px 6px 10px; }
.form-box .fg { font-family: var(--f-ott); font-size: calc(42px * var(--ott-scale)); line-height: 1.6; margin-bottom: 6px; }
.form-box .fl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

/* ═══ YAZI TAHTASI ═══ */
.pad-wrap { position: relative; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--gold-dim); background: #FBF4E4; touch-action: none; }
[data-theme="paper"] .pad-wrap { background: #FFFBF0; }
.pad-wrap canvas { display: block; width: 100%; height: auto; }
#pad-guide { position: absolute; inset: 0; pointer-events: none; }
#pad-ink { position: relative; z-index: 2; cursor: crosshair; }
.pad-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.score-ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--firuze) calc(var(--p) * 1%), var(--panel-2) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel); }
.score-ring b { position: relative; font-family: var(--f-mono); font-size: 16px; }
.pad-hint { font-size: 12.5px; color: var(--ink-3); }

/* ═══ SÖZLÜK ═══ */
.dict-search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 0 10px; }
.dict-search .txt-input { min-height: 46px; font-size: 15px; font-family: var(--f-ui); }
.dict-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-2);
  border: 1px solid var(--line-soft); background: var(--panel); margin-bottom: 8px; transition: var(--dur);
}
.dict-item:hover { border-color: var(--gold-dim); }
.dict-item .dw { font-family: var(--f-ott); direction: rtl; font-size: calc(34px * var(--ott-scale)); line-height: 1.4; min-width: 118px; text-align: right; }
.dict-item .dm { flex: 1; min-width: 0; }
.dict-item .dth { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
#shell[data-layout="mobile"] .dict-item .dth { display: none; }
.dict-item .dm b { font-family: var(--f-display); font-style: italic; color: var(--gold-2); font-size: 16px; font-weight: 600; }
.dict-item .dm span { display: block; font-size: 13.5px; color: var(--ink-2); }
.org { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.org.ar { background: rgba(47,191,168,.16); color: var(--firuze-2); }
.org.fa { background: rgba(217,164,65,.16); color: var(--gold-2); }
.org.tr { background: rgba(61,111,209,.18); color: #86AAF0; }
.org.yu { background: rgba(208,80,58,.16); color: var(--bole-2); }

/* ═══ OKUMA ═══ */
.reader { line-height: 2.5; direction: rtl; text-align: right; font-family: var(--f-ott); font-size: calc(34px * var(--ott-scale)); }
#shell[data-layout="mobile"] .reader { font-size: calc(28px * var(--ott-scale)); }
.rw { cursor: pointer; border-radius: 6px; padding: 0 3px; transition: .15s; border-bottom: 2px solid transparent; }
.rw:hover { background: rgba(217,164,65,.16); border-bottom-color: var(--gold); }
.rw.seen { color: var(--gold-2); }
.reader-lat { direction: ltr; text-align: left; font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--gold-2); line-height: 1.75; margin-top: 4px; }
.reader-tr { direction: ltr; text-align: left; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.reader-line { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.reader-line:last-child { border-bottom: 0; }
.gloss {
  position: fixed; z-index: 200; background: var(--panel-2); border: 1px solid var(--gold-dim);
  border-radius: var(--r-2); padding: 10px 14px; box-shadow: var(--shadow-3); max-width: 260px; direction: ltr; text-align: left;
}
.gloss .go { font-family: var(--f-ott); direction: rtl; font-size: calc(28px * var(--ott-scale)); text-align: right; display: block; }
.gloss .gt { font-family: var(--f-display); font-style: italic; color: var(--gold-2); font-size: 15px; }
.gloss .gm { font-size: 13px; color: var(--ink-2); }

/* ═══ İSTATİSTİK ═══ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
.stat-box { border-radius: var(--r-2); border: 1px solid var(--line-soft); background: var(--panel); padding: 14px; }
.stat-box b { display: block; font-family: var(--f-mono); font-size: 25px; color: var(--gold-2); line-height: 1.1; }
.stat-box span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.heat {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px);
  grid-auto-columns: 14px; gap: 3px; direction: ltr; overflow-x: auto; padding-bottom: 4px;
}
.heat i { border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.heat-days { display: grid; grid-template-rows: repeat(7, 14px); gap: 3px; direction: ltr; }
.heat-days span { font-size: 9px; line-height: 14px; color: var(--ink-3); text-align: end; width: 16px; }
.heat i[data-l="1"] { background: rgba(47,191,168,.28); } .heat i[data-l="2"] { background: rgba(47,191,168,.5); }
.heat i[data-l="3"] { background: rgba(47,191,168,.72); } .heat i[data-l="4"] { background: var(--firuze); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.ach {
  border-radius: var(--r-2); border: 1px solid var(--line-soft); background: var(--panel); padding: 14px 10px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .42; filter: grayscale(1);
}
.ach.got { opacity: 1; filter: none; border-color: rgba(217,164,65,.42); background: linear-gradient(180deg, rgba(217,164,65,.1), var(--panel)); }
.ach .am { font-size: 30px; line-height: 1; }
.ach b { font-size: 12.5px; font-family: var(--f-display); }
.ach span { font-size: 11px; color: var(--ink-3); line-height: 1.35; }

/* ═══ AYARLAR ═══ */
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row .rl { flex: 1; min-width: 0; }
.row .rl b { display: block; font-size: 14.5px; font-weight: 600; }
.row .rl span { font-size: 12.5px; color: var(--ink-3); }
.switch { width: 50px; height: 29px; border-radius: 999px; background: var(--panel-3); position: relative; transition: var(--dur); flex: none; border: 1px solid var(--line); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--ink-3); transition: var(--dur) var(--ease); }
.switch[aria-checked="true"] { background: var(--firuze); border-color: var(--firuze); }
.switch[aria-checked="true"]::after { left: 24px; background: #04211C; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); flex: none; }
.seg button { padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--gold-2); }
input[type="range"] { accent-color: var(--gold); width: 130px; flex: none; }

/* ═══ MODAL / TOAST ═══ */
#modal-root:empty { display: none; }
.mask { position: fixed; inset: 0; background: rgba(4,7,14,.72); backdrop-filter: blur(4px); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-3); padding: 22px; animation: rise .24s var(--ease); }
@keyframes rise { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.modal h2 { margin-bottom: 8px; }
.modal .btn-row { margin-top: 20px; }
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--panel-2); border: 1px solid var(--gold-dim); color: var(--ink); padding: 11px 18px;
  border-radius: 999px; box-shadow: var(--shadow-3); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 9px; animation: toastin .28s var(--ease);
}
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } }
.toast .ic { color: var(--gold-2); }

/* ═══ ÇEŞİTLİ ═══ */
.list-reset { list-style: none; padding: 0; margin: 0; }
.note { border-inline-start: 3px solid var(--gold); background: rgba(217,164,65,.07); padding: 11px 14px; border-radius: 0 var(--r-2) var(--r-2) 0; font-size: 13.5px; color: var(--ink-2); }
.note b { color: var(--gold-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.empty { text-align: center; padding: 44px 18px; color: var(--ink-3); }
.empty .ic { width: 46px; height: 46px; opacity: .45; margin-bottom: 12px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 14px; opacity: .95; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .1; } }
.mic-live { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--bole); color: #fff; box-shadow: 0 0 0 0 rgba(208,80,58,.55); }
.mic-live.rec { animation: pulse 1.3s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 24px rgba(208,80,58,0); } 100% { box-shadow: 0 0 0 0 rgba(208,80,58,0); } }
.wave { display: flex; gap: 3px; align-items: flex-end; height: 26px; justify-content: center; }
.wave i { width: 4px; background: var(--firuze); border-radius: 2px; height: 20%; animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%,100% { height: 18%; } 50% { height: 100%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ince kaydırma çubuğu */
#view::-webkit-scrollbar, #rail::-webkit-scrollbar, .modal::-webkit-scrollbar, .lesson-body::-webkit-scrollbar { width: 9px; }
#view::-webkit-scrollbar-thumb, #rail::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb, .lesson-body::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 9px; border: 2px solid var(--bg); }
#view::-webkit-scrollbar-track { background: transparent; }
