@font-face { font-family: "Geist"; src: url(fontlar/geist-latin-ext.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url(fontlar/geist-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(fontlar/geistmono-latin-ext.woff2) format("woff2"); font-weight: 400 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url(fontlar/geistmono-latin.woff2) format("woff2"); font-weight: 400 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tek atmosfer: koyu. Köşe kuralı: düğmeler tam hap (999px), paneller 14px. */
:root {
  --zemin: #0b0a10;
  --murekkep: #eceae2;
  --soluk: rgba(236, 234, 226, 0.62);
  --cizgi: rgba(236, 234, 226, 0.16);
  --vurgu: #ff6a3d;
  --vurgu-ust: #1c0c06;
  --panel: rgba(14, 12, 20, 0.78);
  --kenar: 28px;
  --yazi: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --egri: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--zemin); color: var(--murekkep);
  font-family: var(--yazi); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body::after { /* film grain: sabit, tıklanamaz katman */
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#tuval { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; z-index: 0; }
#tuval.surukle { cursor: grabbing; }
#tuval.isaret { cursor: pointer; }

/* Üst şerit */
.ust { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--kenar); padding-top: max(18px, env(safe-area-inset-top)); pointer-events: none; }
.ust > * { pointer-events: auto; }
.marka { color: var(--murekkep); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.ust-sag { display: flex; gap: 6px; }

/* Ölçek adı ve sayaçlar */
.olcek { position: fixed; z-index: 5; top: 74px; left: var(--kenar); right: var(--kenar); pointer-events: none; }
#olcekAdi { margin: 0; font-weight: 600; font-size: clamp(44px, 7.4vw, 108px); line-height: 1.02; letter-spacing: -0.045em;
  position: relative; height: 1.08em; padding-bottom: 0.1em; }
#olcekAdi span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 0.55s var(--egri), transform 0.7s var(--egri), filter 0.55s; }
#olcekAdi span.cikis { opacity: 0; transform: translateY(-0.32em); filter: blur(6px); }
#olcekAdi span.giris { opacity: 0; transform: translateY(0.32em); filter: blur(6px); }
.sayac { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 14px 0 0; }
.sayac div { display: grid; gap: 3px; }
.sayac dt { font-size: 11.5px; color: var(--soluk); letter-spacing: 0.01em; }
.sayac dd { margin: 0; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
#sGenislik { color: var(--vurgu); }
.sayac sup, .kozmik sup, .kart-bilgi sup { font-size: 0.68em; vertical-align: 0.55em; line-height: 0; margin-left: 1px; }

/* Alt şerit */
.alt { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 20px var(--kenar); padding-bottom: max(22px, env(safe-area-inset-bottom)); pointer-events: none; }
.alt > * { pointer-events: auto; }
.kozmik { display: grid; gap: 4px; max-width: 360px; }
.kozmik span { font-size: 11.5px; color: var(--soluk); }
.kozmik strong { font-family: var(--mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.kontrol { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.zoom { display: flex; gap: 4px; }

/* Düğmeler */
.dugme { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cizgi); color: var(--murekkep);
  background: rgba(16, 14, 22, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 13.5px/1 var(--yazi); white-space: nowrap; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.12s var(--egri); }
.dugme:hover { background: rgba(40, 36, 52, 0.7); border-color: rgba(236, 234, 226, 0.32); }
.dugme:active { transform: translateY(1px) scale(0.98); }
.dugme:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.dugme.birincil { background: var(--vurgu); color: var(--vurgu-ust); border-color: var(--vurgu); font-weight: 600; }
.dugme.birincil:hover { background: #ff8257; }
.dugme.hafif { background: transparent; border-color: transparent; backdrop-filter: none; color: var(--soluk); }
.dugme.hafif:hover { color: var(--murekkep); background: rgba(236, 234, 226, 0.08); }
.dugme.kare { width: 38px; padding: 0; font: 500 17px/1 var(--mono); }
.dugme[aria-pressed="false"] { opacity: 0.45; }

/* Yolculuk altyazısı ve ipucu */
.altyazi { position: fixed; z-index: 6; left: 50%; bottom: 112px; transform: translate(-50%, 8px); width: min(680px, calc(100% - 32px));
  margin: 0; text-align: center; font-weight: 500; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.6s var(--egri), transform 0.8s var(--egri); pointer-events: none; }
.altyazi.acik { opacity: 1; transform: translate(-50%, 0); }
.ipucu { position: fixed; z-index: 6; left: 50%; bottom: 96px; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--soluk);
  white-space: nowrap; transition: opacity 0.8s; pointer-events: none; }
.ipucu.gizli { opacity: 0; }
.uyari { position: fixed; z-index: 12; top: 64px; right: var(--kenar); margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--cizgi); font-size: 13px; }

/* Paneller */
.panel { background: var(--panel); border: 1px solid var(--cizgi); border-radius: 14px; color: var(--murekkep);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(4, 3, 8, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.katman-panel { position: fixed; z-index: 11; right: var(--kenar); bottom: 76px; padding: 10px; display: grid; gap: 2px; min-width: 250px; }
.katman-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--murekkep); font: 500 13.5px var(--yazi); text-align: left; cursor: pointer; }
.katman-panel button:hover { background: rgba(236, 234, 226, 0.07); }
.katman-panel button i { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.katman-panel button[aria-pressed="false"] { color: var(--soluk); }
.katman-panel button[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--soluk); }

/* Olay kartı */
.kart { position: fixed; z-index: 12; right: 24px; top: 50%; width: 380px; max-height: calc(100dvh - 160px); overflow: auto;
  transform: translateY(-50%); padding: 18px 22px 20px; background: var(--panel); border: 1px solid var(--cizgi); border-radius: 14px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(4, 3, 8, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: kartGiris 0.45s var(--egri); }
@keyframes kartGiris { from { opacity: 0; transform: translate(16px, -50%); } }
.kart-ust { display: flex; justify-content: space-between; align-items: center; margin: -4px -8px 6px 0; }
.kart-katman { font-size: 12px; font-weight: 600; }
.kart-tarih { margin: 4px 0 4px; font-family: var(--mono); font-size: 13px; color: var(--soluk); }
.kart h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.kart-metin { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: rgba(236, 234, 226, 0.86); }
.kart-bilgi { margin: 0 0 16px; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--cizgi); }
.kart-bilgi div { display: grid; gap: 3px; }
.kart-bilgi dt { font-size: 12px; color: var(--soluk); }
.kart-bilgi dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.kart-gezinti { display: flex; gap: 8px; }
.kart-gezinti .dugme { flex: 1; }

/* Kişisel diyalog */
dialog.kisisel { width: min(420px, calc(100% - 32px)); padding: 22px; }
dialog.kisisel::backdrop { background: rgba(6, 5, 10, 0.55); backdrop-filter: blur(3px); }
.kisisel form { display: grid; gap: 10px; }
.kisisel label { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.kisisel input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(236, 234, 226, 0.3); background: rgba(0, 0, 0, 0.3);
  color: var(--murekkep); font: 400 16px var(--mono); color-scheme: dark; }
.kisisel input:focus { outline: 2px solid var(--vurgu); outline-offset: 1px; }
.yardim { margin: 0; font-size: 13px; line-height: 1.5; color: var(--soluk); }
.vurgu-metin { color: var(--murekkep); }
.hata { margin: 0; font-size: 13px; color: #ff9a7a; }
.satir { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Telefon */
@media (max-width: 760px) {
  :root { --kenar: 16px; }
  .olcek { top: 56px; }
  #olcekAdi { font-size: clamp(38px, 11.5vw, 56px); }
  .sayac { gap: 6px 18px; margin-top: 10px; }
  .sayac dt { font-size: 10.5px; }
  .sayac dd { font-size: 12.5px; }
  .alt { flex-direction: column; align-items: stretch; gap: 12px; }
  .kozmik span { font-size: 10.5px; }
  .kozmik strong { font-size: 13px; }
  .kontrol { justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
  .kontrol .dugme { padding: 0 12px; font-size: 12.5px; }
  .kontrol .dugme.kare { padding: 0; }
  .zoom { display: none; }
  .altyazi { bottom: 150px; font-size: 17px; }
  .ipucu { bottom: 140px; font-size: 12px; white-space: normal; text-align: center; width: calc(100% - 32px); }
  .kart { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 58dvh; transform: none; border-radius: 14px 14px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom)); animation: kartAlttan 0.45s var(--egri); }
  @keyframes kartAlttan { from { opacity: 0; transform: translateY(40px); } }
  .katman-panel { left: 16px; right: 16px; bottom: 130px; }
}
@media (max-width: 760px) and (max-height: 620px) { .sayac { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .kart, .dugme { backdrop-filter: none; -webkit-backdrop-filter: none; background: #15131c; }
}
