/* BİLETLER VE MİNİ OYUNLAR (2026-12-02, js/bilet.js): envanterdeki "Bilet birleştir" şeridi ve Mini Oyunlar sayfası.
   Canlandırmalar yalnız transform / opacity (FPS kuralı); sürekli dönen tek şey dolu şeridin ışık süpürmesi. */

/* ---------------- envanter: birleştirme şeridi ---------------- */
.bkz { flex: none; }
.bkz-in { --bc: #e7c26a; display: flex; align-items: center; gap: 10px; height: 58px; padding: 6px 8px 6px 11px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 240, 210, .035), rgba(0, 0, 0, .16)); box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .13); transition: box-shadow .25s, background .25s; }
.bkz.drop-ok .bkz-in { box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .42), 0 0 14px -5px rgba(231, 194, 106, .55); }
.bkz.drop-hot .bkz-in { box-shadow: inset 0 0 0 1.5px var(--bc), 0 0 18px -3px var(--bc); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 12%, transparent), rgba(0, 0, 0, .16)); }
.bkz-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.bkz-l > .ic { flex: none; width: 17px; height: 17px; color: var(--bc); opacity: .85; }
.bkz-l > span { min-width: 0; }
.bkz-l b { display: block; font: 700 11px/1.15 var(--fs); letter-spacing: .07em; text-transform: uppercase; color: #e9dfca; }
.bkz-l small { display: block; margin-top: 2px; font: 400 10.5px/1.2 var(--fb); color: #8f877c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkz-row { position: relative; flex: none; display: flex; gap: 4px; height: 46px; transition: gap .35s cubic-bezier(.3, .8, .3, 1); }
.bkz-s { --w: 28.75px; position: relative; flex: none; width: var(--w); height: 46px; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer;
  background: rgba(0, 0, 0, .38); box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .2); transition: border-radius .35s; }
.bkz-s::after { content: ''; position: absolute; inset: 3px; border: 1px dashed rgba(231, 194, 106, .2); border-radius: 2px; pointer-events: none; }
.bkz-s img { position: absolute; top: 0; left: calc(var(--k) * var(--w) * -1); width: calc(var(--w) * 4); height: 46px; max-width: none; opacity: .13; filter: grayscale(.8); pointer-events: none; transition: opacity .25s; }
.bkz-s .bkz-n { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--fs); font-style: normal; color: rgba(231, 194, 106, .55); }
.bkz-s.on { box-shadow: none; } .bkz-s.on::after, .bkz-s.on .bkz-n { display: none; }
.bkz-s.on img { opacity: 1; filter: none; }
.bkz-s:hover:not(.on) { box-shadow: inset 0 0 0 1px rgba(231, 194, 106, .4); }
.bkz-s.on:hover img { opacity: .82; }
.bkz-s.pop { animation: bkzPop .42s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bkzPop { 0% { transform: translateY(-7px) scale(1.18); } 100% { transform: none; } }
/* dört parça yan yana: aradaki boşluk kapanır, bilet tek parça görünür, üstünden ışık geçer */
.bkz-in.full .bkz-row { gap: 0; }
.bkz-in.full .bkz-s { border-radius: 0; } .bkz-in.full .bkz-s:first-child { border-radius: 6px 0 0 6px; } .bkz-in.full .bkz-s:nth-child(4) { border-radius: 0 6px 6px 0; }
.bkz-gl { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; }
.bkz-gl::before { content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; background: linear-gradient(100deg, transparent, rgba(255, 246, 220, .38), transparent); transform: translateX(-120%); }
.bkz-in.full .bkz-gl { opacity: 1; } .bkz-in.full .bkz-gl::before { animation: bkzSweep 2.6s ease-in-out infinite; }
@keyframes bkzSweep { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(360%); } }
.bkz-in.full .bkz-row::after { content: ''; position: absolute; inset: -3px; border-radius: 8px; box-shadow: 0 0 0 1px var(--bc), 0 0 16px -2px var(--bc); opacity: .55; pointer-events: none; }
.bkz-go { flex: none; height: 32px; padding: 0 13px; border: 0; border-radius: 8px; cursor: pointer; font: 700 11px/1 var(--fs); letter-spacing: .07em; text-transform: uppercase;
  color: #1c1408; background: linear-gradient(180deg, #f2d48a, #c99a45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .15s, filter .2s, opacity .2s; }
.bkz-go:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.bkz-go:disabled { cursor: default; opacity: .35; filter: grayscale(.7); }
/* birleşme: parçalar parlayıp tek bilete döner */
.bkz-in.mrg .bkz-row { animation: bkzMrg .62s cubic-bezier(.3, .7, .3, 1) both; }
.bkz-in.mrg .bkz-row::before { content: ''; position: absolute; inset: -6px; z-index: 2; border-radius: 9px; background: radial-gradient(closest-side, rgba(255, 244, 214, .95), rgba(255, 220, 150, .4) 55%, transparent); animation: bkzFlash .62s ease-out both; pointer-events: none; }
@keyframes bkzMrg { 0% { transform: none; } 35% { transform: scale(1.1); } 100% { transform: scale(.6) translateY(-8px); opacity: 0; } }
@keyframes bkzFlash { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .bkz-in.full .bkz-gl::before, .bkz-s.pop { animation: none; } }

/* ---------------- Mini Oyunlar sayfası ---------------- */
.app.desk .sheet-in.mgw .sh-body { display: flex; flex-direction: column; padding: 2px 20px 18px; overflow: hidden; }
.mgp { --gc: #e7c26a; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 16px; }
.mgp-l { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mgp-r { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 7%, #1f1c1a), #181614 60%); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .06), inset 0 1px 0 rgba(255, 240, 210, .05); }

/* günün etkinliği */
.mgp-ev { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--ec) 14%, #1d1a18), #1a1816);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec) 26%, transparent); }
.mgp-ev.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec) 55%, transparent), 0 0 18px -8px var(--ec); }
.mgp-evi { flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.mgp-evi img { width: 50px; height: 50px; }
.mgp-ev.on .mgp-evi img { animation: mgpBob 2.4s ease-in-out infinite; }
@keyframes mgpBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-3deg); } }
.mgp-evt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mgp-evt small { font: 400 10px/1.2 var(--fb); color: #958c80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-evt b { font: 700 13px/1.15 var(--fs); color: #efe5cf; }
.mgp-evt em { font: italic 400 10.5px/1.2 var(--fb); color: color-mix(in srgb, var(--ec) 70%, #fff); }
.mgp-ok { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #86b08c; background: rgba(134, 176, 140, .12); }
.mgp-ok .ic { width: 13px; height: 13px; }

/* oyun listesi */
.mgp-gs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.mgp-g { flex: 1 1 0; min-height: 50px; max-height: 76px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 0; border-radius: 11px; cursor: pointer; text-align: left;
  color: inherit; background: rgba(255, 240, 210, .025); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .05); transition: background .2s, box-shadow .2s, transform .15s; }
.mgp-g:hover { background: rgba(255, 240, 210, .05); }
.mgp-g.on { background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 16%, transparent), rgba(255, 240, 210, .02)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 50%, transparent); }
.mgp-gp { flex: none; width: 40px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.mgp-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mgp-gt b { font: 700 13px/1.1 var(--fs); color: #ece2cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-g.on .mgp-gt b { color: color-mix(in srgb, var(--gc) 45%, #fff3d6); }
.mgp-gt small { font: 400 10px/1.1 var(--fb); color: #8a8278; }
.mgp-pp { display: flex; gap: 3px; }
.mgp-pp i { min-width: 17px; height: 13px; padding: 0 3px; display: grid; place-items: center; border-radius: 3px; font: 700 8px/1 var(--fs); font-style: normal; color: #6a635b; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .06); }
.mgp-pp i.on { color: #1a140c; background: var(--gc); box-shadow: none; }
.mgp-gn { flex: none; display: flex; align-items: center; gap: 2px; }
.mgp-gn img { width: 30px; height: 30px; opacity: .45; filter: grayscale(.6); }
.mgp-g.has .mgp-gn img { opacity: 1; filter: none; }
.mgp-gn b { min-width: 14px; font: 700 15px/1 var(--fn); color: #6f685f; }
.mgp-g.has .mgp-gn b { color: #f3e6c4; }
.mgp-how { flex: none; margin: 0; display: flex; gap: 8px; padding: 9px 10px; border-radius: 10px; font: 400 11px/1.45 var(--fb); color: #948b80; background: rgba(0, 0, 0, .18); }
.mgp-how .ic { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #b39a64; }
.mgp-how b { color: #d9c89c; font-weight: 600; }

/* seçili oyun */
.mgp-hd { position: relative; flex: none; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 10px 14px 10px 10px; border-radius: 11px; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, rgba(10, 9, 8, .55), rgba(10, 9, 8, .2)); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .06); }
.mgp-hd::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--gc) 22%, transparent), transparent 70%); }
.mgp-hart { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 6px 14px rgba(0, 0, 0, .45); }
.mgp-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mgp-ht small { font: 600 9.5px/1 var(--fs); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--gc) 70%, #d8cbb0); }
.mgp-ht b { font: 700 22px/1.1 var(--fs); color: #f4e9d1; }
.mgp-ht em { font: italic 400 12px/1.35 var(--fb); color: #b0a697; }
.mgp-tk { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mgp-tk img { width: 130px; height: 52px; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .55)); transform: rotate(-4deg); }
.mgp-tk b { font: 700 16px/1 var(--fn); color: #f3e6c4; }
.mgp-pc { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.mgp-pc > small, .mgp-sec small { font: 600 9.5px/1 var(--fs); letter-spacing: .14em; text-transform: uppercase; color: #8f8577; }
.mgp-pc > span { display: flex; align-items: center; gap: 5px; opacity: .45; }
.mgp-pc > span.on { opacity: 1; }
.mgp-pc > span i { --w: 20px; position: relative; width: var(--w); height: 32px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.mgp-pc > span i img { position: absolute; top: 0; left: calc(var(--k) * var(--w) * -1); width: calc(var(--w) * 4); height: 32px; max-width: none; }
.mgp-pc > span:not(.on) i img { filter: grayscale(.9); }
.mgp-pc > span b { font: 600 12px/1 var(--fn); color: #e7dcc4; }
.mgp-lk { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; cursor: pointer; font: 500 11px/1 var(--fb); color: #d7c9a6;
  background: rgba(255, 240, 210, .05); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .1); transition: background .2s; }
.mgp-lk:hover { background: rgba(255, 240, 210, .09); } .mgp-lk .ic { width: 13px; height: 13px; }
.mgp-sec { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 2px 2px 0; }
.mgp-sec em { font: italic 400 10.5px/1.3 var(--fb); color: #7f776d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-ns { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(34px, calc((100% - 24px) / 5), 50px); gap: 6px; align-content: start; }
.mgp-n { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 5px; border: 0; border-radius: 9px; cursor: pointer; text-align: left; color: inherit;
  background: rgba(255, 240, 210, .03); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .06); transition: background .2s, box-shadow .2s; }
.mgp-n:hover:not(:disabled) { background: rgba(255, 240, 210, .06); }
.mgp-n.on { background: color-mix(in srgb, var(--gc) 14%, rgba(255, 240, 210, .02)); box-shadow: inset 0 0 0 1.5px var(--gc), 0 0 14px -6px var(--gc); }
.mgp-n.off { cursor: default; opacity: .38; }
.mgp-nt { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; font: 700 10.5px/1 var(--fs); font-style: normal; color: #f2e6c8;
  background: linear-gradient(180deg, #3a332b, #25201b); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--qc) 60%, transparent); }
.mgp-n > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mgp-n b { font: 600 11.5px/1.1 var(--fb); color: #e4dac6; }
.mgp-n small { display: flex; align-items: center; gap: 4px; font: 400 10px/1.1 var(--fb); color: #8f877c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-n small .q { width: 6px; height: 6px; border-radius: 1.5px; transform: rotate(45deg); background: var(--qc); }
.mgp-n em { position: absolute; right: 7px; top: 50%; translate: 0 -50%; color: #86b08c; }
.mgp-n em .ic { width: 12px; height: 12px; }
.mgp-empty { grid-column: 1 / -1; margin: 0; padding: 18px; text-align: center; font: italic 400 12px/1.4 var(--fb); color: #8a8278; }
.mgp-ft { flex: none; display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 236, 200, .06); }
.mgp-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mgp-sum b { font: 700 14px/1.15 var(--fs); color: #efe4cb; }
.mgp-sum small { font: 400 11px/1.25 var(--fb); color: #958c80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgp-btn { flex: none; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; color: #1c1408; font-family: var(--fs);
  background: linear-gradient(180deg, #f4d68c, #c79843); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 10px rgba(0, 0, 0, .45); transition: transform .15s, filter .2s; }
.mgp-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.mgp-btn:disabled { cursor: default; opacity: .4; filter: grayscale(.75); }
.mgp-btn.sm { height: 30px; padding: 0 14px; border-radius: 8px; font: 700 11.5px/1 var(--fs); letter-spacing: .06em; text-transform: uppercase; }
.mgp-btn.go { height: 52px; padding: 0 22px 0 16px; border-radius: 12px; }
.mgp-btn.go .ic { width: 20px; height: 20px; stroke-width: 2; }
.mgp-btn.go span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mgp-btn.go b { font: 700 16px/1 var(--fs); letter-spacing: .05em; text-transform: uppercase; }
.mgp-btn.go small { font: 500 10.5px/1 var(--fb); color: rgba(28, 20, 8, .72); }
@media (max-height: 800px) { .mgp-hd { min-height: 76px; } .mgp-hart { width: 58px; height: 58px; } .mgp-ht b { font-size: 19px; } .mgp-tk img { width: 104px; height: 42px; } .mgp-g { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .mgp-ev.on .mgp-evi img { animation: none; } }
