/* Delil Sende prototip
   Renk: sis grisi zemin, lacivert mürekkep, tek vurgu delil işareti sarısı.
   UV moru yalnızca laboratuvarda, kırmızı/yeşil yalnızca doğru-yanlış durumunda.
   Köşe kuralı: kart 14px, buton ve alan 10px, etiket/çip tam yuvarlak. */

:root {
  /* Gece olay yeri: ıslak asfalt, sarı şerit, tepe lambası */
  --paper: #0A0D12;
  --surface: #121821;
  --surface-2: #1A222D;
  --ink: #E8ECF0;
  --ink-2: #A3AEBB;
  --ink-3: #737F8E;
  --line: #242E3B;
  --marker: #F5C518;
  --marker-ink: #0A0D12;
  --marker-soft: rgba(245, 197, 24, .12);
  --siren-r: #E3302A;
  --siren-b: #2D68FF;
  --uv: #7B5CFF;
  --bad: #FF6A58;
  --bad-soft: rgba(255, 106, 88, .12);
  --good: #3FD48C;
  --good-soft: rgba(63, 212, 140, .12);
  --doc: #ECEAE2;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -18px rgba(0,0,0,.9);
  --r-card: 10px;
  --r-ctl: 8px;
  --nav-h: 64px;
  --font: 'Archivo', system-ui, sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
.ph, .ph-duotone, .ph-bold, .ph-fill { line-height: 1; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-stretch: 116%; font-weight: 800; line-height: 1.08; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--gap, 14px); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kabuk ---------- */
.shell { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-stretch: 122%; font-size: 1.12rem; letter-spacing: -.02em; }
.brand svg { flex: none; }
.topbar .spacer { flex: 1; }
.top-stats { display: flex; align-items: center; gap: 8px; }
.pt-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.pt-chip i { font-size: 1.1rem; }
.coin { width: 20px; height: 20px; border-radius: 50%; background: var(--marker); color: var(--marker-ink); display: grid; place-items: center; font-size: .72rem !important; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.me-chip .av { border-radius: 50%; }
.me-chip .rk-name { font-size: .84rem; font-weight: 700; white-space: nowrap; }

main.view { padding: 20px 16px calc(var(--nav-h) + 32px); max-width: 1120px; margin: 0 auto; }

.bottomnav {
  position: fixed; inset: auto 0 0 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--ink-3); }
.bottomnav a i { font-size: 1.45rem; }
.bottomnav a[aria-current="page"] { color: var(--ink); }
.bottomnav a[aria-current="page"] i { background: var(--marker); color: var(--marker-ink); border-radius: 999px; padding: 3px 14px; }

.sidenav { display: none; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .sidenav {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh;
    padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface);
  }
  .sidenav .brand { padding: 4px 8px 22px; }
  .sidenav a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; color: var(--ink-2); }
  .sidenav a.nav i { font-size: 1.3rem; }
  .sidenav a.nav:hover { background: var(--surface-2); color: var(--ink); }
  .sidenav a.nav[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .sidenav .foot { margin-top: auto; padding: 12px; font-size: .78rem; color: var(--ink-3); }
  .topbar .brand { display: none; }
  .bottomnav { display: none; }
  main.view { padding: 28px 40px 64px; }
}

/* ---------- Ortak parçalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-ctl); border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 1.15rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--marker)); }
.btn-marker { background: var(--marker); color: var(--marker-ink); }
.btn-marker:hover { background: #E9B71C; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .9rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card-flat { background: var(--surface); border-radius: var(--r-card); padding: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chip i { font-size: 1rem; }
.chip-marker { background: var(--marker); color: var(--marker-ink); }
.chip-ink { background: var(--ink); color: var(--paper); }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head a { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* Rütbe işareti: delil işareti biçimli numaralı etiket */
.rk {
  --w: 26px; display: inline-grid; place-items: center; width: var(--w); height: calc(var(--w) * .86);
  background: var(--marker); color: var(--marker-ink); font-weight: 800; font-size: calc(var(--w) * .42); font-stretch: 100%;
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); padding-top: calc(var(--w) * .16); flex: none; line-height: 1;
}
.rk.t2 { background: var(--ink); color: var(--marker); }
.rk.t3 { background: linear-gradient(160deg, var(--marker) 0 52%, var(--ink) 52%); color: var(--marker-ink); }
.rk-line { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }

.av { border-radius: 50%; flex: none; }

/* Puan ikilisi */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pbox { border-radius: var(--r-card); padding: 16px; }
.pbox .lbl { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; }
.pbox .val { font-size: 2rem; font-weight: 800; font-stretch: 112%; margin-top: 6px; line-height: 1; }
.pbox .hint { font-size: .8rem; margin-top: 8px; }
.pbox.rank { background: var(--ink); color: var(--paper); }
.pbox.rank .hint { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.pbox.delil { background: var(--marker); color: var(--marker-ink); }
.pbox.delil .hint { color: rgba(21,35,58,.75); }

/* ---------- Delil poşeti (dosya kartı) ---------- */
.bag {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border-radius: 6px 6px var(--r-card) var(--r-card); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
a.bag:hover { transform: translateY(-3px) rotate(-.4deg); }
.bag-seal {
  height: 30px; background: var(--marker); color: var(--marker-ink); display: flex; align-items: center; gap: 22px;
  overflow: hidden; white-space: nowrap; font-weight: 800; font-size: .7rem; font-stretch: 125%; letter-spacing: .14em;
  border-bottom: 2px dashed rgba(21,35,58,.35); padding-left: 12px;
}
.bag-window {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: var(--tone, #C9D7E4); color: #15233A; overflow: hidden;
}
.bag-window::before { /* plastik parlaması */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 38%, transparent 46%, transparent 64%, rgba(255,255,255,.3) 69%, transparent 74%);
  pointer-events: none;
}
.bag-window::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(21,35,58,.18); border-radius: 8px; pointer-events: none; }
.bag-window > i { font-size: clamp(64px, 14vw, 96px); }
.bag-window .bag-no { position: absolute; left: 18px; bottom: 14px; font-family: var(--type); font-weight: 700; font-size: .85rem; }
.bag-window .lock { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(21,35,58,.88); color: #F6F8F9; display: grid; place-items: center; font-size: 1.05rem; }
.bag-label { padding: 14px 16px 16px; display: grid; gap: 6px; background: var(--surface); }
.bag-label h3 { font-size: 1.25rem; }
.bag-meta { font-family: var(--type); font-size: .84rem; color: var(--ink-2); display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.bag-meta dt { color: var(--ink-3); }
.bag-meta dd { margin: 0; }
.bag-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 800; font-stretch: 110%; font-size: 1.1rem; }

/* ---------- Ana sayfa ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding-top: 8px; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36ch; margin-top: 14px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-bag { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-bag .bag { transform: rotate(2.2deg); }
.hero-bag .tag {
  position: absolute; left: -10px; bottom: 74px; z-index: 2; transform: rotate(-5deg);
  background: var(--doc); color: #15233A; font-family: var(--type); font-size: .82rem; padding: 10px 12px; border-radius: 4px;
  box-shadow: var(--shadow); border: 1px solid #D6DADF; max-width: 200px; line-height: 1.35;
}
.hero-bag .tag::before { content: ""; position: absolute; left: 12px; top: -7px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #8A96A6; background: var(--paper); }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; min-height: 64vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bag .bag { animation: drop .9s cubic-bezier(.2,.9,.25,1.15) both; }
  @keyframes drop { from { transform: translateY(-28px) rotate(-3deg); opacity: 0; } to { transform: rotate(2.2deg); opacity: 1; } }
}

.daily-strip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); text-decoration: none;
}
.daily-strip .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--marker); color: var(--marker-ink); display: grid; place-items: center; font-size: 1.5rem; }
.daily-strip .small { color: color-mix(in srgb, var(--paper) 70%, transparent); }

.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { counter-increment: s; width: 40px; height: 34px; display: grid; place-items: center; padding-top: 5px; background: var(--marker); color: var(--marker-ink); font-weight: 800; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.steps .n::before { content: counter(s); }
.steps ol { padding: 0; margin: 0; }
@media (min-width: 820px) { .steps-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -16px; padding-inline: 16px; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 820px) { .scroller { grid-auto-columns: minmax(260px, 1fr); margin: 0; padding-inline: 2px; } }

.yazgi { display: grid; gap: 18px; padding: 22px; border-radius: var(--r-card); border: 1.5px dashed var(--ink-3); }
@media (min-width: 820px) { .yazgi { grid-template-columns: 1fr auto; align-items: center; } }

.footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; display: grid; gap: 8px; }

/* ---------- Arşiv ---------- */
.grid-bags { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .grid-bags { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-bags { grid-template-columns: repeat(3, 1fr); } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 16px 0 20px; }
.filters button { border: 1px solid var(--line); background: var(--surface); height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bundle {
  display: grid; gap: 16px; padding: 20px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.bundle .bags-mini { display: flex; }
.bundle .bags-mini span { width: 54px; height: 66px; border-radius: 4px 4px 8px 8px; border-top: 8px solid var(--marker); display: grid; place-items: center; font-size: 1.6rem; color: #15233A; margin-right: -12px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); }
.bundle .old { text-decoration: line-through; opacity: .6; font-size: .95rem; }
@media (min-width: 820px) { .bundle { grid-template-columns: auto 1fr auto; align-items: center; } }

/* ---------- Vaka ekranı ---------- */
.case-head { display: grid; gap: 12px; margin-bottom: 14px; }
.case-head .crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.sicil { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; }
.sicil .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sicil .bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s ease; }
.tabs {
  position: sticky; top: 60px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; margin: 0 -16px 18px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.tabs a i { font-size: 1.1rem; }
.tabs a:hover { border-color: var(--line); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tabs a.final { background: var(--marker); color: var(--marker-ink); }
@media (min-width: 960px) { .tabs { margin: 0 -40px 22px; padding: 10px 40px; } }

.case-layout { display: grid; gap: 22px; }
@media (min-width: 1000px) { .case-layout.two { grid-template-columns: 1.25fr .75fr; align-items: start; } }

/* Ses oynatıcı */
.player { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); }
.player button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--marker); color: var(--marker-ink); font-size: 1.35rem; cursor: pointer; display: grid; place-items: center; }
.wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.wave span { flex: 1; background: color-mix(in srgb, var(--paper) 40%, transparent); border-radius: 2px; min-width: 2px; }
.wave span.on { background: var(--marker); }

/* Belge (kodla tasarlanan evrak) */
.doc {
  background: var(--doc); color: #1A2433; border-radius: 4px; padding: 26px 22px; font-family: var(--type); font-size: .93rem; line-height: 1.6;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px -18px rgba(21,35,58,.45); position: relative; border: 1px solid #DADDE0;
}
.doc .doc-top { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px solid #1A2433; padding-bottom: 10px; margin-bottom: 14px; }
.doc .doc-title { font-weight: 700; font-size: 1.05rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.doc td, .doc th { text-align: left; padding: 6px 6px 6px 0; vertical-align: top; border-bottom: 1px dotted #9AA3AE; }
.doc th { font-weight: 700; }
.doc .stamp { position: absolute; right: 18px; bottom: 16px; transform: rotate(-9deg); border: 2.5px solid #2E4C8C; color: #2E4C8C; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: .78rem; opacity: .8; }
.doc mark { background: #FBE7A1; color: inherit; padding: 0 2px; }
.doc .field { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dotted #9AA3AE; }
.doc .field b { font-weight: 700; }
.chatlog { display: grid; gap: 8px; }
.chatlog .m { max-width: 82%; padding: 8px 12px; border-radius: 12px; background: #E3E8EE; font-family: var(--font); font-size: .92rem; }
.chatlog .m.out { justify-self: end; background: #15233A; color: #F6F8F9; }
.chatlog .meta { font-family: var(--type); font-size: .75rem; color: #5D6A7B; }
.chatlog .m.out + .meta, .chatlog .meta.r { justify-self: end; }

.ev-list { display: grid; gap: 10px; }
.ev-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.ev-item .tagno { width: 40px; height: 34px; padding-top: 5px; display: grid; place-items: center; background: var(--marker); color: var(--marker-ink); font-weight: 800; font-size: .82rem; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.ev-item[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ev-item .t { font-weight: 700; line-height: 1.25; }
.ev-item .s { font-size: .8rem; color: var(--ink-3); }
@media (min-width: 1000px) { .ev-split { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; } .ev-split .ev-list { position: sticky; top: 130px; } }
@media (max-width: 999px) { .ev-split .ev-list { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 16px; } .ev-split .ev-item { min-width: 230px; } }

/* Şüpheli kartları (portre yerine yer tutucu) */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 820px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.portrait {
  aspect-ratio: 4 / 5; position: relative; display: grid; place-items: end center; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(21,35,58,.12) 23px 24px), var(--surface-2);
}
.portrait svg { width: 70%; height: auto; color: var(--ink-3); }
.portrait .ph-note { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; background: var(--surface); padding: 2px 7px; border-radius: 99px; color: var(--ink-3); }
.person .body { padding: 10px 12px 14px; }
.person .body b { display: block; }
.person .body .r { font-size: .8rem; color: var(--ink-3); }

/* Pano */
.board {
  position: relative; height: 560px; border-radius: var(--r-card); overflow: hidden; touch-action: none;
  background-color: var(--surface);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px; border: 1px solid var(--line);
}
.board svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board svg.links line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; opacity: .55; }
.board svg.links line.hot { stroke: #C79A0E; stroke-dasharray: none; stroke-width: 3; opacity: 1; }
.node {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; cursor: grab;
  background: var(--paper); border: 1.5px solid var(--ink); font-weight: 700; font-size: .85rem; user-select: none; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(21,35,58,.5); transform: translate(-50%, -50%);
}
.node:active { cursor: grabbing; }
.node .dotp { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1rem; }
.node.victim { background: var(--ink); color: var(--paper); }
.node.victim .dotp { background: var(--marker); color: var(--marker-ink); }
.node.ev { border-style: dashed; border-radius: 8px; padding: 6px 10px 6px 6px; }
.node.ev .dotp { border-radius: 4px; background: var(--marker); color: var(--marker-ink); width: 26px; height: 26px; font-size: .72rem; font-weight: 800; }
.node.pick { outline: 3px solid var(--marker); }

/* İfadeler */
.who { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.who button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.who button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.who .mini { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.statement { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.statement q { quotes: "“" "”"; font-size: 1.04rem; }
.statement .reply { grid-column: 1 / -1; padding: 10px 14px; border-left: 3px solid var(--marker); background: var(--marker-soft); border-radius: 0 8px 8px 0; font-size: .95rem; }
.statement.caught q { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }

/* Laboratuvar */
.lab { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; max-height: 520px; width: 100%; background: #1B2230; touch-action: none; cursor: crosshair; }
.lab .layer { position: absolute; inset: 0; }
.lab .uv { mask-image: radial-gradient(circle var(--r, 90px) at var(--x, 50%) var(--y, 50%), #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(circle var(--r, 90px) at var(--x, 50%) var(--y, 50%), #000 55%, transparent 100%); opacity: 0; transition: opacity .2s; }
.lab.on .uv { opacity: 1; }
.lab .dark { background: rgba(8, 10, 22, .0); transition: background .2s; }
.lab.on .dark { background: rgba(8, 10, 22, .62); }
.lab-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lab-tools .btn.on { background: var(--uv); color: #fff; }
.lab-find { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--uv) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--uv) 40%, transparent); }
.lab-find.show { display: block; }

/* Rapor */
.q { padding: 18px 0; border-top: 1px solid var(--line); }
.opts { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 720px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; font-weight: 600; text-align: left; }
.opt .box { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--marker-soft); }
.opt[aria-checked="true"] .box { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px); }
.opt.ok { border-color: var(--good); background: var(--good-soft); }
.opt.no { border-color: var(--bad); background: var(--bad-soft); }

.verdict { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); margin-top: 22px; }
.verdict .btn { justify-self: start; }

.result-hero { display: grid; gap: 18px; padding: 24px; border-radius: var(--r-card); background: var(--ink); color: var(--paper); }
.result-hero .big { font-size: clamp(3rem, 12vw, 5.2rem); font-weight: 900; font-stretch: 125%; line-height: .95; color: var(--marker); }
.gain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gain div { padding: 12px 14px; border-radius: var(--r-ctl); background: rgba(255,255,255,.07); }
.gain b { display: block; font-size: 1.5rem; font-stretch: 112%; }

/* ---------- Günlük ---------- */
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak div { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--surface-2); color: var(--ink-3); flex-direction: column; }
.streak div.done { background: var(--ink); color: var(--marker); }
.streak div.today { outline: 2px dashed var(--ink); outline-offset: -2px; background: var(--surface); color: var(--ink); }
.streak div.bonus { background: var(--marker-soft); color: var(--ink); }
.say { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); }
.say small { color: var(--ink-3); font-weight: 600; }

/* ---------- Sıralama ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); gap: 2px; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21,35,58,.18); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin: 22px 0 10px; }
.podium .p { text-align: center; display: grid; justify-items: center; gap: 6px; }
.podium .p .av { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line); }
.podium .p.first .av { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--marker); }
.podium .p .u { font-weight: 700; font-size: .86rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .stand { width: 100%; border-radius: 10px 10px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; display: grid; place-items: center; font-weight: 900; font-stretch: 125%; font-size: 1.4rem; color: var(--ink-3); }
.podium .first .stand { background: var(--ink); color: var(--marker); }
.lb { display: grid; }
.lb .r { display: grid; grid-template-columns: 30px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lb .r .pos { font-weight: 800; color: var(--ink-3); text-align: center; }
.lb .r .u { font-weight: 700; line-height: 1.2; }
.lb .r .rk-line { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.lb .r .sc { font-weight: 800; font-stretch: 110%; text-align: right; }
.lb .r.me { background: var(--marker-soft); border-radius: 10px; border-bottom-color: transparent; padding-inline: 10px; }

/* ---------- Profil ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.profile-head .avwrap { position: relative; }
.profile-head .avwrap button { position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--paper); background: var(--marker); color: var(--marker-ink); display: grid; place-items: center; cursor: pointer; font-size: 1rem; }
.progress { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: var(--marker); }
.ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .ladder { grid-template-columns: repeat(4, 1fr); } }
.ladder div { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.ladder div small { display: block; color: var(--ink-3); font-weight: 500; font-size: .74rem; }
.ladder div.past { opacity: .62; }
.ladder div.now { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ladder div.future .rk { background: var(--surface-2); color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 14px; border-radius: var(--r-ctl); background: var(--surface); }
.stats b { display: block; font-size: 1.5rem; font-stretch: 112%; }
.stats span { font-size: .82rem; color: var(--ink-2); }

/* Avatar seçici */
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (min-width: 560px) { .av-grid { grid-template-columns: repeat(5, 1fr); } }
.av-grid button { border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.av-grid button .av { width: 100%; height: auto; max-width: 84px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s; }
.av-grid button:hover .av { transform: scale(1.04); }
.av-grid button[aria-pressed="true"] .av { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.av-grid button[aria-pressed="true"] { color: var(--ink); }

/* ---------- Rozetler ---------- */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.seal {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; position: relative;
  background: var(--ink); color: var(--marker);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--marker);
}
.badge.locked .seal { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 0 0 0 4px var(--surface-2), inset 0 0 0 6px var(--line); }
.badge b { font-size: .95rem; }
.badge p { font-size: .8rem; color: var(--ink-2); }
.badge .when { font-size: .74rem; font-weight: 700; color: var(--ink-3); }

/* ---------- Cüzdan ---------- */
.rules { display: grid; gap: 10px; }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rules div { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: var(--r-ctl); background: var(--surface); }
.rules i { font-size: 1.4rem; color: var(--ink); background: var(--marker-soft); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.hist .h { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist .h .p { font-weight: 800; font-stretch: 110%; }
.hist .h .p.plus { color: var(--good); }
.hist .h .p.minus { color: var(--bad); }
.hist .h small { color: var(--ink-3); }

/* ---------- Satın alma ---------- */
.buy { display: grid; gap: 22px; }
@media (min-width: 900px) { .buy { grid-template-columns: 1fr 1fr; align-items: start; } }
.receipt { background: var(--doc); color: #1A2433; border-radius: 6px; padding: 22px; font-family: var(--type); box-shadow: var(--shadow); position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--doc) 8.5px) 0 0 / 16px 10px repeat-x; }
.receipt .ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dotted #9AA3AE; }
.receipt .ln.total { border-bottom: 0; border-top: 2px solid #1A2433; margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.2rem; }
.receipt .ln.disc { color: #1F7A5A; font-weight: 700; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--surface-2); position: relative; border: 0; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--marker); }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
.calc { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-ctl); background: var(--marker-soft); font-size: .92rem; }
.calc .eq { font-weight: 800; font-stretch: 108%; }
.paybox { display: grid; gap: 8px; }
.paybox .opt { font-weight: 600; }

/* ---------- Giriş / kayıt ---------- */
.auth { max-width: 440px; margin: 10px auto 0; display: grid; gap: 18px; }
.auth .logo-big { display: flex; justify-content: center; margin-bottom: 4px; }
.sso { display: grid; gap: 10px; }
.sso .btn { height: 50px; border-color: var(--line); background: var(--surface); color: var(--ink); }
.sso .btn.apple { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sso .btn i { font-size: 1.3rem; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .req { color: var(--bad); }
.field input { height: 48px; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 60%, transparent); }
.field .help { font-size: .8rem; color: var(--ink-3); }
.field .help.ok { color: var(--good); font-weight: 600; }
.field .help.err { color: var(--bad); font-weight: 600; }
.field .pre { position: relative; }
.field .pre span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; }
.field .pre input { padding-left: 32px; width: 100%; }
.check { display: flex; gap: 10px; align-items: start; font-size: .86rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.welcome-av { display: grid; justify-items: center; gap: 12px; text-align: center; }
.welcome-av .av { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--marker); }
@media (prefers-reduced-motion: no-preference) {
  .welcome-av .spin .av { animation: pop .6s cubic-bezier(.2,.9,.25,1.3) both; }
  @keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Modal / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(10, 16, 28, .55); display: grid; align-items: end; justify-items: center; }
.modal { width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
.modal .x { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) { .modal { animation: up .28s cubic-bezier(.2,.8,.2,1) both; } @keyframes up { from { transform: translateY(30px); opacity: 0; } } }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .25s ease; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad i { color: #FF9B8A; }
#toast.good i { color: var(--marker); }
@media (min-width: 960px) { #toast { bottom: 28px; } }

.ai-note { display: flex; gap: 8px; align-items: start; font-size: .8rem; color: var(--ink-3); }
.proto-note { font-size: .78rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }

/* ---------- Düzeltmeler ---------- */
html, body { overflow-x: clip; }
.brand { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none; } .topbar .brand span { font-size: 1rem; } }
.hero-bag { width: calc(100% - 12px); }
.hero-bag .tag { left: auto; right: -6px; bottom: auto; top: 64px; transform: rotate(4deg); }
@media (max-width: 819px) { .hero-bag { width: 86%; margin-right: 6%; } .hero-bag .tag { right: -14px; } }
.player .num { white-space: nowrap; }
.bag-window { background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--tone) 70%, #fff) 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 80%, #15233A) 100%); }
.bag-window::before { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 37%, transparent 44%, transparent 66%, rgba(255,255,255,.22) 70%, transparent 74%); }
.bag-window::after { border-color: rgba(21,35,58,.28); }
.bag-window > i { font-size: clamp(84px, 22vw, 120px); opacity: 1; }
.bag-window .lock { z-index: 1; }
@media (max-width: 819px) { .hero-bag .tag { right: -4px; } }
@media (max-width: 600px) {
  .board { height: 520px; }
  .node { font-size: .72rem; padding: 5px 9px 5px 5px; gap: 6px; }
  .node .dotp { width: 24px; height: 24px; font-size: .85rem; }
  .node.ev .dotp { width: 22px; height: 22px; }
}
.shell > div { min-width: 0; }
