/* ==========================================================================
   Merkez Durak — Oyun salonu (okey, tavla, satranç)
   Yeşil çuha, ahşap ıstaka, krem taşlar. Sitenin lacivert/durak sarısı kimliğiyle.
   ========================================================================== */

/* ---------- Lobi ---------- */
.gm-hero { background: radial-gradient(120% 140% at 15% 0%, #2E8B57 0%, #145C38 45%, #0B3A23 100%); color: #fff; padding: clamp(28px, 5vw, 56px) 0 clamp(60px, 8vw, 90px); position: relative; overflow: hidden; }
.gm-hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .22), transparent 65%); pointer-events: none; }
.gm-hero .eyebrow { color: var(--signal); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.gm-hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; max-width: 16ch; }
.gm-hero .sub { max-width: 58ch; opacity: .9; margin: 0 0 16px; font-size: 17px; }
.gm-online { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .15); padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; margin: 0; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #5BE38F; box-shadow: 0 0 0 0 rgba(91, 227, 143, .7); animation: gm-pulse 1.8s infinite; }
@keyframes gm-pulse { 70% { box-shadow: 0 0 0 9px rgba(91, 227, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 143, 0); } }

.gm-lobby { margin-top: clamp(-70px, -6vw, -40px); position: relative; z-index: 2; padding-bottom: 48px; }
.gm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gm-card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--rule); transition: transform .2s, box-shadow .2s; }
.gm-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(20, 26, 58, .06), 0 18px 40px -16px rgba(20, 26, 58, .35); }
.gm-art svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 220; }
.gm-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gm-card h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.gm-card h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.gm-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.gm-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.gm-levels { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 99px; padding: 3px; }
.gm-levels label { cursor: pointer; }
.gm-levels input { position: absolute; opacity: 0; pointer-events: none; }
.gm-levels span { display: block; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gm-levels input:checked + span { background: var(--ink); color: #fff; }
.gm-levels input:focus-visible + span { outline: 3px solid var(--signal); }
.gm-quick .btn { flex: 1; min-width: 120px; }
.gm-online-form { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--rule); }
.gm-private { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.gm-guest { display: flex; gap: 12px; align-items: center; margin-top: auto !important; }

.gm-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
.gm-h { font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }
.gm-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gm-list li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px 12px; }
.gm-list li.is-waiting { border-color: #9ED8B5; background: linear-gradient(90deg, #EFFAF3, var(--card) 60%); }
.gm-list li > div { flex: 1; min-width: 0; }
.gm-list b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-list small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-list form { margin: 0; }
.gm-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: #145C38; color: #fff; }
.gm-seats { font-weight: 700; font-size: 13px; color: var(--ok); background: #E6F5EC; border-radius: 99px; padding: 3px 9px; }
.gm-empty { margin-bottom: 24px; }
.gm-rules { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 4px 16px; }
.gm-rules summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.gm-rules p { font-size: 15px; color: var(--ink-2); }
.gm-leaders { display: grid; gap: 14px; }
.gm-lb { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; }
.gm-lb h3 { margin: 0 0 8px; font-size: 16px; }
.gm-lb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gm-lb li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; align-items: center; }
.gm-lb li a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gm-lb li small { grid-column: 2; color: var(--muted); font-size: 12px; }
.gm-lb .rk { font-weight: 800; color: var(--muted); text-align: center; }
.gm-lb li:first-child .rk { color: #C99700; }
.gm-lb .muted { margin: 0; font-size: 14px; }

@media (max-width: 960px) { .gm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .gm-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Masa ---------- */
.game-page .site-foot, .game-page .tabbar { display: none; }
.game-page main { background: #0E2E1F; }
.gt { --felt: #1E6B43; --felt-2: #0F4A2C; --wood: #8A4F22; --wood-2: #5C3213; max-width: 1360px; margin: 0 auto; padding: 12px var(--gutter) 24px; color: #EAF5EE; }
.gt-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gt-back { color: #CDE8D6; text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.gt-top h1 { margin: 0; font-size: 20px; flex: 1; min-width: 0; letter-spacing: -.02em; color: #fff; }
.gt-top h1 small { font-size: 13px; color: #9CC7AC; font-weight: 600; }
.gt-tools { display: flex; gap: 6px; }
.gt-tool { border: 0; background: rgba(255, 255, 255, .1); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 700; min-width: 36px; }
.gt-tool:hover { background: rgba(255, 255, 255, .18); }
.gt-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.gt-stage { min-width: 0; }
.gt-board { position: relative; background: radial-gradient(130% 110% at 50% 20%, var(--felt) 0%, var(--felt-2) 75%); border-radius: 20px; padding: clamp(10px, 2vw, 20px); box-shadow: inset 0 0 0 6px #3B2210, inset 0 0 0 8px #6B4220, inset 0 0 60px rgba(0, 0, 0, .45), 0 20px 50px -20px rgba(0, 0, 0, .7); min-height: 360px; overflow: hidden; touch-action: manipulation; }
.gt-loading { text-align: center; padding: 120px 0; opacity: .7; }
.gt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 14px; }
.gt-status { margin: 0; font-size: 15px; }
.gt-status .you { color: var(--signal); }
.gt-status .muted { color: #9CC7AC; }
.gt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gt .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.gt .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.gt.is-myturn .gt-board { box-shadow: inset 0 0 0 6px #3B2210, inset 0 0 0 8px var(--signal), inset 0 0 60px rgba(0, 0, 0, .45), 0 20px 50px -20px rgba(0, 0, 0, .7); }

.gt-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; position: sticky; top: 76px; min-width: 0; }
.gt-side > * { min-width: 0; }
.gt-side h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #9CC7AC; margin: 0 0 8px; }
.gt-players, .gt-extra:not(:empty), .gt-chat { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px; }
.gt-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gt-plist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.gt-plist li.is-turn { background: rgba(255, 210, 63, .14); box-shadow: inset 3px 0 0 var(--signal); }
.gt-plist .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gt-plist .nm a { color: inherit; }
.gt-plist .tag { color: #DDEFE3; background: rgba(255, 255, 255, .14); border-radius: 4px; padding: 1px 5px; font-size: 11px; font-weight: 700; }
.gt-plist .sc { font-weight: 800; color: var(--signal); }
.gt-av { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; }
.gt-av-txt { display: inline-grid; place-items: center; background: #2B4A3A; color: #fff; font-weight: 800; font-size: 14px; }

.gt-chat { display: flex; flex-direction: column; }
.gt-log { list-style: none; margin: 0 0 8px; padding: 0; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; overscroll-behavior: contain; }
.gt-log li { padding: 4px 8px; border-radius: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.gt-log .m-sys { color: #9CC7AC; font-style: italic; font-size: 13px; }
.gt-log .m-chat { background: rgba(255, 255, 255, .07); }
.gt-log .m-chat.is-me { background: rgba(255, 210, 63, .14); }
.gt-log .m-chat b, .gt-log .m-emoji b { color: #fff; margin-right: 4px; }
.gt-log time { font-size: 11px; color: #9CC7AC; margin-left: 4px; }
.gt-log .m-emoji span { font-size: 22px; vertical-align: middle; }
.gt-emojis { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.gt-emojis button { border: 0; background: rgba(255, 255, 255, .08); border-radius: 8px; font-size: 20px; padding: 3px 7px; cursor: pointer; transition: transform .15s; }
.gt-emojis button:hover { transform: scale(1.18); background: rgba(255, 255, 255, .16); }
.gt-say { display: flex; gap: 6px; }
.gt-say input { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); color: #fff; padding: 8px 10px; }
.gt-say input::placeholder { color: #9CC7AC; }
.gt-guest { margin: 0; font-size: 14px; }
.gt-guest a { color: var(--signal); }

/* Koltuk etiketi */
.gt-seat { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; padding: 4px 12px 4px 4px; position: relative; max-width: 100%; color: #fff; }
.gt-seat.is-turn { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 210, 63, .25), 0 0 18px rgba(255, 210, 63, .35); }
.gt-seat-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gt-seat-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-seat-txt b em { font-style: normal; font-size: 11px; background: var(--signal); color: var(--signal-ink); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.gt-seat-txt small { font-size: 12px; color: #BFE0CB; white-space: nowrap; }
.gt-clock { position: absolute; left: 14px; right: 14px; bottom: -5px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.gt-clock i { display: block; height: 100%; width: 100%; background: #5BE38F; transition: width .25s linear; }
.gt-clock.low i { background: #FF6B5B; }
.gt-think { font-size: 12px; color: var(--signal); margin-left: 4px; }
.gt-float { position: absolute; left: 50%; top: -6px; font-size: 34px; transform: translateX(-50%); animation: gt-float 2.3s ease-out forwards; pointer-events: none; z-index: 8; }
@keyframes gt-float { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

.gt-toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(10, 20, 15, .92); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 20; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: opacity .4s; max-width: 90%; text-align: center; }
.gt-toast.is-err { background: #8E1E2A; }
.gt-toast.out { opacity: 0; }
.gt-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.gt-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: gt-fall linear forwards; }
@keyframes gt-fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }

.gt-over { position: absolute; inset: 0; background: rgba(4, 20, 12, .62); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 15; padding: 16px; animation: gt-in .3s ease-out; }
@keyframes gt-in { from { opacity: 0; } }
.gt-over-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px 24px; text-align: center; max-width: 520px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.gt-over-card .ic { font-size: 48px; line-height: 1; }
.gt-over-card h2 { margin: 8px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.gt-over-card p { margin: 0 0 12px; color: var(--ink-2); }
.gt-over-card .gt-actions { justify-content: center; }
.gt-over-card .btn-ghost { color: var(--ink); border-color: var(--rule); }
.gt-over.is-won .gt-over-card { box-shadow: 0 0 0 4px var(--signal), 0 30px 60px -20px rgba(0, 0, 0, .6); }
.gt-over-hand small { display: block; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.ok-reveal { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-bottom: 14px; }
.ok-reveal .ok-tile { --tw: 30px; }

.gt-wait { text-align: center; padding: 30px 10px; }
.gt-wait h2 { margin: 0 0 18px; color: #fff; }
.gt-wait-seats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.gt-wait-seat { width: 150px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gt-wait-seat .gt-av { width: 54px; height: 54px; font-size: 22px; }
.gt-wait-seat.is-empty { border-style: dashed; opacity: .85; }
.gt-wait-seat small { color: #BFE0CB; }
.gt-wait-hint { max-width: 46ch; margin: 18px auto 0; color: #CDE8D6; }

.gt-dialog { max-width: 560px; border: 0; border-radius: 16px; padding: 22px 24px; color: var(--ink); }
.gt-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.gt-dialog h2 { margin: 0 0 10px; }
.gt-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }

/* ---------- Satranç ---------- */
.ch-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ch-board { width: min(100%, 78vh, 640px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 8px #3B2210, 0 0 0 10px #A0703F, 0 18px 40px rgba(0, 0, 0, .55); user-select: none; -webkit-user-select: none; touch-action: none; }
.ch-sq { position: relative; display: grid; place-items: center; container-type: size; }
.ch-sq.lt { background: #EED9B6; }
.ch-sq.dk { background: #A9774B; }
.ch-sq.last.lt { background: #F2E27A; }
.ch-sq.last.dk { background: #C9A93E; }
.ch-sq.sel { box-shadow: inset 0 0 0 4px rgba(255, 210, 63, .95); }
.ch-sq.check { background: radial-gradient(circle, #FF4D4D 0%, #D0312D 45%, transparent 80%), #A9774B; }
.ch-sq.tgt::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(20, 26, 58, .35); }
.ch-sq.cap::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 5px solid rgba(20, 26, 58, .35); }
.is-live .ch-sq.can { cursor: grab; }
.ch-pc { font-family: "DejaVu Sans", "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif; font-size: 78cqh; line-height: 1; z-index: 1; transition: transform .12s; }
.ch-sq .ch-pc { font-size: min(78cqh, 9vw); }
@supports not (container-type: size) { .ch-pc { font-size: min(7vw, 56px); } }
.ch-pc.w { color: #FFFDF6; text-shadow: 0 0 1px #2B1A0C, 0 0 1px #2B1A0C, 0 0 2px #2B1A0C, 0 2px 3px rgba(0, 0, 0, .45); }
.ch-pc.b { color: #1B1B1F; text-shadow: 0 0 1px #D7C29A, 0 2px 3px rgba(0, 0, 0, .4); }
.is-live .ch-sq.can:hover .ch-pc { transform: scale(1.08); }
.ch-ghost { position: fixed; z-index: 1000; pointer-events: none; display: grid; place-items: center; transform: scale(1.15); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.ch-rank, .ch-file { position: absolute; font-style: normal; font-size: 11px; font-weight: 800; opacity: .7; }
.ch-rank { left: 3px; top: 2px; }
.ch-file { right: 4px; bottom: 1px; }
.ch-sq.lt .ch-rank, .ch-sq.lt .ch-file { color: #8A5A30; }
.ch-sq.dk .ch-rank, .ch-sq.dk .ch-file { color: #F3E3C6; }
.ch-caps { font-family: "DejaVu Sans", "Segoe UI Symbol", serif; font-size: 16px; letter-spacing: -2px; }
.ch-caps.w { color: #fff; }
.ch-caps.b { color: #111; text-shadow: 0 0 1px #fff; }
.ch-promo { position: absolute; inset: 0; z-index: 16; display: grid; place-content: center; background: rgba(0, 0, 0, .55); text-align: center; }
.ch-promo p { color: #fff; font-weight: 700; }
.ch-promo div { display: flex; gap: 10px; background: #EED9B6; padding: 10px; border-radius: 14px; }
.ch-promo button { border: 0; background: #A9774B; border-radius: 10px; width: 64px; height: 64px; font-size: 46px; cursor: pointer; }
.ch-moves { list-style: decimal; margin: 0; padding: 0 0 0 28px; max-height: 200px; overflow-y: auto; font-size: 14px; counter-reset: none; }
.ch-moves li { padding: 2px 0; }
.ch-moves li::marker { color: #9CC7AC; }
.ch-moves span { display: inline-block; min-width: 64px; font-weight: 600; }

/* ---------- Tavla ---------- */
.tv-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tv-board { width: 100%; max-width: 880px; display: flex; gap: 8px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, var(--wood), var(--wood-2)); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .5); user-select: none; -webkit-user-select: none; }
.tv-field { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 13 / 10; min-width: 0; }
.tv-row { display: flex; height: 44%; }
.tv-half { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); background: linear-gradient(#F3E3C3, #E4CDA2); border-radius: 4px; }
.tv-gap { width: 9%; flex: none; }
.tv-pt { position: relative; display: flex; justify-content: center; cursor: default; min-width: 0; }
.tv-pt::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; bottom: 6%; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--tri); }
.tv-pt.bot::before { top: 6%; bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tv-pt.a { --tri: #B5452B; }
.tv-pt.b { --tri: #2F6B4F; }
.tv-stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }
.tv-pt.bot .tv-stack { flex-direction: column-reverse; align-self: flex-end; }
.tv-ck { width: min(86%, 46px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; margin: -1px 0; flex: none; }
.tv-ck.c0 { background: radial-gradient(circle at 38% 32%, #fff, #DCD3C2 70%); box-shadow: inset 0 0 0 2px #B9AF9C, inset 0 0 0 5px #F4EFE6, 0 2px 3px rgba(0, 0, 0, .4); color: #5A4C33; }
.tv-ck.c1 { background: radial-gradient(circle at 38% 32%, #7A3030, #2A0E0E 70%); box-shadow: inset 0 0 0 2px #170606, inset 0 0 0 5px #4E1A1A, 0 2px 3px rgba(0, 0, 0, .5); color: #F3D9B6; }
.tv-no { position: absolute; font-style: normal; font-size: 10px; font-weight: 700; color: rgba(60, 35, 15, .45); }
.tv-pt.top .tv-no { bottom: -16px; }
.tv-pt.bot .tv-no { top: -16px; }
.is-live .tv-pt.can, .is-live .tv-barz.can { cursor: pointer; }
.is-live .tv-pt.can .tv-ck:last-child { box-shadow: 0 0 0 3px var(--signal), 0 0 14px rgba(255, 210, 63, .8); }
.is-live .tv-pt.bot.can .tv-ck:first-child { box-shadow: 0 0 0 3px var(--signal), 0 0 14px rgba(255, 210, 63, .8); }
.is-live .tv-pt.bot.can .tv-ck:last-child:not(:first-child) { box-shadow: inherit; }
.tv-pt.sel::after { content: ""; position: absolute; inset: 0; background: rgba(255, 210, 63, .25); border-radius: 4px; }
.tv-pt.tgt { cursor: pointer; }
.tv-pt.tgt::after { content: ""; position: absolute; inset: 0; background: rgba(91, 227, 143, .35); border-radius: 4px; box-shadow: inset 0 0 0 3px #5BE38F; animation: tv-glow 1s infinite alternate; }
@keyframes tv-glow { to { background: rgba(91, 227, 143, .15); } }
.tv-bar { position: absolute; left: 50%; top: 0; bottom: 0; width: 9%; transform: translateX(-50%); background: linear-gradient(90deg, #4E2810, #6B3A18, #4E2810); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 4px 0; }
.tv-barz { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 2px; min-height: 30%; padding-top: 4px; }
.tv-barz.bot { justify-content: flex-end; }
.tv-barz .tv-ck { width: 82%; }
.tv-barz.can .tv-ck { box-shadow: 0 0 0 3px var(--signal), 0 0 14px rgba(255, 210, 63, .8); }
.tv-barz.sel { background: rgba(255, 210, 63, .25); border-radius: 6px; }
.tv-tray { width: 7%; min-width: 34px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 4px; }
.tv-off { display: flex; flex-direction: column; align-items: stretch; gap: 1px; position: relative; min-height: 40%; }
.tv-off.bot { flex-direction: column-reverse; }
.tv-off b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.tv-off.top b { bottom: 0; }
.tv-off.bot b { top: 0; }
.tv-slab { height: 5px; border-radius: 2px; }
.tv-slab.c0 { background: #EDE5D6; }
.tv-slab.c1 { background: #5A1E1E; }
.tv-tray.tgt { cursor: pointer; box-shadow: inset 0 0 0 3px #5BE38F; background: rgba(91, 227, 143, .25); animation: tv-glow 1s infinite alternate; }
.tv-dice { position: absolute; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; z-index: 3; pointer-events: none; }
.tv-dice.mine { right: 14%; }
.tv-dice.theirs { left: 14%; }
.tv-die { width: clamp(28px, 5.5vw, 44px); aspect-ratio: 1; background: #FFFDF7; border-radius: 22%; display: block; box-shadow: inset 0 -3px 0 #DDD5C2, 0 4px 8px rgba(0, 0, 0, .45); transition: opacity .2s; }
.tv-die svg { display: block; width: 100%; height: 100%; fill: #1A1A1A; }
.tv-dice.theirs .tv-die svg { fill: #8E1E2A; }
.tv-die.used { opacity: .35; }
.tv-dice.roll .tv-die { animation: tv-roll .55s cubic-bezier(.3, 1.4, .5, 1); }
.tv-dice.roll .tv-die:nth-child(2) { animation-delay: .05s; }
@keyframes tv-roll { 0% { transform: translateY(-30px) rotate(-200deg) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Okey ---------- */
.ok-tile { --tw: clamp(26px, 4.2vw, 46px); width: var(--tw); height: calc(var(--tw) * 1.42); border-radius: calc(var(--tw) * .14); background: linear-gradient(#FFFDF5, #EDE4CC); box-shadow: inset 0 -3px 0 #D3C7A6, inset 0 0 0 1px #D6CBAE, 0 2px 4px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--tw) * .06); position: relative; flex: none; user-select: none; -webkit-user-select: none; }
.ok-tile b { font-size: calc(var(--tw) * .56); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.ok-tile i { width: calc(var(--tw) * .17); height: calc(var(--tw) * .17); border-radius: 50%; background: currentColor; }
.ok-tile.kirmizi { color: #D0312D; }
.ok-tile.sari { color: #DE9500; }
.ok-tile.mavi { color: #1F5FBF; }
.ok-tile.siyah { color: #1A1A1A; }
.ok-tile.fake { color: #2E8B57; }
.ok-tile.fake i { display: none; }
.ok-tile.wild::after { content: "★"; position: absolute; top: 2px; right: 3px; font-size: calc(var(--tw) * .26); color: #C99700; line-height: 1; }
.ok-tile.sm { --tw: 26px; }
.ok-tile.sel { transform: translateY(-10px); box-shadow: inset 0 -3px 0 #D3C7A6, 0 0 0 3px var(--signal), 0 8px 14px rgba(0, 0, 0, .45); }
.ok-tile.fresh { animation: ok-fresh 1.2s ease-out; }
@keyframes ok-fresh { 0% { transform: translateY(-24px) scale(1.1); box-shadow: 0 0 0 3px #5BE38F, 0 10px 20px rgba(0, 0, 0, .5); } 100% { transform: none; } }
.ok-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(-4deg) scale(1.1); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }

.ok-table { display: grid; grid-template-columns: 1fr 2.2fr 1fr; grid-template-rows: auto minmax(150px, auto) auto; grid-template-areas: "tl top tr" "left center right" "bl bottom br"; gap: 10px; align-items: center; justify-items: center; min-height: 340px; }
.ok-top { grid-area: top; }
.ok-left { grid-area: left; }
.ok-right { grid-area: right; }
.ok-bottom { grid-area: bottom; }
.ok-backs { display: inline-flex; align-items: center; gap: 4px; }
.ok-backs::before { content: ""; width: 10px; height: 14px; border-radius: 2px; background: linear-gradient(#E9DFC6, #CDBF9C); box-shadow: 3px 0 0 -1px #BFAF88, 6px 0 0 -2px #A99A74; margin-right: 6px; }
.ok-pile { width: calc(var(--pw, 46px) + 26px); min-height: 84px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .18); display: grid; place-items: center; position: relative; transition: background .2s, border-color .2s; }
.ok-tl { grid-area: tl; } .ok-tr { grid-area: tr; } .ok-bl { grid-area: bl; } .ok-br { grid-area: br; }
.ok-pile .ok-empty { color: rgba(255, 255, 255, .45); font-weight: 700; font-size: 13px; }
.ok-cnt { position: absolute; top: -8px; right: -8px; background: rgba(0, 0, 0, .55); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 6px; }
.ok-pile.can { border-color: var(--signal); background: rgba(255, 210, 63, .18); cursor: pointer; animation: ok-pulse 1.2s infinite alternate; }
.ok-pile.drop { border-color: #5BE38F; background: rgba(91, 227, 143, .14); cursor: pointer; }
.ok-pile.hover, .ok-deck.hover { background: rgba(91, 227, 143, .4); transform: scale(1.05); }
@keyframes ok-pulse { to { box-shadow: 0 0 22px rgba(255, 210, 63, .55); } }
.ok-center { grid-area: center; display: flex; gap: clamp(14px, 4vw, 40px); align-items: center; justify-content: center; }
.ok-deck { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: default; padding: 8px; border-radius: 14px; font: inherit; transition: background .2s, transform .2s; }
.ok-deckstack { width: 50px; height: 70px; border-radius: 7px; background: linear-gradient(#E9DFC6, #CDBF9C); box-shadow: 3px 3px 0 -1px #BFAF88, 6px 6px 0 -2px #A99A74, 9px 9px 0 -3px #8E7F5B, 0 10px 16px rgba(0, 0, 0, .45); position: relative; }
.ok-deckstack::after { content: ""; position: absolute; inset: 8px; border-radius: 4px; border: 2px solid rgba(46, 139, 87, .5); }
.ok-deck b { font-size: 18px; }
.ok-deck small { font-size: 12px; color: #BFE0CB; max-width: 140px; text-align: center; }
.ok-deck.can { cursor: pointer; background: rgba(255, 210, 63, .14); box-shadow: 0 0 0 2px var(--signal); animation: ok-pulse 1.2s infinite alternate; }
.ok-deck.finish { cursor: pointer; box-shadow: 0 0 0 2px dashed #5BE38F; outline: 2px dashed rgba(91, 227, 143, .6); outline-offset: 2px; }
.ok-ind { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ok-ind .ok-tile { transform: rotate(-8deg); }
.ok-ind small { font-size: 12px; color: #BFE0CB; text-align: center; }
.ok-ind small b { color: #fff; }

.ok-rack { margin-top: 14px; background: linear-gradient(#B8763A, #7A4419); border-radius: 12px; padding: 8px 8px 4px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 14px 28px rgba(0, 0, 0, .5); touch-action: none; }
.ok-row { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; padding-bottom: 6px; border-bottom: 4px solid #5C3213; margin-bottom: 6px; }
.ok-row:last-child { margin-bottom: 0; }
.ok-slot { aspect-ratio: 1 / 1.42; border-radius: 5px; background: rgba(0, 0, 0, .12); display: grid; place-items: center; min-width: 0; }
.ok-slot.hover { background: rgba(255, 210, 63, .45); }
.ok-slot .ok-tile { --tw: 100%; width: 100%; height: 100%; cursor: grab; container-type: inline-size; }
.ok-slot .ok-tile b { font-size: 56cqw; }
.ok-slot .ok-tile i { width: 17cqw; height: 17cqw; }
.ok-slot .ok-tile.wild::after { font-size: 26cqw; }
.ok-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: center; }
.ok-tools .btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .gt-main { grid-template-columns: 1fr; }
  .gt-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gt-chat { grid-column: 1 / -1; }
  .gt-log { height: 200px; }
}
@media (max-width: 640px) {
  .gt { padding: 8px 8px 20px; }
  .gt-top h1 { font-size: 17px; }
  .gt-tool span { display: none; }
  .gt-board { border-radius: 14px; padding: 8px; }
  .gt-side { grid-template-columns: minmax(0, 1fr); }
  .gt-seat { padding: 3px 8px 3px 3px; }
  .gt-seat .gt-av { width: 24px; height: 24px; font-size: 12px; }
  .gt-seat-txt b { font-size: 12px; max-width: 90px; }
  .gt-seat-txt small { font-size: 11px; }
  .ok-table { grid-template-columns: 1fr 1.6fr 1fr; gap: 6px; min-height: 0; }
  .ok-left, .ok-right { flex-direction: column; border-radius: 12px; padding: 6px; text-align: center; }
  .ok-pile { width: 52px; min-height: 66px; }
  .ok-pile .ok-tile { --tw: 32px; }
  .ok-center { gap: 10px; }
  .ok-deckstack { width: 36px; height: 50px; }
  .ok-deck small { display: none; }
  .ok-ind .ok-tile { --tw: 32px; }
  .ok-ind small { font-size: 11px; }
  .ok-rack { padding: 5px 4px 2px; margin-left: -4px; margin-right: -4px; }
  .ok-row { gap: 2px; }
  .tv-board { padding: 5px; gap: 4px; }
  .tv-ck { font-size: 10px; }
  .tv-no { display: none; }
  .ch-board { box-shadow: 0 0 0 4px #3B2210, 0 10px 20px rgba(0, 0, 0, .5); }
}
