/* =========================================================
   Soğuk Okuma: emniyet arşivi
   ========================================================= */
:root {
  --type: "Courier Prime", "Courier New", monospace;
  --hand: "Kalam", "Segoe Print", cursive;
  --ui: "Archivo", "Segoe UI", system-ui, sans-serif;

  --paper: #f3efe4;
  --paper-2: #ebe5d4;
  --manila: #d9c28c;
  --manila-dk: #bfa46c;
  --ink: #23201c;
  --ink-soft: #5d574d;
  --stamp: #a3271f;
  --brass: #c89a45;
  --desk: #2a1d14;
  --line: rgba(35, 32, 28, .14);
  --noise: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: #07080a; color: #e9e4d6;
  font-family: var(--ui); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #e8c36f; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3B sahne ---------- */
#sahne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, .65));
}

/* Yükleme */
.loading {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: #050506;
  transition: opacity 1.1s ease, visibility 1.1s;
}
.loading.bitti { opacity: 0; visibility: hidden; }
.load-in { width: min(320px, 80vw); text-align: center; }
.load-name { font-family: var(--type); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: #d9d2bf; }
.load-track { height: 2px; margin: 18px 0 12px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.load-track i { display: block; height: 100%; background: #d9d2bf; transform-origin: left; transform: scaleX(0); transition: transform .4s ease; }
.load-text { font-family: var(--type); font-size: 13px; color: #8a857a; }

/* HUD */
.hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-name {
  position: absolute; left: 22px; top: 18px; pointer-events: none;
  font-family: var(--type); font-weight: 700; font-size: 15px; letter-spacing: .05em;
  color: rgba(233, 228, 214, .7);
}
.hud-btn {
  position: absolute; padding: 8px 14px; cursor: pointer;
  border: 1px solid rgba(233, 228, 214, .28); border-radius: 3px;
  background: rgba(10, 10, 10, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--type); font-size: 13px; color: #e9e4d6;
}
.hud-btn:hover { background: rgba(40, 38, 34, .6); }
.sound { right: 18px; top: 14px; }
.skip { right: 18px; bottom: 22px; }
.drawer-close { left: 18px; bottom: 22px; font-size: 14px; padding: 10px 16px; }
.enter {
  position: absolute; left: 50%; bottom: 13vh; translate: -50% 0;
  display: grid; justify-items: center; gap: 2px;
  padding: 14px 30px 12px; cursor: pointer;
  border: 1px solid rgba(233, 228, 214, .5); border-radius: 2px;
  background: rgba(8, 8, 8, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #f1ebdb;
  transition: opacity .5s, transform .5s;
}
.enter span { font-family: var(--type); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.enter small { font-size: 12.5px; color: #a8a294; }
.enter:hover { background: rgba(30, 28, 24, .7); }
.enter.gizli { opacity: 0; transform: translateY(10px); pointer-events: none; }
.drawer-hint {
  position: absolute; left: 50%; top: 22px; translate: -50% 0; pointer-events: none;
  padding: 7px 14px; border-radius: 2px;
  background: rgba(8, 8, 8, .5);
  font-family: var(--type); font-size: 14px; color: #e9e4d6;
  animation: belir .8s ease both;
}
@keyframes belir { from { opacity: 0; transform: translateY(-6px); } }
.tag-tip {
  position: fixed; left: 0; top: 0; pointer-events: none;
  display: grid; gap: 1px; padding: 9px 12px; max-width: 300px; max-height: calc(100vh - 16px); overflow: hidden;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  font-family: var(--type); font-size: 13px;
}
.tag-tip b { font-size: 12px; color: var(--stamp); }
.tag-tip span { font-weight: 700; font-size: 15px; }
.tag-tip em { font-style: normal; color: var(--ink-soft); font-size: 12px; }

/* Giriş başlık kartı */
.baslik-kart {
  position: absolute; left: 50%; top: 8vh; translate: -50% 0; pointer-events: none;
  width: min(600px, calc(100% - 32px)); padding: 28px 30px 30px; text-align: center; color: #efe8d6;
  background: radial-gradient(ellipse 60% 58% at 50% 50%, rgba(5, 6, 6, .78), rgba(5, 6, 6, .45) 60%, transparent 78%);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .85);
  transition: opacity 1s ease, transform 1.2s ease;
  animation: belir 1.6s ease .3s both;
}
.baslik-kart h1 { font-family: var(--type); font-weight: 700; font-size: clamp(34px, 6vw, 58px); letter-spacing: .04em; line-height: 1.05; }
.bk-ust { font-family: var(--type); font-size: 13px; color: #d3c9b0; margin-bottom: 6px; }
.bk-alt { margin-top: 12px; font-size: 15px; line-height: 1.55; color: #d6cfbd; }
.baslik-kart.gizli { opacity: 0; transform: translateY(-14px); }
.hud:has(.baslik-kart:not(.gizli)) .hud-name { opacity: 0; }
.hud-name { transition: opacity .8s; }
/* hafif film grenli görüntü */
.vignette::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .35; mix-blend-mode: overlay; }

/* =========================================================
   DAVA EKRANI: masa
   ========================================================= */
.case {
  position: fixed; inset: 0; z-index: 20;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255, 196, 120, .16), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 40%, transparent 50%, rgba(0, 0, 0, .55)),
    var(--noise),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 9px, rgba(255, 220, 170, .025) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, #3a281a, #24180f);
}

.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(10, 7, 5, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #efe6d2;
}
.bar-back, .bar-report, .bar-ipucu {
  justify-self: start; cursor: pointer;
  padding: 8px 14px; border-radius: 2px;
  font-family: var(--type); font-weight: 700; font-size: 14px;
}
.bar-back { border: 1px solid rgba(239, 230, 210, .3); background: transparent; }
.bar-back:hover { background: rgba(255, 255, 255, .06); }
.bar-title { text-align: center; font-family: var(--type); }
.bar-title small { display: block; font-size: 12px; color: #b9ad94; }
.bar-title h1 { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.bar-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.itibar { display: flex; align-items: center; gap: 6px; font-family: var(--type); font-size: 13px; color: #cbbfa6; }
.itibar i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #cbbfa6; }
.itibar i.dolu { background: #e3c27a; border-color: #e3c27a; }
.itibar.dustu { animation: titre .5s; }
@keyframes titre { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.bar-report { border: 0; background: var(--stamp); color: #fff4ea; box-shadow: 0 2px 0 #6e140f; }
.bar-report:hover { background: #b8302a; }

.cols {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 360px;
  gap: 22px; padding: 20px 20px 0; min-height: 0;
}

/* Dosya içeriği: manila dosya sırtı */
.index {
  min-height: 0; overflow-y: auto; align-self: start; max-height: 100%;
  padding: 18px 14px 20px;
  background: var(--noise), linear-gradient(180deg, var(--manila), var(--manila-dk));
  border-radius: 3px 10px 3px 3px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .7);
}
.index h2 { font-family: var(--type); font-size: 15px; margin-bottom: 8px; }
.index h3 { margin: 14px 0 4px; font-family: var(--type); font-size: 12.5px; font-weight: 700; color: #6b5532; }
.doc-btn {
  display: flex; align-items: baseline; gap: 6px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 2px; background: none; cursor: pointer;
  text-align: left; font-family: var(--type); font-size: 13.5px; line-height: 1.3; color: var(--ink);
}
.doc-btn:hover { background: rgba(255, 255, 255, .25); }
.doc-btn.aktif { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.doc-btn .yeni {
  margin-left: auto; flex: none; padding: 0 5px;
  border: 1.5px solid var(--stamp); color: var(--stamp);
  font-size: 10.5px; font-weight: 700; transform: rotate(-4deg);
}
.doc-btn .kilit { margin-left: auto; flex: none; padding: 0 5px; border: 1px solid rgba(107, 85, 50, .5); border-radius: 2px; font-size: 10.5px; line-height: 1.5; color: #6b5532; }
.doc-btn .ad { flex: 1; }

/* Görüntüleyici */
.viewer { min-height: 0; overflow-y: auto; padding: 0 6px 120px; }
.view-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 760px; margin: 0 auto 14px; padding: 8px 0;
  color: #efe6d2;
}
.view-bar p { font-family: var(--type); font-size: 13px; color: #c9bda2; }
.sun-btn {
  flex: none; cursor: pointer;
  padding: 7px 12px; border: 1px dashed rgba(239, 230, 210, .55); border-radius: 2px; background: rgba(0, 0, 0, .25);
  font-family: var(--type); font-weight: 700; font-size: 13px; color: #efe6d2;
}
.sun-btn:hover { background: rgba(255, 255, 255, .08); }
.sun-btn.secili { border-style: solid; border-color: #e3c27a; color: #e3c27a; }

.paper {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: 44px clamp(22px, 5vw, 60px) 52px;
  background: var(--noise), var(--paper);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 24px 40px -18px rgba(0, 0, 0, .8);
  font-family: var(--type); font-size: 16px; line-height: 1.7;
  animation: kagit .45s cubic-bezier(.2, .8, .3, 1);
}
@keyframes kagit { from { opacity: 0; transform: translateY(10px) rotate(-.4deg); } }
.paper::before { /* zımba deliği */
  content: ""; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -60px;
  border-radius: 50%; background: #2a1d14; box-shadow: 0 120px 0 #2a1d14;
}
.p-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; }
.p-head .kurum { font-size: 12.5px; color: var(--ink-soft); }
.p-head h2 { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.alanlar { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 20px; font-size: 14.5px; }
.alanlar dt { color: var(--ink-soft); }
.alanlar dd { margin: 0; }
.paper .metin p + p { margin-top: .9em; }
.paper .aciklama { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.kayit { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kayit th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 4px 8px 4px 0; }
.kayit td { border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; vertical-align: top; }

/* el yazısı sayfa */
.paper.el {
  font-family: var(--hand); font-size: 21px; line-height: 34px; color: #2b2c4a;
  background:
    var(--noise),
    linear-gradient(90deg, transparent 52px, rgba(196, 80, 70, .45) 52px 54px, transparent 54px),
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(110, 140, 180, .35) 33px 34px) 0 30px / 100% 100% no-repeat,
    #f6f3ea;
  padding-left: 72px;
}
.paper.el .satir { margin: 0; }
.paper.el .titrek { display: inline-block; transform: rotate(2.2deg) skewX(-6deg); letter-spacing: .06em; opacity: .85; }
.paper.daktilo { font-family: var(--type); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--noise), var(--paper); padding-left: clamp(22px, 5vw, 60px); }

/* fiş */
.paper.fis {
  max-width: 340px; padding: 28px 26px 34px; text-align: center;
  font-size: 14px; line-height: 1.7;
  background: var(--noise), #f7f6f1;
  clip-path: polygon(0 0, 100% 0, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 98%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 98%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 98%, 5% 100%, 0 98%);
}
.paper.fis::before { display: none; }
.paper.fis .ilk { font-weight: 700; font-size: 17px; }

/* sorgu tutanağı */
.sorgu .satir { margin: 0 0 10px; }
.sorgu .s { color: #3b3630; }
.sorgu .s::before { content: "Kom. Bal: "; font-weight: 700; color: var(--ink); }
.sorgu .c { position: relative; }
.sorgu .c .kim { font-weight: 700; }
.sorgu .c .cumle { border-radius: 2px; transition: background-color .15s; }
.sorgu .c:hover .cumle { background: rgba(227, 194, 122, .28); }
.sorgu .c.itiraz .cumle { background: rgba(163, 39, 31, .14); box-shadow: inset 0 -2px 0 var(--stamp); }
.itiraz-btn {
  margin-left: 6px; padding: 0 6px; cursor: pointer;
  border: 1px solid var(--stamp); border-radius: 2px; background: transparent;
  font-family: var(--type); font-size: 11.5px; font-weight: 700; color: var(--stamp);
  opacity: .45; transition: opacity .15s;
  vertical-align: 2px;
}
@media (hover: none) { .itiraz-btn { opacity: .8; } }
.sorgu .c:hover .itiraz-btn, .itiraz-btn:focus-visible, .sorgu .c.itiraz .itiraz-btn { opacity: 1; }
.sorgu .g { margin: -2px 0 12px 22px; font-style: italic; color: #6a6151; font-size: 14.5px; }
.sorgu .g::before { content: "[Gözlem: "; }
.sorgu .g::after { content: "]"; }

/* Kasa */
.kasa-wrap { max-width: 520px; margin: 0 auto; text-align: center; color: #efe6d2; }
.kasa {
  position: relative; margin: 10px auto 18px; width: min(420px, 100%); aspect-ratio: 1 / .92;
  border-radius: 10px;
  background:
    var(--noise),
    radial-gradient(ellipse at 30% 20%, #5b625f, #2b302e 70%);
  box-shadow: inset 0 0 0 10px #3a403d, inset 0 0 0 12px #1c1f1e, 0 30px 50px -20px rgba(0, 0, 0, .8);
  display: grid; place-items: center;
  transition: transform .8s cubic-bezier(.6, 0, .2, 1);
}
.kasa.acildi { transform: perspective(900px) rotateY(-28deg); transform-origin: left center; }
.carklar { display: flex; gap: 10px; padding: 16px 18px; border-radius: 6px; background: #151716; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8); }
.cark { display: grid; justify-items: center; gap: 4px; }
.cark button {
  width: 46px; height: 26px; cursor: pointer; border: 0; border-radius: 3px;
  background: linear-gradient(#5b625f, #3a403d); color: #e9e4d6; font-size: 14px;
}
.cark button:hover { background: linear-gradient(#6c7470, #4a504d); }
.cark output {
  display: grid; place-items: center; width: 46px; height: 58px; border-radius: 3px;
  background: linear-gradient(#efe9d8, #c9c1aa 50%, #efe9d8);
  font-family: var(--type); font-weight: 700; font-size: 32px; color: #1c1c1c;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .5);
}
.kasa-kol {
  margin-top: 18px; width: 84px; height: 84px; border-radius: 50%; cursor: pointer; border: 0;
  background: radial-gradient(circle at 40% 35%, #e4c27a, #9a7330 60%, #5e4418);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6), inset 0 -4px 8px rgba(0, 0, 0, .35);
  font-family: var(--type); font-weight: 700; font-size: 14px; color: #2a1d0a;
}
.kasa-kol:active { transform: rotate(40deg); }
.kasa.yanlis .carklar { animation: titre .45s; }
.kasa-not { font-family: var(--type); font-size: 14px; color: #cfc3a8; }
.kasa-not.hata { color: #ff9c8f; }

/* Defter: deri kaplı not defteri */
.notebook {
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0;
  margin-bottom: 18px;
  border-radius: 6px 10px 10px 6px;
  background: linear-gradient(90deg, #2c1d14, #3e2a1c 8%, #34241a);
  padding: 10px 10px 10px 14px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8), inset 3px 0 0 #1c120c;
}
.tabs { display: flex; gap: 4px; padding-left: 6px; }
.tab {
  padding: 7px 12px 6px; border: 0; border-radius: 4px 4px 0 0; cursor: pointer;
  background: #cbbd9b; color: var(--ink);
  font-family: var(--type); font-weight: 700; font-size: 13px;
}
.tab.aktif { background: #f4efe2; }
.tab .say { margin-left: 4px; color: var(--stamp); }
.nb-page {
  min-height: 0; overflow-y: auto;
  padding: 18px 18px 24px;
  border-radius: 0 4px 4px 4px;
  background: var(--noise), repeating-linear-gradient(to bottom, transparent 0 27px, rgba(110, 140, 180, .22) 27px 28px), #f4efe2;
  font-size: 14.5px;
}
.nb-page h3 { font-family: var(--type); font-size: 15px; margin-bottom: 6px; }
.nb-page h4 { font-family: var(--type); font-size: 13px; margin: 18px 0 6px; }
.nb-page .bos { color: var(--ink-soft); font-size: 14px; }
.kirp { position: relative; margin: 0 0 10px; padding: 8px 28px 8px 10px; background: #fffbe9; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); font-family: var(--type); font-size: 13.5px; }
.kirp small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11.5px; }
.kirp button { position: absolute; right: 4px; top: 4px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--ink-soft); }
.not-alani {
  width: 100%; min-height: 160px; resize: vertical;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .5); padding: 8px 10px;
  font-family: var(--hand); font-size: 18px; line-height: 28px; color: #2b2c4a;
}

.slot {
  margin: 8px 0; padding: 10px 12px; border: 1.5px dashed rgba(35, 32, 28, .35); border-radius: 3px;
  font-family: var(--type); font-size: 13.5px; background: rgba(255, 255, 255, .45);
}
.slot b { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 2px; }
.slot.dolu { border-style: solid; border-color: var(--ink); background: #fffbe9; }
.slot .bos { font-size: 13px; }
.bildir {
  width: 100%; margin-top: 6px; padding: 11px; cursor: pointer;
  border: 0; border-radius: 2px; background: var(--ink); color: var(--paper);
  font-family: var(--type); font-weight: 700; font-size: 14px;
}
.bildir:disabled { opacity: .4; cursor: not-allowed; }
.cevap { margin-top: 12px; padding: 10px 12px; font-family: var(--type); font-size: 13.5px; border-left: 3px solid var(--ink); background: rgba(255, 255, 255, .5); }
.cevap.iyi { border-color: #3d6b35; }
.cevap.kotu { border-color: var(--stamp); }
.bulunan { margin: 0; padding: 0; list-style: none; }
.bulunan li { margin-bottom: 8px; font-family: var(--type); font-size: 13px; padding-left: 14px; position: relative; }
.bulunan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; background: #3d6b35; }

.supheli { padding: 10px 0 14px; border-bottom: 1px dashed var(--line); }
.supheli h4 { margin: 0; font-size: 15px; }
.supheli p { font-size: 13px; color: var(--ink-soft); }
.isaret { display: flex; gap: 6px; margin: 8px 0; }
.isaret button {
  padding: 3px 9px; cursor: pointer; border: 1.5px solid rgba(35, 32, 28, .4); border-radius: 2px; background: transparent;
  font-family: var(--type); font-size: 12px; font-weight: 700;
}
.isaret button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.supheli textarea { width: 100%; min-height: 56px; resize: vertical; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); padding: 6px 8px; font-family: var(--hand); font-size: 16px; color: #2b2c4a; }

.sel-pop {
  position: fixed; z-index: 80; padding: 6px 10px; cursor: pointer;
  border: 0; border-radius: 2px; background: var(--ink); color: var(--paper);
  font-family: var(--type); font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

/* Modal: savcılık ve brifing */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 16px;
  background: rgba(5, 4, 3, .7);
}
.modal-card {
  width: min(640px, 100%); max-height: 90vh; overflow-y: auto;
  padding: 34px clamp(20px, 5vw, 46px) 30px;
  background: var(--noise), var(--paper); color: var(--ink);
  font-family: var(--type);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7);
  animation: kagit .5s cubic-bezier(.2, .8, .3, 1);
}
.modal-card h2 { font-size: 22px; margin-bottom: 4px; }
.modal-card .ust { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.modal-card p { margin-bottom: 12px; line-height: 1.7; }
.modal-card fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.modal-card legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.secenek { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; margin-bottom: 4px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1.45; }
.secenek:hover { background: rgba(255, 255, 255, .5); }
.secenek input { margin-top: 3px; accent-color: var(--ink); }
.secenek:has(input:checked) { border-color: var(--ink); background: #fffbe9; }
.kanit-say { font-size: 13px; color: var(--ink-soft); }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.m-btn { padding: 10px 18px; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; font-family: var(--type); font-weight: 700; font-size: 14px; }
.m-btn.ana { background: var(--ink); color: var(--paper); }
.m-btn.kirmizi { background: var(--stamp); border-color: var(--stamp); color: #fff4ea; }
.muhur {
  display: inline-block; margin: 6px 0 14px; padding: 4px 14px;
  border: 3px double var(--stamp); color: var(--stamp);
  font-weight: 700; font-size: 20px; letter-spacing: .08em; transform: rotate(-3deg);
}
.red { color: var(--stamp); font-weight: 700; }

/* Büyüteç geçişi */
.fly { position: fixed; left: 0; top: 0; width: 120px; height: 270px; margin: -60px 0 0 -60px; transform-origin: 60px 60px; pointer-events: none; will-change: transform; }
.fly-view { z-index: 18; }
.fly-frame { z-index: 50; }
/* drop-shadow filtresi her ölçek değişiminde yeniden rasterlanıp 100-180 ms takılma yapıyordu (G2); gölge kaldırıldı */
.fly-frame svg { display: block; width: 100%; height: 100%; }
.lens-view { position: absolute; left: 11px; top: 11px; width: 98px; height: 98px; border-radius: 50%; overflow: hidden; background: #111; }
.lens-content { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lens-content img { display: block; }

.yedek-giris {
  position: fixed; left: 50%; bottom: 30px; translate: -50% 0; z-index: 40;
  padding: 10px 18px; cursor: pointer; border: 1px solid #e9e4d6; background: #111; color: #e9e4d6; font-family: var(--type);
}

/* Sorgu odası */
.sorgu-btn {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  margin-top: 8px; padding: 8px 10px; cursor: pointer;
  border: 0; border-radius: 2px; background: var(--ink); color: var(--paper);
  font-family: var(--type); font-weight: 700; font-size: 13px;
}
.sorgu-btn:hover { background: #3a342c; }
.sorgu-btn span { font-weight: 400; opacity: .7; }
.sorgu-rol { margin: -2px 0 14px; font-size: 13px; color: var(--ink-soft); }
.paper.akis {
  max-height: 46vh; overflow-y: auto; margin: 0 0 14px; padding: 22px 26px;
  box-shadow: inset 0 0 0 1px var(--line); animation: none;
  font-size: 15px;
}
.paper.akis::before { display: none; }
.akis .satir.s::before { content: "Kom.: "; }
.akis .belge-koy { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--stamp); }
.akis .g-ic { display: block; margin: 4px 0 2px 22px; font-style: italic; font-size: 14px; color: #6a6151; }
.bekle i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--ink-soft); animation: nokta 1.1s infinite; }
.bekle i:nth-child(2) { animation-delay: .18s; }
.bekle i:nth-child(3) { animation-delay: .36s; }
@keyframes nokta { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.sorgu-form { display: grid; gap: 8px; }
.sorgu-ana { min-width: 0; }
/* Örnek sorular: ayrı bir fiş kartı */
.ornek-kutu {
  max-height: 62vh; overflow-y: auto;
  padding: 12px 14px 14px;
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(110, 140, 180, .25) 25px 26px), #fbf8ef;
  border: 1px solid rgba(35, 32, 28, .2);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
}
.ornek-kutu summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style-position: inside; }
.ornek-not { margin: 6px 0 8px !important; font-size: 12px; line-height: 1.45 !important; color: var(--ink-soft); }
.ornek-grup h3 { margin: 10px 0 3px; font-size: 12px; font-weight: 700; color: var(--stamp); }
.ornek {
  display: block; width: 100%; padding: 4px 6px; cursor: pointer;
  border: 0; border-radius: 2px; background: none; text-align: left;
  font-family: var(--type); font-size: 13px; line-height: 1.35; color: var(--ink);
}
.ornek:hover, .ornek:focus-visible { background: rgba(227, 194, 122, .35); }
.kanit-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.kanit-sec select { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid rgba(35, 32, 28, .3); background: #fffbe9; font-family: var(--type); font-size: 13px; }
#soru { width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid rgba(35, 32, 28, .35); background: #fffbe9; font-family: var(--type); font-size: 15px; color: var(--ink); }
.sorgu-gonder { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sorgu-durum { font-size: 13px; color: var(--stamp); }
.m-btn:disabled { opacity: .45; cursor: wait; }
.sorgu-yok { padding: 14px 16px; border: 1.5px dashed rgba(35, 32, 28, .35); font-size: 14px; }
.sorgu-yok p { margin-bottom: 8px; }
.sorgu-yok pre { margin: 0 0 10px; padding: 10px 12px; overflow-x: auto; background: var(--ink); color: var(--paper); font-family: var(--type); font-size: 13px; }

/* Sorgu odası: üç bölgeli, tam yükseklik */
.modal-card.genis { width: min(1240px, 100%); }
.modal-card.sorgu-oda {
  height: 92vh; max-height: 92vh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  padding: 14px 18px 16px; gap: 12px;
}
.so-bas { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.so-bas .vesika { width: 58px; flex: none; margin: 0; }
.so-bas .vesika figcaption { display: none; }
.so-kim { flex: 1; min-width: 0; }
.so-kim h2 { font-size: 20px; margin: 0; }
.so-kim .sorgu-rol { margin: 2px 0 0; }
.so-gosterge { display: grid; gap: 4px; justify-items: end; font-size: 12px; color: var(--ink-soft); }
.so-gosterge p { margin: 0 !important; line-height: 1.3 !important; display: flex; align-items: center; gap: 8px; }
.stres { display: inline-flex; gap: 3px; }
.stres i { width: 18px; height: 6px; background: rgba(35, 32, 28, .15); transition: background .4s; }
.stres.s1 i:nth-child(-n+1), .stres.s2 i:nth-child(-n+2), .stres.s3 i { background: var(--stamp); }
.stres.s3 { animation: nabiz 1.2s infinite; }
@keyframes nabiz { 50% { opacity: .55; } }
.bant-cubuk { display: inline-block; width: 70px; height: 6px; background: rgba(35, 32, 28, .15); }
.bant-cubuk i { display: block; height: 100%; background: var(--ink-soft); }
.so-cik { flex: none; }
.so-duzen { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 14px; min-height: 0; }
.so-masa, .so-defter { min-height: 0; overflow-y: auto; padding-right: 4px; }
.so-masa h3, .so-defter h3 { font-size: 13px; margin: 0 0 4px; }
.so-not { font-size: 12px !important; line-height: 1.45 !important; color: var(--ink-soft); margin: 0 0 8px !important; }
.so-belge { display: grid; grid-template-columns: 1fr auto; margin-bottom: 5px; border: 1px solid var(--line); background: #fbf7ea; }
.so-belge.gosterildi { background: #efe6cf; }
.so-koy { padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--type); font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.so-koy:hover, .so-koy:focus-visible { background: rgba(227, 194, 122, .35); }
.so-btur { display: block; font-size: 10.5px; color: var(--ink-soft); }
.so-isaret { display: block; font-size: 10.5px; color: var(--stamp); font-weight: 700; }
.so-goz { padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--type); font-size: 11px; color: var(--ink-soft); }
.so-goz:hover { color: var(--ink); background: rgba(227, 194, 122, .35); }
.so-orta { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.modal-card.sorgu-oda .paper.akis { max-height: none; height: 100%; min-height: 0; margin: 0; }
.so-onizle { position: absolute; inset: 0; z-index: 3; overflow-y: auto; padding: 0 0 16px; background: var(--noise), var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .35); }
.so-onizle-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: #efe6cf; font-size: 13px; font-weight: 700; }
.so-onizle .paper { margin: 12px; }
.so-takildin { padding: 6px 10px; border: 1px dashed rgba(35, 32, 28, .45); background: none; cursor: pointer; font-family: var(--type); font-size: 12.5px; color: var(--ink-soft); }
.so-takildin[aria-expanded="true"] { border-style: solid; color: var(--ink); }
.modal-card.sorgu-oda .sorgu-form { position: relative; }
.modal-card.sorgu-oda .ornek-kutu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 4; max-height: 42vh; }
.ornek-grup h4 { margin: 10px 0 3px; font-size: 12px; font-weight: 700; color: var(--stamp); }
.so-ifade { margin-bottom: 8px; padding: 8px 10px; border-left: 3px solid var(--line); background: #fbf7ea; font-size: 13px; }
.so-ifade p { margin: 0 0 6px !important; line-height: 1.45 !important; }
.so-ifade.secili { border-left-color: var(--stamp); background: #fff1e6; }
.so-ifade.curudu { opacity: .7; }
.so-damga { display: inline-block; padding: 1px 6px; border: 2px solid var(--stamp); color: var(--stamp); font-size: 11px; font-weight: 700; transform: rotate(-2deg); }
.itiraz-btn.gorunur { opacity: 1; position: static; }
.so-bos { font-size: 12.5px !important; color: var(--ink-soft); font-style: italic; }
.so-gotur { margin: 6px 0 12px; padding: 8px 10px; border: 1.5px solid var(--stamp); font-size: 12.5px; }
.so-gotur p { margin: 0 0 6px !important; }
.so-kanitsec { display: grid; gap: 4px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.so-kanitsec select { padding: 5px 6px; border: 1px solid rgba(35, 32, 28, .3); background: #fffbe9; font-family: var(--type); font-size: 12.5px; }
.so-notlbl { display: block; margin: 14px 0 4px; font-size: 12.5px; font-weight: 700; }
#so-notum { width: 100%; resize: vertical; padding: 8px; border: 1px solid rgba(35, 32, 28, .3); background: #fffbe9; font-family: var(--hand, var(--type)); font-size: 14px; }
@media (max-width: 980px) {
  .so-duzen { grid-template-columns: minmax(0, 1fr) 240px; }
  .so-masa { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .so-masa h3, .so-masa .so-not { display: none; }
  #so-belgeler { display: flex; gap: 6px; }
  .so-belge { min-width: 170px; margin: 0; }
}
@media (max-width: 700px) {
  .modal-card.sorgu-oda { height: 100dvh; max-height: 100dvh; padding: 10px; }
  .so-duzen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .so-defter { max-height: 26vh; }
  .so-gosterge { display: none; }
  .so-bas .vesika { width: 44px; }
}

/* =========================================================
   GÖRSEL İYİLEŞTİRMELER
   ========================================================= */
/* masada bir kahve halkası */
.case > .bar, .case > .cols { position: relative; z-index: 1; }
.bar-report { white-space: nowrap; }
.bar-title h1 { white-space: nowrap; }
.case::after {
  content: ""; position: fixed; left: 22%; bottom: 3%; z-index: 0; width: 110px; height: 110px; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 47px, rgba(70, 35, 12, .28) 49px, rgba(70, 35, 12, .12) 53px, transparent 55px);
}

/* belge: üst üste duran kâğıtlar, ataş, mühür, sayfa altı */
.paper {
  font-size: 15.5px; line-height: 1.68;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, .35),
    5px 6px 0 -1px #e9e3d4, 5px 6px 1px 0 rgba(0, 0, 0, .18),
    10px 12px 0 -2px #e2dbc9, 10px 12px 2px -1px rgba(0, 0, 0, .18),
    0 26px 44px -18px rgba(0, 0, 0, .85);
}
.paper::before {
  left: 14px; width: 11px; height: 11px; margin-top: -70px;
  background: #3a281a; box-shadow: 0 140px 0 #3a281a, inset 0 1px 2px rgba(0, 0, 0, .6);
  opacity: .75;
}
.p-head h2 { font-size: 19px; line-height: 1.35; }
.atas {
  position: absolute; top: -14px; right: 54px; width: 17px; height: 52px;
  border: 2.4px solid #9da3a7; border-radius: 9px;
  transform: rotate(5deg);
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35));
}
.atas::after {
  content: ""; position: absolute; left: 2.5px; right: 2.5px; top: 8px; bottom: -2px;
  border: 2.4px solid #b9bec1; border-top: 0; border-radius: 0 0 6px 6px;
}
.muhur-kucuk {
  position: absolute; bottom: 52px; right: 34px;
  padding: 3px 10px 2px;
  border: 2.5px solid rgba(163, 39, 31, .72); border-radius: 4px;
  color: rgba(163, 39, 31, .78);
  font-weight: 700; font-size: 13px; letter-spacing: .06em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}
.sayfa-alti { margin-top: 34px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-soft); }
.paper.el .sayfa-alti { font-family: var(--type); line-height: 1.5; }

/* dosya içeriği: tür simgesi, okunmadı işareti */
.doc-btn { align-items: center; gap: 8px; }
.doc-btn .tur { flex: none; display: grid; width: 16px; height: 16px; color: #6b5532; }
.doc-btn .tur svg { width: 16px; height: 16px; }
.doc-btn .ad { min-width: 0; }
.doc-btn.okundu .ad { color: #4d4436; }
.doc-btn .okunmadi { margin-left: auto; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); }

/* görüntüleyici üst çubuğu: gezinme ve delil etiketi */
.view-bar { align-items: center; }
.gez { display: flex; align-items: center; gap: 10px; }
.gez p { display: grid; font-family: var(--type); font-size: 12.5px; line-height: 1.3; color: #cdbfa3; }
.gez p span { font-size: 11px; color: #a3957c; }
.gez-btn {
  display: grid; place-items: center; width: 32px; height: 32px; cursor: pointer;
  border: 1px solid rgba(239, 230, 210, .3); border-radius: 50%; background: rgba(0, 0, 0, .25); color: #efe6d2;
}
.gez-btn:hover { background: rgba(255, 255, 255, .08); }
.gez-btn svg { width: 14px; height: 14px; }
.sun-btn {
  position: relative; border: 0; border-radius: 0 3px 3px 0;
  padding: 8px 14px 8px 26px;
  background: #e4d2a3; color: var(--ink);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  box-shadow: none;
}
.sun-btn:hover { background: #efdfb4; }
.sun-btn.secili { background: var(--stamp); color: #fff4ea; border: 0; }
.etiket-delik { position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #3a281a; }
.kasa-wrap .sun-btn { padding-left: 26px; }

/* dosya içeriğinde ilerleme */
.ilerleme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 10px; }
.ilerleme span { display: grid; padding: 5px 4px; text-align: center; background: rgba(255, 255, 255, .28); border-radius: 2px; font-family: var(--type); font-size: 11px; line-height: 1.25; color: #6b5532; }
.ilerleme b { font-size: 13px; color: var(--ink); }
.ilerleme .il-belge { grid-column: 1 / -1; display: block; }

/* bildirim: masaya bırakılan küçük not */
.not-kagidi {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; max-width: 340px;
  padding: 12px 16px 12px 14px;
  background: var(--noise), #fbf7ea; color: var(--ink);
  border-left: 4px solid var(--ink);
  font-family: var(--type); font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(18px) rotate(1.5deg);
  transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}
.not-kagidi.gor { opacity: 1; transform: none; }
.not-kagidi.iyi { border-left-color: #3d6b35; }
.not-kagidi.kotu { border-left-color: var(--stamp); }

/* çelişki: iki fiş arasında kırmızı ip */
.ip { position: relative; height: 30px; margin: -4px 0; text-align: center; }
.ip::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(163, 39, 31, .45); }
.ip.gergin::before { border-left-style: solid; border-left-color: var(--stamp); }
.ip span { position: relative; top: 7px; padding: 1px 8px; background: #f4efe2; font-family: var(--type); font-size: 11.5px; color: var(--stamp); }

/* vesikalık */
.vesika { margin: 0; flex: none; width: 62px; }
.vesika svg { display: block; width: 100%; border: 3px solid #f4efe2; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.vesika figcaption { padding: 1px 0; background: var(--ink); color: var(--paper); text-align: center; font-family: var(--type); font-size: 9.5px; letter-spacing: .04em; }
.vesika.buyuk { width: 84px; transform: rotate(-2deg); }
.vesika.buyuk figcaption { font-size: 11px; }
.sup-ust { display: flex; gap: 12px; align-items: flex-start; }
.sorgu-kimlik { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.sorgu-kimlik .sorgu-rol { margin: 4px 0 0; }

/* görevlendirme yazısı: mühür ve imza */
.imza-blok { display: flex; align-items: center; gap: 26px; margin: 22px 0 4px; }
.muhur-buyuk {
  display: grid; place-items: center; width: 108px; height: 108px; flex: none;
  border: 3px double rgba(163, 39, 31, .75); border-radius: 50%;
  color: rgba(163, 39, 31, .8); text-align: center;
  font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: .02em;
  transform: rotate(-14deg);
}
.muhur-buyuk small { font-size: 10px; font-weight: 400; }
.imza-blok svg { width: 150px; height: 46px; display: block; }
.imza-blok p { margin: 0 !important; font-weight: 700; color: var(--stamp); }

@media (max-width: 860px) {
  .paper { font-size: 14.5px; }
  .kayit { font-size: 13px; }
  .atas { right: 30px; }
  .gez p span { display: none; }
  .sorgu-kimlik .vesika.buyuk { width: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .not-kagidi { transition: none; }
}

/* oyun içi açıklama kutuları */
.aciklama-kutu { margin: 4px 0 12px; padding: 8px 12px; background: #fffbe9; border: 1px solid rgba(35, 32, 28, .2); font-size: 13.5px; line-height: 1.5; }
.aciklama-kutu summary { cursor: pointer; font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--stamp); }
.aciklama-kutu p { margin: 8px 0 0; }

.case, .case * { scrollbar-width: thin; scrollbar-color: rgba(201, 189, 162, .45) transparent; }
.modal-card, .modal-card * { scrollbar-width: thin; scrollbar-color: rgba(35, 32, 28, .35) transparent; }
.bar-title h1:focus, .modal-card h2:focus { outline: none; }

/* Küçük ekranlar */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 14px; padding: 14px 14px 0; }
}
@media (max-width: 860px) {
  .drawer-hint { top: auto; bottom: 26px; }
  .case { overflow-y: auto; display: block; }
  .bar { grid-template-columns: auto 1fr; }
  .bar-title { text-align: right; }
  .bar-right { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .cols { display: block; padding: 12px; }
  .index { max-height: none; margin-bottom: 14px; }
  .index nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .index h3 { display: none; }
  .doc-btn { flex: none; width: auto; white-space: nowrap; background: rgba(255, 255, 255, .25); }
  .viewer { overflow: visible; padding: 0 0 20px; }
  .notebook { margin-top: 8px; }
  .nb-page { max-height: none; }
  .paper::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .paper, .modal-card, .drawer-hint { animation: none; }
  .kasa { transition: none; }
  .loading { transition: none; }
}

/* Satır düzeyinde kanıt */
[data-sec] { cursor: pointer; border-radius: 2px; outline: 1px dashed rgba(163, 39, 31, .25); outline-offset: 2px; transition: background-color .15s; }
[data-sec]:hover { background: rgba(163, 39, 31, .07); }
[data-secili] { background: rgba(163, 39, 31, .14) !important; outline: 2px solid var(--stamp); }
tr[data-sec] td { cursor: pointer; }
.satir-not { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--stamp); background: rgba(255, 244, 230, .85); color: var(--ink); font-family: var(--type); font-size: 13px; }
.satir-isaret { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); }
.satir-isaret.eksik { color: var(--stamp); font-weight: 700; }

/* Gözetim, rapor, dava sonu */
.gozetim-damga { padding: 2px 8px; border: 2px solid #c4473c; color: #f0c4b8; font-family: var(--type); font-size: 11px; font-weight: 700; letter-spacing: .04em; transform: rotate(-3deg); }
.kanit-grup { margin: 12px 0 4px !important; font-size: 12px; font-weight: 700; color: var(--stamp); }
.kucuk { font-size: 12.5px; color: var(--ink-soft); }
.yd-baslik { margin: 20px 0 8px; font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gozetim-k { font-size: 11.5px; padding: 1px 6px; border: 1.5px solid var(--stamp); color: var(--stamp); }
.yildizlar { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.yd { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); opacity: 0; animation: yd-gel .35s ease-out forwards; animation-delay: var(--g); }
.yildizlar.durgun .yd { opacity: 1; animation: none; }
.yd b { color: var(--ink); }
.yd-ikon { flex: none; width: 22px; font-size: 18px; text-align: center; color: rgba(35, 32, 28, .35); }
.yd.kazandi .yd-ikon { color: var(--stamp); animation: damga .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--g) + 120ms); }
@keyframes yd-gel { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes damga { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dava-puan { font-weight: 700; }
.terfi { padding: 8px 12px; border: 3px double var(--stamp); color: var(--stamp); text-align: center; font-size: 16px; }
.hedef-not { padding: 6px 10px; background: #efe6cf; font-size: 13.5px; }
.pano-pop { background: #6e1d18 !important; }
@media (prefers-reduced-motion: reduce) { .yd, .yd.kazandi .yd-ikon { animation: none; opacity: 1; } }

/* Mini bulmacalar */
.bulmaca { position: relative; max-width: 760px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 34px) 30px; background: var(--noise), #e7e2d4; color: var(--ink); font-family: var(--type); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.bl-aciklama { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; }
.bl-not { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0; }
.bl-durum { min-height: 1.4em; margin: 10px 0 0; font-size: 13.5px; font-weight: 700; }
.bl-durum.kotu { color: var(--stamp); }
.bl-durum.iyi { color: #2f5d3a; }
.bl-dugme { margin-top: 12px; padding: 8px 16px; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font-family: var(--type); font-weight: 700; font-size: 13.5px; }
.bl-dugme:hover { background: #3a342c; }
.bl-satir { display: grid; gap: 4px; margin-top: 10px; font-size: 12.5px; font-weight: 700; }
.bl-satir input { padding: 8px 10px; border: 1px solid rgba(35, 32, 28, .35); background: #fffbe9; font-family: var(--type); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.bl-sifreli { margin: 0 0 12px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; background: #f7f3e6; border: 1px dashed rgba(35, 32, 28, .35); font-family: var(--type); font-size: 17px; letter-spacing: .12em; }
.bl-cark { display: flex; align-items: center; gap: 8px; }
.bl-cark button { width: 34px; height: 34px; cursor: pointer; border: 1.5px solid var(--ink); background: #fffbe9; font-size: 14px; }
.bl-alfabe { flex: 1; min-width: 0; overflow-x: auto; display: grid; gap: 2px; padding: 6px 8px; background: #f7f3e6; border: 1px solid rgba(35, 32, 28, .25); font-family: var(--type); font-size: 13px; white-space: nowrap; letter-spacing: .02em; }
.bl-alt { color: var(--stamp); font-weight: 700; }
.bl-kaydir { min-width: 2.2em; text-align: center; font-weight: 700; font-family: var(--type); }
.bl-cozulen { min-height: 1.5em; margin: 10px 0 0; font-family: var(--type); font-size: 15px; letter-spacing: .08em; color: #2c3a66; word-break: break-word; }
.bl-kartlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: bk; }
.bl-kart { counter-increment: bk; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; background: #fbf8ef; border: 1px solid rgba(35, 32, 28, .2); box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .25); }
.bl-kart::before { content: counter(bk); font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.bl-kart-ic { font-size: 14px; line-height: 1.45; }
.bl-kart-ic small { display: block; color: var(--ink-soft); font-size: 12px; }
.bl-ok { display: flex; gap: 4px; }
.bl-ok button { width: 30px; height: 28px; cursor: pointer; border: 1px solid rgba(35, 32, 28, .35); background: #fffbe9; font-size: 11px; }
.bl-stil-yirtik .bl-kart { transform: rotate(var(--egim, 0deg)); clip-path: polygon(0 6%, 4% 0, 12% 5%, 20% 1%, 31% 6%, 42% 0, 55% 5%, 66% 1%, 78% 6%, 89% 0, 100% 5%, 100% 94%, 92% 100%, 81% 95%, 70% 100%, 58% 94%, 46% 100%, 34% 95%, 22% 100%, 11% 95%, 0 100%); padding: 12px 12px; }
.bl-eslestir { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bl-eslestir h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--stamp); }
.bl-eslestir button { display: block; width: 100%; margin-bottom: 6px; padding: 8px 10px; text-align: left; cursor: pointer; border: 1px solid rgba(35, 32, 28, .25); background: #fbf8ef; font-family: var(--type); font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.bl-eslestir button small { display: block; color: #2c3a66; font-size: 12px; }
.bl-eslestir .secili { outline: 2px solid var(--stamp); background: #fff1e6; }
.bl-eslestir .bagli { border-left: 4px solid #2c3a66; }
.bl-sahne { display: block; width: 100%; height: auto; filter: grayscale(.65) contrast(1.05) sepia(.18); }
.bl-foto { position: relative; overflow: hidden; cursor: none; touch-action: none; border: 8px solid #f4f1e8; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.bl-foto > .bl-sahne { filter: grayscale(.7) contrast(.95) sepia(.2) blur(.6px); }
.bl-mercek { display: none; position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; overflow: hidden; border-radius: 50%; border: 5px solid #2b2622; box-shadow: 0 8px 22px rgba(0, 0, 0, .55), inset 0 0 18px rgba(0, 0, 0, .3); pointer-events: none; background: #d6d2c7; }
.bl-mercek svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; filter: grayscale(.5) sepia(.15); }
.bl-tikla { cursor: crosshair; }
.bl-fark { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bl-fark figure { margin: 0; border: 6px solid #f4f1e8; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.bl-fark figcaption { padding: 4px 6px; font-size: 12px; background: #f4f1e8; }
.bl-plan { border: 1px solid rgba(35, 32, 28, .3); }
.bl-nokta { cursor: pointer; }
.bl-nokta:hover circle, .bl-nokta:focus circle { fill: #f3d9d2; }
.bl-bulundu { animation: damga .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.bl-sayac { margin: 10px 0 2px; font-size: 13px; font-weight: 700; }
.bl-bulunanlar { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.bl-metin { padding: 16px 18px; background: #f7f3e6; border: 1px solid rgba(35, 32, 28, .2); font-size: 15px; line-height: 1.85; }
.bl-metin p { margin: 0 0 10px; }
.bl-soz { cursor: pointer; border-radius: 2px; }
.bl-soz:hover { background: rgba(227, 194, 122, .4); }
.bl-soz.bulundu { background: rgba(163, 39, 31, .16); box-shadow: inset 0 -2px 0 var(--stamp); }
.bl-tarama canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.bl-izgara-sar { overflow-x: auto; }
.bl-izgara { border-collapse: collapse; font-size: 13px; }
.bl-izgara th { padding: 6px 8px; font-weight: 700; text-align: left; }
.bl-izgara thead th { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; vertical-align: bottom; height: 110px; font-size: 12.5px; }
.bl-izgara td { border: 1px solid rgba(35, 32, 28, .35); padding: 0; }
.bl-izgara td button { width: 38px; height: 38px; cursor: pointer; border: 0; background: #fbf8ef; font-size: 18px; font-weight: 700; color: var(--stamp); }
.bl-ipuclari { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.bl-tamam { text-align: left; }
.bl-damga { display: inline-block; margin: 4px 0 10px; padding: 3px 14px; border: 3px double #2f5d3a; color: #2f5d3a; font-weight: 700; font-size: 18px; letter-spacing: .08em; transform: rotate(-3deg); }
.bl-basari { font-size: 14.5px; }
.bl-ac { margin: 14px auto 0; max-width: 760px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .bl-fark, .bl-eslestir { grid-template-columns: 1fr; }
  .bl-mercek { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
}

.bl-cozum { margin: 6px 0 0; padding: 12px 14px; background: #f7f3e6; border-left: 3px solid #2f5d3a; font-size: 14.5px; line-height: 1.6; }
.bl-cozum p { margin: 0 0 4px; }

/* Arşiv odası: dosya etiketi listesi */
.tag-tip .et-liste { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 12px; }
.tag-tip .et-liste li { display: flex; justify-content: space-between; gap: 12px; }
.tag-tip .et-liste span { font-size: 12px; font-weight: 400; }
.tag-tip .et-liste i { font-style: normal; letter-spacing: .05em; color: #e3c07a; white-space: nowrap; }
.tag-tip .et-yildiz { display: block; margin-top: 2px; color: #e3c07a; letter-spacing: .06em; font-size: 13px; }

/* Hedef kartı */
.hedef-kart {
  position: fixed; z-index: 12; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: min(290px, calc(100vw - 36px)); padding: 12px 14px 12px;
  background: rgba(20, 18, 16, .86); color: #e9e4d6; border: 1px solid rgba(233, 228, 214, .18);
  font-family: var(--type); font-size: 12.5px; line-height: 1.45; backdrop-filter: blur(3px);
}
.hedef-kart p { margin: 0; }
.hk-rutbe { font-weight: 700; font-size: 14px; color: #f0d79c; }
.hk-sayi { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px !important; color: #c9c2b2; }
.hk-sayi b { color: #fff; }
.hk-ilerle { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; color: #a69f90; font-size: 11.5px; }
.hk-cubuk { flex: 1; height: 4px; background: rgba(233, 228, 214, .15); }
.hk-cubuk i { display: block; height: 100%; background: #e3c07a; }
.hk-hedef { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(233, 228, 214, .15); }
.hk-k { font-size: 11px; color: #a69f90; }
.hk-b { font-weight: 700; }
.hk-gerek { color: #d9a899; }
.hk-acik { color: #9fcf9a; }
.hk-pano { margin-top: 10px; width: 100%; padding: 7px 10px; cursor: pointer; border: 1px solid rgba(233, 228, 214, .35); background: transparent; color: #e9e4d6; font-family: var(--type); font-weight: 700; font-size: 12.5px; }
.hk-pano:hover { background: rgba(233, 228, 214, .1); }
@media (max-width: 640px) { .hedef-kart { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); font-size: 12px; } }

/* Pano */
.pano-katman { position: fixed; inset: 0; z-index: 75; overflow-y: auto; background: rgba(5, 4, 3, .78); padding: 3vh 16px; }
.pano-ic { max-width: 1180px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 30px) 30px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .10), transparent 42%),
    repeating-radial-gradient(circle at 37% 61%, rgba(70, 40, 10, .10) 0 2px, transparent 2px 6px),
    #b58d5e;
  box-shadow: inset 0 0 0 10px #5a4128, 0 30px 70px rgba(0, 0, 0, .7); }
/* üst şerit: mantar üzerine iğnelenmiş kâğıt */
.pano-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin: 4px 6px 14px; padding: 14px 18px; background: #f4efe3; color: #2a2118; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .55); }
.pano-bas h2 { margin: 0; font-family: var(--type); font-size: 26px; color: #2a2118; }
.pano-bas p { flex: 1 1 380px; margin: 0; font-family: var(--type); font-size: 13.5px; line-height: 1.5; color: #3b3126; }
.pano-bas .m-btn { background: #2a2118; color: #f4efe3; border: 0; }
.pano-bas .m-btn:hover { background: #4a3a28; }
.pano-bos { margin: 10px 6px; padding: 18px; background: #f4efe3; color: #2a2118; font-family: var(--type); font-size: 14px; line-height: 1.55; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .55); }
.pano-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; padding: 8px; }
.pano-kart { position: relative; padding: 18px 14px 12px; background: #f1ece0; color: #24211c; font-family: var(--type); transform: rotate(var(--aci)); box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .55); }
.pano-kart.bekliyor { opacity: .72; }
.pano-kart h3 { margin: 0 0 4px; font-size: 13.5px; }
.pano-k { margin: 0 0 6px; font-size: 11.5px; color: #6b655a; }
.pano-kart pre { margin: 0 0 8px; padding: 6px 8px; overflow-x: auto; background: #faf7ef; border: 1px solid #d8d1c2; font-family: var(--type); font-size: 11px; line-height: 1.5; color: #2f4a2a; }
.pano-not { margin: 0 0 4px; font-size: 12px; line-height: 1.45; }
.pano-bekle { margin: 4px 0 0; font-size: 11.5px; color: #8f2a22; font-weight: 700; }
.pano-igne { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e45b4b, #8f1f16); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.pano-yaprak { position: absolute; right: 10px; top: 10px; width: 18px; height: 22px; background: #8a3a2a; clip-path: polygon(50% 0, 64% 14%, 80% 6%, 78% 26%, 100% 30%, 84% 46%, 96% 62%, 74% 64%, 70% 86%, 52% 74%, 50% 100%, 46% 74%, 28% 86%, 26% 64%, 4% 62%, 16% 46%, 0 30%, 22% 26%, 20% 6%, 36% 14%); opacity: .85; }
.bl-tarama-bitti img { display: block; width: 100%; height: auto; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.bl-hak { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft, #6b655a); }
.bl-kapali .bl-damga.kapali { color: #8a1f17; border-color: #8a1f17; }
.bar-ipucu { border: 1px solid currentColor; background: transparent; color: inherit; margin-right: 6px; }
.bar-ipucu:hover { background: rgba(0, 0, 0, .08); }
.not-ipucu { font-size: 13px; color: var(--ink-soft, #6b655a); }
.il-alt { display: block; font-size: 10.5px; opacity: .7; }
