/* ─── Oyun bileşenleri ───
   Renkler --r-* rollerinden, yazı tipleri --f-* rollerinden (css/roles.css).
   Piksel yazı sadece 16 / 32 / 48 / 64px. */

/* ══ Açılış ══ */

.giris {
  text-align: center;
}
.giris__etiket {
  color: var(--cag);
}
.giris__tarih {
  margin-top: 0.25rem;
  /* One line on every day ("September 30, 1066" included), so nothing under it moves. */
  font-size: clamp(1.5rem, 8.5vw, 4rem);
  white-space: nowrap;
  color: var(--r-hero-baslik);
}
.giris .piksel-dugme {
  margin-top: 0.5rem;
}

/* ── Işınlanma (js/main.js teleport) ──
   giris--isinlan: yıl bugünden günün yılına akıyor; gün-ay ve ekranın geri kalanı gizli
   (sadece opaklık: yer kaplamaya devam ederler, hiçbir şey kaymaz). --hiz 1 → 0 yavaşlar.
   giris--indi: varış; gün-ay belirir, gerisi sırayla gelir. */
.giris__tarih {
  position: relative;
  isolation: isolate;
}
.giris__gunay,
.giris__yil {
  display: inline-block;
}
.giris__gunay {
  margin-right: 0.25em; /* the space before the year (inline-block drops a trailing space) */
}
.giris__yil {
  font-variant-numeric: tabular-nums;
}
.giris > *,
.giris__gunay {
  transition:
    opacity 0.35s ease,
    transform 0.6s var(--yay),
    filter 0.4s ease;
}
.giris--isinlan > :not(.giris__tarih, .giris__etiket),
.giris--isinlan .giris__gunay {
  opacity: 0;
  transform: translateY(1.25rem) scale(0.96);
  pointer-events: none;
  transition: none;
}
.giris--isinlan .giris__gunay {
  filter: blur(8px);
  transform: translateX(-1.5rem);
}
.giris--isinlan .giris__yil {
  color: var(--cag);
  filter: blur(calc(var(--hiz, 0) * 3px));
}
.giris__yil {
  transition:
    color 0.7s ease,
    translate 0.7s var(--yay) 0.3s; /* the landed year holds a beat before making room */
}
.giris--isinlan .giris__yil {
  translate: var(--yil-kay, 0) 0;
  transition: color 0.7s ease;
}
/* giris--bekle (ilk açılış, ses kilitliyken): bugünün yılı çağ renginde bekler, PLAY düğmesi
   TRAVEL THROUGH TIME yazar ve yılın altında görünür; hız çizgileri hafifçe akar. Dokununca yolculuk başlar.
   giris--yukle: inişe kadar etiket gizli; "Today you land on" gün-ay ile birlikte belirir. */
.giris--bekle {
  --hiz: 0.15;
  cursor: pointer;
}
.giris--yukle > .giris__etiket {
  opacity: 0;
}
/* "TRAVEL THROUGH TIME" is long: on a phone it gets a smaller (still whole-pixel) size to stay on one line. */
@media (max-width: 599px) {
  .giris--bekle > .piksel-dugme--buyuk {
    font-size: 24px;
    padding-inline: 24px;
    gap: 12px;
    white-space: nowrap;
  }
}
/* The narrowest phones (320 px): the arrow goes, the words stay. */
@media (max-width: 359px) {
  .giris--bekle > .piksel-dugme--buyuk {
    padding-inline: 16px;
  }
  .giris--bekle > .piksel-dugme--buyuk svg {
    display: none;
  }
}
/* Lifted with position+top, not transform: the button's own hover/press use transform. */
.giris--bekle > .piksel-dugme {
  position: relative;
  top: var(--kalk, 0);
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.35s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.giris--indi .giris__gunay {
  transition:
    opacity 0.6s ease 0.45s,
    transform 0.8s var(--yay) 0.45s,
    filter 0.6s ease 0.45s;
}
.giris--indi > .giris__etiket {
  transition: opacity 0.6s ease 0.45s;
}
.giris--indi > :nth-child(3) { transition-delay: 0.8s; }
.giris--indi > :nth-child(4) { transition-delay: 0.92s; }
.giris--indi > :nth-child(5) { transition-delay: 1.04s; }
.giris--indi > :nth-child(6) { transition-delay: 1.2s; }
/* Impact flash and shock ring live in #fx (js/main.js impactFlash). */
.isinlanma-flas {
  position: absolute;
  inset: 0;
}
.isinlanma-halka {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 4px solid;
}
/* Speed lines: pixel dashes in the era colour racing past behind the year. */
.giris__tarih::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -20%;
  width: 100vw;
  height: 140%;
  translate: -50% 0;
  background:
    linear-gradient(90deg, var(--cag) 0 40%, transparent 0) 0 0% / 140px 4px repeat-x,
    linear-gradient(90deg, var(--cag) 0 25%, transparent 0) 30px 22% / 200px 8px repeat-x,
    linear-gradient(90deg, var(--cag) 0 55%, transparent 0) 80px 44% / 170px 4px repeat-x,
    linear-gradient(90deg, var(--cag) 0 30%, transparent 0) 10px 66% / 230px 8px repeat-x,
    linear-gradient(90deg, var(--cag) 0 45%, transparent 0) 60px 84% / 190px 4px repeat-x,
    linear-gradient(90deg, var(--cag) 0 20%, transparent 0) 120px 100% / 260px 4px repeat-x;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.giris--isinlan .giris__tarih::before {
  opacity: calc(0.6 * var(--hiz, 0));
  transition: none;
  animation: hiz-cizgisi 0.18s linear infinite;
}
@keyframes hiz-cizgisi {
  to {
    background-position-x: 140px, 230px, 250px, 240px, 250px, 380px;
  }
}
.giris__not {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-wrap: balance; /* phones: two even lines, "500 points" never alone */
}

/* --cag: günün çağ vurgusu (roles.css --r-cag-*): etiket, süsler, manşet, ışınlanma. */
.giris {
  --cag: var(--r-sahne-cizgi);
}
.giris[data-era="rome"] { --cag: var(--r-cag-rome); }
.giris[data-era="norman"] { --cag: var(--r-cag-norman); }
.giris[data-era="ottoman"] { --cag: var(--r-cag-ottoman); }
.giris[data-era="baroque"] { --cag: var(--r-cag-baroque); }
.giris[data-era="space"] { --cag: var(--r-cag-space); }

/* "You are here" şeridi. Konumları js/components/YouAreHere.js hesaplar. */
.serit {
  position: relative;
  margin-block: 2.25rem 1rem; /* room between the big date and the strip's "You are here" */
  visibility: hidden;
}
@media (max-width: 599px) {
  .serit {
    margin-top: 1.5rem;
  }
}
.serit--hazir {
  visibility: visible;
}
.serit__cizgi {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--cizgi-y, 50%);
  height: 2px;
  translate: 0 -1px;
  /* bugünden sola geçmiş, sağa gelecek (--burasi-x: YouAreHere.js) */
  background: linear-gradient(
    to right,
    var(--r-serit-gecmis) var(--burasi-x, 50%),
    var(--r-serit-gelecek) var(--burasi-x, 50%)
  );
}
.serit__nokta {
  position: absolute;
  top: var(--cizgi-y, 50%);
  width: 8px;
  height: 8px;
  translate: -4px -4px;
  background: var(--r-serit-gecmis);
}
.serit__nokta--gelecek {
  background: var(--r-serit-gelecek);
}
.serit__nokta--burasi {
  width: 16px;
  height: 16px;
  translate: -8px -8px;
  background: var(--r-serit-burasi);
  z-index: 1;
  animation: hale 1.6s steps(8, end) infinite;
}
@keyframes hale {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--r-serit-burasi-hale) 70%, transparent);
  }
  to {
    box-shadow: 0 0 0 16px color-mix(in srgb, var(--r-serit-burasi-hale) 0%, transparent);
  }
}
.serit__sap {
  position: absolute;
  width: 2px;
  translate: -1px 0;
  background: var(--r-serit-sap);
}
.serit__sap--burasi {
  background: var(--r-serit-burasi);
}
.serit__yazi {
  position: absolute;
  z-index: 1; /* sapların önünde: bir sap yazının arkasından geçerse görünmesin */
  background: var(--r-hero-zemin);
  width: max-content;
  max-width: 8rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--r-serit-metin);
}
/* At most two lines: the strip has a fixed height (YouAreHere.js). Tests keep labels short. */
.serit__yazi:not(.serit__yazi--burasi) span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.serit__yazi b {
  display: block;
  font-family: var(--f-serit-yil);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--r-serit-yil);
}
.serit__yazi--burasi {
  max-width: none;
  font-family: var(--f-serit-burasi);
  font-size: 16px;
  line-height: 1;
  color: var(--r-serit-burasi-yazi);
  padding-bottom: 4px;
}
.serit__yazi--burasi b {
  font-family: var(--f-serit-burasi);
  font-size: 32px;
  font-weight: 400;
  color: var(--r-serit-burasi-yazi);
  margin-bottom: 4px;
}

/* Süsler: çağ sahnesi ve iki küçük piksel çizim, açılışın kenarlarında, hafif eğik.
   Ana gösteri değil, günü süsleyen işaretler. Piksel boyu tam sayı (--px), keskin kalsınlar. */
.giris {
  position: relative;
  isolation: isolate; /* the ornaments sit behind the text but in front of the page */
}
.susler {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --px: 4px;
}
.sus {
  position: absolute;
}
.sus svg {
  display: block;
  width: calc(var(--en) * var(--px));
  height: calc(var(--boy) * var(--px));
}
/* Wide screens: outside the opening's column, in the page margins. */
.sus--1 { right: calc(100% + 1rem); top: 1.25rem; rotate: -8deg; }
.sus--2 { left: calc(100% + 1rem); top: 3.5rem; rotate: 7deg; }
.sus--3 { left: calc(100% + 1rem); bottom: 2.5rem; rotate: -3deg; --px: 2px; }
.sus--3:only-child { left: auto; right: calc(100% + 1rem); }
@media (max-width: 1099px) {
  .susler { --px: 3px; }
  .sus--3 { --px: 1px; }
}
/* Narrow screens: no margins left, so inside the column, beside the label and PLAY. */
@media (max-width: 699px) {
  .susler { --px: 2px; }
  .sus--1 { right: auto; left: 0; top: -0.25rem; }
  .sus--2 { left: auto; right: 0; top: -0.25rem; }
  .sus--3 { left: 0; bottom: 2.75rem; }
}

/* Günün manşeti: şeritte, altın noktanın hemen altında (YouAreHere.js yerleştirir). */
.serit__manset {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 17rem;
  background: var(--r-hero-zemin);
}
.serit__manset-yer {
  color: var(--cag);
}
.serit__manset-haber {
  font-family: var(--f-baslik);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--r-manset-metin);
  text-wrap: balance;
}
@media (max-width: 599px) {
  .serit__manset {
    max-width: 12.5rem;
  }
  .serit__manset-haber {
    font-size: 0.9375rem;
  }
}

/* ══ İlerleme ══ */

.ilerleme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--r-ilerleme-yazi);
}
.ilerleme__pipler {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pip {
  width: 16px;
  height: 16px;
  background: var(--r-ilerleme-bos);
}
.pip--dolu {
  background: var(--r-ilerleme-dolu);
}
.pip--simdi {
  box-shadow: inset 0 0 0 4px var(--r-ilerleme-simdi);
}
.ilerleme {
  align-items: flex-end;
}
.ilerleme__sag {
  text-align: right;
}
.ilerleme__toplam {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}
.ilerleme__puan {
  font-family: var(--f-ilerleme);
  font-size: 32px;
}
.ilerleme__uzerinden {
  font-family: var(--f-ilerleme);
  font-size: 16px;
}
.ilerleme__kalan {
  margin-top: 4px;
  color: var(--r-ilerleme-kalan);
}

/* ══ Soru kartı ══ */

.soru {
  --soru-ic: 1rem;
  padding: 1.125rem var(--soru-ic) 0;
  background: var(--r-kart-zemin);
  border: 1px solid var(--r-kart-kenar);
  border-radius: var(--radius);
  color: var(--r-kart-metin);
}
@media (min-width: 481px) {
  .soru {
    --soru-ic: 1.5rem;
    padding-top: 1.75rem;
  }
}
/* Günün tarihi: her sorunun başında, piksel bir etiket olarak */
/* Bir bilet: solda mürekkep bir sekme "ON THIS DATE", sağda hardal üstünde büyük tarih (32 px).
   Soru o günden soruluyor; tarih ilk bakışta "zıbam" diye görünsün. 44 px boy: masaüstünde
   ilerleme satırının sağındaki puan bloğundan kısa, satır büyümez (1440×780 kuralı). */
.soru__bugun {
  display: flex;
  align-items: stretch;
  width: fit-content;
}
.soru__etiket {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--r-soru-tarih-sekme-zemin);
  color: var(--r-soru-tarih-sekme-yazi);
  font-family: var(--f-soru-tarih);
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.soru__tarih {
  padding: 6px 12px;
  background: var(--r-soru-tarih-zemin);
  color: var(--r-soru-tarih-yazi);
  font-family: var(--f-soru-tarih);
  font-size: 32px;
  white-space: nowrap;
}
/* Telefonda bilet sığmaz: sekme tarihin üstüne çıkar, sola yaslı. */
@media (max-width: 480px) {
  .soru__bugun {
    flex-direction: column;
    align-items: flex-start;
  }
  .soru__etiket {
    padding: 4px 8px;
  }
}
/* 320 px telefonlarda "14 October 1066" 32 px'te karttan taşar; piksel yazı sadece 16'nın katları. */
@media (max-width: 359px) {
  .soru__tarih {
    font-size: 16px;
  }
}
/* İlk soruda bilet damga gibi iner: büyükten küçülür, piksel adımlarla. */
@media (prefers-reduced-motion: no-preference) {
  .soru__bugun--damga {
    animation: tarih-damga 0.42s steps(6, end) both;
    transform-origin: left center;
  }
}
@keyframes tarih-damga {
  0% {
    transform: scale(1.6) rotate(-4deg);
    opacity: 0;
  }
  50% {
    transform: scale(0.94) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.soru__baslik {
  margin-top: 0.625rem;
  font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  color: var(--r-kart-baslik);
}
.soru__ipucu {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--r-kart-ipucu);
}
.soru__alan {
  margin-top: 1.25rem;
}
/* SUBMIT / NEXT: kart ekrandan uzunsa ekranın dibine yapışır, başparmağın altında kalır */
.soru__eylem {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin: 0.75rem calc(var(--soru-ic) * -1) 0;
  padding: 0.75rem var(--soru-ic) calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--r-kart-zemin);
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

/* Phone (and anything under 1100 px): one column. The wrappers dissolve, so the card reads
   date, question, field, reveal, sticky button, as it always has. */
.soru__ust,
.soru__metin,
.soru__alt {
  display: contents;
}
.ilerleme__sol {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.ilerleme .soru__bugun {
  display: none;
}
/* The answer box under the question is for wide screens; a phone shows it all in the reveal. */
.soru__kutu {
  display: none;
}

/* ══ Wide screen (1100 px+): the question beside its field, the button under both ══
   The date moves up beside the progress squares. A band at the card's foot holds SUBMIT on the
   right, under the field; once submitted the reveal fills the band on the left, NEXT takes
   SUBMIT's exact spot (pinned to the band's top, so the band growing never moves it), and the
   band takes the verdict's colour: a coloured top rule and a light tint (good / middling / poor). */
@media (min-width: 1100px) {
  .oyun--genis {
    max-width: 62rem;
  }
  .ilerleme .soru__bugun {
    display: flex;
  }
  .soru > .soru__bugun {
    display: none;
  }
  .soru {
    padding: 1.25rem var(--soru-ic);
  }
  /* The map is the tallest field: a little smaller here so it and its reveal fit the screen. */
  .soru__alan .harita {
    max-width: 25rem;
    margin-inline: auto;
  }
  .soru__ust {
    display: grid;
    grid-template-columns: minmax(18rem, 25rem) minmax(0, 33rem);
    justify-content: space-between;
    column-gap: 2.5rem;
    align-items: start;
  }
  .soru__metin {
    display: block;
  }
  /* The question is the card's headline: large enough to own the left side. */
  .soru__baslik {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.15;
    text-wrap: pretty;
  }
  .soru__baslik--kisa {
    font-size: 2.5rem;
  }
  .soru__alan {
    margin-top: 0;
  }
  .soru__alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  .soru__eylem {
    flex: none;
    position: static;
    margin: 0;
    padding: 0;
    background: none;
  }
  .soru__acilis {
    flex: 1;
    min-width: 0;
  }
  .soru__acilis:empty {
    display: none;
  }

  /* The answer box, under the question: the answer and the surprise (js/components/Reveal.js).
     The question side keeps room for it from the start (min-height on .soru__ust), so the band
     and its button never move when it appears. */
  .soru__ust {
    min-height: 20.5rem; /* fits the tallest question + its box (1066 map); re-measure if texts grow */
  }
  .soru__kutu {
    display: block;
  }
  .acilis-kutu {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--r-ray-zemin) 70%, var(--r-kart-zemin));
    border: 1px solid var(--r-kart-kenar);
    border-radius: var(--radius);
    color: var(--r-acilis-metin);
  }
  .acilis-kutu .acilis__cevap {
    font-size: 1.5rem;
  }
  .acilis-kutu__surpriz {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--r-acilis-surpriz);
    text-wrap: pretty;
  }
  .acilis-kutu .acilis__blok + .acilis-kutu__surpriz {
    margin-top: 0.5rem;
  }
  /* …so the band only carries the score: verdict, points, how close. */
  .soru__acilis .acilis__blok,
  .soru__acilis .acilis__surpriz {
    display: none;
  }

  /* The band's reveal: verdict, points and how close on one line (each piece whole, never
     broken mid-way). */
  .soru__acilis .acilis {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.875rem;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .soru__acilis .acilis__karar {
    order: 0;
    margin: 0;
    font-size: 24px;
  }
  .soru__acilis .acilis__yakinlik {
    order: 3;
    margin: 0;
    white-space: nowrap;
  }
  .soru__acilis .acilis__puan {
    order: 1;
    margin: 0 0.5rem 0 0;
  }
  .soru__acilis .acilis__sayac {
    font-size: 24px; /* same size as the verdict beside it */
  }

  /* NEXT must land exactly where SUBMIT was, so nothing above the band may change height when the
     answer is revealed: each field keeps room for what its reveal adds (or keeps what it hides). */
  .soru__alan .zc__gercek[hidden] {
    display: block !important; /* the truth mark under a slider (beats base.css [hidden]) */
    visibility: hidden;
  }
  .soru__alan .sira__ipucu[hidden] {
    display: block !important; /* the order hint, hidden on reveal */
    visibility: hidden;
  }
  /* Order cards: the detail each card gets on reveal sits beside the name, its room kept from the
     start (still invisible until the reveal). */
  .soru__alan .sk__yazi {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.625rem;
  }
  .soru__alan .sk__detay {
    grid-template-rows: 1fr;
  }
  .soru__alan .yasam__kutu {
    min-height: 76px; /* room for the life dates each person gets on reveal */
  }

  /* The band */
  .soru {
    padding-bottom: 0;
    overflow: hidden;
  }
  .soru__alt {
    align-items: flex-start;
    justify-content: flex-end;
    margin: 0.75rem calc(var(--soru-ic) * -1) 0;
    padding: 0.75rem var(--soru-ic);
    background: color-mix(in srgb, var(--r-ray-zemin) 70%, var(--r-kart-zemin));
    border-top: 3px solid var(--r-kart-kenar);
    transition:
      background-color 0.4s ease,
      border-color 0.4s ease;
  }
  [data-sonuc="iyi"] .soru__alt {
    background: color-mix(in srgb, var(--r-acilis-gecmis) 9%, var(--r-kart-zemin));
    border-top-color: var(--r-acilis-gecmis);
  }
  [data-sonuc="orta"] .soru__alt {
    background: color-mix(in srgb, var(--r-soru-tarih-zemin) 9%, var(--r-kart-zemin));
    border-top-color: var(--r-soru-tarih-zemin);
  }
  [data-sonuc="kotu"] .soru__alt {
    background: color-mix(in srgb, var(--r-acilis-gelecek) 7%, var(--r-kart-zemin));
    border-top-color: var(--r-acilis-gelecek);
  }
}

/* ══ Ortak slider parçaları: ray, ibre, gerçek işareti ══ */

.zc__ray,
.tahmin__ray {
  position: relative;
  margin-inline: 16px;
  background: var(--r-ray-zemin);
  border: 1px solid var(--r-ray-kenar);
  cursor: grab;
  touch-action: none; /* parmak sürüklerken sayfa kaymasın */
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 8px;
}
.zc__ray.surukleniyor,
.tahmin__ray.surukleniyor {
  cursor: grabbing;
}
.zc__ray.kilitli,
.tahmin__ray.kilitli {
  cursor: default;
}

/* İbre: rayın üstünde piksel bir ok, rayı boydan boya kesen bir çubuk */
.zc__ibre {
  position: absolute;
  left: calc(var(--pos) * 100%);
  top: -30px;
  bottom: -6px;
  width: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 100%;
}
.zc__ibre-bas {
  position: absolute;
  left: -14px;
  top: 0;
  transform-origin: 50% 100%;
  transition: scale 0.18s var(--yay);
}
.surukleniyor .zc__ibre-bas {
  scale: 1.2;
}
.zc__ibre-cubuk {
  position: absolute;
  left: -2px;
  top: 20px;
  bottom: 0;
  width: 4px;
  background: var(--r-ibre);
  box-shadow: 0 0 0 2px var(--r-ibre-kenar);
}

/* Gerçek cevap: rayın altından yukarıyı gösteren ok ve yazısı */
.zc__gercek {
  position: relative;
  height: 42px;
  margin-inline: 18px;
  animation: belir 0.3s var(--yay) both;
}
.zc__gercek-ok {
  position: absolute;
  top: 6px;
  left: calc(var(--gercek) * 100%);
  translate: -7px 0;
}
.zc__gercek-yazi {
  position: absolute;
  top: 18px;
  left: calc(var(--gercek) * 100%);
  translate: calc(var(--gercek) * -100%) 0; /* uçlarda kutunun içinde kalır */
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--r-gercek-yazi);
}
.zc__gercek--gecmis {
  --r-gercek: var(--r-gercek-gecmis);
  --r-gercek-yazi: var(--r-gercek-gecmis);
}
.zc__gercek--gelecek {
  --r-gercek: var(--r-gercek-gelecek);
  --r-gercek-yazi: var(--r-gercek-gelecek);
}

/* ══ Mekanik B: Timeline ══ */

/* İbrenin gösterdiği yer, bugünden ölçülerek: "40 years ago", "in 25 years" */
.zc__deger {
  display: block;
  min-height: 32px;
  margin-bottom: 42px; /* ibrenin başı için yer */
  text-align: center;
  font-family: var(--f-ray-deger);
  font-size: 32px;
  color: var(--r-ray-deger);
  transition: color 0.15s;
}
.zc__deger[data-yon="gecmis"] {
  color: var(--r-ray-deger-gecmis);
}
.zc__deger[data-yon="bugun"] {
  color: var(--r-ray-deger-bugun);
}
.zc__deger[data-yon="gelecek"] {
  color: var(--r-ray-deger-gelecek);
}
.zc__deger[hidden] + .zc__ray {
  margin-top: 30px;
}
.zc__ray {
  height: 72px;
  /* sol yarı "already": zeytin tonlu zemin */
  background: linear-gradient(to right, var(--r-ray-gecmis) 50%, var(--r-ray-zemin) 50%);
}
/* Sağ yarı: henüz olmamış olan, çizgili */
.zc__gelecek {
  position: absolute;
  inset: 0 0 0 50%;
  background: repeating-linear-gradient(135deg, var(--r-ray-gelecek) 0 4px, transparent 4px 12px);
}
.zc__bolge {
  position: absolute;
  top: 6px;
  font-size: 0.6875rem;
  color: var(--r-ray-etiket);
}
.zc__bolge--gecmis {
  left: 8px;
  color: var(--r-bolge-gecmis);
}
.zc__bolge--gelecek {
  right: 8px;
  color: var(--r-bolge-gelecek);
}
.zc--acik .zc__bolge {
  display: none;
}
.zc__cizgiler {
  position: absolute;
  inset: 0;
}
.zc__cizgi {
  position: absolute;
  bottom: 0;
  left: calc(var(--x) * 100%);
  width: 2px;
  height: 22%;
  translate: -1px 0;
  background: var(--r-ray-cizgi);
}
.zc__orta {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  translate: -1px 0;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, var(--r-ray-orta) 0 4px, transparent 4px 8px);
}
.zc__bantlar {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* Bantlar: hedef dilim tam boy, uzaklaştıkça basamak basamak kısalır */
.zc__bant {
  position: absolute;
  bottom: 0;
  left: calc(var(--i) / var(--n) * 100%);
  width: calc(100% / var(--n) + 0.5px);
  height: calc(100% - var(--d) * 14%);
  background: var(--renk);
  --o: calc(1 - var(--d) * 0.16); /* hedeften uzaklaştıkça soluklaşır */
  opacity: var(--o);
  transform-origin: 50% 100%;
  scale: 1 0;
  transition: scale 0.3s var(--yay);
}
.zc__bant--acik {
  scale: 1 1;
}
.zc__bant--vurulan {
  animation: bant-vur 0.24s steps(2, jump-none) 3;
}
@keyframes bant-vur {
  50% {
    opacity: calc(var(--o) * 0.3);
  }
}
.zc__olcek {
  position: relative;
  height: 1.25rem;
  margin: 6px 18px 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--r-ray-etiket);
}
.zc__olcek span {
  position: absolute;
  left: calc(var(--x) * 100%);
  translate: -50% 0;
  white-space: nowrap;
}
.zc__olcek .zc__olcek-sol {
  translate: 0 0;
}
.zc__olcek .zc__olcek-sag {
  translate: -100% 0;
}
.zc__bugun {
  color: var(--r-ray-orta-yazi);
}
.zc__yon {
  display: flex;
  justify-content: space-between;
  margin: 2px 18px 0;
  font-size: 0.625rem;
  color: var(--r-ray-etiket);
}
.zc__yon span:first-child {
  color: var(--r-bolge-gecmis);
}
.zc__yon span:last-child {
  color: var(--r-bolge-gelecek);
}

/* ══ Mekanik A: Estimate ══ */

.tahmin__deger {
  display: block;
  min-height: 32px;
  margin-bottom: 42px; /* ibrenin başı için yer */
  text-align: center;
  font-family: var(--f-tahmin-deger);
  font-size: 32px;
  color: var(--r-tahmin-deger);
}
.tahmin__ray {
  height: 48px;
}
/* Boş: oyuncu dokunana kadar ibre yok, değer "?" (tahmin ve zaman çizgisi) */
.tahmin__ray.bos,
.zc__ray.bos {
  cursor: pointer;
}
.tahmin__ray.bos .zc__ibre,
.zc__ray.bos .zc__ibre {
  visibility: hidden;
}
.tahmin__deger--bos,
.zc__deger--bos {
  opacity: 0.55;
}
.tahmin__cizgiler {
  position: absolute;
  inset: 0;
}
.tahmin__cizgi {
  position: absolute;
  bottom: 0;
  left: calc(var(--x) * 100%);
  width: 2px;
  height: 28%;
  translate: -1px 0;
  background: var(--r-ray-cizgi);
}
.tahmin__cizgi--buyuk {
  height: 60%;
}
.tahmin__olcek {
  position: relative;
  height: 1.25rem;
  margin: 6px 18px 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--r-ray-etiket);
}
.tahmin__olcek span {
  position: absolute;
  left: calc(var(--x) * 100%);
  translate: -50% 0;
  white-space: nowrap;
}
.tahmin__olcek .tahmin__olcek-sol {
  translate: 0 0;
}
.tahmin__olcek .tahmin__olcek-sag {
  translate: -100% 0;
}
/* Reveal: ray gerçek cevabın etrafına zoom yapar, ibre yeni yerine kayar */
.tahmin--acik .zc__ibre {
  transition: left 0.5s var(--yay);
}
/* Uç etiketleri kutunun içinde kalsın: soldaki sola, sağdaki sağa yaslı */
.tahmin--acik .tahmin__olcek span {
  translate: calc(var(--x) * -100%) 0;
}

/* ══ Mekanik C: Sıralama ══ */

.sira__uc {
  text-align: center;
  color: var(--r-sira-uc);
}
.sira__liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}
.sira__ipucu {
  min-height: 1.4rem;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--r-kart-ipucu);
}

/* Basılabilen kart: arkada 6px aşağıda gölge katmanı, üstte yüz */
.sk {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--r-sk-metin);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  --centik: polygon(
    0 4px, 4px 4px, 4px 0,
    calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
}
.sk::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 0 6px;
  border-radius: var(--radius);
  background: var(--r-sk-golge);
}
.sk__yuz {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.375rem 0.75rem;
  background: var(--r-sk-zemin);
  border: 1px solid var(--r-sk-kenar);
  border-radius: var(--radius);
  transition: translate 0.2s var(--yay), border-color 0.2s, background-color 0.2s;
}
@media (hover: hover) {
  .sk:hover:not(:disabled) .sk__yuz {
    translate: 0 -4px;
  }
  .sk--yerlesti:hover:not(:disabled) .sk__yuz {
    translate: 0 1px;
  }
}
.sk--yerlesti .sk__yuz {
  translate: 0 4px; /* yerleşen kart yarı basılı durur */
}
.sk:active:not(:disabled) .sk__yuz {
  translate: 0 6px;
  transition-duration: 0.04s;
}
.sk:disabled {
  cursor: default;
}
.sk__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px dashed var(--r-sk-no-bos);
  font-family: var(--f-sk-no);
  font-size: 16px;
  transition: background-color 0.15s, border-color 0.15s;
}
.sk--yerlesti .sk__no {
  border: 1px solid var(--r-sk-no-zemin);
  background: var(--r-sk-no-zemin);
  color: var(--r-sk-no-metin);
}
.sk__yazi {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sk__ad {
  font-weight: 600;
  line-height: 1.3;
}
/* Kartın bilgisi (yıl, süre): reveal'da açılır */
.sk__detay {
  display: grid;
  grid-template-rows: 0fr;
  font-family: var(--f-govde);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--r-sk-detay);
  transition: grid-template-rows 0.3s ease;
}
.sk__detay > span {
  min-height: 0;
  overflow: hidden;
  visibility: hidden; /* cevap: reveal'a kadar hiçbir şekilde okunmasın */
}
.sira--detayli .sk__detay {
  grid-template-rows: 1fr;
}
.sira--detayli .sk__detay > span {
  visibility: visible;
}

/* Tarih kartı: piksel çerçeveli, köşeleri çentikli, piksel yazılı */
.sk--tarih {
  border-radius: 0;
}
.sk--tarih::before {
  border-radius: 0;
  background: var(--r-tarih-golge);
  clip-path: var(--centik);
}
.sk--tarih .sk__yuz {
  isolation: isolate;
  border: 0;
  border-radius: 0;
  padding: calc(0.375rem + 2px) calc(0.75rem + 2px);
  background: var(--r-tarih-kenar);
  color: var(--r-tarih-metin);
  clip-path: var(--centik);
}
.sk--tarih .sk__yuz::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  background: var(--r-tarih-zemin);
  clip-path: var(--centik);
}
.sk--tarih .sk__ad {
  font-family: var(--f-tarih-kart);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding-block: 2px;
}

/* Reveal: doğru yerdekiler ve yanlış yerdekiler */
.sira--acik .sk__yuz {
  translate: 0 4px;
}
.sk--dogru .sk__no {
  border: 1px solid var(--r-dogru);
  background: var(--r-dogru);
  color: var(--r-dogru-yazi);
}
/* Yanlış yerdeki kart bağırmaz: soluk bordo zemin, ince bordo kenar */
.sk--yanlis .sk__no {
  border: 1px solid var(--r-yanlis-kenar);
  background: var(--r-yanlis);
  color: var(--r-yanlis-yazi);
}
.sk--yanlis:not(.sk--tarih) .sk__yuz {
  border-color: var(--r-yanlis-kenar);
  background: var(--r-yanlis);
}
.sk--yanlis.sk--tarih .sk__yuz {
  background: var(--r-yanlis-kenar);
}

/* ══ Reveal paneli ══ */

.acilis {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--r-acilis-cizgi);
  text-align: center;
  color: var(--r-acilis-metin);
}
.acilis__etiket {
  color: var(--r-acilis-etiket);
}
/* Hüküm: SPOT ON / CLOSE / NOT QUITE / WAY OFF (js/config.js verdicts) */
.acilis__karar {
  margin-bottom: 0.375rem;
  font-family: var(--f-sayac);
  font-size: 16px;
  color: var(--r-acilis-etiket);
}
.acilis__karar--iyi {
  color: var(--r-acilis-gecmis);
}
.acilis__karar--kotu {
  color: var(--r-acilis-gelecek);
}
.acilis__cevap {
  font-family: var(--f-cevap);
  font-size: clamp(2.25rem, 10vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--r-acilis-cevap);
}
/* Timeline cevabı yönünün rengini alır: geçmişte zeytin, gelecekte bordo */
.acilis--gecmis .acilis__cevap,
.acilis--gecmis .acilis__etiket {
  color: var(--r-acilis-gecmis);
}
.acilis--gelecek .acilis__cevap,
.acilis--gelecek .acilis__etiket {
  color: var(--r-acilis-gelecek);
}
.acilis__yakinlik {
  margin-top: 0.375rem;
  font-weight: 600;
}
.acilis__surpriz {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  font-size: 0.9375rem;
  color: var(--r-acilis-surpriz);
  text-wrap: pretty;
}
.acilis__puan {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}
.acilis__sayac {
  font-family: var(--f-sayac);
  font-size: 48px;
  color: var(--r-sayac);
}
.acilis__sayac--tam {
  animation: sayac-tam 0.5s var(--yay);
}
@keyframes sayac-tam {
  40% {
    scale: 1.25;
  }
}
.acilis__puan-etiket {
  color: var(--r-sayac-etiket);
}

/* ══ Sonuç ══ */

.sonuc {
  padding-top: 1rem;
  text-align: center;
}
.sonuc__tarih {
  color: var(--r-hero-etiket);
}
.sonuc__toplam {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
}
.sonuc__skor {
  font-family: var(--f-skor);
  font-size: 64px;
  color: var(--r-sonuc-skor);
}
.sonuc__uzerinden {
  font-family: var(--f-skor);
  font-size: 32px;
  color: var(--r-sonuc-toplam);
}
.sonuc__unvan {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--r-sonuc-unvan);
}
.sonuc__kutular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr));
  gap: 8px;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.kutucuk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px 12px;
  background: var(--r-kutu-zemin);
  border: 1px solid var(--r-kutu-kenar);
  border-radius: var(--radius);
}
.kutucuk__etiket {
  color: var(--r-kutu-etiket);
}
.kutucuk__puan {
  font-family: var(--f-kutu-puan);
  font-size: 16px;
  color: var(--r-kutu-puan);
}
.sonuc__paylasim {
  max-width: 22rem;
  margin: 1.5rem auto 0;
  padding: 0.875rem 1rem;
  background: var(--r-paylasim-zemin);
  border: 1px solid var(--r-paylasim-kenar);
  border-radius: var(--radius);
  color: var(--r-paylasim-metin);
  font-family: var(--f-govde);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
  white-space: pre-wrap;
}
.sonuc__dugmeler {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
}
/* Yarın: günde bir gün. COPY RESULT'un yanında, kesik bir çizginin ardında gece yarısına geri sayım.
   Düğme satırında durur ki sonuç ekranı 1440×780'e sığmaya devam etsin. */
.sonuc__yarin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 1.25rem;
  border-left: 1px dashed var(--r-paylasim-kenar);
  text-align: left;
}
.sonuc__yarin-etiket {
  color: var(--r-hero-etiket);
}
.sonuc__sayac {
  font-family: var(--f-skor);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  color: var(--r-hero-baslik);
}
/* Telefonda düğmenin altına iner: çizgi yok, ortalı. */
@media (max-width: 599px) {
  .sonuc__yarin {
    align-items: center;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }
}

/* ══ Efekt katmanı ve başarım kartı ══ */

#fx {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}
.parca {
  position: absolute;
  display: block;
}

#basarim-alani {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}
.basarim {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--r-basarim-zemin);
  border: 2px solid var(--r-basarim-kenar);
  pointer-events: auto;
  cursor: pointer;
  animation: basarim-gir 0.45s var(--yay) both;
}
.basarim--cikiyor {
  animation: basarim-cik 0.35s ease-in both;
}
@keyframes basarim-gir {
  from {
    translate: 120% 80%;
  }
  to {
    translate: 0 0;
  }
}
@keyframes basarim-cik {
  to {
    translate: 120% 80%;
  }
}
/* Dar ekranda sağ alt köşe NEXT düğmesinin yeri: kart oraya gelirse 4 sn boyunca düğmeyi
   ve puanı kapatıyor. Telefonda sağ üstten girer; geniş ekranda sağ alttan. */
@media (max-width: 599px) {
  #basarim-alani {
    top: max(0.5rem, env(safe-area-inset-top));
    bottom: auto;
  }
  @keyframes basarim-gir {
    from {
      translate: 120% -80%;
    }
    to {
      translate: 0 0;
    }
  }
  @keyframes basarim-cik {
    to {
      translate: 120% -80%;
    }
  }
}
.basarim__baslik {
  font-family: var(--f-basarim);
  font-size: 16px;
  color: var(--r-basarim-baslik);
}

/* ══ Mekanik D: Harita (Map Pin) ══ */

.harita__cerceve {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--r-harita-kenar);
  border-radius: var(--radius);
  background: var(--r-harita-deniz);
  cursor: zoom-in;
  touch-action: none; /* parmak haritayı kaydırır, sayfayı değil */
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 4px;
}
.harita__cerceve--yakin {
  cursor: crosshair; /* yakındayken tıklamak iğneyi bırakır */
}
.harita__cerceve.surukleniyor {
  cursor: grabbing;
}
.harita__cerceve.kilitli {
  cursor: default;
}
.harita__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.harita__deniz {
  fill: var(--r-harita-deniz);
}
.harita__kara {
  fill: var(--r-harita-kara);
}
/* Mesafe halkaları: dıştan içe açılır, içe doğru koyulaşır */
.harita__halka {
  fill: var(--r-harita-halka);
  opacity: calc(0.16 + (3 - var(--d)) * 0.1);
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
  transition: scale 0.32s var(--yay);
}
.harita__halka--acik {
  scale: 1;
}
.harita__cizgi {
  stroke: var(--r-harita-cizgi);
  stroke-width: 2px;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

/* İğne ve X: hücreye yapışık HTML katmanları; konturları her zeminde seçilsin diye */
.harita__pin,
.harita__gercek {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(2px 0 0 var(--r-harita-hale)) drop-shadow(-2px 0 0 var(--r-harita-hale))
    drop-shadow(0 2px 0 var(--r-harita-hale)) drop-shadow(0 -2px 0 var(--r-harita-hale));
}
.harita__pin {
  translate: -50% -100%; /* okun ucu noktaya değer */
}
.harita__pin--hayalet {
  opacity: 0.45; /* fareyi izleyen silik iğne: tıklarsan buraya düşer */
  filter: none;
}
.harita__gercek {
  translate: -50% -50%;
  z-index: 3; /* X ve adı iğnenin üstünde kalsın */
  animation: belir 0.3s var(--yay) both;
}
.harita__gercek-yazi {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  translate: -50% 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--r-harita-etiket-zemin);
  color: var(--r-harita-etiket-yazi);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  filter: none;
}
.harita__gercek-yazi--alt {
  bottom: auto;
  top: calc(100% + 6px);
}

.harita__alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  margin-top: 0.375rem;
}
.harita__ipucu {
  font-size: 0.875rem;
  color: var(--r-harita-ipucu);
}
.harita__dugme {
  flex: none;
  min-height: 44px;
  padding: 0 0.875rem;
  border: 1px solid var(--r-harita-kenar);
  border-radius: var(--radius);
  background: transparent;
  color: var(--r-harita-dugme);
  font-family: var(--f-dugme);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

/* ══ Mekanik E: Kim yaşıyor? (3 kişi, 3 kutu) ══ */

.yasam__tepsi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px;
  border: 2px dashed var(--r-yasam-kutu-kenar);
  border-radius: var(--radius);
}
.yasam__tepsi--bos {
  border-color: transparent;
  min-height: 0;
  padding: 0;
}
.yasam__kisi {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--r-sk-kenar);
  border-radius: 10px;
  background: var(--r-sk-zemin);
  box-shadow: 0 4px 0 var(--r-sk-golge);
  color: var(--r-sk-metin);
  font-family: var(--f-dugme);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: grab;
  touch-action: none; /* parmakla sürüklerken sayfa kaymasın */
  user-select: none;
  -webkit-user-select: none;
  transition: translate 0.18s var(--yay), box-shadow 0.18s, scale 0.18s var(--yay);
}
.yasam__kisi--secili {
  translate: 0 -4px;
  box-shadow: 0 8px 0 var(--r-sk-golge);
  outline: 2px solid var(--r-yasam-secili-yazi);
  outline-offset: 2px;
}
.yasam__kisi--surukleniyor {
  position: relative;
  z-index: 20;
  scale: 1.06;
  cursor: grabbing;
  transition: none;
}
.yasam__kisi:disabled {
  cursor: default;
}

.yasam__kutular {
  display: grid;
  gap: 10px;
  margin-top: 0.875rem;
}
.yasam__kutu {
  --vurgu: var(--r-yasam-kutu-kenar);
  --vurgu-zemin: transparent;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 10px;
  border: 2px solid var(--vurgu);
  border-radius: var(--radius);
  background: var(--vurgu-zemin);
  cursor: pointer;
  transition: scale 0.18s var(--yay), box-shadow 0.15s;
}
.yasam__kutu--gone {
  --vurgu: var(--r-yasam-gone);
  --vurgu-zemin: var(--r-yasam-gone-zemin);
}
.yasam__kutu--alive {
  --vurgu: var(--r-yasam-alive);
  --vurgu-zemin: var(--r-yasam-alive-zemin);
}
.yasam__kutu--notyet {
  --vurgu: var(--r-yasam-notyet);
  --vurgu-zemin: var(--r-yasam-notyet-zemin);
}
.yasam__kutu-ad {
  color: var(--r-yasam-secili-yazi);
  line-height: 1.3;
}
.yasam__yuva {
  display: flex;
  justify-content: flex-start;
  min-height: 48px;
  align-items: center;
}
.yasam__kutu--hedef .yasam__yuva:empty,
.yasam__kutu--ustunde .yasam__yuva:empty {
  border: 2px dashed var(--vurgu);
  border-radius: 10px;
}
.yasam__kutu--ustunde {
  scale: 1.03;
  box-shadow: 0 0 0 3px var(--vurgu);
}
.yasam__ipucu {
  min-height: 1.4rem;
  margin-top: 0.625rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--r-kart-ipucu);
}

/* Reveal */
.yasam--acik .yasam__kutu {
  cursor: default;
}
.yasam__kisi--dogru {
  border-color: var(--r-dogru);
}
.yasam__kisi--yanlis {
  border-color: var(--r-yanlis-kenar);
}
.yasam__omur {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--r-yasam-omur);
  animation: belir 0.3s var(--yay) both;
}


/* Seri takvimi (js/account.js StreakCalendar): geri sayımın yanında, kesik çizginin ardında.
   Yapraklar ay değil serinin günleri: 1, 2, 3… Oynanan gün mürekkep damgalı, yarının yaprağı boş. */
.takvim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 1.25rem;
  border-left: 1px dashed var(--r-paylasim-kenar);
}
.takvim__etiket {
  margin: 0;
  color: var(--r-hero-etiket);
}
.takvim__govde {
  display: flex;
  align-items: center;
  gap: 12px;
}
.takvim__sayfalar {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.takvim__sayfa {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 40px;
  height: 48px;
  background: var(--r-takvim-sayfa-zemin);
  border: 1px solid var(--r-takvim-sayfa-kenar);
}
/* Yaprağın tepesi: koparılan takvimin üst şeridi, ortasında iki halka deliği. */
.takvim__ust {
  height: 9px;
  background:
    radial-gradient(circle at 30% 50%, var(--r-takvim-sayfa-zemin) 1.5px, transparent 2px),
    radial-gradient(circle at 70% 50%, var(--r-takvim-sayfa-zemin) 1.5px, transparent 2px),
    var(--r-takvim-sayfa-ust);
}
.takvim__no {
  display: grid;
  flex: 1;
  place-items: center;
  font-family: var(--f-skor);
  font-size: 16px;
  color: var(--r-takvim-no);
}
.takvim__damga {
  position: absolute;
  top: 12px;
  left: 50%;
  margin-left: -15px;
  color: var(--r-takvim-damga);
  transform: rotate(-14deg);
  pointer-events: none;
}
.takvim__damga svg {
  display: block;
}
/* Bugünün boş damga yeri: kesik bir halka. */
.takvim__sayfa--bos::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border: 2px dashed var(--r-takvim-sayfa-kenar);
  border-radius: 50%;
}
.takvim__sayfa--yarin {
  background: transparent;
  border-style: dashed;
}
.takvim__sayfa--yarin .takvim__ust {
  background: transparent;
  border-bottom: 1px dashed var(--r-takvim-sayfa-kenar);
}
.takvim__sayfa--yarin .takvim__no {
  color: var(--r-takvim-no-yarin);
}
@media (prefers-reduced-motion: no-preference) {
  /* Damga iner: büyükten küçülür, piksel adımlarla; yaprak altında hafifçe çöker. */
  .takvim__sayfa--yeni .takvim__damga {
    animation: takvim-damga 0.36s steps(6, end) both;
  }
  .takvim__sayfa--yeni {
    animation: takvim-cok 0.3s 0.3s var(--yay) both;
  }
  /* Giriş yapılmamışsa bugünün yaprağı arada bir kıpırdar: damga bekliyor. */
  .takvim__sayfa--davet {
    animation: takvim-davet 6s 3s infinite;
  }
}
@keyframes takvim-damga {
  0% {
    transform: scale(2.4) rotate(-40deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.88) rotate(-10deg);
    opacity: 1;
  }
  100% {
    transform: rotate(-14deg);
    opacity: 1;
  }
}
@keyframes takvim-cok {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateY(2px) scaleY(0.94);
  }
}
@keyframes takvim-davet {
  0%,
  88%,
  100% {
    transform: none;
  }
  91% {
    transform: rotate(-6deg);
  }
  94% {
    transform: rotate(5deg);
  }
  97% {
    transform: rotate(-2deg);
  }
}
/* Masaüstünde üçü tek satır: satır sonuç sütunundan (576 px) biraz taşar, ortalı kalır. */
@media (min-width: 700px) {
  .sonuc__dugmeler {
    flex-wrap: nowrap;
    margin-inline: -4rem;
  }
}
@media (max-width: 599px) {
  .takvim {
    align-items: center;
    padding-left: 0;
    border-left: 0;
  }
}
