/* Layout: tek odak sütunu (metin ortada), masaüstünde sağda sabit reklam rayı; yazarken her şey metne çekilir. */
:root {
  --bg: #e9edf1;
  --surface: #f6f8fa;
  --raised: #ffffff;
  --ink: #16202b;
  --ink-2: #4f5b68;
  --ink-3: #8f9aa6;
  --line: #d3dae1;
  --accent: #2443c9;
  --accent-soft: #dfe5fb;
  --accent-ink: #ffffff;
  --err: #c2362b;
  --err-soft: #f7dcd8;
  --ok: #1d7a4c;
  --key: #fbfcfd;
  --key-edge: #c3ccd5;
  --f0: #b0559a;
  --f1: #2f86b8;
  --f2: #2f9470;
  --f3: #cf8a18;
  --thumb: #8f9aa6;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-type: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1217; --surface: #151a21; --raised: #1b2129; --ink: #e3e8ee; --ink-2: #9ca7b3; --ink-3: #5b6672;
    --line: #262e38; --accent: #8fa2ff; --accent-soft: #1e2645; --accent-ink: #0e1217; --err: #ff7f70; --err-soft: #3a1f1d;
    --ok: #5fd39a; --key: #1a2028; --key-edge: #2d3641; --f0: #e08ccc; --f1: #6bb8e6; --f2: #63caa2; --f3: #f0b54f; --thumb: #6b7581;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1217; --surface: #151a21; --raised: #1b2129; --ink: #e3e8ee; --ink-2: #9ca7b3; --ink-3: #5b6672;
  --line: #262e38; --accent: #8fa2ff; --accent-soft: #1e2645; --accent-ink: #0e1217; --err: #ff7f70; --err-soft: #3a1f1d;
  --ok: #5fd39a; --key: #1a2028; --key-edge: #2d3641; --f0: #e08ccc; --f1: #6bb8e6; --f2: #63caa2; --f3: #f0b54f; --thumb: #6b7581;
  color-scheme: dark;
}

/* Seçilebilir temalar (Sistem/Açık/Koyu yukarıda) */
:root[data-theme="sand"] {
  --bg: #ece4d6; --surface: #f4eee4; --raised: #fbf8f2; --ink: #2a2118; --ink-2: #66574a; --ink-3: #a19380;
  --line: #ddd1bf; --accent: #b4532a; --accent-soft: #f1ddcf; --accent-ink: #ffffff; --err: #b3261e; --err-soft: #f3d6d2;
  --ok: #2f7a3e; --key: #fbf8f2; --key-edge: #d3c5b0;
  --f0: #b0559a; --f1: #2f86b8; --f2: #2f9470; --f3: #cf8a18; --thumb: #a19380; color-scheme: light;
}
:root[data-theme="forest"] {
  --bg: #0f1714; --surface: #15201b; --raised: #1a2722; --ink: #e2ebe5; --ink-2: #9fb3a8; --ink-3: #5f746a;
  --line: #24342d; --accent: #7fd1a0; --accent-soft: #1c3328; --accent-ink: #0f1714; --err: #ff8a7a; --err-soft: #3a1f1c;
  --ok: #7fd1a0; --key: #18241f; --key-edge: #2a3b33;
  --f0: #e08ccc; --f1: #6bb8e6; --f2: #63caa2; --f3: #f0b54f; --thumb: #6b7f75; color-scheme: dark;
}
:root[data-theme="ocean"] {
  --bg: #0b1426; --surface: #111c33; --raised: #16233f; --ink: #e0e8f6; --ink-2: #9aaccb; --ink-3: #5a6c8e;
  --line: #1f2d4a; --accent: #5fd4e6; --accent-soft: #14334a; --accent-ink: #0b1426; --err: #ff7d8a; --err-soft: #3a1a26;
  --ok: #6fe0a8; --key: #13203a; --key-edge: #263759;
  --f0: #e08ccc; --f1: #6bb8e6; --f2: #63caa2; --f3: #f0b54f; --thumb: #6a7b9b; color-scheme: dark;
}
:root[data-theme="contrast"] {
  --bg: #ffffff; --surface: #f0f0f0; --raised: #ffffff; --ink: #000000; --ink-2: #1f1f1f; --ink-3: #5c5c5c;
  --line: #7a7a7a; --accent: #0030c0; --accent-soft: #dbe3ff; --accent-ink: #ffffff; --err: #b80000; --err-soft: #ffd6d6;
  --ok: #00672b; --key: #ffffff; --key-edge: #4d4d4d;
  --f0: #9a2f80; --f1: #0b5f99; --f2: #0b6e4a; --f3: #9a5d00; --thumb: #4d4d4d; color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; margin: 0; }

/* ---------- Kabuk ---------- */
.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 32px;
}
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding-block: 20px;
  transition: opacity .35s var(--ease);
}
.logo {
  display: inline-flex; align-items: center; gap: 1px;
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.logo-key {
  display: inline-grid; place-items: center;
  width: 1.15em; height: 1.15em; margin-right: 3px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 7px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18);
  font-size: .9em; line-height: 1; padding-bottom: .2em;
}
.logo-tld { color: var(--ink-3); font-weight: 600; font-size: .62em; margin-left: 2px; align-self: flex-end; margin-bottom: .32em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar #uiLang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .nav a { flex: 1; text-align: center; }
}
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.theme-wrap { position: relative; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px;
  display: grid; gap: 2px; padding: 6px;
  background: var(--raised); border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgb(0 0 0 / .18);
}
.theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: left;
}
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--surface); color: var(--ink); outline: none; }
.theme-menu button[aria-checked="true"] { color: var(--ink); }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
/* Renk örnekleri: her temanın gerçek zemin + vurgu rengi (temadan bağımsız sabit örnekler) */
.sw { position: relative; width: 26px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .35); overflow: hidden; flex: none; }
.sw i { position: absolute; right: 4px; top: 5px; width: 8px; height: 8px; border-radius: 99px; }
.sw-auto { background: linear-gradient(135deg, #e9edf1 50%, #0e1217 50%); }
.sw-auto i { background: #2443c9; }
.sw-light { background: #e9edf1; } .sw-light i { background: #2443c9; }
.sw-dark { background: #0e1217; } .sw-dark i { background: #8fa2ff; }
.sw-sand { background: #ece4d6; } .sw-sand i { background: #b4532a; }
.sw-forest { background: #0f1714; } .sw-forest i { background: #7fd1a0; }
.sw-ocean { background: #0b1426; } .sw-ocean i { background: #5fd4e6; }
.sw-contrast { background: #ffffff; } .sw-contrast i { background: #000000; }
.icon-btn svg { width: 20px; height: 20px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1240px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.main { min-width: 0; }

/* Reklam alanları: boyut önceden ayrılır, yazarken görünmez olur (yer kaplamaya devam eder, sayfa kaymaz). */
.ad {
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  color: var(--ink-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .3s var(--ease);
}
.ad small { display: block; letter-spacing: 0; text-transform: none; font-size: 12px; margin-top: 4px; }
.ad-rail { display: none; }
@media (min-width: 1240px) {
  .ad-rail { display: block; position: sticky; top: 24px; align-self: start; }
  .ad-rail .ad { width: 300px; height: 600px; }
}
.ad-inline { width: 100%; max-width: 728px; height: 90px; margin: 28px auto 0; }
body.typing .ad, body.typing .topbar, body.typing .test-config, body.typing .footer-hints { opacity: 0; pointer-events: none; }
body.typing .ad, body.typing .topbar { transition-delay: .15s; }

/* ---------- Görünümler ---------- */
.view[hidden] { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

/* ---------- Ayar çubuğu ---------- */
.test-config {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin: 8px auto 40px; padding: 6px 10px;
  width: fit-content; max-width: 100%;
  background: var(--surface); border-radius: 999px;
  transition: opacity .3s var(--ease);
}
.seg { display: flex; align-items: center; gap: 2px; }
.seg + .seg { border-left: 1px solid var(--line); padding-left: 12px; }
.seg button {
  border: 0; background: transparent; color: var(--ink-3);
  padding: 5px 10px; border-radius: 999px; font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.seg button:hover { color: var(--ink); }
.seg .seg-select {
  border: 0; background: var(--accent-soft); color: var(--accent);
  padding: 5px 26px 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.seg button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) {
  .test-config { border-radius: var(--r-lg); }
  .seg + .seg { border-left: 0; padding-left: 0; }
}

/* ---------- Yazma alanı ---------- */
.stage { position: relative; max-width: 1000px; margin: 0 auto; }
.live {
  display: flex; gap: 22px; align-items: baseline; height: 36px;
  font-family: var(--font-type); color: var(--accent); font-size: 26px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.live .muted { color: var(--ink-3); font-size: 15px; }
.live:empty::before { content: ""; }
.typer {
  position: relative; cursor: text; outline: none;
  font-family: var(--font-type); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.7;
  --lh: 1.7em;
}
.typer .window { height: calc(var(--lh) * 3); overflow: hidden; position: relative; }
.typer .inner { position: relative; transition: transform .18s var(--ease); }
.typer .w { display: inline-block; white-space: pre; }
.typer .c { color: var(--ink-3); transition: color .08s linear; }
.typer .c.ok { color: var(--ink); }
.typer .c.err { color: var(--err); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.typer .c.sp.err { background: var(--err-soft); text-decoration: none; border-radius: 3px; }
.typer .c.shake { animation: shake .18s; color: var(--err); }
@keyframes shake { 0%, 100% { transform: none; } 30% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }
.typer .c { display: inline-block; }
.caret {
  position: absolute; left: 0; top: 0; width: 2.5px; height: 1.15em; margin-top: .27em;
  background: var(--accent); border-radius: 2px;
  transition: transform .09s linear;
  pointer-events: none;
}
.caret.idle { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.focus-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  color: var(--ink-2); font-weight: 700; font-family: var(--font-body); font-size: 16px;
  border-radius: var(--r-md);
}
#kbd {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0;
  border: 0; padding: 0; caret-color: transparent; font-size: 16px;
}
.actions-row { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; color: var(--ink-3);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.ghost-btn:hover { color: var(--ink); background: var(--surface); }
.ghost-btn svg { width: 18px; height: 18px; }
.footer-hints { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 56px; transition: opacity .3s; }
kbd {
  font-family: var(--font-type); font-size: 12px;
  padding: 2px 7px; border-radius: 5px;
  background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink-2);
}

/* ---------- Sonuç ---------- */
.result { max-width: 1000px; margin: 0 auto; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 720px) { .result-top { grid-template-columns: 1fr; } }
.bignums { display: grid; gap: 14px; }
.bignum .label { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.bignum .val {
  font-family: var(--font-display); font-weight: 800; line-height: .95;
  font-size: clamp(56px, 8vw, 84px); color: var(--accent); font-variant-numeric: tabular-nums;
}
.bignum.second .val { font-size: clamp(36px, 5vw, 48px); color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.chart { min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font-body); }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.stat .label { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat .val { font-family: var(--font-type); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat .val small { color: var(--ink-3); font-size: 14px; }

.coach {
  margin-top: 28px; padding: 20px 22px;
  background: var(--raised); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center;
}
@media (max-width: 640px) { .coach { grid-template-columns: 1fr; } }
.coach h3 { font-size: 20px; }
.coach p { margin: 4px 0 0; color: var(--ink-2); }
.keychips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keychip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border-radius: 8px; background: var(--surface); font-size: 13px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.keycap {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  font-family: var(--font-type); font-size: 16px; color: var(--ink);
  background: var(--key); border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 6px;
}
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15);
}
.primary:hover { filter: brightness(1.06); }
.primary:disabled { opacity: .5; cursor: default; }
.secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px;
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 1px var(--line);
}
.secondary:hover { background: var(--raised); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

/* ---------- Tutor ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin: 12px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.025em; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.layout-pick { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 999px; flex-wrap: wrap; }
.layout-pick button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.layout-pick button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.tutor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tutor-grid { grid-template-columns: 1fr; } }
.panel { background: var(--raised); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); padding: 22px; }
.panel h2 { font-size: 20px; font-weight: 700; }
.panel + .panel { margin-top: 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

.stage-block + .stage-block { margin-top: 26px; }
.stage-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.stage-title h3 { font-size: 17px; }
.stage-title span { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.lesson {
  position: relative; text-align: left; border: 0; border-radius: var(--r-md);
  background: var(--surface); padding: 12px 12px 10px; display: grid; gap: 8px;
  box-shadow: 0 0 0 1px var(--line); transition: transform .15s var(--ease), box-shadow .15s;
}
.lesson:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent); }
.lesson:disabled { cursor: not-allowed; opacity: .5; }
.lesson.next { box-shadow: 0 0 0 2px var(--accent); background: var(--raised); }
.lesson .n { font-size: 12px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.lesson .ks { display: flex; gap: 4px; flex-wrap: wrap; }
.lesson .ks .keycap { min-width: 26px; height: 26px; font-size: 14px; }
.stars { display: flex; gap: 2px; color: var(--line); }
.stars svg { width: 14px; height: 14px; }
.stars .on { color: var(--f3); }

.goal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.goal svg { width: 76px; height: 76px; }
.goal .ring-bg { stroke: var(--surface); }
.goal .ring { stroke: var(--accent); transition: stroke-dashoffset .6s var(--ease); }
.goal .ring-txt { fill: var(--ink); font-family: var(--font-type); font-size: 17px; }
.tips { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }

/* Ders ekranı */
.lesson-view { max-width: 1000px; margin: 0 auto; }
.lesson-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.lesson-bar h2 { font-size: 24px; }
.lesson-bar .grow { flex: 1; }
.progress { height: 4px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.finger-hint { display: flex; align-items: center; gap: 10px; min-height: 30px; margin: 22px 0 14px; color: var(--ink-2); font-weight: 700; }
.finger-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--thumb); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

/* Ekran klavyesi */
.kb-wrap { overflow-x: auto; padding-bottom: 4px; }
.kb { --u: clamp(26px, 5.4vw, 52px); display: grid; gap: calc(var(--u) * .1); width: max-content; margin: 0 auto; user-select: none; }
.kb-row { display: flex; gap: calc(var(--u) * .1); }
.kb-key {
  position: relative; display: grid; place-items: center;
  width: var(--u); height: var(--u); border-radius: calc(var(--u) * .16);
  font-family: var(--font-type); font-size: calc(var(--u) * .36); color: var(--ink);
  background: color-mix(in srgb, var(--fc, var(--thumb)) 14%, var(--key));
  border: 1px solid color-mix(in srgb, var(--fc, var(--thumb)) 35%, var(--key-edge));
  border-bottom-width: 3px;
  transition: transform .08s, background .12s, box-shadow .12s;
}
.kb-key.space { width: calc(var(--u) * 6); }
.kb-key.bump::after { content: ""; position: absolute; bottom: 18%; width: 28%; height: 2px; border-radius: 2px; background: var(--ink-3); }
.kb-key.dim { opacity: .35; }
.kb-key.target { background: var(--fc, var(--accent)); color: var(--bg); border-color: var(--fc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc, var(--accent)) 30%, transparent); transform: translateY(-1px); }
.kb-key.pressed { transform: translateY(2px); border-bottom-width: 1px; }
.kb.heat .kb-key { background: color-mix(in srgb, var(--err) var(--heat, 0%), var(--key)); border-color: var(--key-edge); }
.kb.hints-off .kb-key.target { background: color-mix(in srgb, var(--fc, var(--thumb)) 14%, var(--key)); color: var(--ink); box-shadow: none; transform: none; border-color: color-mix(in srgb, var(--fc, var(--thumb)) 35%, var(--key-edge)); }
.f0 { --fc: var(--f0); } .f1 { --fc: var(--f1); } .f2 { --fc: var(--f2); } .f3 { --fc: var(--f3); } .f8 { --fc: var(--thumb); }
.fingers-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.fingers-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fingers-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--fc); }

.overlay-card {
  max-width: 560px; margin: 8px auto 0; text-align: center; animation: rise .3s var(--ease);
}
.overlay-card .big-stars { display: flex; justify-content: center; gap: 8px; color: var(--line); margin-bottom: 12px; }
.overlay-card .big-stars svg { width: 40px; height: 40px; }
.overlay-card .big-stars .on { color: var(--f3); }
.overlay-card h2 { font-size: 28px; }
.overlay-card .pair { display: flex; justify-content: center; gap: 36px; margin: 18px 0 6px; }
.banner {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); margin-bottom: 18px; font-size: 14px;
}
.banner button { border: 0; background: transparent; color: var(--accent); font-weight: 700; }

/* ---------- İlerleme ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 16px 18px; background: var(--raised); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.kpi .label { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kpi .val { font-family: var(--font-display); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .val small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col .panel + .panel { margin-top: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
select {
  padding: 7px 30px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 700;
}
.table-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.board th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 8px 8px; }
.board td { padding: 9px 8px; border-top: 1px solid var(--line); }
.board td.rank { width: 36px; color: var(--ink-3); font-family: var(--font-type); }
.board tr.gold td.rank { color: var(--f3); font-weight: 700; }
.board td.wpm { font-family: var(--font-type); font-weight: 500; color: var(--accent); }
.board tr.fresh td { background: var(--accent-soft); }
.empty { color: var(--ink-3); text-align: center; padding: 28px 8px; font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, textarea {
  padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); width: 100%;
}
textarea { font-family: var(--font-type); font-size: 12px; min-height: 110px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.danger { color: var(--err); }
.note { font-size: 13px; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px;
}

/* Grafik işaretleri */
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ar { fill: var(--accent); opacity: .1; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .rl { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 3 4; }
.chart .pt { fill: var(--accent); }
.chart .end { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart .em { stroke: var(--err); stroke-width: 1.75; stroke-linecap: round; }
.chart .lab { fill: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#uiLang { padding: 6px 28px 6px 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.site-foot a { color: var(--ink-3); }
.site-foot a:hover { color: var(--ink); }

/* Reklamlar kapalıyken (ADS_ENABLED = false) alanlar hiç yer kaplamaz */
body.no-ads .ad-rail, body.no-ads .ad-inline, body.no-ads [data-i18n="foot.ads"] { display: none !important; }
@media (min-width: 1240px) { body.no-ads .layout { grid-template-columns: minmax(0, 1fr); } }
