/* Diecast Hunter — koleksiyoncu teması: grafit zemin, ince çizgiler, dar motorsporu tipografisi */
:root {
  --bg: #0b0c0e;
  --bg-2: #101114;
  --panel: #15171b;
  --panel-2: #1c1f24;
  --line: #262a31;
  --line-2: #33383f;
  --text: #eceae6;
  --muted: #8d929a;
  --dim: #5d626a;
  --acc: #ff5f1f;          /* sinyal turuncusu — az ve yerinde */
  --sth: #d2ad4a;          /* mat altın */
  --th: #3aa66b;
  --own: #2fd07a;
  --hunt: #f0b429;
  --prem: #c94740;
  --silver: #a9b3bd;
  --rv: #8274ff;
  --other: #3f9fc9;
  --gold: #e8c45a;
  --photo: #f2f1ee;
  --text-2: #c9cbcf;       /* ikincil metin */
  --on-text: #111;         /* --text zeminli öğelerin yazısı */
  --bar: rgba(11, 12, 14, .82);
  --track: rgba(255, 255, 255, .08);
  --glow: rgba(255, 95, 31, .07);
  --miss: #ff8a5c;
  --pill-text: #ff9a6b;
  --sim-bg: rgba(255, 255, 255, .06);
  --sim-text: #c9ccd1;
  --warn-text: #ffb38f;
  --info-text: #7cc6e6;
  --shadow: rgba(0, 0, 0, .55);
  --r: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- açık tema */
:root[data-theme="light"] {
  --bg: #f3f2ef;
  --bg-2: #ebeae6;
  --panel: #ffffff;
  --panel-2: #f2f1ed;
  --line: #e1dfd9;
  --line-2: #cfccc4;
  --text: #17181b;
  --muted: #61656c;
  --dim: #8b8f96;
  --acc: #e4500f;
  --sth: #9c7614;
  --th: #1d8a50;
  --own: #14a058;
  --hunt: #b07a06;
  --prem: #c03a32;
  --silver: #6f7a84;
  --rv: #6a5ae6;
  --other: #23799f;
  --gold: #a9821a;
  --photo: #f7f6f3;
  --text-2: #3c3f45;
  --on-text: #fff;
  --bar: rgba(243, 242, 239, .86);
  --track: rgba(0, 0, 0, .08);
  --glow: rgba(228, 80, 15, .08);
  --miss: #d24d17;
  --pill-text: #c2470f;
  --sim-bg: rgba(0, 0, 0, .05);
  --sim-text: #4a4e55;
  --warn-text: #b4511d;
  --info-text: #1f6f93;
  --shadow: rgba(0, 0, 0, .18);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 var(--f-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 500px at 80% -200px, var(--glow), transparent 60%),
    var(--bg);
}
body.noscroll { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- üst çubuk */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 8px;
  background: var(--bar);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar h1 {
  flex: 1; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 700 20px/1.2 var(--f-display); letter-spacing: .4px;
}
body.is-home .bar h1 { text-align: left; padding-left: 4px; }
.wordmark { font: 800 21px/1 var(--f-display); letter-spacing: 1.8px; }
.wordmark i { color: var(--acc); font-style: normal; margin: 0 2px; }
.back, .tools { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.back { color: var(--text); border-radius: 10px; }
.back:active { background: var(--panel-2); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.icon-btn:active { background: var(--panel-2); }

main { padding: 14px 16px calc(var(--safe-bottom) + 40px); max-width: 980px; margin: 0 auto; }
.empty { color: var(--muted); text-align: center; padding: 38px 10px; line-height: 1.6; }
.note { color: var(--muted); font-size: 13px; margin: 2px 2px 12px; }
.note.center { text-align: center; margin-top: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.foot { color: var(--dim); font-size: 12px; text-align: center; margin-top: 30px; line-height: 1.7; }
.gold { color: var(--gold); font-style: normal; font-weight: 600; }

/* bölüm başlığı */
.sec-h { display: flex; align-items: center; gap: 8px; margin: 26px 2px 10px; }
.sec-h h2 { margin: 0; font: 700 14px/1 var(--f-display); letter-spacing: 1.6px; color: var(--muted); }
.sec-h .more { margin-left: auto; color: var(--acc); font-weight: 600; font-size: 14px; }
.sec-h .muted { margin-left: auto; }
.cnt { font: 600 12px/1 var(--f-display); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 3px 7px; border-radius: 6px; }
.pill { font-size: 12px; font-weight: 600; background: rgba(255, 95, 31, .14); color: var(--pill-text); border: 1px solid rgba(255, 95, 31, .35); padding: 2px 8px; border-radius: 999px; }

/* ilerleme çubuğu */
.prog { display: block; height: 3px; background: var(--track); border-radius: 3px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--own); border-radius: 3px; transition: width .4s ease; }

/* ---------------------------------------------------------------- arama */
.search-wrap { position: relative; margin-bottom: 12px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-size: 16px; outline: none;
}
.search-wrap input.search { padding-left: 14px; }
.search-wrap input:focus { border-color: var(--line-2); background: var(--panel-2); }
.search-wrap input::placeholder { color: var(--dim); }

.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line);
  font: 600 14px/1 var(--f-display); letter-spacing: .4px; color: var(--muted); white-space: nowrap;
}
.chip.on { background: var(--text); border-color: var(--text); color: var(--on-text); }

/* ---------------------------------------------------------------- panel / özet */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.lbl { font: 700 12px/1 var(--f-display); letter-spacing: 1.5px; color: var(--muted); }
.summary { margin: 0 0 14px; }
.summary .prog { margin-top: 10px; }
.stats { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { flex: 1; background: var(--panel); padding: 10px 8px; text-align: center; min-width: 0; }
.stat b { display: block; font: 700 21px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stat.ok b { color: var(--own); }
.stat.miss b { color: var(--miss); }

/* ana sayfa: koleksiyon + av listesi */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.duo .panel { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 118px; overflow: hidden; }
.duo .panel:active { transform: scale(.985); }
.duo .big { font: 800 40px/1 var(--f-display); margin-top: 6px; }
.duo small { color: var(--muted); font-size: 12px; }
.mycol { border-color: rgba(47, 208, 122, .3); background: linear-gradient(150deg, rgba(47, 208, 122, .12), var(--panel) 55%); }
.mycol .big { color: var(--own); }
.huntp { border-color: rgba(240, 180, 41, .28); background: linear-gradient(150deg, rgba(240, 180, 41, .10), var(--panel) 55%); }
.huntp .big { color: var(--hunt); }
.mycol .thumbs { position: absolute; right: 12px; top: 12px; display: flex; }
.mycol .thumbs img { width: 24px; height: 34px; object-fit: cover; border-radius: 4px; background: var(--photo); margin-left: -9px; border: 2px solid var(--panel); }

/* yıllar */
.years { display: grid; gap: 10px; }
.year {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px; border-radius: 14px;
  background: linear-gradient(100deg, var(--panel) 0%, var(--bg-2) 100%); border: 1px solid var(--line); overflow: hidden;
}
.year::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--acc); border-radius: 0 3px 3px 0; }
.year:active { transform: scale(.99); }
.year b { font: 800 50px/0.9 var(--f-display); letter-spacing: -.5px; }
.ymeta { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); text-align: right; }
.ymeta em { font-style: normal; font: 700 12px/1 var(--f-display); letter-spacing: .6px; }
.c-sth { color: var(--sth); } .c-th { color: var(--th); }

/* şerit (yatay kaydırmalı kartlar) */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .card { scroll-snap-align: start; }

/* ---------------------------------------------------------------- yıl sayfası */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 13px 14px; min-height: 104px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--tc, var(--line-2));
}
.tile:active { background: var(--panel-2); }
.tile .k { font: 700 13px/1.1 var(--f-display); letter-spacing: 1.2px; color: var(--tc, var(--muted)); }
.tile .v { font: 800 28px/1 var(--f-display); }
.tile .v small { font-size: 16px; color: var(--muted); font-weight: 600; }
.tile .d { font-size: 12px; color: var(--muted); }
.tile.sth { --tc: var(--sth); } .tile.th { --tc: var(--th); } .tile.prem { --tc: var(--prem); }
.tile.silver { --tc: var(--silver); } .tile.rv { --tc: var(--rv); } .tile.other { --tc: var(--other); }

.cases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.case {
  position: relative; aspect-ratio: .95; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px;
}
.case b { font: 800 26px/1 var(--f-display); }
.case small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.case .prog { width: 70%; }
.case .dots { position: absolute; top: 6px; right: 6px; display: flex; gap: 3px; }
.case .dots i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid; }
.case .dots i.sth { border-color: var(--sth); } .case .dots i.th { border-color: var(--th); }
.case .dots i.sth.got { background: var(--sth); } .case .dots i.th.got { background: var(--th); }
.case:active { background: var(--panel-2); }
.case.dim { opacity: .3; }
.case.done { border-color: rgba(47, 208, 122, .5); }

/* satır listeleri (setler) */
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.row:active { background: var(--panel-2); }
.row.done { border-color: rgba(47, 208, 122, .45); }
.row .thumbs { display: flex; flex: none; }
.row .thumbs img { width: 34px; height: 46px; object-fit: cover; border-radius: 5px; background: var(--photo); margin-right: -12px; border: 2px solid var(--panel); }
.row .t { flex: 1; min-width: 0; margin-left: 12px; display: flex; flex-direction: column; gap: 3px; }
.row .t b { font: 700 18px/1.15 var(--f-display); letter-spacing: .3px; }
.row .t small { color: var(--muted); font-size: 13px; }
.row .t .prog { margin-top: 3px; max-width: 220px; }
.row .chev { color: var(--dim); font-size: 22px; }

/* ---------------------------------------------------------------- kartlar */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.card:active { transform: scale(.985); }
.card .ph { aspect-ratio: 2 / 3; background: var(--photo); display: grid; place-items: center; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; }
.card .ph.noimg { background: var(--panel-2); color: var(--dim); font-size: 12px; }
.card .meta { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.card .nm { font: 700 15px/1.15 var(--f-display); letter-spacing: .2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .yr { font: 600 11px/1 var(--f-display); letter-spacing: .8px; color: var(--dim); }
.card.sth { border-color: rgba(210, 173, 74, .55); }
.card.th { border-color: rgba(58, 166, 107, .45); }
.card.own { border-color: rgba(47, 208, 122, .6); }

.tags { display: flex; flex-wrap: wrap; gap: 3px; }
.tag { display: inline-block; font: 700 10.5px/1 var(--f-display); letter-spacing: .7px; padding: 3px 5px 2px; border-radius: 3px; white-space: nowrap; }
.tag.sth { background: #d2ad4a; color: #1a1405; }
.tag.th { background: #3aa66b; color: #04140b; }
.tag.sp { background: linear-gradient(90deg, #d8b04a, #f7e3a0, #d8b04a); color: #1b1300; }
.tag.own { background: rgba(47, 208, 122, .16); color: var(--own); box-shadow: inset 0 0 0 1px rgba(47, 208, 122, .45); }
.tag.sim { background: var(--sim-bg); color: var(--sim-text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag.hunt { background: rgba(240, 180, 41, .14); color: var(--hunt); box-shadow: inset 0 0 0 1px rgba(240, 180, 41, .4); }
.tag.new { background: var(--acc); color: #fff; }
.tag.ex { background: #2c6fd6; color: #fff; }

.badge {
  position: absolute; right: 7px; top: 7px; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 6px;
  background: rgba(10, 11, 13, .86); color: #fff; font: 800 15px/26px var(--f-display); text-align: center; letter-spacing: .5px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.badge.prem { background: var(--prem); font-size: 12px; }
.badge.silver { background: #5b6570; font-size: 12px; }
.badge.rv { background: var(--rv); font-size: 12px; }
.badge.other { background: #2a7ea3; font-size: 12px; }

/* hızlı "bende var" düğmesi */
.own-tg {
  position: absolute; left: 7px; top: 7px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10, 11, 13, .55); border: 2px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .4); display: grid; place-items: center; cursor: pointer;
}
.own-tg::before { content: ""; position: absolute; inset: -10px; }
.own-tg::after { content: "✓"; color: #07140c; font-size: 16px; font-weight: 900; opacity: 0; transform: scale(.5); transition: .15s; }
.card.own .own-tg { background: var(--own); border-color: var(--own); }
.card.own .own-tg::after { opacity: 1; transform: scale(1); }

/* özel sürüm / chase: dönen altın çerçeve */
.card.special, .hero.special { isolation: isolate; }
.card.special::before, .hero.special::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), #d8b04a, #fff1c2, #a8801c, #d8b04a, #fff1c2, #a8801c, #d8b04a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.card.special { box-shadow: 0 0 16px rgba(232, 196, 90, .22); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }

/* ---------------------------------------------------------------- detay */
.detail { touch-action: pan-y; will-change: transform; }
.pager { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 10px; color: var(--muted); font: 600 14px/1 var(--f-display); letter-spacing: 1px; }
.pager button { width: 42px; height: 34px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.pager button:disabled { opacity: .25; }
.hero { position: relative; background: var(--photo); border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 280px; cursor: zoom-in; }
.hero img { width: 100%; max-height: 66vh; object-fit: contain; display: block; }
.hero.special { box-shadow: 0 0 26px rgba(232, 196, 90, .25); }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 8px; background: rgba(10, 11, 13, .7); color: #fff; display: grid; place-items: center; font-size: 17px; }
.seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 10px 0 0; }
.seg button { flex: 1 0 auto; padding: 7px 10px; border-radius: 7px; font: 600 14px/1 var(--f-display); letter-spacing: .5px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.dhead { margin: 16px 0 12px; }
.dname { font: 800 30px/1.02 var(--f-display); letter-spacing: .2px; margin-bottom: 8px; }
.dtags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dtags .tag { font-size: 12px; padding: 4px 7px 3px; }
.tag.casetag { background: var(--text); color: var(--on-text); }
.tag.yrtag { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act { padding: 13px 8px; border-radius: 11px; font: 700 16px/1 var(--f-display); letter-spacing: .6px; background: var(--panel); border: 1px solid var(--line-2); }
.act.own.on { background: var(--own); border-color: var(--own); color: #06140c; }
.act.hunt.on { background: rgba(240, 180, 41, .15); border-color: var(--hunt); color: var(--hunt); }
.act:disabled { opacity: .35; }

.panel.mine { margin-top: 10px; display: grid; gap: 12px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mrow.col { flex-direction: column; align-items: stretch; gap: 6px; }
.mrow label { font: 700 13px/1 var(--f-display); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.stepper button { width: 40px; height: 36px; font-size: 20px; background: var(--panel-2); }
.stepper b { min-width: 42px; text-align: center; font: 700 18px/1 var(--f-display); }
.money { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; background: var(--bg-2); }
.money span { color: var(--muted); }
.money input { width: 110px; height: 36px; border: 0; background: none; outline: none; font-size: 16px; text-align: right; }
.mine textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg-2); padding: 9px 10px; font-size: 16px; resize: vertical; outline: none; }
.mine .note { margin: 0; }

.panel.price { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.panel.price b { display: block; font: 800 24px/1.1 var(--f-display); margin-top: 4px; }
.panel.price small { grid-column: 1 / -1; color: var(--dim); font-size: 11px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 12px 0 0; }
.facts div { background: var(--panel); padding: 10px 12px; }
.facts dt { font: 700 11px/1 var(--f-display); color: var(--muted); letter-spacing: 1.1px; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.links a { flex: 1; text-align: center; padding: 11px; border-radius: 10px; border: 1px solid var(--line-2); font: 600 14px/1 var(--f-display); letter-spacing: .6px; color: var(--muted); }

/* ---------------------------------------------------------------- tam ekran görüntüleyici */
.viewer { position: fixed; inset: 0; z-index: 60; background: #050506; color: #eceae6; display: flex; flex-direction: column; animation: fadein .18s ease; }
.viewer.out { opacity: 0; transition: opacity .18s; }
.vbar { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 10px) 14px 10px; font: 600 15px/1.2 var(--f-display); letter-spacing: .5px; }
.vbar span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar #vcnt { color: var(--muted); }
.vclose { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 16px; }
.vstage { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.vstage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.vhint { text-align: center; color: var(--dim); font-size: 12px; padding: 8px 0 calc(var(--safe-bottom) + 12px); margin: 0; }
@keyframes fadein { from { opacity: 0; } }

/* ---------------------------------------------------------------- ayarlar / yedek */
.panel.set p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.panel.set .warn { color: var(--warn-text); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-btn {
  flex: 1 1 140px; display: grid; place-items: center; padding: 12px; border-radius: 10px; cursor: pointer;
  font: 700 15px/1 var(--f-display); letter-spacing: .6px; background: var(--panel-2); border: 1px solid var(--line-2);
}
.bk-btn.on { background: rgba(47, 208, 122, .14); border-color: var(--own); color: var(--own); }
.bk-btn:active { background: var(--line); }
.panel.set .note { margin: 10px 0 0; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--own); }
.switch input:checked + span::after { transform: translateX(18px); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 24px); transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--on-text); padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 28px var(--shadow); max-width: calc(100% - 32px); text-align: center; transition: opacity .4s;
}
.toast.out { opacity: 0; }

/* ---------------------------------------------------------------- açılış ekranı */
#splash {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center;
  transition: opacity .45s ease;
}
#splash.out { opacity: 0; pointer-events: none; }
.sp-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sp-word { font: 800 clamp(34px, 11vw, 54px)/1 var(--f-display); letter-spacing: 3px; color: var(--text); opacity: 0; transform: translateY(8px); padding-left: 7px; }
.sp-word i { color: var(--acc); font-style: normal; margin: 0 3px; }
.sp-sub { font: 600 12px/1 var(--f-display); letter-spacing: 4px; color: var(--muted); opacity: 0; padding-left: 6px; }
.sp-line { position: absolute; top: -18px; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); transform: translateX(-50%); }
#splash.run .sp-line { animation: sweep 1s cubic-bezier(.6, 0, .2, 1) forwards; }
#splash.run .sp-word { animation: rise .6s .25s cubic-bezier(.2, .7, .2, 1) forwards; }
#splash.run .sp-sub { animation: fadeup .6s .6s ease forwards; }
@keyframes sweep { 0% { width: 0; opacity: 1; } 70% { width: 320px; opacity: 1; } 100% { width: 320px; opacity: .35; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeup { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .card.special::before, .hero.special::before { animation: none; }
}
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cases { grid-template-columns: repeat(8, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
  .strip { grid-auto-columns: 180px; }
  .years { grid-template-columns: 1fr 1fr; }
}

/* hunt64 kare görseller: kenar boşluğunu kırp */
.card .ph img.fill { object-fit: cover; }
.hero img.fill { width: auto; height: min(66vh, 620px); aspect-ratio: 2 / 3; max-width: 100%; object-fit: cover; }

/* kaynak bilgisi ve yasal */
.credit { margin: 6px 4px 0; font-size: 12px; color: var(--dim); }
.credit a { color: var(--muted); text-decoration: underline; }
.foot a { color: var(--muted); text-decoration: underline; }
.srcs { width: 100%; border-collapse: collapse; margin-top: 4px; }
.srcs td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.srcs td:last-child { text-align: right; }
.srcs a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); }
.srcs small { display: block; color: var(--dim); font-size: 12px; }
.perm { font: 700 11px/1 var(--f-display); letter-spacing: .7px; padding: 4px 7px 3px; border-radius: 4px; white-space: nowrap; }
.perm.izinli { background: rgba(47, 208, 122, .15); color: var(--own); }
.perm.atifli { background: rgba(63, 159, 201, .15); color: var(--info-text); }
.perm.bekliyor { background: rgba(240, 180, 41, .14); color: var(--hunt); }
.perm.yok { background: var(--panel-2); color: var(--dim); }

/* tema seçici */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--panel-2); cursor: pointer; font: 700 16px/1 var(--f-display); letter-spacing: .5px; color: var(--text); }
.theme-opt.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.theme-opt i { width: 34px; height: 46px; border-radius: 7px; flex: none; position: relative; overflow: hidden; border: 1px solid rgba(128, 128, 128, .35); }
.theme-opt i::before, .theme-opt i::after { content: ""; position: absolute; left: 5px; right: 5px; height: 6px; border-radius: 2px; }
.theme-opt i::before { top: 7px; }
.theme-opt i::after { top: 18px; right: 12px; background: #ff5f1f; }
.theme-opt .dk { background: #0b0c0e; }
.theme-opt .dk::before { background: #2a2e35; }
.theme-opt .lt { background: #f3f2ef; }
.theme-opt .lt::before { background: #d9d6cf; }
