/* ============================================================
   OKEY — masa, taşlar, ıstaka
   (giriş, lobi ve sohbet İsim Şehir Hayvan'ın stilini kullanır)
   ============================================================ */
#ns.ok-on { max-width: 1180px; width: 100%; align-items: stretch; }
#ns.ok-on > .g-head, #ns.ok-on > #ns-net { align-self: center; }
#ns.ok-on #ns-view { width: 100%; align-items: stretch; }
.ok-table { width: 100%; max-width: 1000px; margin: 0 auto; }
#ns.ok-on .g-head { margin-bottom: 6px; }

/* ---------- taş ---------- */
.ok-t {
  --tw: 46px; --tc: #1f1f26;
  position: relative; flex: none; width: var(--tw); height: calc(var(--tw) * 1.38); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: calc(var(--tw) * 0.12);
  border-radius: calc(var(--tw) * 0.16);
  background: linear-gradient(180deg, #fffdf7 0%, #f6efdc 72%, #e9dcbd 100%);
  box-shadow: inset 0 calc(var(--tw) * -0.07) 0 #d8c8a3, inset 0 1px 0 #fff, 0 2px 0 rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.28);
  user-select: none; -webkit-user-select: none; touch-action: none;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s, opacity 0.15s;
}
.ok-t b { font: 700 calc(var(--tw) * 0.56)/1 "Fredoka", system-ui, sans-serif; color: var(--tc); letter-spacing: -0.02em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.ok-t i { width: calc(var(--tw) * 0.2); height: calc(var(--tw) * 0.2); margin-top: calc(var(--tw) * 0.1); border-radius: 50%; background: var(--tc); opacity: 0.9; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.ok-t.c0 { --tc: #e0313b; }
.ok-t.c1 { --tc: #e39a00; }
.ok-t.c2 { --tc: #1b6ad6; }
.ok-t.c3 { --tc: #23232c; }
.ok-t.fake b { color: #7b4fe0; font-size: calc(var(--tw) * 0.62); }
.ok-t.fake i { background: transparent; border: 2px solid #7b4fe0; box-sizing: border-box; }
.ok-t.wild { box-shadow: inset 0 calc(var(--tw) * -0.07) 0 #d8c8a3, inset 0 1px 0 #fff, 0 0 0 2px #ffcf3d, 0 0 12px rgba(255, 207, 61, 0.75), 0 3px 8px rgba(0, 0, 0, 0.28); }
.ok-t.wild em { position: absolute; top: -6px; right: -6px; padding: 1px 4px; border-radius: 6px; background: #ffcf3d; color: #4a2c00; font: 800 9px/1.2 "Manrope", sans-serif; font-style: normal; letter-spacing: 0.02em; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.ok-t.back { background: linear-gradient(150deg, #8d5cf0, #5a33b8 60%, #45258f); box-shadow: inset 0 -3px 0 #3a1f7a, inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 5px rgba(0, 0, 0, 0.35); justify-content: center; padding: 0; }
.ok-t.back i { width: 42%; height: 42%; margin: 0; border-radius: 50%; background: radial-gradient(circle at 65% 35%, transparent 42%, #ffe08a 43%); opacity: 0.85; box-shadow: none; }
.ok-t.sm { --tw: 30px; }
.ok-t.xs { --tw: 20px; }
.ok-t.xs b { text-shadow: none; }
.ok-t.xs i { display: none; }
.ok-t.xs.wild em, .ok-t.sm.wild em { display: none; }
.ok-t.hero { --tw: 40px; animation: ok-drop 0.5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes ok-drop { from { opacity: 0; transform: translateY(-26px) rotate(-8deg); } }

/* ---------- masa ---------- */
.ok-table { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ok-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ok-mode { padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #6d3fd8); color: #fff; font: 700 13px "Fredoka", sans-serif; letter-spacing: 0.06em; }
.ok-hand { font: 600 15px "Fredoka", sans-serif; color: var(--ink-dim, #b9b1d6); }
.ok-top-r { margin-left: auto; display: flex; gap: 6px; }
.ok-ib { width: 40px; height: 40px; border-radius: 13px; border: 1.5px solid var(--line, rgba(255,255,255,.12)); background: var(--card, #1c1533); color: var(--ink, #fff); font: 700 17px "Fredoka", sans-serif; cursor: pointer; display: grid; place-items: center; transition: transform 0.15s, border-color 0.2s; }
.ok-ib:hover { transform: translateY(-2px); border-color: #a67bfb; }

.ok-felt {
  position: relative; display: grid; gap: 10px; padding: 14px;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
  grid-template-rows: auto minmax(150px, auto) auto;
  grid-template-areas: "d2 p2 d1" "p3 mid p1" "d3 mid d0";
  border-radius: 30px; min-height: 330px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(166, 123, 251, 0.25), transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #34206e, #22154b 70%, #1a1039);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07), inset 0 18px 50px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(20, 8, 50, 0.35);
}
.m-h .ok-felt { grid-template-rows: auto auto minmax(120px, 1fr) auto; grid-template-areas: "d2 p2 d1" "p3 mid p1" "p3 melds p1" "d3 melds d0"; }
#ok-p1 { grid-area: p1; } #ok-p2 { grid-area: p2; } #ok-p3 { grid-area: p3; }
#ok-d0 { grid-area: d0; } #ok-d1 { grid-area: d1; } #ok-d2 { grid-area: d2; } #ok-d3 { grid-area: d3; }
.ok-mid { grid-area: mid; display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.ok-melds { grid-area: melds; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 10px; border-radius: 20px; background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.06); max-height: 280px; overflow: auto; }
.ok-seat, .ok-disc { display: flex; align-items: center; justify-content: center; min-width: 0; }

/* rakip kartı */
.ok-pc { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); color: #fff; min-width: 0; max-width: 100%; transition: box-shadow 0.25s, background 0.25s; }
.ok-pc.turn { background: rgba(255, 207, 61, 0.14); box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 22px rgba(255, 207, 61, 0.35); }
.ok-pc.left { opacity: 0.8; }
.r1 .ok-pc, .r3 .ok-pc { flex-direction: column; text-align: center; padding: 10px 8px; gap: 6px; width: 100%; }
.ok-pc-av { position: relative; flex: none; }
.ok-pc-av .ns-av { --s: 46px; }
.ok-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
.ok-ring circle { fill: none; stroke: #ffcf3d; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 * (1 - var(--p, 1))); transition: stroke-dashoffset 0.25s linear; filter: drop-shadow(0 0 3px rgba(255, 207, 61, 0.8)); }
.ok-dealer { position: absolute; left: -6px; bottom: -4px; font-size: 14px; font-style: normal; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.ok-pc-t { display: flex; flex-direction: column; min-width: 0; }
.ok-pc-t b { font: 600 15px/1.15 "Fredoka", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ok-pc-t small { display: flex; gap: 6px; justify-content: inherit; align-items: center; font: 600 12.5px "Manrope", sans-serif; color: rgba(255, 255, 255, 0.75); }
.r1 .ok-pc-t small, .r3 .ok-pc-t small { justify-content: center; }
.ok-pc-pen { color: #ff8a8a; }
.ok-pc-op { font-size: 13px; }
.ok-pc-tiles { position: relative; display: flex; align-items: center; height: 22px; padding-right: 4px; }
.ok-pc-tiles i { width: 10px; height: 16px; margin-left: -4px; border-radius: 3px; background: linear-gradient(150deg, #8d5cf0, #4b2a99); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.ok-pc-tiles i:first-child { margin-left: 0; }
.ok-pc-tiles b { margin-left: 6px; font: 700 13px "Fredoka", sans-serif; color: #ffe08a; }
.ok-pc-disc { display: none; }
.team .ok-pc { box-shadow: inset 0 0 0 1.5px var(--tc); }
.team .ok-pc.turn { box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 22px rgba(255, 207, 61, 0.35); }

/* atılan taşlar */
.ok-dstack { position: relative; width: 66px; height: 88px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.07); }
.ok-dstack .ok-t { --tw: 50px; position: absolute; inset: 0; margin: auto; }
.ok-dstack .ok-t.under { transform: translate(-4px, -3px) rotate(-6deg); opacity: 0.7; }
.ok-dstack .ok-t.top { transform: rotate(3deg); }
.ok-dstack .ok-t.top.land { animation: ok-land 0.45s cubic-bezier(.34,1.56,.64,1); }
@keyframes ok-land { from { transform: translateY(-40px) rotate(-20deg) scale(1.2); opacity: 0; } }
.ok-dstack em { position: absolute; right: -8px; bottom: -8px; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #2a1b55; color: #ffe08a; font: 700 11px "Manrope", sans-serif; font-style: normal; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); }
.ok-dstack.can { cursor: pointer; box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 0 4px rgba(255, 207, 61, 0.2); animation: ok-pulse 1.4s ease-in-out infinite; }
.ok-dstack.can .ok-t.top { cursor: grab; }
.ok-dstack.drop { box-shadow: inset 0 0 0 2px dashed; outline: 2px dashed rgba(255, 255, 255, 0.35); outline-offset: -6px; }
.ok-dstack.drop.hov, .ok-dstack.hov { outline-color: #ffcf3d; background: rgba(255, 207, 61, 0.15); }
.ok-dz { font: 700 13px "Fredoka", sans-serif; color: rgba(255, 255, 255, 0.65); }
@keyframes ok-pulse { 50% { box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 0 9px rgba(255, 207, 61, 0.08); } }

/* deste ve gösterge */

.ok-deck small, .ok-ind small, .ok-okey small { font: 700 11px "Manrope", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.ok-deck.can { cursor: pointer; background: rgba(255, 207, 61, 0.12); box-shadow: inset 0 0 0 2px #ffcf3d; animation: ok-pulse 1.4s ease-in-out infinite; }
.ok-deck.can .ok-t { cursor: grab; }
.ok-indw { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 20px; background: rgba(0, 0, 0, 0.18); }
.ok-ind, .ok-okey { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ok-ind .ok-t { --tw: 48px; transform: rotate(-4deg); }
.ok-okey .ok-t { animation: ok-glow 2.4s ease-in-out infinite; }
@keyframes ok-glow { 50% { transform: translateY(-3px) rotate(3deg); } }
.ok-indw.fin { outline: 2px dashed rgba(255, 255, 255, 0.3); outline-offset: 3px; cursor: pointer; }
.ok-indw.fin.hot { outline-color: #4ade80; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.15), 0 0 30px rgba(74, 222, 128, 0.35); animation: ok-hot 1.2s ease-in-out infinite; }
.ok-indw.hov { outline-color: #ffcf3d !important; background: rgba(255, 207, 61, 0.12); }
@keyframes ok-hot { 50% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0.06), 0 0 40px rgba(74, 222, 128, 0.5); } }
.ok-finz { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: #4ade80; color: #06311c; font: 700 11.5px "Fredoka", sans-serif; white-space: nowrap; }

/* yerdeki perler (101) */
.ok-melds-empty { margin: auto; color: rgba(255, 255, 255, 0.5); font: 500 14px "Manrope", sans-serif; text-align: center; padding: 0 10px; }
.ok-meld { display: flex; gap: 2px; padding: 5px 6px 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 3px 0 0 var(--c); transition: transform 0.15s, background 0.2s; }
.ok-meld.new { animation: ok-in 0.35s ease both; }
.ok-meld.pair { gap: 1px; }
.ok-meld.fit { cursor: pointer; background: rgba(74, 222, 128, 0.18); box-shadow: inset 3px 0 0 var(--c), 0 0 0 2px #4ade80; animation: ok-pulse2 1.2s ease-in-out infinite; }
.ok-meld.hov { background: rgba(255, 207, 61, 0.22); transform: scale(1.04); }
@keyframes ok-pulse2 { 50% { box-shadow: inset 3px 0 0 var(--c), 0 0 0 5px rgba(74, 222, 128, 0.3); } }
@keyframes ok-in { from { opacity: 0; transform: scale(0.85); } }

/* ben */
.ok-me { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 20px; background: var(--card, #1c1533); box-shadow: inset 0 0 0 1.5px var(--line, rgba(255,255,255,.1)); min-height: 56px; }
.ok-me-av { position: relative; flex: none; border-radius: 50%; }
.ok-me-av.turn { box-shadow: 0 0 0 3px #ffcf3d, 0 0 16px rgba(255, 207, 61, 0.6); }
.ok-me-t { display: flex; flex-direction: column; min-width: 0; }
.ok-me-t b { font: 600 16px "Fredoka", sans-serif; color: var(--ink, #fff); white-space: nowrap; }
.ok-me-t small { font: 600 13px "Manrope", sans-serif; color: var(--ink-dim, #b9b1d6); }
.ok-tm { font-style: normal; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: var(--tc); color: #1a1030; font: 700 11px "Manrope", sans-serif; }
.ok-status { flex: 1 1 auto; min-width: 0; text-align: center; padding: 8px 12px; border-radius: 14px; font: 600 14.5px/1.3 "Fredoka", sans-serif; color: var(--ink-dim, #b9b1d6); }
.ok-status.turn { background: linear-gradient(135deg, #ffd966, #ffb627); color: #3a2400; box-shadow: 0 4px 0 #c98a00; animation: ok-bob 1.8s ease-in-out infinite; }
@keyframes ok-bob { 50% { transform: translateY(-2px); } }
.ok-timer { flex: none; min-width: 48px; text-align: right; font: 700 17px "Fredoka", sans-serif; color: var(--ink, #fff); }
.ok-timer.low { color: #ff5d6c; animation: ok-bob 0.5s ease-in-out infinite; }
.ok-watch { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
.ok-watch b { font: 600 16px "Fredoka", sans-serif; color: var(--ink, #fff); }
.ok-watch small { color: var(--ink-dim, #b9b1d6); }

/* ıstaka */
.ok-rackwrap { position: relative; padding: 12px 12px 16px; border-radius: 22px;
  background: linear-gradient(180deg, #7a4fd6 0%, #5b37b0 48%, #4a2a96 50%, #5b37b0 52%, #4b2c98 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -6px 0 rgba(0, 0, 0, 0.25), 0 14px 30px rgba(40, 15, 100, 0.4); }
.ok-rack { --cols: 15; max-width: calc(var(--cols) * 58px); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px 4px; }
.ok-slot { position: relative; aspect-ratio: 1 / 1.38; border-radius: 8px; background: rgba(20, 8, 50, 0.28); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25); }
.ok-slot .ok-t { --tw: 100%; position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.ok-slot .ok-t b { font-size: clamp(15px, 3.3vw, 28px); }
.ok-slot .ok-t i { width: 20%; height: auto; aspect-ratio: 1; margin-top: 8%; }
.ok-slot .ok-t.wild em { top: -5px; right: -4px; font-size: 8.5px; }
.ok-slot .ok-t.sel { transform: translateY(-12px); box-shadow: inset 0 -3px 0 #d8c8a3, 0 0 0 3px #ffcf3d, 0 10px 18px rgba(0, 0, 0, 0.45); }
.ok-slot .ok-t.canfit { box-shadow: inset 0 -3px 0 #d8c8a3, 0 0 0 2px #4ade80, 0 3px 8px rgba(0, 0, 0, 0.28); }
.ok-slot .ok-t.sel.canfit { box-shadow: inset 0 -3px 0 #d8c8a3, 0 0 0 3px #ffcf3d, 0 0 0 6px rgba(74, 222, 128, 0.6), 0 10px 18px rgba(0, 0, 0, 0.45); }
.ok-slot .ok-t.fresh { animation: ok-fresh 0.55s cubic-bezier(.34,1.56,.64,1); }
@keyframes ok-fresh { from { transform: translateY(-60px) scale(1.15); opacity: 0; } }
.ok-slot .ok-t.shuf { animation: ok-shuf 0.4s ease both; animation-delay: var(--d, 0ms); }
@keyframes ok-shuf { from { transform: scale(0.6) rotate(-10deg); opacity: 0; } }
.ok-slot.hov { background: rgba(255, 207, 61, 0.35); box-shadow: inset 0 0 0 2px #ffcf3d; }
.ok-t.dragging { opacity: 0.25; }
.ok-t.ghost { position: fixed; left: 0; top: 0; z-index: 10060; pointer-events: none; margin: 0; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 -3px 0 #d8c8a3; transition: none; }
.ok-t.ghost b { font-size: clamp(15px, 3.3vw, 28px); }
.ok-table.dragging, .ok-table.dragging * { cursor: grabbing !important; }

/* düğmeler */
.ok-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ok-btn { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 15px; border: 1.5px solid var(--line, rgba(255,255,255,.12)); background: var(--card, #1c1533); color: var(--ink, #fff); font: 600 15px "Fredoka", sans-serif; cursor: pointer; box-shadow: 0 3px 0 var(--line, rgba(255,255,255,.12)); transition: transform 0.12s, box-shadow 0.12s, opacity 0.2s; }
.ok-btn i { font-style: normal; font-size: 17px; }
.ok-btn:hover:not(:disabled) { transform: translateY(-2px); }
.ok-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.ok-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ok-btn.main { background: linear-gradient(135deg, #ffd966, #ffb627); border-color: transparent; color: #3a2400; box-shadow: 0 4px 0 #c98a00; }
.ok-btn.main.hot { background: linear-gradient(135deg, #8ff0bd, #3fbf7f); color: #06311c; box-shadow: 0 4px 0 #2a8a5a, 0 0 22px rgba(74, 222, 128, 0.55); animation: ok-bob 1s ease-in-out infinite; }
.ok-btn.gold { border-color: #ffcf3d; }
.ok-btn.disc:not(:disabled) { border-color: #ff8a8a; }
.ok-hint { margin: -2px 0 0; text-align: center; font: 500 12.5px "Manrope", sans-serif; color: var(--ink-faint, #8a82a8); }

/* el sonu */
.ok-end { position: absolute; inset: -6px; z-index: 30; display: grid; place-items: center; padding: 10px; border-radius: 30px; background: rgba(14, 8, 32, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: ok-fade 0.3s ease; }
.ok-end[hidden] { display: none; }
@keyframes ok-fade { from { opacity: 0; } }
.ok-end-card { width: min(720px, 100%); max-height: 100%; overflow: auto; padding: 18px; border-radius: 26px; background: var(--card, #1c1533); color: var(--ink, #fff); box-shadow: 0 0 0 2px #ffcf3d, 0 30px 60px rgba(0, 0, 0, 0.5); animation: ok-in 0.4s cubic-bezier(.34,1.56,.64,1); }
.ok-end-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ok-end-wolf { font-size: 38px; animation: ok-bob 1.6s ease-in-out infinite; }
.ok-end-head b { display: block; font: 700 24px/1.15 "Fredoka", sans-serif; }
.ok-end-head small { color: var(--ink-dim, #b9b1d6); font: 600 14px "Manrope", sans-serif; }
.ok-end-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #3a2577, #241650); }
.ok-eg { display: flex; gap: 2px; }
.ok-end-tw { overflow-x: auto; }
.ok-end-tbl { width: 100%; border-collapse: collapse; font: 600 14px "Manrope", sans-serif; }
.ok-end-tbl th { padding: 6px; font: 700 11px "Manrope", sans-serif; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-dim, #b9b1d6); text-align: left; }
.ok-end-tbl td { padding: 6px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); vertical-align: middle; }
.ok-end-tbl tr.win td { background: rgba(74, 222, 128, 0.1); }
.ok-end-tbl tr.me .ok-end-n b { color: #ffcf3d; }
.ok-end-n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ok-end-head.sm b { font-size: 18px; }
.ok-end-h { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 5px; }
.ok-end-h:empty { display: none; }
.ok-end-d, .ok-end-t { text-align: right; font: 700 16px "Fredoka", sans-serif; white-space: nowrap; }
.ok-end-d.plus { color: #ff8a8a; }
.ok-end-d.minus { color: #4ade80; }
.ok-end-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ok-end-acts small { margin-right: auto; color: var(--ink-dim, #b9b1d6); font: 600 13px "Manrope", sans-serif; }
.ok-final { text-align: center; margin-bottom: 12px; }
.ok-final img { width: 110px; height: 110px; object-fit: contain; animation: ok-bob 1.6s ease-in-out infinite; }
.ok-final h3 { margin: 4px 0 2px; font: 700 28px "Fredoka", sans-serif; }
.ok-final p { margin: 0 0 12px; color: var(--ink-dim, #b9b1d6); }
.ok-pod { display: flex; justify-content: center; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ok-podi { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); min-width: 92px; }
.ok-podi.p1 { background: linear-gradient(180deg, rgba(255, 207, 61, 0.3), rgba(255, 207, 61, 0.06)); box-shadow: 0 0 0 2px #ffcf3d; padding-bottom: 22px; }
.ok-podi b { font: 600 14px "Fredoka", sans-serif; }
.ok-podi em { font: 700 18px "Fredoka", sans-serif; font-style: normal; }
.ok-podi i { position: absolute; top: -12px; right: -6px; font-style: normal; font-size: 22px; }
.ok-podi.me b { color: #ffcf3d; }
.ok-pod.team .ok-podi { min-width: 160px; box-shadow: inset 0 0 0 2px var(--tc); }
.ok-pod.team .ok-podi.gold { background: linear-gradient(180deg, rgba(255, 207, 61, 0.3), rgba(255, 207, 61, 0.06)); }

/* açma önizlemesi, puan tablosu, kurallar */
.ok-openm .ok-prev { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 46vh; overflow: auto; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #3a2577, #241650); }
.ok-openm .ok-prev.pairs { flex-direction: row; flex-wrap: wrap; }
.ok-prev-m { display: flex; align-items: center; gap: 2px; }
.ok-prev-m em { margin-left: 8px; font: 700 14px "Fredoka", sans-serif; font-style: normal; color: #ffe08a; }
.ok-prev-sum { margin: 6px 0; font: 600 16px "Fredoka", sans-serif; color: #ff8a8a; }
.ok-prev-sum.ok { color: #4ade80; }
.ok-prev-note { color: var(--ink-dim, #b9b1d6); font-size: 14px; }
.ok-prev-acts { flex-wrap: wrap; }
.ok-scm .ok-sc-w { overflow-x: auto; }
.ok-sc { width: 100%; border-collapse: collapse; text-align: center; font: 600 14px "Manrope", sans-serif; }
.ok-sc th { padding: 6px 4px; font: 600 12px "Fredoka", sans-serif; }
.ok-sc th span { display: block; max-width: 80px; margin: 2px auto 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-sc td { padding: 6px 4px; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.ok-sc td.win { color: #4ade80; font-weight: 800; }
.ok-sc tfoot td { font-size: 16px; }
.ok-sc-note { margin: 0 0 8px; color: var(--ink-dim, #b9b1d6); font-size: 14px; }
.ok-sc-team { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ok-sc-team span { padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--tc); }
.ok-intro-tiles { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ok-intro-tiles span { display: flex; gap: 2px; padding: 6px; border-radius: 12px; background: linear-gradient(180deg, #3a2577, #241650); }
.ok-intro-tabs { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.ok-intro-tabs button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line, rgba(255,255,255,.12)); background: transparent; color: var(--ink, #fff); font: 600 14px "Fredoka", sans-serif; cursor: pointer; }
.ok-intro-tabs button.on { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* giriş: tek kişilik kart ve tanıtım taşları */
.ok-home { grid-template-columns: 1fr 1fr; }
.ok-home .ok-solo { grid-column: 1 / -1; }
.ok-solo-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 10px; }
.ok-solo-opts .ns-chips { flex-wrap: nowrap; }
.ok-solo-opts [hidden] { display: none !important; }
.ok-resume { margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ok-resume small { font-size: 12px; opacity: 0.75; }
.ok-hero-demo { display: grid; place-items: center; }
.ok-hero-rack { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; border-radius: 18px; background: linear-gradient(180deg, #7a4fd6, #4a2a96); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25); }
.ok-hr-row { display: flex; gap: 3px; align-items: center; }
.ok-hr-row > i { width: 10px; }
.ok-hr-row.two { justify-content: center; gap: 6px; }
.ok-hr-row em { font: 700 13px "Fredoka", sans-serif; font-style: normal; color: #ffe08a; margin-left: 6px; }

/* lobi: masa önizlemesi */
.ns-set-ic.ok-emo { display: grid; place-items: center; font-size: 18px; }
.ok-sum-seats { margin-bottom: 8px; }
.ok-sum-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--ink-dim, #b9b1d6); }

/* açık tema: masa yine koyu kalır, çevresi temaya uyar */
:root[data-theme="light"] .ok-end { background: rgba(60, 40, 120, 0.35); }

/* ---------- tablet / telefon ---------- */
@media (max-width: 900px) {
  .ok-felt { grid-template-columns: 96px minmax(0, 1fr) 96px; }
  .ok-pc-t b { max-width: 110px; }
}
@media (max-width: 760px) {
  #ns.ok-on { padding-left: 8px; padding-right: 8px; }
  .ok-felt {
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto;
    grid-template-areas: "p3 p2 p1" "d3 mid d0"; padding: 10px 8px; gap: 8px; border-radius: 22px; min-height: 0;
  }
  .m-h .ok-felt { grid-template-rows: auto auto auto; grid-template-areas: "p3 p2 p1" "d3 mid d0" "melds melds melds"; }
  #ok-d1, #ok-d2 { display: none; }
  .ok-pc, .r1 .ok-pc, .r3 .ok-pc { flex-direction: column; gap: 4px; padding: 7px 4px 6px; width: 100%; text-align: center; border-radius: 16px; }
  .ok-pc-av .ns-av { --s: 36px !important; }
  .ok-pc-t b { font-size: 12.5px; max-width: 100%; }
  .ok-pc-t small { justify-content: center; font-size: 11px; gap: 4px; }
  .ok-pc-tiles { display: none; }
  .ok-pc-disc { display: block; position: absolute; top: 4px; right: 4px; }
  .r3 .ok-pc-disc { display: none; }
  .ok-pc-disc .ok-t { --tw: 18px; }
  .ok-dealer { font-size: 11px; }
  .ok-mid { gap: 8px; flex-wrap: nowrap; }
  .ok-indw { gap: 8px; padding: 6px 8px; }
  .ok-ind .ok-t { --tw: 36px; }
  .ok-okey .ok-t.sm { --tw: 26px; }
  .ok-deck small, .ok-ind small, .ok-okey small { font-size: 9px; }
  .ok-dstack { width: 52px; height: 70px; justify-self: center; }
  .ok-dstack .ok-t { --tw: 40px; }
  .ok-melds { max-height: 190px; padding: 6px; gap: 5px; }
  .ok-melds .ok-t.sm { --tw: 24px; }
  .ok-me { padding: 6px 8px; gap: 8px; flex-wrap: wrap; }
  .ok-me-av .ns-av { --s: 32px !important; }
  .ok-me-t b { font-size: 14px; }
  .ok-status { order: 3; flex-basis: 100%; padding: 7px 10px; font-size: 13.5px; }
  .ok-timer { margin-left: auto; }
  .ok-rackwrap { padding: 8px 6px 10px; border-radius: 16px; }
  .ok-rack { gap: 9px 2px; }
  .ok-slot { border-radius: 5px; }
  .ok-slot .ok-t { border-radius: 5px; }
  .ok-slot .ok-t b { font-size: clamp(14px, 5vw, 22px); }
  .ok-slot .ok-t.sel { transform: translateY(-8px); }
  .ok-btn { height: 42px; padding: 0 12px; font-size: 14px; border-radius: 13px; }
  .ok-btn i { font-size: 15px; }
  .ok-acts { gap: 6px; }
  .ok-end { position: fixed; inset: 0; border-radius: 0; z-index: 3000; }
  .ok-end-card { padding: 14px; max-height: 92vh; }
  .ok-end-h .ok-t.xs { --tw: 15px; }
  .ok-home { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .ok-btn span { font-size: 13px; }
  .ok-btn { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ok-t, .ok-dstack.can, .ok-deck.can, .ok-status.turn, .ok-okey .ok-t, .ok-indw.fin.hot, .ok-btn.main.hot, .ok-end-wolf, .ok-final img, .ok-meld.fit { animation: none !important; }
}
.ok-lobby .ns-settings .ns-chips { flex-wrap: wrap; }
.ok-end-wolf img { width: 72px; height: 72px; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.ok-final img { width: 140px; height: 140px; }

/* ======================= 2. tur ======================= */
.ok-how[hidden] { display: none !important; }
.ok-how li { font-size: 15px; line-height: 1.45; }
/* görsel ikon (varsa) ya da emoji */
.ok-ico { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; flex: none; }
.ok-ico img { display: none; width: 100%; height: 100%; object-fit: contain; }
.ok-ico.img img { display: block; }
.ok-ico.img i { display: none; }
.ok-ico i { font-style: normal; line-height: 1; }

/* ---- giriş: kartlar ---- */
.ok-seatpick .ns-chips { justify-content: center; margin: 0 auto; }
.ok-seatpick { display: flex; flex-direction: column; align-items: center; }
.ok-bots { position: relative; margin-top: 14px; padding: 18px; border-radius: 26px; background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(255, 179, 71, 0.10)); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.45), 0 14px 34px rgba(30, 10, 80, 0.35); overflow: hidden; }
.ok-bots::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 107, 0.35), transparent 70%); pointer-events: none; }
.ok-bots-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ok-bots-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, 0.08); font-size: 30px; }
.ok-bots-ic .ok-ico { width: 40px; height: 40px; font-size: 30px; }
.ok-bots-h b { display: block; font: 700 21px "Fredoka", sans-serif; color: var(--ink, #fff); }
.ok-bots-h small { color: var(--ink-dim, #b9b1d6); font-size: 14px; }
.ok-mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ok-mtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 20px; border: 2px solid var(--line, rgba(255,255,255,.12)); background: var(--card, #1c1533); color: var(--ink, #fff); cursor: pointer; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.ok-mtile:hover { transform: translateY(-3px); border-color: #a67bfb; }
.ok-mtile.on { border-color: #ffcf3d; background: linear-gradient(180deg, rgba(255, 207, 61, 0.18), rgba(139, 92, 246, 0.18)); box-shadow: 0 0 0 4px rgba(255, 207, 61, 0.15), 0 12px 24px rgba(0, 0, 0, 0.3); }
.ok-mtile.pop { animation: ok-in 0.35s cubic-bezier(.34,1.56,.64,1); }
.ok-mtile b { font: 700 19px "Fredoka", sans-serif; }
.ok-mtile small { font-size: 12.5px; line-height: 1.3; color: var(--ink-dim, #b9b1d6); text-align: center; }
.ok-mtile em { position: absolute; top: 8px; right: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ffcf3d; color: #3a2400; font: 800 13px sans-serif; font-style: normal; }
.ok-mtile-art { display: flex; gap: 2px; height: 34px; align-items: center; }
.ok-mtile-art .ok-t.xs { --tw: 24px; }
.ok-mtile-art .n101 { font: 800 26px "Fredoka", sans-serif; font-style: normal; color: #ffcf3d; text-shadow: 0 3px 0 #8a5a00; letter-spacing: 0.02em; }
.ok-bopts { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin: 12px 0; }
.ok-bopt { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ok-bopt small { font: 700 12px "Manrope", sans-serif; color: var(--ink-dim, #b9b1d6); letter-spacing: 0.03em; }
.ok-seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1.5px var(--line, rgba(255,255,255,.1)); }
.ok-seg button { min-width: 44px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-dim, #b9b1d6); font: 600 14px "Fredoka", sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s, transform 0.15s; }
.ok-seg button:hover { color: var(--ink, #fff); }
.ok-seg button.on { background: linear-gradient(135deg, #a67bfb, #7c4ddb); color: #fff; box-shadow: 0 3px 0 #4b2a99; transform: translateY(-1px); }
.ok-bots-go { width: 100%; height: 52px; font-size: 17px; }

/* ---- giriş: soldaki tanıtım kartı ---- */
.ns-invite.ok-heroc, .ns-invite.ok-invc { display: flex; flex-direction: column; }
.ok-hero { justify-content: space-between; gap: 16px; }
.ok-hero-demo { display: grid; place-items: center; padding: 16px 10px; border-radius: 20px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 224, 138, 0.18); transition: opacity 0.4s, transform 0.4s; }
.ok-hero-demo.flip { opacity: 0; transform: translateY(6px) scale(0.98); }
.ok-hero-rack { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 18px; background: linear-gradient(180deg, #7a4fd6, #4a2a96); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.3); }
.ok-hr-row { display: flex; gap: 4px; align-items: center; justify-content: center; }
.ok-hr-row > i.gap { width: 12px; }
.ok-hero-rack .ok-t.hero { --tw: 42px !important; width: 42px !important; height: 58px !important; min-height: 0 !important; flex: none !important; }
.ok-hero-rack .ok-t.hero b { font-size: 23px !important; line-height: 1 !important; }
.ok-hero-rack .ok-t.hero i { display: block !important; width: 8px !important; height: 8px !important; margin-top: 5px !important; }
.ok-hero-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ok-hm { padding: 12px 14px; border-radius: 16px; background: rgba(139, 92, 246, 0.16); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.3); }
.ok-hm.h { background: rgba(255, 179, 71, 0.12); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 71, 0.35); }
.ok-hm b { display: block; font: 700 16px "Fredoka", sans-serif; color: var(--ink, #fff); margin-bottom: 3px; }
.ok-hm small { font-size: 13px; line-height: 1.4; color: var(--ink-dim, #b9b1d6); }
/* davet kartı */
.ok-invc { gap: 14px; }
.ok-inv-mode { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(139, 92, 246, 0.18); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.35); }
.ok-inv-mode.h { background: rgba(255, 179, 71, 0.12); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 71, 0.4); }
.ok-inv-mic { font-size: 32px; }
.ok-inv-mode b { display: block; font: 700 18px "Fredoka", sans-serif; color: var(--ink, #fff); }
.ok-inv-mode small { color: var(--ink-dim, #b9b1d6); font-size: 13px; }
.ok-inv-mode em { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #ffcf3d; color: #3a2400; font: 700 13px "Fredoka", sans-serif; font-style: normal; white-space: nowrap; }
.ok-inv-table { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.ok-inv-table > small { font: 800 12px "Manrope", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim, #b9b1d6); }
.ok-inv-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ok-inv-chips span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--ink-dim, #b9b1d6); }
.ok-inv-chips b { color: var(--ink, #fff); }

/* ---- küçük masa: 4 koltuk ---- */
.ok-mini-table { display: grid; grid-template-columns: 1fr 1.4fr 1fr; grid-template-rows: auto auto auto; grid-template-areas: ". s2 ." "s3 felt s1" ". s0 ."; gap: 8px; align-items: center; justify-items: center; padding: 4px; }
.ok-mt-felt { grid-area: felt; width: 100%; min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 22px; background: radial-gradient(ellipse at 50% 40%, rgba(166, 123, 251, 0.35), transparent 70%), linear-gradient(180deg, #34206e, #1a1039); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3); }
.ok-mt-felt b { color: #ffe08a; font: 700 17px "Fredoka", sans-serif; letter-spacing: 0.1em; }
.ok-mt-felt small { color: rgba(255, 255, 255, 0.65); font-size: 11px; }
.ok-ss { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 110px; padding: 6px 8px; border: 0; border-radius: 16px; background: transparent; color: var(--ink, #fff); font: inherit; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), background 0.2s; }
.ok-ss.s0 { grid-area: s0; } .ok-ss.s1 { grid-area: s1; } .ok-ss.s2 { grid-area: s2; } .ok-ss.s3 { grid-area: s3; }
.ok-ss .ns-av { --s: 46px; }
.ok-ss b { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px "Fredoka", sans-serif; }
.ok-ss > i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.07); font-style: normal; font-size: 24px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); }
.ok-ss > i .ok-ico { width: 30px; height: 30px; font-size: 24px; }
.ok-ss.bot b { color: var(--ink-dim, #b9b1d6); }
.ok-ss em { font-style: normal; font: 700 11px "Fredoka", sans-serif; padding: 2px 9px; border-radius: 999px; background: #8b5cf6; color: #fff; }
.ok-ss.swap em { position: absolute; top: 0; right: 4px; padding: 2px 5px; background: rgba(255, 255, 255, 0.12); }
.ok-ss.can { cursor: pointer; }
.ok-ss.can:hover { transform: translateY(-3px); background: rgba(139, 92, 246, 0.15); }
.ok-ss.bot.can > i { border: 2px dashed rgba(255, 255, 255, 0.3); box-shadow: none; }
.ok-ss.bot.can:hover > i { border-color: #ffcf3d; }
.ok-ss.mine { background: rgba(255, 207, 61, 0.14); box-shadow: inset 0 0 0 2px #ffcf3d; }
.ok-ss.mine b { color: #ffcf3d; }
.ok-ss.pop { animation: ok-in 0.3s ease; }
.ok-ss-crown { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 15px; }
.ok-ss.t0 .ns-av, .ok-ss.t0 > i { box-shadow: 0 0 0 3px #a67bfb; }
.ok-ss.t1 .ns-av, .ok-ss.t1 > i { box-shadow: 0 0 0 3px #ffb347; }
/* lobi */
.ok-lobby .ns-settings .ns-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ok-lobby .ns-settings .ns-chip { flex: 1 1 auto; min-width: 0; width: auto; padding: 0 10px; white-space: nowrap; font-size: 13.5px; }
.ok-lobby .ns-settings [hidden] { display: none !important; }
.ok-botsbox { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: linear-gradient(145deg, rgba(139, 92, 246, 0.3), rgba(255, 179, 71, 0.12)); box-shadow: inset 0 0 0 1.5px rgba(255, 207, 61, 0.45); }
.ok-botsbox[hidden] { display: none; }
.ok-botsbox-ic { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 20px; background: rgba(0, 0, 0, 0.2); font-size: 38px; }
.ok-botsbox-ic .ok-ico { width: 48px; height: 48px; font-size: 38px; }
.ok-botsbox-ic > i { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-size: 20px; }
.ok-botsbox b { font: 700 19px "Fredoka", sans-serif; color: var(--ink, #fff); }
.ok-botsbox p { margin: 4px 0 0; font-size: 14px; color: var(--ink-dim, #b9b1d6); }
.ok-seatreq { display: flex; flex-direction: column; gap: 6px; }
.ok-sr { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-size: 13.5px; color: var(--ink, #fff); animation: ok-in 0.3s ease; }
.ok-sr.mine { background: rgba(255, 207, 61, 0.16); box-shadow: inset 0 0 0 2px #ffcf3d; }
.ok-sr span { flex: 1; min-width: 0; }
.ok-sr button { height: 32px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line, rgba(255,255,255,.15)); background: transparent; color: var(--ink, #fff); font: 600 13px "Fredoka", sans-serif; cursor: pointer; }
.ok-sr button.y { background: #ffcf3d; border-color: #ffcf3d; color: #3a2400; }
.ok-sr i { font-style: normal; }

/* ---- masa: daha derli toplu, düğmeler görünür ---- */
#ns.ok-on #ns-tagline { display: none; }
#ns.ok-on .g-head h1 { font-size: 24px; margin: 0; }
.ok-tb { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 13px; border: 1.5px solid rgba(166, 123, 251, 0.5); background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.15)); color: var(--ink, #fff); font: 600 14.5px "Fredoka", sans-serif; cursor: pointer; transition: transform 0.15s, background 0.2s; }
.ok-tb:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0.25)); }
.ok-tb .ok-ico { font-size: 18px; }
.ok-tb.exit { border-color: rgba(255, 120, 120, 0.5); background: rgba(229, 72, 77, 0.15); }
.ok-tb.exit:hover { background: rgba(229, 72, 77, 0.3); }
.ok-felt { min-height: 0; grid-template-rows: auto minmax(120px, auto) auto; padding: 12px; }
.m-h .ok-felt { grid-template-rows: auto auto minmax(90px, 1fr) auto; }
.ok-melds { max-height: 210px; }
.ok-pc { cursor: pointer; }
.ok-pc:hover .ok-pc-gift { opacity: 1; transform: scale(1); }
.ok-pc-gift { position: absolute; right: -8px; top: -6px; font-style: normal; font-size: 15px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.ok-acts { order: 0; }
.ok-btn .ok-ico { font-size: 18px; }
/* okey ters çevrilmiş */
.ok-t.flipped { background: linear-gradient(150deg, #8d5cf0, #5a33b8 60%, #45258f) !important; box-shadow: inset 0 -3px 0 #3a1f7a, inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 5px rgba(0, 0, 0, 0.35) !important; }
.ok-t.flipped b, .ok-t.flipped em { visibility: hidden; }
.ok-t.flipped i { visibility: hidden; }
.ok-t.flipped::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 65% 35%, transparent 42%, #ffe08a 43%); opacity: 0.85; }
.ok-slot .ok-t.flipped.sel { box-shadow: 0 0 0 3px #ffcf3d, 0 10px 18px rgba(0, 0, 0, 0.45) !important; }
.ok-t.flipanim { animation: ok-flip 0.4s ease; }
@keyframes ok-flip { 50% { transform: rotateY(90deg); } }
/* deste */
.ok-deck { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; background: rgba(0, 0, 0, 0.18); color: #fff; }
.ok-deck-st { position: relative; width: 50px; height: calc(70px + var(--n) * 3px); }
.ok-deck-st .ok-t { --tw: 50px; position: absolute; left: 0; bottom: calc(var(--i) * 3px); box-shadow: inset 0 -3px 0 #3a1f7a, 0 1px 0 #2a1460, 0 2px 6px rgba(0, 0, 0, 0.35); }
.ok-deck-hand { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-style: normal; font-size: 20px; animation: ok-bob 1s ease-in-out infinite; z-index: 3; }
.ok-deck-n { display: flex; flex-direction: column; align-items: flex-start; }
.ok-deck-n b { font: 700 24px/1 "Fredoka", sans-serif; color: #ffe08a; }
.ok-deck.low .ok-deck-n b { color: #ff8a8a; }
/* ikram menüsü ve uçuş */
.ok-giftm { position: fixed; z-index: 10045; width: 260px; padding: 10px; border-radius: 20px; background: #241a3f; border: 1.5px solid rgba(166, 123, 251, 0.5); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); animation: ok-in 0.25s cubic-bezier(.34,1.56,.64,1); color: #fff; }
.ok-giftm-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 8px; }
.ok-giftm-h b { font: 600 14px "Fredoka", sans-serif; }
.ok-giftm-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ok-giftm-g button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; animation: ok-in 0.3s ease both; animation-delay: calc(var(--i) * 30ms); transition: transform 0.15s, background 0.15s; }
.ok-giftm-g button:hover { transform: translateY(-3px) scale(1.05); background: rgba(255, 207, 61, 0.18); }
.ok-giftm-g .ok-ico { width: 40px; height: 40px; font-size: 30px; }
.ok-giftm-g small { font: 600 11.5px "Fredoka", sans-serif; color: rgba(255, 255, 255, 0.8); }
.ok-gfly { position: fixed; left: 0; top: 0; z-index: 10050; pointer-events: none; font-size: 40px; animation: ok-gfly 0.95s cubic-bezier(.45,.05,.4,1) forwards; }
.ok-gfly .ok-ico { width: 56px; height: 56px; font-size: 42px; }
@keyframes ok-gfly {
  0% { transform: translate(calc(var(--x0) - 28px), calc(var(--y0) - 28px)) scale(0.4) rotate(-20deg); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate(calc((var(--x0) + var(--x1)) / 2 - 28px), calc((var(--y0) + var(--y1)) / 2 - 110px)) scale(1.3) rotate(10deg); }
  100% { transform: translate(calc(var(--x1) - 28px), calc(var(--y1) - 28px)) scale(0.9) rotate(0); opacity: 1; }
}
.ok-gbadge { position: absolute; right: -14px; bottom: -10px; z-index: 4; font-size: 24px; animation: ok-gb 7s ease forwards; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.ok-gbadge .ok-ico { width: 32px; height: 32px; font-size: 24px; }
@keyframes ok-gb { 0% { transform: scale(0); } 6% { transform: scale(1.3); } 10% { transform: scale(1); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.ns-sys.gift { color: #ffe08a; }
.ok-gchat { margin-right: 4px; }
@media (min-width: 761px) {
  .ok-rack { max-width: calc(var(--cols) * 52px); }
}
@media (max-width: 760px) {
  .ok-tb span { display: none; }
  .ok-tb { padding: 0 10px; }
  .ok-mtiles { gap: 8px; }
  .ok-mtile { padding: 12px 8px 10px; }
  .ok-mtile b { font-size: 17px; }
  .ok-hero-modes { grid-template-columns: 1fr; }
  .ok-deck { padding: 4px 6px 4px 4px; gap: 6px; }
  .ok-deck-st { width: 36px; height: calc(50px + var(--n) * 2px); }
  .ok-deck-st .ok-t { --tw: 36px; bottom: calc(var(--i) * 2px); }
  .ok-deck-n b { font-size: 18px; }
  .ok-ss .ns-av { --s: 40px; }
  .ok-ss > i { width: 40px; height: 40px; }
  #ns.ok-on .g-head h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ok-gfly, .ok-gbadge, .ok-deck-hand, .ok-t.flipanim { animation: none !important; } }
.ok-bots { width: 100%; box-sizing: border-box; align-self: stretch; }

/* Oyun sırasında izleyici: bilgisayar koltuğuna otur */
.ok-sitin { flex: 0 0 auto; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 14px; font: 700 14px/1.2 "Fredoka", sans-serif; color: #3a2400; background: linear-gradient(135deg, #ffd966, #ffb627); box-shadow: 0 4px 0 #c98a00; }
.ok-sitin:active { transform: translateY(2px); box-shadow: 0 2px 0 #c98a00; }
@media (max-width: 760px) { .ok-sitin { order: 4; flex-basis: 100%; } }

/* === AJAN3: masa — üst çubuk, alt dok (ıstaka + düğmeler hep görünür), deste, telefon === */
/* sohbet açıkken (geniş ekran) masa sohbetin soluna sığar */
body.ns-docked #ns.ok-on { --nsw: min(1180px, calc(100vw - 400px)); max-width: var(--nsw); }
/* üst çubuk: düğmeler her ekranda yazılı */
.ok-top { flex-wrap: nowrap; min-width: 0; }
.ok-hand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-mode { flex: none; white-space: nowrap; }
.ok-top-r { flex: none; align-items: center; }
.ok-tb { white-space: nowrap; position: relative; box-shadow: 0 3px 0 rgba(76, 47, 140, 0.35); }
.ok-tb:active { transform: translateY(2px); box-shadow: none; }
.ok-tb span:not(.ok-ico) { display: inline; }
.ok-tb .ok-ico { display: inline-grid; }
.ok-tb.chat { display: none; padding: 0 10px; }
.ok-tb-n { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 99px; background: #e5484d; color: #fff; font: 700 11px/19px "Manrope", sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--bg, #0b0818); }
.ok-tb-n[hidden] { display: none; }
.ok-tb.chat.ping { animation: ok-bob 1.2s ease-in-out infinite; border-color: #ffcf3d; }
:root[data-theme="light"] .ok-tb { color: #2a1a5e; background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08)); border-color: rgba(124, 79, 224, 0.45); }
:root[data-theme="light"] .ok-tb.exit { color: #8a1c22; background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.45); }
/* alt dok: oyuncu satırı + düğmeler + ıstaka; ekran kısaysa ekranın altına yapışır */
.ok-dock { position: sticky; bottom: 0; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.ok-dock::before { content: ""; position: absolute; inset: -10px -8px 0; z-index: -1; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, transparent, var(--bg, #0b0818) 14px); pointer-events: none; }
/* deste: üst üste taşlar, kalan sayı rozeti */
.ok-deck { border: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.14)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.ok-deck-st .ok-t { transform: rotate(calc((var(--i) - 2) * 1.2deg)); }
.ok-deck-st .ok-t:last-of-type { box-shadow: inset 0 -3px 0 #3a1f7a, 0 0 0 1.5px rgba(255, 224, 138, 0.55), 0 4px 10px rgba(0, 0, 0, 0.45); }
.ok-deck.can .ok-deck-st .ok-t:last-of-type { animation: ok-deckup 1.2s ease-in-out infinite; }
@keyframes ok-deckup { 50% { transform: translateY(-4px) rotate(-2deg); } }
.ok-deck-n b { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
@media (prefers-reduced-motion: reduce) { .ok-deck.can .ok-deck-st .ok-t:last-of-type, .ok-tb.chat.ping { animation: none !important; } }
/* kurallar "?" sadece sayfa başlığında */
#ok-rules { display: none !important; }

@media (max-width: 1239px) {
  /* sohbet yan sekme yerine üst çubukta */
  body:has(#ok-table) #ns-chat:not(.open) .ns-chat-fab { display: none !important; }
  .ok-tb.chat { display: inline-flex; }
}
@media (max-width: 760px) {
  .ok-table { gap: 8px; }
  .ok-top { gap: 6px; }
  .ok-mode { padding: 4px 9px; font-size: 12px; }
  .ok-hand { font-size: 13px; flex: 1 1 auto; }
  .ok-top-r { gap: 5px; }
  .ok-tb { height: 34px; padding: 0 9px; gap: 4px; font-size: 13px; border-radius: 11px; }
  .ok-tb .ok-ico { font-size: 15px; }
  .ok-tb.chat { padding: 0 8px; }
  /* masa satırları (eski kural 3. boş satır bırakıyordu) */
  .ok-felt { grid-template-columns: 54px repeat(4, minmax(0, 1fr)) 54px; grid-template-rows: auto auto; grid-template-areas: "p3 p3 p2 p2 p1 p1" "d3 mid mid mid mid d0"; padding: 8px; gap: 6px; }
  .m-h .ok-felt { grid-template-rows: auto auto auto; grid-template-areas: "p3 p3 p2 p2 p1 p1" "d3 mid mid mid mid d0" "melds melds melds melds melds melds"; }
  .ok-mid { gap: 6px; min-width: 0; }
  .ok-deck { padding: 4px 6px 4px 4px; gap: 5px; border-radius: 14px; }
  .ok-deck-st { width: 32px; height: calc(44px + var(--n) * 2px); }
  .ok-deck-st .ok-t { --tw: 32px; }
  .ok-deck-n b { font-size: 17px; }
  .ok-deck small { font-size: 8.5px; letter-spacing: 0.03em; }
  .ok-indw { gap: 6px; padding: 5px 7px; border-radius: 14px; }
  .ok-ind .ok-t { --tw: 32px; }
  .ok-dstack { width: 50px; height: 66px; }
  .ok-dstack .ok-t { --tw: 38px; }
  .ok-pc, .r1 .ok-pc, .r3 .ok-pc { padding: 6px 4px 5px; gap: 3px; }
  .ok-pc-av .ns-av { --s: 32px !important; }
  /* ben satırı tek satır */
  .ok-dock { gap: 6px; }
  .ok-me { flex-wrap: nowrap; min-height: 0; padding: 5px 8px; gap: 8px; border-radius: 16px; }
  .ok-me-av .ns-av { --s: 30px !important; }
  .ok-me-t b { font-size: 13.5px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .ok-me-t b .ok-tm { display: none; }
  .ok-me-t small { font-size: 11.5px; white-space: nowrap; }
  .ok-status { order: 0; flex: 1 1 0; padding: 6px 8px; font-size: 12.5px; line-height: 1.2; border-radius: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ok-status.turn { box-shadow: 0 3px 0 #c98a00; }
  .ok-timer { margin-left: 0; min-width: 30px; font-size: 15px; }
  .ok-sitin { order: 4; flex-basis: auto; padding: 6px 10px; font-size: 13px; }
  /* düğmeler tek sırada: simge üstte, yazı altta */
  .ok-acts { flex-wrap: nowrap; gap: 5px; }
  .ok-btn { flex: 1 1 0; min-width: 0; height: auto; min-height: 48px; padding: 5px 3px 4px; flex-direction: column; justify-content: center; gap: 1px; border-radius: 13px; }
  .ok-btn span:not(.ok-ico) { font-size: 12px; line-height: 1.1; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .ok-btn .ok-ico { font-size: 17px; }
  .ok-hint { display: none; }
}
@media (max-width: 380px) {
  .ok-hand { font-size: 12px; }
  .ok-tb { padding: 0 7px; font-size: 12.5px; }
  .ok-btn span:not(.ok-ico) { font-size: 11.5px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .ok-melds { max-height: 96px; }
}
/* el sonu / oyun sonu */
.ok-final img { display: block; margin: 0 auto; }
.ok-end-tbl th { white-space: nowrap; }
.ok-podi.p4 i { top: -9px; right: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: var(--ink, #fff); font: 700 13px "Fredoka", sans-serif; }
.ok-end-acts { position: sticky; bottom: -18px; margin: 14px -18px -18px; padding: 12px 18px 16px; background: linear-gradient(180deg, transparent, var(--card, #1c1533) 12px); z-index: 2; }
@media (max-width: 760px) {
  .ok-end { padding: 8px; }
  .ok-end-card { max-height: calc(100dvh - 16px); }
  .ok-end-head b { font-size: 20px; }
  .ok-end-wolf img { width: 56px; height: 56px; }
  .ok-final img { width: 90px; height: 90px; }
  .ok-final h3 { font-size: 22px; }
  .ok-final p { font-size: 13px; margin-bottom: 14px; }
  .ok-pod { flex-wrap: nowrap; gap: 6px; }
  .ok-podi { flex: 1 1 0; min-width: 0; padding: 10px 4px 8px; border-radius: 14px; }
  .ok-podi.p1 { padding-bottom: 14px; }
  .ok-podi .ns-av { --s: 34px !important; }
  .ok-podi.p1 .ns-av { --s: 44px !important; }
  .ok-podi b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ok-podi em { font-size: 16px; }
  .ok-podi i { font-size: 18px; top: -10px; right: -4px; }
  .ok-pod.team .ok-podi { min-width: 0; }
  .ok-end-acts { bottom: -14px; margin: 12px -14px -14px; padding: 10px 14px 14px; }
  .ok-end-acts .btn { flex: 1 1 auto; }
}
.ok-end-acts .btn { justify-content: center; }
:root[data-theme="light"] .ok-podi { background: rgba(124, 79, 224, 0.08); }
:root[data-theme="light"] .ok-podi.p4 i { background: rgba(124, 79, 224, 0.18); }
:root[data-theme="light"] .ok-podi.me b, :root[data-theme="light"] .ok-end-tbl tr.me .ok-end-n b { color: #a86a00; }
/* === /AJAN3 === */
/* === AJAN2: giriş, davet, lobi, kurallar ================================== */
/* tanıtım taşları: sitenin genel .hero sınıfıyla çakışmasın diye "okh" */
.ok-t.okh { --tw: 40px; animation: ok-drop 0.5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ok-hero-rack .ok-t.okh { --tw: 42px; }
.ok-hero-rack .ok-t.okh.wild em { top: -7px; right: -7px; }
.ok-hr-row.two { min-height: 58px; }
.ok-hr-row.two em { margin-left: 10px; font: 600 13px "Fredoka", sans-serif; font-style: normal; color: #ffe08a; white-space: nowrap; }
.ok-hero-demo { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 224, 138, 0.12), transparent 60%), rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .ok-hero-demo { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 204, 51, 0.22), transparent 60%), linear-gradient(180deg, #efe6ff, #f8f1ff); border-color: rgba(139, 92, 246, 0.2); }
/* özellik ızgarası: kartın altı boş kalmasın */
.ok-hero-ft { display: flex; flex-direction: column; gap: 8px; }
.ok-hero-ft > small { font: 800 11.5px "Manrope", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); text-align: center; }
.ok-hero-ft > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ok-hero-ft span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.22); font: 600 13px/1.2 "Fredoka", sans-serif; color: var(--ink); text-align: center; animation: ns-pk-in 0.4s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(0.15s + var(--i) * 60ms); }
.ok-hero-ft span i { font-style: normal; font-size: 22px; line-height: 1; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
.ok-hero-ft span:hover i { transform: scale(1.2) rotate(-8deg); }
:root[data-theme="light"] .ok-hero-ft span { background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, 0.18); }

/* "Odaya katıl": boş orta kısım yerine 5 taşlık kod önizlemesi */
.ok-jtiles { display: flex; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.ok-jtiles span { --tw: 36px; width: 36px; height: 48px; display: grid; place-items: center; border-radius: 7px; font: 700 21px "Fredoka", sans-serif; color: #1b6ad6; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.28); border: 0; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s; }
.ok-jtiles span:nth-child(2n) { color: #e0313b; }
.ok-jtiles span:nth-child(3) { color: #e39a00; }
.ok-jtiles span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 224, 138, 0.35); }
.ok-jtiles span.on { background: linear-gradient(180deg, #fffdf7 0%, #f6efdc 72%, #e9dcbd 100%); box-shadow: inset 0 -3px 0 #d8c8a3, 0 3px 8px rgba(0, 0, 0, 0.25); transform: translateY(-3px); }
.ok-jtiles span.on::after { display: none; }
:root[data-theme="light"] .ok-jtiles span:not(.on) { background: #fff8e6; box-shadow: inset 0 0 0 2px rgba(201, 138, 0, 0.25); }
@media (max-width: 999.98px) { .ok-jtiles { display: none; } }
@media (min-width: 1000px) { .ok-home .ns-jc { display: flex; flex-direction: column; } .ok-home .ns-jc .ns-join-row { margin-top: auto; } }

/* "Kaç arkadaş?" sayıları ortada */
.ok-seatpick { width: 100%; }
.ns-home .ok-seatpick #ns-seats { display: flex !important; justify-content: center; gap: 6px; width: max-content !important; max-width: 100%; margin: 6px auto 0 !important; }

/* ---- Bilgisayara karşı kartı ---- */
.ok-bots { display: flex; flex-direction: column; }
.ok-bots.h { background: linear-gradient(145deg, rgba(255, 179, 71, 0.22), rgba(139, 92, 246, 0.16)); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 71, 0.5), 0 14px 34px rgba(30, 10, 80, 0.35); }
.ok-bots { transition: background 0.35s, box-shadow 0.35s; }
.ok-mtile { overflow: hidden; }
.ok-mtile-art { gap: 3px; height: 38px; }
.ok-mtile-art .ok-t.xs { --tw: 22px; }
.ok-mtile-art .n101 { margin-left: 6px; font-size: 24px; }
.ok-mtile.m-n.on { border-color: #a67bfb; background: linear-gradient(180deg, rgba(166, 123, 251, 0.32), rgba(139, 92, 246, 0.12)); box-shadow: 0 0 0 4px rgba(166, 123, 251, 0.2), 0 12px 24px rgba(0, 0, 0, 0.3); }
.ok-mtile.m-n.on em { background: #a67bfb; color: #fff; }
.ok-mtile.m-h.on { border-color: #ffb347; background: linear-gradient(180deg, rgba(255, 179, 71, 0.3), rgba(255, 179, 71, 0.08)); box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.2), 0 12px 24px rgba(0, 0, 0, 0.3); }
.ok-mtile:not(.on) { opacity: 0.78; }
.ok-mtile:not(.on):hover { opacity: 1; }
:root[data-theme="light"] .ok-mtile { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .ok-mtile.m-n.on { background: linear-gradient(180deg, #efe4ff, #fff); }
:root[data-theme="light"] .ok-mtile.m-h.on { background: linear-gradient(180deg, #ffe9c4, #fff); }
:root[data-theme="light"] .ok-mtile-art .n101 { color: #e39a00; text-shadow: 0 2px 0 #f6d38a; }
/* seçenekler: etiket + eşit genişlikte düğmeler, mod değişince yükseklik sabit */
.ok-bopts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 14px 0 12px; padding: 12px; border-radius: 20px; background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.06); }
.ok-bopt { display: contents; }
.ok-bopt-l { font: 600 14px "Fredoka", sans-serif; color: var(--ink-dim); white-space: nowrap; }
.ok-bopts .ok-seg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.ok-bopts .ok-seg button { position: relative; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.ok-seg button:disabled { opacity: 0.45; cursor: not-allowed; }
.ok-seg button sup { margin-left: 3px; padding: 1px 4px; border-radius: 6px; background: #ffb347; color: #3a2400; font: 800 9px "Manrope", sans-serif; vertical-align: 2px; }
.ok-bots.h .ok-seg button.on { background: linear-gradient(135deg, #ffc56b, #f29e33); color: #3a2400; box-shadow: 0 3px 0 #b86a00; }
.ok-bsum { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
.ok-bsum-seats { display: flex; flex: none; }
.ok-bs { width: 34px; height: 34px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; background: #2a1f4d; box-shadow: 0 0 0 2.5px var(--bg-soft, #14102b), 0 0 0 4.5px rgba(166, 123, 251, 0.6); font-size: 18px; animation: ns-pk-in 0.4s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * 60ms); }
.ok-bs:first-child { margin-left: 0; }
.ok-bs .ok-ico { width: 24px; height: 24px; }
.ok-bs.me { background: var(--c); overflow: hidden; }
.ok-bs.me img { width: 100%; height: 100%; object-fit: cover; }
.ok-bsum.team .ok-bs.t0 { box-shadow: 0 0 0 2.5px var(--bg-soft, #14102b), 0 0 0 4.5px #ffb347; }
.ok-bsum-t { min-width: 0; display: flex; flex-direction: column; }
.ok-bsum-t b { font: 700 15px "Fredoka", sans-serif; color: var(--ink); }
.ok-bsum-t small { font-size: 12.5px; color: var(--ink-dim); }
.ok-bopts.chg .ok-bsum { animation: ok-in 0.35s cubic-bezier(.34,1.56,.64,1); }
:root[data-theme="light"] .ok-bopts { background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, 0.14); }
:root[data-theme="light"] .ok-seg { background: #f1eafd; box-shadow: inset 0 0 0 1.5px rgba(139, 92, 246, 0.16); }
:root[data-theme="light"] .ok-seg button { color: #55507a; }
:root[data-theme="light"] .ok-seg button.on { color: #fff; }
:root[data-theme="light"] .ok-bots.h .ok-seg button.on { color: #3a2400; }
:root[data-theme="light"] .ok-bsum { background: rgba(139, 92, 246, 0.08); }
:root[data-theme="light"] .ok-bs { background: #e9defd; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px rgba(139, 92, 246, 0.5); }
:root[data-theme="light"] .ok-bsum.team .ok-bs.t0 { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #f29e33; }
@media (max-width: 480px) {
  .ok-bopts { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; }
  .ok-bopt-l { margin-top: 2px; font-size: 13px; }
  .ok-mtile small { font-size: 12px; }
}

/* ---- davet kartı: küçük masa ---- */
.ok-ss.free > i { border: 2px dashed rgba(255, 255, 255, 0.28); background: transparent; box-shadow: none; font-size: 20px; opacity: 0.85; }
.ok-ss.free b { color: var(--ink-dim); font-weight: 500; }
:root[data-theme="light"] .ok-ss.free > i { border-color: rgba(139, 92, 246, 0.35); }
:root[data-theme="light"] .ok-ss > i { background: #efe6ff; box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.2); }
.ok-mini-table { grid-template-rows: auto minmax(86px, auto) auto; row-gap: 10px; }
.ok-mt-felt b { color: #ffe08a !important; }
.ok-mt-felt small { margin-top: 2px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 224, 138, 0.16); color: #ffe08a; font: 600 11.5px "Fredoka", sans-serif; }
.ok-mini-table.team .ok-mt-felt { background: radial-gradient(ellipse at 50% 40%, rgba(255, 179, 71, 0.3), transparent 70%), linear-gradient(180deg, #3b2370, #1a1039); }
.ok-ss .ns-av { margin: 0 !important; }

/* ---- lobi ---- */
.ok-lobby [hidden] { display: none !important; }
#ns .ok-lobby .ns-a-set { align-self: start !important; height: auto !important; }
.ok-lobby .ns-sum { display: flex !important; flex: 1 0 auto !important; min-height: auto !important; overflow: visible !important; }
.ok-lobby .ns-settings .ns-chip { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; text-overflow: ellipsis; }
.ok-lobby .ns-settings .ns-chips[data-set="vs"], .ok-lobby .ns-settings .ns-chips[data-set="mode"], .ok-lobby .ns-settings .ns-chips[data-set="team"] { display: grid; grid-template-columns: 1fr 1fr; }
.ok-lobby .ns-settings .ns-chips[data-set="lenH"], .ok-lobby .ns-settings .ns-chips[data-set="lenN"], .ok-lobby .ns-settings .ns-chips[data-set="time"], .ok-lobby .ns-settings .ns-chips[data-set="max"] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ok-lobby .ns-settings .ns-chips[data-set="lenH"] .ns-chip, .ok-lobby .ns-settings .ns-chips[data-set="time"] .ns-chip { padding: 0 4px; }
.ok-lobby .ns-tog { min-width: 0; }
.ok-lobby .ns-tog > span, .ok-lobby .ns-tog b, .ok-lobby .ns-tog small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-lobby .ok-set-vs .ns-chip.on, .ok-lobby .ok-set-mode .ns-chip.on { font-weight: 700; }
.ok-lobby .ok-sum-seats { flex: 1; display: flex; align-items: center; justify-content: center; }
.ok-lobby .ok-sum-seats .ok-mini-table { width: 100%; max-width: 380px; }
@media (max-width: 640px) {
  .ok-lobby .ns-sum { order: 2; }
  .ok-lobby .ok-mini-table { grid-template-columns: 1fr 1.2fr 1fr; gap: 6px; }
  .ok-lobby .ok-ss .ns-av { --s: 42px; }
  .ok-lobby .ok-ss b { max-width: 84px; }
}

/* ---- kurallar penceresi: Okey mor, 101 altın; farklı örnek ve maddeler ---- */
.ok-introm .ok-intro-tabs button { display: inline-flex; align-items: center; gap: 4px; }
.ok-introm[data-t="h"] .ok-intro-tabs button.on { background: linear-gradient(135deg, #ffc56b, #f29e33); border-color: #f29e33; color: #3a2400; }
.ok-rp { display: flex; flex-direction: column; gap: 10px; text-align: left; animation: ns-pk-in 0.3s cubic-bezier(.34,1.56,.64,1) both; }
.ok-rp[hidden] { display: none; }
.ok-rdemo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 18px; background: linear-gradient(180deg, #3a2577, #241650); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.ok-rp.h .ok-rdemo { background: linear-gradient(180deg, #6b4210, #3d2508); }
.ok-rdemo > span { display: flex; gap: 2px; }
.ok-rdemo em { flex-basis: 100%; text-align: center; font: 700 13.5px "Fredoka", sans-serif; font-style: normal; color: #ffe08a; }
.ok-rp.h .ok-rdemo em { color: #ffd27a; }
.ok-rtag { margin: 0; padding: 7px 12px; border-radius: 12px; text-align: center; font: 600 13.5px/1.35 "Fredoka", sans-serif; background: rgba(166, 123, 251, 0.16); color: var(--ink); }
.ok-rp.h .ok-rtag { background: rgba(255, 179, 71, 0.18); }
.ok-rules { margin: 0; }
.ok-rules li { font-size: 14px !important; line-height: 1.4 !important; }
.ok-rules li > span { font-size: 15px; background: rgba(166, 123, 251, 0.2) !important; }
.ok-rp.h .ok-rules li > span { background: rgba(255, 179, 71, 0.22) !important; }
/* tanıtım kartı: küçük masa + boşluk dağıtımı */
.ns-invite.ok-heroc .ok-hero { justify-content: space-between; }
.ns-invite.ok-heroc .ns-hero-stats { margin-top: 0; }
.ok-hero-table .ok-mini-table { max-width: 360px; margin: 0 auto; grid-template-rows: auto minmax(64px, auto) auto; row-gap: 4px; }
.ok-hero-table .ok-mt-felt { min-height: 64px; }
.ok-hero-table .ok-ss .ns-av, .ok-hero-table .ok-ss > i { --s: 38px; width: 38px; height: 38px; }
.ok-hero-table .ok-ss b { font-size: 12px; }
.ns-home .ok-seatpick #ns-seats .ns-chip { flex: none; width: 38px; height: 38px; min-width: 0; padding: 0; justify-content: center; }
@media (min-width: 1000px) { .ns-home .ok-seatpick #ns-seats .ns-chip { width: 32px; height: 32px; } }
.ok-bots-h small { display: block; line-height: 1.35; margin-top: 2px; }
@media (max-width: 480px) {
  .ok-mtile .n101 { display: none; }
  .ok-mtile em { top: 6px; right: 6px; width: 20px; height: 20px; font-size: 11px; }
}
.ok-introm .g-go { margin-top: 14px; }
.ok-ss-crown { top: -2px !important; left: calc(50% - 30px) !important; transform: rotate(-22deg) !important; font-size: 15px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); z-index: 1; }
@media (min-width: 1000px) { .ns-entry.inv .ns-entry-r { justify-content: center !important; gap: 16px; } }
.ok-ss > i.ok-ss-crown { width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; font-size: 15px; }
#ns .ok-lobby .ns-a-mid { min-height: auto !important; }
.ok-sr .ns-av { flex: none; --s: 28px; width: 28px; height: 28px; }
:root[data-theme="light"] .ok-ss > i.ok-ss-crown, .ok-ss > i.ok-ss-crown { background: none; box-shadow: none; border: 0; }
.ok-lobby .ns-inv-acts2 .ns-cbtn span { display: inline !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-lobby .ns-inv-acts2 .ns-cbtn { min-width: 0; }
/* === /AJAN2 === */

/* Bana gelen yer değiştirme isteği: sayfanın neresinde olursam olayım görünsün */
.ok-sr.mine { position: fixed; left: 50%; top: 86px; transform: translateX(-50%); z-index: 70; width: min(92vw, 460px); box-sizing: border-box; padding: 10px 12px; border-radius: 16px; background: #2a1650; color: #fff; border: 2px solid #ffc94d; box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: okSrIn .3s ease-out; }
.ok-sr.mine span { color: #fff; }
@keyframes okSrIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* === TUR2 B3: lobi sığdırma, eşli takımlar, okey görselleri, sohbet düğmeleri === */
/* -- okey görseli olan ns ikonları (data-oki): boyut aynı kalsın -- */
img.ns-ic.oki { object-fit: contain; }
/* ayar ikonları görselse hepsi aynı boy (set-vs/game/team/len ICO ile 22px) */
.ns-a-set .ns-set-ic img.ns-ic.oki { width: 22px !important; height: 22px !important; }
.ns-a-set .ns-tog-ic img.ns-ic.oki { width: 20px !important; height: 20px !important; }
/* mod kartı: görsel varsa taş çizimi yerine görsel */
.ok-ico.ok-mart, .ok-ico.ok-mart > i { display: contents; }
.ok-ico.ok-mart.img > i { display: none; }
.ok-ico.ok-mart.img img { display: block; width: auto; height: 46px; max-width: 100%; }
.ok-ico.ok-hm-ic { vertical-align: -0.25em; }
.ok-hero-ft span.ok-ico.ok-ft-ic { display: inline-grid; width: 1.2em; height: 1.2em; padding: 0; gap: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.ok-hero-ft span.ok-ico.ok-ft-ic.img { width: 30px; height: 30px; }
.ok-inv-mic .ok-ico { width: 1.15em; height: 1.15em; }
.ns-set-ic.ok-emo .ok-ico { width: 22px; height: 22px; font-size: 18px; }
/* küçük masa: masa görseli varsa çuha yerine o (yoksa eski degrade) */

/* -- sohbet: emoji ve gönder düğmesi görselleri -- */
.ok-emo-btn .ok-cbi, .ok-send-btn .ok-cbi { width: 24px; height: 24px; font-size: 20px; pointer-events: none; }
.ok-send-btn .ok-cbi { font-size: 17px; }
.ok-send-btn .ok-cbi.img, .ok-emo-btn .ok-cbi.img { width: 28px; height: 28px; }
.ok-emo-btn .ok-cbi i, .ok-send-btn .ok-cbi i { line-height: 1; }

/* -- eşli: takım rozeti -- */
.ok-tbadge { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--tc); color: #fff; font: 800 10.5px/1 "Fredoka", sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--bg-soft, #14102b), 0 2px 6px rgba(0, 0, 0, 0.35); }
.ok-tbadge .ok-ico { width: 100%; height: 100%; }
.ok-tbadge .ok-ico.img { width: 140%; height: 140%; }
.ok-tbadge:has(.ok-ico.img) { background: none; box-shadow: none; }
:root[data-theme="light"] .ok-tbadge { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(76, 47, 140, 0.25); }
/* küçük masa: eşler aynı renk, karşılıklı ve çizgiyle bağlı */
.ok-mtw { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ok-mtw .ok-mini-table { width: 100%; }
.ok-mini-table { position: relative; }
.ok-mini-table.team .ok-mt-felt, .ok-mini-table.team .ok-ss { position: relative; z-index: 1; }
.ok-mt-line { position: absolute; z-index: 0; pointer-events: none; opacity: 0.75; }
.ok-mt-line.l0 { left: calc(50% - 1.5px); top: 18%; bottom: 18%; width: 3px; background: repeating-linear-gradient(180deg, var(--tc) 0 7px, transparent 7px 12px); }
.ok-mt-line.l1 { top: calc(50% - 1.5px); left: 14%; right: 14%; height: 3px; background: repeating-linear-gradient(90deg, var(--tc) 0 7px, transparent 7px 12px); }
.ok-ss.t0 .ns-av, .ok-ss.t0 > i:not(.ok-ss-crown):not(.ok-tbadge), .ok-ss.t1 .ns-av, .ok-ss.t1 > i:not(.ok-ss-crown):not(.ok-tbadge) { box-shadow: 0 0 0 3px var(--tc), 0 0 14px color-mix(in srgb, var(--tc) 45%, transparent); }
.ok-ss.bot.can.t0 > i:not(.ok-ss-crown):not(.ok-tbadge), .ok-ss.bot.can.t1 > i:not(.ok-ss-crown):not(.ok-tbadge), .ok-ss.free.t0 > i:not(.ok-tbadge), .ok-ss.free.t1 > i:not(.ok-tbadge) { border: 2px dashed var(--tc); box-shadow: none; }
.ok-ss.t0 b, .ok-ss.t1 b { color: color-mix(in srgb, var(--tc) 55%, var(--ink, #fff)); }
.ok-ss.mine.t0, .ok-ss.mine.t1 { background: color-mix(in srgb, var(--tc) 16%, transparent); box-shadow: inset 0 0 0 2px var(--tc); }
.ok-ss.mine.t0 b, .ok-ss.mine.t1 b { color: var(--tc); }
.ok-ss > .ok-ss-tb { position: absolute; top: 2px; right: calc(50% - 30px); z-index: 2; }
.ok-ss > i.ok-tbadge.ok-ss-tb, :root[data-theme="light"] .ok-ss > i.ok-tbadge.ok-ss-tb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--tc); font-size: 10.5px; box-shadow: 0 0 0 2px var(--bg-soft, #14102b), 0 2px 6px rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] .ok-ss > i.ok-tbadge.ok-ss-tb { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(76, 47, 140, 0.25); }
.ok-ss > i.ok-tbadge.ok-ss-tb:has(.ok-ico.img) { background: none; box-shadow: none; }
/* Takım A / Takım B etiketi: masanın üst köşelerinde */
.ok-mt-lg { position: relative; z-index: 1; grid-row: 1; align-self: start; justify-self: stretch; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: center; padding: 5px 8px 5px 6px; border-radius: 12px; background: color-mix(in srgb, var(--tc) 13%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 55%, transparent); }
.ok-mt-lg.t0 { grid-column: 1; }
.ok-mt-lg.t1 { grid-column: 3; }
.ok-mt-lg .ok-tbadge { grid-row: 1 / 4; width: 20px; height: 20px; font-size: 11px; }
.ok-mt-lg b { font: 700 12.5px/1.15 "Fredoka", sans-serif; color: var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-mt-lg small { grid-column: 2; font-size: 10.5px; line-height: 1.2; color: var(--ink-dim, #b9b1d6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="light"] .ok-mt-lg b { color: color-mix(in srgb, var(--tc) 75%, #000); }
:root[data-theme="light"] .ok-ss.t0 b, :root[data-theme="light"] .ok-ss.t1 b { color: color-mix(in srgb, var(--tc) 60%, #2a1f4d); }
.ok-ss > i.ok-tbadge .ok-ico, .ok-lobby.fit .ok-ss > i.ok-tbadge .ok-ico { width: 100%; height: 100%; font-size: inherit; }
/* Oyuncular listesi: takım rengi + rozet */
.ns-players.ok-teams .ns-pc.ok-tmc { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 75%, transparent) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 18%, transparent), transparent 75%) !important; }
.ns-players.ok-teams .ns-pc.ok-tmc .ns-av { box-shadow: 0 0 0 2.5px var(--tc); }
.ns-pc-av { position: relative; }
.ns-pc-av > .ok-pc-tb { position: absolute; right: -5px; bottom: -3px; z-index: 2; width: 17px; height: 17px; font-size: 10px; }

/* -- geniş ekran: lobi tek ekrana sığar (JS --ok-lh verir) -- */
body #ns.ns-wide .ok-lobby.fit { min-height: 0 !important; }
.ok-lobby.fit { height: var(--ok-lh); grid-template-rows: minmax(0, 1fr) !important; align-items: stretch !important; }
#ns .ok-lobby.fit .ns-a-set { align-self: stretch !important; height: auto !important; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(166, 123, 251, 0.4) transparent; }
#ns .ok-lobby.fit .ns-a-set > *, #ns .ok-lobby.fit .ns-a-set > div > .ns-set { flex: 0 0 auto !important; }
#ns .ok-lobby.fit .ns-a-set { justify-content: space-between; }
#ns .ok-lobby.fit .ns-a-mid { align-self: stretch !important; min-height: 0 !important; }
#ns .ok-lobby.fit .ns-a-right { align-self: stretch; min-height: 0; }
#ns .ok-lobby.fit .ns-chat-slot { min-height: 160px; }
.ok-lobby.fit .ns-sum { flex: 1 1 0 !important; min-height: 0 !important; overflow: hidden !important; }
.ok-lobby.fit .ok-sum-seats { flex: 1 1 0; min-height: 0; margin-bottom: 4px; container-type: size; }
.ok-lobby.fit .ok-sum-seats .ok-mtw { height: 100%; justify-content: center; gap: 6px; max-width: 400px; }
/* koltuk boyu kutunun yüksekliğine göre küçülür */
.ok-lobby.fit .ok-mini-table { --av: clamp(26px, calc((100cqh - 3 * 21px - 2 * 6px) / 3), 46px); grid-template-rows: auto minmax(calc(var(--av) + 18px), auto) auto; row-gap: 6px; padding: 0; }
.ok-lobby.fit .ok-mt-felt { min-height: calc(var(--av) + 18px); }
.ok-lobby.fit .ok-ss { padding: 2px 6px 3px; gap: 1px; }
.ok-lobby.fit .ok-ss .ns-av { --s: var(--av); }
.ok-lobby.fit .ok-ss > i:not(.ok-ss-crown):not(.ok-tbadge) { width: var(--av); height: var(--av); font-size: calc(var(--av) * 0.5); }
.ok-lobby.fit .ok-ss > i .ok-ico { width: calc(var(--av) * 0.65); height: calc(var(--av) * 0.65); }
.ok-lobby.fit .ok-ss b { font-size: 12.5px; line-height: 1.15; }
.ok-lobby.fit .ok-ss.bot em { position: absolute; left: 50%; top: calc(var(--av) - 9px); transform: translateX(-50%); padding: 1px 8px; font-size: 10.5px; z-index: 2; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.ok-lobby.fit .ok-ss > .ok-ss-tb { right: calc(50% - var(--av) / 2 - 8px); }
.ok-lobby.fit .ok-ss-crown { left: calc(50% - var(--av) / 2 - 6px) !important; }
.ok-lobby.fit .ok-sum-note { margin-top: 2px; font-size: 12px; line-height: 1.3; }
/* kısa ekranlar: boşlukları daralt */
.ok-lobby.fit.short .ok-sum-note { font-size: 11.5px; line-height: 1.25; }
.ok-lobby.fit.short .ns-sum-stats { margin-top: 6px; }
.ok-lobby.fit.short .ns-sum-stats span { padding: 4px 8px; }
.ok-lobby.fit.short .ns-sum h4.ns-boxh { margin-bottom: 2px; }
#ns .ok-lobby.fit.short .ns-invite-box { gap: 10px !important; padding: 12px 16px 12px !important; }
.ok-lobby.fit.short .ns-code span { width: 38px; height: 44px; font-size: 24px; }
.ok-lobby.fit.short .ns-cbtn { height: 38px; }
.ok-lobby.fit.tiny .ns-inv-hint { display: none; }
.ok-lobby.fit.tiny .ns-code span { width: 34px; height: 38px; font-size: 21px; }
.ok-lobby.fit.tiny .ok-sum-note, .ok-lobby.fit.tiny .ns-sum-stats { display: none; }
/* ayarlar sütunu: kısa ekranda satırlar sıkı */
.ok-lobby.fit.short .ns-a-set { padding: 10px 10px 10px; }
.ok-lobby.fit.short .ns-a-set h4.ns-boxh { margin-bottom: 2px; }
#ns .ok-lobby.fit.short .ns-a-set .ns-set { margin-top: 4px !important; padding: 3px 8px 5px !important; }
#ns .ok-lobby.fit.short .ns-a-set .ns-set-h { margin-bottom: 3px !important; min-height: 0 !important; }
#ns .ok-lobby.fit.short .ns-a-set .ns-set-ic { width: 22px !important; height: 22px !important; }
#ns .ok-lobby.fit.short .ns-a-set .ns-set-ic .ns-ic { width: 16px; height: 16px; }
#ns .ok-lobby.fit.short .ns-a-set .ns-togs { margin-top: 5px !important; }
.ok-lobby.fit.short .ns-a-set .ns-set-t { font-size: 14px; }
.ok-lobby.fit.short .ns-settings .ns-chip { min-height: 28px; height: 28px; font-size: 13px; }
.ok-lobby.fit.short .ns-a-set .ns-tog { padding-top: 4px; padding-bottom: 4px; }
/* lobide başlık alanı biraz daha sıkı (lobi yukarı çıkar) */
@media (min-width: 1000px) and (max-height: 900px) {
  body.ns-inlobby #ns.ns-wide .g-titles h1, body.ns-inlobby #ns.ns-wide .g-head h1 { margin-top: 0; margin-bottom: 0; }
}
/* === /TUR2 B3 === */
/* === TUR2 B2: oyun masası — tek ekrana sığan düzen, ahşap çerçeveli kadife masa, deste/gösterge tepsisi,
   çoklu sürükleme, masa görselleri, ikram animasyonu, per sahipleri, takımlar, üst çubuk ==================== */

/* ---- 1. tek ekran: sayfa başlığı ince, masa yüksekliği JS'ten (--okh), hiçbir şey yapışkan değil ---- */
body:has(#ok-table) main.g-page { padding-top: 6px; }
#ns.ok-on .g-head { margin-bottom: 0; }
#ns.ok-on .g-head h1 { font-size: 22px; line-height: 1.1; }
#ns.ok-on #ns-view { margin-top: 6px; }
.ok-table { max-width: 1180px; height: var(--okh, auto); min-height: 0; gap: 8px; container: oktable / inline-size; }
.ok-felt { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ok-dock { position: static; flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 0; z-index: auto; }
.ok-dock::before { display: none; }
.ok-top { flex: none; }
@media (max-height: 940px) { .ok-hint { display: none; } }
/* sohbet açıkken masa sohbetin soluna */
body.ns-docked #ns.ok-on { --nsw: min(1240px, calc(100vw - 400px)); }

/* ---- masa: ahşap çerçeve + mor kadife çuha ---- */
.ok-felt {
  --wood: linear-gradient(155deg, #b07b45 0%, #7a4a20 30%, #946130 55%, #5c3514 80%, #7b4b1f 100%);
  border: 9px solid transparent; border-radius: 30px; padding: 12px; gap: 10px;
  grid-template-columns: minmax(92px, 128px) minmax(0, 1fr) minmax(92px, 128px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "d2 p2 d1" "p3 mid p1" "d3 mid d0";
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 214, 120, 0.10), transparent 70%) padding-box,
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px) padding-box,
    radial-gradient(130% 100% at 50% 40%, #3b2482 0%, #2a175f 50%, #190c3b 100%) padding-box,
    var(--wood) border-box;
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, 0.4), inset 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(10, 4, 30, 0.45);
}
.m-h .ok-felt { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "d2 p2 d1" "p3 mid p1" "p3 melds p1" "d3 melds d0"; }
.oka-table .ok-felt { background: url(/assets/okey/table.webp) center / cover no-repeat padding-box, var(--wood) border-box; }
.ok-seat { align-self: center; }
#ok-p2 { align-self: start; }

/* ---- rakip kartları: oyuncu rengi (--pc) halka ve çerçeve; eşlide takım rengi + rozet, eşin etiketi ---- */
.ok-pc { background: linear-gradient(180deg, rgba(16, 7, 40, 0.62), rgba(16, 7, 40, 0.42)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc, #fff) 40%, transparent); }
.ok-pc .ok-pc-av .ns-av { box-shadow: 0 0 0 2.5px var(--pc, #fff), 0 3px 8px rgba(0, 0, 0, 0.4); border-radius: 50%; }
.ok-pc.turn { background: linear-gradient(180deg, rgba(255, 207, 61, 0.2), rgba(255, 207, 61, 0.08)); box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 22px rgba(255, 207, 61, 0.35); }
.ok-pc.tm { background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 24%, rgba(16, 7, 40, 0.7)), rgba(16, 7, 40, 0.45)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 75%, transparent); }
.ok-pc.tm.turn { box-shadow: inset 0 0 0 2px #ffcf3d, 0 0 0 3px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 22px rgba(255, 207, 61, 0.35); }
.ok-mate { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 2px 9px; border-radius: 999px; background: var(--tc); color: #1a0f00; font: 700 11px/1.35 "Fredoka", sans-serif; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.ok-team { position: absolute; right: -7px; bottom: -5px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-style: normal; background: var(--tc, #ff7a3d); box-shadow: 0 0 0 2px #1b0f3d, 0 2px 4px rgba(0, 0, 0, 0.4); }
.ok-team.t0 { --tc: #ff7a3d; } .ok-team.t1 { --tc: #22c3df; }
.ok-team b { font: 800 11px/1 "Fredoka", sans-serif; color: #1a0f00; }
.oka-team-a .ok-team.t0, .oka-team-b .ok-team.t1 { background: center / contain no-repeat; box-shadow: none; }
.oka-team-a .ok-team.t0 { background-image: url(/assets/okey/team-a.webp); }
.oka-team-b .ok-team.t1 { background-image: url(/assets/okey/team-b.webp); }
.oka-team-a .ok-team.t0 b, .oka-team-b .ok-team.t1 b { visibility: hidden; }
.ok-pc-gift { right: auto; left: -8px; }
.ok-pc-tiles i { background: linear-gradient(150deg, #8d5cf0, #4b2a99); }
.oka-tile-back .ok-pc-tiles i { background: url(/assets/okey/tile-back.webp) center / 100% 100% no-repeat; box-shadow: none; }
.ok-me-av { --pc: #ffc93d; }
.ok-me-av .ns-av { box-shadow: 0 0 0 2.5px var(--pc); border-radius: 50%; }
.ok-me-av.turn { box-shadow: 0 0 0 3px #ffcf3d, 0 0 16px rgba(255, 207, 61, 0.6); }
.ok-tm { color: #1a0f00; }

/* ---- 3. orta: deste + gösterge + okey tek tepside ---- */
.ok-mid { align-self: center; justify-self: center; min-width: 0; }
.ok-tray { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 18px 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 3, 24, 0.5), rgba(8, 3, 24, 0.28));
  box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, 0.24), inset 0 6px 18px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.05); }
.ok-tray-sep { flex: none; width: 1px; align-self: stretch; background: linear-gradient(transparent, rgba(255, 214, 120, 0.4), transparent); }
.ok-tray-l { display: block; font: 800 10px/1.2 "Manrope", sans-serif !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: rgba(255, 226, 160, 0.72) !important; white-space: nowrap; }
.ok-deck { flex-direction: column; gap: 7px; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; animation: none !important; }
.ok-deck-st { width: 50px; height: calc(70px + var(--n) * 3px); }
.ok-deck.empty .ok-deck-st { border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12); height: 70px; }
.ok-deck-n { position: absolute; right: -13px; top: -9px; z-index: 6; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(180deg, #ffe48a, #ffbf3a); color: #3a2400; box-shadow: 0 0 0 2px #1a0d3d, 0 3px 6px rgba(0, 0, 0, 0.4); }
.ok-deck-n b { font: 800 13px/1 "Fredoka", sans-serif !important; color: inherit !important; text-shadow: none !important; }
.ok-deck.low .ok-deck-n { background: linear-gradient(180deg, #ff8a8a, #e5484d); color: #fff; }
.ok-deck.can .ok-deck-st::before { content: ""; position: absolute; inset: -7px -6px -6px; border-radius: 13px; box-shadow: 0 0 0 2px #ffcf3d, 0 0 20px rgba(255, 207, 61, 0.55); animation: ok-pulse3 1.3s ease-in-out infinite; pointer-events: none; }
@keyframes ok-pulse3 { 50% { box-shadow: 0 0 0 3px #ffcf3d, 0 0 30px rgba(255, 207, 61, 0.8); } }
.ok-deck.can { cursor: pointer; }
.ok-deck-hand { position: static; transform: none; display: inline-block; padding: 2px 10px; border-radius: 999px; background: #ffcf3d; color: #3a2400; font: 800 10.5px/1.4 "Manrope", sans-serif; letter-spacing: 0.08em; font-style: normal; animation: ok-bob 1s ease-in-out infinite; }
.ok-indw { gap: 10px; padding: 0; border-radius: 16px; background: none; }
.ok-ind, .ok-okey { gap: 7px; }
.ok-ind-base, .ok-okey-base { position: relative; display: grid; place-items: center; padding: 0 4px 6px; }
.ok-ind-base::after, .ok-okey-base::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); z-index: -1; }
.ok-ind .ok-t { --tw: 48px; transform: rotate(-6deg); }
.ok-okey-base .ok-t.sm { --tw: 36px; }
.ok-okey .ok-tray-l { color: #ffd76b !important; }
.ok-ind-arr { width: 9px; height: 9px; margin: 0 -2px 22px; border-top: 2.5px solid rgba(255, 214, 120, 0.7); border-right: 2.5px solid rgba(255, 214, 120, 0.7); transform: rotate(45deg); }
.oka-indicator .ok-ind-base { background: url(/assets/okey/indicator.webp) center bottom / 100% auto no-repeat; padding: 4px 10px 12px; }
.oka-indicator .ok-ind-base::after { display: none; }
.oka-deck .ok-deck-st { width: 70px; height: 70px; background: url(/assets/okey/deck.webp) center / contain no-repeat; }
.oka-deck .ok-deck-st > .ok-t { visibility: hidden; }
.ok-indw.fin { outline-offset: 6px; }
.ok-finz { bottom: -24px; z-index: 3; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }

/* atılan taşlar */
.ok-dstack { width: 62px; height: 82px; border-radius: 12px; background: rgba(8, 3, 24, 0.38); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, 0.16), inset 0 3px 8px rgba(0, 0, 0, 0.35); }
.ok-dstack .ok-t { --tw: 48px; }
.ok-dstack.drop { outline-color: rgba(255, 226, 160, 0.45); }
.ok-dz { font: 700 12px "Fredoka", sans-serif; color: rgba(255, 226, 160, 0.75); }

/* ---- 7. açılan perler: sahibine göre grup, avatar + ad etiketi, oyuncu/takım rengi, benimkiler vurgulu ---- */
.ok-melds { max-height: none; min-height: 0; overflow: auto; gap: 7px; padding: 8px; border-radius: 18px; background: rgba(8, 3, 24, 0.3); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, 0.1); overscroll-behavior: contain; }
.ok-mgrp { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; max-width: 100%; box-sizing: border-box; padding: 5px 6px 5px 5px; border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 13%, rgba(8, 3, 24, 0.4)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc) 55%, transparent); animation: ok-in 0.3s ease both; }
.ok-mgrp.mine { background: color-mix(in srgb, var(--pc) 20%, rgba(8, 3, 24, 0.35)); box-shadow: inset 0 0 0 2px var(--pc), 0 0 16px color-mix(in srgb, var(--pc) 30%, transparent); }
.ok-mown { position: relative; display: inline-flex; align-items: center; gap: 5px; max-width: 132px; padding: 2px 9px 2px 2px; border-radius: 999px; background: var(--pc); color: #1a0f00; font: 700 12px/1.2 "Fredoka", sans-serif; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); }
.ok-mown b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.ok-mown .ns-av { --s: 20px; flex: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); border-radius: 50%; }
.ok-mown .ok-team { position: static; width: 16px; height: 16px; margin-left: 1px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25); flex: none; }
.ok-mown .ok-team b { font-size: 9.5px; }
.ok-mgrp.tm .ok-mown { background: var(--tc, var(--pc)); }
.ok-mgrp.t0 { --tc: #ff7a3d; } .ok-mgrp.t1 { --tc: #22c3df; }
.ok-meld { gap: 2px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.ok-meld.fit { background: rgba(74, 222, 128, 0.2); box-shadow: 0 0 0 2px #4ade80; animation: ok-pulse4 1.2s ease-in-out infinite; }
@keyframes ok-pulse4 { 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.35); } }
.ok-meld.hov { background: rgba(255, 207, 61, 0.25); box-shadow: 0 0 0 2px #ffcf3d; }
.ok-melds-empty { color: rgba(255, 226, 160, 0.6); }

/* ---- 10. üst çubuk: mod rozeti (küçük taş) + el bilgisi; sağda tek parça düğme grubu ---- */
.ok-top { gap: 10px; min-height: 38px; }
.ok-mode { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; box-shadow: none; }
.ok-mode b { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; background: linear-gradient(180deg, #fffdf7, #efe3c4); color: #6d3fd8; font: 800 14px/1 "Fredoka", sans-serif; letter-spacing: 0.04em; box-shadow: inset 0 -3px 0 #d8c8a3, 0 2px 6px rgba(0, 0, 0, 0.3); }
.ok-mode.h b { color: #e0313b; }
.ok-mode i { font-style: normal; padding: 3px 9px; border-radius: 999px; background: rgba(255, 122, 61, 0.16); color: #ffb37a; font: 700 12px/1.3 "Fredoka", sans-serif; box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, 0.5); white-space: nowrap; }
.ok-hand { font: 600 15px "Fredoka", sans-serif; color: var(--ink-dim, #b9b1d6); }
.ok-top-r { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 15px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.18); }
.ok-tb { height: 34px; padding: 0 12px; gap: 6px; border: 0; border-radius: 11px; background: transparent; box-shadow: none; color: var(--ink, #fff); font: 600 14px "Fredoka", sans-serif; transition: background 0.18s, color 0.18s, transform 0.12s; }
.ok-tb:hover { transform: none; background: rgba(255, 255, 255, 0.09); }
.ok-tb:active { transform: scale(0.95); box-shadow: none; }
.ok-tb .ok-ico { width: 20px; height: 20px; font-size: 16px; }
.ok-tb.exit { color: #ff9d9d; background: transparent; border: 0; }
.ok-tb.exit:hover { background: rgba(229, 72, 77, 0.2); color: #ffd0d0; }
.ok-tb.chat { padding: 0 10px; }
.ok-tb.chat.ping { box-shadow: inset 0 0 0 1.5px #ffcf3d; }
.ok-tb-sep { flex: none; width: 1px; height: 18px; margin: 0 2px; background: rgba(255, 255, 255, 0.14); }
.ok-tb-n { box-shadow: 0 0 0 2px #1a1236; }
:root[data-theme="light"] .ok-top-r { background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1.5px rgba(124, 79, 224, 0.2), 0 4px 12px rgba(80, 50, 160, 0.1); }
:root[data-theme="light"] .ok-tb { color: #2a1a5e; background: transparent; border: 0; }
:root[data-theme="light"] .ok-tb:hover { background: rgba(124, 79, 224, 0.1); }
:root[data-theme="light"] .ok-tb.exit { color: #c0392b; background: transparent; }
:root[data-theme="light"] .ok-tb.exit:hover { background: rgba(229, 72, 77, 0.12); }
:root[data-theme="light"] .ok-tb-sep { background: rgba(124, 79, 224, 0.2); }
:root[data-theme="light"] .ok-mode i { color: #b4520c; background: rgba(255, 122, 61, 0.14); }

/* ---- alt blok: geniş masada oyuncu satırı ve düğmeler yan yana (yer kazanmak için) ---- */
.ok-me { min-height: 0; padding: 6px 12px 6px 8px; }
.ok-me-t { flex: 0 1 auto; min-width: 0; }
.ok-me-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-me-t b .ok-tm { display: none; } /* takım zaten avatardaki rozette; adın yanında kesik hap kalmasın */
.ok-status { min-width: 120px; }
.ok-acts { flex-wrap: wrap; }
@container oktable (min-width: 880px) {
  .ok-dock { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "me acts" "rack rack" "hint hint"; align-items: center; }
  .ok-me { grid-area: me; }
  .ok-acts { grid-area: acts; flex-wrap: nowrap; justify-content: flex-end; }
  .ok-rackwrap { grid-area: rack; }
  .ok-hint { grid-area: hint; }
  .ok-status { font-size: 14px; padding: 7px 10px; }
}
/* düğmeler (mantığa dokunmadan görünüm) */
.ok-btn { height: 44px; padding: 0 15px; border: 0; border-radius: 14px; background: var(--card, #1c1533); box-shadow: inset 0 0 0 1.5px var(--line, rgba(255, 255, 255, 0.12)), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 rgba(0, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.18); white-space: nowrap; }
.ok-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px rgba(166, 123, 251, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.2); }
.ok-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--line, rgba(255, 255, 255, 0.12)), 0 1px 0 rgba(0, 0, 0, 0.35); }
.ok-btn.main { background: linear-gradient(180deg, #ffe07a, #ffb627); color: #3a2400; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #b97c00, 0 6px 16px rgba(255, 182, 39, 0.28); }
.ok-btn.main:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #b97c00, 0 8px 18px rgba(255, 182, 39, 0.35); }
.ok-btn.main.hot { background: linear-gradient(180deg, #9ff5c8, #3fbf7f); color: #06311c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 #2a8a5a, 0 0 22px rgba(74, 222, 128, 0.55); }
.ok-btn.gold { box-shadow: inset 0 0 0 2px #ffcf3d, 0 3px 0 rgba(0, 0, 0, 0.35); }
.ok-btn.disc:not(:disabled) { box-shadow: inset 0 0 0 1.5px rgba(255, 138, 138, 0.75), 0 3px 0 rgba(0, 0, 0, 0.35), 0 6px 14px rgba(229, 72, 77, 0.15); }
.ok-btn:disabled { opacity: 0.42; }

/* ---- ıstaka: ahşap, iki raf; taş boyu hem genişliğe hem yüksekliğe göre ---- */
.ok-rackwrap { padding: 10px 12px 14px; border-radius: 16px 16px 20px 20px;
  background:
    repeating-linear-gradient(177deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #b77d40 0%, #93602c 45%, #5d3814 49.2%, #3c2209 50.4%, #a56c34 52%, #8a5627 93%, #6a3f19 100%);
  box-shadow: inset 0 2px 0 rgba(255, 231, 190, 0.42), inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 14px 28px rgba(0, 0, 0, 0.42); }
.oka-rack .ok-rackwrap { background: url(/assets/okey/rack.webp) center / 100% 100% no-repeat; box-shadow: none; }
.ok-rack { --slot: min(58px, calc(var(--okh, 900px) * 0.074)); max-width: calc(var(--cols) * var(--slot)); gap: 12px 4px; }
.ok-slot { container-type: inline-size; border-radius: 7px; background: rgba(46, 22, 4, 0.34); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.38); }
.oka-rack .ok-slot { background: rgba(0, 0, 0, 0.1); box-shadow: none; }
.ok-slot .ok-t b { font-size: 58cqw; }
.ok-slot.hov { background: rgba(255, 207, 61, 0.38); box-shadow: inset 0 0 0 2px #ffcf3d; }

/* ---- 2. çoklu sürükleme hayaleti ---- */
.ok-ghostg { position: fixed; left: 0; top: 0; z-index: 10060; display: flex; gap: 3px; pointer-events: none; transform-origin: 20% 50%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
.ok-ghostg .ok-t.ghost { position: relative; transform: none; box-shadow: inset 0 calc(var(--tw) * -0.07) 0 #d8c8a3, 0 0 0 2px #ffcf3d; animation: ok-in 0.18s ease both; animation-delay: calc(var(--k) * 25ms); }
.ok-t.ghost b { font-size: calc(var(--tw) * 0.58); }
.ok-t.ghost i { width: 20%; height: auto; aspect-ratio: 1; margin-top: 8%; }
.ok-ghostg.bad { opacity: 0.6; }
.ok-ghostg.bad .ok-t.ghost { box-shadow: 0 0 0 2px #ff6b6b; }

/* ---- 4. taş görselleri (varsa) ---- */
.oka-tile-face :where(.ok-t:not(.back):not(.flipped)) { background: url(/assets/okey/tile-face.webp) center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.oka-tile-fake .ok-t.fake:not(.flipped) { background: url(/assets/okey/tile-fake.webp) center / 100% 100% no-repeat; }
.oka-tile-fake .ok-t.fake:not(.flipped) b, .oka-tile-fake .ok-t.fake:not(.flipped) i { visibility: hidden; }
.oka-tile-back .ok-t.back, .oka-tile-back .ok-t.flipped { background: url(/assets/okey/tile-back.webp) center / 100% 100% no-repeat !important; box-shadow: none !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.oka-tile-back .ok-t.back i, .oka-tile-back .ok-t.flipped::after { display: none; }

/* ---- 6. ikram: kavisli uçuş + iz, varışta halka/parıltı, avatarın yanında ~7 sn canlı rozet ---- */
.ok-gfly { animation: none; will-change: transform, opacity; opacity: 0; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(255, 214, 107, 0.65)); }
.ok-gtrail { position: fixed; z-index: 10049; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, hsl(var(--h, 45) 100% 66%) 42%, transparent 70%); animation: ok-trail 0.7s ease-out forwards; }
@keyframes ok-trail { to { transform: scale(0.15) translateY(12px); opacity: 0; } }
.ok-gring { position: fixed; z-index: 10049; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #ffd76b; pointer-events: none; animation: ok-gring 0.75s ease-out forwards; }
@keyframes ok-gring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(4.4); opacity: 0; border-width: 1px; } }
.ns-confetti.ok-gconf { font-size: 16px; }
.ok-gbadge { position: fixed; right: auto; bottom: auto; z-index: 15; --bs: 32px; width: var(--bs); height: var(--bs); display: grid; place-items: center; font-size: calc(var(--bs) * 0.78); pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); animation: ok-gbin 0.65s cubic-bezier(.34,1.56,.64,1) both; }
.ok-gbadge .ok-ico { width: 100%; height: 100%; font-size: inherit; animation: ok-gbidle 2.2s ease-in-out 0.65s infinite; }
.ok-gbadge-glow { position: absolute; inset: -7px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 107, 0.6), transparent 66%); animation: ok-gbglow 1.6s ease-in-out infinite; }
.ok-gbadge.out { animation: ok-gbout 0.6s ease forwards; }
@keyframes ok-gbin { 0% { transform: scale(0) rotate(-30deg); } 55% { transform: scale(1.4) rotate(8deg); } 75% { transform: scale(0.9) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes ok-gbidle { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-4px) rotate(7deg); } }
@keyframes ok-gbglow { 50% { opacity: 0.4; transform: scale(1.2); } }
@keyframes ok-gbout { to { opacity: 0; transform: translateY(-14px) scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .ok-gbadge, .ok-gbadge .ok-ico, .ok-gbadge-glow, .ok-deck.can .ok-deck-st::before, .ok-meld.fit, .ok-mgrp, .ok-ghostg .ok-t.ghost { animation: none !important; } }

/* ikram görselleri: menüde ~56px, uçuşta 72px, rozet 48px (telefonda 40px) */
.ok-giftm { width: 300px; }
.ok-giftm-g .ok-ico { width: 56px; height: 56px; font-size: 38px; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1); }
.ok-giftm-g .ok-ico img { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.4)); }
.ok-giftm-g button:hover .ok-ico { transform: scale(1.12) rotate(-6deg); }
.ok-gfly .ok-ico { width: 72px; height: 72px; font-size: 52px; }
.ok-gbadge .ok-ico img { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)); }
/* ---- büyük ekran: taşlar ve tepsi büyür ---- */
@media (min-width: 1200px) and (min-height: 900px) {
  .ok-rack { --slot: min(68px, calc(var(--okh, 900px) * 0.074)); gap: 14px 5px; }
  .ok-tray { gap: 20px; padding: 12px 22px 10px; }
  .ok-deck-st { width: 58px; height: calc(80px + var(--n) * 3px); }
  .ok-deck-st .ok-t { --tw: 58px; }
  .ok-ind .ok-t { --tw: 56px; }
  .ok-okey-base .ok-t.sm { --tw: 42px; }
  .ok-dstack { width: 72px; height: 96px; }
  .ok-dstack .ok-t { --tw: 56px; }
  .ok-melds .ok-t.sm { --tw: 34px; }
  .ok-felt { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(110px, 150px); padding: 16px; }
}
/* ---- kısa ekran (ör. 1360x768): masa parçaları küçülür ki per alanına yer kalsın ---- */
@media (max-height: 820px) and (min-width: 761px) {
  .ok-felt { gap: 8px; }
  .ok-dstack { width: 54px; height: 72px; }
  .ok-dstack .ok-t { --tw: 42px; }
  .ok-tray { padding: 6px 14px 5px; gap: 12px; }
  .ok-deck { gap: 4px; }
  .ok-deck-st { width: 44px; height: calc(60px + var(--n) * 2px); }
  .ok-deck-st .ok-t { --tw: 44px; }
  .ok-ind .ok-t { --tw: 42px; }
  .ok-okey-base .ok-t.sm { --tw: 32px; }
  .oka-deck .ok-deck-st { width: 62px; height: 62px; }
  .oka-indicator .ok-ind-base { width: 80px; height: 66px; }
  .oka-indicator .ok-ind-base .ok-t { --tw: 38px; }
  .ok-pc { padding-top: 6px; padding-bottom: 6px; }
  .r1 .ok-pc, .r3 .ok-pc { gap: 3px; padding: 7px 6px; }
  .ok-pc-av .ns-av { --s: 40px !important; }
  .ok-melds .ok-t.sm { --tw: 27px; }
}
/* ---- orta genişlik ---- */
@media (max-width: 900px) and (min-width: 761px) {
  .ok-felt { grid-template-columns: 96px minmax(0, 1fr) 96px; }
}
/* ---- telefon ---- */
@media (max-width: 760px) {
  body:has(#ok-table) main.g-page { padding-top: 4px; }
  #ns.ok-on .g-head h1 { font-size: 19px; }
  #ns.ok-on #ns-view { margin-top: 4px; }
  .ok-table { gap: 6px; }
  .ok-felt { border-width: 6px; border-radius: 20px; padding: 7px 6px; gap: 6px;
    grid-template-columns: 50px repeat(4, minmax(0, 1fr)) 50px;
    grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "p3 p3 p2 p2 p1 p1" "d3 mid mid mid mid d0"; }
  .m-h .ok-felt { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "p3 p3 p2 p2 p1 p1" "d3 mid mid mid mid d0" "melds melds melds melds melds melds"; }
  #ok-p2 { align-self: stretch; }
  .ok-seat { align-self: stretch; }
  .ok-pc .ok-pc-av .ns-av { box-shadow: 0 0 0 2px var(--pc, #fff); }
  .ok-mate { top: -8px; padding: 1px 7px; font-size: 9.5px; }
  .ok-team { width: 16px; height: 16px; right: -5px; bottom: -4px; }
  .ok-team b { font-size: 9.5px; }
  .ok-tray { gap: 8px; padding: 6px 9px 5px; border-radius: 16px; }
  .ok-tray-l { font-size: 8px !important; letter-spacing: 0.08em !important; }
  .ok-deck { gap: 4px; }
  .ok-deck-st { width: 32px; height: calc(44px + var(--n) * 2px); }
  .ok-deck-st .ok-t { --tw: 32px; }
  .ok-deck.empty .ok-deck-st { height: 44px; }
  .ok-deck-n { right: -11px; top: -7px; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 11px; }
  .ok-deck-n b { font-size: 11px !important; }
  .ok-deck-hand { padding: 1px 6px; font-size: 8.5px; }
  .ok-indw { gap: 6px; }
  .ok-ind .ok-t { --tw: 32px; }
  .ok-okey-base .ok-t.sm { --tw: 25px; }
  .ok-ind-arr { width: 6px; height: 6px; margin-bottom: 16px; border-width: 2px; }
  .oka-deck .ok-deck-st { width: 46px; height: 46px; }
  .ok-dstack { width: 46px; height: 62px; border-radius: 9px; }
  .ok-dstack .ok-t { --tw: 36px; }
  .ok-melds { padding: 5px; gap: 5px; border-radius: 12px; }
  .ok-mgrp { gap: 3px; padding: 3px 4px 3px 3px; border-radius: 10px; }
  .ok-mown { max-width: 92px; padding: 1px 7px 1px 1px; font-size: 10.5px; gap: 3px; }
  .ok-mown .ns-av { --s: 16px; }
  .ok-meld { padding: 2px; border-radius: 7px; }
  .ok-top { min-height: 34px; gap: 6px; }
  .ok-mode b { min-width: 30px; height: 26px; font-size: 12.5px; padding: 0 6px; }
  .ok-mode i { display: none; }
  .ok-top-r { padding: 2px; border-radius: 13px; }
  .ok-tb { height: 30px; padding: 0 8px; gap: 4px; font-size: 12.5px; border-radius: 10px; }
  .ok-tb .ok-ico { width: 17px; height: 17px; font-size: 14px; }
  .ok-tb.chat { padding: 0 7px; }
  .ok-dock { gap: 6px; }
  .ok-me { padding: 4px 8px 4px 5px; }
  .ok-btn { height: auto; min-height: 46px; padding: 5px 3px 4px; white-space: normal; }
  .ok-rackwrap { padding: 7px 6px 9px; border-radius: 12px 12px 14px 14px; }
  .ok-rack { gap: 8px 2px; }
  .ok-slot { border-radius: 5px; }
}
@media (max-width: 380px) {
  .ok-tb { padding: 0 6px; font-size: 12px; }
  .ok-hand { font-size: 12px; }
}
/* ---- 4b. gerçek masa görselleri (assets/okey) yüklendiyse: oranlar ve yerleşim onlara göre ---- */
/* masa: oval kadife + ahşap çerçeve görseli; içerik oval alanın içinde kalsın diye kenar boşluğu yüzdeyle */
.oka-table .ok-felt { border: 0; border-radius: 0; background: url(/assets/okey/table.webp) center / 100% 100% no-repeat; box-shadow: none; padding: max(16px, 2.6%) max(34px, 8.4%); filter: drop-shadow(0 14px 26px rgba(8, 3, 24, 0.55)); }
.oka-table .ok-melds { background: rgba(10, 3, 30, 0.32); }
/* ıstaka: 1600x320, üst raf ≈%41, alt raf ≈%82 yükseklikte. Taş yüksekliği (--th) bilinerek boşluklar ayarlanır, taşlar rafların üstüne oturur */
.oka-rack .ok-rackwrap { container-type: inline-size; padding: 0 6.4%; border-radius: 0; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.oka-rack .ok-rack { --cg: 4px; --rw: min(100cqw, calc(var(--cols) * var(--slot)));
  --sw: calc((var(--rw) - (var(--cols) - 1) * var(--cg)) / var(--cols)); --th: calc(var(--sw) * 1.38);
  max-width: var(--rw); column-gap: var(--cg); row-gap: calc(var(--th) * 0.07); padding: calc(var(--th) * 0.1) 0 calc(var(--th) * 0.47); }
.oka-rack .ok-slot { background: rgba(20, 8, 0, 0.16); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25); border-radius: 6px; }
.oka-rack .ok-slot.hov { background: rgba(255, 207, 61, 0.4); box-shadow: inset 0 0 0 2px #ffcf3d; }
/* taş yüzü görseli: CSS degrade/kenar kapanır; sayı + nokta yüzün ortasında (alt kalınlık payı bırakılarak) */
.oka-tile-face :where(.ok-t:not(.back):not(.flipped)) { justify-content: center; padding: 0 0 calc(var(--tw) * 0.12); border-radius: calc(var(--tw) * 0.1); }
.oka-tile-face .ok-slot .ok-t:not(.back):not(.flipped) { padding: 0 0 12%; justify-content: center; }
.oka-tile-face .ok-t b { text-shadow: none; }
.oka-tile-face .ok-t:not(.back):not(.flipped) i { margin-top: calc(var(--tw) * 0.06); }
.oka-tile-face .ok-slot .ok-t:not(.back):not(.flipped) i { margin-top: 5%; }
.oka-tile-face .ok-t.wild { box-shadow: 0 0 0 2px #ffcf3d, 0 0 12px rgba(255, 207, 61, 0.75); }
.oka-tile-face .ok-slot .ok-t.sel { box-shadow: 0 0 0 3px #ffcf3d, 0 10px 16px rgba(0, 0, 0, 0.4); }
.oka-tile-face .ok-slot .ok-t.canfit { box-shadow: 0 0 0 2px #4ade80; }
.oka-tile-face .ok-slot .ok-t.sel.canfit { box-shadow: 0 0 0 3px #ffcf3d, 0 0 0 6px rgba(74, 222, 128, 0.6), 0 10px 16px rgba(0, 0, 0, 0.4); }
.oka-tile-face .ok-t.ghost { box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }
.oka-tile-face .ok-ghostg .ok-t.ghost { box-shadow: 0 0 0 2px #ffcf3d; }
.oka-tile-fake .ok-t.fake:not(.flipped) { background-color: transparent; }
.oka-tile-back .ok-t.back, .oka-tile-back .ok-t.flipped { border-radius: calc(var(--tw, 46px) * 0.1); }
/* deste görseli: kapalı yığın, kalan sayı rozeti köşede */
.oka-deck .ok-deck-st { width: 76px; height: 76px; }
.oka-deck .ok-deck-n { right: -4px; top: -6px; }
.oka-deck .ok-deck.can .ok-deck-st::before { inset: -4px; border-radius: 16px; }
.oka-deck .ok-deck.empty .ok-deck-st { background: none; }
/* gösterge altlığı: taş, kadife altlığın sırtına yaslanır */
.oka-indicator .ok-ind-base { width: 96px; height: 80px; padding: 0; display: block; background: url(/assets/okey/indicator.webp) center bottom / contain no-repeat; }
.oka-indicator .ok-ind-base .ok-t { position: absolute; left: 50%; bottom: 33%; --tw: 46px; transform: translateX(-50%) rotate(-3deg); }
.oka-indicator .ok-ind { gap: 4px; }
/* atma yeri: benim atma yuvam kesik çizgili altın yuva görseli */
.oka-discard #ok-d0 .ok-dstack { background: url(/assets/okey/discard.webp) center / contain no-repeat; box-shadow: none; outline: 0; }
.oka-discard #ok-d0 .ok-dstack.drop { animation: ok-pulse5 1.6s ease-in-out infinite; }
.oka-discard #ok-d0 .ok-dz { position: absolute; bottom: -16px; font-size: 11px; }
@keyframes ok-pulse5 { 50% { filter: drop-shadow(0 0 10px rgba(255, 207, 61, 0.7)); } }
.oka-team-a .ok-team.t0, .oka-team-b .ok-team.t1 { width: 24px; height: 24px; right: -9px; bottom: -7px; }
.oka-team-a .ok-mown .ok-team.t0, .oka-team-b .ok-mown .ok-team.t1 { width: 18px; height: 18px; }
@media (min-width: 1200px) and (min-height: 900px) {
  .oka-deck .ok-deck-st { width: 90px; height: 90px; }
  .oka-indicator .ok-ind-base { width: 112px; height: 94px; }
  .oka-indicator .ok-ind-base .ok-t { --tw: 54px; }
}
@media (max-width: 760px) {
  .oka-table .ok-felt { padding: 16px 16px; background-size: 100% 100%; }
  .oka-rack .ok-rackwrap { padding: 0 4.6%; }
  .oka-rack .ok-rack { --cg: 2px; }
  .oka-deck .ok-deck-st { width: 48px; height: 48px; }
  .oka-indicator .ok-ind-base { width: 62px; height: 52px; }
  .oka-indicator .ok-ind-base .ok-t { --tw: 30px; }
  .oka-discard #ok-d0 .ok-dz { display: none; }
  .oka-team-a .ok-team.t0, .oka-team-b .ok-team.t1 { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .oka-discard #ok-d0 .ok-dstack.drop { animation: none; } }
/* kısa masaüstü ekranı (ör. 1360x768): masa görseli yüksekliğe gerilir, alt çerçeve kalın kalır; perler çerçevenin altına girmesin */
@media (max-height: 820px) and (min-width: 761px) {
  .oka-table .ok-felt { padding-top: 18px; padding-bottom: max(30px, 2.6%); row-gap: 6px; }
  /* perler: iki sıra sığsın (1360x768'de ikinci sıra alttan kesiliyordu) */
  .ok-melds { padding: 4px 6px; gap: 4px; }
  .ok-mgrp { gap: 3px; padding: 3px 4px 3px 3px; border-radius: 11px; }
  .ok-meld { padding: 2px; }
  .ok-mown { padding: 1px 8px 1px 1px; font-size: 11px; }
  .ok-mown .ns-av { --s: 17px; }
  .ok-melds .ok-t.sm { --tw: 24px; }
  .ok-tray { padding-top: 4px; padding-bottom: 3px; }
}
/* === /TUR2 B2 === */
/* === KONTROL: küçük masa görseli (table-mini.webp, kare, üstten 4 sandalyeli masa) ===
   Görsel varsa küçük masa kare olur; koltuklar (üst/sol/sağ/alt) görseldeki sandalyelerin üstüne oturur.
   Görsel yoksa eski ızgara + degrade aynen kalır. */
.oka-table-mini .ok-mini-table { aspect-ratio: 1 / 1; width: min(100%, 340px); margin: 0 auto; box-sizing: border-box; padding: 0; gap: 0; row-gap: 0;
  --av: 44px; grid-template-columns: 24% 52% 24%; grid-template-rows: 24% 52% 24%; background: url(/assets/okey/table-mini.webp) center / 100% 100% no-repeat; }
.oka-table-mini .ok-mt-felt { min-height: 0 !important; width: auto; align-self: stretch; justify-self: stretch; margin: 12%; border-radius: 10px; background: none !important; box-shadow: none !important; }
.oka-table-mini .ok-mt-felt b { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); }
.oka-table-mini .ok-ss { padding: 0; gap: 2px; max-width: none; align-self: center; justify-self: center; background: transparent; box-shadow: none; z-index: 2; }
.oka-table-mini .ok-ss b { max-width: 88px; padding: 0 7px; border-radius: 999px; background: rgba(20, 9, 44, 0.78); color: #fff; font-size: 11.5px; line-height: 1.45; }
.oka-table-mini .ok-ss.mine { background: transparent; box-shadow: none; }
.oka-table-mini .ok-ss.mine b { background: #ffcf3d; color: #3a2400; }
.oka-table-mini .ok-ss.mine.t0 b, .oka-table-mini .ok-ss.mine.t1 b { background: var(--tc); color: #1a0f00; }
.oka-table-mini .ok-ss.t0 b, .oka-table-mini .ok-ss.t1 b { color: #fff; box-shadow: inset 0 0 0 1.5px var(--tc); }
.oka-table-mini .ok-ss.can:hover { background: transparent; transform: translateY(-2px); }
.oka-table-mini .ok-ss > i:not(.ok-ss-crown):not(.ok-tbadge) { background: rgba(20, 9, 44, 0.55); }
.oka-table-mini .ok-mt-line { display: none; }
/* koltuk = yalnız avatar (sandalyenin ortasında); ad avatarın altına bindirilir, "Otur" yazısı yerine kesik çerçeve yeter */
.oka-table-mini .ok-ss b { position: absolute; left: 50%; top: calc(var(--av, 46px) - 7px); transform: translateX(-50%); white-space: nowrap; }
.oka-table-mini .ok-ss.bot em { display: none; }
.oka-table-mini .ok-ss .ns-av { --s: var(--av); }
.oka-table-mini .ok-ss > i:not(.ok-ss-crown):not(.ok-tbadge) { width: var(--av); height: var(--av); font-size: calc(var(--av) * 0.5); }
.oka-table-mini .ok-ss > i .ok-ico { width: calc(var(--av) * 0.68); height: calc(var(--av) * 0.68); }
.oka-table-mini .ok-mt-lg b { font-size: 11.5px; }
/* takım etiketleri: geniş lobide karenin iki yanında, dar ekranda karenin altında yan yana */
.oka-table-mini .ok-mini-table.team { position: relative; }
.oka-table-mini .ok-mt-lg { grid-row: auto; grid-column: auto; position: absolute; top: 0; width: 92px; box-sizing: border-box; background: color-mix(in srgb, var(--tc) 14%, rgba(16, 7, 40, 0.6)); }
.oka-table-mini .ok-mt-lg.t0 { right: calc(100% + 6px); }
.oka-table-mini .ok-mt-lg.t1 { left: calc(100% + 6px); }
:root[data-theme="light"].oka-table-mini .ok-mt-lg { background: color-mix(in srgb, var(--tc) 12%, #fff); }
.oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table { width: min(100%, 340px); max-width: none; }
.oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table.team { width: min(100% - 196px, 300px); }
/* lobi (fit): kare, kutunun yüksekliğine göre; iki yanda etiketlere yer kalsın */
.oka-table-mini .ok-lobby.fit .ok-sum-seats .ok-mtw { max-width: none; }
.oka-table-mini .ok-lobby.fit .ok-mini-table { --sq: min(100cqh, 100cqw - 8px, 360px); width: var(--sq); height: var(--sq); --av: clamp(24px, calc(var(--sq) * 0.16), 46px); grid-template-rows: 24% 52% 24%; row-gap: 0; }
.oka-table-mini .ok-lobby.fit .ok-mini-table.team { --sq: min(100cqh, 100cqw - 196px, 360px); }
.oka-table-mini .ok-lobby.fit .ok-mt-felt { min-height: 0; }
.oka-table-mini .ok-lobby.fit .ok-ss.bot em { top: calc(var(--av) - 8px); }
.oka-table-mini .ok-lobby.fit .ok-ss > .ok-ss-tb { right: calc(50% - var(--av) / 2 - 8px); }
@media (max-width: 760px) {
  .oka-table-mini .ok-mini-table { width: min(100%, 300px); }
  .oka-table-mini .ok-mini-table.team, .oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table.team { width: min(100%, 330px); }
  .oka-table-mini .ok-mt-lg { position: static; width: auto; grid-row: 1; align-self: start; margin: 2px; padding: 3px 5px 3px 4px; column-gap: 4px; }
  .oka-table-mini .ok-mt-lg.t0 { grid-column: 1; } .oka-table-mini .ok-mt-lg.t1 { grid-column: 3; }
  .oka-table-mini .ok-mt-lg b { font-size: 11px; } .oka-table-mini .ok-mt-lg small { font-size: 9.5px; }
  .oka-table-mini .ok-mt-lg .ok-tbadge { width: 16px; height: 16px; }
  .oka-table-mini .ok-mini-table { --av: 38px; }
}
.ok-melds.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), rgba(0, 0, 0, 0.15)); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), rgba(0, 0, 0, 0.15)); }
/* === /KONTROL === */
/* === TUR3: küçük masa sadeleştirme, taş renkleri, tepsi (okey önde), kaydırma çubukları, per bölgeleri, alt dok === */
/* ---- 1. küçük masa (table-mini.webp): her koltukta avatar minderin ortasında, ad avatarın ALTINDA hapta ---- */
.oka-table-mini .ok-mini-table {
  --sq: min(100cqw, 420px); --av: clamp(34px, calc(var(--sq) * 0.155), 64px);
  position: relative; display: block; width: var(--sq); height: auto; aspect-ratio: 1 / 1; max-width: none; margin: 0 auto; padding: 0; }
.oka-table-mini .ok-mtw, .oka-table-mini .ok-lobby .ok-sum-seats .ok-mtw { max-width: none; width: 100%; container-type: inline-size; }
.oka-table-mini .ok-mini-table .ok-mt-felt { position: absolute; left: 30%; right: 30%; top: 33%; bottom: 36%; margin: 0; width: auto; min-height: 0 !important; justify-content: center; }
.oka-table-mini .ok-mini-table .ok-mt-felt b { font-size: clamp(15px, calc(var(--sq) * 0.065), 26px); }
.oka-table-mini .ok-mini-table .ok-mt-lg, .oka-table-mini .ok-mini-table .ok-mt-line { display: none; }
.oka-table-mini .ok-mini-table .ok-ss {
  position: absolute; z-index: 2; width: var(--av); height: var(--av); max-width: none; padding: 0; margin: 0; gap: 0;
  display: block; transform: translate(-50%, -50%); border-radius: 50%; background: none !important; box-shadow: none !important; }
.oka-table-mini .ok-mini-table .ok-ss.s2 { left: 50%; top: 15.5%; }
.oka-table-mini .ok-mini-table .ok-ss.s0 { left: 50%; top: 80%; }
.oka-table-mini .ok-mini-table .ok-ss.s3 { left: 16%; top: 46%; }
.oka-table-mini .ok-mini-table .ok-ss.s1 { left: 84%; top: 46%; }
.oka-table-mini .ok-mini-table .ok-ss.can:hover { transform: translate(-50%, calc(-50% - 2px)); }
.oka-table-mini .ok-mini-table .ok-ss.pop { animation: none; }
/* avatar: hafif açık halka + gölge, minderden ayrışsın */
.oka-table-mini .ok-mini-table .ok-ss .ns-av { --s: var(--av) !important; display: flex; margin: 0 !important; box-shadow: 0 0 0 2.5px #fff3d1, 0 0 0 4px rgba(26, 10, 52, 0.55), 0 5px 12px rgba(0, 0, 0, 0.5) !important; }
.oka-table-mini .ok-mini-table .ok-ss.mine .ns-av { box-shadow: 0 0 0 3px #ffcf3d, 0 0 0 4.5px rgba(26, 10, 52, 0.6), 0 0 16px rgba(255, 207, 61, 0.55), 0 5px 12px rgba(0, 0, 0, 0.5) !important; }
/* bilgisayar / boş koltuk: açık zemin üstünde net ikon */
.oka-table-mini .ok-mini-table .ok-ss > i:not(.ok-ss-crown):not(.ok-tbadge) {
  width: var(--av); height: var(--av); display: grid; place-items: center; border: 0; border-radius: 50%; font-size: calc(var(--av) * 0.5);
  background: radial-gradient(circle at 38% 30%, #fffaf0, #f1e4ff 55%, #cdb5ff); box-shadow: 0 0 0 2.5px #fff3d1, 0 0 0 4px rgba(26, 10, 52, 0.55), 0 5px 12px rgba(0, 0, 0, 0.5); }
.oka-table-mini .ok-mini-table .ok-ss > i .ok-ico { width: 84%; height: 84%; font-size: inherit; }
.oka-table-mini .ok-mini-table .ok-ss.free > i:not(.ok-tbadge) { background: rgba(20, 9, 44, 0.45); box-shadow: inset 0 0 0 2px rgba(255, 243, 209, 0.55); opacity: 1; }
.oka-table-mini .ok-mini-table .ok-ss.free > i .ok-ico { opacity: 0.8; width: 70%; height: 70%; }
.oka-table-mini .ok-mini-table .ok-ss.bot.can > i:not(.ok-ss-crown):not(.ok-tbadge) { border: 0; box-shadow: 0 0 0 2.5px #fff3d1, 0 0 0 4px rgba(26, 10, 52, 0.55), 0 5px 12px rgba(0, 0, 0, 0.5); }
.oka-table-mini .ok-mini-table .ok-ss.bot.can:hover > i:not(.ok-ss-crown):not(.ok-tbadge) { box-shadow: 0 0 0 3px #ffcf3d, 0 0 14px rgba(255, 207, 61, 0.6); }
/* eşli: halka takım renginde */
.oka-table-mini .ok-mini-table .ok-ss.t0 .ns-av, .oka-table-mini .ok-mini-table .ok-ss.t1 .ns-av,
.oka-table-mini .ok-mini-table .ok-ss.t0 > i:not(.ok-ss-crown):not(.ok-tbadge), .oka-table-mini .ok-mini-table .ok-ss.t1 > i:not(.ok-ss-crown):not(.ok-tbadge) { box-shadow: 0 0 0 3px var(--tc), 0 0 0 4.5px rgba(26, 10, 52, 0.6), 0 5px 12px rgba(0, 0, 0, 0.5) !important; }
/* ad: avatarın altında, ortalı, okunaklı hap; hiçbir ikonun üstüne binmez */
.oka-table-mini .ok-mini-table .ok-ss b {
  position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); z-index: 3; display: block;
  max-width: max(88px, calc(var(--sq) * 0.4)); min-width: 0; padding: 1px 8px 2px; box-sizing: border-box; border-radius: 999px;
  background: rgba(22, 9, 46, 0.9); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 226, 160, 0.35), 0 2px 6px rgba(0, 0, 0, 0.45);
  font: 600 clamp(11px, calc(var(--sq) * 0.034), 13.5px)/1.35 "Fredoka", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oka-table-mini .ok-mini-table .ok-ss.bot b, .oka-table-mini .ok-mini-table .ok-ss.free b { color: #e6dcff; }
.oka-table-mini .ok-mini-table .ok-ss.mine b { background: linear-gradient(180deg, #ffe07a, #ffbf3a); color: #3a2400; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.oka-table-mini .ok-mini-table .ok-ss.t0 b, .oka-table-mini .ok-mini-table .ok-ss.t1 b { color: #fff; box-shadow: inset 0 0 0 1.5px var(--tc), 0 2px 6px rgba(0, 0, 0, 0.45); }
.oka-table-mini .ok-mini-table .ok-ss.mine.t0 b, .oka-table-mini .ok-mini-table .ok-ss.mine.t1 b { background: var(--tc); color: #1a0f00; }
/* rozetler köşede, küçük: takım sol altta, taç sol üstte, yer değiştir sağ üstte */
.oka-table-mini .ok-mini-table .ok-ss > .ok-ss-tb { position: absolute; top: auto; right: auto; left: -3px; bottom: -1px; width: calc(var(--av) * 0.36) !important; height: calc(var(--av) * 0.36) !important; min-width: 15px; min-height: 15px; z-index: 4; }
.oka-table-mini .ok-mini-table .ok-ss > .ok-ss-crown { position: absolute; top: calc(var(--av) * -0.2) !important; left: calc(var(--av) * -0.08) !important; font-size: calc(var(--av) * 0.34) !important; z-index: 4; }
.oka-table-mini .ok-mini-table .ok-ss.swap em { position: absolute; top: -4px; right: -6px; left: auto; z-index: 4; width: calc(var(--av) * 0.36); height: calc(var(--av) * 0.36); min-width: 16px; min-height: 16px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 2px rgba(22, 9, 46, 0.9); font-size: calc(var(--av) * 0.2); transform: none; }
.oka-table-mini .ok-mini-table .ok-ss.bot em { display: none; }
/* lobi kutusu: kare, kutunun boyuna göre büyür (geniş kutuda büyük masa) */
.oka-table-mini .ok-lobby .ok-sum-seats { container-type: size; min-height: 240px; }
.oka-table-mini .ok-lobby.fit .ok-sum-seats { min-height: 0; }
.oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table, .oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table.team,
.oka-table-mini .ok-lobby.fit .ok-sum-seats .ok-mini-table, .oka-table-mini .ok-lobby.fit .ok-sum-seats .ok-mini-table.team { --sq: min(100cqh - 10px, 100cqw - 24px, 480px); width: var(--sq); height: var(--sq); }
.oka-table-mini .ok-lobby .ok-sum-seats .ok-mtw { height: 100%; justify-content: center; container-type: normal; }
.oka-table-mini .ok-hero-table .ok-mini-table { --sq: min(100cqw, 300px); }
.oka-table-mini .ok-inv-table .ok-mini-table { --sq: min(100cqw, 320px); }
@media (max-width: 760px) {
  .oka-table-mini .ok-mini-table, .oka-table-mini .ok-mini-table.team { --sq: min(100cqw - 16px, 330px); }
  .oka-table-mini .ok-lobby .ok-sum-seats { container-type: normal; min-height: 0; }
  .oka-table-mini .ok-lobby .ok-sum-seats .ok-mtw { container-type: inline-size; height: auto; }
  .oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table, .oka-table-mini .ok-lobby .ok-sum-seats .ok-mini-table.team { --sq: min(100cqw - 16px, 330px); }
}
.oka-table-mini .ok-mini-table .ok-ss > .ok-ss-tb { width: max(18px, calc(var(--av) * 0.4)) !important; height: max(18px, calc(var(--av) * 0.4)) !important; }

/* ---- 2. taş renkleri: sarı yerine koyu kehribar (krem yüzde net; kırmızı ve siyahtan ayrı) ---- */
.ok-t.c1 { --tc: #c46a00; }
.ok-t.c1 b { text-shadow: 0 1px 0 rgba(255, 246, 220, 0.7); }
.ok-jtiles span:nth-child(3) { color: #c46a00; }

/* ---- 3. tepsi: deste · OKEY (önde, büyük, parlak) · gösterge (ikincil, küçük) ---- */
.ok-indw.okf { display: flex; align-items: center; gap: 12px; }
.ok-okey { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ok-okey-base { padding: 0 6px 6px; }
.ok-okey-base .ok-t, .ok-okey-base .ok-t.sm { --tw: 52px; }
.ok-okey-base::before { content: ""; position: absolute; inset: -8px -6px 2px; z-index: -1; border-radius: 16px; background: radial-gradient(closest-side, rgba(255, 207, 61, 0.38), transparent); }
.ok-okey .ok-tray-l { padding: 1px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffe07a, #ffbf3a); color: #3a2400 !important; letter-spacing: 0.16em !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.ok-okey .ok-t.wild { box-shadow: inset 0 calc(var(--tw) * -0.07) 0 #d8c8a3, inset 0 1px 0 #fff, 0 0 0 2.5px #ffcf3d, 0 0 18px rgba(255, 207, 61, 0.8), 0 4px 10px rgba(0, 0, 0, 0.35); }
.oka-tile-face .ok-okey .ok-t.wild { box-shadow: 0 0 0 2.5px #ffcf3d, 0 0 18px rgba(255, 207, 61, 0.8); }
.ok-okey .ok-t.wild em { display: none; }
.ok-ind { opacity: 0.92; }
.ok-ind .ok-t, .oka-indicator .ok-ind-base .ok-t { --tw: 36px; }
.ok-ind .ok-tray-l { font-size: 9px !important; color: rgba(255, 226, 160, 0.6) !important; }
.oka-indicator .ok-ind-base { width: 74px; height: 62px; }
/* ok: göstergeden okeye (sola) */
.ok-indw.okf .ok-ind-arr { margin: 0 -4px 22px; transform: rotate(-135deg); opacity: 0.8; }
@media (min-width: 1200px) and (min-height: 900px) {
  .ok-okey-base .ok-t, .ok-okey-base .ok-t.sm { --tw: 60px; }
  .ok-ind .ok-t, .oka-indicator .ok-ind-base .ok-t { --tw: 42px; }
  .oka-indicator .ok-ind-base { width: 86px; height: 72px; }
}
@media (max-height: 820px) and (min-width: 761px) {
  .ok-okey-base .ok-t, .ok-okey-base .ok-t.sm { --tw: 44px; }
  .ok-ind .ok-t, .oka-indicator .ok-ind-base .ok-t { --tw: 30px; }
  .oka-indicator .ok-ind-base { width: 62px; height: 52px; }
  .ok-indw.okf { gap: 9px; }
  .m-h .ok-tray { padding: 4px 12px 3px; }
  .m-h .ok-tray .ok-tray-l { font-size: 9px !important; }
  .m-h .ok-deck, .m-h .ok-okey, .m-h .ok-ind { gap: 3px; }
  .m-h .ok-okey-base .ok-t, .m-h .ok-okey-base .ok-t.sm { --tw: 38px; }
  .m-h .ok-okey-base { padding-bottom: 3px; }
  .oka-deck .m-h .ok-deck-st { width: 54px; height: 54px; }
}
@media (max-width: 760px) {
  .ok-indw.okf { gap: 5px; padding: 0; }
  .ok-okey { gap: 4px; }
  .ok-okey-base { padding: 0 3px 3px; }
  .ok-okey-base .ok-t, .ok-okey-base .ok-t.sm { --tw: 36px; }
  .ok-okey .ok-tray-l { padding: 0 6px; letter-spacing: 0.08em !important; }
  .ok-ind .ok-t, .oka-indicator .ok-ind-base .ok-t { --tw: 24px; }
  .oka-indicator .ok-ind-base { width: 46px; height: 40px; }
  .ok-indw.okf .ok-ind-arr { margin: 0 -2px 16px; }
}

/* ---- 4. kaydırma çubukları (okey sayfası): ince, yuvarlak, altın→mor ---- */
@supports selector(::-webkit-scrollbar) {
  body[data-title="play_okey_name"] * { scrollbar-width: auto !important; scrollbar-color: auto !important; }
  body[data-title="play_okey_name"] *::-webkit-scrollbar { width: 8px; height: 8px; }
  body[data-title="play_okey_name"] *::-webkit-scrollbar-track { background: rgba(139, 92, 246, 0.1); border-radius: 99px; margin: 6px; }
  body[data-title="play_okey_name"] *::-webkit-scrollbar-thumb { border-radius: 99px; border: 2px solid transparent; background: linear-gradient(180deg, #ffd76b, #b58bff) padding-box; }
  body[data-title="play_okey_name"] *::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe48a, #c9a6ff) padding-box; border-width: 1px; }
  body[data-title="play_okey_name"] *::-webkit-scrollbar-corner, body[data-title="play_okey_name"] *::-webkit-scrollbar-button { display: none; width: 0; height: 0; background: transparent; }
  :root[data-theme="light"] body[data-title="play_okey_name"] *::-webkit-scrollbar-track { background: rgba(124, 79, 224, 0.1); }
  :root[data-theme="light"] body[data-title="play_okey_name"] *::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f0b93a, #8b5cf6) padding-box; }
}
@supports not selector(::-webkit-scrollbar) {
  body[data-title="play_okey_name"] * { scrollbar-width: thin; scrollbar-color: #d6a84a rgba(139, 92, 246, 0.12); }
}

/* ---- 5. açılan perler: masanın ortası per alanı; oyuncu başına renkli bölge (karşı üstte, sol|sağ ortada, ben altta);
        taş boyu (--mt) JS ile sığdırılır, kaydırma yok ---- */
#ok-melds { --mt: 28px; display: flex; flex-wrap: wrap; align-content: safe center; align-items: stretch; gap: calc(var(--mt) * 0.22 + 2px);
  max-height: none; min-height: 0; overflow: hidden; padding: calc(var(--mt) * 0.14 + 2px); border-radius: 18px; }
#ok-melds.over { overflow: auto; }
#ok-melds.more { -webkit-mask-image: none; mask-image: none; }
#ok-melds .ok-t.sm { --tw: var(--mt); }
#ok-melds .ok-t b { font-size: calc(var(--tw) * 0.6); }
#ok-melds .ok-t i { width: calc(var(--tw) * 0.18); height: calc(var(--tw) * 0.18); margin-top: calc(var(--tw) * 0.05); }
#ok-melds .ok-mgrp { flex: 1 1 100%; min-width: 0; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; align-content: center;
  gap: calc(var(--mt) * 0.18 + 2px); padding: calc(var(--mt) * 0.12 + 2px) calc(var(--mt) * 0.16 + 3px); border-radius: calc(var(--mt) * 0.3 + 6px);
  background: color-mix(in srgb, var(--pc) 12%, rgba(10, 4, 28, 0.55)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 70%, transparent); }
#ok-melds .ok-mgrp.z1, #ok-melds .ok-mgrp.z3 { flex: var(--w) 1 0; min-width: min-content; }
#ok-melds.stack .ok-mgrp.z1, #ok-melds.stack .ok-mgrp.z3 { flex: 1 1 100%; }
#ok-melds .ok-mgrp.mine { background: color-mix(in srgb, var(--pc) 18%, rgba(10, 4, 28, 0.5)); box-shadow: inset 0 0 0 2.5px var(--pc), 0 0 14px color-mix(in srgb, var(--pc) 28%, transparent); }
#ok-melds .ok-mgrp.tm { box-shadow: inset 0 0 0 2px var(--tc, var(--pc)); background: color-mix(in srgb, var(--tc, var(--pc)) 12%, rgba(10, 4, 28, 0.55)); }
/* sahip etiketi: her bölgenin başında avatar + ad (oyuncu rengi) */
#ok-melds .ok-mown { flex: none; max-width: calc(var(--mt) * 3.6 + 30px); gap: 4px; padding: 2px 9px 2px 2px; font-size: clamp(10.5px, calc(var(--mt) * 0.4), 14px); line-height: 1.2; }
#ok-melds .ok-mown .ns-av { --s: clamp(16px, calc(var(--mt) * 0.72), 26px) !important; width: var(--s); height: var(--s); }
#ok-melds .ok-meld { gap: max(1px, calc(var(--mt) * 0.05)); padding: max(2px, calc(var(--mt) * 0.08)); border-radius: calc(var(--mt) * 0.22 + 2px); }
#ok-melds .ok-meld.new { animation: ok-in 0.35s ease both; }
#ok-melds .ok-melds-empty { margin: auto; }
@media (min-width: 761px) {
  /* 101: tepsi üst sırada karşı oyuncunun yanında; perler masanın orta-alt kısmının tamamını kullanır */
  .m-h .ok-felt { grid-template-columns: minmax(92px, 128px) minmax(0, 1fr) minmax(0, 1fr) minmax(92px, 128px);
    grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "d2 p2 mid d1" "p3 melds melds p1" "d3 melds melds d0"; }
  .m-h #ok-p2 { justify-self: end; align-self: center; }
  .m-h #ok-mid { justify-self: start; align-self: center; }
  .m-h #ok-melds { align-self: stretch; }
}
@media (min-width: 1200px) and (min-height: 900px) {
  .m-h .ok-felt { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(0, 1fr) minmax(110px, 150px); }
}
@media (max-width: 760px) {
  .m-h .ok-felt { grid-template-rows: auto auto minmax(0, 1fr); }
  #ok-melds { border-radius: 12px; }
  #ok-melds .ok-mown { padding: 1px 7px 1px 1px; }
  #ok-melds { gap: 3px; padding: 2px; }
  #ok-melds .ok-mgrp { gap: 3px 4px; padding: 2px 3px; border-radius: 9px; }
  #ok-melds .ok-meld { padding: 1px; border-radius: 5px; }
  /* 101'de telefonda rakip kartları ve tepsi daha sıkı: perlere yer kalsın */
  .m-h .ok-felt { row-gap: 4px; }
  .m-h .ok-pc, .m-h .r1 .ok-pc, .m-h .r3 .ok-pc { padding: 3px 4px; gap: 1px; }
  .m-h .ok-pc-av .ns-av { --s: 26px !important; }
  .m-h .ok-tray { padding: 3px 8px 2px; }
  .m-h .ok-deck-st { width: 28px; height: calc(38px + var(--n) * 2px); }
  .m-h .ok-deck-st .ok-t { --tw: 28px; }
  .oka-deck .m-h .ok-deck-st { width: 40px; height: 40px; }
  .m-h .ok-okey-base .ok-t, .m-h .ok-okey-base .ok-t.sm { --tw: 30px; }
  .m-h .ok-dstack { width: 40px; height: 54px; }
  .m-h .ok-dstack .ok-t { --tw: 32px; }
}

/* ---- 6. alt dok: ince bilgi şeridi (ben · durum · sayaç halkası · küçük yardımcılar), altında ıstaka + sağında sabit ana düğmeler ---- */
.ok-dock { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "me aux" "rack acts" "hint hint"; align-items: center; column-gap: 10px; row-gap: 6px; }
.ok-dock.noacts { grid-template-areas: "me me" "rack rack" "hint hint"; }
.ok-me { grid-area: me; min-height: 0; height: 40px; box-sizing: border-box; gap: 10px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px var(--line, rgba(255, 255, 255, 0.1)); }
.ok-me-av .ns-av { --s: 32px !important; }
.ok-me-t { flex-direction: row; align-items: baseline; gap: 8px; }
.ok-me-t b { font-size: 15px; max-width: 180px; }
.ok-me-t small { font-size: 12.5px; white-space: nowrap; }
.ok-status, .ok-status.turn { flex: 1 1 auto; min-width: 0; padding: 4px 12px; border-radius: 999px; font: 600 13.5px/1.25 "Fredoka", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: none; }
.ok-status.turn { box-shadow: 0 2px 0 #c98a00, 0 0 14px rgba(255, 182, 39, 0.3); }
/* sayaç: durumun hemen yanında halka */
.ok-timer { --p: 0; position: relative; flex: none; width: 32px; height: 32px; min-width: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; visibility: hidden;
  background: conic-gradient(#ffcf3d calc(var(--p) * 360deg), rgba(255, 255, 255, 0.12) 0); font: 700 12.5px/1 "Fredoka", sans-serif; color: var(--ink, #fff); animation: none; }
.ok-timer::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg-soft, #160f2e); }
.ok-timer b { position: relative; font: inherit; }
.ok-timer.on { visibility: visible; }
.ok-timer.low { background: conic-gradient(#ff5d6c calc(var(--p) * 360deg), rgba(255, 93, 108, 0.18) 0); color: #ff8a95; animation: ok-bob 0.5s ease-in-out infinite; }
/* yardımcılar: küçük düğmeler, şeridin sağında; hep aynı yerde */
.ok-aux { grid-area: aux; display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.ok-aux:empty { display: none; }
.ok-btn.ok-sb { height: 36px; min-height: 0; padding: 0 11px; gap: 5px; border-radius: 12px; font-size: 13.5px; flex: none; }
.ok-btn.ok-sb .ok-ico { width: 20px; height: 20px; font-size: 16px; }
.ok-btn.ok-sb.xtra { animation: ok-in 0.3s ease both; }
/* ana düğmeler: ıstakanın sağında dikey, eşit boy */
.ok-rackwrap { grid-area: rack; min-width: 0; }
.ok-acts { grid-area: acts; align-self: stretch; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 7px; width: 132px; }
.ok-acts:empty { display: none; }
.ok-acts .ok-btn { flex: 1 1 0; width: 100%; height: auto; min-height: 42px; max-height: 64px; padding: 0 12px; justify-content: flex-start; gap: 8px; white-space: nowrap; font-size: 15px; }
.ok-acts .ok-btn .ok-ico { width: 24px; height: 24px; font-size: 19px; flex: none; }
.ok-acts .ok-btn span:not(.ok-ico) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ok-acts .ok-btn.main.hot { animation: none; }
/* sıra sendeyken yapılacak düğme parlar */
.ok-btn.now:not(:disabled) { animation: ok-now 1.4s ease-in-out infinite; }
.ok-btn.disc.now:not(:disabled) { background: linear-gradient(180deg, #ff9b8f, #e5484d); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #9e2a2f, 0 0 18px rgba(229, 72, 77, 0.5); }
.ok-btn.gold.now:not(:disabled) { background: linear-gradient(180deg, #ffe07a, #ffb627); color: #3a2400; }
@keyframes ok-now { 50% { filter: brightness(1.15) drop-shadow(0 0 8px rgba(255, 207, 61, 0.55)); } }
.ok-hint { grid-area: hint; }
.ok-sitin { flex: none; }
:root[data-theme="light"] .ok-me { background: rgba(255, 255, 255, 0.7); }
:root[data-theme="light"] .ok-timer::before { background: #fff; }
@media (prefers-reduced-motion: reduce) { .ok-btn.now, .ok-timer.low { animation: none !important; } }
@container oktable (min-width: 880px) {
  .ok-dock { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "me aux" "rack acts" "hint hint"; }
  .ok-dock.noacts { grid-template-areas: "me me" "rack rack" "hint hint"; }
  .ok-acts { flex-wrap: nowrap; justify-content: center; }
  .ok-status { font-size: 13.5px; padding: 4px 12px; }
}
@container oktable (max-width: 879px) {
  .ok-acts { width: 112px; }
  .ok-acts .ok-btn { padding: 0 9px; font-size: 14px; gap: 6px; }
  .ok-btn.ok-sb span:not(.ok-ico) { display: none; }
  .ok-btn.ok-sb { width: 38px; padding: 0; justify-content: center; }
}
/* telefon: şerit · ıstaka · altında tek sıra büyük dokunma hedefleri (yardımcılar solda, ana düğmeler sağda) */
@media (max-width: 760px) {
  .ok-dock { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "me me" "rack rack" "aux acts"; column-gap: 6px; row-gap: 5px; }
  .ok-dock.noacts { grid-template-areas: "me me" "rack rack"; }
  .ok-me { height: 34px; padding: 0 6px 0 2px; gap: 6px; }
  .ok-me-av .ns-av { --s: 28px !important; }
  .ok-me-t b { font-size: 13px; max-width: 84px; }
  .ok-me-t small { display: none; }
  .ok-me { height: auto; min-height: 36px; }
  .ok-me-t { flex: 0 1 auto; min-width: 36px; }
  .ok-status, .ok-status.turn { padding: 2px 8px; font-size: 11.5px; line-height: 1.15; white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; border-radius: 12px; }
  .ok-timer { width: 28px; height: 28px; font-size: 11.5px; }
  .ok-aux { justify-content: flex-start; gap: 5px; }
  .ok-btn.ok-sb { width: 48px; height: 48px; min-height: 48px; padding: 3px 2px; flex-direction: column; gap: 1px; justify-content: center; }
  .ok-btn.ok-sb span:not(.ok-ico) { display: block; font-size: 9.5px; line-height: 1.05; white-space: normal; text-align: center; }
  .ok-btn.ok-sb.xtra span:not(.ok-ico) { display: none; }
  .ok-acts { width: auto; flex-direction: row; gap: 5px; }
  .ok-acts .ok-btn { flex: 1 1 0; min-height: 48px; max-height: none; height: 48px; padding: 3px 4px; flex-direction: column; justify-content: center; gap: 1px; white-space: normal; }
  .ok-acts .ok-btn span:not(.ok-ico) { font-size: 12px; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .ok-acts .ok-btn .ok-ico { width: 20px; height: 20px; font-size: 17px; }
}

/* ---- 5b. sohbet: masadayken panel daha dar ve küçültülebilir (– ile kenara iner, masa genişler) ---- */
@media (min-width: 1240px) {
  body:has(#ok-table) #ns-chat.dock { width: 280px; }
  body.ns-docked #ns.ok-on { --nsw: min(1240px, calc(100vw - 340px)); max-width: var(--nsw); }
  body.ns-docked:has(#ok-table) #ns { left: calc(-1 * max(0px, (var(--nsw) + 300px - 100vw) / 2 + 150px)); left: -150px; }
  body.ok-chatmin:has(#ok-table) #ns-chat .ns-chat-fab { display: none !important; }
  body.ok-chatmin .ok-tb.chat { display: inline-flex; }
  /* masada: panel başlığında "–" küçült düğmesi */
  body:has(#ok-table) #ns-chat.dock .ns-chat-x { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-color: rgba(255, 214, 120, 0.45); color: #ffd76b; transition: background 0.15s, transform 0.15s; }
  body:has(#ok-table) #ns-chat.dock .ns-chat-x:hover { background: rgba(255, 214, 120, 0.14); transform: translateY(-1px); }
}
/* ---- 7. titreme yok: ✓ hep var, seçili değilse gizli; seçili kart yeniden çizilmez ---- */
.ok-mtile:not(.on) > em { display: none; }
.ok-seg button sup[hidden] { display: none; }
/* === /TUR3 === */
