/* Okey: lobi süsü ve oyun masası. Masa her zaman yataydır; ölçüler sahneye (cqw/cqh) bağlıdır.
   Taşlar CSS ile çizilir: fildişi zemin, kalın rakam, altında renk noktası; sahte okey kırmızı yonca. */
:root { --ok-red: #c8231f; --ok-black: #1d1b18; --ok-blue: #1d58b4; --ok-yellow: #e39400; --ok-gold: #d9a441; }

/* ------------------------------------------------------------------ Taş */
.tile {
  --w: 50px; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.38); border-radius: calc(var(--w) * .14);
  background: linear-gradient(170deg, #fffef9 0%, #fbf5e7 45%, #efe4cb 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #e2d4b2, 0 calc(var(--w) * .07) 0 #c9b68c, 0 calc(var(--w) * .07 + 1px) 0 #8e7a52, 0 calc(var(--w) * .1) calc(var(--w) * .16) #0008;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: calc(var(--w) * .2);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.tile b { font: 900 calc(var(--w) * .62)/1 'Arial Black', 'Segoe UI', sans-serif; letter-spacing: -.04em; color: var(--c); text-shadow: 0 1px 0 #ffffffaa; pointer-events: none; }
.tile i { margin-top: calc(var(--w) * .12); width: calc(var(--w) * .17); height: calc(var(--w) * .17); border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 1px #0005; pointer-events: none; }
.tile.tc0 { --c: var(--ok-red); } .tile.tc1 { --c: var(--ok-black); } .tile.tc2 { --c: var(--ok-blue); } .tile.tc3 { --c: var(--ok-yellow); }
.tile.fake { justify-content: center; padding: 0; }
.tile.fake svg { width: 62%; height: auto; pointer-events: none; }
.tile.back { background: linear-gradient(170deg, #f9f2e2, #eadcbc); }
.tile.back::after { content: ''; position: absolute; inset: 18% 22%; border-radius: 4px; border: 1.5px solid #d8c69e; background: repeating-linear-gradient(45deg, transparent 0 4px, #e3d2ad66 4px 5px); }
.tile.joker { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #e2d4b2, 0 calc(var(--w) * .07) 0 #c9b68c, 0 0 0 calc(var(--w) * .05) var(--ok-gold), 0 0 calc(var(--w) * .28) #f2b544aa, 0 calc(var(--w) * .1) calc(var(--w) * .16) #0008; }
.tile.joker::before { content: 'OKEY'; position: absolute; top: calc(var(--w) * -.2); left: 50%; transform: translateX(-50%); padding: 0 calc(var(--w) * .1); border-radius: 99px;
  background: linear-gradient(#ffd77a, #e09a2a); color: #2a1606; font: 800 calc(var(--w) * .18)/1.4 system-ui, sans-serif; letter-spacing: .05em; z-index: 2; }
.tile.sel { transform: translateY(calc(var(--w) * -.2)); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #e2d4b2, 0 calc(var(--w) * .07) 0 #c9b68c, 0 0 0 calc(var(--w) * .05) #4fc3ff, 0 calc(var(--w) * .3) calc(var(--w) * .36) #000a; }
.tile.new::after { content: ''; position: absolute; right: calc(var(--w) * -.08); top: calc(var(--w) * -.08); width: calc(var(--w) * .24); height: calc(var(--w) * .24); border-radius: 50%; background: #3fd06a; border: 2px solid #fff; }
/* Ters çevrilmiş taş: yüzü gizlenir, sırtı görünür (sağ tık / basılı tut) */
.tile.flip { background: linear-gradient(170deg, #f9f2e2, #eadcbc); }
.tile.flip > * { visibility: hidden; }
.tile.flip::after { content: ''; position: absolute; inset: 18% 22%; border-radius: 4px; border: 1.5px solid #d8c69e; background: repeating-linear-gradient(45deg, transparent 0 4px, #e3d2ad66 4px 5px); }
.tile.flip.joker::before { display: none; }
.tile.win { box-shadow: inset 0 1px 0 #fff, 0 0 0 calc(var(--w) * .05) #3fd06a, 0 0 calc(var(--w) * .3) #3fd06a99; }

/* ------------------------------------------------------------------ Lobi süsü: ıstakada taşlar */
.okey-page .site #tavlaLobby .ok-hero {
  background:
    radial-gradient(55% 75% at 78% 45%, #5c1e1a 0%, #3a1410 45%, transparent 75%),
    linear-gradient(90deg, #1b120b 0%, #1b120b 35%, #1b120b00 70%),
    linear-gradient(180deg, transparent 70%, var(--s-bg, #17100a) 100%),
    #1b120b;
}
.ok-art { position: absolute; right: 1%; top: 54%; width: 42%; height: 78%; transform: translateY(-50%); pointer-events: none; perspective: 900px; z-index: 0; }
.okey-page .site #tavlaLobby .ok-hero > :not(.ok-art) { position: relative; z-index: 1; }
.ok-art .stand { position: absolute; left: 4%; right: 2%; bottom: 10%; transform: rotateX(18deg) rotateZ(-4deg); transform-origin: 50% 100%;
  padding: 3% 4% 0; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #6e3f1d, #4a2810); box-shadow: inset 0 1px 0 #b77a45, 0 30px 40px #000c; }
.ok-art .row { display: flex; gap: 1.2%; padding-bottom: 3.5%; position: relative; }
.ok-art .row::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: 0; height: 18%; border-radius: 3px; background: linear-gradient(180deg, #a3683a, #7c4a23 40%, #5c3415); box-shadow: inset 0 1px 0 #d39a63; }
.ok-art .row .tile { --w: clamp(26px, 3.1vw, 48px); margin-bottom: 4%; z-index: 1; }
.ok-art .row .gap { width: clamp(16px, 2vw, 30px); flex: none; }
.ok-art .loose { position: absolute; }
.ok-art .loose .tile { --w: clamp(26px, 3vw, 46px); }
@media (max-width: 1400px) { .ok-art { width: 40%; right: -2%; } }
@media (max-width: 1100px) { .ok-art { width: 58%; right: -12%; opacity: .5; } }
@media (max-width: 700px) {
  .okey-page .site #tavlaLobby .ok-hero { background: linear-gradient(180deg, #3a1410 0%, #1b120b 70%, var(--s-bg, #17100a) 100%); }
  .ok-art { width: 100%; right: -30%; opacity: .35; }
}
.okey-page .site .lbtn svg { flex: none; }
.ok-top { height: 64px; display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.ok-top .tile { --w: 34px; }
.ok-top .tile:nth-child(1) { transform: rotate(-12deg) translateY(4px); }
.ok-top .tile:nth-child(3) { transform: rotate(12deg) translateY(4px); }

/* Lobi kartları: 4 koltuk */
.okey-page .site #tavlaLobby .ok-grid .trow { gap: 6px; justify-content: space-between; }
.okey-page .site #tavlaLobby .ok-grid .seats4 { display: flex; gap: 6px; align-items: center; min-width: 0; flex: 1; }
.okey-page .site #tavlaLobby .ok-grid .ring, .okey-page .site #tavlaLobby .ok-grid .tseat { width: 44px; height: 44px; }
.okey-page .site #tavlaLobby .ok-grid .ring .av { font-size: 22px; }
.okey-page .site #tavlaLobby .ok-grid .tseat svg { width: 22px; height: 22px; }
.okey-page .site #tavlaLobby .ok-grid .tcount { font: 400 15px/1.2 Georgia, serif; color: #d9c8a6; padding: 0 0 12px; }
.okey-page .site #tavlaLobby .ok-grid .tcount b { color: #f3e6cc; }

/* ------------------------------------------------------------------ Sahne */
#okStage { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; container-type: size; display: none; overflow: hidden; background: #1b0b08; color: #f3e6cc;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; user-select: none; -webkit-user-select: none; }
body.playing #okStage { display: block; }
@media (orientation: portrait) {
  #okStage { width: 100dvh; height: 100vw; transform-origin: top left; transform: translateX(100vw) rotate(90deg); }
}
#okStage button { font: inherit; cursor: pointer; }
#okStage .felt { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 44%, #6a2a22 0%, #4c1c17 55%, #2c0f0c 100%);
  box-shadow: inset 0 0 0 min(1.4cqw, 2.6cqh) #4a2a12, inset 0 0 0 min(1.65cqw, 3cqh) #8a5a2c, inset 0 0 6cqh 2cqh #000a; }
#okStage .felt::after { content: ''; position: absolute; inset: 0; opacity: .1; background: repeating-radial-gradient(circle at 30% 40%, #fff0 0 2px, #0003 2px 3px); }

/* Oyuncu kartları: ortak kart (ortak/ortak.css .okart). Yazı boyu sahneye göre ölçeklenir; telefonda yatay
   360×640'ta da ıstakayı ve atılan taşları kapatmaz. Rakipler dikey kart, kendi kartım ıstakanın üstünde yatay kart. */
#okStage { --okart-fs: clamp(7px, min(2.4cqh, 1.3cqw), 15px); --rtw: min(4.45cqw, 9.3cqh); }
#okStage .seat { position: absolute; z-index: 5; }
#okStage .seat:empty { display: none; }
#okStage .okart { margin: 0; }
#okStage .okart .ok-stat { flex-wrap: wrap; font-size: 1em; gap: .2em .45em; }
#okStage .okart .ok-stat .sep { width: .25em; height: .25em; border-radius: 50%; background: #c9974a; flex: none; }
#okStage .okart .ok-stat .bal { color: #f2d58a; }
#okStage .okart .ok-stat .pts { color: #ffe7a8; }
#plTop { top: 1cqh; left: 50%; transform: translateX(-50%); }
#plLeft { left: 1.2cqw; top: 13cqh; }
#plRight { right: 1.2cqw; top: 13cqh; }
/* Kendi kartım: ıstakanın hemen üstünde, ortada (ıstaka yüksekliği = 2.76 × taş + 6.4cqh, alttan 1.6cqh) */
#plMe { left: 50%; transform: translateX(-50%); bottom: calc(var(--rtw) * 2.76 + 9.4cqh); }
#plMe .okart.row { max-width: 34em; padding-right: 1em; }
#plMe .okart.row .ok-plate { max-width: 13em; }
#plMe .okart.row .ok-stat { flex-wrap: nowrap; white-space: nowrap; }

/* Orta: deste ve gösterge */
#okStage .center { position: absolute; left: 50%; top: 33cqh; transform: translateX(-50%); display: flex; gap: 3cqw; align-items: flex-end; z-index: 3; }
#okStage .pile { position: relative; width: calc(var(--tw) * 1.05); height: calc(var(--tw) * 1.5); padding: 0; border: 0; background: none; }
#okStage .pile .tile { --w: var(--tw); position: absolute; left: 0; bottom: 0; }
#okStage .pile .tile:nth-child(2) { left: .2cqw; bottom: .6cqh; }
#okStage .pile .tile:nth-child(3) { left: .4cqw; bottom: 1.2cqh; }
#okStage .pile .cnt { position: absolute; right: -1.6cqw; bottom: -1.2cqh; z-index: 3; min-width: 4.4cqw; padding: .3cqh .8cqw; border-radius: 99px; background: #120a05; border: 2px solid var(--ok-gold); color: #f6ead0; font: 700 3cqh/1.2 system-ui; text-align: center; }
#okStage .pile.can .tile:nth-child(3) { box-shadow: inset 0 1px 0 #fff, 0 0 0 .5cqh #4fc3ff, 0 0 3cqh #4fc3ffaa; animation: okPulse 1.2s ease-in-out infinite; }
#okStage .gost { display: flex; flex-direction: column; align-items: center; gap: .6cqh; }
#okStage .gost .tile { --w: var(--tw); }
#okStage .gost small, #okStage .disc small { font-size: 2.3cqh; color: #f0d8c8; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@keyframes okPulse { 50% { transform: translateY(-.6cqh); } }

/* Atılan taşlar */
#okStage { --tw: min(4cqw, 8.4cqh); }
#okStage .disc { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .5cqh; z-index: 3; }
#okStage .disc .spot { position: relative; width: var(--tw); height: calc(var(--tw) * 1.38); border-radius: calc(var(--tw) * .14); border: 2px dashed #ffffff33; }
#okStage .disc .spot .tile { --w: var(--tw); position: absolute; inset: -2px; }
#okStage .disc .spot .tile.in { animation: okIn .28s ease-out; }
#okStage .disc .spot .n { position: absolute; right: -1.1cqw; top: -1.4cqh; min-width: 2.6cqw; padding: 0 .5cqw; border-radius: 99px; background: #120a05; border: 1px solid #6a5034; font: 700 2.2cqh/1.5 system-ui; text-align: center; color: #d9c8a6; z-index: 2; }
#okStage .disc.can .spot { border-color: #4fc3ff; box-shadow: 0 0 2.4cqh #4fc3ff88; }
#okStage .disc.can .spot .tile { animation: okPulse 1.2s ease-in-out infinite; cursor: pointer; }
#okStage .disc.drop .spot { border-color: #3fd06a; box-shadow: 0 0 2.4cqh #3fd06a88; }
#okStage .disc.over .spot { background: #3fd06a33; }
#dLeft { left: 24cqw; top: 46cqh; }
#dTop { left: 30cqw; top: 6cqh; }
#dRight { right: 30cqw; top: 6cqh; }
#dMine { right: 24cqw; top: 46cqh; }
@keyframes okIn { from { transform: scale(1.35); opacity: 0; } }

/* Istaka */
#okStage .rack { position: absolute; left: 50%; bottom: 1.6cqh; transform: translateX(-50%); padding: 1.2cqh 1.4cqw 0; border-radius: 1cqw 1cqw .6cqw .6cqw; z-index: 6;
  background: linear-gradient(180deg, #6e3f1d, #5a3216 55%, #4a2810); box-shadow: inset 0 1px 0 #b77a45, inset 0 0 0 1px #2a1406, 0 2cqh 4cqh #000c; }
#okStage .rack::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(92deg, transparent 0 22px, #00000014 22px 24px, transparent 24px 61px, #ffffff0a 61px 62px); }
#okStage .tier { position: relative; display: grid; grid-template-columns: repeat(15, var(--tw)); gap: .3cqw; padding: 0 0 1.8cqh; align-items: end; }
#okStage .tier::after { content: ''; position: absolute; left: -1.4cqw; right: -1.4cqw; bottom: 0; height: 2cqh; border-radius: 3px; background: linear-gradient(180deg, #a3683a, #7c4a23 40%, #5c3415); box-shadow: inset 0 1px 0 #d39a63, 0 .5cqh 1cqh #0009; }
#okStage .slot { position: relative; z-index: 1; width: var(--tw); height: calc(var(--tw) * 1.38); margin-bottom: .8cqh; border-radius: calc(var(--tw) * .14); }
#okStage .slot.hover { background: #ffffff1c; box-shadow: inset 0 0 0 2px #ffffff40; }
#okStage .slot .tile { --w: var(--tw); position: absolute; left: 0; top: 0; cursor: grab; transition: transform .12s; }
#okStage .tile.dragging { position: fixed !important; z-index: 1000; pointer-events: none; transition: none; filter: drop-shadow(0 2cqh 2cqh #000b); }

/* Yan düğmeler */
#okStage .side-btns { position: absolute; bottom: 3cqh; display: flex; flex-direction: column; gap: 1.6cqh; z-index: 7; }
#okStage .side-btns.left { left: 2.6cqw; }
#okStage .side-btns.right { right: 2.6cqw; }
#okStage .side-btns button { min-width: 13cqw; height: 9cqh; padding: 0 1.2cqw; border-radius: .9cqw; font: 700 3.3cqh/1 Georgia, serif;
  background: linear-gradient(#24170d, #1a1009); color: #f3e6cc; border: 2px solid #9a7440; box-shadow: 0 .8cqh 1.6cqh #0008; }
#okStage .side-btns button.gold { background: linear-gradient(#ffd77a, #eaa93d 55%, #d48d22); border-color: #ffe2a0; color: #2a1606; box-shadow: 0 0 2cqh #f0a93b66; }
#okStage .side-btns button:disabled { opacity: .45; cursor: default; box-shadow: none; }

/* Üst sol bilgi ve araçlar */
#okStage .hud { position: absolute; left: 1.2cqw; top: 1.2cqh; display: flex; flex-direction: column; gap: .25cqh; padding: .5cqh .7cqw; border-radius: .6cqw; background: #120a05cc; border: 1px solid #6a5034; font-size: 1.8cqh; color: #d9c8a6; z-index: 5; }
#okStage .hud b { color: #f6ead0; font: 700 2.1cqh Georgia, serif; }
#okStage .tools { position: absolute; right: 2.6cqw; top: 3cqh; display: flex; gap: .8cqw; z-index: 8; }
#okStage .tools button { width: 9cqh; height: 9cqh; border-radius: 50%; border: 1.5px solid #8c6a3c; background: #1c120ad9; color: #f4ead6; font-size: 4cqh; display: grid; place-items: center; }
#okStage .tools button svg { width: 4.6cqh; height: 4.6cqh; fill: currentColor; }
#okStage .tools .leave { color: #ffb3a0; }

/* Baloncuklar, emoji paneli, uyarılar */
#okBubbles .bub { position: absolute; z-index: 20; padding: 1cqh 1.4cqw; border-radius: 1.4cqh; background: #fff8ea; color: #2a1a0c; font: 600 3cqh/1.2 system-ui; box-shadow: 0 1cqh 2cqh #0008; animation: okBub 3s ease forwards; white-space: nowrap; }
#okBubbles .bub.emo { font-size: 7cqh; background: none; box-shadow: none; padding: 0; }
@keyframes okBub { 0% { opacity: 0; transform: translateY(1cqh) scale(.9); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#okEmotePanel { position: absolute; right: 2.6cqw; top: 14cqh; z-index: 30; display: none; width: 40cqw; max-height: 70cqh; overflow-y: auto; padding: 1.6cqh 1.4cqw; border-radius: 1.2cqw; background: #1c120af2; border: 1.5px solid #9a7440; box-shadow: 0 2cqh 4cqh #000c; }
#okEmotePanel.on { display: block; }
#okEmotePanel .emos { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8cqw; margin-bottom: 1.4cqh; }
#okEmotePanel .emos button { height: 9cqh; border-radius: .8cqw; border: 1px solid #4a3520; background: #2a1b10; font-size: 5cqh; }
#okEmotePanel .emos button:disabled { opacity: .35; }
#okEmotePanel .phr { display: grid; grid-template-columns: 1fr 1fr; gap: .8cqw; }
#okEmotePanel .phr button { min-height: 8cqh; padding: .6cqh 1cqw; border-radius: .8cqw; border: 1px solid #4a3520; background: #2a1b10; color: #f3e6cc; font-size: 2.8cqh; }
#okToast { position: absolute; left: 50%; top: 42cqh; transform: translateX(-50%); z-index: 40; max-width: 70cqw; padding: 1.4cqh 2.4cqw; border-radius: 1cqw; background: #120a05f0; border: 1.5px solid #c0503f; color: #ffe0d8; font-size: 3cqh; text-align: center; display: none; }
#okToast.on { display: block; }
#okReconnect { position: absolute; left: 50%; top: 2cqh; transform: translateX(-50%); z-index: 45; padding: 1cqh 2cqw; border-radius: 99px; background: #120a05f0; border: 1px solid #c9953f; font-size: 2.8cqh; display: none; align-items: center; gap: 1cqw; }
#okReconnect.on { display: flex; }
#okReconnect .spin, #okWait .spin { width: 3cqh; height: 3cqh; border-radius: 50%; border: 3px solid #f2b54455; border-top-color: #f2b544; animation: okSpin 1s linear infinite; }
@keyframes okSpin { to { transform: rotate(360deg); } }

/* Bekleme ve maç sonu */
#okWait, #okEnd { position: absolute; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: #0b0503c4; backdrop-filter: blur(3px); }
#okWait.on, #okEnd.on { display: flex; }
#okWait .wb, #okEnd .eb { width: min(80cqw, 150cqh); max-height: 92cqh; overflow-y: auto; padding: 4cqh 3cqw; border-radius: 1.6cqw; text-align: center;
  background: radial-gradient(120% 60% at 50% 0%, #4a1c16 0%, #2a120d 60%, #1b0b08 100%); border: 2px solid #c79a4a; box-shadow: 0 3cqh 6cqh #000c; }
#okWait .wt, #okEnd h2 { margin: 0 0 1cqh; font: 700 7cqh/1.1 Georgia, serif; color: #f6ead0; }
#okWait .ws { font-size: 3.2cqh; color: #d9c8a6; margin-bottom: 3cqh; }
#okWait .wseats { display: flex; justify-content: center; gap: 3cqw; margin-bottom: 4cqh; }
#okWait .wseat { display: flex; flex-direction: column; align-items: center; gap: 1cqh; width: 14cqw; font: 600 2.8cqh/1.2 Georgia, serif; color: #f3e6cc; }
#okWait .wseat .pav { width: 13cqh; height: 13cqh; border-radius: 50%; padding: .6cqh; background: linear-gradient(160deg, #ffe7a8, #a8742a 45%, #f6d48a 60%, #7a4c16); }
#okWait .wseat .pav .av { width: 100%; height: 100%; font-size: 7cqh; }
#okWait .wseat.empty .pav { background: none; border: 2px dashed #a8844e; display: grid; place-items: center; }
#okWait .wseat.empty b { color: #a8916f; font-weight: 400; }
#okWait .wseat b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#okWait .wbtns, #okEnd .ebtns { display: flex; justify-content: center; gap: 2cqw; flex-wrap: wrap; }
#okWait button, #okEnd button { height: 10cqh; padding: 0 3cqw; border-radius: 1cqw; font: 700 3.4cqh/1 Georgia, serif; background: linear-gradient(#ffd77a, #eaa93d 55%, #d48d22); border: 2px solid #ffe2a0; color: #2a1606; }
#okWait button.ghost, #okEnd button.ghost { background: linear-gradient(#24170d, #1a1009); border-color: #9a7440; color: #f3e6cc; }
#okWait .count { font: 700 12cqh/1 Georgia, serif; color: #f2b544; margin: 2cqh 0; }
#okEnd .eb.win { border-color: #3fd06a; }
#okEnd #okEndText { font-size: 3.4cqh; color: #e9dbbd; margin-bottom: 1.6cqh; }
#okEnd #okEndCash { font: 700 6cqh/1.2 Georgia, serif; margin-bottom: 2cqh; }
#okEnd #okEndCash.pos { color: #7fd38a; } #okEnd #okEndCash.neg { color: #f08a7a; } #okEnd #okEndCash.neutral { color: #f3e6cc; }
#okEnd .ehand { display: flex; justify-content: center; flex-wrap: wrap; gap: .5cqw; margin: 0 0 3cqh; }
#okEnd .ehand { flex-direction: column; align-items: center; gap: 1.6cqh; }
#okEnd .ehand .erow { display: flex; gap: .4cqw; }
#okEnd .ehand .egap { width: 1.6cqw; flex: none; }
#okEnd .ehand .tile { --w: min(4cqw, 8.6cqh); }
#okEnd .ehand .lbl { width: 100%; font-size: 2.8cqh; color: #bba57f; margin-bottom: 1.4cqh; }


/* Çok elli maç puan tablosu */
#okEnd .stab { width: min(60cqw, 120cqh); margin: 0 auto 2cqh; border-collapse: collapse; font-size: 3cqh; color: #f3e6cc; }
#okEnd .stab td { padding: .8cqh 1.2cqw; border-bottom: 1px solid #3e2c1a; text-align: left; }
#okEnd .stab td:last-child { text-align: right; }
#okEnd .stab tr.me td:first-child { color: #f2b544; }
#okEnd .stab tr.best td { background: #3fd06a1f; }
#okEnd .stab tr.best td:last-child b { color: #7fd38a; }
#okEnd button[hidden] { display: none; }

/* Lobi süsü üst bölümün dışına taşmaz (telefonda sayfa yana kaymasın) */
.okey-page .site #tavlaLobby .ok-hero { overflow: hidden; }
.okey-page .site { overflow-x: clip; }

/* Bekleme: hazır olan oyuncu */
#okWait .wseat small { font: 600 2.4cqh/1.2 system-ui, sans-serif; color: #bba57f; }
#okWait .wseat.ready .pav { box-shadow: 0 0 0 .5cqh #3fd06a, 0 0 2cqh #3fd06a88; }
#okWait .wseat.ready small { color: #7fd38a; }
#okWait button:disabled { opacity: .5; cursor: default; }
#okWait button[hidden] { display: none; }

/* Bekleme ekranında bilgisayar koltuğu etiketi */
#okWait .bottag{display:inline-block;padding:0 6px;border-radius:6px;background:#3a4a5c;color:#d8e6f5;font-size:.72rem;font-weight:700;letter-spacing:.02em}
#okWait .wseat.empty.fill{cursor:pointer;transition:transform .12s}
#okWait .wseat.empty.fill:hover{transform:translateY(-2px)}
#okWait .wseat.empty.fill:hover .pav{border-color:#f2b544}
#okWait .wseat .addbot{color:#f2b544;font-weight:700}

/* Istaka ve taşlar biraz daha büyük, yan düğmeler daha küçük */
#okStage .rack { --tw: var(--rtw); }
#okStage .side-btns { bottom: 2.4cqh; gap: 1.2cqh; }
#okStage .side-btns.left { left: 1.2cqw; }
#okStage .side-btns.right { right: 1.2cqw; }
#okStage .side-btns button { min-width: 10cqw; height: 7cqh; padding: 0 .9cqw; font-size: 2.6cqh; }
