/* Ortak oyun masası (Batak, King, Pişti, Blöf, Texas Poker, Dama, Satranç, Kızma Birader). Kaplama ve ara ekranlar okey.css'ten gelir
   (#okStage, #okWait, #okEnd, #okHand, araçlar); burada kartlar, oyuncu kartları ve oyunlara özel parçalar vardır. */
.masa #okStage { --cw: min(6.4cqw, 13cqh); }

/* ---------------- Kart */
.card { --w: var(--cw); --c: #1d1a17; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.42); border-radius: calc(var(--w) * .09);
  background: linear-gradient(165deg, #fffef9 0%, #fbf6ea 55%, #efe6d1 100%); box-shadow: inset 0 0 0 1px #d9ccae, 0 calc(var(--w) * .05) calc(var(--w) * .12) #0007;
  color: var(--c); user-select: none; transition: transform .15s, box-shadow .15s; }
.card.r { --c: #c8231f; }
.card .ix { position: absolute; left: 5%; top: 4%; display: flex; flex-direction: column; align-items: center; width: 20%; line-height: 1; pointer-events: none; }
.card .ix.b { left: auto; top: auto; right: 5%; bottom: 4%; transform: rotate(180deg); }
.card .ix b { font: 800 calc(var(--w) * .22)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.card .ix svg { width: calc(var(--w) * .17); height: calc(var(--w) * .17); margin-top: calc(var(--w) * .02); }
.card .pip { position: absolute; width: calc(var(--w) * .17); height: calc(var(--w) * .17); transform: translate(-50%, -50%); pointer-events: none; }
.card .pip.dn { transform: translate(-50%, -50%) rotate(180deg); }
.card .ace { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * .46); height: calc(var(--w) * .46); transform: translate(-50%, -50%); pointer-events: none; }
.card .court { position: absolute; inset: 17% 20%; border-radius: calc(var(--w) * .05); border: 1.5px solid #c9a24f; background: linear-gradient(160deg, #f8ecd0, #ead6a6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; box-shadow: inset 0 0 0 calc(var(--w) * .03) #fffaf0; pointer-events: none; }
.card.r .court { background: linear-gradient(160deg, #fbe7df, #f0cdbf); }
.card .court svg.crown { width: 58%; height: auto; }
.card .court i { font: 800 calc(var(--w) * .3)/1 Georgia, serif; font-style: normal; color: var(--c); }
.card .court svg.s { width: 28%; height: auto; }
.card.back { background: #6a1f1a; box-shadow: inset 0 0 0 calc(var(--w) * .05) #f3e6cc, inset 0 0 0 calc(var(--w) * .075) #c9a24f, 0 calc(var(--w) * .05) calc(var(--w) * .12) #0007; overflow: hidden; }
.card.back::before { content: ''; position: absolute; inset: 10%; border-radius: calc(var(--w) * .04);
  background: repeating-linear-gradient(45deg, #fff0 0 calc(var(--w) * .06), #d9a44133 calc(var(--w) * .06) calc(var(--w) * .075)),
              repeating-linear-gradient(-45deg, #fff0 0 calc(var(--w) * .06), #d9a44133 calc(var(--w) * .06) calc(var(--w) * .075)), radial-gradient(circle, #8a2a22, #4a130f); }
.card.back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); border: 2px solid #d9a441; background: #4a130f; box-shadow: 0 0 0 3px #4a130f, 0 0 0 4px #d9a44188; }
.card.sel { transform: translateY(calc(var(--w) * -.24)); box-shadow: inset 0 0 0 1px #d9ccae, 0 0 0 3px #4fc3ff, 0 calc(var(--w) * .2) calc(var(--w) * .3) #000a; }
.card.can { cursor: pointer; box-shadow: inset 0 0 0 1px #d9ccae, 0 0 0 2.5px #f2b544, 0 0 calc(var(--w) * .3) #f2b54499; }
.card.can:hover { transform: translateY(calc(var(--w) * -.12)); }
.card.off { filter: brightness(.62) saturate(.6); }
.card.in { animation: gIn .3s ease-out; }
@keyframes gIn { from { transform: translateY(-12%) scale(1.08); opacity: .4; } }
.si { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; color: #1d1a17; }
.si.r { color: #c8231f; }
.si svg { width: 100%; height: 100%; }

/* ---------------- Oyuncu kartları (ortak OyuncuKarti, tavladaki kartla aynı tasarım)
   Kartların sahnedeki yerleri (oyun çizimi bu alanlara bir şey koymamalı; birimler sahneye göredir):
   Kart oyunları — yatay küçük kart (.row), yaklaşık 19cqw × 11cqh:
     me        sol alt      (sol 1.2cqw, alt 2cqh)
     top       üst orta     (üst 1.2cqh)
     left      sol kenar    (sol 1.2cqw, üst 37cqh)        right     sağ kenar (sağ 1.2cqw, üst 37cqh)
     topleft   (sol 12cqw, üst 13cqh)                       topright  (sağ 12cqw, üst 13cqh)
   Dama / Satranç (body.board-game, iki kişi) — büyük kart, yaklaşık 17cqw × 29cqh, sağ sütunda:
     top (rakip) sağ üst (üst 13cqh) · me sağ alt (alt 2cqh) · aralarında beraberlik / mola düğmeleri (#gSide). Sol sütun oyunundur.
   Kızma Birader — büyük kart, yaklaşık 13cqw × 26cqh, köşelerde: me sağ alt, right sağ üst, top sol üst, left sol alt (alt 12cqh). */
#gSeats { position: absolute; inset: 0; pointer-events: none; z-index: 6; --okart-fs: min(1.22cqw, 2.25cqh); }
#gSeats .okart { position: absolute; pointer-events: auto; margin: 0; }
#gSeats .okart.row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .6em; row-gap: .1em;
  width: max-content; max-width: 16em; padding: .4em 1.1em .4em .4em; }
#gSeats .okart.row .ok-av { grid-row: 1 / span 3; width: 4.2em; height: 4.2em; }
#gSeats .okart.row .ok-plate { grid-column: 2; width: auto; max-width: 11.5em; margin: 0; align-items: flex-start; }
#gSeats .okart.row .ok-plate .plate { width: auto; max-width: 100%; }
#gSeats .okart.row .ok-stat { grid-column: 2; justify-content: flex-start; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
#gSeats .okart.row .ok-foot { grid-column: 2; justify-content: flex-start; min-height: 1.3em; }
#gSeats .okart.row .ok-secs { bottom: -.8em; font-size: .9em; }
#gSeats .okart .ok-stat .kz-dot { width: .9em; height: .9em; margin-right: .2em; }
#gSeats .clk { font: 700 1.1em/1.3 ui-monospace, Consolas, monospace; padding: 0 .45em; border-radius: .4em; background: #0007; color: #f6ead0; }
#gSeats .clk:empty { display: none; }
#gSeats .clk.run { background: #f2b544; color: #2a1606; }
#gSeats .clk.low { background: #c8352b; color: #fff; }
#gSeats .sp-me { left: 1.2cqw; bottom: 2cqh; }
#gSeats .okart.row.sp-me { max-width: 14em; } /* 13 kartlık el sol kenarı ~19cqw: değmesin */
#gSeats .sp-top { left: 0; right: 0; margin-inline: auto; top: .8cqh; }
#gSeats .sp-left { left: 1.2cqw; top: 37cqh; }
#gSeats .sp-right { right: 1.2cqw; top: 37cqh; }
#gSeats .sp-topleft { left: 12cqw; top: 13cqh; }
#gSeats .sp-topright { right: 12cqw; top: 13cqh; }
/* Tahta oyunları: büyük kart, sağ sütun */
.board-game #gSeats { --okart-fs: min(1.5cqw, 2.3cqh); }
.board-game #gSeats .okart { width: 11.5em; }
.board-game #gSeats .ok-stat { flex-wrap: wrap; row-gap: .2em; }
.board-game #gSeats .clk { flex-basis: 100%; max-width: max-content; font-size: 1.55em; }
.board-game #gSeats .sp-me { left: auto; right: 1.5cqw; top: auto; bottom: 2cqh; }
.board-game #gSeats .sp-top { left: auto; right: 1.5cqw; top: 13cqh; margin: 0; }
/* Kızma Birader: kartlar kendi renginin köşesine yakın (ben sağ alt, sağdaki sağ üst, karşıdaki sol üst, soldaki sol alt) */
.kizma #gSeats { --okart-fs: min(1.4cqw, 2cqh); }
.kizma #gSeats .sp-right { left: auto; right: 1.5cqw; top: 13cqh; }
.kizma #gSeats .sp-top { left: 1.5cqw; right: auto; top: 13cqh; margin: 0; }
.kizma #gSeats .sp-left { left: 1.5cqw; right: auto; top: auto; bottom: 12cqh; }


/* ---------------- Masa alanı */
#gBoard { position: absolute; inset: 0; z-index: 3; }
#gBoard > * { position: absolute; }
.g-hand { left: 50%; bottom: 2cqh; transform: translateX(-50%); display: flex; z-index: 5; }
.g-hand .card { --w: min(7.4cqw, 15cqh); margin-left: calc(var(--w) * -.38); }
.g-hand .card:first-child { margin-left: 0; }
.g-hand.wide .card { margin-left: calc(var(--w) * -.18); }
.g-backs { display: flex; z-index: 2; }
.g-backs .card { --w: min(3.4cqw, 7cqh); margin-left: calc(var(--w) * -.7); }
.g-backs .card:first-child { margin-left: 0; }
.g-center { left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 1.2cqw; z-index: 3; }
.g-note { left: 50%; bottom: 25.5cqh; transform: translateX(-50%); font: 600 2.1cqh system-ui, sans-serif; color: #f6ead0; background: #120a05cc; border: 1px solid #6a5034;
  padding: .5cqh 1.4cqw; border-radius: 99px; white-space: nowrap; z-index: 6; }
.g-note:empty { display: none; }
.g-note b { color: #f2b544; }
.g-btns { display: flex; flex-direction: column; gap: 1cqh; right: 1.2cqw; bottom: 2cqh; z-index: 7; }
.g-btns.row { flex-direction: row; }
.g-btns button { min-width: 10cqw; height: 6.6cqh; padding: 0 1.2cqw; border-radius: .9cqw; font: 700 2.4cqh/1 Georgia, serif; color: #f6ead0; cursor: pointer;
  background: linear-gradient(#4a2a1a, #2c170e); border: 1px solid #8a6a3c; }
.g-btns button.gold { background: linear-gradient(#ffd77a, #eaa93d 55%, #d48d22); color: #2a1606; border-color: #ffe2a0; }
.g-btns button.red { background: linear-gradient(#c8352b, #8d1a14); border-color: #e2685e; }
.g-btns button:disabled { opacity: .45; cursor: default; }
.g-panel { left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 8; background: #1a0d09f0; border: 1px solid #8a6a3c; border-radius: 1.4cqw; padding: 2cqh 2cqw; text-align: center;
  box-shadow: 0 2cqh 5cqh #000b; color: #f3e6cc; font: 400 2.2cqh system-ui, sans-serif; }
.g-panel h4 { margin: 0 0 1.4cqh; font: 700 2.8cqh Georgia, serif; color: #f6ead0; }
.g-panel .opts { display: flex; flex-wrap: wrap; gap: .8cqw; justify-content: center; max-width: 60cqw; }
.g-panel .opts button { min-width: 6cqw; height: 6.4cqh; padding: 0 1cqw; border-radius: .8cqw; font: 700 2.6cqh Georgia, serif; cursor: pointer; color: #f6ead0;
  background: linear-gradient(#4a2a1a, #2c170e); border: 1px solid #8a6a3c; }
.g-panel .opts button.gold { background: linear-gradient(#ffd77a, #eaa93d 55%, #d48d22); color: #2a1606; border-color: #ffe2a0; }
.g-panel .opts button .si { width: 1.2em; height: 1.2em; }
.g-tag { padding: .3cqh .9cqw; border-radius: 99px; background: #0009; border: 1px solid #6a5034; font: 700 2cqh Georgia, serif; color: #f6ead0; white-space: nowrap; z-index: 4; }
.g-tag b { color: #f2b544; }
.g-lbl { font: 600 1.8cqh system-ui, sans-serif; color: #d9c8a6; text-align: center; white-space: nowrap; }

/* ---------------- Fiş */
.chipstack { position: relative; display: inline-block; width: var(--w); height: calc(var(--w) + 16px); vertical-align: middle; }
.chipstack .chip { --c: #c8231f; position: absolute; left: 0; width: var(--w); height: var(--w); border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 50%, #fff 50% 54%, var(--c) 54% 100%); box-shadow: 0 2px 0 #0006, 0 3px 5px #0007; }
.chipstack .chip::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(#fff 0 10deg, transparent 10deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 64% 100%); mask: radial-gradient(circle, transparent 0 64%, #000 64% 100%); opacity: .85; }

/* ---------------- Tahta (dama, satranç) */
.g-board { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(86cqh, 56cqw); height: min(86cqh, 56cqw); display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr);
  border: 1.2cqh solid #3a2416; border-radius: 1cqh; box-shadow: 0 2cqh 4cqh #000a, inset 0 0 0 1px #8a6a3c; z-index: 2; }
.g-board .sq { position: relative; display: flex; align-items: center; justify-content: center; }
.g-board .sq.l { background: #ecd9b6; } .g-board .sq.d { background: #8b5a3c; }
.dama .g-board .sq.l { background: #e6cc98; } .dama .g-board .sq.d { background: #c9a46a; }
.g-board .sq.last { box-shadow: inset 0 0 0 100px #f2b54440; }
.g-board .sq.sel { box-shadow: inset 0 0 0 .5cqh #4fc3ff; }
.g-board .sq.can { cursor: pointer; }
.g-board .sq.dot::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: #3fd06aaa; pointer-events: none; }
.g-board .sq.hit::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: .5cqh solid #3fd06aaa; pointer-events: none; }
.g-board .sq.check { background: radial-gradient(circle, #e2483b 0 35%, transparent 70%), var(--bg, #8b5a3c); }
.g-board .co { position: absolute; font: 700 1.5cqh system-ui; color: #0007; pointer-events: none; }
.g-board .co.f { right: 6%; bottom: 3%; } .g-board .co.r { left: 6%; top: 3%; }
.g-board .pc { width: 88%; height: 88%; pointer-events: none; }
.g-board .pc svg { width: 100%; height: 100%; filter: drop-shadow(0 .3cqh .3cqh #0009); }
.g-board .ck { width: 82%; height: 82%; background: center / contain no-repeat; filter: drop-shadow(0 .4cqh .3cqh #0009); pointer-events: none; position: relative; }
.ck.w { background-image: url(/assets/tas-beyaz.webp); } .ck.b { background-image: url(/assets/tas-siyah.webp); }
.ck.k::after { content: ''; position: absolute; inset: 26%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M3 26 L6 8 L14 17 L20 3 L26 17 L34 8 L37 26Z' fill='%23e9b54a' stroke='%237a4b10' stroke-width='2'/%3E%3C/svg%3E"); }
.g-taken { display: flex; flex-wrap: wrap; gap: .3cqw; max-width: 22cqw; z-index: 3; }
.g-taken .pc { width: 3.8cqh; height: 3.8cqh; } .g-taken .pc svg { width: 100%; height: 100%; }
.g-taken .ck { width: 3.4cqh; height: 3.4cqh; background: center / contain no-repeat; }
.g-moves { right: 1.5cqw; top: 26cqh; width: 20cqw; max-height: 30cqh; overflow: auto; font: 500 1.9cqh/1.6 ui-monospace, Consolas, monospace; color: #e9dbbd; z-index: 3;
  background: #120a05aa; border: 1px solid #6a5034; border-radius: .8cqw; padding: .8cqh 1cqw; }
.g-moves:empty { display: none; }
.g-moves i { font-style: normal; color: #b39c7d; margin-right: .5cqw; }

/* ---------------- Lobi */
.masa .ok-art .card { --w: clamp(34px, 4.4vw, 64px); }
.masa .ok-art { display: flex; align-items: center; justify-content: center; }
.masa .ok-art .fan { position: relative; width: 70%; height: 70%; }
.masa .ok-art .fan .card { position: absolute; left: 40%; top: 20%; transform-origin: 50% 120%; }
.masa .ok-top .card { --w: 30px; }
.masa .ok-top { display: flex; justify-content: center; gap: 0; }
.masa .ok-top .card:nth-child(1) { transform: rotate(-12deg) translateY(4px); }
.masa .ok-top .card:nth-child(3) { transform: rotate(12deg) translateY(4px); }

.masa #okStage .tools button[hidden] { display: none; }

/* King: seçim düğmeleri */
.g-panel p { margin: 0 0 1.2cqh; font: 400 2cqh system-ui, sans-serif; color: #d9c8a6; }
.g-panel .opts button:disabled { opacity: .32; cursor: default; }
.g-panel .opts button small { font: 400 1.6cqh system-ui, sans-serif; opacity: .75; margin-left: .3cqw; }
.g-tag small { font: 400 1.7cqh system-ui, sans-serif; color: #d9c8a6; }

/* Kızma Birader */
.kz-board { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90cqh, 58cqw); height: min(90cqh, 58cqw); filter: drop-shadow(0 1.5cqh 2.5cqh #000a); }
.kz-board svg { width: 100%; height: 100%; display: block; }
.kz-pawn { transition: transform .35s ease; }
.kz-pawn.can, .kz-tgt, .kz-die.can { cursor: pointer; }
.kz-pawn .ring { animation: kzPulse 1s ease-in-out infinite; }
.kz-die.can rect { animation: kzGlow 1.1s ease-in-out infinite; }
.kz-die.rolled { animation: kzRoll .45s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes kzPulse { 50% { opacity: .25; } }
@keyframes kzGlow { 50% { stroke-width: 2px; } }
@keyframes kzRoll { 0% { rotate: -200deg; scale: .6; } 100% { rotate: 0deg; scale: 1; } }
.kz-dot { display: inline-block; width: 1.4cqh; height: 1.4cqh; border-radius: 50%; margin-right: .4cqw; vertical-align: -.1cqh; border: 1px solid #0008; }

/* ================================================================ Masa kabuğu: araçlar, teklif / mola pencereleri, el ve maç sonu */
/* Araç düğmeleri (sağ üst): telefonda da üst ortadaki oyuncu kartına değmeyecek kadar küçük */
.masa #okStage .tools { gap: min(.8cqw, 1.4cqh); }
.masa #okStage .tools button { width: min(8cqh, 5.2cqw); height: min(8cqh, 5.2cqw); font-size: min(3.8cqh, 2.4cqw); }
.masa #okStage .tools button svg { width: 55%; height: 55%; }
.masa #okStage .tools .resign { color: #f3d48c; }

/* Masa bilgisi: giriş ve ödül */
#okStage .hud .hmoney { display: flex; gap: .8cqw; }
#okStage .hud .hmoney b { color: #f6ead0; }
#okStage .hud .hmoney .prize b { color: #ffd77a; }
#okStage .hud.big { gap: .6cqh; padding: 1.2cqh 1.3cqw; border-radius: 1.2cqh; border: 1.5px solid #a87d3e; background: #120a05e6; font: 600 2.5cqh/1.25 system-ui, sans-serif; max-width: 24cqw; }
#okStage .hud.big .hmoney { flex-direction: column; gap: .3cqh; }
#okStage .hud.big .hmoney b { font: 700 3.4cqh/1.1 Georgia, serif; }
#okStage .hud.big .hmoney .prize b { font-size: 4.4cqh; text-shadow: 0 0 1.4cqh #f2b54466; }

/* Oyunların kendi beraberlik / pes et düğmeleri yerine kabuğun düğmeleri kullanılır */
#gBoard .g-btns [data-do="offer"], #gBoard .g-btns [data-do="resign"] { display: none; }

/* Tahta oyunları: beraberlik ve mola teklifi — sağ sütunda iki oyuncu kartının arasında (sol sütun oyunun kendi panellerinindir) */
#gSide { position: absolute; right: 1.5cqw; top: 55.5%; transform: translateY(-50%); z-index: 7; display: flex; flex-direction: column; gap: 1.2cqh; width: min(17.25cqw, 26.5cqh); }
#gSide[hidden] { display: none; }
#gSide button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 7cqh; padding: .5cqh .8cqw; border-radius: 1.2cqh;
  font: 700 min(2.5cqh, 1.45cqw)/1.15 Georgia, serif; color: #f6ead0; background: linear-gradient(#4a2a1a, #2c170e); border: 1.5px solid #8a6a3c; box-shadow: 0 .6cqh 1.4cqh #0008; }
#gSide button:not(:disabled):hover { border-color: #f2b544; }
#gSide button:disabled { opacity: .55; cursor: default; filter: grayscale(.4); }
#gSide button small { font: 600 1.9cqh/1.3 system-ui, sans-serif; color: #ffb09f; }

/* Teklif penceresi (site pencerelerine benzer, sahnenin içinde) */
#gDlg { position: absolute; inset: 0; z-index: 46; display: flex; align-items: center; justify-content: center; background: #0d0805b0; animation: dlgIn .16s ease-out; }
#gDlg[hidden] { display: none; }
#gDlg .dlg { width: min(62cqw, 120cqh); max-height: 92cqh; padding: 3.4cqh 3cqw 3cqh; border-radius: 2cqh; font-size: clamp(13px, 3.3cqh, 22px); }
#gDlg .dlg h3 { margin-bottom: 1.4cqh; font-size: clamp(18px, 5.4cqh, 34px); }
#gDlg .dlg p { margin-bottom: 2.6cqh; }
#gDlg .dlg p b { color: #ffd77a; }
#gDlg .dlg-btns { gap: 2cqw; }
#gDlg .dlg-btns button { min-width: 18cqw; min-height: clamp(40px, 10cqh, 64px); font-size: clamp(14px, 3.4cqh, 22px); border-radius: 1.4cqh; }
#gDlg .gico { font-size: clamp(30px, 10cqh, 72px); line-height: 1; margin-bottom: 1cqh; animation: gIco 1.1s ease-in-out infinite alternate; }
@keyframes gIco { to { transform: scale(1.12) rotate(-6deg); } }
#gDlg .gmin { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin: 0 0 3cqh; }
#gDlg .gmin button { width: clamp(44px, 11cqh, 70px); height: clamp(44px, 11cqh, 70px); border-radius: 50%; border: 2px solid #c99a4f; background: #1c120a; color: #ffd77a; font: 700 clamp(22px, 6cqh, 40px)/1 system-ui; }
#gDlg .gmin button:disabled { opacity: .35; }
#gDlg .gmin b { min-width: 2ch; font: 700 clamp(34px, 11cqh, 72px)/1 Georgia, serif; color: #ffd77a; }
#gDlg .gmin span { color: #d9c8a6; }
/* Teklifi yapana küçük bilgi */
#gDlg.gsent { inset: auto; left: 50%; top: 13cqh; transform: translateX(-50%); gap: 1cqw; padding: 1.2cqh 2.2cqw; border-radius: 99px; background: #1a0d09f0; border: 1.5px solid #f2b544;
  font: 600 2.6cqh system-ui, sans-serif; color: #f3e6cc; white-space: nowrap; box-shadow: 0 1cqh 3cqh #000a; animation: none; }
#gDlg.gsent .spin { width: 2.6cqh; height: 2.6cqh; border-radius: 50%; border: 3px solid #f2b54455; border-top-color: #f2b544; animation: okSpin 1s linear infinite; }

/* Mola sürüyor */
#gMola { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; display: flex; align-items: center; gap: 2cqw; padding: 2.4cqh 2.6cqw;
  border-radius: 2cqh; background: #1a0d09f2; border: 2px solid #f2b544; box-shadow: 0 0 0 .6cqh #0006, 0 2cqh 5cqh #000c; color: #f6ead0; white-space: nowrap; }
#gMola[hidden] { display: none; }
#gMola .mico { font-size: 9cqh; line-height: 1; animation: gIco 1.4s ease-in-out infinite alternate; }
#gMola .mtxt b { display: block; font: 700 5.4cqh/1.1 Georgia, serif; color: #ffd77a; }
#gMola .mtxt small { display: block; font: 500 2.4cqh system-ui, sans-serif; color: #d9c8a6; }
#gMola button { height: 8.6cqh; padding: 0 2cqw; border-radius: 1.2cqh; font: 700 3cqh/1 Georgia, serif; color: #2a1606; background: linear-gradient(#ffd77a, #eaa93d 55%, #d48d22); border: 1.5px solid #ffe2a0; }

/* Başlatma geri sayımı */
#okWait .wcount { position: relative; width: 22cqh; height: 22cqh; margin: -1cqh auto 3cqh; }
#okWait .wcount[hidden] { display: none; }
#okWait .wcount svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#okWait .wcount circle { fill: #120a05aa; stroke: #4a3018; stroke-width: 7; }
#okWait .wcount circle.arc { fill: none; stroke: #f2b544; stroke-linecap: round; filter: drop-shadow(0 0 4px #f2b544); }
#okWait .wcount b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12cqh/1 Georgia, serif; color: #ffd77a; text-shadow: 0 0 2cqh #ffb53a99, 0 .6cqh 0 #7a4210; }
#okWait .wcount.pop b { animation: wPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes wPop { from { transform: scale(1.7); opacity: .2; } }
#okWait button.abort { background: linear-gradient(#ff8a7a, #d0402c 55%, #a8261a); border-color: #ffb09f; color: #fff; }
#okWait .wseat.host small { color: #f2b544; }

/* El sonu penceresi */
#okHand { position: absolute; inset: 0; z-index: 48; display: none; align-items: center; justify-content: center; background: #0b0503b8; backdrop-filter: blur(2px); }
#okHand.on { display: flex; }
#okHand .hb { width: min(76cqw, 150cqh); max-height: 92cqh; overflow-y: auto; padding: 3cqh 3cqw; border-radius: 1.6cqw; text-align: center; box-sizing: border-box;
  background: radial-gradient(120% 60% at 50% 0%, #4a1c16 0%, #2a120d 60%, #1b0b08 100%); border: 2px solid #c79a4a; box-shadow: 0 3cqh 6cqh #000c; }
#okHand h2 { margin: 0 0 .6cqh; font: 700 6.4cqh/1.1 Georgia, serif; color: #f6ead0; }
#okHand #okHandText { font-size: 2.8cqh; color: #e9dbbd; }
#okHand #okHandText p { margin: 1.4cqh 0 0; }
#okHand .hnext { font-size: 3cqh; color: #f2b544; margin-top: 2cqh; }
#okHand .hnext b { display: inline-block; min-width: 2ch; font: 700 4cqh Georgia, serif; animation: wPop .4s; }
#okHand button { margin-top: 1.6cqh; height: 8cqh; padding: 0 3cqw; border-radius: 1cqw; font: 700 3cqh/1 Georgia, serif; background: linear-gradient(#24170d, #1a1009); border: 2px solid #9a7440; color: #f3e6cc; }
#okHand button[hidden] { display: none; }
#okHand.hpop.on .hb { animation: hIn .5s cubic-bezier(.2, 1.5, .4, 1); }
#okHand.hpop.mine .hb { border-color: #ffd34d; box-shadow: 0 0 0 .5cqh #ffd34d33, 0 0 5cqh #ffb53a88, 0 3cqh 6cqh #000c; }
#okHand.hpop.mine h2 { color: #ffd34d; text-shadow: 0 0 2cqh #ffb53a, 0 .5cqh 0 #7a4210; }
@keyframes hIn { from { transform: scale(.6) translateY(6cqh); opacity: 0; } }
#okHand .hsub { font: 600 2.6cqh system-ui, sans-serif; color: #d9c8a6; }
#okHand .hrows { display: flex; flex-direction: column; gap: 1cqh; margin: 2cqh auto 0; max-width: 110cqh; }
#okHand .hrow { display: grid; grid-template-columns: 6.4cqh minmax(0, 1fr) auto 10cqh; align-items: center; gap: 1.4cqw; padding: .7cqh 1.4cqw .7cqh .7cqh; border-radius: 99px;
  background: #0006; border: 1px solid #4a3220; opacity: 0; animation: hRow .45s var(--d, 0s) ease-out forwards; }
#okHand .hrow.win { border-color: #f2b544; background: linear-gradient(90deg, #f2b54438, #0006 70%); }
#okHand .hrow.me b { color: #ffd77a; }
#okHand .hav { width: 6.4cqh; height: 6.4cqh; border-radius: 50%; overflow: hidden; display: grid; }
#okHand .hav .av { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.6cqh; }
#okHand .hrow b { text-align: left; font: 700 3cqh/1.2 Georgia, serif; color: #f6ead0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#okHand .hpt { font: 800 3.6cqh/1 Georgia, serif; color: #e9dbbd; }
#okHand .hpt.pos { color: #7fd38a; } #okHand .hpt.neg { color: #ff8a7a; }
#okHand .htot { font: 600 2.6cqh system-ui, sans-serif; color: #d9c8a6; text-align: right; }
#okHand .htot::before { content: 'Toplam '; font-size: .8em; opacity: .7; }
@keyframes hRow { from { opacity: 0; transform: translateX(-4cqw); } to { opacity: 1; transform: none; } }

/* Puan tablosu */
.stable { margin: 2cqh auto 0; border-collapse: collapse; font: 500 2.5cqh system-ui, sans-serif; color: #f3e6cc; }
.stable th, .stable td { padding: .6cqh 1.1cqw; border-bottom: 1px solid #3e2c1a; text-align: center; white-space: nowrap; }
.stable th { font-weight: 600; color: #bba57f; }
.stable td:first-child { text-align: left; max-width: 22cqw; overflow: hidden; text-overflow: ellipsis; }
.stable tr.lead td { color: #7fd38a; }

/* Maç sonu: büyük kazandın / kaybettin; oyuncu kapatana kadar açık kalır */
#okEnd .eb { position: relative; animation: hIn .55s cubic-bezier(.2, 1.4, .4, 1); }
#okEnd .eemb { width: 17cqh; height: 17cqh; margin: -1cqh auto .6cqh; display: grid; place-items: center; font-size: 11cqh; line-height: 1; }
#okEnd .eemb svg { width: 100%; height: 100%; filter: drop-shadow(0 0 2.4cqh #ffb53a); animation: eTro 1.3s ease-in-out infinite alternate; }
@keyframes eTro { to { transform: translateY(-1cqh) scale(1.06); } }
#okEnd .eb.win { border-color: #ffd34d; box-shadow: 0 0 0 .5cqh #ffd34d33, 0 0 6cqh #ffb53a77, 0 3cqh 6cqh #000c; }
#okEnd .eb.win h2 { font-size: 10cqh; color: #ffd34d; text-shadow: 0 0 2.4cqh #ffb53a, 0 .7cqh 0 #7a4210; }
#okEnd .eb.lose { border-color: #c0503f; }
#okEnd .eb.lose h2 { font-size: 9cqh; color: #ff8a7a; text-shadow: 0 .6cqh 0 #5a0a04; }
#okEnd .eb.lose .eemb { filter: grayscale(.6); opacity: .8; }
#okEnd .eb.draw h2 { font-size: 9cqh; color: #f3e6cc; }
#okEnd .ehand .stable { margin-top: 0; }
#okEnd #okWatch::before { content: '▶ '; color: #f2b544; }

/* Lobide "Demo oyna" yalnızca giriş yapmamış ziyaretçilere görünür */
.masa #lvBot[hidden] { display: none; }
