/* Zımbırtı Atölyesi · site_v2 · "kaydırdıkça yolculuk"
   Önce telefon. Az renk: yalnızca Dıtdıt paleti + kurşun kalem grisi.
   Zemin: koyu noktalı dijital tuval (#1F1F1F, 50 px ızgarada #5A5A5A noktalar; oyun/ ile aynı).
   Teknoloji = noktalar, düğümler, LED. İnsan = kâğıt, bant, el yazısı.
   Renk bağlamı değişkenle: --yazi / --ikincil / --vurgu / --odak / --cizgi tuvalde açık, kâğıtta koyu.
   Nokta ızgarası tuval.js ve yolculuk.js'te de hesaplanıyor: 50 px / ilk nokta 25 px değişirse oraları da değiştir. */
:root {
  --laci: #202C3B;
  --krem: #F6F0DE;
  --karton: #C9965F;
  --sari: #FFCC00;
  --kirmizi: #EE5A3C;
  --kursun: #6b6355;
  --soluk: #7a705c;
  --beyaz: #FFFDF5;
  --sonuk: #3B4A5E;
  --tuval: #1F1F1F;
  --nokta: #5A5A5A;
  --acik-soluk: #CFC6B0;   /* tuvalde ikincil yazı: #1F1F1F üstünde 9,9:1 */
  --bant: #DDBF94;         /* opak bant: koyu tuvalde de kâğıt gibi durur */
  /* tuval bağlamı (kâğıt parçalar aşağıda kendi bağlamını kurar) */
  --yazi: var(--krem);
  --ikincil: var(--acik-soluk);
  --vurgu: var(--sari);
  --odak: var(--sari);
  --cizgi: var(--sari);
  --el: "Patrick Hand", Noteworthy, "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  --duz: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --oluk: 104px;          /* Dıtdıt'ın yürüdüğü şerit */
  --yolcu-g: 116px;       /* Dıtdıt'ın genişliği */
  --d: 1;                 /* çekmece açıklığı (JS kaydırmaya göre değiştirir) */
  --ust-y: 46px;          /* sabit üst menünün yüksekliği (JS gerçeğini ölçüp yazar) */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--ust-y) + 6px);
  background-color: #1F1F1F;
  background-image: radial-gradient(#5A5A5A 1.6px, transparent 1.6px);
  background-size: 50px 50px;
}
/* yumuşak kaydırma yalnızca bağlantıya basınca: alta konumlanma asla kayarak olmasın (yolculuk.js "yumusak" ekler) */
html:not(.js), html.yumusak { scroll-behavior: smooth; }
html.az-hareket { scroll-behavior: auto; }
/* alta konumlanana kadar boyama yok; sıçramayı önler (index.html başındaki küçük betik) */
html.bekliyor body { visibility: hidden; }

body {
  margin: 0;
  padding: var(--ust-y) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  overflow-x: hidden;
  color: var(--yazi);
  font-family: var(--duz);
  font-size: 18px;
  line-height: 1.55;
}

/* kâğıt bağlamı: kâğıt / karton parçaların içi koyu mürekkep */
.veli, .hayal-yol, .bant-not, .durust, .kart, .harita, .kod, .rozet-notu, .kagit-dugme, .blok, .durak-isareti, .yaprak {
  --yazi: var(--laci); --ikincil: var(--kursun); --vurgu: var(--kirmizi); --cizgi: var(--kirmizi);
  color: var(--yazi);
}
/* odak halkası düğmenin dışına, zemine çizilir: rengi düğmeden değil, durduğu zeminden gelir.
   Tuvalde sarı (10,9:1); büyük kâğıtların üstünde koyu domates (kremde 5,2:1). */
.veli, .hayal-yol, .yaprak { --odak: #B23A1E; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--cizgi); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px dashed var(--odak); outline-offset: 4px; }

.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* sabit: odaklanınca sayfa tepeye sıçramasın */
.atla { position: fixed; left: 12px; top: -60px; z-index: 40; background: var(--sari); color: var(--laci); padding: 8px 14px; font-family: var(--el); font-size: 20px; }
.atla:focus { top: 10px; }

/* ── üst ── */
/* sabit: sayfa altta açıldığı için veli köşesi ve "nasıl yapılıyor" her an buradan erişilebilir olmalı */
.ust {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px;
  padding: calc(7px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  background: rgba(31, 31, 31, .96); border-bottom: 2px dashed rgba(246, 240, 222, .22);
}
.logo { font-family: var(--el); font-size: 23px; color: var(--yazi); text-decoration: none; line-height: 1.1; white-space: nowrap; }
.logo span { font-size: 19px; color: var(--ikincil); }
.ust nav { display: flex; gap: 10px; }
.ust nav a { font-family: var(--el); font-size: 18px; line-height: 1.2; white-space: nowrap; color: var(--ikincil); text-decoration: none; border-bottom: 2px dashed transparent; }
.ust nav a:hover { color: var(--yazi); border-bottom-color: var(--cizgi); }

/* ── yolculuk alanı ── */
.yolculuk { position: relative; max-width: 1160px; margin: 0 auto; overflow-x: hidden; overflow-x: clip; }
.patika { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 1; }
.yol { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.yol-gelecek { stroke: var(--krem); stroke-width: 2.5; stroke-dasharray: 3 12; opacity: .5; }   /* henüz bağlanmamış */
.yol-gecmis { stroke: var(--sari); stroke-width: 4; stroke-dasharray: 12 9; }                   /* yürünen kısım: bağlandı */
/* Dıtdıt'ın geçtiği yerdeki tuval noktaları: yolculuk.js tam ızgaranın üstüne koyar */
.yol-led { fill: var(--sari); opacity: 0; transition: opacity .35s ease-out; }
.yol-led.yan { opacity: 1; }

.yolcu {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: var(--yolcu-g); pointer-events: none; will-change: transform;
}
.yolcu.disarida { z-index: 6; }
html:not(.js) .yolcu { display: none; }
.yolcu-ic { transform-origin: 50% 100%; }
/* koyu tuvalde kâğıttan kesilmiş çıkartma gibi krem kenar (çizgiler kaybolmasın; kimlik aynı, oyun/ ile aynı) */
.ditdit-svg {
  display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(2px 0 0 var(--krem)) drop-shadow(-2px 0 0 var(--krem)) drop-shadow(0 2px 0 var(--krem))
          drop-shadow(0 -2px 0 var(--krem)) drop-shadow(0 6px 4px rgba(0, 0, 0, .55));
}

/* LED: her kare hem sönük nokta hem yanan kare; JS yalnızca "yan" sınıfını değiştirir */
.led rect { visibility: hidden; }
.led.yan rect { visibility: visible; }
.led.yan circle { visibility: hidden; }
.kapali { visibility: hidden; }
.goz-kapali .bebek { visibility: hidden; }
.goz-kapali .kapali { visibility: visible; }
.kol-selam { display: none; }
.selam .kol-selam { display: inline; }
.selam .kol-duz { display: none; }

.bacak-sol { transform-origin: -15px -74px; }
.bacak-sag { transform-origin: 15px -74px; }
.kol-selam { transform-origin: -49px -104px; }
.yuruyor .bacak-sol { animation: adim .42s ease-in-out infinite alternate; }
.yuruyor .bacak-sag { animation: adim .42s ease-in-out infinite alternate-reverse; }
.yuruyor .yolcu-ic { animation: sek .42s ease-in-out infinite alternate; }
.selam .kol-selam { animation: salla .5s ease-in-out infinite alternate; }
.tosla .yolcu-ic { animation: tos .5s ease-out; }
@keyframes adim { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes sek { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes salla { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes tos {
  0% { transform: translateX(0); } 18% { transform: translateX(9px) rotate(4deg); }
  40% { transform: translateX(-7px) rotate(-5deg); } 65% { transform: translateX(4px) rotate(2deg); } 100% { transform: none; }
}

/* ── sahneler ── */
.sahne { position: relative; padding: 48px 16px 96px; }
.oluklu[data-yan="sol"] { padding-left: var(--oluk); }
.oluklu[data-yan="sag"] { padding-right: var(--oluk); }
.oluklu { position: relative; }
.oluklu > :not(.patika-noktasi):not(.durak-isareti):not(.cikmaz) { position: relative; z-index: 2; }

.patika-noktasi, .durak-isareti { position: absolute; top: 34px; transform: translate(-50%, -50%); }
[data-yan="sol"] > .patika-noktasi, [data-yan="sol"] > .durak-isareti { left: calc(var(--oluk) / 2); }
[data-yan="sag"] > .patika-noktasi, [data-yan="sag"] > .durak-isareti { left: calc(100% - var(--oluk) / 2); }
.patika-noktasi { width: 2px; height: 2px; }
.patika-noktasi.alt { top: auto; bottom: 30px; transform: translate(-50%, 50%); }

.durak-isareti {
  z-index: 2; width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--el); font-size: 28px; line-height: 1; color: var(--laci);
  background: var(--krem); border: 3px solid var(--laci);
  border-radius: 52% 48% 50% 46% / 48% 54% 46% 52%;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
  transition: background-color .4s;
}
.durak-isareti.ulasildi { background: var(--sari); }
/* henüz öğrenilmemiş durak: tuvalde boş düğüm */
.bos .durak-isareti, .bos .durak-isareti.ulasildi { background: var(--tuval); border: 3px dashed var(--acik-soluk); color: var(--krem); box-shadow: none; }
.bos .durak-isareti.ulasildi { border-color: var(--sari); color: var(--sari); }
.durak-isareti.rozetli::after {
  content: "★"; position: absolute; right: -14px; top: -12px; font-size: 22px; color: var(--sari);
}

h1, h2 { margin: 0; font-weight: 400; }
.el-baslik { font-family: var(--el); font-size: clamp(38px, 10vw, 66px); line-height: 1.02; margin: 0 0 18px; }
.durak-adi { font-family: var(--el); font-size: 21px; color: var(--vurgu); margin: 0 0 2px; transform: rotate(-2deg); transform-origin: left; }
.sahne p { max-width: 34em; margin: 0 0 16px; }
.iri { font-family: var(--el); font-size: clamp(27px, 7vw, 40px); line-height: 1.15; }
.iri strong { font-weight: 400; color: var(--vurgu); }
em { font-style: italic; }

.kucuk-not { font-family: var(--el); font-size: 19px; line-height: 1.3; color: var(--ikincil); }
.kucuk-not a { color: var(--ikincil); }
.kucuk-not a span, .ders-link span { white-space: nowrap; }

/* bant notu: kâğıda yapıştırılmış maskeleme bandı */
.bant-not {
  display: inline-block; font-family: var(--el); font-size: 20px; line-height: 1.3;
  padding: 10px 16px; margin: 8px 0 18px !important; transform: rotate(-1.2deg);
  background: var(--bant);
  clip-path: polygon(0 8%, 3% 0, 30% 5%, 62% 0, 97% 4%, 100% 0, 98.5% 50%, 100% 100%, 96% 94%, 55% 100%, 20% 95%, 2% 100%, 0 92%, 1.5% 50%);
}
.bant-not b { font-weight: 400; color: #8C2810; }   /* bant üstünde 4,93:1 (#EE5A3C burada AA altında kalıyor) */

.yakinda {
  font-family: var(--el); font-size: 22px; color: var(--vurgu);
  display: inline-block; border-bottom: 2px dashed var(--cizgi); margin-top: 6px !important;
}
.durust {
  font-family: var(--el); font-size: 21px; color: var(--laci);
  display: inline-block; transform: rotate(-2.5deg); transform-origin: left;
  padding: 6px 14px 5px; background: var(--krem); box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
}
del { text-decoration: none; position: relative; color: var(--ikincil); }
del::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px;
  background: var(--kirmizi); transform: rotate(-4deg); border-radius: 2px;
}
ins { text-decoration: none; font-family: var(--el); color: var(--vurgu); }

/* ── düğmeler ── */
.kagit-dugme {
  position: relative; display: inline-block; z-index: 0;
  font-family: var(--el); font-size: 28px; line-height: 1.1; color: var(--laci); text-decoration: none;
  padding: 12px 26px 12px 22px; transform: rotate(-1.5deg);
}
.kagit-dugme::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sari);
  clip-path: polygon(1% 10%, 40% 2%, 99% 0, 97% 52%, 100% 96%, 50% 100%, 3% 94%, 0 50%);
}
.kagit-dugme::after {
  content: ""; position: absolute; left: -10px; top: -8px; width: 44px; height: 16px;
  background: rgba(201, 150, 95, .7); transform: rotate(-24deg);
}
.kagit-dugme:hover { transform: rotate(0deg) translateY(-2px); }

.kart {
  font-family: var(--el); font-size: 22px; line-height: 1; color: var(--laci); cursor: pointer;
  background: var(--beyaz); border: 2.5px solid var(--laci); border-radius: 3px;
  padding: 12px 14px 10px; box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
  transform: rotate(var(--r, -1.5deg)); transition: transform .15s;
}
.kart:nth-child(2) { --r: 1.2deg; }
.kart:nth-child(3) { --r: -.6deg; }
.kart:hover { transform: rotate(0deg) translateY(-3px); }
.kart:active { transform: translateY(1px); }
.kart.kucuk { font-size: 19px; padding: 8px 12px 6px; }
.kartlar { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 6px 0 20px; }

.ince-link { font-family: var(--el); font-size: 20px; color: var(--ikincil); }
.ince-dugme {
  font: inherit; font-family: var(--el); font-size: 19px; color: inherit; cursor: pointer;
  background: none; border: 0; border-bottom: 2px dashed var(--cizgi); padding: 0;
}

/* ── açılış: çekmece ── */
.acilis { text-align: center; padding-top: 18px; padding-bottom: 40px; }
.acilis > .patika-noktasi { left: calc(100% - var(--oluk) / 2); top: 68%; }   /* çekmeceden çıkınca yazıların yanından sağ şeride geçer */
.acilis > .kunye, .acilis > .balon, .acilis > .acilis-alt, .acilis > .kaydir-ipucu { position: relative; z-index: 2; }
.kunye {
  display: inline-block; margin: 0 0 6px !important; font-family: var(--el); font-size: 18px; color: var(--ikincil);
  transform: rotate(-2deg);
}
.balon { font-family: var(--el); font-size: clamp(44px, 12vw, 84px); line-height: 1; }
.balon span { display: block; }
.balon b { font-weight: 400; color: var(--kirmizi); }

.cekmece { position: relative; width: min(84vw, 440px); margin: 22px auto 0; }
.cekmece-arka {
  position: relative; z-index: 2; display: block; width: 100%; height: auto; aspect-ratio: 320 / 84;
  transform-origin: 50% 100%; transform: scaleY(calc(.14 + .86 * var(--d)));
}
.cekmece-on {
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, .45));
  position: relative; z-index: 4; display: block; width: 100%; height: auto; margin-top: -3px;
  transform-origin: 50% 0; transform: translateY(calc(var(--d) * 12px)) scale(calc(1 + var(--d) * .035));
}
.etiket { font-family: var(--el); font-size: 19px; fill: var(--laci); }

.acilis-alt { margin: 28px 0 0; }
.acilis-alt p { margin-left: auto; margin-right: auto; }
.ana-cumle { font-size: 22px; line-height: 1.32; font-weight: 700; margin-top: 16px !important; }
.baslat { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 18px 0 14px !important; }
.acilis .baslat { justify-content: center; gap: 8px 20px; margin: 10px auto 8px !important; }
.kaldigin a { color: inherit; }

/* "yukarı kaydır" işareti: alışılmadık yön, ilk bakışta anlaşılmalı. JS yoksa sayfa normal okunur, işaret de yok. */
.kaydir-ipucu { display: none; }
html.js .kaydir-ipucu {
  display: block; flex: none; opacity: var(--ipucu, 1);
  font-family: var(--el); font-size: 23px; line-height: 1.15; color: var(--krem);
}
html.js .kaydir-ipucu p { margin: 2px auto 8px; }
html.js .kaydir-ipucu { margin-top: 12px; }
.ipucu-ok {
  display: block; width: 46px; height: 58px; margin: 0 auto; overflow: visible;
  fill: none; stroke: var(--sari); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  animation: ipucu-sek 1.25s ease-in-out infinite;
}
@keyframes ipucu-sek { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-9px); } 70% { transform: translateY(-3px); } }
.ipucu-ek { display: none; color: var(--sari); }
.kaydir-ipucu.uyar .ipucu-metin { display: none; }
.kaydir-ipucu.uyar .ipucu-ek { display: inline; }
.acilis.kaydi .kaydir-ipucu { visibility: hidden; }

/* ── Durak 0 ── */
.ders-link { margin: 6px 0 6px !important; }
.ders-link a { font-family: var(--el); font-size: 30px; line-height: 1.15; text-decoration-style: wavy; text-decoration-thickness: 1.5px; }
.ders-link span { display: inline-block; font-size: 20px; color: var(--vurgu); }
.ders-link span::after { content: " →"; }
.rozet-notu {
  display: inline-block; font-family: var(--el); font-size: 20px; padding: 6px 14px;
  border: 2.5px solid var(--laci); background: var(--sari); transform: rotate(1.5deg);
}

/* ── hata anı ── */
.tos { color: var(--kirmizi); display: inline-block; transform: rotate(-8deg); }
.cikmaz {
  position: absolute; top: 34px; left: calc(100% - var(--oluk) / 2); width: 54px; height: 44px; z-index: 1;
  transform: translate(-100%, -100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 44'%3E%3Cpath d='M52 42 L10 12' fill='none' stroke='%23F6F0DE' stroke-width='2.5' stroke-dasharray='3 8' stroke-linecap='round' opacity='.7'/%3E%3Cpath d='M3 4 L15 16 M15 4 L3 16' stroke='%23EE5A3C' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.bulmaca { margin: 6px 0 22px; }
.soru { font-weight: 700; }
.harita {
  display: grid; grid-template-columns: repeat(2, 64px); grid-template-rows: repeat(2, 64px);
  border: 2.5px solid var(--laci); width: max-content; margin: 4px 0 14px; transform: rotate(-1deg); background: var(--beyaz);
  box-shadow: 3px 5px 0 rgba(0, 0, 0, .45);
}
.hucre { position: relative; border: 1.5px dashed #c8bc9f; }
.hucre.duvar {
  background: repeating-linear-gradient(0deg, var(--karton) 0 14px, var(--laci) 14px 16px);
  border: 2px solid var(--laci);
}
.hucre.pil {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect x='3' y='4' width='48' height='22' rx='3' fill='%23FFCC00' stroke='%23202C3B' stroke-width='3'/%3E%3Crect x='51' y='10' width='6' height='10' fill='%23202C3B'/%3E%3Cpath d='M28 8 l-6 8 h7 l-4 8' fill='none' stroke='%23202C3B' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat center / 70%;
}
.hucre.ben i {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M4 5 L30 17 L4 29 Z' fill='%23EE5A3C' stroke='%23202C3B' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .45s ease-in-out;
}
.ben.yon-yukari i { transform: rotate(-90deg); }
.ben.yon-asagi i { transform: rotate(90deg); }
.ben.carp i { animation: carp .6s ease-out; }
.ben.vardi i { transform: translateY(-64px) rotate(-90deg); transition-delay: .5s; }
@keyframes carp { 0% { transform: none; } 45% { transform: translateX(22px); } 60% { transform: translateX(12px) rotate(10deg); } 100% { transform: none; } }
.cevap { font-family: var(--el); font-size: 22px; line-height: 1.3; min-height: 1.3em; }
.cevap b { font-weight: 400; color: var(--vurgu); }

/* ── Durak 1: Scratch parçaları (kâğıttan kesilmiş) ── */
.bloklar { display: block; margin: 4px 0 20px; }
.blok {
  position: relative; display: block; width: max-content; max-width: 100%;
  font-family: var(--el); font-size: 21px; line-height: 1.1;
  padding: 10px 16px 8px 18px; margin-top: -2.5px;
  background: var(--bant); border: 2.5px solid var(--laci); border-radius: 2px 4px 3px 2px;
}
.blok::before { /* üstteki çentik */
  content: ""; position: absolute; left: 16px; top: -2.5px; width: 22px; height: 7px;
  background: var(--bant); border: 2.5px solid var(--laci); border-top: 0; border-radius: 0 0 5px 5px;
}
.blok.olay + .blok::before { background: var(--sari); }
.blok.olay { background: var(--sari); border-radius: 22px 22px 3px 3px; padding-top: 14px; }
.blok.olay::before { display: none; }
.blok:nth-child(2) { margin-left: 4px; transform: rotate(.6deg); }
.blok:nth-child(3) { margin-left: 1px; transform: rotate(-.8deg); }

/* ── Durak 2: LED çizim ── */
.cizim { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-start; margin: 4px 0 20px; }
/* 5×5 çizim alanı tuvalin kendi noktaları: yolculuk.js --hx/--hy ile düğme ortalarını tam ızgaraya oturtur.
   Bu yüzden eğik değil ve aralık tam 50 px. Sönük hâl = tuval noktasının aynısı. */
.led-izgara {
  position: relative; display: grid; grid-template-columns: repeat(5, 50px); flex: none;
  margin: 26px 0; transform: translate(var(--hx, 0px), var(--hy, 0px));
}
.led-izgara::before {   /* çizim alanının el çizimi sınırı */
  content: ""; position: absolute; inset: 2px; pointer-events: none;
  border: 2px dashed rgba(246, 240, 222, .5); border-radius: 9px 12px 8px 11px;
}
.led-izgara button {
  width: 50px; height: 50px; padding: 0; border: 0; cursor: pointer; background: transparent;
  display: grid; place-items: center;
}
.led-izgara button::before { content: ""; width: 3.2px; height: 3.2px; border-radius: 50%; background: var(--nokta); }
.led-izgara button:hover::before { width: 8px; height: 8px; background: var(--sari); }
.led-izgara button[aria-pressed="true"]::before { width: 32px; height: 32px; border-radius: 3px; background: var(--kirmizi); }
.led-izgara button:focus-visible { outline: 2px dashed var(--sari); outline-offset: -3px; }
html:not(.js) .led-izgara { display: none; }
.cizim-yan { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.kod {
  flex-basis: 100%; margin: 6px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.35;
  color: var(--laci); background: var(--beyaz); border-left: 3px solid var(--karton); padding: 8px 12px; white-space: pre;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
}

/* ── kapanış ── */
.kapanis { text-align: center; padding-top: 48px; padding-bottom: 96px; }
.kapanis > :not(.patika-noktasi) { position: relative; z-index: 2; }
.kapanis::before {   /* tırmanışın sonunda gökyüzü açılır: çok hafif sıcak ışık */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 42% at 50% 24%, rgba(255, 204, 0, .09), transparent 72%);
}
.kapanis .el-baslik span { display: block; color: var(--sari); }
.hayal-sahne { position: relative; height: 400px; width: 100%; max-width: 980px; margin: 8px auto 6px; }
.hayal { position: absolute; fill: none; stroke: var(--krem); stroke-width: 2.4; stroke-dasharray: 6 6; stroke-linecap: round; opacity: .8; overflow: visible; }
.hayal circle { stroke-dasharray: 3 4; }
.hayal-pervane { width: 118px; left: 62%; top: 34px; margin-left: -50px; animation: uc 3.2s ease-in-out infinite alternate; }
.hayal-kanat { width: 104px; left: 0; top: 176px; animation: uc 3.8s ease-in-out .4s infinite alternate; }
.hayal-roket { width: 54px; left: 12%; top: 12px; transform: rotate(14deg); animation: uc-roket 3.4s ease-in-out .2s infinite alternate; }
@keyframes uc { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes uc-roket { from { transform: rotate(14deg) translateY(0); } to { transform: rotate(14deg) translateY(-16px); } }
.patika-noktasi.son { left: 50%; top: auto; bottom: 8px; }
/* patika hayal bölümüne alttan girer: k1 → k2 → son (Dıtdıt gökyüzünün dibinde el sallar) */
.kapanis > .patika-noktasi.k1 { left: calc(100% - var(--oluk) / 2); top: auto; bottom: 30px; transform: translate(-50%, 50%); }
.hayal-sahne > .patika-noktasi.k2 { left: 92%; top: calc(100% + 34px); }

.hayal-yol {
  position: relative; max-width: 640px; margin: 0 auto 34px; text-align: left; padding: 14px 16px 8px;
  background: var(--krem); box-shadow: 3px 6px 0 rgba(0, 0, 0, .45); transform: rotate(.4deg);
}
.hayal-yol::before, .veli::before, .yaprak::before {   /* kâğıdı tuvale tutan bant */
  content: ""; position: absolute; left: 50%; top: -11px; width: 86px; height: 22px; margin-left: -43px;
  background: rgba(201, 150, 95, .88); transform: rotate(-3deg);
}
.hayal-yol [role="row"] { display: grid; grid-template-columns: 38% 1fr; gap: 14px; padding: 10px 0; border-bottom: 1.5px dashed #bfae88; }
.hayal-yol [role="row"]:last-child { border-bottom: 0; }
.hy-baslik { font-family: var(--el); font-size: 22px; }
.hy-baslik span:first-child { color: var(--ikincil); }
.hy-baslik span:last-child { color: #B23A1E; }
.hy-hayal { font-family: var(--el); font-size: 22px; line-height: 1.15; color: var(--ikincil); }
.hayal-yol [role="cell"]:last-child { font-size: 16.5px; line-height: 1.4; }
.kapanis-cumle { max-width: 20em; margin: 0 auto 12px !important; }
.kapanis .baslat { justify-content: center; margin: 0 auto !important; }

/* ── alt: veli köşesi + nasıl yapılıyor ── */
.alt { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
.alt section { margin-bottom: 44px; }
.alt .el-baslik { font-size: clamp(34px, 8vw, 48px); }
.veli {
  position: relative; padding: 24px 18px 16px; background: var(--beyaz); box-shadow: 3px 6px 0 rgba(0, 0, 0, .45);
  background-image: repeating-linear-gradient(transparent 0 31px, #e6dcc3 31px 32px);
  border-left: 3px solid rgba(238, 90, 60, .55); transform: rotate(-.4deg);
}
.veli ul { margin: 0 0 12px; padding-left: 20px; }
.veli li { margin-bottom: 10px; }
.nasil p { margin: 0 0 14px; }
.bekliyor { font-family: var(--el); font-size: 24px; }
.bekliyor span { color: var(--ikincil); font-size: 20px; }
.son-not { font-family: var(--el); font-size: 18px; color: var(--ikincil); border-top: 2px dashed rgba(246, 240, 222, .35); padding-top: 14px; }

/* ── AŞAĞIDAN YUKARI: yalnızca görsel ters çevirme ──
   DOM ve okuma sırası hikâye sırası kalır (çekmece → duraklar → hayal → veli). Görsel sıra burada tersine döner;
   ekran okuyucu ve klavye DOM'u izler. JS yoksa bu blok çalışmaz: sayfa normal, yukarıdan aşağı okunur.
   Pencere kaydırıcısı (body değil) kaldığı için scrollY tepede 0, en altta en büyük: yolculuk.js "yukarı"yı alttan ölçer. */
@media screen {
  html.js body { display: flex; flex-direction: column-reverse; }
  html.js .yolculuk, html.js footer.alt { display: flex; flex-direction: column-reverse; width: 100%; flex: none; }
  html.js .son-not { border-top: 0; padding-top: 0; border-bottom: 2px dashed rgba(246, 240, 222, .35); padding-bottom: 14px; }
  html.js footer.alt { padding-top: 16px; padding-bottom: 8px; }

  /* açılış: tam bir ekran; çekmece en altta, ekrana sığar. dvh: iOS adres çubuğu hesaba katılır */
  html.js .acilis {
    display: flex; flex-direction: column; align-items: center; flex: none;
    min-height: 100vh; min-height: 100dvh;
    scroll-margin-top: calc(-6px - var(--ust-y));   /* #cekmece: üst menü payı olmadan tam en alta */
    padding: calc(var(--ust-y) + 8px) 16px calc(16px + env(safe-area-inset-bottom));
  }
  html.js .acilis + .sahne { padding-bottom: 44px; }
  html.js .acilis-alt { order: 2; margin: 0; width: 100%; }
  html.js .acilis .cekmece { order: 3; margin-top: auto; flex: none; width: min(84vw, 440px, 44vh); width: min(84vw, 440px, 44dvh); }
  html.js .cekmece-on { margin-bottom: 8px; }

  /* hayal: alttan gelene önce gerçek adımlar, sonra Dıtdıt'ın el salladığı cümle, en üstte gökyüzü */
  html.js .kapanis { display: flex; flex-direction: column; align-items: center; flex: none; }
  html.js .kapanis .hayal-yol { order: 5; width: 100%; margin: 40px auto 0; }
  html.js .kapanis .kapanis-cumle { margin-top: 18px !important; max-width: 14em; }
  html.js .kapanis .baslat { margin-top: 20px !important; }
}
/* kısa ekran: Safari'de 667 px'lik telefonun görünen yüksekliği yaklaşık 553 px */
@media screen and (max-height: 740px) {
  html.js .balon { font-size: clamp(33px, 10.4vw, 44px); }
  html.js .balon span { display: inline; }
  html.js .ana-cumle { font-size: 20px; }
  html.js .acilis .kunye { font-size: 16px; margin-bottom: 2px !important; }
  html.js .acilis .kagit-dugme { font-size: 24px; padding: 8px 22px 8px 18px; }
  html.js .acilis .ince-link { font-size: 18px; }
  html.js .acilis .kucuk-not { font-size: 17px; margin-bottom: 4px; }
  html.js .acilis .ana-cumle { margin: 6px auto 4px !important; }
  html.js .kaydir-ipucu { margin-top: 6px; }
  html.js .ipucu-ok { width: 38px; height: 48px; }
}
@media screen and (max-height: 620px) {
  html.js .acilis .kunye, html.js .acilis .sabit-not { display: none; }
  html.js .kaydir-ipucu { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 21px; }
  html.js .kaydir-ipucu p { margin: 0; }
  html.js .kaydir-ipucu { margin-top: 8px; }
  html.js .ipucu-ok { width: 26px; height: 34px; margin: 0; }
  html.js .acilis .cekmece { width: min(84vw, 440px, 40vh); width: min(84vw, 440px, 40dvh); }
}

/* ── yaprak: tuvale bantlanmış kâğıt (ders sayfasındaki bölümler) ── */
.yaprak {
  position: relative; margin: 34px 0 0; padding: 22px 18px 20px; background: var(--krem);
  box-shadow: 3px 6px 0 rgba(0, 0, 0, .45); transform: rotate(-.25deg);
}
.yaprak:nth-of-type(even) { transform: rotate(.25deg); }

/* ── kaydırınca beliren (tek hareket: hafifçe yükselir) ── */
/* gizleyen kural :not(.gorundu) taşımalı: yoksa özgüllüğü aşağıdaki gösteren kuraldan yüksek kalır ve satırlar hiç açılmaz */
html.js:not(.az-hareket):not(.onizleme) .belir { transition: opacity .6s ease-out, transform .6s ease-out; }
html.js:not(.az-hareket):not(.onizleme) .belir:not(.gorundu) { opacity: 0; transform: translateY(16px); }
html.js .belir.gorundu { opacity: 1; transform: none; }
/* gökyüzü: Dıtdıt yaklaşınca hayaller birer birer belirir (yalnızca saydamlık; konum ölçüsü bozulmasın) */
html.js:not(.az-hareket):not(.onizleme) .gok .hayal { transition: opacity 1.1s ease-out; }
html.js:not(.az-hareket):not(.onizleme) .gok:not(.gorundu) .hayal { opacity: 0; }
html.js .gok.gorundu .hayal-kanat { transition-delay: .35s; }
html.js .gok.gorundu .hayal-pervane { transition-delay: .7s; }
html.js:not(.az-hareket):not(.onizleme) .bloklar.belir .blok { transition: transform .45s cubic-bezier(.3,1.6,.6,1), opacity .3s; }
html.js:not(.az-hareket):not(.onizleme) .bloklar.belir:not(.gorundu) .blok { transform: translateY(-18px); opacity: 0; }
html.js .bloklar.gorundu .blok { opacity: 1; transform: none; }
html.js .bloklar.gorundu .blok:nth-child(2) { transition-delay: .15s; transform: rotate(.6deg); }
html.js .bloklar.gorundu .blok:nth-child(3) { transition-delay: .3s; transform: rotate(-.8deg); }

/* ── masaüstü ── */
@media (min-width: 900px) {
  :root { --oluk: 360px; --yolcu-g: 196px; }
  body { font-size: 20px; }
  :root { --ust-y: 62px; }
  .ust { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 8px; padding-left: max(40px, calc((100% - 1080px) / 2)); padding-right: max(40px, calc((100% - 1080px) / 2)); gap: 2px 16px; }
  .logo { font-size: 32px; }
  .logo span { font-size: 25px; }
  .ust nav { gap: 18px; }
  .ust nav a { font-size: 22px; }
  .sahne { padding: 88px 48px 140px; }
  .oluklu[data-yan="sol"] { padding-left: var(--oluk); }
  .oluklu[data-yan="sag"] { padding-right: var(--oluk); }
  .patika-noktasi, .durak-isareti { top: 60px; }
  .durak-isareti { width: 62px; height: 62px; font-size: 36px; }
  .cekmece { width: 480px; }
  .acilis { padding-top: 28px; }
  .ana-cumle { font-size: 26px; }
  html.js .kaydir-ipucu { font-size: 27px; }
  .ipucu-ok { width: 48px; height: 60px; }
  .cizim-yan { margin-top: 26px; }
  .kart { font-size: 25px; }
  .cikmaz { top: 60px; width: 80px; height: 64px; }
  .hayal-sahne { height: 580px; }
  .hayal-pervane { width: 170px; left: 70%; top: 70px; margin-left: -64px; }
  .hayal-kanat { width: 160px; left: 8%; top: 300px; }
  .hayal-roket { width: 84px; left: 22%; top: 30px; }
  .hayal-yol [role="cell"]:last-child { font-size: 18px; }
  .alt { padding-bottom: 80px; }
}

/* yatay telefon: "kaldığın yer" notu Dıtdıt'ın başının üstüne binmesin */
@media screen and (max-height: 460px) { html.js .acilis .kaldigin { display: none !important; } }

/* telefonda hayal bölümünün altı: patika sağ şeritten çıkar, yazı üstüne binmesin */
@media screen and (max-width: 899px) {
  html.js .kapanis { padding-left: 16px; padding-right: 16px; }
  html.js .kapanis .hayal-yol, html.js .kapanis .kapanis-cumle, html.js .kapanis .baslat {
    align-self: flex-start; width: calc(100% - var(--oluk) + 16px); margin-left: 0 !important; margin-right: 0 !important;
    text-align: left; justify-content: flex-start;
  }
  html.js .hayal-yol [role="row"] { grid-template-columns: 1fr; gap: 2px; }
}

/* ── hareketi azalt: içerik aynı, hareket yok ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.az-hareket .hayal, .az-hareket .yolcu-ic, .az-hareket .bacak, .az-hareket .kol-selam { animation: none !important; }
