/* Düzen: Üstte teneke etiketi gibi koyu zeytin yeşili bir kahraman bandı (altın yazı, çift çerçeve),
   altında yaprak-gümüşü zemin üzerinde bölümler. Hikâye tam ekran: üstte adımlar, ortada sahne,
   altta köy kahvesi tahtası gibi diyalog kutusu. Tek tema (açık), bilinçli tercih. */
:root {
  --zemin: #eceee1;
  --kart: #fbfbf5;
  --murekkep: #1f2713;
  --soluk: #5b6347;
  --zeytin: #34431b;
  --zeytin-koyu: #222c12;
  --yaprak: #8a9a5b;
  --yag: #e6a61e;
  --yag-acik: #f6d77c;
  --yag-koyu: #9c6a08;
  --kirmizi: #b2392a;
  --cizgi: #cdd2bb;
  --kagit: #fffdf4;
  --font-baslik: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-govde: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-fis: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, "Courier New", monospace;
  --r: 14px;
  --golge: 0 14px 34px rgba(31, 39, 19, 0.16);
  --kenar: max(16px, env(safe-area-inset-left, 0px));
  --kenar-sag: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--murekkep);
  font-family: var(--font-govde);
  font-size: 1rem;
  line-height: 1.55;
}
body.kilit { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-baslik); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); color: var(--zeytin); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--zeytin); }
:focus-visible { outline: 3px solid var(--yag); outline-offset: 2px; border-radius: 6px; }
.ince { color: var(--soluk); font-size: 0.92rem; }
.ortala { text-align: center; }
.mono { font-family: var(--font-fis); white-space: nowrap; }
.gorunmez { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.secilebilir { user-select: all; }

.atla-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--yag); color: var(--murekkep); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.atla-link:focus { left: 12px; }

/* ---------- Düğmeler ---------- */
.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-govde); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dugme:active { transform: translateY(1px); }
.dugme-ana { background: var(--yag); color: var(--zeytin-koyu); box-shadow: 0 4px 0 var(--yag-koyu); }
.dugme-ana:hover { background: #f0b43a; }
.dugme-ana:active { box-shadow: 0 2px 0 var(--yag-koyu); }
.dugme-hayalet { background: transparent; color: var(--yag-acik); border-color: rgba(246, 215, 124, 0.6); }
.dugme-hayalet:hover { background: rgba(246, 215, 124, 0.12); }
.dugme-hayalet-koyu { background: transparent; color: var(--zeytin); border-color: var(--cizgi); }
.dugme-hayalet-koyu:hover { border-color: var(--zeytin); }
.dugme-kucuk { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; }
.dugme-buyuk { min-height: 54px; font-size: 1.08rem; padding: 12px 26px; }
.dugme-tam { width: 100%; }
.dugme:disabled { opacity: 0.6; cursor: progress; }
.metin-link { background: none; border: 0; padding: 0; color: var(--zeytin); font: 700 0.95rem var(--font-govde); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Üst bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--zeytin-koyu); }
.ust { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--zeytin-koyu); color: #fff; }
.ust-ic { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 60px; padding-left: var(--kenar); padding-right: var(--kenar-sag); }
/* Deneme sürümü şeridi: gerçek ödeme bağlanana kadar her ekranda */
.deneme-serit { margin: 0; padding: 6px var(--kenar-sag) 6px var(--kenar); background: var(--yag-acik); color: var(--zeytin-koyu); font-size: 0.8rem; font-weight: 700; line-height: 1.3; text-align: center; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--yag-acik); text-decoration: none; font-family: var(--font-baslik); font-size: 1.2rem; }
.logo svg { width: 28px; height: 28px; }
.ust-nav { display: flex; gap: 18px; margin-left: auto; }
.ust-nav a { color: #e9ecdc; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.ust-nav a:hover { color: var(--yag-acik); }
@media (max-width: 760px) { .ust-nav { display: none; } .ust-ic > .dugme { margin-left: auto; } }

/* ---------- Kahraman (teneke etiketi) ---------- */
.kahraman {
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(230, 166, 30, 0.16), transparent 60%),
    var(--zeytin);
  color: #f3f1e6;
  padding-block: clamp(28px, 5vw, 64px);
}
.kahraman-ic {
  max-width: 1180px; margin: 0 auto; padding-left: var(--kenar); padding-right: var(--kenar-sag);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.kahraman-metin { min-width: 0; display: grid; gap: 20px; }
.ust-etiket { display: flex; flex-wrap: wrap; gap: 8px; }
.ust-etiket > span { border: 1.5px solid rgba(246, 215, 124, 0.55); color: var(--yag-acik); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ust-etiket > span > span { letter-spacing: inherit; }
.kahraman h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem); color: var(--yag); text-shadow: 0 3px 0 var(--zeytin-koyu); }
.kahraman-alt { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: #e2e6d2; max-width: 34em; }
.kahraman-dugmeler { display: flex; flex-wrap: wrap; gap: 12px; }
.tekrar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: rgba(0, 0, 0, 0.18); border-radius: 12px; padding: 10px 14px; font-size: 0.95rem; }
.tekrar .metin-link { color: var(--yag-acik); }
.kahraman-gorsel { position: relative; min-width: 0; }
.sahne-cerceve {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: 22px; overflow: hidden;
  border: 3px solid var(--yag); box-shadow: 0 0 0 6px var(--zeytin), 0 0 0 8px rgba(246, 215, 124, 0.45), var(--golge);
  background: #cfe3e6;
}
.sahne-cerceve svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.balon {
  position: absolute; top: 9%; left: 6%; background: var(--kagit); color: var(--murekkep);
  font-weight: 800; padding: 10px 16px; border-radius: 18px 18px 18px 4px; box-shadow: var(--golge);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.05rem);
  animation: balon 8s ease-in-out infinite;
}
@keyframes balon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 860px) {
  .kahraman-ic { grid-template-columns: minmax(0, 1fr); }
  .kahraman-gorsel { order: -1; }
  .sahne-cerceve { aspect-ratio: 4 / 3; }
}

/* ---------- Bölümler ---------- */
.bolum { padding-block: clamp(40px, 6vw, 80px); }
.bolum-ic { max-width: 1180px; margin: 0 auto; padding-left: var(--kenar); padding-right: var(--kenar-sag); display: grid; gap: 24px; }
.bolum-ic.dar { max-width: 780px; }
.iki-sutun { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .iki-sutun { grid-template-columns: minmax(0, 1fr); } }

.adim-listesi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: adim; }
.adim-listesi li { counter-increment: adim; position: relative; background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.adim-listesi li::before { content: counter(adim); position: absolute; top: 14px; right: 16px; font-family: var(--font-baslik); font-size: 1.6rem; color: var(--cizgi); }
.adim-listesi svg { width: 48px; height: 48px; }
.adim-listesi p { color: var(--soluk); font-size: 0.95rem; }
@media (max-width: 980px) { .adim-listesi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adim-listesi { grid-template-columns: minmax(0, 1fr); } }

.bolum-hesap { background: #e2e6d0; }
.hesap-metin { display: grid; gap: 16px; align-content: start; max-width: 36em; }
.hesap-metin .dugme { justify-self: start; }

.koy-metin { max-width: 44em; font-size: 1.08rem; }
.galeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.galeri figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--kart); border: 1px solid var(--cizgi); }
.galeri img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galeri figcaption { padding: 10px 14px; font-weight: 700; display: grid; }
.galeri figcaption span { font-weight: 500; color: var(--soluk); font-size: 0.85rem; }
.yt-gorsel { position: relative; aspect-ratio: 4 / 3; max-width: 100%; }
.yt-gorsel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.yer-tutucu .yt-gorsel::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255, 255, 255, 0.85); border-radius: 10px; }
@media (max-width: 760px) { .galeri { grid-template-columns: minmax(0, 1fr); } }

.sss-liste { display: grid; gap: 10px; }
.sss-liste details { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 0 18px; }
.sss-liste summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sss-liste summary::-webkit-details-marker { display: none; }
.sss-liste summary::after { content: "+"; font-family: var(--font-baslik); color: var(--yag-koyu); font-size: 1.3rem; line-height: 1; }
.sss-liste details[open] summary::after { content: "−"; }
.sss-liste details p { padding-bottom: 16px; color: var(--soluk); }

/* ---------- Hesap pusulası (fiş) ---------- */
.fis {
  --dis: 10px;
  position: relative; background: var(--kagit); color: var(--murekkep);
  font-family: var(--font-fis); font-size: 0.9rem; font-variant-numeric: tabular-nums;
  padding: 26px 22px 22px; box-shadow: var(--golge);
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 16px 51% repeat-x,
                radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 16px 51% repeat-x;
          mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 16px 51% repeat-x,
                radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 100% / 16px 51% repeat-x;
}
.fis-bas { text-align: center; display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 2px dashed #c9c3ac; }
.fis-marka { font-family: var(--font-baslik); font-size: 1.25rem; color: var(--zeytin); }
.fis-baslik { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 600; }
.fis-tarih { font-size: 0.78rem; color: var(--soluk); }
.fis-tablo { width: 100%; border-collapse: collapse; margin-block: 8px; }
.fis-tablo th { text-align: left; font-weight: 600; padding: 9px 0; vertical-align: top; }
.fis-tablo td { text-align: right; padding: 9px 0 9px 12px; white-space: nowrap; vertical-align: top; }
.fis-tablo tbody tr + tr th, .fis-tablo tbody tr + tr td { border-top: 1px dotted #d8d2bc; }
.f-detay { display: block; font-weight: 400; color: var(--soluk); font-size: 0.8rem; }
.fis-tablo tfoot th, .fis-tablo tfoot td { border-top: 2px solid var(--murekkep); padding-top: 12px; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; }
.fis-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.fis-alt > div { background: #f3eed9; border-radius: 8px; padding: 10px 12px; display: grid; }
.fis-alt span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--soluk); }
.fis-alt strong { font-size: 1.15rem; color: var(--zeytin); }
.fis-alt small { font-size: 0.75rem; color: var(--soluk); }
.fis-not { margin-top: 12px; font-family: var(--font-govde); font-size: 0.82rem; color: var(--soluk); line-height: 1.45; }

/* ---------- Formlar ---------- */
.form-kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 18px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; min-width: 0; }
.form-kart fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.form-kart legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.alan { display: grid; gap: 6px; min-width: 0; }
.alan label { font-weight: 700; font-size: 0.95rem; }
.alan input, .alan textarea {
  width: 100%; font: 500 1rem var(--font-govde); color: var(--murekkep); background: #fff;
  border: 2px solid var(--cizgi); border-radius: 10px; padding: 11px 13px;
}
.alan input:focus, .alan textarea:focus { outline: none; border-color: var(--zeytin); box-shadow: 0 0 0 3px rgba(230, 166, 30, 0.35); }
.alan [aria-invalid="true"] { border-color: var(--kirmizi); }
.alan-hata { color: var(--kirmizi); font-size: 0.85rem; font-weight: 600; min-height: 0; }
.alan-hata:empty { display: none; }
.alan-grup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 520px) { .alan-grup { grid-template-columns: minmax(0, 1fr); } }
.alan-onay { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.alan-onay input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--zeytin); }
.alan-onay label { font-weight: 500; }
.alan-onay .alan-hata { grid-column: 1 / -1; }
.demo-uyari { background: #fff4d2; border: 1px solid #ecd27e; border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; }
.yan { display: grid; gap: 16px; position: sticky; top: 84px; min-width: 0; }
.yan .metin-link { justify-self: center; }
@media (max-width: 900px) { .yan { position: static; } }

.secim-kartlari { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.secim-kart { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--cizgi); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.secim-kart[aria-pressed="true"] { border-color: var(--zeytin); background: #f2f5e4; box-shadow: inset 0 0 0 1px var(--zeytin); }
.sk-ad { font-weight: 800; }
.sk-alt { font-size: 0.85rem; color: var(--soluk); font-variant-numeric: tabular-nums; }
.sk-fiyat { color: var(--zeytin); font-weight: 700; }
.secim-kartlari-sahne { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.secim-kartlari-sahne .secim-kart { padding: 8px 12px; }
.secim-kartlari-sahne .sk-alt { font-size: 0.78rem; }
.maliyet-satir { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; background: #f3eed9; border-radius: 10px; padding: 8px 12px; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.maliyet-satir strong { color: var(--zeytin); }

/* kg kontrolü */
.kg-kontrol { display: grid; gap: 12px; }
.kg-ust { display: flex; align-items: center; justify-content: center; gap: 14px; }
.kg-dugme { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--zeytin); background: #fff; color: var(--zeytin); font: 800 1.5rem/1 var(--font-govde); cursor: pointer; }
.kg-dugme:hover { background: #f2f5e4; }
.kg-deger { min-width: 5.5ch; text-align: center; font-family: var(--font-baslik); font-size: 2.3rem; color: var(--zeytin); line-height: 1; font-variant-numeric: tabular-nums; }
.kg-birim { font-size: 1.1rem; margin-left: 4px; color: var(--soluk); }
.kg-kaydir { --dolu: 10%; width: 100%; height: 28px; background: transparent; accent-color: var(--zeytin); -webkit-appearance: none; appearance: none; }
.kg-kaydir::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--yag) var(--dolu), #d9dcc8 var(--dolu)); }
.kg-kaydir::-moz-range-track { height: 8px; border-radius: 99px; background: #d9dcc8; }
.kg-kaydir::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--yag); }
.kg-kaydir::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--zeytin); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); margin-top: -9px; }
.kg-kaydir::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--zeytin); border: 3px solid #fff; }
.kg-hizli { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cip { display: grid; justify-items: center; line-height: 1.15; border: 2px solid var(--cizgi); background: #fff; border-radius: 14px; padding: 6px 12px; font: 700 0.92rem var(--font-govde); color: var(--murekkep); cursor: pointer; font-variant-numeric: tabular-nums; }
.cip small { font-size: 0.72rem; font-weight: 600; color: var(--soluk); }
.cip[aria-pressed="true"] { background: var(--zeytin); border-color: var(--zeytin); color: #fff; }
.cip[aria-pressed="true"] small { color: #dfe5c6; }
.kg-tahmin { text-align: center; color: var(--soluk); font-size: 0.95rem; }
.kg-tahmin strong { color: var(--zeytin); }

/* ---------- Tamam ---------- */
.tamam-kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 18px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.tamam-kart > .dugme { justify-self: start; }
.tamam-ust { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.tamam-teneke { width: 96px; }
.tamam-teneke svg { width: 100%; height: auto; display: block; }
.tamam-ust > div { display: grid; gap: 6px; }
.takip { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.takip li { position: relative; padding: 0 0 20px 38px; display: grid; gap: 2px; }
.takip li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--cizgi); background: var(--kart); }
.takip li::after { content: ""; position: absolute; left: 13px; top: 24px; bottom: 0; width: 2px; background: var(--cizgi); }
.takip li:last-child::after { display: none; }
.takip li.tamam::before { background: var(--zeytin); border-color: var(--zeytin); }
.takip li.simdi::before { border-color: var(--yag); background: var(--yag-acik); }
.takip span { color: var(--soluk); font-size: 0.92rem; }

/* ---------- Alt bilgi ---------- */
.alt { background: var(--zeytin-koyu); color: #d9ddc9; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.alt-ic { max-width: 1180px; margin: 0 auto; padding-left: var(--kenar); padding-right: var(--kenar-sag); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.alt-marka { font-family: var(--font-baslik); color: var(--yag-acik); font-size: 1.3rem; }
.alt-baslik { font-weight: 800; color: #fff; margin-bottom: 6px; }
.alt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alt .ince { color: #a8ae95; }
@media (max-width: 760px) { .alt-ic { grid-template-columns: minmax(0, 1fr); } }

/* =================================================================== */
/* HİKÂYE SAHNESİ                                                       */
/* =================================================================== */
.sahnelik { position: fixed; inset: 0; z-index: 200; background: #161c0c; }
.sahnelik-ic { position: relative; height: 100%; max-width: 1100px; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--zeytin-koyu); }
.sahnelik-ust {
  display: flex; align-items: center; gap: 10px; color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
}
.kapat { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.kapat svg { width: 20px; height: 20px; }
.kapat:hover { background: rgba(255, 255, 255, 0.2); }
.adimlar { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1; min-width: 0; }
.adimlar li { flex: 1; min-width: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8f977c; padding-top: 8px; border-top: 4px solid #3a4624; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adimlar li.gecti { color: #c9cfb4; border-color: var(--yaprak); }
.adimlar li.simdi { color: var(--yag-acik); border-color: var(--yag); }
@media (max-width: 520px) { .adimlar li { font-size: 0; letter-spacing: 0; } .adimlar li.simdi { font-size: 0.72rem; letter-spacing: 0.06em; flex: 3; } }
.tutar-hap { flex: none; display: grid; text-align: right; line-height: 1.1; background: var(--yag); color: var(--zeytin-koyu); border: 0; border-radius: 12px; padding: 6px 12px; cursor: pointer; font: 800 1rem var(--font-govde); font-variant-numeric: tabular-nums; }
.tutar-hap small { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.tutar-hap.nabiz { animation: nabiz 0.7s ease; }
@keyframes nabiz { 0% { transform: scale(1); } 35% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(246, 215, 124, 0.35); } 100% { transform: scale(1); } }
.tutar-detay {
  position: absolute; z-index: 20; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 62px);
  width: min(340px, calc(100% - 24px)); background: var(--kagit); color: var(--murekkep); border-radius: 14px; padding: 14px 16px; box-shadow: var(--golge);
  font-size: 0.9rem; display: grid; gap: 8px; font-variant-numeric: tabular-nums;
}
.tutar-detay ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tutar-detay li { display: flex; justify-content: space-between; gap: 10px; }
.tutar-detay li span:first-child::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--cizgi); vertical-align: -1px; }
.tutar-detay li.tamam span:first-child::before { background: var(--zeytin); border-color: var(--zeytin); box-shadow: inset 0 0 0 2px var(--kagit); }
.td-toplam { display: flex; justify-content: space-between; border-top: 2px solid var(--murekkep); padding-top: 8px; font-weight: 800; }

.sahne { position: relative; overflow: hidden; min-height: 0; background: #cfe3e6; }
.sahne-kap { position: absolute; inset: 0; transition: opacity 0.3s ease; }
.sahne-kap.gecis { opacity: 0; }
.sahne-kap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sahne-yazi {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  background: rgba(34, 44, 18, 0.88); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums;
}
.sahne-yazi b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yag); color: var(--zeytin-koyu); font-size: 0.8rem; flex: none; }
.sahne-yazi strong { color: var(--yag-acik); }
.sahne-yazi small { opacity: 0.75; }
.gec {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(34, 44, 18, 0.82); color: #fff; font: 700 0.9rem var(--font-govde); cursor: pointer;
}
.gec svg { width: 16px; height: 16px; }

.diyalog {
  background: var(--kagit); border-top: 5px solid var(--yag); color: var(--murekkep);
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 12px; max-height: 56vh; overflow-y: auto; overscroll-behavior: contain;
}
.diyalog-bas { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.portre { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--yag); background: #c9d6a6; flex: none; }
.portre svg, .portre img { width: 100%; height: 100%; display: block; object-fit: cover; }
.diyalog-icerik { display: grid; gap: 4px; min-width: 0; }
.kisi-ad { font-family: var(--font-baslik); color: var(--zeytin); font-size: 1rem; }
.diyalog-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.diyalog-eylem { display: flex; gap: 6px; margin-left: auto; }
.eylem {
  display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; border-radius: 999px;
  border: 1.5px solid var(--cizgi); background: #fff; color: var(--zeytin);
  font: 700 0.8rem var(--font-govde); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.eylem:hover { border-color: var(--zeytin); }
.diyalog-metin { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.5; min-height: 3em; }
.yaziliyor .diyalog-metin::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 2px; background: var(--yag); vertical-align: -2px; animation: imlec 0.8s steps(2) infinite; }
@keyframes imlec { 50% { opacity: 0; } }
.diyalog-kontrol { display: grid; gap: 12px; }
.diyalog-kontrol:empty { display: none; }
.secenekler { display: flex; flex-wrap: wrap; gap: 10px; }
.secenek {
  flex: 1 1 220px; min-height: 50px; display: grid; gap: 2px; text-align: left; align-content: center;
  padding: 10px 16px; border-radius: 14px; border: 2px solid var(--cizgi); background: #fff; color: var(--murekkep);
  font: 700 1rem var(--font-govde); cursor: pointer; transition: border-color 0.15s, transform 0.15s;
  animation: belir 0.22s ease both;
}
.secenek:hover { border-color: var(--zeytin); }
.secenek small { font-weight: 600; color: var(--soluk); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.secenek-ana { background: var(--zeytin); border-color: var(--zeytin); color: #fff; }
.secenek-ana small { color: #d8debf; }
.secenek-ana:hover { background: #3f5121; }
.secenek:nth-child(2) { animation-delay: 0.04s; }
.secenek:nth-child(3) { animation-delay: 0.08s; }
@keyframes belir { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kontrol-kutu { display: grid; gap: 10px; }
.secenek-yapiskan { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 14px var(--kagit); }
.secenekler-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kg-kontrol-sahne { gap: 8px; }
.kg-kontrol-sahne .kg-ust { gap: 18px; }
.kg-kontrol-sahne .kg-deger { font-size: 1.8rem; }
.kg-kontrol-sahne .kg-dugme { width: 42px; height: 42px; }
.kg-kontrol-sahne .kg-kaydir { height: 22px; }

.fis-perde {
  position: absolute; inset: 0; z-index: 30; background: rgba(22, 28, 12, 0.72); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  animation: perde 0.4s ease both;
}
@keyframes perde { from { opacity: 0; } }
.fis-kap { max-width: 460px; margin: 0 auto; display: grid; gap: 14px; animation: fis-gel 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes fis-gel { from { transform: translateY(40px); opacity: 0; } }
.canlandirma-notu { color: #e8ebda; font-size: 0.88rem; text-align: center; }
.fis-dugmeler { display: grid; gap: 10px; }
.fis-ikincil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fis-ikincil .dugme { padding-inline: 8px; font-size: 0.9rem; }
.fis-ikincil .dugme { color: #f3f1e6; border-color: rgba(255, 255, 255, 0.35); }

@media (max-width: 520px) {
  .diyalog { gap: 10px; padding-top: 12px; max-height: 60vh; }
  .portre { width: 52px; height: 52px; }
  .diyalog-bas { gap: 12px; }
  .diyalog-metin { font-size: 1rem; min-height: 0; }
  .secenek { min-height: 44px; padding: 8px 14px; }
  .secenek small { font-size: 0.8rem; }
  .secim-kartlari-sahne .secim-kart { padding: 7px 10px; }
  .cip { padding: 5px 9px; }
}

/* ---------- SVG içi animasyonlar ---------- */
.sahne-svg text { font-family: var(--font-govde); }
.karakter { animation: nefes 3.4s ease-in-out infinite; }
@keyframes nefes { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.goz { transform-box: fill-box; transform-origin: center; animation: kirp 4.6s infinite; }
@keyframes kirp { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.agiz { transform-box: fill-box; transform-origin: center; }
.konusuyor .agiz { animation: konus 0.22s ease-in-out infinite alternate; }
@keyframes konus { from { transform: scaleY(0.7); } to { transform: scaleY(2.3); } }
.kol-sag { transform-box: view-box; transform-origin: 50px -222px; }
.salliyor .kol-sag { animation: salla 2.2s ease-in-out; }
@keyframes salla {
  0% { transform: rotate(0); }
  18% { transform: rotate(-150deg); }
  32% { transform: rotate(-128deg); }
  46% { transform: rotate(-155deg); }
  60% { transform: rotate(-128deg); }
  76% { transform: rotate(-150deg); }
  100% { transform: rotate(0); }
}
.bulut-kay { animation: bulut 40s linear infinite alternate; }
@keyframes bulut { to { transform: translateX(60px); } }
.dus { animation: dus 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes dus { from { transform: translateY(-60px); opacity: 0; } }

.kay { animation: kay linear infinite; }
.kay-uzak { animation-duration: 16s; }
.kay-orta { animation-duration: 8s; }
.kay-yakin { animation-duration: 4s; }
.kay-yol { animation-duration: 1.6s; }
.kay-on { animation-duration: 1.4s; }
@keyframes kay { from { transform: translateX(0); } to { transform: translateX(-1000px); } }
.kay-tabela { animation: kay 4s linear 1 both; }
.traktor-sars { animation: sars 0.32s ease-in-out infinite alternate; }
@keyframes sars { to { transform: translateY(-2px); } }
.teker { transform-box: fill-box; transform-origin: center; animation: don 0.9s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
.duman { animation: duman 1.2s ease-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes duman { from { opacity: 0.9; transform: translate(0, 6px) scale(0.6); } to { opacity: 0; transform: translate(-30px, -14px) scale(1.3); } }

.akis { stroke-dasharray: 10 14; animation: akis 0.6s linear infinite; }
@keyframes akis { to { stroke-dashoffset: -24; } }
.pirilti { transform-box: fill-box; transform-origin: center; animation: pirilti 1.6s ease-in-out infinite; }
@keyframes pirilti { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1.1); } }
.parla { animation: belir 0.35s ease both; }

.kapak { transform-box: fill-box; transform-origin: 50% 0%; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1); }
.kapak.acik { transform: scaleY(-0.42); }
.kapak-alt { opacity: 0; transition: opacity 0.1s linear 0.28s; }
.kapak.acik .kapak-alt { opacity: 1; }
.kapak-dis { transition: opacity 0.1s linear 0.28s; }
.kapak.acik .kapak-dis { opacity: 0; }

/* ---------- Mağaza ---------- */
.kahraman-magaza { color: var(--yag-acik); font-weight: 700; text-underline-offset: 3px; justify-self: start; }
.bolum-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.magaza-bas { display: grid; gap: 8px; max-width: 46em; }
.magaza-duzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: start; }
@media (max-width: 900px) { .magaza-duzen { grid-template-columns: minmax(0, 1fr); } }
.urun-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.urun-izgara-kompakt { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.urun-izgara-kompakt .urun-fiyat { display: grid; gap: 2px; justify-content: start; }
.urun-kart { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 16px; background: var(--kart); border: 2px solid var(--cizgi); color: inherit; text-decoration: none; scroll-margin-top: 90px; }
.urun-kart.sepette { border-color: var(--zeytin); box-shadow: inset 0 0 0 1px var(--zeytin); }
.urun-kart.vurgu { animation: vurgu 1.6s ease; }
@keyframes vurgu { 0%, 60% { box-shadow: 0 0 0 6px rgba(230, 166, 30, 0.55); } 100% { box-shadow: none; } }
.urun-kart-kompakt:hover { border-color: var(--zeytin); }
.urun-gorsel { height: 120px; display: grid; place-items: center; background: linear-gradient(#f4efdf, #ebe4cc); border-radius: 12px; }
.urun-gorsel svg { height: 112px; width: auto; }
.urun-kart h3 { font-size: 1.05rem; }
.urun-alt { font-size: 0.8rem; color: var(--soluk); }
.urun-fiyat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.urun-fiyat strong { font-family: var(--font-baslik); font-weight: 400; font-size: 1.35rem; color: var(--zeytin); white-space: nowrap; }
.urun-fiyat span { font-size: 0.8rem; color: var(--soluk); font-weight: 600; }
.urun-adet { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.urun-adet .kg-dugme { width: 40px; height: 40px; font-size: 1.3rem; }
.urun-adet output { min-width: 2ch; text-align: center; font-family: var(--font-baslik); font-size: 1.4rem; color: var(--zeytin); }
.sepet-yan { top: 84px; }
.sepet-bos { background: var(--kart); border: 2px dashed var(--cizgi); border-radius: 16px; padding: 18px; display: grid; gap: 6px; }
.urun-kargo { font-size: 0.78rem; color: var(--soluk); }
/* Mobil sepet çubuğu: sepet sayfanın sonunda kaldığı için toplamı hep gösterir */
.sepet-cubuk { display: none; }
@media (max-width: 900px) {
  .sepet-cubuk:not([hidden]) { position: fixed; left: var(--kenar); right: var(--kenar-sag); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px;
    background: var(--zeytin-koyu); color: var(--kagit); box-shadow: var(--golge); transition: transform 0.25s ease, opacity 0.25s ease; }
  .sepet-cubuk.sepet-gorunur { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .sepet-cubuk-ozet { display: grid; text-align: left; background: none; border: 0; color: inherit; padding: 4px 0; cursor: pointer; font: inherit; line-height: 1.15; }
  .sepet-cubuk-ozet small { font-size: 0.75rem; opacity: 0.8; }
  .sepet-cubuk-ozet strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  [data-ekran="magaza"] .bolum { padding-bottom: 96px; }
}
.secenek:disabled, .secenek-kapali { opacity: 0.5; cursor: not-allowed; border-style: dashed; }
.secenek-ana:disabled { background: #fff; color: var(--murekkep); border-color: var(--cizgi); }

/* ---------- Tükendi, indirim satırı ---------- */
.secim-kart.tukendi { opacity: 0.55; cursor: not-allowed; background: #f1f1ea; border-style: dashed; }
.sk-rozet { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--kirmizi); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; vertical-align: 1px; }
.fis-tablo tr.f-indirim th, .fis-tablo tr.f-indirim td { color: #2f6b2f; }

/* ---------- Hasat oyunu ---------- */
.oyun-cip {
  position: absolute; left: 12px; top: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
  border: 2px solid var(--yag-koyu); border-radius: 14px; padding: 6px 12px 6px 8px; background: var(--yag); color: var(--zeytin-koyu);
  font: 600 0.85rem/1.2 var(--font-govde); text-align: left; cursor: pointer; box-shadow: 0 6px 18px rgba(31, 39, 19, 0.25);
  animation: cip-salla 2.4s ease-in-out 1s 2;
}
.oyun-cip svg { width: 30px; height: 30px; flex: none; }
.oyun-cip span { display: grid; }
.oyun-cip strong { font-weight: 800; font-size: 0.9rem; }
.oyun-cip small { font-size: 0.75rem; opacity: 0.85; }
.oyun-cip.kazandi { background: #e3f0d2; border-color: #4f7a2f; }
.oyun-cip:disabled { cursor: default; animation: none; }
@keyframes cip-salla { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(0); } }

.oyun-kart { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 2px dashed var(--yag-koyu); background: #fff7df; }
.oyun-kart svg { width: 38px; height: 38px; }
.oyun-kart-metin { display: grid; gap: 2px; min-width: 0; }
.oyun-kart.kazandi { border-style: solid; border-color: #4f7a2f; background: #eef6e4; }

.oyun-perde { position: fixed; inset: 0; z-index: 300; background: rgba(22, 28, 12, 0.88); display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(10px, env(safe-area-inset-left, 0px)); }
.oyun-kap { width: min(720px, 100%); height: min(760px, 100%); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--zeytin-koyu); border-radius: 18px; overflow: hidden; box-shadow: var(--golge); }
.oyun-ust { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; color: #fff; }
.oyun-sayac { background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.oyun-sayac strong { color: var(--yag-acik); font-size: 1.1rem; margin-left: 4px; }
.oyun-ust .kapat { margin-left: auto; }
.oyun-alan { position: relative; min-height: 0; }
.oyun-alan canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.oyun-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); background: var(--kagit); color: var(--murekkep);
  border-radius: 16px; padding: 20px; display: grid; gap: 12px; text-align: center; box-shadow: var(--golge); }
.oyun-panel h2 { font-size: 1.4rem; }
.oyun-panel p { line-height: 1.5; }
.oyun-panel small { color: var(--soluk); }
.oyun-dugmeler { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .kay, .teker, .akis, .pirilti, .karakter, .bulut-kay, .balon { animation: none !important; }
}
