/*
 * Tezgâh oyunu — görünüm (22 Kasım 2026). web/build.mjs site/oyun/ ve web/dist/oyun/ altına kopyalar.
 *
 * Her kural .tzg altında: site ve panelin kendi stilleriyle karışmasın. Renkler sahnedeki çarşıdan: bordo
 * tente, krem kumaş, altın şerit, çini mavisi. Satır içi stil yok (site ve panelin güvenlik başlığı izin vermez).
 * Önce telefon: tek sütun, üstte sahne, altta karar paneli; 900 pikselden genişte iki sütun.
 */
.tzg {
  --bordo: #5b1d27;
  --bordo-koyu: #3f121a;
  --krem: #f7e6c4;
  --krem-acik: #fdf5e2;
  --altin: #e2b659;
  --altin-koyu: #a9792a;
  --ahsap: #7a4a2b;
  --murekkep: #3b2416;
  --soluk: #6f5540;
  --cini: #2d4f9e;
  --yesil: #2c7a4b;
  --kirmizi: #b3372f;
  /* Jersey 15: rakamları net okunan piksel yazı tipi (Pixelify Sans'ta 5 ile 8 karışıyordu). Tek kalınlık: 400. */
  --piksel: 'Jersey 15', 'Work Sans', system-ui, sans-serif;
  --ust: 0px;

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100dvh - var(--ust));
  min-height: 540px;
  max-width: 540px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bordo);
  color: var(--murekkep);
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.tzg *, .tzg *::before, .tzg *::after { box-sizing: border-box; }
.tzg [hidden] { display: none !important; }
/* Sıfırlamalar :where ile: özgüllükleri düşük kalsın, aşağıdaki sınıflar (ör. .tzg-dugme'nin yazı tipi) ezilmesin */
.tzg :where(button) { font: inherit; color: inherit; cursor: pointer; margin: 0; }
.tzg :where(button:disabled) { cursor: not-allowed; }
.tzg :where(h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.tzg :where(ul, ol) { list-style: none; }
.tzg :where(b) { font-weight: 600; }
.tzg .arti { color: var(--yesil); }
.tzg .eksi { color: var(--kirmizi); }
.tzg :focus-visible { outline: 3px solid var(--cini); outline-offset: 2px; }

/* ── Sahne ───────────────────────────────────────────────────────────────────────────────────────── */
.tzg-sol { position: relative; min-width: 0; }
.tzg-sahne-kap { position: relative; aspect-ratio: 4 / 3; background: var(--bordo-koyu); overflow: hidden; }
.tzg-sahne { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

.tzg-hud {
  position: absolute; inset: 8px 8px auto 8px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  pointer-events: none;
}
.tzg-hud-gun, .tzg-hud-para {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 11px 6px;
  background: rgba(63, 18, 26, 0.86);
  border: 2px solid var(--altin);
  border-radius: 10px;
  color: #fff6e0;
  font-family: var(--piksel); font-weight: 400;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.tzg-hud-gun { flex-direction: column; align-items: flex-start; gap: 0; }
.tzg-hud-gun b { font-size: 22px; font-weight: 400; line-height: 1.05; }
.tzg-hud-gun span { font-size: 17px; line-height: 1.1; color: var(--altin); }
.tzg-hud-para img { display: block; margin: -3px -2px -3px -6px; }
.tzg-hud-para div { display: flex; flex-direction: column; align-items: flex-end; }
.tzg-hud-para b { font-size: 23px; font-weight: 400; line-height: 1.05; }
.tzg-hud-para span { font-size: 16px; line-height: 1.1; color: var(--altin); }

/* Olay duyurusu: tenteye asılmış kumaş şerit */
.tzg-bildirim {
  position: absolute; left: 50%; top: 62px; z-index: 3;
  width: max-content; max-width: calc(100% - 28px);
  transform: translateX(-50%) rotate(-1deg);
  padding: 8px 16px 9px;
  background: var(--krem-acik);
  color: var(--murekkep);
  border-radius: 3px;
  outline: 1px dashed var(--ahsap); outline-offset: -4px;
  box-shadow: 0 0 0 3px var(--krem-acik), 0 5px 0 rgba(0, 0, 0, 0.28);
  font-size: 13.5px; font-weight: 500; line-height: 1.35; text-align: center;
  animation: tzg-in 0.35s ease-out;
}
.tzg-bildirim[data-ton='iyi'] { background: #e7f3df; box-shadow: 0 0 0 3px #e7f3df, 0 5px 0 rgba(0, 0, 0, 0.28); outline-color: var(--yesil); }
.tzg-bildirim[data-ton='kotu'] { background: #fbe3dc; box-shadow: 0 0 0 3px #fbe3dc, 0 5px 0 rgba(0, 0, 0, 0.28); outline-color: var(--kirmizi); }

.tzg-ucanlar { position: absolute; inset: 0; pointer-events: none; }

/* Akşam teslimi: üstte kısa not, solda ekrandaki oklar (telefonda yön tuşu yok) */
.tzg-teslim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tzg-teslim-not {
  position: absolute; left: 50%; top: 62px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px);
  padding: 7px 14px 8px; border-radius: 9px;
  background: #e8f0ff; color: #1f3672; border: 2px solid var(--cini);
  font-size: 13.5px; font-weight: 500; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}
.tzg-yonler {
  position: absolute; left: 10px; bottom: 10px;
  display: grid; grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(2, 42px); gap: 4px;
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
}
.tzg-yon {
  display: grid; place-items: center; padding: 0;
  background: rgba(253, 245, 226, 0.92); border: 2px solid var(--altin-koyu); border-radius: 10px;
  box-shadow: 0 3px 0 rgba(40, 10, 14, 0.5); color: var(--murekkep) !important; font-size: 16px;
}
.tzg-yon:active { transform: translateY(2px); box-shadow: none; background: var(--altin); }
.tzg-yon.yukari { grid-column: 2; grid-row: 1; }
.tzg-yon.sol { grid-column: 1; grid-row: 2; }
.tzg-yon.asagi { grid-column: 2; grid-row: 2; }
.tzg-yon.sag { grid-column: 3; grid-row: 2; }
.tzg[data-teslim] .tzg-sahne { cursor: pointer; touch-action: none; }
.tzg[data-teslim] .tzg-bildirim { display: none; }
@media (max-width: 899px) { .tzg[data-teslim] .tzg-akis { display: none; } }
.tzg-ucan {
  position: absolute;
  transform: translate(-50%, 0);
  padding: 2px 9px 3px;
  background: #fff6e0;
  border: 2px solid var(--altin-koyu);
  border-radius: 8px;
  color: var(--yesil);
  font: 400 20px/1.2 var(--piksel);
  white-space: nowrap;
  animation: tzg-ucan 1.7s ease-out forwards;
}

/* Akış: telefonda sahnenin altına yaslanmış son üç satır */
.tzg-akis {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px;
  max-height: 46%; overflow: hidden;
  pointer-events: none;
}
.tzg-akis-satir {
  max-width: 100%;
  padding: 3px 9px 4px;
  background: rgba(40, 12, 16, 0.84);
  border-left: 4px solid var(--altin);
  border-radius: 3px 8px 8px 3px;
  color: #fff6e0;
  font-size: 13px; line-height: 1.3;
  animation: tzg-in 0.3s ease-out, tzg-sol 0.6s ease-in 9s forwards;
}
.tzg-akis-satir:nth-last-child(n + 4) { display: none; }
.tzg-akis-satir.ton-iyi { border-left-color: #7fd08f; }
.tzg-akis-satir.ton-kotu { border-left-color: #f08a7c; }
.tzg-akis-satir.tur-siparis { font-weight: 600; }
.tzg-akis-satir.tur-sepet { opacity: 0.86; }

/* ── Karar paneli ────────────────────────────────────────────────────────────────────────────────── */
.tzg-sag {
  position: relative;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0; min-width: 0;
  border-top: 3px solid var(--altin);
  background:
    radial-gradient(circle at 12px 12px, rgba(226, 182, 89, 0.1) 2px, transparent 2.5px) 0 0 / 24px 24px,
    var(--bordo);
}
/* Satırlar adıyla: rehber gizlenince öbürleri bir üst satıra kayıp eylem çubuğunu ekranın dışına itmesin */
.tzg-sekmeler { grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 10px 8px; }
.tzg-rehber { grid-row: 2; }
.tzg-icerik { grid-row: 3; }
.tzg-eylem { grid-row: 4; }
.tzg-sekme {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 4px 2px 5px;
  background: var(--krem);
  border: 2px solid var(--altin-koyu);
  border-radius: 12px;
  box-shadow: inset 0 -4px 0 rgba(122, 74, 43, 0.2), 0 3px 0 var(--bordo-koyu);
  font-family: var(--piksel); font-size: 18px; font-weight: 400; line-height: 1.15; color: var(--soluk) !important;
  transition: transform 0.08s;
}
.tzg-sekme img { display: block; width: 44px; height: 44px; filter: saturate(0.75); }
.tzg-sekme.secili {
  background: var(--krem-acik);
  border-color: var(--altin);
  color: var(--murekkep) !important;
  box-shadow: inset 0 -4px 0 rgba(226, 182, 89, 0.55), 0 1px 0 var(--bordo-koyu), 0 0 0 2px rgba(226, 182, 89, 0.35);
  transform: translateY(2px);
}
.tzg-sekme.secili img { filter: none; }
.tzg-nokta {
  position: absolute; top: -4px; right: -3px;
  width: 14px; height: 14px;
  background: var(--kirmizi); border: 2px solid var(--krem-acik); border-radius: 50%;
}

.tzg-rehber {
  position: relative;
  margin: 0 10px 8px; padding: 9px 34px 10px 12px;
  background: #e8f0ff; color: #1f3672;
  border: 2px solid var(--cini); border-radius: 10px;
  font-size: 14px; line-height: 1.4;
}
.tzg-rehber b { font-family: var(--piksel); font-weight: 400; font-size: 18px; }
.tzg-rehber-kapat { position: absolute; top: 2px; right: 4px; width: 30px; height: 30px; background: none; border: 0; font-size: 20px; line-height: 1; color: #1f3672 !important; }

.tzg-icerik {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 10px 12px;
  scrollbar-width: thin; scrollbar-color: var(--altin-koyu) transparent;
}
.tzg-giris { color: #f3dfb8; font-size: 13.5px; padding: 0 2px; }
.tzg-ipucu { color: var(--soluk); font-size: 13px; line-height: 1.4; }
.tzg-dipnot { color: #e9cf9f; font-size: 12.5px; line-height: 1.45; padding: 2px; }
.tzg-kutu .tzg-dipnot { color: var(--soluk); }

.tzg-kart, .tzg-bos, .tzg-kargo, .tzg-depo, .tzg-haber, .tzg-varlik, .tzg-dokum, .tzg-magaza, .tzg-bolum, .tzg-ilerleme {
  background: var(--krem-acik);
  border: 1px solid #e6cf9c;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(40, 10, 14, 0.45);
}
.tzg-kart { display: flex; flex-direction: column; gap: 7px; padding: 10px 11px 11px; }
.tzg-kart header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tzg-kart h3 { font: 400 20px/1.25 var(--piksel); color: var(--murekkep); letter-spacing: 0; }
.tzg-kart-alt { color: var(--soluk); font-size: 13.5px; }
.tzg-kart footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 2px; }
.tzg-vurgulu { color: var(--cini); font-weight: 600; }

/* Yama: dikişli kumaş etiket (düz hap rozet yerine) */
.tzg-yama {
  flex: none;
  display: inline-block;
  padding: 3px 9px 4px;
  background: var(--cini); color: #fff !important;
  border-radius: 2px;
  outline: 1px dashed rgba(255, 255, 255, 0.75); outline-offset: -3px;
  box-shadow: 0 0 0 2px var(--cini), 1px 3px 0 rgba(59, 36, 22, 0.25);
  font: 400 15px/1.25 var(--piksel);
  white-space: nowrap;
  transform: rotate(-1.5deg);
}
.tzg-yama.iyi { background: var(--yesil); box-shadow: 0 0 0 2px var(--yesil), 1px 3px 0 rgba(59, 36, 22, 0.25); }
.tzg-yama.kotu { background: var(--kirmizi); box-shadow: 0 0 0 2px var(--kirmizi), 1px 3px 0 rgba(59, 36, 22, 0.25); }

/* Fiyat: ortada ipli etiket biçiminde kutu, iki yanında adım düğmeleri */
.tzg-fiyat { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.tzg-adim, .tzg-secenek {
  min-height: 40px; padding: 0 11px;
  background: #fff; border: 2px solid #d9bf87; border-radius: 9px;
  box-shadow: 0 2px 0 #d9bf87;
  font-weight: 600; font-size: 14px; color: var(--murekkep) !important;
  font-variant-numeric: tabular-nums;
}
.tzg-adim { min-width: 42px; padding: 0 6px; font-family: var(--piksel); font-weight: 400; font-size: 19px; }
.tzg-adim:active, .tzg-secenek:active { transform: translateY(2px); box-shadow: none; }
.tzg-secenek.secili { background: var(--murekkep); border-color: var(--murekkep); box-shadow: 0 2px 0 #1c0f08; color: #fff6e0 !important; }
.tzg-etiket {
  /* Fiyat etiketi: yuvarlak köşeli kâğıt etiket, solunda delik (kesik köşe yok; eski üçgen uç kesik görünüyordu) */
  position: relative;
  display: flex; align-items: center; gap: 3px;
  min-width: 0; flex: 0 1 140px;
  padding: 0 12px 0 28px;
  background: #fffaf0;
  border: 2px solid var(--altin-koyu); border-radius: 10px;
  box-shadow: inset 0 -3px 0 rgba(169, 121, 42, 0.18), 0 2px 0 #d9bf87;
  font-family: var(--piksel); font-weight: 400; font-size: 21px; color: var(--ahsap);
}
.tzg-etiket::before {
  content: ''; position: absolute; left: 10px; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px;
  background: var(--krem); border: 2px solid var(--altin-koyu); border-radius: 50%;
}
.tzg-etiket input, .tzg-adet input, .tzg-ad input {
  width: 100%; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font: 400 23px/1 var(--piksel); color: var(--murekkep);
  font-variant-numeric: tabular-nums; text-align: right;
  padding: 9px 0;
}
.tzg-etiket:focus-within { border-color: var(--cini); box-shadow: 0 0 0 2px rgba(45, 79, 158, 0.25); }
/* Odak çerçevesi etiketin kendisinde; içteki kutuya ikinci çerçeve çizilmesin */
.tzg :is(.tzg-etiket, .tzg-adet, .tzg-ad) input:focus-visible { outline: none; }
.tzg-hesap, .tzg-rakip { font-size: 13.5px; color: var(--soluk); }
.tzg-rakip { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tzg-rakip .tzg-bag { flex: none; }
/* Açılan ayrıntı: kartın içinde, üstünde ince dikiş çizgisi */
.tzg-detay { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px dashed #dcc48f; }
.tzg-detay footer { display: flex; justify-content: space-between; gap: 12px; }
.tzg-genis { width: 100%; }

/* Toptancı: her ürün tek satır; dokununca alış düğmeleri açılır */
.tzg-liste { display: flex; flex-direction: column; gap: 6px; }
.tzg-satir { background: var(--krem-acik); border: 1px solid #e6cf9c; border-radius: 11px; box-shadow: 0 2px 0 rgba(40, 10, 14, 0.45); }
.tzg-satir.acik { border-color: var(--altin); }
.tzg-satir .tzg-detay { margin: 0 11px; padding-bottom: 11px; }
.tzg-satir-bas {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px 9px 12px; background: none; border: 0; text-align: left; color: var(--murekkep) !important;
}
.tzg-satir-ad { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tzg-satir-ad b { font: 400 19px/1.15 var(--piksel); }
.tzg-satir-ad small, .tzg-satir-fiyat small { font-size: 12.5px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzg-satir-ad em { font-style: normal; }
.tzg-satir-fiyat { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-variant-numeric: tabular-nums; }
.tzg-satir-fiyat b { font: 400 19px/1.15 var(--piksel); }
.tzg-satir-fiyat small.arti { color: var(--yesil); }
.tzg-satir-fiyat small.eksi { color: var(--kirmizi); }
.tzg-ok { flex: none; font-style: normal; color: var(--altin-koyu); font-size: 13px; }
.tzg-hesap b, .tzg-rakip b { font-variant-numeric: tabular-nums; }
.tzg-bag {
  padding: 4px 0; background: none; border: 0;
  color: var(--cini) !important; font-size: 13.5px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.tzg-reklam, .tzg-adetler, .tzg-kargo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tzg-reklam > span, .tzg-kargo > span { margin-right: 2px; font-size: 13.5px; font-weight: 600; color: var(--soluk); }
.tzg-kargo { padding: 8px 11px; }
.tzg-kargo .tzg-secenek { min-height: 36px; font-size: 13.5px; }
.tzg-depo { padding: 10px 12px; font-size: 14px; }
.tzg-depo p { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.tzg-bos { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 14px; }
.tzg-bos b { font: 400 22px var(--piksel); }

.tzg-pazar { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tzg-pazar th { padding: 4px 4px; text-align: left; font-weight: 600; color: var(--soluk); border-bottom: 2px solid #e6cf9c; }
.tzg-pazar td { padding: 6px 4px; border-bottom: 1px solid #efdfb9; vertical-align: top; }
.tzg-pazar th:nth-child(n + 3), .tzg-pazar td:nth-child(n + 3) { text-align: right; white-space: nowrap; }
.tzg-pazar small { display: block; color: var(--soluk); font-size: 11.5px; font-weight: 400; }
.tzg-pazar tr.sen td { background: #fff3cf; }
.tzg-pazar tr.stoksuz td { color: #a8957b; }
.tzg-pazar tr.stoksuz b { font-weight: 500; }
.tzg-tac { display: inline-block; padding: 0 5px 1px; background: var(--altin); border-radius: 3px; color: var(--murekkep); font: 400 13px/1.5 var(--piksel); }

/* Toptancı */
.tzg-gercek { padding: 6px 9px; background: #eef3ff; border-left: 4px solid var(--cini); border-radius: 3px 8px 8px 3px; font-size: 13.5px; color: #24376f; }
.tzg-bilgi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.tzg-bilgi dt, .tzg-dokum dt { font-size: 12px; color: var(--soluk); }
.tzg-bilgi dd { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tzg-pazarlik { font-size: 13.5px; font-style: italic; color: var(--ahsap); }
.tzg-al { display: flex; flex-direction: column; gap: 8px; }
.tzg-adet { display: flex; align-items: center; gap: 4px; flex: 1 1 92px; min-width: 84px; padding: 0 9px; background: #fff; border: 2px solid #d9bf87; border-radius: 9px; font-size: 13px; color: var(--soluk); }
.tzg-adet input { font-size: 17px; padding: 8px 0; }
.tzg-adet:focus-within, .tzg-ad:focus-within input { border-color: var(--cini); }

/* Kasa */
.tzg-varlik { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; }
.tzg-varlik span { flex-basis: 100%; font-size: 13px; color: var(--soluk); }
.tzg-varlik b { font: 400 36px/1.1 var(--piksel); font-variant-numeric: tabular-nums; }
.tzg-varlik em { font: 400 19px var(--piksel); font-style: normal; }
.tzg-dokum { display: flex; flex-direction: column; padding: 4px 14px; }
.tzg-dokum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #dcc48f; }
.tzg-dokum > div:last-child { border-bottom: 0; }
.tzg-dokum dt { font-size: 14px; }
.tzg-dokum dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tzg-magaza { display: grid; grid-template-columns: 1fr 1fr; }
.tzg-magaza > div { display: flex; flex-direction: column; padding: 10px 14px; }
.tzg-magaza > div + div { border-left: 1px dashed #dcc48f; }
.tzg-magaza span, .tzg-magaza small { font-size: 12.5px; color: var(--soluk); }
.tzg-magaza b { font: 400 22px/1.3 var(--piksel); }
.tzg-ilerleme { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 12px; font-size: 13.5px; color: var(--soluk); }
.tzg-ilerleme b { color: var(--murekkep); }
.tzg progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 12px; border: 2px solid var(--altin-koyu); border-radius: 7px; background: #fff; overflow: hidden; }
.tzg progress::-webkit-progress-bar { background: #fff; }
.tzg progress::-webkit-progress-value { background: var(--altin); }
.tzg progress::-moz-progress-bar { background: var(--altin); }
.tzg-bolum { display: flex; flex-direction: column; gap: 8px; padding: 11px 14px 12px; }
.tzg-bolum > b { font: 400 18px var(--piksel); }
.tzg-grafik { display: block; width: 100%; height: auto; }
.tzg-grafik line { stroke: #cdb37c; stroke-width: 1; }
.tzg-grafik rect.arti { fill: var(--yesil); }
.tzg-grafik rect.eksi { fill: var(--kirmizi); }
.tzg-rozetler { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.tzg-rozetler li { padding: 3px 9px 4px; border: 1px dashed #c9b083; border-radius: 3px; font-size: 12.5px; color: #a8957b; }
.tzg-rozetler li.var { background: var(--altin); border: 0; outline: 1px dashed rgba(59, 36, 22, 0.55); outline-offset: -3px; box-shadow: 0 0 0 2px var(--altin), 1px 3px 0 rgba(59, 36, 22, 0.22); color: var(--murekkep); font-weight: 600; transform: rotate(-1deg); }

/* Banka */
.tzg-odemeler { display: flex; flex-direction: column; }
.tzg-odemeler li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #dcc48f; font-size: 14px; font-variant-numeric: tabular-nums; }
.tzg-odemeler li:last-child { border-bottom: 0; }
.tzg-odemeler .tzg-secenek { min-height: 36px; font-size: 13px; }

.tzg-haber { padding: 8px 12px 9px; }
.tzg-haber small { display: block; margin-top: 2px; font-size: 12px; color: var(--soluk); }
.tzg-haber > b { display: block; margin-bottom: 4px; font: 400 18px var(--piksel); }
.tzg-haber li { position: relative; padding: 3px 0 3px 14px; font-size: 13.5px; line-height: 1.4; }
.tzg-haber li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--altin-koyu); transform: rotate(45deg); }
.tzg-haber li.ton-iyi::before { background: var(--yesil); }
.tzg-haber li.ton-kotu::before { background: var(--kirmizi); }

/* ── Düğmeler, eylem çubuğu ──────────────────────────────────────────────────────────────────────── */
.tzg-eylem {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  background: var(--bordo-koyu);
  border-top: 2px solid var(--altin-koyu);
}
.tzg-eylem-not { flex: 1 1 0; min-width: 0; color: #f0d9aa; font-size: 12.5px; line-height: 1.3; }
.tzg-dugme {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px;
  border-radius: 12px; border: 2px solid #8a5d16;
  font: 400 19px/1.2 var(--piksel);
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform 0.06s;
}
.tzg-dugme:active { transform: translateY(3px); box-shadow: none !important; }
.tzg-ana { background: linear-gradient(#f6cd69, #dfa738); color: var(--murekkep) !important; box-shadow: 0 3px 0 #8a5d16; }
.tzg-ana:disabled { background: #d8c9a6; border-color: #b3a27c; box-shadow: 0 3px 0 #b3a27c; color: #8d7c5c !important; }
.tzg-ikincil { background: var(--krem-acik); color: var(--murekkep) !important; border-color: #c9ad72; box-shadow: 0 3px 0 #c9ad72; }
.tzg-eylem .tzg-ana { flex: 1 1 auto; }
.tzg-hiz { display: flex; gap: 6px; flex: 1 1 auto; }
.tzg-kare { min-width: 46px; padding: 0 8px; background: var(--krem); color: var(--murekkep) !important; border-color: #c9ad72; box-shadow: 0 3px 0 #1d0609; }
.tzg-kare.secili { background: var(--altin); border-color: #8a5d16; }
.tzg-vurgu { animation: tzg-vurgu 1.1s ease-in-out infinite; }

.tzg-uyari {
  position: absolute; left: 10px; right: 10px; bottom: 76px; z-index: 5;
  padding: 10px 12px;
  background: #fff1ed; color: #7c1f18;
  border: 2px solid var(--kirmizi); border-radius: 10px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  font-size: 14px; line-height: 1.35;
  animation: tzg-in 0.2s ease-out;
}

/* ── Kutular ─────────────────────────────────────────────────────────────────────────────────────── */
.tzg-kat { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 12px; background: rgba(34, 8, 12, 0.74); }
.tzg-kutu {
  display: flex; flex-direction: column; gap: 12px;
  width: min(460px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px 16px;
  background: var(--krem-acik);
  border: 3px solid var(--altin); border-radius: 16px;
  box-shadow: 0 0 0 2px var(--bordo-koyu), 0 10px 0 rgba(0, 0, 0, 0.35);
  outline: 0;
}
.tzg-kutu h2 { font: 400 32px/1.2 var(--piksel); letter-spacing: 0; color: var(--murekkep); text-wrap: balance; }
.tzg-kutu h2.arti { color: var(--yesil); }
.tzg-kutu h2.eksi { color: var(--kirmizi); }
.tzg-kutu h2 small { font-size: 15px; font-weight: 600; color: var(--soluk); }
.tzg-ust-baslik { font: 400 16px var(--piksel); color: var(--ahsap); letter-spacing: 0.04em; text-transform: uppercase; }
.tzg-altin { color: #b07a12; }
.tzg-kutu .tzg-dokum, .tzg-kutu .tzg-bolum, .tzg-koc, .tzg-kopru { box-shadow: none; }
.tzg-acilis { display: flex; flex-direction: column; gap: 12px; }
.tzg-acilis h2:not(.tzg-logo) { font-size: 56px; line-height: 0.95; color: var(--bordo); }
.tzg-ad { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--soluk); }
.tzg-ad input { padding: 11px 12px; background: #fff; border: 2px solid #d9bf87; border-radius: 10px; text-align: left; font-size: 18px; }

/* Akşam özeti: yazarkasa fişi */
.tzg-fis { display: flex; flex-direction: column; padding: 8px 14px 10px; background: #fff; border: 1px solid #e6cf9c; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tzg-fis > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.tzg-fis dd { text-align: right; white-space: nowrap; }
.tzg-fis .toplam { margin-top: 5px; padding-top: 8px; border-top: 2px dashed var(--ahsap); font: 400 20px var(--piksel); }
.tzg-neden { display: flex; flex-direction: column; gap: 6px; }
.tzg-neden li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.4; }
.tzg-neden li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--altin-koyu); transform: rotate(45deg); }
.tzg-yildizlar { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; letter-spacing: 1px; color: var(--soluk); }
.tzg-yildizlar .iyi { color: #b07a12; }
.tzg-yildizlar .kotu { color: var(--kirmizi); }
.tzg-koc, .tzg-kopru { display: flex; flex-direction: column; gap: 6px; padding: 11px 14px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.tzg-koc { background: #e8f0ff; border: 2px solid var(--cini); color: #1f3672; }
.tzg-koc b, .tzg-kopru > b { font: 400 18px var(--piksel); }
.tzg-kopru { background: #e7f3df; border: 2px solid var(--yesil); }
.tzg-kopru p:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.tzg-kopru .tzg-dugme { min-height: 40px; font-size: 14px; white-space: normal; }
.tzg-kart-gorsel { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 4px 0 rgba(59, 36, 22, 0.25); }
.tzg-paylas { display: flex; gap: 8px; }
.tzg-paylas .tzg-dugme { flex: 1 1 0; }

@keyframes tzg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes tzg-sol { to { opacity: 0; } }
@keyframes tzg-ucan { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px); } }
@keyframes tzg-vurgu { 50% { box-shadow: 0 0 0 6px rgba(45, 79, 158, 0.38); } }
.tzg-bildirim { animation-name: tzg-serit; }
@keyframes tzg-serit { from { opacity: 0; transform: translateX(-50%) translateY(-8px) rotate(-1deg); } }

/* Kısa ekran: sahne biraz kısalır, panele yer kalır */
@media (max-height: 700px) and (max-width: 899px) {
  .tzg-sahne-kap { aspect-ratio: 16 / 10; }
  .tzg-sekme img { width: 36px; height: 36px; }
}

/* ── Geniş ekran: solda sahne ve akış, sağda karar paneli ────────────────────────────────────────── */
@media (min-width: 900px) {
  .tzg {
    grid-template-columns: minmax(0, 1.3fr) minmax(370px, 0.9fr);
    grid-template-rows: minmax(0, 1fr);
    max-width: 1140px;
    height: min(calc(100dvh - var(--ust)), 790px);
    min-height: 600px;
    border: 3px solid var(--altin);
    border-radius: 18px;
    box-shadow: 0 0 0 2px var(--bordo-koyu), 0 14px 30px rgba(40, 10, 14, 0.25);
  }
  .tzg-sol { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .tzg-akis {
    position: static; max-height: none; overflow-y: auto; pointer-events: auto;
    justify-content: flex-start; align-items: stretch; gap: 5px;
    padding: 12px 14px;
    border-top: 3px solid var(--altin);
    background: var(--bordo-koyu);
    scrollbar-width: thin; scrollbar-color: var(--altin-koyu) transparent;
  }
  .tzg-akis::before { content: 'Pazarda olanlar'; font: 400 16px var(--piksel); color: var(--altin); letter-spacing: 0.04em; text-transform: uppercase; }
  .tzg-akis-satir, .tzg-akis-satir:nth-last-child(n + 4) { display: block; animation: tzg-in 0.3s ease-out; background: rgba(255, 246, 224, 0.07); font-size: 13.5px; padding: 5px 10px 6px; }
  .tzg-sag { border-top: 0; border-left: 3px solid var(--altin); }
  .tzg-hud { inset: 12px 12px auto 12px; }
  .tzg-hud-gun b { font-size: 26px; }
  .tzg-hud-para b { font-size: 28px; }
  .tzg-bildirim { top: 78px; font-size: 15px; }
  .tzg-ucan { font-size: 20px; }
  .tzg-kat { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tzg-vurgu, .tzg-bildirim, .tzg-akis-satir, .tzg-uyari { animation: none; }
  .tzg-ucan { animation-duration: 1.7s; }
}

/* ── Site sayfası (site/oyun/index.html): oyun ilk ekranı doldurur, anlatım altında ─────────────────── */
.oyun-govde { background: #f3ead8; }
/* "Bize yaz" balonu sağ altta oyunun düğmelerinin üstüne biniyor: bu sayfada gizli (iletişim alt menüde) */
.oyun-govde .ds-kok { display: none; }
.oyun-sayfa #tezgah { min-height: 540px; background: #5b1d27; }
/* --ust'u oyun kendisi ölçer (arayuz.ts boyutla); buradaki değer betik gelene dek geçerli */
.oyun-sayfa .tzg { --ust: 41px; }
.oyun-yok { padding: 48px 24px; color: #fff6e0; text-align: center; }
.oyun-anlatim { padding-top: 40px; padding-bottom: 56px; }
.oyun-uyari { margin-top: 24px; padding: 14px 16px; background: #fff; border-left: 4px solid #a9792a; border-radius: 4px 10px 10px 4px; font-size: 15px; }
@media (min-width: 900px) {
  .oyun-sayfa #tezgah { min-height: 600px; padding: 20px 24px 8px; background: none; }
  .oyun-sayfa .tzg { --ust: 119px; }
}

/* ══ Piksel görünüm (22 Kasım 2026, kullanıcı: "hâlâ amatörce, güzelleştir") ═══════════════════════════════════
 * Panel sahneyle aynı dünyada: ahşap zemin, kâğıt kartlar, piksel çerçeve ve kabarık düğmeler. Çerçeveler 9 dilimli
 * küçük PNG'ler (scripts/oyun-cizim.py cerceveler(), her piksel 3 ekran pikseli); dokular Kie.ai'den. Bu blok
 * yukarıdaki düz kutu kurallarının üstüne yazar. */
.tzg-sag { background: #4b1a20 url(img/ahsap.webp) 0 0 / 256px repeat; }
.tzg-eylem { background: linear-gradient(rgba(20, 5, 8, 0.5), rgba(20, 5, 8, 0.5)), #3f121a url(img/ahsap.webp) 0 0 / 256px; }

/* Kâğıt kart: piksel çerçeve, kenarı kırık köşe, altta gölge */
.tzg :is(.tzg-kart, .tzg-satir, .tzg-bos, .tzg-kargo, .tzg-depo, .tzg-haber, .tzg-varlik, .tzg-dokum, .tzg-magaza, .tzg-bolum, .tzg-ilerleme),
.tzg .tzg-kutu {
  border: 9px solid transparent;
  border-image: url(img/cerceve-kart.png) 9 / 9px stretch;
  border-radius: 0;
  background: #fdf5e2 url(img/kagit.webp) 0 0 / 256px;
  background-clip: padding-box;
  box-shadow: none;
  filter: drop-shadow(0 3px 0 rgba(30, 8, 12, 0.5));
}
.tzg .tzg-satir.acik { border-color: transparent; }
.tzg .tzg-kart { padding: 3px 5px 5px; }
.tzg .tzg-satir-bas { padding: 2px 4px 3px 6px; }
.tzg .tzg-satir .tzg-detay { margin: 0 5px; padding-bottom: 6px; }
.tzg .tzg-kargo { padding: 1px 4px; }
.tzg .tzg-bos { padding: 8px; }
.tzg .tzg-varlik { padding: 2px 8px 4px; }
.tzg .tzg-dokum { padding: 0 8px; }
.tzg .tzg-magaza > div { padding: 3px 8px 5px; }
.tzg .tzg-bolum, .tzg .tzg-ilerleme { padding: 3px 8px 6px; }
.tzg .tzg-haber { padding: 2px 6px 4px; }
.tzg .tzg-depo { padding: 3px 6px; }
.tzg .tzg-kutu { padding: 10px 10px 12px; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35)); }

/* Kabarık piksel düğmeler: basılınca içe göçer (yazı aşağı iner, boy değişmez) */
.tzg :is(.tzg-adim, .tzg-secenek, .tzg-dugme, .tzg-sekme, .tzg-yon, .tzg-kare) {
  border-style: solid; border-color: transparent;
  border-width: 9px 9px 15px;
  border-image: url(img/dugme.png) 9 9 15 fill / 9px 9px 15px;
  border-radius: 0;
  background: none;
  box-shadow: none !important;
  transform: none !important;
  outline-offset: 3px;
}
.tzg :is(.tzg-adim, .tzg-secenek, .tzg-dugme, .tzg-sekme, .tzg-yon, .tzg-kare):is(:active, .basili):not(:disabled) {
  border-width: 15px 9px 9px;
  border-image: url(img/dugme-bas.png) 15 9 9 fill / 15px 9px 9px;
}
.tzg .tzg-ana { border-image-source: url(img/altin.png); }
.tzg .tzg-ana:active:not(:disabled) { border-image-source: url(img/altin-bas.png); }
.tzg .tzg-ana:disabled { border-image-source: url(img/dugme.png); opacity: 0.6; }
.tzg :is(.tzg-secenek, .tzg-kare).secili { border-image-source: url(img/koyu.png); color: #fff6e0 !important; }
.tzg .tzg-kare.secili { border-image-source: url(img/altin.png); color: var(--murekkep) !important; }
/* Seçili sekme basılı durur */
.tzg .tzg-sekme.secili {
  border-width: 15px 9px 9px;
  border-image: url(img/dugme-bas.png) 15 9 9 fill / 15px 9px 9px;
}
.tzg .tzg-sekme { padding: 0 2px; }
.tzg .tzg-sekme img { width: 40px; height: 40px; }
.tzg .tzg-sekme span { line-height: 1.05; }
.tzg .tzg-adim { min-height: 46px; min-width: 46px; padding: 0 2px; }
.tzg .tzg-secenek { min-height: 44px; padding: 0 4px; }
.tzg .tzg-kargo .tzg-secenek { min-height: 42px; }
.tzg .tzg-odemeler .tzg-secenek { min-height: 40px; }
.tzg .tzg-dugme { min-height: 52px; padding: 0 8px; }
.tzg .tzg-kare { min-width: 50px; padding: 0 2px; }
.tzg .tzg-yonler { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); }
.tzg .tzg-etiket { box-shadow: inset 0 -3px 0 rgba(169, 121, 42, 0.18); }

/* Üst bilgi: koyu piksel çerçeve; yanında ses düğmesi */
.tzg :is(.tzg-hud-gun, .tzg-hud-para, .tzg-ses) {
  border: 9px solid transparent;
  border-image: url(img/cerceve-koyu.png) 9 fill / 9px;
  border-radius: 0; background: none; box-shadow: none;
  padding: 0 3px;
}
.tzg-hud-sag { display: flex; align-items: flex-start; gap: 6px; }
.tzg-ses {
  pointer-events: auto; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; color: #ffd465 !important; font-size: 18px; line-height: 1;
}
.tzg-ses.kapali span { opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 2px; }
.tzg-hud-para.vurdu { animation: tzg-vur 0.35s ease-out; }
@keyframes tzg-vur { 40% { transform: scale(1.08); filter: brightness(1.25); } }

/* Kasaya uçan altın para */
.tzg-para { position: absolute; z-index: 3; width: 28px; height: 28px; pointer-events: none; }

/* Tezgâhtarın konuşma balonu: yüzünün sağında, kuyruğu yüzüne */
.tzg-balon {
  position: absolute; z-index: 4; left: 50%; top: 70px;
  width: max-content; max-width: var(--balon-gen, 260px);
  padding: 1px 6px 3px;
  border: 9px solid transparent;
  border-image: url(img/cerceve-kart.png) 9 / 9px stretch;
  background: #fffaf0; background-clip: padding-box;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
  font-size: 13.5px; line-height: 1.38; color: var(--murekkep);
  animation: tzg-balon 0.28s ease-out;
}
.tzg-balon::before, .tzg-balon::after {
  content: ''; position: absolute; top: var(--kuyruk, 12px);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.tzg-balon::before { left: -22px; width: 14px; height: 18px; margin-top: -1px; background: #3b2416; }
.tzg-balon::after { left: -15px; width: 12px; height: 14px; margin-top: 1px; background: #fffaf0; }
.tzg-balon[data-ton='kotu'] .tzg-balon-yazi { color: #7c1f18; }
.tzg-balon[data-ton='iyi'] .tzg-balon-yazi { color: #1d5e37; }
.tzg-balon-yazi { margin: 0; }
.tzg-balon-kapat {
  position: absolute; top: -14px; right: -14px; width: 26px; height: 26px; padding: 0;
  background: var(--murekkep); color: #fff6e0 !important; border: 2px solid var(--altin); border-radius: 50%;
  font-size: 15px; line-height: 1;
}
.tzg-balon-kapat[hidden] { display: none; }
.tzg[data-teslim] .tzg-balon { font-weight: 600; }
@keyframes tzg-balon { from { opacity: 0; transform: scale(0.92) translateX(-6px); } }

/* Akış satırları: başında küçük simge */
.tzg .tzg-akis-satir { display: flex; align-items: center; gap: 6px; }
.tzg .tzg-akis-satir img { flex: none; width: 20px; height: 20px; }
.tzg .tzg-akis-satir:nth-last-child(n + 4) { display: none; }

/* Satır içi küçük simgeler */
.tzg :is(.tzg-yama, .tzg-bag, .tzg-reklam > span, .tzg-vurgulu) img { vertical-align: -4px; margin-right: 4px; }
.tzg .tzg-bag { display: inline-flex; align-items: center; gap: 2px; }
.tzg .tzg-yama img { vertical-align: -5px; margin: -3px 3px -3px -2px; }

/* Akşam özeti: yazar kasa fişi, satırlar sırayla yazılır, altı tırtıklı */
.tzg .tzg-fis {
  position: relative; margin-bottom: 8px;
  background: #fff; border: 0; border-radius: 0;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px;
  filter: drop-shadow(0 2px 0 rgba(59, 36, 22, 0.25));
}
.tzg .tzg-fis::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background:
    linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x,
    linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 12px 8px repeat-x;
}
.tzg .tzg-fis .toplam { font-family: var(--piksel); font-size: 21px; }
.tzg .tzg-fis.yaziliyor > div { opacity: 0; animation: tzg-yaz 0.18s steps(3, end) forwards; }
.tzg .tzg-fis.yaziliyor > div:nth-child(1) { animation-delay: 0.14s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(2) { animation-delay: 0.25s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(3) { animation-delay: 0.36s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(4) { animation-delay: 0.47s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(5) { animation-delay: 0.58s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(6) { animation-delay: 0.69s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(7) { animation-delay: 0.8s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(8) { animation-delay: 0.91s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(9) { animation-delay: 1.02s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(10) { animation-delay: 1.13s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(11) { animation-delay: 1.24s; }
.tzg .tzg-fis.yaziliyor > div:nth-child(n + 12) { animation-delay: 1.35s; }
@keyframes tzg-yaz { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* Haftanın notu: tezgâhtarın yüzü + balon */
.tzg .tzg-koc { flex-direction: row; align-items: flex-start; gap: 10px; background: #fffaf0; border: 0; border-radius: 0; color: var(--murekkep); }
.tzg .tzg-koc img { flex: none; width: 56px; height: 56px; border: 3px solid #3b2416; outline: 2px solid var(--altin); outline-offset: -5px; image-rendering: auto; }
.tzg .tzg-koc > div { display: flex; flex-direction: column; gap: 3px; }

@media (min-width: 900px) {
  .tzg .tzg-akis { background: linear-gradient(rgba(25, 6, 10, 0.55), rgba(25, 6, 10, 0.55)), #3f121a url(img/ahsap.webp) 0 0 / 256px; }
  .tzg .tzg-akis-satir, .tzg .tzg-akis-satir:nth-last-child(n + 4) { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .tzg .tzg-fis.yaziliyor > div { animation: none; opacity: 1; }
  .tzg-balon, .tzg-hud-para.vurdu { animation: none; }
}

/* ══ Ürün resimleri, müşteri soruları, toptancı fırsatı, açılış ekranı (22 Kasım 2026 gece) ═══════════════════ */
.tzg-urun-resim { flex: none; display: inline-block; vertical-align: middle; }
.tzg .tzg-kart h3 { display: flex; align-items: center; gap: 6px; }
.tzg .tzg-kart h3 .tzg-urun-resim { margin: -6px 0 -6px -2px; }
.tzg .tzg-satir-bas .tzg-urun-resim { margin: -4px -2px -4px -4px; }

/* Müşteri sorusu: mavi kenarlı kâğıt; cevaplar alt alta, tıklanınca seçilir */
.tzg .tzg-soru, .tzg .tzg-firsat {
  display: flex; flex-direction: column; gap: 6px; padding: 3px 5px 6px;
  border: 9px solid transparent; border-image: url(img/cerceve-kart.png) 9 / 9px stretch;
  background: #eef3ff; background-clip: padding-box;
  filter: drop-shadow(0 3px 0 rgba(30, 8, 12, 0.5));
  animation: tzg-in 0.3s ease-out;
}
.tzg .tzg-firsat { background: #fff3cf; background-clip: padding-box; }
.tzg-soru header, .tzg-firsat header { display: flex; align-items: center; gap: 8px; }
.tzg-soru header p, .tzg-firsat header p { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; margin: 0; }
.tzg-soru small, .tzg-firsat small { font-size: 12px; color: var(--soluk); }
.tzg-soru b { font-size: 15px; color: #1f3672; line-height: 1.3; }
.tzg-firsat b { font: 400 21px/1.1 var(--piksel); }
.tzg-cevaplar { display: flex; flex-direction: column; gap: 4px; }
.tzg .tzg-cevap { min-height: 0; padding: 4px 6px 2px; text-align: left; font-weight: 500; font-size: 13.5px; line-height: 1.3; white-space: normal; }
.tzg-firsat-dugmeler { display: flex; gap: 8px; }
.tzg-firsat-dugmeler .tzg-dugme { flex: 1 1 0; white-space: normal; }

/* Açılış: çarşı arkada görünsün; büyük piksel logo, adın yazıldığı asma tabela */
.tzg-kat[data-tur='baslangic'] { background: linear-gradient(rgba(34, 8, 12, 0.25), rgba(34, 8, 12, 0.7)); align-items: end; }
@media (min-width: 900px) { .tzg-kat[data-tur='baslangic'] { align-items: center; } }
.tzg .tzg-kutu[data-tur='baslangic'] { width: min(420px, 100%); }
.tzg-acilis { align-items: center; text-align: center; gap: 10px !important; }
.tzg .tzg-logo {
  margin: 2px 0 0; font: 400 64px/0.9 var(--piksel); letter-spacing: 3px; color: #ffd465 !important;
  text-shadow:
    3px 0 #3b2416, -3px 0 #3b2416, 0 3px #3b2416, 0 -3px #3b2416,
    3px 3px #3b2416, -3px 3px #3b2416, 3px -3px #3b2416, -3px -3px #3b2416,
    0 7px #8a5d16, 3px 7px #3b2416, -3px 7px #3b2416, 0 10px #3b2416;
}
.tzg-alt-baslik { margin: 4px 0 0; font: 400 18px var(--piksel); color: var(--ahsap); letter-spacing: 0.5px; }
.tzg-tabela-on {
  position: relative; margin: 14px auto 2px; padding: 7px 20px 8px; min-width: 180px; max-width: 100%;
  background: #6b4226; border: 3px solid #c99a3e; outline: 3px solid #2a170d;
  font: 400 26px/1.1 var(--piksel); color: #ffe7a0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tzg-tabela-on::before, .tzg-tabela-on::after { content: ''; position: absolute; top: -17px; width: 4px; height: 14px; background: #5a3a22; }
.tzg-tabela-on::before { left: 22px; } .tzg-tabela-on::after { right: 22px; }
.tzg-maddeler { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; width: 100%; text-align: left; }
.tzg-maddeler li { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--murekkep); }
.tzg-maddeler img { flex: none; }
.tzg-acilis .tzg-ad { width: 100%; text-align: left; }
.tzg-acilis .tzg-dugme { width: 100%; }

/* Masaüstü: soldaki "Pazarda olanlar" hep görünsün (22 Kasım 2026, kullanıcı: "solda para akıyor ama görünmüyor").
   Önce sahne sabit 4:3'tü, akışa ne kalırsa o kalıyordu; kısa ekranda birkaç satıra iniyordu. Şimdi akışa en az
   200 px (yüksekliğin %38'i) ayrılır, sahne kalan yeri doldurur (görsel taşan yerden kırpılır; sahne.ts ve
   arayuz.ts sahneNoktasi bu kırpmayı hesaba katar). Başlık kaydırınca yukarıda kalır, satırlar biraz büyür. */
@media (min-width: 900px) {
  .tzg .tzg-sol { grid-template-rows: minmax(0, 1fr) minmax(200px, 38%); min-height: 0; }
  .tzg .tzg-sahne-kap { aspect-ratio: auto; height: 100%; min-height: 0; }
  .tzg .tzg-akis { padding-top: 0; gap: 6px; }
  .tzg .tzg-akis::before {
    position: sticky; top: 0; z-index: 1; display: block; margin: 0 -14px; padding: 10px 14px 6px;
    background: #2c0c12; border-bottom: 1px solid rgba(226, 182, 89, 0.35);
  }
  .tzg .tzg-akis-satir { font-size: 14.5px; padding: 6px 10px 7px; background: rgba(255, 246, 224, 0.09); }
  .tzg .tzg-akis-satir.tur-siparis { background: rgba(127, 208, 143, 0.14); }
  .tzg .tzg-akis-satir img { width: 24px; height: 24px; }
}

/* ── 22 Kasım gece: haftalık sıralama, meydan okuma, sen yokken, tanıtım turu ─────────────────────── */

/* Üst bilgide ses, sıralama (taç) ve "nasıl oynanır" düğmeleri: alt alta, dar ekranda yer kaplamasın */
.tzg-hud-dugmeler { display: flex; flex-direction: column; gap: 4px; }
.tzg .tzg-hud-dugmeler .tzg-ses { width: 40px; height: 40px; font-size: 17px; }
.tzg-kupa img { image-rendering: pixelated; }

/* Açılışta ve kutularda taçlı not */
.tzg-meydan-not {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0;
  padding: 7px 10px; border-radius: 10px; background: #fff3cf; border: 2px solid var(--altin);
  font-size: 13px; line-height: 1.35; text-align: left; color: var(--murekkep);
}
.tzg-meydan-not img { flex: none; image-rendering: pixelated; }
.tzg .tzg-bag {
  display: inline; padding: 0; margin: 0; border: 0; background: none; min-height: 0;
  font: inherit; color: var(--cini); text-decoration: underline; cursor: pointer;
}
.tzg-meydan-tac { display: block; margin: 0 auto 2px; image-rendering: pixelated; }
.tzg-meydan-sonuc {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.4; text-align: left;
}
.tzg-meydan-sonuc p { margin: 0; }
.tzg-meydan-sonuc img { flex: none; image-rendering: pixelated; }
.tzg-meydan-sonuc.iyi { background: #e7f3df; border: 2px solid var(--yesil); }
.tzg-meydan-sonuc.kotu { background: #fbe9e3; border: 2px solid var(--kirmizi); }

/* Sıralama listesi */
.tzg-siralama-kutu, .tzg-kutu [data-siralama] { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tzg-sira-sen { margin: 0; font-size: 14px; }
.tzg-sira { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.tzg-sira li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 8px; background: var(--krem-acik); font-size: 14px;
}
.tzg-sira li:nth-child(-n + 3) i { color: var(--altin-koyu); }
.tzg-sira i { font-style: normal; font-family: var(--piksel); font-size: 20px; text-align: center; color: var(--soluk); }
.tzg-sira span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--murekkep); }
.tzg-sira small { font-size: 12px; color: var(--soluk); }
.tzg-sira b { font-family: var(--piksel); font-size: 19px; font-weight: 400; color: var(--murekkep); }
.tzg-sira li.sen { background: #fff3cf; outline: 2px solid var(--altin); }
.tzg-sira li.ayri { margin-top: 6px; }

/* Tanıtım turu: oyunun üstüne koyu perde, gösterilen yerde delik, yanında kart */
.tzg-tur { position: absolute; inset: 0; z-index: 30; cursor: pointer; }
.tzg-tur[hidden] { display: none; }
.tzg-tur-delik {
  position: absolute; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--altin), 0 0 0 9999px rgba(20, 6, 10, 0.72);
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.tzg-tur-delik[hidden] { display: block; box-shadow: 0 0 0 9999px rgba(20, 6, 10, 0.72); width: 0; height: 0; }
.tzg-tur-kart {
  position: absolute; cursor: default; padding: 12px 14px 12px;
  border: 9px solid transparent; border-image: url(img/cerceve-kart.png) 9 / 9px stretch;
  background: #fdf5e2 url(img/kagit.webp) 0 0 / 256px; background-clip: padding-box;
  color: var(--murekkep); outline: none;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
  transition: left 0.25s ease, top 0.25s ease;
}
.tzg-tur-sira { margin: 0; font-family: var(--piksel); font-size: 16px; color: var(--altin-koyu); }
.tzg-tur-kart h3 { margin: 0 0 4px; font-family: var(--piksel); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--bordo); }
.tzg-tur-yazi { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.tzg-tur-alt { display: flex; justify-content: flex-end; gap: 8px; }
.tzg .tzg-tur-alt .tzg-dugme { min-height: 42px; padding: 0 14px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .tzg-tur-delik, .tzg-tur-kart { transition: none; } }
