/* PC: ocak pencereleri (ajan düzeni, 2026-11-26)
   Kut Ocağı: solda basılabilir eşya listesi (Çanta / Giyilenler), ortada büyük ocak sahnesi ve basma defteri,
   sağda Kut Taşı tablosu (stok, tutarsa yeni basma, sonraki denemenin şansları), sonuç çubuğu ve döküm düğmesi.
   (Sarraf Hanı 2026-11-29'da kaldırıldı; pencere biçimleri de silindi.) */

/* ===================== Kut Ocağı ===================== */
.app.desk .kf-win .sh-body { container-type: inline-size; overflow: hidden; }
.app.desk .kf-win .kf { flex: 1; height: auto; min-height: 0; display: grid; grid-template-columns: 188px minmax(0, 1fr) 286px; grid-template-rows: minmax(0, 1fr); gap: 12px; }
.app.desk .kf-win .kf > * { grid-row: 1; min-height: 0; min-width: 0; }
.app.desk .kf-win .kf-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 3px; font: 700 9px/1.2 var(--fs); letter-spacing: .16em; text-transform: uppercase; color: #8a7a5c; }
.app.desk .kf-win .kf-cap em { font: 500 10px var(--fb); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--dim); white-space: nowrap; }

/* sol: eşya listesi */
.app.desk .kf-win .kf-pick { grid-column: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow: hidden; border-radius: 14px; background: #141210; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-seg { flex: none; }
.app.desk .kf-win .kf-seg button { height: 28px; font-size: 11.5px; gap: 5px; }
.app.desk .kf-win .kf-seg button:hover:not(.on) { color: #e6dccb; }
.app.desk .kf-win .kf-strip { flex: 1; min-height: 0; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 1px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a332b transparent; align-items: stretch; }
.app.desk .kf-win .kf-strip > em { align-self: stretch; padding: 18px 8px; text-align: center; line-height: 1.4; }
.app.desk .kf-win .kf-pi { flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: center; justify-items: stretch; gap: 3px 8px; padding: 5px 7px 5px 5px; border-radius: 10px; text-align: left; transition: background .15s, transform .15s; }
.app.desk .kf-win .kf-pi:hover { background: #1d1a17; }
.app.desk .kf-win .kf-pi.sel { background: linear-gradient(90deg, rgba(255, 170, 90, .16), rgba(255, 170, 90, .02)); box-shadow: inset 2px 0 0 #ffb45a, inset 0 0 0 1px rgba(255, 180, 90, .25); }
.app.desk .kf-win .kf-pi .kf-pif { grid-row: 1 / span 3; grid-column: 1; width: 40px; height: 40px; }
.app.desk .kf-win .kf-pi.sel .kf-pif { box-shadow: 0 0 12px -3px rgba(255, 160, 80, .9); }
.app.desk .kf-win .kf-pn { display: contents; }
.app.desk .kf-win .kf-pn > b, .app.desk .kf-win .kf-pn > small { grid-column: 2 / -1; min-width: 0; }
.app.desk .kf-win .kf-pn > .kf-pbar { grid-column: 2; grid-row: 3; }
.app.desk .kf-win .kf-pi > .kf-pb { grid-column: 3; grid-row: 3; }
.app.desk .kf-win .kf-pn b { font: 700 12px/1.15 var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .kf-win .kf-pn small { font: 500 9.5px/1 var(--fb); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .kf-win .kf-pbar { position: relative; display: block; height: 3px; border-radius: 2px; overflow: hidden; background: #0d0b0a; box-shadow: 0 0 0 1px #24201c; }
.app.desk .kf-win .kf-pbar::after { content: ''; position: absolute; top: 0; bottom: 0; left: 60%; width: 1px; background: rgba(255, 106, 82, .7); }
.app.desk .kf-win .kf-pbar > i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(calc(var(--b) / 100)); background: linear-gradient(90deg, #8a64b8, #c9a0f0); transition: transform .6s var(--spring); }
.app.desk .kf-win .kf-pbar.hot > i { background: linear-gradient(90deg, #c9a0f0, #ff8a4a 60%, #ff6a3a); }
.app.desk .kf-win .kf-pi .kf-pb { position: static; padding: 1px 4px; border-radius: 5px; font: 700 9.5px/1.2 var(--fn); color: #e2cdf8; background: #2a2034; box-shadow: inset 0 0 0 1px #4e3a64; }
.app.desk .kf-win .kf-pi .kf-pb.hot { color: #ffe2d4; background: #4a1e14; box-shadow: inset 0 0 0 1px #8a3a24; }
.app.desk .kf-win .kf-pi .kf-pb.z { color: #6f665d; background: #181614; box-shadow: inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-pi:active { transform: scale(.98); }

/* orta: ocak sahnesi + basma defteri */
.app.desk .kf-win .kf-mid { grid-column: 2; display: flex; flex-direction: column; gap: 10px; }
.app.desk .kf-win .kf-stage { flex: 1; min-height: 0; height: auto; gap: 4px; padding: 14px 14px 16px; border-radius: 16px; }
.app.desk .kf-win .kf-alt { width: clamp(150px, min(58cqh, 84cqw), 360px); }
.app.desk .kf-win .kf-alt .kf-it { cursor: zoom-in; }
.app.desk .kf-win .kf-pct { font-size: 13px; padding: 4px 11px; }
.app.desk .kf-win .kf-nm { margin-top: 6px; font-size: clamp(16px, 3.2cqw, 24px); }
.app.desk .kf-win .kf-sub { font-size: 11px; }
.app.desk .kf-win .kf-stat { margin-top: 4px; padding: 5px 10px; border-radius: 10px; background: rgba(10, 8, 7, .55); box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .1); font-size: 11.5px; line-height: 1.35; }
.app.desk .kf-win .kf-stat b { color: #e2cdf8; }
.app.desk .kf-win .kf-stat { flex-direction: column; gap: 2px; text-align: center; }
.app.desk .kf-win .kf-stat i { rotate: 90deg; line-height: 1; }
.app.desk .kf-win .kf-log { flex: 0 0 auto; height: clamp(150px, 30%, 250px); display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: #141210; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-ll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a332b transparent; display: grid; align-content: start; gap: 2px; }
.app.desk .kf-win .kf-le { padding: 14px 10px; text-align: center; font: 400 11px/1.4 var(--fb); font-style: normal; color: var(--dim); }
.app.desk .kf-win .kf-lr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 62px; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 4px; border-radius: 8px; transition: background .12s; }
.app.desk .kf-win .kf-lr:nth-child(even) { background: rgba(255, 255, 255, .018); }
.app.desk .kf-win .kf-lr:hover { background: #1f1b17; }
.app.desk .kf-win .kf-lr img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.app.desk .kf-win .kf-lr b { font: 600 12px var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .kf-win .kf-lr em { font: 600 11.5px var(--fn); font-style: normal; color: #d9d0c4; white-space: nowrap; }
.app.desk .kf-win .kf-lr small { justify-self: end; padding: 2px 7px; border-radius: 6px; font: 700 10px/1.2 var(--fb); }
.app.desk .kf-win .kf-lr.ok small { color: #b6f0a8; background: rgba(111, 207, 98, .12); box-shadow: inset 0 0 0 1px rgba(111, 207, 98, .35); }
.app.desk .kf-win .kf-lr.fl small { color: #f6d28c; background: rgba(231, 194, 106, .1); box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .3); }
.app.desk .kf-win .kf-lr.bk small { color: #ff8a72; background: rgba(255, 106, 82, .12); box-shadow: inset 0 0 0 1px rgba(255, 106, 82, .4); }
.app.desk .kf-win .kf-lr.bk b { text-decoration: line-through; text-decoration-color: rgba(255, 106, 82, .6); }
.app.desk .kf-win .kf-lr.new { animation: kfLogIn .5s var(--spring) both; }
@keyframes kfLogIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }

/* sağ: taş tablosu, sonuç, düğme */
.app.desk .kf-win .kf-panel { grid-column: 3; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.app.desk .kf-win .kf-tbl { flex: none; border-radius: 12px; overflow: hidden; background: #121110; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-th, .app.desk .kf-win .kf-gem { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px 46px 50px 0; gap: 6px; align-items: center; }
.app.desk .kf-win .kf-th { height: 26px; padding: 0 8px; background: #181513; box-shadow: inset 0 -1px 0 #2a2521; }
.app.desk .kf-win .kf-th > span { font: 600 9.5px var(--fb); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.app.desk .kf-win .kf-th > span:first-child { grid-column: span 2; text-align: left; }
.app.desk .kf-win .kf-th > span:last-child, .app.desk .kf-win .kf-gem > .nr { visibility: hidden; overflow: hidden; }
.app.desk .kf-win .kf-gems { display: grid; grid-template-columns: none; gap: 0; padding: 3px; border-radius: 0; background: none; box-shadow: none; }
.app.desk .kf-win .kf-gem { justify-items: stretch; height: 40px; padding: 0 5px; border-radius: 9px; text-align: left; transition: background .15s, transform .15s; }
.app.desk .kf-win .kf-gem:hover { background: #1f1b17; }
.app.desk .kf-win .kf-gem.on { background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 16%, transparent), color-mix(in srgb, var(--sc) 3%, transparent)); box-shadow: inset 2px 0 0 var(--sc), inset 0 0 0 1px color-mix(in srgb, var(--sc) 35%, transparent); }
.app.desk .kf-win .kf-gem .kf-sock { width: 30px; height: 30px; }
.app.desk .kf-win .kf-gem .kf-sock img { width: 25px; height: 25px; }
.app.desk .kf-win .kf-gem.on .kf-sock img { transform: translateY(-1px) scale(1.08); }
.app.desk .kf-win .kf-gn { min-width: 0; display: grid; gap: 2px; }
.app.desk .kf-win .kf-gn b { font: 700 13px/1 var(--fn); color: var(--sc); }
.app.desk .kf-win .kf-gn small { font: 500 9.5px/1.1 var(--fb); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .kf-win .kf-gc { text-align: right; font: 600 12px/1 var(--fn); color: #d9d0c4; white-space: nowrap; }
.app.desk .kf-win small.kf-gc { font-size: 12px; color: #d9d0c4; }
.app.desk .kf-win .kf-gem.none small.kf-gc { color: #6f665d; }
.app.desk .kf-win .kf-gc.to { color: #d9bdf6; }
.app.desk .kf-win .kf-gc.nx { color: #b6f0a8; }
.app.desk .kf-win .kf-gc.nr { color: #6f665d; } .app.desk .kf-win .kf-gc.nr.on { color: #ff8a72; }
.app.desk .kf-win .kf-gem.none { opacity: .5; }
.app.desk .kf-win .kf-gem:active { transform: scale(.98); }

.app.desk .kf-win .kf-oc { flex: none; display: grid; gap: 7px; padding: 9px 9px 10px; border-radius: 12px; background: #141210; box-shadow: 0 0 0 1px #0b0a0a, inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-ocb { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: #0d0b0a; }
.app.desk .kf-win .kf-ocb i { flex-basis: 0; min-width: 0; }
.app.desk .kf-win .kf-ocb .ok { background: linear-gradient(180deg, #a6ec92, #5fb84e); }
.app.desk .kf-win .kf-ocb .fl { background: linear-gradient(180deg, #d6bd78, #927844); }
.app.desk .kf-win .kf-ocb .bk { background: linear-gradient(180deg, #ff8a72, #c23a22); }
.app.desk .kf-win .kf-ocl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.app.desk .kf-win .kf-ocl > span { display: grid; grid-template-columns: 7px minmax(0, 1fr); align-items: center; column-gap: 5px; row-gap: 2px; padding: 5px 6px; border-radius: 9px; background: #181513; font: 600 10px var(--fb); color: var(--muted); }
.app.desk .kf-win .kf-ocl > span > i { width: 7px; height: 7px; border-radius: 2px; rotate: 45deg; }
.app.desk .kf-win .kf-ocl b { grid-column: 1 / -1; font: 700 15px/1 var(--fn); }
.app.desk .kf-win .kf-ocl small { grid-column: 1 / -1; font: 500 9.5px/1.1 var(--fn); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.desk .kf-win .kf-ocl .ok i { background: #8fe07c; } .app.desk .kf-win .kf-ocl .ok b { color: #b6f0a8; }
.app.desk .kf-win .kf-ocl .fl i { background: #e7c26a; } .app.desk .kf-win .kf-ocl .fl b { color: #f6d28c; }
.app.desk .kf-win .kf-ocl .bk i { background: #5a4a40; } .app.desk .kf-win .kf-ocl .bk b { color: #6f665d; }
.app.desk .kf-win .kf-ocl .bk.on { background: linear-gradient(180deg, #2a1612, #181513); box-shadow: inset 0 0 0 1px #6a2c22; }
.app.desk .kf-win .kf-ocl .bk.on i { background: #ff6a52; } .app.desk .kf-win .kf-ocl .bk.on b { color: #ff8a72; }
.app.desk .kf-win .kf-odds { display: none; }
.app.desk .kf-win .kf-max { flex: none; padding: 14px; }
.app.desk .kf-win .kf-warn { flex: none; margin: 0; padding: 0 4px; font-size: 10.5px; line-height: 1.35; }
.app.desk .kf-win .kf-inf { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: 12px; overflow: hidden; background: #2a2521; box-shadow: 0 0 0 1px #0b0a0a; }
.app.desk .kf-win .kf-inf > span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 7px 9px; background: #151311; }
.app.desk .kf-win .kf-inf small { font: 500 10px var(--fb); color: var(--dim); white-space: nowrap; }
.app.desk .kf-win .kf-inf b { font: 700 11.5px var(--fn); color: #e6dccb; white-space: nowrap; }
.app.desk .kf-win .kf-inf > span:nth-child(2) b { color: #b6f0a8; } .app.desk .kf-win .kf-inf > span:nth-child(3) b { color: #ff8a72; } .app.desk .kf-win .kf-inf > span:nth-child(4) b { color: var(--gold); }
/* şans eğrisi: 0–100 basma için 5'lik adımlarla tutma (yeşil sütun) ve kırılma (kızıl tepe); yer yoksa gizlenir */
.app.desk .kf-win .kf-curve { flex: 1 1 0; min-height: 0; container-type: size; display: flex; flex-direction: column; gap: 6px; }
.app.desk .kf-win .kf-curve > * { flex: none; }
.app.desk .kf-win .kf-cv { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 3px; padding: 8px 8px 0; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, transparent 0 calc(50% - .5px), rgba(255, 255, 255, .04) 50%, transparent calc(50% + .5px)), #121110; box-shadow: inset 0 0 0 1px #2a2521; }
.app.desk .kf-win .kf-cv > i { position: relative; flex: 1; display: block; }
.app.desk .kf-win .kf-cv b, .app.desk .kf-win .kf-cv em { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; border-radius: 3px 3px 0 0; transform-origin: 50% 100%; transition: transform .6s var(--spring); }
.app.desk .kf-win .kf-cv b { transform: scaleY(calc(var(--c) / 100)); background: linear-gradient(180deg, rgba(143, 224, 124, .55), rgba(95, 184, 78, .08)); box-shadow: inset 0 2px 0 rgba(166, 236, 146, .85); }
.app.desk .kf-win .kf-cv em { transform: scaleY(calc(var(--r) / 100)); background: linear-gradient(180deg, rgba(255, 138, 114, .9), rgba(194, 58, 34, .35)); }
.app.desk .kf-win .kf-cv i.hot b { background: linear-gradient(180deg, rgba(240, 192, 112, .5), rgba(185, 142, 58, .08)); box-shadow: inset 0 2px 0 rgba(240, 213, 140, .85); }
.app.desk .kf-win .kf-cv i.now::after, .app.desk .kf-win .kf-cv i.nxt::after { content: ''; position: absolute; inset: -4px -1px 0; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1.5px #e2cdf8, 0 0 10px -2px #c9a0f0; }
.app.desk .kf-win .kf-cv i.nxt::after { box-shadow: 0 0 0 1.5px var(--gold), 0 0 10px -2px var(--gold); animation: kfNx 1.6s ease-in-out infinite; }
@keyframes kfNx { 50% { opacity: .35; } }
.app.desk .kf-win .kf-cx { position: relative; height: 16px; margin-top: -6px; padding: 0 8px; border-radius: 0 0 10px 10px; background: #121110; box-shadow: inset 0 0 0 1px #2a2521; font: 600 9.5px/16px var(--fn); color: var(--dim); }
.app.desk .kf-win .kf-cx span { position: absolute; top: 0; }
.app.desk .kf-win .kf-cx span:first-child { left: 8px; } .app.desk .kf-win .kf-cx span:nth-child(2) { translate: -50% 0; color: #ff8a72; } .app.desk .kf-win .kf-cx span:last-child { right: 8px; }
@container (max-height: 88px) { .app.desk .kf-win .kf-curve > * { display: none; } }
.app.desk .kf-win .kf-go { flex: none; margin-top: auto; height: 50px; font-size: 15.5px; border-radius: 13px; }
.app.desk .kf-win .kf-go:not(:disabled):hover { filter: brightness(1.08); }

/* geniş orta sütun (1920): liste ve panel genişler, taş tablosunda "Sonra kırılma" sütunu açılır */
@container (min-width: 980px) {
  .app.desk .kf-win .kf { grid-template-columns: 250px minmax(0, 1fr) 360px; gap: 14px; }
  .app.desk .kf-win .kf-pi { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 6px 9px 6px 6px; }
  .app.desk .kf-win .kf-pi .kf-pif { width: 46px; height: 46px; }
  .app.desk .kf-win .kf-pn b { font-size: 13px; } .app.desk .kf-win .kf-pn small { font-size: 10.5px; }
  .app.desk .kf-win .kf-th, .app.desk .kf-win .kf-gem { grid-template-columns: 36px minmax(0, 1fr) 40px 50px 50px 54px; gap: 8px; }
  .app.desk .kf-win .kf-th > span:last-child, .app.desk .kf-win .kf-gem > .nr { visibility: visible; }
  .app.desk .kf-win .kf-th { height: 30px; } .app.desk .kf-win .kf-th > span { font-size: 10.5px; }
  .app.desk .kf-win .kf-gem { height: 50px; padding: 0 7px; }
  .app.desk .kf-win .kf-gem .kf-sock { width: 36px; height: 36px; } .app.desk .kf-win .kf-gem .kf-sock img { width: 30px; height: 30px; }
  .app.desk .kf-win .kf-gn b { font-size: 15px; } .app.desk .kf-win .kf-gn small { font-size: 11px; }
  .app.desk .kf-win .kf-gc, .app.desk .kf-win small.kf-gc { font-size: 13.5px; }
  .app.desk .kf-win .kf-oc { padding: 12px; gap: 9px; } .app.desk .kf-win .kf-ocb { height: 10px; }
  .app.desk .kf-win .kf-ocl > span { padding: 8px 9px; font-size: 11px; } .app.desk .kf-win .kf-ocl b { font-size: 19px; } .app.desk .kf-win .kf-ocl small { font-size: 10.5px; }
  .app.desk .kf-win .kf-warn { font-size: 11.5px; }
  .app.desk .kf-win .kf-go { height: 58px; font-size: 17px; }
  .app.desk .kf-win .kf-cap { font-size: 10px; } .app.desk .kf-win .kf-cap em { font-size: 11px; }
  .app.desk .kf-win .kf-lr { height: 34px; grid-template-columns: 26px minmax(0, 1fr) auto 70px; } .app.desk .kf-win .kf-lr img { width: 26px; height: 26px; }
  .app.desk .kf-win .kf-lr b { font-size: 13px; } .app.desk .kf-win .kf-lr em { font-size: 12.5px; }
  .app.desk .kf-win .kf-stat { flex-direction: row; gap: 8px; font-size: 13px; padding: 7px 14px; } .app.desk .kf-win .kf-stat i { rotate: none; }
  .app.desk .kf-win .kf-inf > span { padding: 9px 12px; } .app.desk .kf-win .kf-inf small { font-size: 11px; } .app.desk .kf-win .kf-inf b { font-size: 13px; } .app.desk .kf-win .kf-sub { font-size: 12px; }
}
