/* İlk Gün — sıcak, elle boyanmış kâğıt hissi. Renkler token; koyu tema aynı token'ları yeniden tanımlar. */
:root {
  --paper: #f4ecdf;
  --paper-2: #ebdfcc;
  --card: #fbf6ee;
  --ink: #2b2420;
  --ink-2: #5d5148;
  --ink-3: #8a7c70;
  --line: #d8c9b4;
  --turmeric: #c98a12;
  --turmeric-soft: #f1d9a6;
  --terracotta: #b0503a;
  --terracotta-soft: #efcdc2;
  --indigo: #2f3e6b;
  --indigo-soft: #d4d9ea;
  --leaf: #55704a;
  --leaf-soft: #d7e2cd;
  --focus: #2f3e6b;
  --shadow: 0 1px 0 rgba(43, 36, 32, 0.06), 0 8px 24px -12px rgba(43, 36, 32, 0.25);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Gordita lisansı gelirse: "Gordita", */
  --bg-k: 1; /* arka plan şekillerinin yoğunluk çarpanı */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f1b18; --paper-2: #2a2420; --card: #29231f; --ink: #f1e8da; --ink-2: #cdbfae; --ink-3: #9b8d7f; --line: #463c34;
    --turmeric: #e3a93b; --turmeric-soft: #4a3a1a; --terracotta: #e07d63; --terracotta-soft: #4a2a22; --indigo: #a9b6e6; --indigo-soft: #2b3352;
    --leaf: #9ab88c; --leaf-soft: #2c3827; --focus: #e3a93b; --bg-k: .75; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1f1b18; --paper-2: #2a2420; --card: #29231f; --ink: #f1e8da; --ink-2: #cdbfae; --ink-3: #9b8d7f; --line: #463c34;
  --turmeric: #e3a93b; --turmeric-soft: #4a3a1a; --terracotta: #e07d63; --terracotta-soft: #4a2a22; --indigo: #a9b6e6; --indigo-soft: #2b3352;
  --leaf: #9ab88c; --leaf-soft: #2c3827; --focus: #e3a93b; --bg-k: .75; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper) var(--grain); color: var(--ink);
  font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; position: relative;
}
main { max-width: 600px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); outline: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
a { color: var(--indigo); text-underline-offset: 2px; }
.small { font-size: .86rem; color: var(--ink-2); }
.tiny { font-size: .76rem; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus, main:focus-visible { outline: none; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--paper); transition: transform .12s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--terracotta); color: #fff8f2; font-size: 1.15rem; min-height: 56px; padding: 14px 34px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #1f1b18; } }
:root[data-theme="dark"] .btn.primary { color: #1f1b18; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.link { background: none; color: var(--indigo); padding: 8px 4px; min-height: 44px; text-decoration: underline; font-weight: 500; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 12px; }
.center { text-align: center; }

/* Kart (kâğıt) */
.card {
  background: var(--card) var(--grain); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.card + .card { margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--paper-2); color: var(--ink-2); }
.chip.warn { background: var(--terracotta-soft); color: var(--terracotta); }
.chip.old { background: var(--turmeric-soft); color: color-mix(in srgb, var(--turmeric) 70%, var(--ink)); }

/* Üst çubuk */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; min-height: 44px; }
.topbar .brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.iconbtn:hover { background: var(--paper-2); }
.setbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink-2); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.setbtn:hover { background: var(--card); color: var(--ink); }

/* Giriş */
.hero { padding: 6vh 0 2vh; text-align: center; }
.hero .cal { width: 112px; margin: 0 auto 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 30ch; margin: 0 auto 26px; }
.notes { margin-top: 26px; }
.toggle { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; min-height: 48px; cursor: pointer; }
.toggle input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--leaf); }
.toggle input:checked::after { transform: translateX(18px); }
select, input[type="text"] { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%; }

/* Doğuş */
.field { width: 100%; height: auto; display: block; }
.field circle { transition: fill .3s, r .3s, opacity .3s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .78rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.cells { display: grid; gap: 6px; margin: 12px 0 4px; }
.cells .r { display: flex; gap: 6px; align-items: stretch; }
.cells .lab { width: 54px; font-size: .78rem; color: var(--ink-2); display: flex; align-items: center; }
.cells .c { min-height: 46px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 12%, var(--card)); display: grid; place-items: center; font-size: .72rem; color: var(--ink-3); transition: background .3s, transform .3s; min-width: 4px; }
.cells .c.on { background: var(--terracotta); color: #fff; transform: scale(1.04); }
.cells .q { display: flex; gap: 6px; margin-left: 60px; font-size: .7rem; color: var(--ink-3); }
.bars { display: grid; gap: 6px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: .84rem; align-items: center; }
.bar .track { height: 10px; background: color-mix(in srgb, var(--ink) 12%, var(--card)); border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.bar .fill { height: 100%; background: var(--ink-3); border-radius: 99px; }
.bar.on .fill { background: var(--terracotta); }
.bar.on { font-weight: 600; }
.step-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); font-weight: 600; margin-bottom: 4px; }
.result { font-family: var(--sans); font-weight: 600; font-size: 1.22rem; line-height: 1.4; margin: 14px 0 6px; min-height: 1.4em; letter-spacing: -0.01em; }

/* Tanışma: takvim yaprağı */
.card.leaf { padding: 0; overflow: hidden; }
.leaf .strip { background: var(--terracotta); color: #fff8f2; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .86rem; letter-spacing: .04em; }
.leaf .rings { display: flex; gap: 22px; }
.leaf .rings i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); display: block; }
.leaf .body { padding: 20px; }
.leaf .name { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; }
.portrait { width: 96px; height: 96px; float: right; margin: 0 0 8px 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: .95rem; }
.facts dt { color: var(--ink-3); font-size: .82rem; padding-top: 2px; }
.facts dd { margin: 0; }

/* Bölüm */
.phasebar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.phasebar .ph { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.progress { display: flex; gap: 4px; }
.progress i { width: 22px; height: 4px; border-radius: 99px; background: var(--line); }
.progress i.on { background: var(--terracotta); }
.bonds { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.bond { display: grid; justify-items: center; gap: 2px; min-width: 56px; font-size: .7rem; color: var(--ink-2); text-align: center; }
.bond svg { width: 40px; height: 40px; }
.bond.pulse svg { animation: pulse .7s ease; }
.meters { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--ink-2); margin-bottom: 12px; }
.meter { display: flex; gap: 6px; align-items: center; }
.beads { display: flex; gap: 3px; }
.beads i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.beads i.on { background: var(--turmeric); border-color: var(--turmeric); }
@keyframes pulse { 50% { transform: scale(1.15); } }
.story:focus { outline: none; }
.story { font-family: var(--sans); font-weight: 500; font-size: 1.16rem; line-height: 1.6; letter-spacing: -0.005em; }
.choices { display: grid; gap: 10px; margin-top: 18px; }
.choice {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; text-align: left; width: 100%;
  padding: 14px 16px; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: 500 1rem/1.35 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .12s;
}
.choice:hover { border-color: var(--terracotta); background: var(--card); }
.choice:active { transform: scale(.99); }
.choice .k { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.choice .sub { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-3); margin-top: 2px; }
.factchip { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.factchip summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--indigo); min-height: 32px; }
.factchip summary::-webkit-details-marker { display: none; }
.factchip p { font-size: .92rem; margin: 8px 0 4px; color: var(--ink); }
.factchip .src { font-size: .78rem; color: var(--ink-3); }
.cwnote { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* Sonuç penceresi */
.sheet-back { position: fixed; inset: 0; background: rgba(31, 27, 24, .38); display: grid; align-items: end; z-index: 30; animation: fade .2s ease; }
.sheet {
  background: var(--card) var(--grain); border-radius: 22px 22px 0 0; padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  max-width: 600px; width: 100%; margin: 0 auto; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.3); animation: up .25s ease; max-height: 88dvh; overflow: auto;
}
.sheet .reaction { font-family: var(--sans); font-weight: 500; font-size: 1.1rem; line-height: 1.6; }
.deltas { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.delta { font-size: .8rem; padding: 4px 10px; border-radius: 99px; background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }
.delta.neg { background: var(--terracotta-soft); color: var(--terracotta); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* Ritüeller */
.ritual { margin-top: 16px; display: grid; gap: 14px; justify-items: center; }
.ritual svg { max-width: 100%; }
.cloth { transition: transform .45s ease, width .45s ease; }
.teacher { transition: transform .3s ease; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; max-width: 320px; }
.cal-grid span { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; color: var(--ink-3); background: var(--paper); }
.cal-grid span.m { background: var(--terracotta); color: #fff; font-weight: 600; }
.cal-grid span.h { outline: 2px dashed var(--turmeric); }
.month { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: 6px 0 2px; width: 100%; max-width: 320px; }

/* Kayıt: defter sayfası */
.notebook { background: var(--card) var(--grain); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 22px 34px; position: relative;
  background-image: linear-gradient(90deg, transparent 22px, color-mix(in srgb, var(--terracotta) 35%, transparent) 22px, color-mix(in srgb, var(--terracotta) 35%, transparent) 23.5px, transparent 23.5px), var(--grain); }
.notebook + .notebook { margin-top: 14px; }
.stat { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.stat:last-child { border-bottom: 0; }
.stat .big { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.stat .lbl { font-size: 1rem; margin: 4px 0 6px; }
.dots100 { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 260px; margin: 6px 0; }
.dots100 i { aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, var(--card)); }
.dots100 i.on { background: var(--terracotta); }
.dots100 i.rng { background: var(--terracotta-soft); }
.four { display: grid; gap: 10px; }
.girl { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.girl:last-child { border-bottom: 0; }
.girl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--indigo); }
.girl.you .dot { background: var(--terracotta); }

/* Sekmeler */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.tab { padding: 8px 14px; min-height: 40px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-2); font: 500 .9rem var(--sans); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.atlas .a { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-height: 96px; }
.atlas .a.locked { background: transparent; border-style: dashed; color: var(--ink-3); }
.atlas .a .t { font-weight: 600; font-size: .92rem; }

.footer { margin-top: 30px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  main { padding-top: 32px; }
  .card { padding: 28px; }
}

/* Görseller (yüklenemezse <img> kaldırılır; yerleşim bozulmaz) */
.hero-art { width: min(300px, 70vw); margin: 0 auto 18px; }
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); display: block; }
.hero-art:empty { display: none; }
.phase-art { margin: -22px -20px 18px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.phase-art:empty { display: none; }
.phase-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
@media (min-width: 640px) { .phase-art { margin: -28px -28px 20px; } }
.obj { float: right; width: 84px; height: 84px; object-fit: contain; margin: 0 0 8px 12px; }
.sheet .obj { width: 96px; height: 96px; }
.portrait-wrap { float: right; width: 108px; height: 108px; margin: 0 0 8px 12px; position: relative; }
.portrait-wrap .portrait { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; float: none; }
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; }

/* ── Arka plan: kâğıt kesik şekiller + motif (maske; renk token'lardan) ─────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg i { position: absolute; display: block; background: var(--c); opacity: calc(var(--o) * var(--bg-k));
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: opacity .6s ease, transform .8s ease; }
.bg .bg-sun { --m: url(../assets/bg/gunes.svg); --c: var(--turmeric-soft); --o: 1; width: min(62vw, 400px); aspect-ratio: 1; top: max(-10vw, -80px); right: max(-18vw, -130px); }
.bg .bg-sun.riso { --c: var(--turmeric); --o: .22; transform: translate(6px, 5px); mix-blend-mode: multiply; }
.bg .bg-blob { --m: url(../assets/bg/leke.svg); --c: var(--terracotta-soft); --o: .9; width: min(48vw, 300px); aspect-ratio: 1; left: max(-16vw, -110px); top: -9vh; }
.bg .bg-leaf { --m: url(../assets/bg/yaprak.svg); --c: var(--indigo-soft); --o: .95; width: min(56vw, 360px); aspect-ratio: 1; left: max(-22vw, -150px); top: 46vh; transform: rotate(-28deg); }
.bg .bg-wave { --m: url(../assets/bg/dalga.svg); --c: var(--leaf-soft); --o: .85; width: 110vw; height: min(22vh, 200px); left: -5vw; bottom: -4vh;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.bg .bg-motif { --c: var(--ink); --o: .05; inset: 0; -webkit-mask: url(../assets/bg/motif.svg) 0 0 / 180px 180px repeat; mask: url(../assets/bg/motif.svg) 0 0 / 180px 180px repeat; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bg .bg-sun.riso { mix-blend-mode: screen; } }
:root[data-theme="dark"] .bg .bg-sun.riso { mix-blend-mode: screen; }
/* Oynanış sırasında sakin: şekiller küçülüp kenara çekilir, motif kalır */
body[data-screen="bolum"] .bg .bg-sun, body[data-screen="dogus"] .bg .bg-sun { transform: translate(22%, -22%) scale(.75); }
body[data-screen="bolum"] .bg .bg-sun.riso, body[data-screen="dogus"] .bg .bg-sun.riso { transform: translate(calc(22% + 6px), calc(-22% + 5px)) scale(.75); }
body[data-screen="bolum"] .bg .bg-leaf { --o: .5; }
body[data-screen="bolum"] .bg .bg-blob { --o: .45; }
body[data-screen="bolum"] .bg .bg-wave { --o: .45; }
@media (min-width: 900px) { .bg .bg-sun { right: calc(50% - 760px); } .bg .bg-leaf { left: calc(50% - 760px); } }
.cta-pair { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 1 172px; }
.cta .btn { width: 100%; }
.cta .tiny { max-width: 20ch; line-height: 1.35; text-wrap: balance; }
.hero-hook { font-weight: 600; color: var(--terracotta); margin: -14px auto 22px; font-size: .98rem; }
.hero-meta { margin-top: 16px; opacity: .8; }
.pick-note { font-size: .82rem; color: var(--ink-2); background: var(--turmeric-soft); border-radius: 12px; padding: 8px 12px; margin: 10px 0 0; }

/* ── Takvim destesi (ritüel) ─────────────────────────────────────────────── */
@property --bend { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --shade { syntax: "<number>"; inherits: true; initial-value: 0; }
.deck { width: 100%; display: grid; gap: 12px; justify-items: center; }
.deck-stage { position: relative; width: 100%; max-width: 560px; height: 300px; perspective: 1000px; perspective-origin: 50% 40%; transform-style: preserve-3d; }
.mcard { --w: 216px; position: absolute; left: calc(50% - var(--w) / 2); top: 14px; width: var(--w); height: 262px;
  transform-style: preserve-3d; transition: transform .78s cubic-bezier(.22,.8,.2,1), opacity .45s ease; will-change: transform; }
.mcard.gone { opacity: 0; }
.mflat, .bend .sl-in { width: 100%; height: 100%; }
.mflat { position: relative; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 18px 30px -18px rgba(43,36,32,.55); overflow: hidden; backface-visibility: hidden; }
.mcard:not(.cur) .mflat::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .07; pointer-events: none; }
.stage-fan .mflat::after, .fan .mflat::after { opacity: 0 !important; }
.mhead { height: 44px; background: var(--terracotta); color: #fff8ee; display: flex; align-items: center; justify-content: center; position: relative;
  font: 700 1.02rem/1 var(--serif); letter-spacing: .01em; }
.mhead::before, .mhead::after { content: ""; position: absolute; top: -5px; width: 10px; height: 16px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink-3); }
.mhead::before { left: 46px; } .mhead::after { right: 46px; }
.mweek, .mgrid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 10px; text-align: center; }
.mweek { padding-top: 8px; font-size: .62rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.mgrid { row-gap: 2px; padding-top: 4px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.mgrid .d { position: relative; display: grid; place-items: center; height: 27px; color: var(--ink-2); border-radius: 8px; }
.mgrid .d.due { color: var(--ink); font-weight: 700; cursor: pointer; background: var(--turmeric-soft); animation: due-pulse 1.6s ease-in-out infinite; outline-offset: 2px; }
.mgrid .d.due:hover { background: var(--turmeric); color: #2b2420; }
.mgrid .d.m { color: var(--ink); font-weight: 700; background: none; animation: none; }
.ring { position: absolute; inset: -6px -4px; width: calc(100% + 8px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--terracotta); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1.1; stroke-dashoffset: 1.1; animation: ring-draw .48s cubic-bezier(.5,.1,.3,1) forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes due-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--turmeric) 55%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--turmeric) 0%, transparent); } }
.mstamp { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-12deg) scale(.6); padding: 6px 14px; border: 3px solid var(--indigo); border-radius: 10px;
  color: var(--indigo); font: 700 1rem/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; background: color-mix(in srgb, var(--card) 80%, transparent);
  opacity: 0; transition: opacity .3s ease, transform .35s cubic-bezier(.3,1.6,.5,1); mix-blend-mode: multiply; }
.mcard.bos .mstamp { opacity: .9; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mstamp { mix-blend-mode: normal; } }
:root[data-theme="dark"] .mstamp { mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mhead { color: #1f1b18; } }
:root[data-theme="dark"] .mhead { color: #1f1b18; }
:root[data-theme="light"] .mstamp { mix-blend-mode: multiply; }
/* bükme katmanı */
.bend { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.bend .sl { position: absolute; top: 0; transform-style: preserve-3d; transform-origin: 0 50%; transform: rotateY(var(--bend)); }
.bend > .sl { transform: none; }
.bend .sl-face { position: relative; overflow: hidden; background: var(--card); }
.bend .sl-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,36,32,0), rgba(43,36,32,.16)); opacity: calc(var(--shade) * var(--k)); pointer-events: none; }
.bend > .sl > .sl-face { border-radius: 16px 0 0 16px; }
.bend .sl-in { position: relative; }
.bend .mstamp { display: none; }
.bend .ring path { animation: none; stroke-dashoffset: 0; }
.bend .d.due { animation: none; }
/* yelpaze (son) */
.deck-stage.fan .mcard { transform-origin: 50% 115%; transition-duration: .9s; }
.deck-gaps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 32px; }
.gap-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .85rem; color: var(--ink-2); }
.gap-chip b { color: var(--terracotta); font-size: 1rem; font-variant-numeric: tabular-nums; }
.deck-hint { min-height: 1.6em; margin: 0; font-weight: 600; color: var(--ink); }
.deck-end:empty { display: none; }
.gapviz { margin: 0; width: min(100%, 340px); text-align: center; }
.gapviz svg { width: 100%; height: auto; overflow: visible; }
.gv-axis { font: 600 10px var(--sans); fill: var(--ink-3); }
.gv-lab { font: 700 12px var(--sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.gv-dot { opacity: 0; animation: gv-in .45s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(.25s + var(--i) * .12s); transform-box: fill-box; transform-origin: center; }
@keyframes gv-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .mcard { --w: 236px; height: 276px; } .deck-stage { height: 316px; } }
@media (prefers-reduced-motion: reduce) {
  .mcard, .mstamp { transition: none; }
  .mgrid .d.due { animation: none; box-shadow: 0 0 0 3px var(--turmeric); }
  .ring path { animation: none; stroke-dashoffset: 0; }
  .gv-dot { animation: none; opacity: 1; }
}

/* ── Küre (doğuş) ───────────────────────────────────────────────────────── */
.globe-wrap { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin: 8px auto 4px; }
.globe-wrap.flat { aspect-ratio: auto; }
.globe { display: block; margin: 0 auto; }
.globe-pin[hidden] { display: none; }
.globe-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.globe-pin b { order: -1; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .9rem/1.2 var(--sans); white-space: nowrap; box-shadow: var(--shadow); }
.globe-pin i { width: 2px; height: 22px; background: var(--ink); position: relative; }
.globe-pin i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 3px var(--card); }
.globe-pin.in { animation: pin-drop .55s cubic-bezier(.3,1.5,.5,1) both; }
.globe-pin.in i::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; border: 2px solid var(--terracotta); animation: pin-ring 1.8s ease-out .5s infinite; }
@keyframes pin-drop { from { opacity: 0; transform: translate(-50%, -150%); } to { opacity: 1; transform: translate(-50%, -100%); } }
@keyframes pin-ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .globe-pin.in, .globe-pin.in i::before { animation: none; } }

/* ── Kayıt (18'e doğru) ─────────────────────────────────────────────────── */
.eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }
.rec-hero { background: var(--card) var(--grain); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; margin-top: 6px; }
.rec-art { aspect-ratio: 16 / 9; overflow: hidden; }
.rec-art:empty { display: none; }
.rec-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-hero-body { padding: 20px 20px 22px; }
.rec-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin: 0; line-height: 1.05; }
.rec-place { margin: 6px 0 16px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.rec-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rec-status li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.rec-status li:first-child { border-top: 0; }
.rec-status .ic { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--paper-2); color: var(--terracotta); }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.rec-sec { margin-top: 34px; }
.rec-sec > h2 { font-size: 1.35rem; margin: 0 0 4px; }
.rec-sec > p.small { margin: 0 0 14px; color: var(--ink-2); }
.stat-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; align-content: start; }
.stat-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.stat-num { margin: 0; font: 700 2.9rem/1 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.stat-num span { white-space: nowrap; }
.stat-num.rng { font-size: 2.2rem; }
.stat-num small { font-size: .95rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.waffle { display: grid; grid-template-columns: repeat(10, 9px); gap: 2px; }
.waffle i { width: 9px; height: 9px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 11%, var(--card)); }
.waffle i.on { background: var(--terracotta); }
.waffle i.rng { background: color-mix(in srgb, var(--terracotta) 38%, var(--card)); }
.stat-sent { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.stat-key { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.stat-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.stat-key .k-on { background: var(--terracotta); } .stat-key .k-rng { background: color-mix(in srgb, var(--terracotta) 38%, var(--card)); margin-left: 8px; }
.stat-note { margin: 0; color: var(--ink-2); }
.src { border-top: 1px solid var(--line); padding-top: 8px; }
.src summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: .85rem; font-weight: 600; color: var(--ink-2); list-style: none; }
.src summary::-webkit-details-marker { display: none; }
.src summary::after { content: "+"; font-weight: 700; margin-left: 2px; }
.src[open] summary::after { content: "–"; }
.src .tiny { margin-top: 4px; line-height: 1.5; }
.cmp-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; font-size: .88rem; font-weight: 600; }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.a, .cmp-bar.a .cmp-fill { background: var(--terracotta); }
.sw.b, .cmp-bar.b .cmp-fill { background: var(--indigo); }
.cmp { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 6px 18px; }
.cmp-row { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cmp-row:first-child { border-top: 0; }
.cmp-lbl { margin: 0 0 2px; font-weight: 600; font-size: .95rem; }
.cmp-bar { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; position: relative; }
.cmp-bar::before { content: ""; grid-column: 1; grid-row: 1; height: 12px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--ink) 7%, var(--card)); }
.cmp-fill { grid-column: 1; grid-row: 1; height: 12px; border-radius: 0 4px 4px 0; }
.cmp-bar b { font-size: .95rem; text-align: right; font-variant-numeric: tabular-nums; }
.g-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: thin; }
@media (min-width: 640px) { .g-row { grid-auto-columns: minmax(200px, 31%); } }
.g-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
.g-card { scroll-snap-align: start; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 4px; align-content: start; }
.g-card.you { box-shadow: inset 0 0 0 2px var(--terracotta), var(--shadow); }
.g-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.g-sub { margin: 0; }
.g-age { margin: 8px 0 6px; font: 700 1.25rem/1.2 var(--sans); }
.g-age small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.g-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g-chips li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.g-chips .ic { color: var(--indigo); }
.rec-actions { margin: 36px 0 10px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.rec-actions .row { justify-content: center; }
.btn.big { min-width: min(320px, 100%); min-height: 54px; font-size: 1.05rem; }

/* ── Sonra ne oldu? ─────────────────────────────────────────────────────── */
.sonra { margin-top: 8px; }
.sonra h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin: 0 0 18px; }
.sonra-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sonra-p { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px;
  opacity: 0; transform: translateY(10px); animation: sonra-in .55s cubic-bezier(.3,.7,.3,1) forwards; animation-delay: calc(var(--i) * .45s + .2s); }
.sonra-p p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.sonra-p .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--paper-2); color: var(--terracotta); }
.sonra-p.neden { background: var(--indigo); color: #f4ecdf; }
.sonra-p.neden .ic { background: rgba(255,255,255,.14); color: #f4ecdf; }
.sonra-p.neden p { font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sonra-p.neden { background: var(--indigo-soft); } }
:root[data-theme="dark"] .sonra-p.neden { background: var(--indigo-soft); }
@keyframes sonra-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sonra-p { animation: none; opacity: 1; transform: none; } }

/* ── Gerçek hayatta notu (seçimden sonra) ───────────────────────────────── */
.real-note { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); display: grid; gap: 10px; }
.real-note .eyebrow { margin: 0; }
.rn + .rn { border-top: 1px solid var(--line); padding-top: 10px; }
.rn-where { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rn-text { margin: 2px 0 4px; font-weight: 600; line-height: 1.45; }
.rn .tiny { margin: 0; }
.bell { display: block; margin: 6px 0 2px; overflow: visible; }
.bell-tick { font: 600 10px var(--sans); fill: var(--ink-3); }
.bell-lab { font: 600 10px var(--sans); fill: var(--ink-3); }
.bell-sen { font: 700 12px var(--sans); fill: var(--ink); }
.bell-key { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .8rem; color: var(--ink-2); }
.bell-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--turmeric-soft); display: inline-block; }
.ped-durum { font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ped-durum.ok { background: var(--leaf-soft); }
.ped-durum.risk { background: var(--terracotta-soft); }

/* ── Gelir × yerleşim mozaiği ───────────────────────────────────────────── */
.mosaic { margin: 14px 0 6px; }
.mz-grid { display: flex; gap: 3px; height: 210px; }
.mz-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mz-c { position: relative; min-height: 3px; border-radius: 6px; display: grid; place-items: center; font: 700 .78rem/1 var(--sans); color: var(--ink); transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.mz-c.u { background: color-mix(in srgb, var(--indigo) 42%, var(--card)); }
.mz-c.k { background: color-mix(in srgb, var(--turmeric) 45%, var(--card)); }
.mz-c span { opacity: .75; }
.mz-c.hop { background: var(--turmeric-soft); transform: scale(1.04); }
.mz-c.on { background: var(--terracotta); color: #fff8ee; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--terracotta); z-index: 1; }
.mz-c.on span { opacity: 1; }
.mz-sen { display: none; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .7rem/1 var(--sans); white-space: nowrap; }
.mz-c.on .mz-sen { display: block; }
.mz-axis { display: flex; gap: 3px; margin-top: 6px; }
.mz-axis span { min-width: 0; font-size: .68rem; line-height: 1.2; color: var(--ink-2); text-align: center; hyphens: auto; overflow-wrap: anywhere; }
.mz-key { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.mz-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.mz-key i.u { background: color-mix(in srgb, var(--indigo) 42%, var(--card)); }
.mz-key i.k { background: color-mix(in srgb, var(--turmeric) 45%, var(--card)); }
.mz-dir { margin-left: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mz-c.on { color: #1f1b18; } }
:root[data-theme="dark"] .mz-c.on { color: #1f1b18; }
@media (prefers-reduced-motion: reduce) { .mz-c { transition: none; } }

/* ── Biz kimiz? ─────────────────────────────────────────────────────────── */
.topbar-r { display: inline-flex; gap: 8px; align-items: center; }
.setbtn.ghostbtn { border-color: transparent; background: transparent; }
.setbtn.ghostbtn:hover { background: var(--card); }
.biz { margin-top: 8px; }
.biz-foto { margin: 0 0 18px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; position: relative; }
.biz-foto::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); border-radius: inherit; pointer-events: none; }
.biz-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); margin: 0 0 14px; }
.biz-p { font-size: 1.06rem; line-height: 1.65; margin: 0 0 14px; max-width: 60ch; }
.biz-p:first-of-type { font-size: 1.15rem; font-weight: 600; }

/* ── Ped uzatma: sınıf sahnesi ───────────────────────────────────────────── */
.sinif { width: 100%; max-width: 380px; display: grid; gap: 10px; justify-items: center; }
.sinif svg { width: 100%; height: auto; display: block; }
.sinif .ogretmen .on { display: none; }
.sinif[data-state="class"] .ogretmen .arka { display: none; }
.sinif[data-state="class"] .ogretmen .on { display: inline; }
.sinif .kol { transform-box: fill-box; transform-origin: 0% 100%; animation: yaz 0.9s ease-in-out infinite alternate; }
.sinif .tebesir-el { animation: yaz-el 0.9s ease-in-out infinite alternate; }
@keyframes yaz { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes yaz-el { from { transform: translate(-2px, 1px); } to { transform: translate(3px, -1px); } }
.sinif[data-state="turning"] .kol { animation: none; transform: rotate(40deg); transition: transform .3s ease; }
.sinif[data-state="turning"] .tebesir-el { animation: none; opacity: 0; }
.sinif[data-state="turning"] .ogretmen { transform: translate(160px, 100px) rotate(-4deg); }
.sinif .ogretmen { transform: translate(160px, 100px); transition: transform .2s ease; }
.sinif .bakis { opacity: 0; transition: opacity .25s ease; }
.sinif[data-state="class"] .bakis { opacity: .16; }
.sinif .yazi { stroke-dasharray: 200; stroke-dashoffset: 200; animation: tebesir 6s linear infinite; }
@keyframes tebesir { to { stroke-dashoffset: 0; } }
.sinif .ped { transition: transform .6s cubic-bezier(.3,.7,.3,1); }
.sinif.uzatildi .ped { transform: translateX(14px); }
.ped-durum.uyari { background: var(--turmeric-soft); }
@media (prefers-reduced-motion: reduce) { .sinif .kol, .sinif .tebesir-el, .sinif .yazi { animation: none; } .sinif .yazi { stroke-dashoffset: 0; } }
.story p, .reaction p { margin: 0 0 .7em; }
.story p:last-child, .reaction p:last-child { margin-bottom: 0; }
.sonra-p > div p { margin: 0 0 .45em; }
.sonra-p > div p:last-child { margin-bottom: 0; }
.sonra-t { font-size: .74rem !important; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px !important; }
.sonra-neden { margin-top: 12px; display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--indigo); color: #f4ecdf;
  opacity: 0; transform: translateY(10px); animation: sonra-in .55s cubic-bezier(.3,.7,.3,1) forwards; animation-delay: calc(var(--i) * .45s + .2s); }
@media (min-width: 640px) { .sonra-neden { grid-template-columns: 1fr 1fr; } }
.sn-h { margin: 0 0 6px; font-weight: 700; }
.sonra-neden ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; line-height: 1.45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sonra-neden { background: var(--indigo-soft); } }
:root[data-theme="dark"] .sonra-neden { background: var(--indigo-soft); }
@media (prefers-reduced-motion: reduce) { .sonra-neden { animation: none; opacity: 1; transform: none; } }
/* Bize ulaşın: tek düğme; üstüne gelince/dokununca iki yana LinkedIn bağlantıları açılır */
.ulas { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 6px; min-height: 48px; }
.ulas-btn { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, transparent); color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s ease, border-color .2s ease; }
.ulas-btn:hover, .ulas.acik .ulas-btn { background: var(--card); border-color: var(--ink-3); }
.ulas-li { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 40%, transparent); border: 1.5px solid transparent; color: var(--ink-2); font-weight: 600; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.3,.7,.3,1), border-color .2s ease, color .2s ease; }
.ulas-li.sol { transform: translateX(40px); }
.ulas-li.sag { transform: translateX(-40px); }
.ulas.acik .ulas-li { opacity: 1; pointer-events: auto; transform: none; }
.ulas-li:hover, .ulas-li:focus-visible { border-color: var(--line); color: var(--ink); background: var(--card); }
.ulas-li svg { width: 16px; height: 16px; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .ulas-li { transition: opacity .1s; transform: none !important; } }

/* Ayarlar: açılır menüler aynı genişlikte, sağa hizalı */
.toggle select { width: 10.5rem; flex: none; margin: 0; }
.toggle-help { margin: -4px 0 8px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
/* Nasıl çalışıyor: kaynak listesi */
.kaynaklar { margin: 8px 0 12px; display: grid; gap: 0; }
.kaynaklar > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.kaynaklar > div:first-child { border-top: 0; }
@media (min-width: 560px) { .kaynaklar > div { grid-template-columns: 44% 1fr; gap: 14px; } }
.kaynaklar dt { font-weight: 700; font-size: .92rem; }
.kaynaklar dd { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.madde { margin: 6px 0 4px; padding-left: 1.15em; display: grid; gap: 5px; line-height: 1.5; }
.duzey { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.duzey li { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.duzey b { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--paper-2); font-size: .8rem; }

/* Açılır menü: özel ok, yeterli sağ boşluk */
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6c60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; }
select:hover { border-color: var(--ink-3); }
/* Ayarlar: şeffaf, üstüne gelince belirginleşen seçim düğmeleri */
.ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; min-height: 52px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .9rem/1 var(--sans); cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button:hover { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* Hassas içerik kutusu */
.hassas { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--turmeric) 12%, transparent); margin-bottom: 8px; }
.hassas-b { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.hassas-b svg { color: var(--turmeric); flex: none; }
.hassas .small { margin: 0; line-height: 1.5; }

/* İlerleme: 4 bölüm, içinde bulunulan bölüm sahne sayısına göre dolar */
.ph-say { font-size: .8rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ilerleme { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: -2px 0 12px; }
.ilerleme i { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.ilerleme b { display: block; height: 100%; border-radius: inherit; background: var(--terracotta); transition: width .5s cubic-bezier(.3,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { .ilerleme b { transition: none; } }
.bez-sahne { width: 240px; height: 200px; display: grid; place-items: center; }
.bez-img { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(43,36,32,.18)); }
