/* ==========================================================================
   Tema tokenları — preset'ler aşağıda. Yeni tema: [data-theme="isim"] bloğu ekle.
   ========================================================================== */
:root,
[data-theme="lavanta"] {
  --bg: #c9d3ff;
  --bg-2: #dfe4ff;
  --paper: #fbfaff;
  --ink: #1b1a3a;
  --ink-soft: #4a4870;
  --line: rgba(27, 26, 58, 0.12);
  --accent: #ff4f6d;
  --accent-ink: #1b1a3a;
  --sun: #ffd65c;
  --mint: #1fb58a;
  --shape-1: #ff4f6d;
  --shape-2: #ffd65c;
  --shape-3: #fbfaff;
  --shadow: 0 1px 0 rgba(27, 26, 58, 0.06), 0 12px 32px -12px rgba(27, 26, 58, 0.28);
  --shadow-lift: 0 2px 0 rgba(27, 26, 58, 0.06), 0 22px 44px -16px rgba(27, 26, 58, 0.38);
}
[data-theme="gece"] {
  --bg: #15142e;
  --bg-2: #1d1b40;
  --paper: #25234f;
  --ink: #f3f1ff;
  --ink-soft: #b9b6e6;
  --line: rgba(243, 241, 255, 0.14);
  --accent: #ff6b85;
  --accent-ink: #15142e;
  --sun: #ffd65c;
  --mint: #45d3a6;
  --shape-1: #ff6b85;
  --shape-2: #8c8cf2;
  --shape-3: #ffd65c;
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 22px 44px -16px rgba(0, 0, 0, 0.7);
}
[data-theme="seftali"] {
  --bg: #ffd8c2;
  --bg-2: #ffe6d8;
  --paper: #fff8f3;
  --ink: #2b1b17;
  --ink-soft: #6b4f47;
  --line: rgba(43, 27, 23, 0.12);
  --accent: #6b4dff;
  --accent-ink: #ffffff;
  --sun: #ffb020;
  --mint: #1fb58a;
  --shape-1: #6b4dff;
  --shape-2: #ffb020;
  --shape-3: #fff8f3;
  --shadow: 0 12px 32px -12px rgba(43, 27, 23, 0.28);
  --shadow-lift: 0 22px 44px -16px rgba(43, 27, 23, 0.38);
}

[data-theme="orman"] {
  --bg: #cfe2d3;
  --bg-2: #e6f1e7;
  --paper: #fbfdf8;
  --ink: #13261c;
  --ink-soft: #46604f;
  --line: rgba(19, 38, 28, 0.12);
  --accent: #1f5b3f;
  --accent-ink: #ffffff;
  --sun: #ffcf5c;
  --mint: #2f8f5f;
  --shape-1: #ff6f91;
  --shape-2: #ffcf5c;
  --shape-3: #fbfdf8;
  --shadow: 0 1px 0 rgba(19, 38, 28, 0.06), 0 12px 32px -12px rgba(19, 38, 28, 0.3);
  --shadow-lift: 0 2px 0 rgba(19, 38, 28, 0.06), 0 22px 44px -16px rgba(19, 38, 28, 0.4);
}

:root {
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;

  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --dur-fast: 160ms;
  --dur: 280ms;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 760px;
}

/* ==========================================================================
   Temel
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 400ms ease, color 400ms ease;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Üst bar: ilerleme + geri
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.progress {
  order: 2;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 520ms var(--ease-out);
}
.back {
  order: 1;
  pointer-events: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur) ease;
}
.back:hover { transform: translateX(-2px); }
.back:active { transform: scale(0.94); }
.back[hidden] { display: grid; opacity: 0; pointer-events: none; }

/* ==========================================================================
   Sahne ve adımlar
   ========================================================================== */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top) + 76px)
    var(--gutter)
    calc(env(safe-area-inset-bottom) + 40px);
}
.step {
  width: 100%;
  max-width: var(--maxw);
  will-change: transform, opacity;
}
.step__head { margin-bottom: clamp(20px, 4vw, 32px); }
.step__head:focus { outline: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 6.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.question {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.2vw, 19px);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ==========================================================================
   Butonlar
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    opacity var(--dur) ease,
    background-color var(--dur) ease;
  user-select: none;
  -webkit-user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { text-align: left; }
.intro .title { max-width: 14ch; }
.intro .lede { margin-top: 20px; }

/* ==========================================================================
   Seçim: fotoğraf kartları (imza öğe)
   ========================================================================== */
.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 22px);
  perspective: 900px;
}
@media (min-width: 900px) {
  .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:has(.photos) { max-width: 980px; }
}

.photo {
  --rot: 0deg;
  --tx: 0px;
  --ty: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 0;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  transform: rotate(var(--rot)) translate(var(--tx), var(--ty));
  transition:
    transform 380ms var(--ease-spring),
    box-shadow var(--dur) var(--ease-out),
    opacity var(--dur) ease;
}
.photo__img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-2);
}
.photo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.photo__label {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 6px 10px;
  font-weight: 600;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.25;
}
.photo__key {
  display: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
@media (hover: hover) and (pointer: fine) {
  .photo__key { display: inline-block; }
  .photo:hover { --rot: 0deg; box-shadow: var(--shadow-lift); }
  .photo:hover .photo__img img { transform: scale(1.05); }
}
.photo:active { transform: rotate(var(--rot)) scale(0.97); }

.photo__stamp {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
  transform: scale(0) rotate(-40deg);
  transition: transform 420ms var(--ease-spring);
}
.photo.is-picked {
  --rot: 0deg !important;
  --ty: -6px;
  box-shadow: var(--shadow-lift), 0 0 0 3px var(--accent);
  z-index: 2;
}
.photo.is-picked .photo__stamp { transform: scale(1) rotate(0); }
.photos.has-pick .photo:not(.is-picked) { opacity: 0.45; transform: rotate(var(--rot)) scale(0.96); }

/* Liste düzeni */
.list {
  display: grid;
  gap: 12px;
}
.list__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: left;
  font-weight: 600;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, opacity var(--dur) ease;
}
.list__dot {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
  display: grid; place-items: center;
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease;
}
.list__dot svg { opacity: 0; transform: scale(0.4); transition: all 300ms var(--ease-spring); }
.list__item:hover { transform: translateX(4px); }
.list__item:active { transform: scale(0.98); }
.list__item.is-picked { box-shadow: var(--shadow-lift), 0 0 0 3px var(--accent); }
.list__item.is-picked .list__dot { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.list__item.is-picked .list__dot svg { opacity: 1; transform: scale(1); }
.list.has-pick .list__item:not(.is-picked) { opacity: 0.45; }

/* ==========================================================================
   Kaçan buton
   ========================================================================== */
.arena {
  position: relative;
  height: clamp(220px, 36vh, 320px);
  margin-top: clamp(20px, 4vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 22px 22px,
    color-mix(in srgb, var(--paper) 45%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: none;
  overflow: hidden;
}
.arena .btn { position: absolute; left: 0; top: 0; }
.btn--yes {
  z-index: 2;
  transition:
    transform 420ms var(--ease-spring),
    box-shadow var(--dur) ease;
}
.btn--no {
  z-index: 1;
  transition:
    transform 340ms var(--ease-spring),
    opacity 300ms ease,
    background-color var(--dur) ease;
  will-change: transform;
}
.btn--no.is-gone { opacity: 0; pointer-events: none; }
.arena__hint {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.arena__hint.is-on { opacity: 1; }

/* ==========================================================================
   Takvim
   ========================================================================== */
.cal {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(14px, 3vw, 24px);
  max-width: 520px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal__month {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  text-transform: capitalize;
}
.cal__nav { display: flex; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover:not(:disabled) { background: var(--bg-2); }
.icon-btn:active:not(:disabled) { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal__dow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0 6px;
}
.cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) ease, transform 300ms var(--ease-spring), color var(--dur-fast) ease;
}
.cal__day:hover:not(:disabled):not(.is-picked) { background: var(--bg-2); }
.cal__day:disabled { opacity: 0.28; cursor: not-allowed; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--line); }
.cal__day.is-picked {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.08);
}
.cal__grid.is-sliding-next { animation: slide-next 320ms var(--ease-out); }
.cal__grid.is-sliding-prev { animation: slide-prev 320ms var(--ease-out); }
@keyframes slide-next { from { opacity: 0; transform: translateX(18px); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-18px); } }

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.slot {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 600;
  transition: all var(--dur-fast) ease;
}
.slot:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.slot.is-picked { background: var(--ink); color: var(--paper); box-shadow: none; }

.picked-line {
  min-height: 28px;
  margin: 16px 0 0;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .step--date .step__body { display: grid; grid-template-columns: 520px 1fr; gap: 32px; align-items: end; }
  .step--date .actions { margin-top: 0; }
}

/* ==========================================================================
   Metin alanı
   ========================================================================== */
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 2px transparent;
  font-size: 18px;
  line-height: 1.5;
  resize: vertical;
  transition: box-shadow var(--dur) ease;
}
.field textarea:focus { outline: none; box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.field__count { text-align: right; font-size: 13px; color: var(--ink-soft); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Sonuç
   ========================================================================== */
.result {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 760px) {
  .result { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .step:has(.result) { max-width: 940px; }
}
.result__photo {
  padding: 12px 12px 0;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-3deg);
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
@media (max-width: 759px) {
  .result__photo { max-width: 240px; }
  .result__photo figcaption { font-size: 17px; padding: 10px 4px 12px; }
}
.result__photo .photo__img { aspect-ratio: 1; }
.result__photo figcaption {
  font-family: var(--font-display);
  font-size: 20px;
  padding: 14px 4px 16px;
  text-align: center;
}
.result .title { font-size: clamp(36px, 6vw, 60px); }
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.date-chip svg { flex: none; }

/* ==========================================================================
   Arka plan şekilleri
   ========================================================================== */
.shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: drift var(--d, 30s) ease-in-out infinite alternate;
}
.shape--sq { border-radius: 28%; }
@media (max-width: 700px) {
  .shape { scale: 0.55; opacity: 0.3; }
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, 40px), var(--dy, -60px)) rotate(var(--dr, 40deg)); }
}

/* ==========================================================================
   Konfeti, köşe dokunma alanı
   ========================================================================== */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}
.corner-tap {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
  z-index: 25;
}

/* ==========================================================================
   Admin paneli
   ========================================================================== */
.admin {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.admin[open] { display: flex; flex-direction: column; animation: admin-in 320ms var(--ease-out); }
.admin::backdrop { background: rgba(10, 10, 30, 0.5); backdrop-filter: blur(4px); animation: fade-in 240ms ease; }
@keyframes admin-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.admin__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin__bar h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0; margin-right: auto; }
.admin__bar .btn { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.admin__body { overflow: auto; padding: 18px 22px 26px; -webkit-overflow-scrolling: touch; }
.admin__note { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.admin__login { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 8px 0 4px; }
.admin__login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.admin__login input {
  min-height: 48px;
  width: 220px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 16px;
}
.admin__error { color: #d12e4c; font-weight: 600; font-size: 14px; margin: 8px 0 0; min-height: 20px; }
[data-theme="gece"] .admin__error { color: #ff8da1; }

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { padding: 10px 14px; border-radius: 14px; background: var(--bg-2); min-width: 110px; }
.stat b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--ink-soft); }

.log {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 10px;
  overflow: hidden;
}
.log summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
}
.log summary::-webkit-details-marker { display: none; }
.log summary:hover { background: var(--bg-2); }
.log__when { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.log__main { font-weight: 600; min-width: 0; }
.log__main small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-2);
  white-space: nowrap;
}
.badge--done { background: var(--mint); color: #062a1f; }
.badge--date { background: var(--sun); color: #2b2200; }
.log__detail { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.timeline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}
.log__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.log__actions .btn { min-height: 40px; font-size: 14px; padding: 0 14px; box-shadow: none; }
.btn--danger { --btn-bg: transparent; --btn-fg: #d12e4c; box-shadow: inset 0 0 0 2px currentColor !important; }

@media (max-width: 560px) {
  .admin__bar { padding: 12px 12px 12px 18px; gap: 6px; }
  .admin__bar h2 { flex-basis: 100%; }
  .admin__bar .btn { padding: 0 12px; font-size: 14px; }
  .admin__body { padding: 14px 14px 22px; }
  .stat { min-width: 0; flex: 1 1 40%; }
  .log summary { grid-template-columns: 1fr; }
  .log summary > span:last-child { justify-self: start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .admin__login input { width: 100%; }
  .admin__login > div { flex: 1; }
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: 40;
  padding: 12px 20px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) ease;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   Hareket azaltma
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .shapes { display: none; }
}

/* ==========================================================================
   Reveal kartı (choice seçeneğinde "reveal") + sonuç mektubu
   ========================================================================== */
.reveal {
  display: grid;
  gap: 18px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: 14px;
  max-width: 640px;
}
@media (min-width: 760px) {
  .reveal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 16px 24px 16px 16px; }
}
.reveal__img { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.reveal__img img { width: 100%; height: 100%; object-fit: cover; }
.reveal__body { padding: 0 6px 6px; }
.reveal__title { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; margin: 0 0 8px; }
.reveal__text { margin: 0; color: var(--ink-soft); }
.reveal .actions { margin-top: 18px; flex-wrap: wrap; }
.letter {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.letter p { margin: 0 0 10px; }
.letter p:last-child { margin: 0; font-family: var(--font-display); }

/* intro / dodge görseli (config: step.image) */
.step-img { display: block; width: min(100%, 420px); aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin: 18px 0 4px; background: var(--bg-2); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }

/* açılan sonlar galerisi */
.gal-btn { position: fixed; top: max(12px, env(safe-area-inset-top)); right: var(--gutter); z-index: 30; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.gal-btn[hidden] { display: none; }
.gal { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.gal::backdrop { background: rgba(10, 20, 15, .5); backdrop-filter: blur(4px); }
.gal__bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.gal__x, .gal__back { border: 0; background: none; font-weight: 700; padding: 6px 8px; border-radius: 8px; }
.gal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; }
.gal__t { display: grid; gap: 6px; padding: 6px; border: 0; border-radius: var(--r-md); background: var(--bg-2); text-align: left; font-size: 13px; font-weight: 600; line-height: 1.3; }
.gal__t img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gal__t.is-locked { color: var(--ink-soft); opacity: .7; }
.gal__q { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--line); font-family: var(--font-display); font-size: 28px; }
.gal__one { padding: 16px; }
.gal__one img { width: 100%; border-radius: var(--r-md); margin-bottom: 12px; }
body.has-gal .topbar { padding-right: calc(var(--gutter) + 84px); }
.gal-btn { top: calc(env(safe-area-inset-top) + 20px); }
