/* Yazı tipi değişkenleri (fonts.css), ortak parçalar ve anket arayüzü. Panelin stilleri panel.css içindedir. */
:root {
  --font-poppins: "Poppins", "Poppins Fallback";
  --font-archivo: "Archivo", "Archivo Fallback";
  --font-caveat: "Caveat", "Caveat Fallback";
  --font-bricolage: "Bricolage Grotesque", "Bricolage Grotesque Fallback";
  --font-fraunces: Georgia, serif;
}
[hidden] { display: none !important; }
.yuva { display: contents; }

/* Görsel dil: 25 Kasım billboard tasarımı — krem zemin, lacivert yazı, pembe vurgu,
   pembe-turuncu-mor geçişli "25 KASIM", yeşil kalp / kırmızı çarpı iğneler. */
:root {
  --krem: #fbf4e6;
  --kagit: #ffffff;
  --lacivert: #2a1a6e;
  --lacivert-acik: #3d2b93;
  --ikincil: #574b85;
  --pembe: #e3126e;
  --turuncu: #f2601c;
  --mor: #7a2a93;
  --yesil: #1f9d4d;
  --kirmizi: #e0263c;
  --cizgi: #dcd2ea;
  --lila: #efe9fa;
  --kasim: linear-gradient(96deg, #e3126e 0%, #ee3a4a 26%, #f7941d 48%, #e3126e 68%, #7a2a93 86%, #2a1a6e 100%);
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --body: var(--font-poppins), system-ui, sans-serif;
  --display: var(--body);
  --mark: var(--font-archivo), "Arial Narrow", sans-serif;
  --hand: var(--font-caveat), cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--krem);
  color: var(--lacivert);
  accent-color: var(--lacivert);
  caret-color: var(--pembe);
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--pembe); color: var(--kagit); }
:focus-visible { outline: 3px solid var(--pembe); outline-offset: 3px; }
h1:focus { outline: none; }
button { font: inherit; color: inherit; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Ortak parçalar */
.wordmark {
  margin: 0;
  font-family: var(--mark);
  font-stretch: 75%;
  font-weight: 900;
  font-size: clamp(4.25rem, 23vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--kasim);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark--small { font-size: 1.75rem; line-height: 1; }

h1 { font-family: var(--display); }
h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.625rem, 7vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--pembe); }

.script {
  margin: 0;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--lacivert);
}
.script span { display: block; font-size: 1.375rem; color: var(--ikincil); }

.pinicon { display: inline-flex; flex: none; filter: drop-shadow(0 3px 4px rgb(42 26 110 / 0.28)); }
.pinicon svg { display: block; width: 30px; height: auto; }

.lead { margin: 14px 0 0; font-size: 1.0625rem; color: var(--ikincil); }

/* Harita */
.mapwrap { position: relative; min-height: 0; background: var(--lila); }
.mapwrap .map { position: absolute; inset: 0; z-index: 0; background: var(--lila); font-family: var(--body); }
.mapwrap .map .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
/* Harita renkleri (lila zemin, beyaz yollar) Scripts/harita.mjs içindeki boya() ile verilir. */
.mapwrap .maplibregl-ctrl-group { border-radius: var(--radius); box-shadow: 0 4px 14px rgb(42 26 110 / 0.22); overflow: hidden; }
.mapwrap .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.mapwrap .maplibregl-ctrl-group button:focus-visible { outline-offset: -3px; }
.mapwrap .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 12px 12px 0 0; }
.mapwrap .maplibregl-ctrl-attrib { font-size: 0.6875rem; font-family: var(--body); }

.pin { display: block; transform-origin: 50% 100%; filter: drop-shadow(0 5px 6px rgb(42 26 110 / 0.35)); animation: pin-drop 460ms var(--ease); }
.pin svg { display: block; }
@keyframes pin-drop { from { transform: translateY(-22px) scale(1.25); } }

/* Soru gövdesi */
.panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 20px;
  scrollbar-color: var(--cizgi) transparent;
  scrollbar-width: thin;
  animation: step-in 320ms var(--ease);
}
@keyframes step-in { from { transform: translateX(16px); opacity: 0.4; } }
.hint { margin: 10px 0 0; color: var(--ikincil); font-size: 0.9375rem; }


/* 1. adım: iki yanıt */
.choices { display: grid; gap: 10px; margin-top: 18px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 16px;
  border: 1.5px solid var(--cizgi);
  border-radius: var(--radius);
  background: var(--kagit);
  color: var(--lacivert);
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.choice__label { flex: 1; }
.choice .icon { color: var(--ikincil); }
.choice:hover { background: var(--lila); border-color: var(--lacivert); }
.choice[aria-pressed="true"] { background: var(--lila); border-color: var(--lacivert); box-shadow: inset 0 0 0 1px var(--lacivert); }
.choice:active { transform: scale(0.985); }
.choice[aria-disabled="true"] { opacity: 0.6; }
.choice[aria-disabled="true"]:hover { background: var(--kagit); border-color: var(--cizgi); }

/* Seçenek satırları */
.options { display: grid; gap: 8px; margin-top: 16px; }
.options--grid .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--cizgi);
  border-radius: var(--radius);
  background: var(--kagit);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.option__mark { width: 20px; height: 20px; flex: none; border: 2px solid var(--lacivert); background: var(--kagit); }
.option__mark--radio { border-radius: 50%; }
.option__mark--checkbox { border-radius: 5px; }
.option:hover { background: var(--lila); border-color: var(--lacivert); }
.option:has(input:checked) { background: var(--lacivert); border-color: var(--lacivert); color: var(--kagit); }
.option:has(input:checked) .option__mark { border-color: var(--kagit); background: var(--pembe); box-shadow: inset 0 0 0 3px var(--kagit); }
.option:has(input:focus-visible) { outline: 3px solid var(--pembe); outline-offset: 3px; }

/* İşaretlenen noktalar listesi */
.pinwrap--saved .pin { animation: none; }
.pointlist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pointlist li { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; border: 1.5px solid var(--cizgi); border-radius: var(--radius); background: var(--kagit); }
.pointlist__text { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.pointlist__text strong { font-weight: 600; }
.pointlist__text span { font-size: 0.875rem; color: var(--ikincil); }
.pointlist__remove { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ikincil); cursor: pointer; }
.pointlist__remove:hover { background: var(--lila); color: var(--kirmizi); }
.btn.btn--add { width: 100%; margin-top: 12px; border: 1.5px dashed var(--lacivert); background: transparent; color: var(--lacivert); }
.btn--add:hover { background: var(--lila); }

.field { display: grid; gap: 8px; margin-top: 16px; font-weight: 500; }
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cizgi);
  border-radius: var(--radius);
  background: var(--kagit);
  color: var(--lacivert);
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.field textarea:focus-visible { outline-offset: 0; border-color: var(--lacivert); }
/* Karakter sayacı: sınıra gelince pembeleşir. */
.field__count { justify-self: end; margin-top: -2px; font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ikincil); }
.field__count[data-dolu="true"] { color: var(--pembe); font-weight: 700; }

.closing { margin: 18px 0 0; max-width: 62ch; line-height: 1.65; color: var(--ikincil); }

/* Metin ekranları: tanıtım, bilgilendirme, destek */
.prose { margin: 14px 0 0; max-width: 62ch; line-height: 1.6; color: var(--ikincil); }
.prose--em { font-weight: 600; color: var(--lacivert); }
.count { margin: 18px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--lila); font-size: 0.9375rem; color: var(--lacivert); }
.count strong { color: var(--pembe); }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--lacivert); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.textlink:hover { color: var(--pembe); }
.destek { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cizgi); }
.destek h2 { margin: 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; }
.destek h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.destek p { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ikincil); }
.destek a { color: var(--lacivert); font-weight: 600; overflow-wrap: anywhere; }
.destek__kanun { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--lila); }
.destek__liste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.destek__liste li { padding: 14px 16px; border: 1px solid var(--cizgi); border-radius: var(--radius); background: var(--kagit); }
.destek__tel a { font-size: 1.0625rem; }
.destek + .btn--wide { margin-top: 24px; }

/* /destek sayfası */
.doc { max-width: 680px; margin: 0 auto; padding: 28px 20px 48px; }
.doc .wordmark { font-size: clamp(2.5rem, 12vw, 3.5rem); }
.doc h1 { margin: 12px 0 0; font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; }
.doc .lead { margin-top: 6px; }
.doc .destek { margin-top: 20px; padding-top: 0; border-top: 0; }
.doc__back { margin-top: 28px; }

/* Eylemler */
.panel__actions { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--krem); border-top: 1px solid var(--cizgi); }
.error { margin: 0; padding: 10px 14px; border-radius: var(--radius); background: #fde1ea; color: #8a0f38; font-weight: 500; }
.error + .actions { margin-top: 12px; }
.actions { display: flex; justify-content: space-between; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--primary { flex: 1; max-width: 260px; margin-left: auto; background: var(--lacivert); color: var(--kagit); box-shadow: 0 6px 16px rgb(42 26 110 / 0.24); }
.btn--primary:hover { background: var(--lacivert-acik); }
.btn--wide { flex: none; max-width: none; width: 100%; margin-left: 0; }
.closing + .btn--wide { margin-top: 20px; } /* teşekkür ekranındaki Kapat düğmesi */
.btn--ghost { background: transparent; color: var(--lacivert); padding: 0 8px; }
.btn--ghost:hover { color: var(--pembe); }

/* İlerleme çubuğu */
.progress { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.progress li { flex: 1; height: 5px; border-radius: 99px; background: var(--cizgi); }
.progress li[data-on="true"] { background: var(--pembe); }

/* ───────── Anket: tam ekran harita, açılır pencereler (.pp) ─────────
   Karşılama ve sorular ortada açılan pencerede (arkadaki harita hafif kararır ama görünür),
   güvende / güvensiz yanıtı seçilen iğnenin üstündeki konuşma balonunda. */
.pp {
  --krem: #ffffff;
  --kagit: #ffffff;
  --lacivert: #24143f;
  --lacivert-acik: #3a2463;
  --ikincil: #665a80;
  --pembe: #e3126e;
  --cizgi: #e7def5;
  --lila: #f6f1fd;
  --radius: 14px;
  --display: var(--font-bricolage), var(--font-poppins), sans-serif;
}
.pp { position: relative; height: 100dvh; overflow: hidden; background: #f3f1ec; color: var(--lacivert); font-family: var(--body); }
.pp .mapwrap { position: absolute; inset: 0; }
.pp:not([data-step="nokta"]) .maplibregl-ctrl-top-right { display: none; }
/* Kadıköy Belediyesi logosu haritanın sol üst köşesinde durur; karartma perdesinin üstünde, pencerenin altında. */
.pp-logo { position: absolute; top: 12px; left: 12px; z-index: 705; width: clamp(120px, 22vw, 180px); height: auto; box-shadow: 0 4px 14px rgb(42 26 110 / 0.22); pointer-events: none; }
/* Dar ekranda logo küçülür (96px → ~33px boy) ve pencere, logonun altında kalacak kadar kısalır (üst/alt 56px boşluk). */
@media (max-width: 600px) {
  .pp-logo { width: 96px; }
  .pp-modal { max-height: calc(100% - 112px); }
}
.pp .panel__body { padding: 0; overflow: visible; animation: none; }
.pp .panel__actions { padding: 0; background: transparent; border-top: 0; }
.pp h1 { font-weight: 800; letter-spacing: -0.03em; }
.pp .btn { border-radius: 999px; }
.pp .btn--primary { background: var(--pembe); box-shadow: 0 8px 20px rgb(227 18 110 / 0.3); }
.pp .btn--primary:hover { background: #c40f5f; }
.pp .option:has(input:checked) { background: var(--lacivert); }
@keyframes pp-pop { from { opacity: 0; transform: translate(-50%, -44%) scale(0.88); filter: blur(8px); } }
@keyframes pp-bubble { from { opacity: 0; transform: translate(-50%, calc(-100% - 58px)) scale(0.3); } }
@keyframes pp-fade { from { opacity: 0; } }

/* Pencere içindeki seçenekler: alt alta, eşit boyda satırlar; solda onay kutusu.
   Seçilen satır koyulaşır, kutusu pembe zeminli beyaz onay işareti alır. */
.pp-modal .options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pp-modal .options--grid .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-modal .option { min-height: 48px; padding: 10px 14px; gap: 12px; border: 0; border-radius: 14px; background: var(--lila); }
.pp-modal .option:hover { background: #e9defa; }
.pp-modal .option:has(input:checked) { background: var(--lacivert); }
.pp-modal .option__mark { width: 24px; height: 24px; border: 2px solid #a995cf; background: #ffffff; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.pp-modal .option__mark--checkbox { border-radius: 8px; }
.pp-modal .option:has(input:checked) .option__mark {
  border-color: var(--pembe);
  box-shadow: none;
  background: var(--pembe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.8 3.8L15.5 6.5' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Ortada açılan pencere */
.pp-backdrop { position: absolute; inset: 0; z-index: 700; background: rgb(36 20 63 / 0.3); animation: pp-fade 220ms ease-out; }
.pp-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 710;
  width: min(calc(100% - 28px), 460px);
  max-height: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: var(--kagit);
  box-shadow: 0 24px 70px rgb(20 10 50 / 0.38);
  animation: pp-pop 300ms var(--ease);
  scrollbar-width: thin;
}
/* Pencere ekranı doldurmasın: en fazla ekranın %76'sı; uzun listeler pencerenin içinde kayar. */
.pp-modal { max-height: 76%; }
.pp-modal h1 { font-size: clamp(1.5rem, 6.2vw, 1.875rem); line-height: 1.1; }
/* Pencerenin kendisi kaymaz: yalnızca soru gövdesi kayar, Geri / Devam düğmeleri altta sabit bir şeritte durur. */
.pp-modal { overflow: hidden; }
.pp-modal .panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 2px 20px 16px; scrollbar-width: thin; scrollbar-color: #cdbfe8 transparent; }
.pp-modal .panel__actions { flex: none; margin: -16px -20px -20px; padding: 14px 20px 20px; background: var(--kagit); border-top: 1px solid var(--cizgi); }
.pp[data-step="giris"] .wordmark, .pp[data-step="katildi"] .wordmark { font-size: clamp(3rem, 15vw, 4.25rem); }
.pp[data-step="giris"] h1, .pp[data-step="katildi"] h1 { margin-top: 12px; }
.pp .btn--wide { margin-top: 20px; }
/* Geniş düğme (Katılmak istiyorum / Kapat) alt şeritte durur; üst boşluğa gerek yok. */
.pp-modal .panel__actions .btn--wide { margin-top: 0; }
/* Metin ekranlarında (karşılama, bilgilendirme, teşekkür) pencere daha yüksek olabilir: metne daha çok yer kalır. */
.pp[data-step="giris"] .pp-modal, .pp[data-step="katildi"] .pp-modal, .pp[data-step="bilgi"] .pp-modal, .pp[data-step="bitti"] .pp-modal { max-height: min(88%, 780px); }
/* Kaydırma ipucu: metin aşağıda sürüyorsa alt şeridin üstünde solma ve aşağı ok görünür; sona gelince kaybolur
   (data-devam değerini anket.mjs yazar; betik yüklenmeden önce ipucu görünür kalır). */
.pp-modal .panel__actions { position: relative; }
.pp-modal .panel__actions::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23e3126e'/%3E%3Cpath d='M7.5 10.500l4.500 4.500 4.500-4.500' fill='none' stroke='%23fff' stroke-width='2.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom 8px / 26px no-repeat,
    linear-gradient(rgb(255 255 255 / 0), var(--kagit) 78%);
  opacity: 1; transition: opacity 200ms var(--ease);
}
.pp-modal[data-devam="false"] .panel__actions::before { opacity: 0; }
.pp .script { margin-top: 16px; font-size: 1.375rem; }
.pp .script span { display: inline; font-size: inherit; }

/* İğnenin üstündeki konuşma balonu (konum: anket.mjs --pin-x / --pin-y) */
.pp-bubble {
  position: absolute;
  left: clamp(160px, var(--pin-x, 50%), calc(100% - 160px));
  top: max(var(--pin-y, 50%), 300px);
  z-index: 600;
  width: 304px;
  padding: 16px;
  transform: translate(-50%, calc(-100% - 58px));
  border-radius: 22px;
  background: var(--kagit);
  box-shadow: 0 16px 44px rgb(20 10 50 / 0.34);
  animation: pp-bubble 260ms var(--ease);
}
.pp-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 20px; height: 20px; margin-left: -10px; transform: rotate(45deg); border-radius: 0 0 5px 0; background: var(--kagit); }
.pp-bubble h1 { font-size: 1.1875rem; line-height: 1.15; }
.pp-bubble .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pp-bubble .choice { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; border: 0; border-radius: 16px; font-size: 0.875rem; line-height: 1.2; }
.pp-bubble .choice--guvende, .pp-bubble .choice--guvende:hover { background: #e2f5e9; }
.pp-bubble .choice--guvensiz, .pp-bubble .choice--guvensiz:hover { background: #fde4e9; }
.pp-bubble .choice:hover { box-shadow: inset 0 0 0 2px var(--lacivert); }

/* Üstte yönlendirme, altta küçük eylem çubuğu */
.pp-toast { position: absolute; left: 50%; top: 124px; z-index: 600; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 10px; transform: translateX(-50%); border-radius: 999px; background: var(--lacivert); color: #fff; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; box-shadow: 0 10px 28px rgb(20 10 50 / 0.3); animation: pp-fade 240ms ease-out; }
.pp-toast .pinicon svg { width: 22px; }
.pp-toast--hata { background: var(--kirmizi); box-shadow: 0 10px 28px rgb(224 38 60 / 0.35); }
.pp-dock { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 600; width: min(calc(100% - 28px), 420px); padding: 10px 14px; transform: translateX(-50%); border-radius: 22px; background: var(--kagit); box-shadow: 0 16px 44px rgb(20 10 50 / 0.3); }
.pp-dock .btn { min-height: 44px; }

/* Popup hareketleri — her şey haritadan "fırlar": balon iğnenin ucundan büyür, seçili iğne dalga yayar,
   pencere içeriği sırayla belirir. Hareket azaltma tercihinde yalnızca kısa bir belirme kalır (dosya sonu). */
@keyframes pp-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pp-chip { from { opacity: 0; transform: scale(0.78); } }
@keyframes pp-ring { from { opacity: 0.55; transform: scale(0.4); } to { opacity: 0; transform: scale(3.4); } }
@keyframes pp-flash { from { box-shadow: 0 0 0 0 rgb(227 18 110 / 0.5); } to { box-shadow: 0 0 0 12px rgb(227 18 110 / 0); } }
@keyframes pp-hop { 0%, 55%, 100% { transform: translateY(0); } 70% { transform: translateY(-7px); } 85% { transform: translateY(0); } 92% { transform: translateY(-2px); } }
@keyframes pp-toast { from { opacity: 0; transform: translate(-50%, -18px) scale(0.92); } }
@keyframes pp-dock { from { opacity: 0; transform: translate(-50%, 28px); } }
@keyframes pp-flow { to { background-position: 100% 50%; } }
@keyframes pp-wipe { from { clip-path: inset(-10% 100% -10% -5%); } to { clip-path: inset(-10% -5% -10% -5%); } }
@keyframes pp-nudge { to { transform: translateX(5px); } }
@keyframes pp-fill { from { transform: scaleX(0); } }

/* Balon iğnenin ucundan büyür (hafif taşma ile yerine oturur); iki yanıt ardı ardına belirir. */
.pp-bubble { transform-origin: 50% calc(100% + 58px); animation: pp-bubble 420ms cubic-bezier(0.3, 1.45, 0.5, 1); }
.pp-bubble .choice { animation: pp-chip 360ms var(--ease) 140ms backwards; }
.pp-bubble .choice + .choice { animation-delay: 210ms; }
.pp-bubble .choice:active { transform: scale(0.96); }

/* Seçili iğnenin ayağında yayılan dalga: "burası" der. Yalnızca nokta adımında. */
.pp[data-step="nokta"] .pinwrap:not(.pinwrap--saved)::before,
.pp[data-step="nokta"] .pinwrap:not(.pinwrap--saved)::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; z-index: -1; width: 28px; height: 14px; margin-left: -14px;
  border-radius: 50%; border: 2px solid var(--pembe); pointer-events: none;
  animation: pp-ring 1.9s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.pp[data-step="nokta"] .pinwrap:not(.pinwrap--saved)::after { animation-delay: 0.95s; }

/* Yönlendirme: yukarıdan iner, içindeki iğne ara ara zıplar. Alt çubuk aşağıdan gelir. */
.pp-toast { animation: pp-toast 420ms cubic-bezier(0.3, 1.45, 0.5, 1); }
.pp-toast .pinicon { animation: pp-hop 2.2s ease-in-out 600ms infinite; }
.pp-dock { animation: pp-dock 380ms var(--ease); }

/* Pencere: bulanıklıktan netleşerek açılır; içerik sırayla yükselir, seçenek etiketleri tek tek belirir. */
.pp-modal { animation: pp-pop 420ms var(--ease); }
.pp-modal .panel__body > * { animation: pp-rise 460ms var(--ease) backwards; }
.pp-modal .panel__body > :nth-child(2) { animation-delay: 60ms; }
.pp-modal .panel__body > :nth-child(3) { animation-delay: 120ms; }
.pp-modal .panel__body > :nth-child(4) { animation-delay: 180ms; }
.pp-modal .panel__body > :nth-child(5) { animation-delay: 240ms; }
.pp-modal .panel__body > :nth-child(n + 6) { animation-delay: 300ms; }
.pp-modal .option, .pp-modal .pointlist li { animation: pp-chip 340ms var(--ease) backwards; }
.pp-modal .option:nth-child(1), .pp-modal .pointlist li:nth-child(1) { animation-delay: 90ms; }
.pp-modal .option:nth-child(2), .pp-modal .pointlist li:nth-child(2) { animation-delay: 120ms; }
.pp-modal .option:nth-child(3), .pp-modal .pointlist li:nth-child(3) { animation-delay: 150ms; }
.pp-modal .option:nth-child(4), .pp-modal .pointlist li:nth-child(4) { animation-delay: 180ms; }
.pp-modal .option:nth-child(5), .pp-modal .pointlist li:nth-child(5) { animation-delay: 210ms; }
.pp-modal .option:nth-child(6), .pp-modal .pointlist li:nth-child(6) { animation-delay: 240ms; }
.pp-modal .option:nth-child(7), .pp-modal .pointlist li:nth-child(7) { animation-delay: 270ms; }
.pp-modal .option:nth-child(8), .pp-modal .pointlist li:nth-child(8) { animation-delay: 300ms; }
.pp-modal .option:nth-child(9), .pp-modal .pointlist li:nth-child(9) { animation-delay: 330ms; }
.pp-modal .option:nth-child(n + 10), .pp-modal .pointlist li:nth-child(n + 10) { animation-delay: 360ms; }

/* Seçim: etiket basılınca küçülür, seçilince pembe bir halka yayılır. */
.pp-modal .option { transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease); }
.pp-modal .option:active { transform: scale(0.94); }
.pp-modal .option::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.pp-modal .option:has(input:checked)::after { animation: pp-flash 520ms var(--ease); }

/* İlerleme çubuğunda yeni adım soldan dolar. */
.pp-modal .progress li[data-on="true"]:not(:has(~ li[data-on="true"])) { transform-origin: left center; animation: pp-fill 520ms var(--ease) 120ms backwards; }

/* Karşılama: "25 KASIM" geçişi ağır ağır akar, iğneler düşer, el yazısı soldan yazılır, ok ileriyi gösterir. */
.pp[data-step="giris"] .wordmark, .pp[data-step="katildi"] .wordmark { background-size: 240% 100%; background-position: 0% 50%; animation: pp-rise 460ms var(--ease) backwards, pp-flow 6s ease-in-out 500ms infinite alternate; }
.pp-modal .panel__body > .script { animation: pp-wipe 900ms cubic-bezier(0.5, 0, 0.2, 1) 520ms backwards; }
.pp .btn--primary .icon { transition: transform 200ms var(--ease); }
.pp[data-step="giris"] .btn--primary .icon { animation: pp-nudge 900ms ease-in-out 1s infinite alternate; }
.pp .btn--primary:hover .icon { transform: translateX(4px); }
.pp .btn:active { transform: scale(0.97); }

/* İlk ekran sunucuda çizilir ve hareketiyle açılır; betik aynı ekranı yeniden kurarken (data-ilk) pencere,
   arka plan ve içerik hareketi ikinci kez oynamaz. "25 KASIM" geçişinin akışı sürer. */
.pp[data-ilk="true"] .pp-backdrop,
.pp[data-ilk="true"] .pp-modal,
.pp[data-ilk="true"] .pp-modal .panel__body > * { animation: none; }
.pp[data-ilk="true"][data-step="giris"] .wordmark, .pp[data-ilk="true"][data-step="katildi"] .wordmark { animation: pp-flow 6s ease-in-out 500ms infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Popup: hareket azaltılınca pencere ve balon yer değiştirmeden, kısa bir belirmeyle açılır. */
  .pp .pp-modal, .pp .pp-bubble, .pp .pp-toast, .pp .pp-dock { animation: pp-fade 160ms ease-out !important; }
}
