/* p5.js sunumları — ortak stil. Taban ölçü 1280×720; reveal.js ekrana ölçekler. */

:root {
  --bg: #fbf7ee;
  --ink: #16202e;
  --muted: #5a6575;
  --card: #ffffff;
  --line: #e4dccb;
  --soft: #f1ebdd;

  --coral: #f2542d;
  --blue: #2456f5;
  --green: #0c9463;
  --yellow: #ffc929;
  --purple: #6f42e8;

  --coral-soft: #ffe9e1;
  --blue-soft: #e4ebff;
  --green-soft: #dcf5e9;
  --yellow-soft: #fff3c9;
  --purple-soft: #ece5ff;

  --cover-bg: #111b3a;
  --cover-ink: #ffffff;
  --ask-bg: #ffcf33;
  --ask-ink: #1a1505;
  --lab-bg: #f0eaff;

  --code-bg: #ffffff;
  --code-ink: #1d2533;
  --code-bar: #f1ece0;
  --code-line: #dcd3c0;
  --code-num: #a9a391;
  --code-hl: #fff1b8;
  --tok-kw: #c2185b;
  --tok-fn: #1b55d9;
  --tok-str: #1f8a3b;
  --tok-num: #c7500a;
  --tok-cmt: #7d8590;
  --tok-const: #7a3fd1;
  --con-bg: #17202e;
  --con-ink: #d7f5dd;
  --stage-bg: #e9e4d6;

  --sans: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0e1320;
  --ink: #eef2f8;
  --muted: #9ba8ba;
  --card: #18202f;
  --line: #2b3649;
  --soft: #151c2a;

  --coral: #ff7a59;
  --blue: #7da2ff;
  --green: #4ad69b;
  --yellow: #ffd65a;
  --purple: #b094ff;

  --coral-soft: #3a1d17;
  --blue-soft: #18264d;
  --green-soft: #11352a;
  --yellow-soft: #3a2f0d;
  --purple-soft: #261d47;

  --cover-bg: #090e1d;
  --ask-bg: #241a57;
  --ask-ink: #ffe27a;
  --lab-bg: #171232;

  --code-bg: #0a0e17;
  --code-ink: #e6edf5;
  --code-bar: #131a27;
  --code-line: #283246;
  --code-num: #55617a;
  --code-hl: #33301a;
  --tok-kw: #ff7b9c;
  --tok-fn: #7fb6ff;
  --tok-str: #8fe39a;
  --tok-num: #ffb46b;
  --tok-cmt: #7c8798;
  --tok-const: #c9a7ff;
  --con-bg: #05080e;
  --con-ink: #c9f2d2;
  --stage-bg: #1b2332;
}

html, body { background: var(--bg); }

.reveal-viewport {
  background: var(--bg);
  transition: background-color 0.25s ease;
}
.reveal-viewport.st-cover { background: var(--cover-bg); }
.reveal-viewport.st-ask { background: var(--ask-bg); }
.reveal-viewport.st-lab { background: var(--lab-bg); }

.reveal {
  font-family: var(--sans);
  font-size: 26px;
  color: var(--ink);
}

.reveal .slides { text-align: left; }
.reveal .slides > section { padding: 0; height: 720px; }

.frame {
  position: relative;
  box-sizing: border-box;
  width: 1280px;
  height: 720px;
  padding: 30px 60px 48px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.body > * { flex: 0 0 auto; margin-top: 0; margin-bottom: 0; }
.top > .frame > .body { justify-content: flex-start; }

/* ---------- yazı ---------- */

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}
.reveal h2 { font-size: 44px; margin: 0 0 16px; flex: none; }
.reveal h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }

.reveal p { margin: 0; line-height: 1.38; }
.reveal .lead { font-size: 28px; color: var(--ink); }
.reveal .dim { color: var(--muted); }
.reveal .small { font-size: 21px; }
.reveal strong { font-weight: 700; }
.reveal em { font-style: normal; color: var(--coral); font-weight: 700; }
.reveal a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.reveal ul, .reveal ol { margin: 0; padding: 0 0 0 1.15em; display: block; }
.reveal li { margin: 0.38em 0; line-height: 1.34; }
.reveal li::marker { color: var(--coral); font-weight: 800; }
.reveal ul.tight li, .reveal ol.tight li { margin: 0.18em 0; }

.reveal code, .mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}
.reveal :not(pre) > code {
  font-size: 0.86em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.06em 0.34em;
  white-space: nowrap;
  color: var(--ink);
}

.tag {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
  background: var(--soft);
  color: var(--muted);
}
.tag.c-coral { background: var(--coral-soft); color: var(--coral); }
.tag.c-blue { background: var(--blue-soft); color: var(--blue); }
.tag.c-green { background: var(--green-soft); color: var(--green); }
.tag.c-purple { background: var(--purple-soft); color: var(--purple); }
.tag.c-yellow { background: var(--yellow-soft); color: #8a6400; }
html[data-theme="dark"] .tag.c-yellow { color: var(--yellow); }

.foot {
  position: absolute;
  left: 60px;
  bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--coral); }
.foot i { font-style: normal; opacity: 0.5; }

/* ---------- kapak ---------- */

.cover .frame { color: var(--cover-ink); padding: 60px 72px; justify-content: center; }
.cover .body { justify-content: center; gap: 18px; position: relative; z-index: 1; }
.cover h1 { color: #fff; font-size: 82px; max-width: 13em; }
.cover .lead { color: #c9d5f2; font-size: 31px; max-width: 26em; }
.cover .eyebrow {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.cover .foot { color: #8f9cc0; left: 72px; }
.cover .deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cover .deco b { position: absolute; display: block; }
.cover .deco b:nth-child(1) { right: 70px; top: 70px; width: 210px; height: 210px; border-radius: 50%; background: #ffc929; animation: bob 5s ease-in-out infinite; }
.cover .deco b:nth-child(2) { right: 250px; top: 300px; width: 130px; height: 130px; background: #f2542d; transform: rotate(14deg); animation: spin 22s linear infinite; }
.cover .deco b:nth-child(3) { right: 60px; bottom: 90px; width: 0; height: 0; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 156px solid #3b6cff; animation: bob 6s ease-in-out -2s infinite; }
.cover .deco b:nth-child(4) { right: 330px; top: 110px; width: 44px; height: 44px; border-radius: 50%; border: 6px solid #4ad69b; }
.cover .deco b:nth-child(5) { right: 300px; bottom: 120px; width: 90px; height: 6px; background: #b094ff; transform: rotate(-28deg); }
@keyframes bob { 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(374deg); } }

.cover .plan { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; max-width: 800px; }
.cover .plan span {
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 21px;
  color: #e8eeff;
}
.cover .go { display: flex; gap: 12px; margin-top: 18px; }
.cover .go a {
  background: #fff;
  color: #111b3a;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  padding: 11px 22px;
  border-radius: 999px;
}
.cover .go a.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }

/* ---------- soru / cevap ---------- */

.ask .frame { color: var(--ask-ink); padding: 54px 72px; }
.ask .body { justify-content: center; gap: 22px; position: relative; z-index: 1; }
.ask h2 { color: var(--ask-ink); font-size: 60px; max-width: 16em; margin: 0; }
.ask .lead, .ask p, .ask li { color: var(--ask-ink); }
.ask .lead { font-size: 30px; max-width: 30em; }
.ask .tag { background: var(--ask-ink); color: var(--ask-bg); }
.ask .foot { color: var(--ask-ink); opacity: 0.6; left: 72px; }
.ask .frame::after {
  content: "?";
  position: absolute;
  right: 50px;
  bottom: -70px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 520px;
  line-height: 1;
  color: var(--ask-ink);
  opacity: 0.09;
  pointer-events: none;
}
.ask :not(pre) > code { background: rgba(255, 255, 255, 0.45); border-color: rgba(0, 0, 0, 0.12); color: var(--ask-ink); }
html[data-theme="dark"] .ask :not(pre) > code { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.ask .hint { font-size: 22px; opacity: 0.75; }

.lab .tag { background: var(--purple); color: #fff; }
html[data-theme="dark"] .lab .tag { color: #140d2e; }
.lab ol { padding-left: 1.25em; }
.lab ol li::marker { color: var(--purple); }
.timer {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
  border: 2px solid var(--purple);
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 14px;
  vertical-align: middle;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- kutular ---------- */

.box {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 24px;
  line-height: 1.36;
}
.box > b:first-child, .box > h3:first-child {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.box.def { border-left: 8px solid var(--purple); }
.box.def > b:first-child { color: var(--purple); }
.box.info { border-left: 8px solid var(--blue); }
.box.info > b:first-child { color: var(--blue); }
.box.warn { border-left: 8px solid var(--coral); background: var(--coral-soft); border-color: var(--coral); }
.box.warn > b:first-child { color: var(--coral); }
.box.ok { border-left: 8px solid var(--green); background: var(--green-soft); border-color: var(--green); }
.box.ok > b:first-child { color: var(--green); }
.box.flat { border-left-width: 1.5px; }
.box ul, .box ol { font-size: inherit; }
.box li { margin: 0.2em 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; min-height: 0; }
.cols.c3 { grid-template-columns: 1fr 1fr 1fr; }
.cols.c4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cols.l { grid-template-columns: 1.25fr 1fr; }
.cols.r { grid-template-columns: 1fr 1.25fr; }
.cols.mid { align-items: center; }
.cols.start { align-items: start; }
.cols > * { min-width: 0; min-height: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; min-height: 0; justify-content: center; }
.body > .cols.grow, .body > .snippet.grow { flex: 1 1 auto; }

.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  color: var(--coral);
  display: block;
  margin-bottom: 6px;
}

.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: st; }
.steps li {
  counter-increment: st;
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 18px;
  margin: 0;
  font-size: 25px;
}
.steps li::before {
  content: counter(st);
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps.sm li { font-size: 22px; padding: 8px 16px; }
.steps.sm li::before { width: 32px; height: 32px; font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 22px;
}
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; }
.flow span { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.flow i { font-style: normal; font-weight: 800; color: var(--coral); }

/* ---------- tablo ---------- */

table.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 22px;
  line-height: 1.3;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
table.t th {
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 14px;
}
table.t td { padding: 8px 14px; border-top: 1.5px solid var(--line); vertical-align: middle; }
table.t tr:nth-child(even) td { background: var(--soft); }
table.t td code { font-size: 0.9em; }
table.t.sm { font-size: 20px; }
table.t.sm td { padding: 6px 12px; }
table.t.center td, table.t.center th { text-align: center; }
table.t td.yes { color: var(--green); font-weight: 700; }
table.t td.no { color: var(--coral); font-weight: 700; }
table.t tr.hl td { background: var(--yellow-soft); }
table.t tr.dim td { color: var(--muted); }

/* ---------- görsel ---------- */

figure.shot {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.body > figure.shot { flex: 1 1 auto; }
figure.shot img, figure.shot svg.pic {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  padding: 8px;
  box-sizing: border-box;
  margin: 0;
  cursor: zoom-in;
}
figure.shot.plain img { background: transparent; border: none; padding: 0; }
figure.shot figcaption { flex: none; font-size: 18px; color: var(--muted); text-align: center; }
figure.portrait img { max-height: 400px; flex: none; }

/* ---------- değişken kutuları ---------- */

.vars { display: flex; gap: 22px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.var {
  min-width: 150px;
  border: 4px solid var(--ink);
  border-radius: 6px 6px 14px 14px;
  background: var(--card);
  text-align: center;
  position: relative;
  box-shadow: 6px 6px 0 var(--line);
}
.var .name {
  display: block;
  background: var(--yellow);
  color: #1a1505;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 21px;
  padding: 5px 12px;
  border-bottom: 4px solid var(--ink);
}
.var .val {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  padding: 20px 14px 22px;
  color: var(--ink);
}
.var .val.s { font-size: 24px; padding: 28px 14px 30px; }
.var .kind { display: block; font-size: 16px; color: var(--muted); padding: 0 0 8px; margin-top: -12px; }
.var.lock .name { background: var(--ink); color: var(--bg); }
.var.hot { border-color: var(--coral); }
.var.hot .name { background: var(--coral); color: #fff; border-color: var(--coral); }
.var.ghost { opacity: 0.4; border-style: dashed; box-shadow: none; }
.vars .arrow { font-size: 44px; font-weight: 800; color: var(--coral); align-self: center; font-family: var(--display); }
.vars .arrow small { display: block; font-family: var(--mono); font-size: 16px; color: var(--muted); font-weight: 600; text-align: center; }

/* ---------- kod ---------- */

.snippet { min-width: 0; min-height: 0; display: flex; gap: 16px; }
.snippet > textarea { display: none; }
.body > .snippet { flex: 0 1 auto; }
.body > .snippet.run { flex: 1 1 auto; }
.cols > .snippet { align-self: stretch; }
.cols.start > .snippet, .cols.mid > .snippet { align-self: auto; }

.codebox, .out {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1.5px solid var(--code-line);
  overflow: hidden;
  background: var(--code-bg);
}
.codebox { flex: 1 1 0; }
.snippet.run > .codebox { flex: 1.15 1 0; }
.snippet.run > .out { flex: 1 1 0; }
.snippet.run[data-layout="code"] > .codebox { flex: 1.7 1 0; }
.snippet.run[data-layout="out"] > .codebox { flex: 0.85 1 0; }
.snippet.run[data-layout="down"] { flex-direction: column; }
.snippet.run[data-layout="down"] > .out { flex: 0 0 150px; }

.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px 0 14px;
  background: var(--code-bar);
  border-bottom: 1.5px solid var(--code-line);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.bar .grow { flex: 1; }
.bar button {
  appearance: none;
  font: 700 13px/1 var(--sans);
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--code-line);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}
.bar button:hover { color: var(--ink); border-color: var(--ink); }
.bar button.on, .bar button.go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.bar .live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.reveal pre {
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  margin: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.34;
}
.reveal pre code {
  display: block;
  box-sizing: border-box;
  padding: 10px 14px 12px 6px;
  max-height: none;
  overflow: visible;
  white-space: normal;
  background: transparent;
  color: var(--code-ink);
  font-size: inherit;
  line-height: inherit;
  column-gap: 26px;
  column-fill: auto;
  column-rule: 1.5px solid var(--code-line);
  outline: none;
  tab-size: 2;
}
.reveal pre code[contenteditable] { white-space: pre; padding-left: 16px; caret-color: var(--coral); background: var(--yellow-soft); min-height: 100%; }
.reveal pre .line {
  display: block;
  position: relative;
  padding-left: 2.7em;
  white-space: pre;
  break-inside: avoid;
  min-height: 1.34em;
}
.reveal pre .line::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  width: 2em;
  text-align: right;
  color: var(--code-num);
  font-weight: 400;
}
.reveal pre .line.hl { background: var(--code-hl); border-radius: 4px; }
.reveal pre.nonum .line { padding-left: 0.7em; }
.reveal pre.nonum .line::before { content: none; }
.snippet.scroll pre { overflow: auto; }

.tk-kw { color: var(--tok-kw); font-weight: 600; }
.tk-fn { color: var(--tok-fn); }
.tk-str { color: var(--tok-str); }
.tk-num { color: var(--tok-num); }
.tk-cmt { color: var(--tok-cmt); font-style: italic; }
.tk-const { color: var(--tok-const); }

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--stage-bg);
  display: flex;
}
.stage iframe { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.con, pre.console {
  flex: none;
  margin: 0;
  max-height: 34%;
  overflow: auto;
  box-sizing: border-box;
  padding: 8px 14px;
  background: var(--con-bg);
  color: var(--con-ink);
  font-family: var(--mono);
  font-variant-ligatures: none;
  font-size: 17px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.con:empty { display: none; }
.con .err { color: #ff8f8f; }
.snippet[data-run="console"] .stage { flex: none; height: 0; overflow: hidden; }
.snippet[data-run="console"] .con { flex: 1 1 auto; max-height: none; font-size: 21px; padding: 14px 18px; }
.snippet[data-run="console"] .con:empty { display: block; }

.reveal pre.console {
  flex: none;
  max-height: none;
  border-radius: 14px;
  font-size: 21px;
  padding: 14px 18px;
  overflow: hidden;
}
pre.console .c { color: #7f8ba0; }

/* ---------- büyütme katmanı ---------- */

.zoomer {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  padding: 18px;
  box-sizing: border-box;
  display: flex;
}
.zoomer > * { flex: 1; min-width: 0; min-height: 0; }
.zoomer > img { object-fit: contain; background: #fff; border-radius: 14px; cursor: zoom-out; }
.zoomer .codebox pre, .zoomer .codebox.manual pre { overflow: auto; }
.ph { display: none; }

/* ---------- sınav ---------- */

.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: op; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts li {
  counter-increment: op;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  margin: 0;
  font-size: 24px;
  transition: background-color 0.2s, border-color 0.2s;
}
.opts li::before {
  content: counter(op, upper-alpha);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--soft);
  border: 1.5px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reveal .opts li.fragment { opacity: 1; visibility: inherit; }
.reveal .opts li.fragment.visible { background: var(--green-soft); border-color: var(--green); }
.reveal .opts li.fragment.visible::before { background: var(--green); border-color: var(--green); color: #fff; content: "✓"; }
.why { font-size: 22px; color: var(--muted); }

.reveal .fragment.pop { transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.reveal .fragment.pop.visible { transform: none; }

/* ---------- araç çubuğu ---------- */

.tools {
  position: fixed;
  z-index: 60;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0.28;
  transition: opacity 0.2s;
}
.tools:hover { opacity: 1; }
.tools a, .tools button {
  appearance: none;
  font: 700 14px/1 var(--sans);
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
}
.tools a:hover, .tools button:hover { border-color: var(--ink); }

.reveal .slide-number {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  right: 16px;
  bottom: 12px;
  padding: 0;
}
.reveal .slide-number a { color: inherit; }
.reveal .progress { height: 5px; color: var(--coral); background: transparent; }
.reveal aside.notes { display: none !important; }
.reveal .slides section .fragment.dimmed { opacity: 0.3; }

.reveal ::-webkit-scrollbar { width: 10px; height: 10px; }
.reveal ::-webkit-scrollbar-thumb { background: var(--code-line); border-radius: 99px; }

@media print {
  .tools { display: none; }
}

/* ---------- ekler ---------- */

.bar .fs { display: none; }
.zoomer .bar .fs { display: inline-block; }
.cols { grid-template-rows: minmax(0, 1fr); }
.body > .cols { flex: 0 1 auto; }
.stack > * { flex: 0 0 auto; }
.stack > .snippet { flex: 0 1 auto; }
.stack > .snippet.run, .stack > figure.shot { flex: 1 1 auto; }

ul.check { list-style: none; padding: 0; }
ul.check li { position: relative; padding-left: 1.7em; margin: 0.42em 0; }
ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.big { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1.1; letter-spacing: -0.02em; }
.center { text-align: center; }
.strike { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 4px; color: var(--muted); }
.box.cardlike { display: flex; flex-direction: column; gap: 4px; }
.box .ico { font-size: 34px; line-height: 1; margin-bottom: 4px; display: block; }
.year { font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--coral); line-height: 1; display: block; margin-bottom: 6px; }
kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 0.05em 0.4em;
}
.year code, .big code { background: none !important; border: 0 !important; padding: 0 !important; font-size: inherit !important; }
.reveal .slide-number a { text-decoration: none; }
.sw { display: inline-block; width: 1.5em; height: 1.05em; border-radius: 6px; border: 1.5px solid var(--line); vertical-align: -0.18em; }
svg.pic text { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.axes { display: block; width: 100%; height: auto; max-height: 100%; }
.axes text { font-family: var(--mono); font-size: 15px; fill: var(--ink); }
.axes .ax { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.axes .grid { stroke: var(--line); stroke-width: 1; }
.axes .hot { fill: var(--coral); }
.axes .lbl { font-family: var(--display); font-weight: 800; font-size: 19px; }
.axes .cv { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.body > figure.shot img { flex: 1 1 0; height: 0; width: 100%; }
.snippet.run[data-layout="down"] > .codebox { flex: 1 1 0; }
.snippet.run[data-layout="down"] > .out { flex: 0 0 215px; }
figure.shot figcaption { line-height: 1.7; }
.cover :not(pre) > code { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.cover h1 code { background: none; border: 0; padding: 0; font-size: 0.92em; }
.reveal :not(pre) > code { white-space: normal; }
.reveal table.t td code, .reveal h2 code { white-space: nowrap; }
.snippet.run[data-layout="wide"] > .codebox { flex: 2.7 1 0; }

/* ---------- gösteri, karikatür, oyun dünyası ---------- */

.snippet.run[data-layout="demo"] > .codebox { display: none; }
.snippet.run[data-layout="demo"] > .out { flex: 1 1 0; }

.comic { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.panel {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 250px;
  box-shadow: 5px 5px 0 var(--line);
}
.panel .who { font-size: 76px; line-height: 1; }
.panel .cap { font-size: 16px; color: var(--muted); font-family: var(--mono); align-self: flex-start; }
.bubble {
  position: relative;
  align-self: stretch;
  background: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  background: var(--bg);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.bubble.think { border-style: dashed; }

.meme {
  align-self: center;
  width: 560px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  font-family: Impact, "Arial Narrow Bold", "Bricolage Grotesque", sans-serif;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}
.meme .pic { display: block; font-size: 120px; line-height: 1.15; text-shadow: none; }
.meme small { display: block; font-family: var(--sans); font-size: 15px; text-transform: none; color: #aaa; text-shadow: none; margin-top: 8px; letter-spacing: 0; }
.cols > .meme { width: auto; align-self: center; }

.game {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-top: 8px solid var(--yellow);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 22px;
  line-height: 1.35;
}
.game > b:first-child { display: block; font-family: var(--display); font-weight: 800; font-size: 25px; margin-bottom: 4px; }
.game .yr { font-family: var(--mono); font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 6px; }

.cells { display: flex; justify-content: center; gap: 0; }
.cell {
  min-width: 110px;
  border: 3px solid var(--ink);
  margin-left: -3px;
  background: var(--card);
  text-align: center;
}
.cell:first-child { margin-left: 0; border-radius: 10px 0 0 10px; }
.cell:last-child { border-radius: 0 10px 10px 0; }
.cell .v { display: block; font-family: var(--mono); font-weight: 700; font-size: 30px; padding: 18px 10px 14px; }
.cell .i { display: block; font-family: var(--mono); font-size: 17px; font-weight: 700; background: var(--yellow); color: #1a1505; padding: 3px 0; border-top: 3px solid var(--ink); }
.cell.hot { background: var(--coral-soft); }
.cell.hot .i { background: var(--coral); color: #fff; }
.cell.empty .v { color: var(--muted); opacity: 0.45; }
.cells.sm .cell { min-width: 78px; }
.cells.sm .cell .v { font-size: 22px; padding: 12px 6px 10px; }
.celllabel { text-align: center; font-family: var(--mono); font-size: 18px; color: var(--muted); }

a.res {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 8px solid var(--blue);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 21px;
  line-height: 1.35;
}
a.res:hover { border-color: var(--blue); }
a.res b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; }
a.res i { display: block; font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--blue); margin-top: 6px; word-break: break-all; }
a.res .by { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
figure.shot figcaption a { color: inherit; }
figure.ext img { background: #fff; }
