/* =========================================================================
   Matematik Atlası — stil dosyası
   Renkler aşağıdaki değişkenlerden gelir. Vurgu rengi (--accent)
   site.config.json'dan ve ziyaretçi tercihlerinden ayarlanır.
   ========================================================================= */
:root {
  --bg: #fbf8f3;
  --bg-2: #f4efe6;
  --surface: #ffffff;
  --surface-2: #f8f5ef;
  --text: #1c2230;
  --muted: #586174;
  --border: #e5ddd0;
  --border-strong: #cfc4b2;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 6px 20px rgba(40, 30, 10, .06);
  --shadow-lg: 0 10px 40px rgba(40, 30, 10, .14);
  --ok: #157347;
  --ok-bg: #e5f4ec;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --warn-bg: #fff4dc;
  --on-accent: #ffffff;
  --accent-text: color-mix(in oklab, var(--accent) 78%, #000);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, var(--surface));
  --accent-soft-2: color-mix(in oklab, var(--accent) 22%, var(--surface));
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141b; --bg-2: #161a23; --surface: #1a1f2a; --surface-2: #202634;
    --text: #e9edf4; --muted: #a5aec0; --border: #2d3443; --border-strong: #3c4558;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
    --ok: #5fd39a; --ok-bg: #133325; --bad: #ff8a80; --bad-bg: #3a1a18; --warn-bg: #3a2e12;
    --accent-text: color-mix(in oklab, var(--accent) 55%, #fff);
    --accent-soft: color-mix(in oklab, var(--accent) 18%, var(--surface));
    --accent-soft-2: color-mix(in oklab, var(--accent) 30%, var(--surface));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141b; --bg-2: #161a23; --surface: #1a1f2a; --surface-2: #202634;
  --text: #e9edf4; --muted: #a5aec0; --border: #2d3443; --border-strong: #3c4558;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
  --ok: #5fd39a; --ok-bg: #133325; --bad: #ff8a80; --bad-bg: #3a1a18; --warn-bg: #3a2e12;
  --accent-text: color-mix(in oklab, var(--accent) 55%, #fff);
  --accent-soft: color-mix(in oklab, var(--accent) 18%, var(--surface));
  --accent-soft-2: color-mix(in oklab, var(--accent) 30%, var(--surface));
  color-scheme: dark;
}

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

/* ---- Temel ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: .6em 1em; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* ---- Düğmeler ---- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.15em; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--on-accent); font: inherit; font-weight: 650; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1.15; text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.soft { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.btn.small { min-height: 38px; padding: .4em .9em; font-size: .93rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---- Üst bilgi ---- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.header-actions { display: flex; gap: .2rem; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .main-nav a { padding: .8rem .9rem; font-size: 1.05rem; border-radius: 12px; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ---- Alt bilgi ---- */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: var(--bg-2); padding: 2.2rem 0 2.6rem; }
.footer-inner { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } .footer-note { grid-column: 1 / -1; } }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }

/* ---- Bölümler ---- */
.section { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-head p { margin: 0; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-bottom: .6rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.page-head { padding-top: 2rem; padding-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--border-strong); }
.crumbs a { color: var(--muted); }

/* ---- Kartlar ---- */
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
a.card { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
a.card:hover h3 { color: var(--accent-text); }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ---- Baykuş ---- */
.owl { display: block; flex: none; overflow: visible; }
.owl .owl-eyes-happy, .owl .owl-brow { display: none; }
.owl[data-mood="happy"] .owl-eyes-open { display: none; }
.owl[data-mood="happy"] .owl-eyes-happy { display: inline; }
.owl[data-mood="think"] .owl-brow { display: inline; }
.owl[data-mood="think"] .owl-pupils { transform: translate(2px, -3px); }
.owl[data-mood="oops"] .owl-pupils { transform: scale(.75); transform-origin: 60px 44px; }
.owl .owl-pupils { transition: transform .3s; }
.brand-owl { transition: transform .4s; }
.brand:hover .brand-owl { transform: rotate(-8deg); }
@keyframes owl-hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-8px) rotate(-3deg); } 70% { transform: translateY(0) rotate(2deg); } }
.owl.hop { animation: owl-hop .6s ease; }
.owl-says { display: flex; gap: .8rem; align-items: flex-start; margin: 1.2rem 0; }
.owl-says .bubble {
  position: relative; background: var(--accent-soft); border-radius: 18px; padding: .85rem 1.05rem; flex: 1;
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
}
.owl-says .bubble::before { content: ""; position: absolute; left: -9px; top: 20px; border: 9px solid transparent; border-right-color: color-mix(in oklab, var(--accent) 25%, transparent); border-left: 0; }
.owl-says .bubble p:last-child { margin-bottom: 0; }
.owl-says.small .bubble { font-size: .98rem; }

/* ---- Ana sayfa ---- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 2rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .q { color: var(--accent-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-weight: 600; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .paper {
  position: absolute; inset: 6% 4%; background:
    linear-gradient(135deg, var(--accent-soft) 0 50%, transparent 50%),
    var(--surface);
  border-radius: 28px; border: 1px solid var(--border); transform: rotate(-3deg); box-shadow: var(--shadow);
}
.hero-art .owl { position: relative; width: min(62%, 260px); height: auto; filter: drop-shadow(0 12px 18px rgba(80, 40, 10, .18)); }
.hero-art .speech { position: absolute; top: 4%; right: 2%; background: var(--surface); border: 1px solid var(--border); padding: .55rem .85rem; border-radius: 16px 16px 4px 16px; font-weight: 650; box-shadow: var(--shadow); max-width: 60%; font-size: .95rem; }
.hero-art .floaty { position: absolute; font-family: var(--font-serif); font-weight: 700; color: var(--accent-text); opacity: .55; font-size: 1.6rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-art .floaty { animation: float 6s ease-in-out infinite; }
.hero-art .f2 { animation-delay: -2s; } .hero-art .f3 { animation-delay: -4s; }

/* Yolculuk haritası */
.journey { position: relative; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: stop; }
@media (min-width: 700px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .journey { grid-template-columns: repeat(3, 1fr); } }
.stop-card { padding: 0; overflow: hidden; }
.stop-card .stop-art { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.stop-card .stop-art svg { width: 100%; height: 100%; }
.stop-card .stop-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.stop-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .9rem; }
.stop-meta { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--muted); font-weight: 650; }
.journey-path { display: none; }

.film-card { display: grid; gap: 0; grid-template-columns: 1fr; overflow: hidden; padding: 0; }
@media (min-width: 820px) { .film-card { grid-template-columns: 1.3fr 1fr; } }
.film-card .film-cover-btn { all: unset; cursor: pointer; display: block; position: relative; aspect-ratio: 16/9; background: #10182b; }
.film-card .film-cover-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.film-card .film-cover-btn svg.cover { width: 100%; height: 100%; display: block; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.film-cover-btn:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }
.film-card .film-info { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; justify-content: center; }

/* ---- Tarih durağı ---- */
.stop-hero { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .stop-hero { grid-template-columns: 1fr 1fr; } }
.stop-illus { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stop-illus svg { display: block; width: 100%; height: auto; }
.stop-illus figcaption { padding: .7rem 1rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--border); }
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose figure { margin: 1.4rem 0; }
.prose img, .prose svg.fig { display: block; max-width: 100%; height: auto; }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.display { text-align: center; font-size: 1.2rem; margin: 1.2rem 0; overflow-x: auto; }
.timeline-strip { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.timeline-strip a, .timeline-strip span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border-strong); font-weight: 800; text-decoration: none; color: var(--muted); }
.timeline-strip a:hover { border-color: var(--accent); color: var(--accent-text); }
.timeline-strip [aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.facts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 1rem 0; }
.fact { border-radius: 14px; padding: .9rem 1rem; border: 1px solid var(--border); background: var(--surface); }
.fact h4 { margin: 0 0 .35rem; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.fact.known h4 { color: var(--ok); }
.fact.debated h4 { color: #b06f00; }
:root[data-theme="dark"] .fact.debated h4 { color: #ffc35c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact.debated h4 { color: #ffc35c; } }
.fact p, .fact ul { margin: 0; font-size: .97rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2.4rem; }
.pager a { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--accent); }
.pager .next { text-align: right; grid-column: 2; }
.pager small { color: var(--muted); font-weight: 650; }

/* Açılır bölümler */
details.more { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); margin: 1rem 0; box-shadow: var(--shadow); }
details.more > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.15rem; display: flex; align-items: center; gap: .7rem; font-weight: 750; font-size: 1.05rem;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .6; }
details.more[open] > summary::after { transform: rotate(-135deg); }
details.more > summary .sum-sub { font-weight: 500; color: var(--muted); font-size: .9rem; }
details.more > .more-body { padding: 0 1.15rem 1.2rem; }
details.more.teacher > summary .card-icon { background: var(--warn-bg); color: #8a5a00; }
:root[data-theme="dark"] details.more.teacher > summary .card-icon { color: #ffc35c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) details.more.teacher > summary .card-icon { color: #ffc35c; } }
.activity-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }

/* Quiz */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.quiz-q { font-weight: 700; font-size: 1.1rem; }
.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice {
  width: 100%; text-align: left; font: inherit; padding: .75rem .95rem; min-height: 48px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 2px solid var(--border);
}
.choice:hover:not([disabled]) { border-color: var(--accent); }
.choice.correct { border-color: var(--ok); background: var(--ok-bg); }
.choice.wrong { border-color: var(--bad); background: var(--bad-bg); }
.choice[disabled] { cursor: default; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { margin-top: .8rem; }

/* Kaynaklar */
.sources { margin-top: 1.6rem; font-size: .95rem; }
.sources h3 { font-size: 1rem; }
.sources ul { padding-left: 1.1em; }
.sources li { margin: .3em 0; }
.note { border-radius: 14px; padding: .9rem 1.05rem; background: var(--warn-bg); border: 1px solid color-mix(in oklab, #d49b00 35%, transparent); font-size: .97rem; }
.note p:last-child { margin: 0; }

/* ---- Matematik ---- */
.math { font-family: var(--font-serif); font-size: 1.08em; white-space: nowrap; letter-spacing: .01em; }
.math i { font-style: italic; }
.math .mo { padding: 0 .18em; }
.math sup { font-size: .7em; line-height: 0; }
.math-display { font-size: 1.25em; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .12em; line-height: 1.05; }
.frac .fn { border-bottom: .09em solid currentColor; padding: 0 .2em .06em; }
.frac .fd { padding: .06em .2em 0; }
.sqrt .rad { border-top: .08em solid currentColor; padding: 0 .1em; }

/* ---- Pilot ---- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin: 1.2rem 0 1.4rem; overflow-x: auto; scrollbar-width: none; position: sticky; top: 64px; background: var(--bg); z-index: 5; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-weight: 700; padding: .8rem 1rem; border: 0; background: none; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; min-height: 48px; }
.tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
@media (max-width: 480px) { .tab { padding: .7rem .55rem; font-size: .95rem; gap: .3rem; } .tab .ico { display: none; } .hero-art .owl { width: min(48%, 200px); } .hero-art .speech { font-size: .85rem; } }
.tab .count { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .05em .55em; color: var(--muted); }
.tabpanel[hidden] { display: none; }
.concept { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; margin-bottom: 1.6rem; }
@media (min-width: 880px) { .concept { grid-template-columns: 1fr 1fr; } }
.concept .visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.key { background: var(--accent-soft); border-radius: 14px; padding: .9rem 1.05rem; font-weight: 600; margin: .8rem 0; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); margin: 1.2rem 0; }
.widget h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.widget-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.input, .widget input[type="number"], .widget input[type="text"] {
  font: inherit; font-size: 1.1rem; padding: .55rem .8rem; min-height: 46px; border-radius: 12px; border: 2px solid var(--border-strong);
  background: var(--surface); color: var(--text); min-width: 0;
}
.input:focus, .widget input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft-2); }
.rect-list { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.rect-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-family: var(--font-serif); font-weight: 700; }
.rect-grid { display: grid; gap: 2px; }
.rect-grid span { width: 12px; height: 12px; border-radius: 2px; background: var(--accent); opacity: .85; }
.factor-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-family: var(--font-serif); font-size: 1.05rem; }
.rule-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rule-table th, .rule-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.rule-table th { font-size: .85rem; color: var(--muted); }
.yes { color: var(--ok); font-weight: 800; }
.no { color: var(--bad); font-weight: 800; }
.sieve { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 520px; }
.sieve button { aspect-ratio: 1; font: inherit; font-weight: 700; font-size: clamp(.8rem, 2.6vw, 1rem); border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; padding: 0; }
.sieve button.prime { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sieve button.out { opacity: .32; text-decoration: line-through; }
.sieve button.one { opacity: .45; }
.tree { overflow-x: auto; }
.tree svg { display: block; margin: 0 auto; }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.example-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.example-head .stop-num { flex: none; }
.example .problem { font-weight: 650; font-size: 1.08rem; }
.steps { list-style: none; padding: 0; margin: .8rem 0; counter-reset: step; display: grid; gap: .5rem; }
.steps li { counter-increment: step; position: relative; padding: .65rem .8rem .65rem 2.8rem; background: var(--surface-2); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: .7rem; top: .62rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft-2); color: var(--accent-text); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.steps li[hidden] { display: none; }
.steps li.reveal { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.answer-line { font-weight: 750; color: var(--ok); }

/* Alıştırma */
.ex-shell { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .ex-shell { grid-template-columns: 1fr 270px; } }
.ex-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--shadow); }
.ex-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ex-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--border); }
.ex-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ex-prompt { font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 650; margin-bottom: 1rem; }
.ex-input-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.ex-input-row .input { flex: 1 1 220px; }
.ex-help { font-size: .9rem; color: var(--muted); margin: .4rem 0 0; }
.ex-feedback { margin-top: 1rem; }
.ex-feedback:empty { display: none; }
.ex-feedback .owl-says { margin: 0; }
.ex-feedback.ok .bubble { background: var(--ok-bg); border-color: color-mix(in oklab, var(--ok) 35%, transparent); }
.ex-feedback.bad .bubble { background: var(--bad-bg); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.ex-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ex-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hint-box, .solution-box { margin-top: 1rem; border-radius: 14px; padding: .9rem 1rem; }
.hint-box { background: var(--warn-bg); }
.hint-box ol { margin: .3rem 0 0; }
.solution-box { background: var(--surface-2); border: 1px dashed var(--border-strong); }
.solution-box ol { margin: .4rem 0 0; }
.ex-map { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); align-self: start; position: sticky; top: 130px; }
.ex-map h3 { font-size: .95rem; }
.ex-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.ex-dots button { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; min-height: 40px; }
.ex-dots button.done { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.ex-dots button.tried { border-color: #d49b00; }
.ex-dots button[aria-current="true"] { outline: 3px solid var(--accent); outline-offset: 1px; }
.choice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.choice-list label { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface-2); min-height: 48px; }
.choice-list label:hover { border-color: var(--accent); }
.choice-list input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.choice-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.level { font-size: .78rem; font-weight: 800; padding: .2em .65em; border-radius: 999px; }
.level.kolay { background: var(--ok-bg); color: var(--ok); }
.level.orta { background: var(--warn-bg); color: #8a5a00; }
.level.zor { background: var(--bad-bg); color: var(--bad); }
:root[data-theme="dark"] .level.orta { color: #ffc35c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .level.orta { color: #ffc35c; } }
.local-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.meb-box { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .96rem; }
.meb-box code { font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.meb-box ul { margin: .4rem 0 0; }

/* ---- Kütüphane ---- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; align-items: center; }
.filter-btn { font: inherit; font-weight: 700; padding: .5rem .95rem; min-height: 42px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.search { position: relative; flex: 1 1 220px; max-width: 340px; margin-left: auto; }
.search input { width: 100%; padding-left: 2.4rem; }
.search .ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lib-item[hidden] { display: none; }
.empty-state { text-align: center; padding: 2rem; color: var(--muted); }

/* Bilgi ağı */
.net { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; overflow: hidden; }
.net svg { display: block; width: 100%; height: auto; }
.net .edge { stroke: var(--border-strong); stroke-width: 1.5; }
.net .edge.lesson { stroke-dasharray: 4 4; }
.net a .node { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; transition: fill .2s; }
.net a .node.lesson { stroke: var(--border-strong); fill: var(--bg-2); }
.net a:hover .node, .net a:focus .node { fill: var(--accent-soft-2); }
.net text { fill: var(--text); font-family: var(--font); font-size: 13px; font-weight: 650; }
.net text.lt { fill: var(--muted); font-size: 12px; }

/* Keşif */
.big-question { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: .4rem 0 1rem; }
.think-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.think-box textarea { width: 100%; min-height: 80px; font: inherit; padding: .7rem .8rem; border-radius: 12px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); resize: vertical; }
.think-box textarea:focus { border-color: var(--accent); outline: none; }
.short-answer { margin-top: 1rem; }
.short-answer[hidden] { display: none; }
.deep { margin-top: 1.2rem; }

/* ---- Oyunlar ---- */
.game-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--shadow); }
.game-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.level-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.puzzle-dots { display: flex; gap: .35rem; flex-wrap: wrap; }
.puzzle-dots button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface-2); font: inherit; font-weight: 800; color: var(--text); cursor: pointer; }
.puzzle-dots button.solved { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.puzzle-dots button[aria-current="true"] { outline: 3px solid var(--accent); outline-offset: 1px; }
.cards24 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.4rem, 2vw, .9rem); margin: 1rem auto; max-width: 560px; }
.card24 {
  aspect-ratio: 3 / 4; border-radius: 18px; border: 3px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.4rem, 6vw, 2.6rem); cursor: pointer; display: grid; place-items: center; padding: .2rem;
  transition: transform .15s, border-color .15s, background .15s; box-shadow: var(--shadow);
}
.card24 .frac { font-size: .7em; }
.card24:hover:not([disabled]) { transform: translateY(-3px); border-color: var(--accent); }
.card24[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft-2); transform: translateY(-4px); }
.card24.used { visibility: hidden; }
.card24.win { border-color: var(--ok); background: var(--ok-bg); }
.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 420px; margin: 0 auto 1rem; }
.op { font: inherit; font-size: 1.6rem; font-weight: 800; min-height: 56px; border-radius: 14px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.op[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.op:disabled { opacity: .35; cursor: not-allowed; }
.history-list { font-family: var(--font-serif); font-size: 1.05rem; min-height: 1.6em; list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.history-list li { background: var(--surface-2); border-radius: 10px; padding: .25rem .6rem; margin: 0; }
.status-line { min-height: 1.6em; font-weight: 650; }
.pile { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; padding: 1rem; min-height: 120px; background: var(--surface-2); border-radius: 18px; border: 1px dashed var(--border-strong); align-content: center; }
.stone { width: clamp(30px, 8vw, 42px); aspect-ratio: 1; border-radius: 50% 46% 52% 48%; background: radial-gradient(circle at 35% 30%, #c9ced8, #7e8696 70%); box-shadow: inset -3px -4px 6px rgba(0,0,0,.25), 0 2px 3px rgba(0,0,0,.2); transition: transform .3s, opacity .3s; }
.stone.picked { background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 45%, #fff), var(--accent) 75%); transform: translateY(-6px); }
.stone.gone { opacity: 0; transform: scale(.4); }
.take-row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.take-row .btn { min-width: 110px; }
.scoreline { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; font-weight: 700; color: var(--muted); }
.log { max-height: 180px; overflow: auto; font-size: .95rem; padding-left: 1.2em; margin: .4rem 0 0; }
.setup-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 650; font-size: .95rem; }
.field select { font: inherit; padding: .5rem .7rem; min-height: 44px; border-radius: 12px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); }

/* Trafik */
.traffic-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .traffic-grid { grid-template-columns: 1fr 1fr; } }
.slider-block { display: grid; gap: .5rem; margin-bottom: 1rem; }
.slider-block input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.split-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; font-weight: 800; border: 1px solid var(--border); }
.split-bar span { display: grid; place-items: center; color: #fff; transition: flex-grow .3s; min-width: 0; overflow: hidden; white-space: nowrap; }
.split-bar .a { background: #2f7d5b; }
.split-bar .b { background: #3a63b8; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: 1rem 0; }
.stat { background: var(--surface-2); border-radius: 14px; padding: .7rem .9rem; border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.6rem; font-family: var(--font-serif); line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 650; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--border-strong); }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.intersection svg { width: 100%; height: auto; display: block; border-radius: 16px; }

/* ---- Film ---- */
.film-modal { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 16, .88); display: none; align-items: center; justify-content: center; padding: 12px; }
.film-modal.open { display: flex; }
.player { width: min(100%, 1080px); background: #0d1220; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #fff; }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #0d1220; }
.player-stage canvas { width: 100%; height: 100%; display: block; }
.player-caption { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: min(92%, 860px); text-align: center; pointer-events: none; }
.player-caption span { display: inline; background: rgba(0,0,0,.78); color: #fff; padding: .2em .5em; border-radius: 6px; font-size: clamp(.85rem, 2.2vw, 1.25rem); line-height: 1.6; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 600; }
.player-caption[hidden] { display: none; }
.player-bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; background: #141b2d; flex-wrap: wrap; }
.player-bar .icon-btn { color: #fff; }
.player-bar .icon-btn:hover { background: rgba(255,255,255,.1); border-color: transparent; }
.player-bar .icon-btn[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.player-time { font-variant-numeric: tabular-nums; font-size: .9rem; color: #c8d0e0; min-width: 92px; }
.player-seek { flex: 1 1 160px; accent-color: var(--accent); min-width: 120px; height: 28px; }
.player-vol { width: 90px; accent-color: var(--accent); }
.player-close { margin-left: auto; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #c8d0e0; background: rgba(13,18,32,.6); }
.player-loading[hidden] { display: none; }
@media (max-width: 560px) { .player-vol { display: none; } .film-modal { padding: 0; } .player { border-radius: 0; } }
.transcript-list { list-style: none; padding: 0; }
.transcript-list li { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.transcript-list time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.scene-title { margin-top: 1.6rem; font-size: 1.05rem; color: var(--accent-text); }

/* ---- Ayarlar ---- */
dialog.settings { border: 1px solid var(--border); border-radius: 22px; padding: 0; background: var(--surface); color: var(--text); width: min(460px, calc(100% - 24px)); box-shadow: var(--shadow-lg); }
dialog.settings::backdrop { background: rgba(10, 12, 20, .45); }
.settings-inner { padding: 1.2rem 1.3rem 1.3rem; }
.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.settings-head h2 { font-size: 1.25rem; margin: 0; }
.settings fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.settings legend { font-weight: 750; margin-bottom: .5rem; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; background: var(--surface-2); padding: .3rem; border-radius: 14px; border: 1px solid var(--border); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-weight: 650; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow); color: var(--accent-text); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); padding: 4px; cursor: pointer; display: grid; place-items: center; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch.custom { width: auto; border-radius: 999px; padding: 4px 12px 4px 4px; gap: .4rem; display: inline-flex; font-weight: 650; font-size: .9rem; }
.swatch.custom input { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch.custom input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch.custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.settings-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .4rem; }

/* ---- Yazdırma ---- */
@media print {
  .site-header, .site-footer, .skip, .tabs, .ex-map, .btn, .hero-actions, dialog { display: none !important; }
  body { background: #fff; color: #000; }
  details.more { box-shadow: none; }
  details.more > .more-body { display: block; }
}
