/* Türkiye Limanları Atlası: yalnız atlas sınıfları; renk ve tipografi site.css değişkenlerinden. */
.page-atlas .atlas-tools { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.page-atlas #atlas-toggle[hidden] { display: none; }
.page-atlas #atlas-stage { position: relative; width: 100%; min-height: 60vh; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-atlas #atlas-stage[hidden] { display: none; }

.atlas-layout { padding-block: 2rem 4rem; max-width: 62rem; }
.atlas-sec { margin-top: 2.5rem; }
.atlas-sec > h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.atlas-sec > p { color: var(--ink-2); max-width: 62ch; }
.atlas-layout .answer-box { margin-top: 0; }

.atlas-layout .table-scroll { margin-block: .5rem 1rem; }
.atlas-layout .data-table { min-width: 32rem; }
.atlas-layout .data-table td { white-space: normal; }
.atlas-layout .data-table td small, .atlas-layout .data-table td details { min-width: 12rem; max-width: 34rem; }
.atlas-layout .atlas-kv { min-width: 0; }
.atlas-layout .atlas-kv th[scope="row"] { width: 38%; }
.atlas-layout .atlas-kv td small, .atlas-layout .atlas-kv td details { min-width: 0; }
.atlas-layout td.undisclosed { color: var(--muted); font-style: italic; }
.atlas-layout td sup { font-size: .75rem; margin-left: .15rem; }
.atlas-layout td sup a { display: inline-block; min-width: 1.4rem; padding-block: .3rem; text-align: center; color: var(--accent-ink); }
.atlas-layout td small { display: block; margin-top: .3rem; line-height: 1.45; }
.atlas-layout td details small { margin-top: .2rem; }
.atlas-layout td summary { cursor: pointer; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.fact-conflict { color: var(--ink-2); border-left: 2px solid var(--c-risk); padding-left: .55rem; }
.fact-conflict ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.fact-conflict li { margin: .15rem 0; }
.atlas-layout .num { font-variant-numeric: tabular-nums; }

.atlas-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.atlas-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 1.1rem 1.2rem; }
.atlas-card h3 { font-size: var(--step-1); margin: 0 0 .35rem; }
.atlas-card h3 a { color: var(--accent-ink); text-decoration: none; }
.atlas-card h3 a::after { content: ""; position: absolute; inset: 0; }
.atlas-card:has(h3 a):hover { background: var(--surface-2); border-color: var(--line-strong); border-top-color: var(--accent); }
.atlas-card .card-meta { margin: 0; padding: 0; color: var(--muted); font-size: .88rem; }
.atlas-card.is-soon { border-top-color: var(--line-strong); border-style: dashed; background: transparent; }
.atlas-card.is-soon h3 { color: var(--ink-2); }

.atlas-sources { padding-left: 1.4rem; font-size: .92rem; color: var(--ink-2); }
.atlas-sources li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.atlas-sources li:target { background: var(--accent-soft); }
.atlas-sources a { display: inline-block; padding-block: .25rem; color: var(--ink-2); }
.atlas-attr { font-size: .9rem; color: var(--muted); }
/* 3D sahne (boot.js): sahne açıkken kutu yüksekliği; veri görünümü altta kalır */
/* 3D aç/kapa: gerçek anahtar görünümü (etiket, kaydırmalı düğme, Açık/Kapalı) */
/* koyu sayfa başlığında (page-head) durur: renkler çevredeki metinden */
.atlas-switch { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .35rem .9rem .35rem 1rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(255, 255, 255, .08); color: inherit; font: 600 .95rem/1 var(--sans); cursor: pointer; }
.atlas-switch:hover { border-color: var(--accent); }
.atlas-switch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.atlas-switch .sw-track { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: background .2s; }
.atlas-switch .sw-knob { position: absolute; top: .19rem; left: .2rem; width: 1.12rem; height: 1.12rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.atlas-switch[aria-pressed="true"] .sw-track { background: var(--accent); }
.atlas-switch[aria-pressed="true"] .sw-knob { transform: translateX(1.1rem); }
.atlas-switch .sw-state { min-width: 3.2em; font-weight: 600; color: inherit; opacity: .8; }
.atlas-switch[aria-pressed="true"] .sw-state { color: var(--accent); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .atlas-switch .sw-track, .atlas-switch .sw-knob { transition: none; } }
.page-atlas.atlas-3d #atlas-stage { height: 72vh; min-height: 22rem; max-height: 56rem; overflow: hidden; }
#atlas-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.atlas-msg { margin: .85rem 0 0; padding: .6rem .9rem; border-left: 3px solid var(--c-risk); background: var(--surface); color: var(--ink); font-weight: 500; max-width: 62ch; }
.atlas-msg:empty { display: none; }
.atlas-msg.is-loading { border-left-color: var(--c-neutral); color: var(--ink-2); font-weight: 400; }
.atlas-credit { position: absolute; left: 0; bottom: 0; max-width: min(100%, 52rem); margin: 0; padding: .3rem .6rem; font-size: .68rem; line-height: 1.35; color: #fff; background: rgba(10, 18, 30, .62); }
.atlas-credit summary { cursor: pointer; padding-block: .15rem; }
.atlas-credit span + span::before { content: " · "; }
.atlas-credit-rep { font-style: italic; }
/* 3D sahne etiketleri: ekrana yansıtılan HTML */
.atlas-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.atlas-lbl { position: absolute; left: 0; top: 0; pointer-events: auto; max-width: 17rem; padding: .3rem .55rem; border-radius: 4px; font-size: .72rem; line-height: 1.35; color: #fff; background: rgba(10, 18, 30, .74); white-space: nowrap; will-change: transform; }
.atlas-lbl::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(10, 18, 30, .74); }
.atlas-lbl-quay { white-space: normal; min-width: 11rem; }
.atlas-lbl-quay summary { cursor: pointer; }
.atlas-lbl-quay ul { margin: .25rem 0 0; padding: 0; list-style: none; max-height: 9.5rem; overflow-y: auto; }
.atlas-lbl-quay li { display: flex; gap: .5rem; }
.atlas-lbl-name { flex: 1; opacity: .85; }
.atlas-lbl-val { font-variant-numeric: tabular-nums; }
.atlas-lbl-val + .atlas-lbl-val::before { content: "· "; opacity: .6; }
.atlas-lbl-note { display: block; font-size: .66rem; font-style: italic; opacity: .82; }
.atlas-lbl-rep { background: rgba(58, 62, 68, .72); font-style: italic; }
.atlas-lbl-rep::after { border-top-color: rgba(58, 62, 68, .72); }
.atlas-lbl-osm { font-size: .66rem; color: #eceef0; background: rgba(105, 111, 117, .62); }
.atlas-lbl-osm::after { border-top-color: rgba(105, 111, 117, .62); }
/* düğüm işaretinin gerçek konumu; işaret yana kaydıysa oku gizlenir */
.atlas-dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; will-change: transform; }
.atlas-lbl-node.is-side::after { display: none; }
.atlas-dot-city { width: 6px; height: 6px; background: #e4eef5; box-shadow: 0 0 0 2px rgba(10, 18, 30, .6); }
.atlas-dot-port { width: 7px; height: 7px; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, .6); }
/* çizgi harita: liman şehirleri (yalnız atlas kökünde); arkaplansız ad + konum noktası */
.atlas-lbl-city { pointer-events: none; padding: 0 0 .35rem; background: none; color: #e4eef5; font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .7); }
.atlas-lbl-city::after { display: none; }
/* düğüm işaretleri (çocuk düğümlere gerçek bağlantı) ve üst düğüme dön */
.atlas-lbl-node { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none; background: rgba(21, 94, 117, .92); border: 1px solid rgba(255, 255, 255, .55); }
.atlas-lbl-node::after { border-top-color: rgba(21, 94, 117, .92); }
.atlas-lbl-node:hover { background: rgba(14, 116, 144, .98); }
/* fareli ekranda düğüm işaretleri daha küçük (harita kalabalık); dokunmatikte 44 px dokunma hedefi korunur */
@media (pointer: fine) { .atlas-lbl-node { min-height: 0; padding: .28rem .6rem; font-size: .78rem; } }
/* kök haritası dar ekranda: 11 bölge sığsın (dokunma hedefi >= 24 px, WCAG 2.5.8) */
@media (max-width: 767px) { body[data-node="atlas"] .atlas-lbl-node { min-height: 1.9rem; padding: .15rem .45rem; font-size: .7rem; } }
.atlas-lbl-node:focus-visible, .atlas-up:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0b2a3a; }
/* konum yolu: geri oku + Türkiye › bölge › liman (sahnenin sol üstünde tek bir hap) */
.atlas-crumbs { position: absolute; left: .75rem; top: .75rem; z-index: 3; display: flex; align-items: center; max-width: calc(100% - 13rem); min-height: 2.75rem; padding: .2rem .9rem .2rem .2rem; border-radius: 999px; background: rgba(10, 18, 30, .8); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: .85rem; }
.atlas-crumbs[hidden] { display: none; }
.atlas-up { flex: none; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-right: .5rem; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); text-decoration: none; }
.atlas-up:hover { background: rgba(255, 255, 255, .26); }
.atlas-trail { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.atlas-trail li { display: flex; align-items: center; min-width: 0; }
.atlas-trail li + li::before { content: "›"; flex: none; margin: 0 .45rem; color: rgba(255, 255, 255, .55); font-weight: 700; }
.atlas-trail a { overflow: hidden; text-overflow: ellipsis; padding: .5rem 0; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; }
.atlas-trail a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.atlas-trail a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.atlas-trail [aria-current] { overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #fff; }
/* dar ekranda yalnız geri oku + bulunulan yer (ara halkalar gizlenir) */
@media (max-width: 767px) { .atlas-crumbs { max-width: calc(100% - 10.5rem); } .atlas-trail li:not(:last-child) { display: none; } .atlas-trail li + li::before { display: none; } }
.atlas-geo-attr { margin: .25rem 0 0; padding-left: 1.2rem; font-size: .85rem; }
@media (max-width: 767px) { .atlas-lbl { font-size: .66rem; max-width: 13rem; } .atlas-lbl-osm { display: none; } }
.atlas-nonav { margin-top: 1.5rem; padding: .85rem 1.1rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--c-risk); font-weight: 500; color: var(--ink); }

/* --- Görev 10: sahne nesne işaretleri, bilgi kartı, Yanaştır, rozetler, bil bakalım --- */
/* nesne işareti: küçük nokta, odak/üzerine gelince adı açılır */
.atlas-hot { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: auto; display: inline-flex; align-items: center; gap: .35rem; min-width: 2rem; min-height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; font: 600 .7rem/1 var(--sans); color: #fff; will-change: transform; }
.atlas-hot-dot { display: grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .3rem; border-radius: 999px; background: rgba(10, 18, 30, .82); border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(254, 133, 0, .22), 0 2px 6px rgba(0, 0, 0, .35); letter-spacing: .02em; transition: transform .15s, background-color .15s; }
.atlas-hot-txt { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: .3rem .55rem; border-radius: 4px; background: rgba(10, 18, 30, .86); white-space: nowrap; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .15s; }
.atlas-hot:hover .atlas-hot-dot, .atlas-hot:focus-visible .atlas-hot-dot { transform: scale(1.12); background: var(--accent); color: var(--on-accent); }
.atlas-hot:hover .atlas-hot-txt, .atlas-hot:focus-visible .atlas-hot-txt { opacity: 1; }
.atlas-hot:focus-visible { outline: none; }
.atlas-hot:focus-visible .atlas-hot-dot { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .atlas-hot-dot { animation: atlas-hot-pulse 2.6s ease-out 1.2s 2; }
  @keyframes atlas-hot-pulse { 0% { box-shadow: 0 0 0 0 rgba(254, 133, 0, .55), 0 2px 6px rgba(0, 0, 0, .35); } 70% { box-shadow: 0 0 0 12px rgba(254, 133, 0, 0), 0 2px 6px rgba(0, 0, 0, .35); } 100% { box-shadow: 0 0 0 3px rgba(254, 133, 0, .22), 0 2px 6px rgba(0, 0, 0, .35); } }
}
/* rıhtım etiketindeki rıhtım adı düğmedir */
button.atlas-lbl-name { padding: .1rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 2px; }
button.atlas-lbl-name:hover { opacity: 1; text-decoration-color: var(--accent); }
button.atlas-lbl-name:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* bilgi kartı (sahne içi panel) */
.atlas-pop { position: absolute; z-index: 4; left: .75rem; top: 4.25rem; width: min(23rem, calc(100% - 1.5rem)); max-height: calc(100% - 6.5rem); overflow-y: auto; padding: 1rem 1.1rem 1.05rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-pop); font-size: .9rem; line-height: 1.45; }
.atlas-pop[hidden] { display: none; }
.atlas-pop-head { position: relative; padding-right: 2.5rem; }
.atlas-pop-kicker { margin: 0 0 .2rem; color: var(--accent-ink); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.atlas-pop-title { font-size: var(--step-1); line-height: 1.15; outline: none; }
.atlas-pop-close { position: absolute; right: -.4rem; top: -.4rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.atlas-pop-close:hover { background: var(--surface-2); color: var(--ink); }
.atlas-pop-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.atlas-pop-rows { margin: .85rem 0 0; display: grid; gap: .55rem; }
.atlas-pop-row { display: grid; gap: .05rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.atlas-pop-row:last-child { border-bottom: 0; padding-bottom: 0; }
.atlas-pop-row dt { color: var(--muted); font-size: .78rem; }
.atlas-pop-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.atlas-pop-val { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.atlas-pop-row.is-undisclosed .atlas-pop-val { font-family: var(--sans); font-size: .9rem; font-weight: 500; font-style: italic; color: var(--muted); }
.atlas-pop-src { color: var(--muted); font-size: .76rem; }
.atlas-pop-factnote { flex-basis: 100%; display: block; color: var(--ink-2); font-size: .76rem; line-height: 1.4; }
.atlas-pop-note-more { flex-basis: 100%; font-size: .76rem; }
.atlas-pop-note-more summary { cursor: pointer; color: var(--muted); }
.atlas-pop-note { margin: .8rem 0 0; color: var(--ink-2); font-size: .8rem; font-style: italic; }
.atlas-pop-more { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; margin-top: .55rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.atlas-pop-more::after { content: "→"; transition: transform .15s; }
.atlas-pop-more:hover::after { transform: translateX(3px); }
.atlas-pop-more[hidden] { display: none; }

/* açılış resmi: sahne hazır olana kadar sahnenin hazır görüntüsü (build_ports.py, tools/make_atlas_posters.mjs) */
.atlas-poster { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .6s ease, visibility 0s linear 0s; }
#atlas-stage.is-ready .atlas-poster { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
@media (prefers-reduced-motion: reduce) { .atlas-poster, #atlas-stage.is-ready .atlas-poster { transition: none; } }

/* rehberli tur: başlat düğmesi (sağ üst) ve alt yazı paneli (alt orta) */
.atlas-tour-start { position: absolute; z-index: 3; right: .75rem; top: .75rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1.1rem .5rem .9rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 .95rem/1 var(--sans); cursor: pointer; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); }
.atlas-tour-start::before { content: ""; width: 0; height: 0; border-left: .62rem solid currentColor; border-top: .38rem solid transparent; border-bottom: .38rem solid transparent; }
.atlas-tour-start:hover { background: var(--accent-hover); }
.atlas-tour-start:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0b2a3a; }
.atlas-tour-start[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .atlas-tour-start { animation: atlas-tour-pulse 2.4s ease-out 1.5s 3; }
  @keyframes atlas-tour-pulse { 0% { box-shadow: 0 0 0 0 rgba(254, 133, 0, .6), 0 6px 18px -6px rgba(0, 0, 0, .45); } 70% { box-shadow: 0 0 0 16px rgba(254, 133, 0, 0), 0 6px 18px -6px rgba(0, 0, 0, .45); } 100% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); } }
}
.atlas-tour { position: absolute; z-index: 3; left: 50%; bottom: 2.6rem; transform: translateX(-50%); width: min(34rem, calc(100% - 1.5rem)); padding: .85rem 1rem .7rem; border-radius: var(--radius); background: rgba(10, 18, 30, .86); color: #fff; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.atlas-tour[hidden] { display: none; }
.atlas-tour-kicker { margin: 0 0 .2rem; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.atlas-tour-title { margin: 0; font-size: 1.12rem; line-height: 1.25; color: #fff; }
.atlas-tour-body { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
.atlas-tour-src { margin: .3rem 0 0; font-size: .72rem; color: rgba(255, 255, 255, .66); }
.atlas-tour-src:empty { display: none; }
.atlas-tour-bar { height: 3px; margin: .65rem 0 .55rem; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.atlas-tour-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.atlas-tour.is-paused .atlas-tour-bar span { width: 0; }
@keyframes atlas-tour-fill { from { width: 0; } to { width: 100%; } }
.atlas-tour-ctl { display: flex; gap: .4rem; }
.atlas-tour-ctl button { min-width: 2.75rem; min-height: 2.5rem; padding: .3rem .75rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; background: transparent; color: #fff; font: 600 .85rem/1 var(--sans); cursor: pointer; }
.atlas-tour-ctl button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.atlas-tour-ctl button:disabled { opacity: .4; cursor: default; }
.atlas-tour-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.atlas-tour-prev, .atlas-tour-next { font-size: 1.2rem !important; }
.atlas-tour-pause { flex: 1; }
.atlas-tour-end { margin-left: auto; }
/* tur sırasında nesne işaretleri ve atıf kutusu geri planda */
#atlas-stage.is-touring .atlas-hot { opacity: .45; }
@media (max-width: 599px) {
  .atlas-tour { bottom: 2.2rem; padding: .7rem .8rem .6rem; }
  .atlas-tour-title { font-size: 1rem; }
  .atlas-tour-body { font-size: .84rem; }
}
/* veri görünümünde gösterilen satır */
.atlas-layout tr.fact-flash > * { animation: atlas-flash 2.4s ease-out; }
@keyframes atlas-flash { 0%, 35% { background: var(--accent-soft); box-shadow: inset 0 0 0 9999px rgba(254, 133, 0, .12); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .atlas-layout tr.fact-flash > * { animation: none; background: var(--accent-soft); } }
.atlas-layout td[data-fact]:focus { outline: 2px solid var(--focus); outline-offset: -2px; }

/* bil bakalım: JS yokken sorular ve "Cevabı göster"; JS ile kontrol düğmesi ve sonuç */
.atlas-quiz .quiz-intro { color: var(--ink-2); }
.quiz-q { margin: 1rem 0 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quiz-q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-q legend { display: flex; gap: .6rem; padding: 0; margin-bottom: .65rem; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.quiz-n { flex: 0 0 auto; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 700 .85rem/1 var(--display); }
.quiz-opt { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; margin: 0 .4rem .4rem 0; padding: .35rem .85rem .35rem .65rem; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s; }
.quiz-opt:hover { border-color: var(--ink-2); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt input { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
.quiz-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.quiz-opt.is-right, .quiz-opt.is-right:has(input:checked) { border-color: var(--c-third); background: color-mix(in srgb, var(--c-third) 12%, var(--surface)); }
.quiz-opt.is-wrong, .quiz-opt.is-wrong:has(input:checked) { border-color: var(--c-risk); background: color-mix(in srgb, var(--c-risk) 10%, var(--surface)); text-decoration: line-through; }
.quiz-q fieldset:disabled .quiz-opt { cursor: default; }
.quiz-act { display: none; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .35rem; }
.atlas-js .quiz-act { display: flex; }
.quiz-check { min-height: 44px; padding: .5rem 1.1rem; }
.quiz-result { margin: 0; font-weight: 600; }
.quiz-result.is-right { color: var(--c-third); }
.quiz-result.is-wrong { color: var(--c-risk); }
.quiz-result.is-hint { color: var(--muted); font-weight: 500; }
.quiz-answer { margin-top: .6rem; font-size: .9rem; color: var(--ink-2); }
.quiz-answer summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; color: var(--muted); }
.quiz-answer p { margin: .1rem 0 0; }
.quiz-answer a { color: var(--accent-ink); }
.quiz-src { color: var(--muted); }
.quiz-q.is-solved { border-color: color-mix(in srgb, var(--c-third) 55%, var(--line)); }
@media (max-width: 767px) {
  .atlas-pop { left: .5rem; right: .5rem; top: auto; bottom: .5rem; width: auto; max-height: 62%; }
  .atlas-tour-start { right: .5rem; top: .5rem; }
  .atlas-hot-dot { min-width: 2rem; height: 2rem; }
}

/* --- gemi paneli: solda açık mavi filtre üzerinde, yanaşabilecek gemilerin çizgisel yan görünüşleri --- */
.atlas-fleet { position: absolute; z-index: 2; left: .75rem; top: 4rem; bottom: 2.4rem; width: min(21.5rem, calc(100% - 1.5rem)); display: flex; flex-direction: column; color: #0c3150; background: rgba(205, 230, 250, .8); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); box-shadow: 0 12px 30px -16px rgba(5, 30, 55, .55); -webkit-backdrop-filter: blur(3px) saturate(1.1); backdrop-filter: blur(3px) saturate(1.1); font-size: .8rem; line-height: 1.4; }
.atlas-fleet[hidden] { display: none; }
.atlas-fleet-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .45rem .9rem; border-bottom: 1px solid rgba(12, 49, 80, .18); }
.atlas-fleet-title { flex: 1; margin: 0; font: 700 .78rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.atlas-fleet-toggle { display: grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; padding: 0 .5rem; border: 1px solid rgba(12, 49, 80, .35); border-radius: 999px; background: rgba(255, 255, 255, .55); color: inherit; font: 700 .85rem/1 var(--sans); cursor: pointer; }
.atlas-fleet-toggle:hover { background: #fff; }
.atlas-fleet-toggle:focus-visible { outline: 3px solid #0c3150; outline-offset: 2px; }
.atlas-fleet-body { flex: 1; overflow-y: auto; padding: .5rem .9rem .8rem; overscroll-behavior: auto; }
.atlas-fleet-body[hidden] { display: none; }
.atlas-fleet-sub { margin: 0 0 .4rem; font-weight: 600; font-size: .9rem; }
.atlas-fleet-group h3 { margin: .7rem 0 .35rem; font: 700 .74rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.atlas-fleet-group ul, .atlas-fleet-nofit ul { list-style: none; margin: 0; padding: 0; }
.atlas-fleet-ship { padding: .45rem 0 .55rem; border-top: 1px dashed rgba(12, 49, 80, .25); }
.atlas-fleet-ship p { margin: 0; }
.atlas-fleet-name { font-weight: 600; }
.atlas-fleet-name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(12, 49, 80, .35); text-underline-offset: 2px; }
.atlas-fleet-name a:hover { text-decoration-color: currentColor; }
.atlas-fleet-art { margin: .3rem 0 .1rem; }
.atlas-fleet-svg { display: block; max-width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.atlas-fleet-svg .hull { stroke-width: 1.4; }
.atlas-fleet-svg .wl { stroke: #1f78b4; stroke-width: .9; }
.atlas-fleet-svg .seabed { stroke: #6b4f2a; stroke-dasharray: 3 3; stroke-width: .9; }
.atlas-fleet-svg .quay { stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.atlas-fleet-quay, .atlas-fleet-dims { font-size: .72rem; opacity: .85; font-variant-numeric: tabular-nums; }
.atlas-fleet-status { margin-top: .15rem !important; font-size: .72rem; font-weight: 600; }
.atlas-fleet-ship[data-status="ok"] .atlas-fleet-status::before { content: "● "; color: #138a52; }
.atlas-fleet-ship[data-status="size"] .atlas-fleet-status { font-weight: 500; font-style: italic; }
.atlas-fleet-ship[data-status="size"] .atlas-fleet-art { opacity: .7; }
.atlas-fleet-none { margin: 0; font-style: italic; opacity: .8; }
.atlas-fleet-nofit { margin-top: .7rem; font-size: .74rem; }
.atlas-fleet-nofit summary { cursor: pointer; font-weight: 600; }
.atlas-fleet-nofit li { padding: .2rem 0; }
.atlas-fleet-foot { margin-top: .8rem; padding-top: .5rem; border-top: 1px solid rgba(12, 49, 80, .18); font-size: .68rem; opacity: .85; }
.atlas-fleet-foot p { margin: 0 0 .3rem; }
.atlas-fleet.is-collapsed { bottom: auto; width: auto; background: rgba(205, 230, 250, .88); }
.atlas-fleet.is-collapsed .atlas-fleet-head { border-bottom: 0; padding: .3rem; }
.atlas-fleet.is-collapsed .atlas-fleet-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atlas-fleet.is-collapsed .atlas-fleet-toggle { padding: 0 .9rem; border: 0; background: transparent; }
.atlas-fleet-group h3 { display: flex; align-items: center; gap: .45rem; }
.atlas-fleet-count { min-width: 1.35rem; padding: .15rem .35rem; border-radius: 999px; background: #0c3150; color: #fff; font-size: .7rem; text-align: center; letter-spacing: 0; }
.atlas-fleet-group + .atlas-fleet-group { margin-top: .6rem; padding-top: .2rem; border-top: 2px solid rgba(12, 49, 80, .22); }
/* panel açıkken atıf kutusu panelin sağına kayar (üst üste binmesin) */
@media (min-width: 768px) {
  #atlas-stage:has(.atlas-fleet:not([hidden]):not(.is-collapsed)) .atlas-credit { left: 23rem; max-width: min(calc(100% - 23rem), 52rem); }
  .atlas-fleet { bottom: .75rem; }
}
/* bilgi kartı açıkken panelin üstünde kalır */
.atlas-pop { z-index: 4; }
@media (max-width: 767px) {
  .atlas-fleet { left: .5rem; top: 3.75rem; bottom: .5rem; width: calc(100% - 1rem); }
  .atlas-fleet.is-collapsed { width: auto; }
}

/* sahnede tekerlek/tek parmak: kısa ipucu (sayfa kayar; yakınlaştırma Ctrl/⌘ + tekerlek ya da iki parmak) */
.atlas-gesture-hint { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .6rem 1rem; border-radius: var(--radius); background: rgba(10, 18, 30, .82); color: #fff; font: 600 .95rem/1.3 var(--sans); text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.atlas-gesture-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .atlas-gesture-hint { transition: none; } }
/* atlas sayfalarında sağda sabit yukarı/aşağı (sahne ya da panel üstündeyken de sayfada gezinmek için) */
.atlas-rail { position: fixed; z-index: 30; right: .6rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .45rem; }
.atlas-rail[hidden] { display: none; }
.atlas-rail button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .45); }
.atlas-rail button:hover { border-color: var(--accent); color: var(--accent-ink); }
.atlas-rail button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.atlas-rail button:disabled { opacity: .35; cursor: default; }
.atlas-rail svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 767px) { .atlas-rail { right: .35rem; top: auto; bottom: 5.5rem; transform: none; } .atlas-rail button { width: 2.6rem; height: 2.6rem; } }
