/* ==========================================================
   3D küre arayüzü (ana sayfa)
   ========================================================== */
.page-home { overflow: hidden; height: 100vh; height: 100dvh; }
.page-home main { height: calc(100dvh - var(--top-h)); }
.atlas { position: relative; height: 100%; overflow: hidden; background: #02040a; touch-action: none; user-select: none; -webkit-user-select: none; }
.globe { position: absolute; inset: 0; }
.globe canvas { display: block; outline: none; }

/* Yükleniyor */
.loader { position: absolute; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 45%, #0e1d3a, #02040a 70%); transition: opacity .6s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-globe { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd0ff, #1b4f8a 45%, #06152b 75%); box-shadow: 0 0 40px rgba(124, 196, 255, .5), inset -10px -10px 30px rgba(0, 0, 0, .6); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(124, 196, 255, .7), inset -10px -10px 30px rgba(0, 0, 0, .6); } }
.loader p { color: var(--gold2); font-family: var(--display); letter-spacing: .06em; }
.webgl-error { position: absolute; inset: 0; z-index: 41; display: grid; place-content: center; text-align: center; padding: 30px; background: #05070f; }

/* Etiket katmanı */
.label-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.gl-label { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: auto; will-change: transform; transition: opacity .25s; font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; }
button.gl-label { cursor: pointer; }
.continent-label { pointer-events: none; font-family: var(--display); font-size: 1.15rem; letter-spacing: .35em; text-transform: uppercase; color: rgba(255, 236, 190, .55); text-shadow: 0 2px 10px #000; }
.country-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .9); padding: 2px 4px; border-radius: 6px; }
.country-label.has-content { color: #fff; font-size: .82rem; }
.lvl-world .country-label.has-content { font-size: .92rem; }
.country-label img { border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.country-label:hover { color: var(--gold2); background: rgba(0, 0, 0, .35); }
.city-label { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: #e8eefc; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.city-label .pin { width: 7px; height: 7px; border-radius: 50%; background: #cfd6e4; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); flex-shrink: 0; }
.city-label.has-content .pin { background: var(--gold); }
.city-label.capital .pin { width: 9px; height: 9px; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.city-label.has-content { color: #fff; }
.city-label:hover span { color: var(--gold2); text-decoration: underline; }
.hist-label { pointer-events: none; font-family: var(--display); font-size: .78rem; font-weight: 700; color: #fff7e0; letter-spacing: .05em; text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .9); }

/* İşaretler (savaş / yapı / medeniyet) */
.marker { width: 26px; height: 26px; }
.marker .mk { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; line-height: 1; box-shadow: 0 3px 10px rgba(0, 0, 0, .6); transition: transform .15s; }
.marker:hover .mk { transform: scale(1.18); }
.mk-battle { background: radial-gradient(circle, #e04848, #8e1414); color: #fff; border: 1.5px solid #ffcf7a; }
.mk-landmark { background: radial-gradient(circle, #f6d58a, #b9811c); border: 1.5px solid #fff3d0; }
.mk-civ { background: radial-gradient(circle, #9e7bff, #4c2fa8); color: #fff; border: 1.5px solid #e0d4ff; }
.marker .t { position: absolute; left: 31px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; line-height: 1.15; font-size: .74rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; pointer-events: none; }
.marker .t small { font-weight: 500; color: var(--gold2); font-size: .66rem; }
.lvl-world .marker .t, .marker.collided .t { display: none; }
.lvl-world .marker { transform-origin: center; }
.lvl-world .marker .mk { width: 20px; height: 20px; font-size: 10px; }
.marker.civ .t { color: #e6dcff; }

/* Kontroller */
.map-controls { position: absolute; z-index: 20; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.map-controls button, .badge-3d { width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; }
.map-controls button:hover { border-color: var(--gold); background: rgba(232, 176, 74, .14); }
.map-controls button[aria-pressed="true"], .map-controls button[aria-expanded="true"] { border-color: var(--gold); color: var(--gold2); }
.map-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-3d { font-family: var(--display); font-weight: 700; color: var(--gold2); border: 1.5px solid var(--gold); background: radial-gradient(circle, rgba(232, 176, 74, .25), transparent 70%); cursor: default; }

.layers-panel { position: absolute; z-index: 21; left: 84px; top: 50%; transform: translateY(-50%); width: 250px; max-height: calc(100% - 140px); overflow: auto; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.layers-panel h2 { font-size: 1rem; margin-bottom: 10px; }
.layers-panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; font-family: var(--font); }
.layers-panel label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .9rem; cursor: pointer; }
.layers-panel input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
.layers-panel select { width: 100%; margin: 4px 0; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; font-size: .88rem; }
.layers-panel .quality { flex-direction: column; align-items: stretch; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-battle { background: #e04848; } .dot-landmark { background: var(--gold); } .dot-civ { background: #9e7bff; } .dot-route { background: #4ecdc4; }

.level-indicator { position: absolute; z-index: 19; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); white-space: nowrap; }
.lvl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.level-indicator[data-level="country"] .lvl-dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.level-indicator[data-level="city"] .lvl-dot { background: #ff6b6b; box-shadow: 0 0 10px #ff6b6b; }
.center-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(232, 176, 74, .18); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 10px; color: var(--gold2); cursor: pointer; font-size: .78rem; }
.center-chip img { border-radius: 2px; }
.hover-tip { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: rgba(5, 7, 15, .9); border: 1px solid var(--gold); color: var(--gold2); font-weight: 700; font-size: .85rem; }

/* Bilgi paneli */
.info-panel { position: absolute; z-index: 30; top: 14px; right: 14px; bottom: 104px; width: 420px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(14, 22, 44, .94), rgba(7, 11, 24, .96)); border: 1px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 1px rgba(232, 176, 74, .25), var(--shadow), 0 0 40px rgba(232, 176, 74, .12); backdrop-filter: blur(14px); transform: translateX(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.info-panel.open { transform: none; }
.panel-close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.panel-body { overflow-y: auto; padding: 0 18px 18px; flex: 1; overscroll-behavior: contain; }
.panel-body h3 { font-size: .95rem; color: var(--gold2); margin: 16px 0 8px; font-family: var(--font); }
.panel-hero { position: relative; margin: 0 -18px 12px; min-height: 170px; display: flex; align-items: flex-end; padding: 14px 18px; background: linear-gradient(180deg, transparent 20%, rgba(7, 11, 24, .95)), linear-gradient(135deg, #1b2c55, #0b1224); background-size: cover; background-position: center; border-radius: 17px 17px 0 0; }
.panel-hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(7, 11, 24, .1) 15%, rgba(7, 11, 24, .97)); pointer-events: none; }
.panel-hero.small { min-height: 120px; }
.panel-title { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.panel-title h2 { font-size: 1.7rem; margin: 0; }
.panel-title p { margin: 0; color: var(--gold2); font-size: .9rem; }
.panel-title .flag { border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.eyebrow { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold2); }
.ptabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 12px; padding-bottom: 2px; }
.ptabs button { flex-shrink: 0; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04); font-size: .8rem; cursor: pointer; }
.ptabs button.active { border-color: var(--gold); background: linear-gradient(180deg, rgba(232, 176, 74, .3), rgba(232, 176, 74, .08)); color: var(--gold2); }
.summary { color: #dfe5f1; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.fact span { font-size: .72rem; color: var(--muted); }
.fact strong { font-size: .86rem; }
.era-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.era-mini { position: relative; min-height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #1d2c50, #0c1328) center/cover; display: flex; align-items: flex-end; }
.era-mini::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .85)); }
.era-txt { position: relative; padding: 8px; display: flex; flex-direction: column; line-height: 1.2; }
.era-txt strong { font-size: .82rem; }
.era-txt small { font-size: .68rem; color: var(--gold2); }
.ptimeline { list-style: none; padding: 0; margin: 0; }
.ptimeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.ptimeline .d { font-size: .78rem; font-weight: 700; color: var(--gold2); }
.ptimeline p { margin: 3px 0 0; font-size: .85rem; color: #c4ccdb; }
.ptimeline li.cat-war .d { color: #ff9b9b; }
.ptimeline li.cat-disaster .d { color: #ffb47c; }
.plist { list-style: none; padding: 0; margin: 0; }
.plist li > a, .plist.people li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.plist li > a:hover { background: rgba(232, 176, 74, .1); }
.plist span { display: flex; flex-direction: column; }
.plist small { color: var(--muted); font-size: .76rem; }
.plist .mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.plist .pin { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin: 0 8px; flex-shrink: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* Zaman makinesi */
.timebar { position: absolute; z-index: 25; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.tm-title { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--gold); border-radius: 14px; flex-shrink: 0; }
.tm-title svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.tm-title span { display: flex; flex-direction: column; line-height: 1.15; }
.tm-title strong { color: var(--gold2); font-family: var(--display); }
.tm-title small { color: var(--muted); font-size: .72rem; }
.tm-track { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex: 1; justify-content: space-between; gap: 4px; position: relative; overflow-x: auto; scrollbar-width: none; }
.tm-track::before { content: ''; position: absolute; left: 20px; right: 20px; top: 18px; height: 2px; background: linear-gradient(90deg, rgba(232, 176, 74, .2), var(--gold), rgba(232, 176, 74, .2)); }
.tm-stop { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 8px 4px; min-width: 84px; background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; line-height: 1.15; }
.tm-dot { position: absolute; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: #1a1205; border: 2px solid var(--gold); }
.tm-stop strong { font-size: .92rem; margin-top: 6px; }
.tm-stop small { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.tm-stop:hover { background: rgba(232, 176, 74, .08); }
.tm-stop.active { border-color: #ff7a5a; background: linear-gradient(180deg, rgba(214, 40, 40, .45), rgba(120, 20, 20, .35)); box-shadow: 0 0 20px rgba(214, 40, 40, .35); }
.tm-stop.active .tm-dot { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.tm-stop.active small { color: #ffe1c4; }
.period-card { position: absolute; z-index: 26; left: 84px; bottom: 104px; width: 360px; max-height: calc(100% - 140px); overflow: auto; padding: 16px 18px; background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.period-card h3 { font-family: var(--display); font-size: 1.3rem; margin: 2px 0 6px; }
.period-card h3 small { font-family: var(--font); font-size: .8rem; color: var(--muted); }
.period-card h4 { font-size: .85rem; color: var(--gold2); margin: 12px 0 6px; }
.period-card p { font-size: .88rem; }
.legend-precision { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl { display: inline-block; width: 22px; height: 0; border-top: 2px solid rgba(255, 240, 210, .9); }
.pl-weak { border-top: 2px dashed rgba(255, 240, 210, .45); }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .info-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 20px 20px 0 0; transform: translateY(105%); border-bottom: 0; }
  .info-panel.open { transform: none; z-index: 35; }
  .info-panel::before { content: ''; position: absolute; top: 7px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgba(255, 255, 255, .3); z-index: 4; }
  .panel-hero { border-radius: 19px 19px 0 0; min-height: 140px; }
  .period-card { left: 10px; right: 10px; width: auto; bottom: 96px; max-height: 45%; }
  .layers-panel { left: 70px; top: 70px; transform: none; max-height: calc(100% - 180px); }
}
@media (max-width: 640px) {
  .map-controls { left: 8px; top: 64px; transform: none; padding: 5px; gap: 4px; }
  .map-controls button, .badge-3d { width: 38px; height: 38px; }
  .badge-3d { display: none; }
  .layers-panel { left: 56px; top: 64px; width: calc(100% - 66px); }
  .level-indicator { top: 10px; font-size: .72rem; padding: 5px 10px; max-width: calc(100% - 20px); }
  .timebar { left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; gap: 6px; border-radius: 14px; }
  .tm-title { display: none; }
  .tm-stop { min-width: 70px; padding: 8px 4px 2px; }
  .tm-stop strong { font-size: .8rem; }
  .tm-stop small { font-size: .6rem; }
  .country-label { font-size: .64rem; }
  .country-label.has-content { font-size: .72rem; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .continent-label { font-size: .9rem; letter-spacing: .2em; }
}
.level-indicator { max-width: calc(100% - 120px); overflow: hidden; }
#level-text { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .level-indicator:has(.center-chip) #level-text, .level-indicator:has(.center-chip) .lvl-dot { display: none; }
}

/* ---------- Şehir tarihsel olaylar sistemi ---------- */
.dot-quake { background: #ff7a2f; } .dot-disaster { background: #3fa7ff; } .dot-ancient { background: #c99a5b; } .dot-event { background: #e6d3a3; }
.layers-panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.all-btns { display: inline-flex; gap: 4px; }
.all-btns button { font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--text); }
.range-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.range-row input { width: 100%; min-width: 0; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; font-size: .88rem; }
.marker.quake { width: auto; height: auto; }
.mk-quake { width: var(--s, 26px) !important; height: var(--s, 26px) !important; background: radial-gradient(circle, #ffb057 0%, #ff6a1f 45%, rgba(200,40,20,.9) 100%); color: #1a0800; font-weight: 800; font-size: 10px !important; border: 1.5px solid #fff1d6; box-shadow: 0 0 0 4px rgba(255,106,31,.25), 0 3px 10px rgba(0,0,0,.6) !important; }
.lvl-world .mk-quake { font-size: 0 !important; }
.mk-disaster { background: radial-gradient(circle, #6cc4ff, #1f6fb8); border: 1.5px solid #e2f3ff; }
.mk-fire, .mk-volcano { background: radial-gradient(circle, #ffcb6b, #d9480f); border-color: #fff0d0; }
.mk-epidemic { background: radial-gradient(circle, #b7e07a, #4d7c1f); }
.mk-event { background: radial-gradient(circle, #f3e6c4, #a88a4a); border: 1.5px solid #fff8e6; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 12px 0; }
.cat-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; line-height: 1.15; }
.cat-chip:hover { border-color: var(--gold); background: rgba(232,176,74,.1); }
.cat-chip .ci { grid-row: 1 / 3; font-size: 1.25rem; }
.cat-chip .cl { font-size: .7rem; color: #cfd6e4; }
.cat-chip b { font-size: .95rem; color: var(--gold2); }
.cat-chip b small { font-weight: 500; font-size: .66rem; color: var(--muted); margin-left: 4px; }
.cat-chip.empty { opacity: .5; }
.cat-chip.empty b { color: var(--muted); }
.cat-sec { border: 1px solid var(--line-soft); border-radius: 12px; margin: 8px 0; background: rgba(255,255,255,.025); scroll-margin-top: 10px; }
.cat-sec summary { cursor: pointer; padding: 10px 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.cat-sec summary::-webkit-details-marker { display: none; }
.cat-sec summary b { margin-left: auto; color: var(--gold2); }
.cat-sec[open] summary { border-bottom: 1px solid var(--line-soft); }
.cat-sec > ul, .cat-sec > ol, .cat-sec > p { margin: 8px 10px; }
.cat-sec .none { color: var(--muted); font-size: .86rem; }
.near-h { font-size: .8rem; color: var(--gold2); margin: 10px 10px 4px !important; }
.near-h small { color: var(--muted); font-weight: 400; }
.plist.near a { opacity: .85; }
.mk-mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.06); flex-shrink: 0; }
.pl-route { display: flex; align-items: center; gap: 10px; padding: 8px; }
.rulers { list-style: none; padding: 0; }
.rulers li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.rulers .d { font-size: .74rem; color: var(--gold2); font-weight: 700; }
.rulers p { margin: 2px 0 0; font-size: .82rem; color: #c4ccdb; }
.ptimeline li.empty { display: block; color: var(--muted); }
.ptimeline.clickable li { padding: 0; display: block; }
.ptimeline.clickable li > a { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 4px; color: var(--text); text-decoration: none; border-radius: 8px; }
.ptimeline.clickable li > a:hover { background: rgba(232,176,74,.08); }
.ptimeline .ki { font-size: .9rem; }
.ptimeline .loc { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.ptimeline li.cat-earthquake .d { color: #ffab6b; }
.ptimeline li.cat-fire .d, .ptimeline li.cat-flood .d, .ptimeline li.cat-storm .d, .ptimeline li.cat-volcano .d, .ptimeline li.cat-epidemic .d { color: #8fd0ff; }
.back-city { margin: 12px 0 0; }
.quake-hero { background: linear-gradient(135deg, #3a1608, #12070a); }
.quake-facts .fact strong small { font-weight: 400; color: var(--muted); }
.srcs { margin-top: 12px; font-size: .84rem; }
.srcs ol { padding-left: 18px; margin: 6px 0; }
.prose-sm p { font-size: .92rem; color: #d6dcea; }
/* Programatik kaydırmanın küre alanını kaydırmasını engelle */
.atlas { overflow: clip; }
.page-home, .page-home main { overflow: clip; }

/* =====================================================================
   v3 — Referans tasarım: sinematik küre, altın panel, bayraklı etiketler
   ===================================================================== */
.atlas { background: radial-gradient(ellipse at 30% 40%, #0a1a3a 0%, #02040a 65%); }
.sky-decor { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.sun-flare { position: absolute; left: 6%; top: 2%; width: 520px; height: 520px; transform: translate(-30%, -30%);
  background:
    radial-gradient(circle, rgba(255,255,240,1) 0 2.2%, rgba(255,226,150,.95) 3.5%, rgba(255,190,80,.55) 9%, rgba(255,150,40,.18) 22%, transparent 45%),
    conic-gradient(from 0deg, transparent 0 8deg, rgba(255,220,150,.22) 10deg, transparent 13deg 52deg, rgba(255,220,150,.18) 55deg, transparent 58deg 100deg, rgba(255,220,150,.2) 103deg, transparent 106deg 160deg, rgba(255,220,150,.16) 163deg, transparent 166deg 215deg, rgba(255,220,150,.2) 218deg, transparent 221deg 280deg, rgba(255,220,150,.16) 283deg, transparent 286deg 330deg, rgba(255,220,150,.2) 333deg, transparent 336deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 60%); mask: radial-gradient(circle, #000 0 30%, transparent 60%);
  mix-blend-mode: screen; opacity: .95; animation: flare 9s ease-in-out infinite alternate; }
@keyframes flare { to { opacity: .75; transform: translate(-30%, -30%) rotate(8deg) scale(1.04); } }
.moon { position: absolute; top: 4%; right: calc(min(520px, 34vw) + 70px); width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e9edf2 0%, #b8bec8 35%, #6b7380 70%, #2a2f38 100%);
  box-shadow: inset -14px -10px 22px rgba(0,0,0,.65), 0 0 24px rgba(200,215,255,.18); opacity: .9; }
.moon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 60% 40%, rgba(80,85,95,.55) 0 7%, transparent 8%), radial-gradient(circle at 40% 62%, rgba(80,85,95,.45) 0 9%, transparent 10%),
  radial-gradient(circle at 70% 70%, rgba(80,85,95,.4) 0 5%, transparent 6%), radial-gradient(circle at 30% 35%, rgba(90,95,105,.35) 0 5%, transparent 6%); }
.lvl-city .sky-decor, .lvl-country .moon { opacity: 0; transition: opacity .6s; }
.sky-decor { transition: opacity .6s; }

/* Bayraklı ülke etiketleri */
.country-label { font-family: var(--font); }
.country-label.has-content { flex-direction: column; gap: 3px; font-size: 1.02rem; letter-spacing: .05em; font-weight: 800; color: #fff;
  text-shadow: 0 2px 4px #000, 0 0 12px rgba(0,0,0,.95), 0 0 2px #000; padding: 0; }
.lvl-world .country-label.has-content { font-size: 1.12rem; }
.flag-pin { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: block; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4); background: #fff; }
.flag-pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.country-label:not(.has-content) { color: rgba(255,255,255,.82); font-weight: 700; }
.sel-pin { pointer-events: none; transform-origin: 50% 100%; }
.sel-pin svg { width: 26px; height: 34px; display: block; filter: drop-shadow(0 0 8px rgba(255,190,70,.9)); transform: translateY(-14px); animation: pinbob 1.6s ease-in-out infinite; }
.sel-pin path { fill: #f0b443; stroke: #fff2c8; stroke-width: 1.2; }
.sel-pin circle { fill: #7a2a05; }
@keyframes pinbob { 50% { transform: translateY(-20px); } }

/* Kontrol rayı (altın) */
.map-controls { padding: 10px 8px; gap: 8px; border: 1.5px solid rgba(240,180,67,.65); background: linear-gradient(180deg, rgba(10,18,40,.92), rgba(5,9,22,.92)); box-shadow: 0 0 22px rgba(240,180,67,.18), var(--shadow); }
.badge-3d { width: 52px; height: 52px; font-size: 1.15rem; border: 2px solid #f0b443; color: #ffe2a0; box-shadow: 0 0 14px rgba(240,180,67,.45), inset 0 0 10px rgba(240,180,67,.25); }
.map-controls button { width: 50px; height: 50px; color: #fff; }
.map-controls svg { width: 26px; height: 26px; }

/* Bilgi paneli — referans tasarım */
.info-panel { top: 12px; right: 18px; bottom: 122px; width: min(520px, 34vw); border: 1.5px solid #f0b443; border-radius: 22px;
  background: linear-gradient(180deg, rgba(10,18,42,.97), rgba(5,9,24,.98));
  box-shadow: 0 0 0 1px rgba(255,217,135,.25), 0 0 34px rgba(240,180,67,.28), inset 0 0 40px rgba(240,180,67,.05), 0 20px 50px rgba(0,0,0,.6); }
.panel-body { padding: 0 18px 18px; }
.info-panel > .panel-close { top: 16px; right: 16px; }
.cp-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 14px; padding-right: 0; }
.cp-flag { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.15); flex-shrink: 0; }
.cp-name { flex: 1; min-width: 0; }
.cp-name h2 { font-family: var(--display); font-size: 2.2rem; margin: 0; color: #fff; line-height: 1.05; }
.cp-name p { margin: 4px 0 0; color: #fff; font-weight: 600; font-size: 1.02rem; }
.cp-ico { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(240,180,67,.5); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; flex-shrink: 0; }
.cp-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.cp-ico.on, .cp-ico:hover { color: #ffcf4d; border-color: #f0b443; box-shadow: 0 0 12px rgba(240,180,67,.45); }
.info-panel:has(.cp-head) > .panel-close { top: -13px; right: -13px; width: 32px; height: 32px; font-size: 1.05rem; background: #0a1228; border-color: #f0b443; }
.cp-hero { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #3a2a50, #0d1430) center/cover no-repeat; border: 1px solid rgba(255,255,255,.08); }
.cp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,9,24,.75)); pointer-events: none; }
.cp-play { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.55); display: grid; place-items: center; cursor: pointer; }
.cp-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.cp-play.on { border-color: #f0b443; box-shadow: 0 0 14px rgba(240,180,67,.7); }
.cp-hero-cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: .78rem; color: #ffe2a0; text-shadow: 0 1px 3px #000; }
.cp-hero .img-credit { right: auto; left: 8px; top: 8px; bottom: auto; }
.cp-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 12px; }
.cp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 600; color: #e8ecf5; }
.cp-tabs .ico { width: 28px; height: 28px; fill: none; stroke: #f3f4f7; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cp-tabs button:hover { background: rgba(255,255,255,.05); }
.cp-tabs button.active { border-color: #f0b443; background: linear-gradient(180deg, rgba(240,180,67,.38), rgba(150,90,10,.2)); box-shadow: 0 0 14px rgba(240,180,67,.3); color: #fff; }
.cp-tabs button.tab-red .ico { stroke: #ff5246; filter: drop-shadow(0 0 3px rgba(255,80,60,.6)); }
.cp-tabs button.tab-red.active { border-color: #ff5a3c; background: linear-gradient(180deg, rgba(214,40,40,.5), rgba(120,20,20,.3)); box-shadow: 0 0 14px rgba(255,80,60,.4); }
.ptab .summary { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); font-size: .98rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); min-width: 0; }
.stat .ico { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: #ffc14d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.stat span { font-size: .72rem; color: #cfd6e4; }
.stat strong { font-size: .9rem; color: #fff; overflow-wrap: anywhere; }
.stat small { font-size: .62rem; color: var(--muted); }
.quake-box { border: 1.5px solid rgba(240,180,67,.7); border-radius: 14px; padding: 10px 12px 12px; margin: 12px 0; background: linear-gradient(180deg, rgba(80,30,10,.18), rgba(255,255,255,.02)); box-shadow: inset 0 0 20px rgba(240,180,67,.06); }
.quake-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; color: #fff !important; font-size: 1rem !important; font-weight: 700; }
.ico.red { width: 26px; height: 26px; fill: none; stroke: #ff4b3a; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255,75,58,.7)); }
.ico.sm { width: 14px; height: 14px; fill: none; stroke: #cfd6e4; stroke-width: 1.8; flex-shrink: 0; }
.qb-in { display: grid; grid-template-columns: 140px 1fr 22px; gap: 12px; align-items: center; }
.qb-img { position: relative; height: 92px; border-radius: 10px; background: #2a2a30 center/cover; filter: grayscale(1) contrast(1.1); display: block; }
.qb-in ul { list-style: none; margin: 0; padding: 0; }
.qb-in li a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: #eef1f7; text-decoration: none; font-size: .82rem; }
.qb-in li a:hover { color: #ffd987; }
.qn, .qm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm { color: #fff; font-weight: 700; }
.qb-more { background: none; border: 0; color: #ffd987; font-size: 2rem; cursor: pointer; line-height: 1; }
.cp-h3 { color: #fff !important; font-size: 1.05rem !important; margin: 14px 0 8px !important; font-weight: 700; }
.era-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.era-card2 { position: relative; height: 110px; border-radius: 10px; overflow: hidden; border: 1.5px solid rgba(240,180,67,.6); background: linear-gradient(135deg, #3a2a18, #120a05) center/cover; display: flex; align-items: flex-end; }
.era-card2::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.88)); }
.era-card2 > div { position: relative; padding: 7px 8px; display: flex; flex-direction: column; line-height: 1.15; }
.era-card2 strong { font-size: .86rem; color: #fff; }
.era-card2 small { font-size: .66rem; color: #fff; opacity: .9; }
.era-card2 .img-credit { top: 4px; right: 4px; bottom: auto; }
.cp-cta { margin: 16px auto 4px; width: 78%; font-size: 1.05rem; padding: 12px 18px; border-radius: 14px; background: linear-gradient(180deg, #ffd56e, #e3a02a 55%, #b9751a); color: #2a1702; box-shadow: 0 0 22px rgba(240,180,67,.45), inset 0 1px 0 rgba(255,245,210,.7); }
.atlas-toast { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -10px); z-index: 60; background: rgba(5,9,24,.95); border: 1px solid #f0b443; color: #ffe2a0; padding: 8px 16px; border-radius: 999px; font-size: .88rem; opacity: 0; transition: .25s; pointer-events: none; }
.atlas-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Zaman makinesi — referans tasarım */
.timebar { left: 18px; right: 18px; bottom: 12px; padding: 10px 14px; border: 1.5px solid rgba(240,180,67,.55); border-radius: 22px; background: linear-gradient(180deg, rgba(8,14,32,.94), rgba(4,7,18,.96)); box-shadow: 0 0 24px rgba(240,180,67,.15), var(--shadow); }
.tm-title { border: 2px solid #f0b443; border-radius: 18px; padding: 8px 18px 8px 10px; box-shadow: 0 0 14px rgba(240,180,67,.3), inset 0 0 12px rgba(240,180,67,.1); }
.tm-title svg { width: 44px; height: 44px; stroke: #f0b443; stroke-width: 1.7; }
.tm-title strong { font-size: 1.12rem; color: #ffd987; }
.tm-title small { color: #fff; font-size: .84rem; }
.tm-track::before { top: 17px; height: 3px; background: linear-gradient(90deg, rgba(240,180,67,.25), #f0b443 20%, #f0b443 80%, rgba(240,180,67,.25)); box-shadow: 0 0 8px rgba(240,180,67,.5); }
.tm-dot { width: 15px; height: 15px; top: -3px; border: 2.5px solid #f0b443; background: #1a1205; }
.tm-stop strong { font-size: 1rem; color: #fff; }
.tm-stop small { color: #e2e6ee; font-size: .74rem; }
.tm-stop.active { border: 2px solid #ff6a3d; background: linear-gradient(180deg, rgba(214,40,40,.55), rgba(110,15,15,.45)); box-shadow: 0 0 24px rgba(255,80,50,.55), inset 0 0 12px rgba(255,120,80,.25); }
.tm-stop.active .tm-dot { background: #ffb347; border-color: #fff1c8; box-shadow: 0 0 14px #ffb347; width: 20px; height: 20px; top: -6px; }
.tm-stop.active strong { font-size: 1.2rem; }

@media (max-width: 1280px) { .cp-name h2 { font-size: 1.8rem; } .cp-flag { width: 92px; height: 62px; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .era-grid { grid-template-columns: repeat(2, 1fr); } .cp-tabs button span { font-size: .64rem; } }
@media (max-width: 980px) {
  .info-panel { top: auto; width: auto; left: 0; right: 0; bottom: 0; max-height: 78%; border-radius: 20px 20px 0 0; }
  .info-panel:has(.cp-head) > .panel-close { top: 8px; right: 8px; }
  .cp-head { padding-right: 34px; }
  .cp-hero { height: 110px; }
  .moon { right: 20px; width: 56px; height: 56px; }
  .sun-flare { width: 360px; height: 360px; }
  .cp-tabs { grid-template-columns: repeat(7, minmax(56px, 1fr)); overflow-x: auto; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .era-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .cp-flag { width: 72px; height: 48px; }
  .cp-name h2 { font-size: 1.6rem; }
  .cp-ico { width: 38px; height: 38px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .era-grid { grid-template-columns: repeat(2, 1fr); }
  .qb-in { grid-template-columns: 96px 1fr 18px; }
  .flag-pin { width: 26px; height: 26px; }
  .country-label.has-content { font-size: .82rem; }
  .tm-stop.active strong { font-size: 1rem; }
}

.search input { flex: 0 1 0; }
.search:focus-within input { flex: 1 1 auto; }
.sel-pin svg { transform: translateY(40px); animation: pinbob2 1.6s ease-in-out infinite; }
@keyframes pinbob2 { 50% { transform: translateY(34px); } }
.qb-in ul { min-width: 0; }
.qb-in li a { min-width: 0; }
.qn { flex: 1; min-width: 0; }
.qn, .qm { overflow: hidden; text-overflow: ellipsis; }
.qm { flex-shrink: 0; }

/* v3.1 — dokunmatik kaydırma, katman paneli, il etiketleri */
.layers-panel, .info-panel .panel-body, .period-card, .search-results { touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.layers-panel label { min-height: 36px; }
.all-btns button { padding: 6px 12px; font-size: .78rem; min-height: 30px; }
.all-btns button:active { background: rgba(240,180,67,.3); }
.city-label.il span { font-weight: 700; }
.city-label.il .pin { background: #ffd987; }
@media (max-width: 980px) {
  .layers-panel { top: 64px; bottom: 112px; max-height: none; }
}
@media (hover: none) { .hover-tip { display: none !important; } }
.atlas-toast { white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }

/* ================= v4 — CesiumJS + Three.js hibrit motor ================= */
:root { --elec: #3fd2ff; --elec-soft: rgba(63, 210, 255, .35); }
.engine-cesium .sky-decor { display: none; }                /* gerçek Güneş, Ay ve yıldızlar Cesium tarafından çizilir */
.engine-cesium #globe, .engine-cesium #labels { transform: translateX(var(--view-shift, 0px)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.engine-cesium .globe .cesium-viewer, .engine-cesium .globe .cesium-widget, .engine-cesium .globe canvas { width: 100%; height: 100%; }
.engine-cesium .globe .cesium-widget canvas { outline: none; }
.cz-three { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cz-rings { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.cz-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cz-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 196, 80, .9); box-shadow: 0 0 18px rgba(255, 180, 60, .55), inset 0 0 12px rgba(255, 180, 60, .35); animation: czpulse 1.8s ease-out infinite; }
.cz-ring i + i { animation-delay: .9s; border-color: rgba(63, 210, 255, .8); box-shadow: 0 0 16px var(--elec-soft); }
@keyframes czpulse { 0% { transform: scale(.15); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.cz-credits { position: absolute; z-index: 6; right: 10px; bottom: 96px; max-width: min(560px, 60vw); font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, .55); text-align: right; pointer-events: auto; }
.cz-credits .cesium-credit-textContainer, .cz-credits a { color: rgba(255, 255, 255, .65) !important; }
.cz-credits .cesium-credit-logoContainer img { max-height: 16px; opacity: .7; }
.cz-credits .cesium-credit-expand-link { color: var(--gold2) !important; }
.cz-badge { position: absolute; z-index: 7; left: 84px; bottom: 98px; display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: min(640px, calc(100% - 120px)); pointer-events: none; }
.cz-badge span { font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: rgba(4, 10, 24, .72); border: 1px solid rgba(63, 210, 255, .28); color: #cfeeff; backdrop-filter: blur(8px); box-shadow: 0 0 12px rgba(63, 210, 255, .08); }
.cz-badge[data-level="space"] span:not(:first-child) { border-color: rgba(240, 180, 67, .35); color: #f6e2b5; }
.cz-space-cta { position: absolute; z-index: 9; left: 50%; top: 74px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--elec); background: linear-gradient(180deg, rgba(14, 32, 64, .9), rgba(4, 10, 26, .9)); color: #e6f8ff; font-weight: 600; box-shadow: 0 0 24px rgba(63, 210, 255, .35); animation: ctaIn .5s ease; }
.cz-space-cta:hover { text-decoration: none; border-color: var(--gold); color: var(--gold2); }
@keyframes ctaIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.map-controls .ctl-space { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #bfefff; border: 1px solid rgba(63, 210, 255, .45); background: radial-gradient(circle, rgba(63, 210, 255, .18), transparent 70%); }
.map-controls .ctl-space:hover { border-color: var(--gold); color: var(--gold2); }

/* Şehre inme düğmeleri */
.dive-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.dive-btn { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(63, 210, 255, .45); background: linear-gradient(160deg, rgba(20, 60, 110, .45), rgba(6, 14, 30, .7)); color: #e8f7ff; cursor: pointer; box-shadow: inset 0 0 18px rgba(63, 210, 255, .08); }
.dive-btn span { grid-row: span 2; font-size: 1.35rem; }
.dive-btn b { font-size: .86rem; }
.dive-btn small { font-size: .7rem; color: #9fc6dc; }
.dive-btn:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(240, 180, 67, .22); }

/* Holografik panel dokunuşları (altın + elektrik mavisi) */
.info-panel { border-image: none; }
.info-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(63, 210, 255, .10), transparent 30%, transparent 70%, rgba(240, 180, 67, .10)); mix-blend-mode: screen; }
.info-panel { box-shadow: 0 0 0 1px rgba(63, 210, 255, .18), 0 0 40px rgba(63, 210, 255, .10), var(--shadow); }
.level-indicator { border-color: rgba(63, 210, 255, .35); }

@media (max-width: 980px) {
  .cz-badge { left: 10px; right: 10px; bottom: 150px; max-width: none; }
  .cz-badge span { font-size: .66rem; }
  .cz-credits { bottom: 128px; right: 6px; max-width: 70vw; font-size: 9px; }
  .cz-space-cta { top: 60px; font-size: .85rem; }
  .engine-cesium #globe, .engine-cesium #labels { transform: none; }
}
@media (max-width: 980px) {
  .cz-badge { flex-wrap: nowrap; overflow: hidden; }
  .cz-badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
  .cz-badge span:nth-child(n+3) { display: none; }
}
.cz-tiles { position: absolute; z-index: 7; left: 50%; top: 12px; transform: translateX(-50%); padding: 5px 12px 5px 30px; border-radius: 999px; background: rgba(4, 10, 24, .82); border: 1px solid rgba(63, 210, 255, .4); color: #cfe3f1; font-size: .76rem; pointer-events: none; }
.cz-tiles::before { content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid rgba(63, 210, 255, .3); border-top-color: #3fd2ff; animation: czspin .8s linear infinite; }
@keyframes czspin { to { transform: rotate(360deg); } }
.cz-diag { position: absolute; z-index: 30; left: 8px; right: 8px; top: 60px; margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .8); color: #9ff; font: 11px/1.4 ui-monospace, monospace; white-space: pre-wrap; pointer-events: none; }

/* ==== Depremler: fay hatları, plakalar, deprem katmanları ==== */
.seis-panel { margin: 2px 0 8px 22px; padding: 8px 10px; border-left: 2px solid rgba(229, 56, 59, .55); background: rgba(229, 56, 59, .06); border-radius: 0 10px 10px 0; display: grid; gap: 4px; }
.seis-panel label { font-size: .86rem; }
.seis-panel small { font-size: .7rem; }
.seis-range { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; }
.seis-range input { width: 76px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: inherit; font: inherit; }
.seis-range button, .seis-presets button, #seis-systems button { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(240, 180, 67, .55); background: rgba(240, 180, 67, .1); color: var(--gold2, #f5d38a); font: 600 .76rem var(--font); cursor: pointer; }
.seis-presets, #seis-systems { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
#seis-systems button { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 18%, transparent); }
.seis-status { margin: 2px 0; font-size: .76rem; color: #9fd8ff; }
.seis-status.warn { color: #ffb4a0; }
.seis-legend { display: grid; gap: 4px; font-size: .72rem; color: #cfd8e3; }
.seis-legend .lg-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.seis-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); display: inline-block; }
.lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 6px var(--c); display: inline-block; vertical-align: middle; }
.lg-line.dash { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }
.lg-ramp { width: 60px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 230, 110, .5), #ff961e, #e62828, #96148c); display: inline-block; }
.seis-sys summary { cursor: pointer; font-size: .8rem; color: var(--gold2, #f5d38a); margin: 4px 0; }
.seis-facts { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 10px 0; font-size: .86rem; }
.seis-facts dt { color: #9fb5c8; }
.seis-facts dd { margin: 0; color: #f1f5f9; }
.seis-h { margin: 14px 0 6px; font-size: .92rem; color: var(--gold2, #f5d38a); }
.seis-quakes { margin: 0; padding-left: 18px; font-size: .86rem; }
.seis-quakes li { margin: 2px 0; }
.seis-src { margin: 0; padding-left: 18px; font-size: .8rem; }
.seis-hero { border-left: 4px solid var(--c); }
@media (max-width: 600px) {
  .seis-panel { margin-left: 8px; }
  .seis-facts { grid-template-columns: 1fr; gap: 2px; }
  .seis-facts dd { margin-bottom: 6px; }
}

/* ==== Katmanlar penceresi: açılır/kapanır, yumuşak geçiş ==== */
/* Kapalıyken (.open yokken) görünmez ve tıklanamaz: hidden özniteliği bir şekilde kalksa bile harita önünde alan kalmaz */
.layers-panel { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%) translateX(-14px);
  transition: opacity .22s ease, transform .25s ease, visibility 0s linear .25s; }
.layers-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%) translateX(0); transition-delay: 0s; }
.lp-head { position: sticky; top: -16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -16px -16px 8px; padding: 12px 12px 8px 16px; background: var(--panel-solid, rgba(8, 12, 24, .96)); border-bottom: 1px solid var(--line); }
.lp-head h2 { margin: 0 !important; }
.lp-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.lp-close:hover { border-color: var(--gold); color: var(--gold2, #f5d38a); }
.map-controls [data-action="layers"].active { border-color: var(--gold); background: rgba(240, 180, 67, .18); }
@media (max-width: 980px) {
  .layers-panel { transform: translateX(-14px); }
  .layers-panel.open { transform: translateX(0); }
}
@media (max-width: 600px) {
  /* Telefonda alttan açılan, ekranın en fazla %55'ini kaplayan sayfa */
  .layers-panel { z-index: 45; left: 8px !important; right: 8px; top: auto !important; bottom: 8px !important; width: auto !important; max-height: 55vh !important; border-radius: 18px; transform: translateY(24px); }
  .layers-panel.open { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .layers-panel { transition: none; } }

/* =====================================================================
   Harita kontrol rayı: yalnızca 3 düğmenin görünümü (cam efekti)
   Dünya/döndürme → altın · Güneş Sistemi → turkuaz · Katmanlar → mor
   Boyut, konum ve işlev değişmez; harita/ülke renklerine dokunulmaz.
   ===================================================================== */
#atlas .map-controls > [data-action="rotate"],
#atlas .map-controls > .ctl-space,
#atlas .map-controls > [data-action="layers"] {
  --gl-rgb: 232, 186, 96;
  position: relative;
  color: rgb(var(--gl-rgb));
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%),
    radial-gradient(circle at 50% 60%, rgba(var(--gl-rgb), .22), rgba(var(--gl-rgb), .07) 72%);
  border: 1px solid rgba(var(--gl-rgb), .55);
  box-shadow: 0 0 10px rgba(var(--gl-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -6px 12px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  transition: box-shadow .2s, border-color .2s, background .2s;
}
#atlas .map-controls > .ctl-space { --gl-rgb: 110, 214, 222; }
#atlas .map-controls > [data-action="layers"] { --gl-rgb: 178, 150, 236; }
#atlas .map-controls > [data-action="rotate"] svg,
#atlas .map-controls > .ctl-space svg,
#atlas .map-controls > [data-action="layers"] svg {
  stroke: rgb(var(--gl-rgb)); color: rgb(var(--gl-rgb));
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)) drop-shadow(0 0 3px rgba(var(--gl-rgb), .35));
}
#atlas .map-controls > [data-action="rotate"]:hover,
#atlas .map-controls > .ctl-space:hover,
#atlas .map-controls > [data-action="layers"]:hover,
#atlas .map-controls > [data-action="rotate"]:focus-visible,
#atlas .map-controls > .ctl-space:focus-visible,
#atlas .map-controls > [data-action="layers"]:focus-visible,
#atlas .map-controls > [data-action="layers"].active,
#atlas .map-controls > [data-action="layers"][aria-expanded="true"] {
  border-color: rgba(var(--gl-rgb), .85);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 55%),
    radial-gradient(circle at 50% 60%, rgba(var(--gl-rgb), .32), rgba(var(--gl-rgb), .1) 72%);
  box-shadow: 0 0 16px rgba(var(--gl-rgb), .42), inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -6px 12px rgba(0, 0, 0, .16);
}
/* Otomatik döndürme kapalıyken altın ton bir kademe sönük */
#atlas .map-controls > [data-action="rotate"][aria-pressed="false"] { box-shadow: 0 0 6px rgba(var(--gl-rgb), .16), inset 0 1px 0 rgba(255, 255, 255, .18); opacity: .88; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #atlas .map-controls > [data-action="rotate"], #atlas .map-controls > .ctl-space, #atlas .map-controls > [data-action="layers"] { background-color: rgba(10, 18, 40, .78); }
}

/* Telefonda küreyi aşağı doğru çevirirken tarayıcının "çekip yenile" (pull-to-refresh) hareketini engelle.
   Sayfa normal şekilde kaydırılmaya devam eder; yalnızca en üstte aşağı çekince sayfa yenilenmez. */
html:has(#atlas), html:has(#atlas) body { overscroll-behavior-y: none; }
#atlas { overscroll-behavior: none; }

/* ==== Ansiklopedik profiller (Vikipedi · Wikidata · UNESCO) — mevcut panel diliyle ==== */
.wp-head { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.wp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #cfe3f1; border: 1px solid rgba(63, 210, 255, .35); background: rgba(63, 210, 255, .08); }
.wp-badge.ok { color: #b9f0cd; border-color: rgba(80, 200, 130, .5); background: rgba(80, 200, 130, .1); }
.wp-facts { margin: 10px 0; }
.wp-sec { border: 1px solid var(--line-soft); border-radius: 12px; margin: 8px 0; background: rgba(255, 255, 255, .025); }
.wp-sec summary { cursor: pointer; padding: 10px 12px; font-weight: 700; color: var(--gold2); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wp-sec summary::-webkit-details-marker, .wp-more summary::-webkit-details-marker { display: none; }
.wp-sec summary::after, .wp-more summary::after { content: '▾'; color: var(--gold); transition: transform .2s; }
.wp-sec[open] summary::after, .wp-more[open] summary::after { transform: rotate(180deg); }
.wp-sec[open] summary { border-bottom: 1px solid var(--line-soft); }
.wp-sec p { margin: 8px 12px; font-size: .9rem; line-height: 1.6; color: #d6dcea; }
.wp-sec p.wp-li { margin-top: 2px; margin-bottom: 2px; }
.wp-list a { color: #fff; }
.wp-list a:hover { color: var(--gold2); }
.wp-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.wp-more { border: 1px solid rgba(240, 180, 67, .3); border-radius: 12px; margin: 10px 0; background: rgba(240, 180, 67, .04); }
.wp-more > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.wp-more[open] > summary { border-bottom: 1px solid rgba(240, 180, 67, .2); }
.wp-more > :not(summary) { margin-left: 10px; margin-right: 10px; }
.wp-srcs { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.wp-srcs h3 { margin-top: 0; }
.wp-srcs a { word-break: break-word; }
.wp-lic { font-size: .72rem; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.wp-lic a { color: var(--gold2); }
