:root {
  --lacivert: #1f2a6b;
  --lacivert-2: #2c3a8c;
  --altin: #c9a24a;
  --tugla: #a8432f;
  --krem: #f6efe2;
  --kart: #fffaf1;
  --cizgi: #e2d6bf;
  --yazi: #2a2418;
  --soluk: #7a6f5c;
  --iyi: #2f7d4a;
  --kotu: #b23a2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.4 system-ui, "Segoe UI", sans-serif;
  background: var(--krem);
  color: var(--yazi);
  min-width: 1200px;
}
button, select, input { font: inherit; }
button {
  cursor: pointer;
  border: 1px solid var(--lacivert);
  background: var(--lacivert);
  color: #fff;
  border-radius: 6px;
  padding: 3px 10px;
}
button:hover { background: var(--lacivert-2); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.kucuk { background: transparent; color: var(--lacivert); }
select { border: 1px solid var(--cizgi); border-radius: 6px; padding: 2px 6px; background: #fff; }

/* üst bar */
#ust {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 18px;
  background: var(--lacivert); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#ust button.kucuk { color: #fff; border-color: #fff8; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo span {
  font: italic 900 28px/1 Georgia, serif; letter-spacing: 2px;
  background: #fff; color: var(--lacivert);
  padding: 4px 16px; border-radius: 50%;
  border: 2px solid var(--altin);
}
.logo small { font-size: 10px; letter-spacing: 1px; margin-top: 3px; color: var(--altin); }
.tarih { font-weight: 600; min-width: 170px; }
.kasa small { display: block; font-size: 11px; opacity: .7; }
.kasa b { font-size: 20px; }
.kasa b.eksi { color: #ff9b8a; }
.hiz { display: flex; gap: 4px; }
.hiz button { background: transparent; border-color: #fff6; min-width: 38px; }
.hiz button.aktif { background: var(--altin); border-color: var(--altin); color: var(--lacivert); }
.gostergeler { display: flex; gap: 14px; margin-left: auto; }
.gst { width: 120px; }
.gst label { font-size: 11px; opacity: .8; }
.gst i { display: block; height: 7px; background: #ffffff30; border-radius: 4px; overflow: hidden; margin: 2px 0; }
.gst em { display: block; height: 100%; background: #7fd39a; transition: width .4s; }
.gst b { font-size: 12px; }

/* ana ızgara */
main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 300px;
  gap: 14px;
  padding: 14px 18px 40px;
  align-items: start;
}
aside { display: flex; flex-direction: column; gap: 14px; }
.panel {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 10px;
  padding: 12px 14px;
}
.panel h2 { margin: 0 0 10px; font-size: 16px; color: var(--lacivert); }
.panel h3 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--soluk); }
.panel h3 small { text-transform: none; letter-spacing: 0; }
.satir { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--cizgi); }
.satir > span:first-child { flex: 1; }
.satir b { min-width: 28px; text-align: right; }
.satir .pm { display: flex; gap: 4px; }
.satir .pm button { padding: 0 9px; }
.bilgi { margin-top: 8px; font-size: 12px; color: var(--soluk); }
.bilgi .uyari { color: var(--kotu); }

.plan, .fiyat { display: grid; grid-template-columns: 82px 1fr 70px; align-items: center; gap: 6px; padding: 2px 0; }
.plan b, .fiyat b { font-size: 12px; text-align: right; }
input[type=range] { width: 100%; accent-color: var(--lacivert); }

.tablo { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.tablo th, .tablo td { text-align: right; padding: 2px 4px; }
.tablo th:first-child, .tablo td:first-child { text-align: left; }
.tablo th { color: var(--soluk); font-weight: 500; }
.tablo .eksik { color: var(--kotu); }
.tablo .fazla { color: #a07a1e; }

#rapor .kalem { display: flex; justify-content: space-between; font-size: 12px; padding: 1px 0; }
#rapor .kalem.top { font-weight: 700; border-top: 1px solid var(--cizgi); margin-top: 4px; padding-top: 4px; }
#rapor .arti { color: var(--iyi); }
#rapor .eksi { color: var(--kotu); }
.baba { margin-top: 10px; font-size: 12px; padding: 8px; background: #efe6d3; border-radius: 6px; }
.baba i { display: block; height: 6px; background: #fff; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.baba em { display: block; height: 100%; background: var(--lacivert); }

#gunluk ul { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; font-size: 12px; }
#gunluk li { padding: 4px 0; border-bottom: 1px dashed var(--cizgi); }
#gunluk li small { color: var(--soluk); margin-right: 4px; }
#gunluk li.good { color: var(--iyi); }
#gunluk li.bad { color: var(--kotu); }

/* perde (giriş / son) */
.perde {
  position: fixed; inset: 0; z-index: 20;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 18, 40, .78);
}
.perde.acik { display: flex; }
.perde .kutu {
  width: 560px; background: var(--kart); border-radius: 14px; padding: 28px 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.perde h1 { margin: 0 0 6px; color: var(--lacivert); }
.perde .snap {
  background: #000a; color: #fff; text-align: center; padding: 8px; margin: 14px -32px;
  font-size: 16px;
}
.perde .not { font-size: 11px; color: var(--soluk); margin-top: 14px; }
.perde .ozet { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 13px; margin: 14px 0; }
.perde button { font-size: 16px; padding: 8px 22px; margin-top: 10px; }

#bildirim {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--yazi); color: #fff; padding: 8px 16px; border-radius: 8px;
  opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 30;
}
#bildirim.goster { opacity: 1; }

/* ------------------------------------------------ sahneler */
.sahne {
  margin: -12px -14px 12px;
  aspect-ratio: 400 / 220;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border-bottom: 3px solid var(--altin);
  background: #ddd;
}
.sahne-svg { display: block; width: 100%; height: 100%; }
.gizli { display: none !important; }

.sahne-svg g, .sahne-svg path, .sahne-svg rect, .sahne-svg text, .sahne-svg circle { transform-box: fill-box; }
@keyframes salla { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes fiskiye { 0% { opacity: 0; transform: scaleY(.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1.1); } }
@keyframes pompa { 0%,100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes ucak { from { transform: translate(-40px, 150px); } to { transform: translate(440px, 140px); } }
@keyframes sis { 0%,100% { opacity: .16; } 50% { opacity: .3; } }
@keyframes gagala { 0%,70%,100% { transform: rotate(0); } 80% { transform: rotate(28deg) translateY(2px); } }
@keyframes kuyruk { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ates { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .8; transform: scaleY(.88); } }
@keyframes dondur { to { transform: rotate(360deg); } }
@keyframes bant { from { transform: translateX(-38px); } to { transform: translateX(0); } }
@keyframes yogur { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px) rotate(-3deg); } }
@keyframes kirmizi { 0%,60% { opacity: 1; } 61%,100% { opacity: .15; } }
@keyframes sinek { 0% { transform: translate(0,0); } 25% { transform: translate(5px,-3px); } 50% { transform: translate(-3px,-5px); } 75% { transform: translate(-6px,1px); } 100% { transform: translate(0,0); } }
@keyframes bekle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes kuf { 0%,100% { opacity: 0; } 20%,60% { opacity: 1; } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0,4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(4px,-6px); } }
@keyframes parilti { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes arac { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-.6px); } }

.basak { animation: salla 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.fiskiye { animation: fiskiye 1.6s ease-out infinite; transform-origin: 50% 100%; }
.pompa { animation: pompa 1.8s ease-in-out infinite; transform-origin: 50% 50%; }
.ucak { animation: ucak 9s linear infinite; }
.sis { animation: sis 4s ease-in-out infinite; }
.gagala { animation: gagala 2.2s ease-in-out infinite; transform-origin: 50% 80%; }
.kuyruk { animation: kuyruk 1.6s ease-in-out infinite; transform-origin: 100% 0; }
.bob { animation: bob 2s ease-in-out infinite; }
.ates { animation: ates .5s ease-in-out infinite; transform-origin: 50% 100%; }
.dondur { animation: dondur 6s linear infinite; transform-box: view-box !important; }
.bant { animation: bant 1.4s linear infinite; }
.yogur { animation: yogur 1.1s ease-in-out infinite; }
.kirmizi { animation: kirmizi 1.2s steps(1) infinite; }
.sinek { animation: sinek 1.3s linear infinite; }
.bekle { animation: bekle 2.6s ease-in-out infinite; }
.kuf { animation: kuf 4s ease-in-out infinite; }
.zzz { animation: zzz 2.8s ease-in-out infinite; }
.parilti { animation: parilti 2.5s ease-in-out infinite; }
.arac { animation: arac .9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sahne-svg * , .portre * { animation: none !important; } }

/* ------------------------------------------------ kadro */
.kadro-satir { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--cizgi); }
.kadro-satir:last-child { border-bottom: 0; }
.kadro-satir .portre { flex: none; }
.kadro-satir b { display: block; font-size: 13px; }
.kadro-satir small { color: var(--soluk); font-size: 11px; }

/* ------------------------------------------------ olay kartı */
#olay .kart {
  width: 640px; display: grid; grid-template-columns: 170px 1fr; gap: 0;
  background: var(--kart); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
  animation: kartGel .35s cubic-bezier(.2,1.3,.4,1);
}
@keyframes kartGel { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
#olay .sol { background: var(--lacivert); color: #fff; padding: 22px 14px; text-align: center; }
#olay .sol b { display: block; margin-top: 10px; font-size: 15px; }
#olay .sol small { color: var(--altin); }
#olay .sag { padding: 0 0 18px; }
#olay .snap { margin: 0; background: #000c; color: #fff; text-align: center; padding: 10px 14px; font-size: 17px; }
#olay .metin { padding: 16px 22px 6px; font-size: 15px; line-height: 1.5; }
#olay .secenekler { display: flex; flex-direction: column; gap: 8px; padding: 8px 22px 0; }
#olay .secenekler button {
  text-align: left; padding: 9px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px;
  background: #fff; color: var(--yazi); border: 2px solid var(--lacivert);
}
#olay .secenekler button:hover { background: var(--lacivert); color: #fff; }
#olay .secenekler button small { opacity: .65; font-size: 12px; }
#olay .tarihce { padding: 10px 22px 0; font-size: 11px; color: var(--soluk); }

/* son ekranı portreleri */
.perde .portreler { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }

.sahne { cursor: zoom-in; }
#buyut { cursor: zoom-out; }
#buyut .buyuk { width: min(1280px, 92vw); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 60px rgba(0,0,0,.5); border: 3px solid var(--altin); background: #000; }
#buyut .buyuk .sahne-svg { width: 100%; height: auto; aspect-ratio: 400 / 220; }
#buyut .alt { background: var(--lacivert); color: #fff; padding: 8px 14px; font-size: 13px; }

.satir > span[title] { cursor: help; text-decoration: underline dotted #b9ab8e; text-underline-offset: 3px; }
.grafik { display: block; margin: 6px 0 2px; background: #fff; border: 1px solid var(--cizgi); border-radius: 6px; }
.lejant { display: flex; gap: 14px; font-size: 11px; }

.ipuclari { margin: 8px 0 4px; padding-left: 18px; font-size: 13px; color: #4a4232; }
.ipuclari li { margin: 3px 0; }

@keyframes kar { from { transform: translate(0, 0); } to { transform: translate(14px, 236px); } }
.kar { animation: kar 6s linear infinite; }

/* Koçhisar Postası */
#gazete {
  position: fixed; top: 84px; left: 50%; transform: translate(-50%, -20px);
  display: flex; align-items: center; gap: 12px; max-width: 900px;
  background: #fbf6e8; color: #2a2418; border: 2px solid #2a2418; border-radius: 4px;
  padding: 8px 14px; font-family: Georgia, serif; box-shadow: 4px 4px 0 #2a241833;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 15;
}
#gazete.goster { opacity: 1; transform: translate(-50%, 0); }
#gazete b { font-size: 13px; letter-spacing: 1px; border-right: 2px solid #2a2418; padding-right: 10px; white-space: nowrap; }
#gazete small { font-family: system-ui, sans-serif; color: #7a6f5c; white-space: nowrap; }
#gazete span { font-size: 15px; font-weight: 700; }
#gazete em { font-style: normal; font-family: system-ui, sans-serif; font-size: 12px; white-space: nowrap; }
#gazete em.arti { color: var(--iyi); } #gazete em.eksi { color: var(--kotu); }

/* başarım bildirimi */
#basarim {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; gap: 12px; align-items: center; width: 320px;
  background: var(--lacivert); color: #fff; border: 2px solid var(--altin); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  transform: translateX(380px); transition: transform .35s cubic-bezier(.2,1.2,.4,1);
}
#basarim.goster { transform: none; }
#basarim > span { font-size: 30px; }
#basarim small { display: block; color: var(--altin); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
#basarim b { display: block; font-size: 16px; }
#basarim em { font-size: 12px; opacity: .8; font-style: normal; }

/* son ekranı */
.perde .kutu { max-height: 92vh; overflow: auto; }
.epilog { margin: 12px 0; }
.epilog h3, .bas-baslik { margin: 10px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--soluk); }
.epilog > div { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.epilog .portre { flex: none; }
.basarim-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; font-size: 12px; color: #a59a86; }
.basarim-liste .var { color: var(--yazi); font-weight: 600; }

@keyframes memati { 0% { transform: translateX(-60px); } 22% { transform: translateX(440px); } 100% { transform: translateX(440px); } }
.memati-gecis { animation: memati 14s ease-in infinite; animation-delay: 3s; transform: translateX(-60px); }

/* @efa.patisserie */
.telefon { border-radius: 22px; border: 6px solid #1a1a1e; padding: 10px 12px; background: #fff; }
.tel-ust { display: flex; gap: 10px; align-items: center; }
.tel-logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lacivert); color: #fff; font: italic 900 13px Georgia, serif; border: 2px solid var(--altin); box-shadow: 0 0 0 2px #e8436a; }
.tel-ust b { display: block; font-size: 13px; }
.tel-ust small { color: var(--soluk); font-size: 10px; }
.tel-sayilar { display: flex; justify-content: space-around; text-align: center; margin: 8px 0; }
.tel-sayilar b { display: block; font-size: 14px; }
.tel-sayilar small { font-size: 10px; color: var(--soluk); }
.tel-resim { display: block; width: 100%; border-radius: 8px; }
.tel-gonderi.viral .tel-resim { outline: 3px solid #e8436a; }
.tel-gonderi.ifsa .tel-resim { filter: grayscale(.8); }
.tel-yazi { font-size: 12px; margin: 5px 0; }
.rozet { background: #e8436a; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 6px; font-weight: 700; }
.tel-bos { font-size: 12px; color: var(--soluk); padding: 14px 4px; text-align: center; border: 1px dashed var(--cizgi); border-radius: 8px; }
.tel-yorumlar { font-size: 11.5px; border-top: 1px solid #eee; margin-top: 6px; padding-top: 4px; }
.tel-yorumlar > div { padding: 2px 0; }
.tel-yorumlar .kotu { color: var(--kotu); }
.tel-alt { position: relative; margin-top: 8px; }
.tel-alt > button { width: 100%; background: #e8436a; border-color: #e8436a; border-radius: 10px; }
.tel-alt > button:disabled { background: #ccc; border-color: #ccc; opacity: 1; color: #666; }
#paylasMenu { position: absolute; bottom: 38px; left: 0; right: 0; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 6px; display: flex; flex-direction: column; gap: 4px; z-index: 6; }
#paylasMenu button { background: #fff; color: var(--yazi); border: 1px solid var(--cizgi); text-align: left; display: flex; flex-direction: column; border-radius: 8px; }
#paylasMenu button:hover:not(:disabled) { background: #fdeef2; }
#paylasMenu button small { color: var(--soluk); font-size: 11px; }
