:root {
  --bg-deep: #090F1D;
  --bg-panel: #111A2E;
  --bg-card: #16223A;
  --bg-card-hover: #1D2D4C;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-gold: rgba(245, 158, 11, 0.42);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-gold: #F59E0B;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --accent-sky: #38BDF8;
  --felt-center: #0F5C38;
  --felt-edge: #07331E;
  --wood-dark: #4A220C;
  --wood-mid: #7C3C18;
  --wood-light: #C68642;
  --wood-pale: #E8C082;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-deep); color: var(--text-main); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* Native Modal Dialogs (Modern Web Guidance: dialog + scroll containment) */
dialog {
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0;
  max-inline-size: min(520px, calc(100dvw - 2rem));
  inline-size: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.dlg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
}
.dlg-head h1, .dlg-head h2 { margin: 0; font-size: 1.12rem; }
.dlg-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.dlg-close {
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-subtle);
  border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center;
}

/* Header & Semantic Navbar */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 15, 29, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-inline-size: 1440px; margin-inline: auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  display: grid; place-items: center; font-size: 1.15rem; color: #111827; font-weight: 900;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a, .nav-links button {
  padding: 7px 12px; border-radius: 9px; font-size: 0.9rem; font-weight: 600;
  background: transparent; border: 1px solid transparent; color: #CBD5E1;
}
.nav-links a:hover, .nav-links button:hover { background: rgba(255,255,255,0.07); color: #FFF; }
.nav-links a[aria-current="page"] {
  background: rgba(245, 158, 11, 0.16); border-color: var(--border-gold); color: #FDE68A;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7; font-size: 0.8rem; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulseDot 1.8s ease-in-out infinite; }
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.25); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 0.88rem;
  border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-main);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.28); }
.btn-gold { background: linear-gradient(180deg, #FBBF24, #D97706); color: #111827; border-color: #F59E0B; }
.btn-gold:hover { background: linear-gradient(180deg, #FCD34D, #EA580C); color: #111827; }
.btn-emerald { background: linear-gradient(180deg, #10B981, #047857); color: #FFF; border-color: #10B981; }
.btn-emerald:hover { background: linear-gradient(180deg, #34D399, #059669); }
.btn-rose { background: linear-gradient(180deg, #F43F5E, #BE123C); color: #FFF; border-color: #F43F5E; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; border-radius: 8px; }

/* Main Container & Hero */
.page-wrap { max-inline-size: 1440px; margin-inline: auto; padding: 18px; }
.hero-banner {
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.2), transparent 52%),
              radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.18), transparent 48%),
              linear-gradient(135deg, #0F172A, #16233E);
  border: 1px solid var(--border-subtle); border-radius: 20px; padding: 24px 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-block-end: 20px;
}
.hero-banner h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.15; }
.hero-banner p { margin: 0; color: #CBD5E1; max-inline-size: 68ch; font-size: 0.96rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* 5 Flagship Game Showcase Cards */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin-block-end: 24px;
}
.game-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .game-card:hover { transform: translateY(-2px); border-color: var(--border-gold); }
}
.game-thumb {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  font-weight: 800; color: #FFF; padding: 14px; text-align: center;
}
.thumb-okey { background: radial-gradient(circle, #0F663C, #06301B); }
.thumb-okey101 { background: radial-gradient(circle, #0E5A38, #072A1B); }
.thumb-batak { background: radial-gradient(circle, #14532D, #052E16); }
.thumb-tavla { background: radial-gradient(circle, #8B4513, #3E1C07); }
.thumb-dama { background: radial-gradient(circle, #9A4D1A, #451F09); }
.game-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-body h2 { margin: 0; font-size: 1.05rem; }
.game-card-body p { margin: 0; font-size: 0.84rem; color: var(--text-muted); flex: 1; }
.game-card-actions { display: flex; gap: 8px; margin-top: 6px; }

/* Two-column Lobby Layout (Rooms & Live Channels + Global Lobby Chat & Invite) */
.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1024px) { .lobby-layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  padding: 13px 16px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.tab-btn {
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #CBD5E1;
}
.tab-btn.active { background: rgba(245, 158, 11, 0.18); border-color: var(--accent-gold); color: #FDE68A; }

.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; padding: 14px; }
.room-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.room-card.is-live { border-color: rgba(244, 63, 94, 0.5); box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.18); }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.room-title { font-weight: 800; font-size: 0.96rem; }
.room-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.06);
}
.badge-live { background: rgba(244, 63, 94, 0.2); border-color: #F43F5E; color: #FDA4AF; }
.badge-ai { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.45); color: #7DD3FC; }
.badge-gold { background: rgba(245, 158, 11, 0.18); border-color: var(--border-gold); color: #FDE68A; }
.badge-music { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.45); color: #D8B4FE; }
.room-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-muted); }
.room-actions { display: flex; gap: 8px; margin-top: auto; }

/* Active Room / Arena Stage View */
.arena-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start;
}
@media (max-width: 1120px) { .arena-shell { grid-template-columns: 1fr; } }

.arena-topbar {
  background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 10px 14px; margin-block-end: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* Segital Multi-Mic Bar + RookTalk Live Broadcast Stage */
.stage-bar {
  background: linear-gradient(135deg, #101B33, #172442);
  border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 10px 14px; margin-block-end: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mic-slots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mic-slot {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.8rem; font-weight: 700;
}
.mic-slot.empty { background: rgba(255,255,255,0.04); border-style: dashed; border-color: var(--border-subtle); color: var(--text-muted); }
.music-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 8px; border-top: 1px solid var(--border-subtle); font-size: 0.84rem;
}
.broadcast-video-box {
  background: #020617; border: 1px solid rgba(244, 63, 94, 0.45); border-radius: 14px;
  padding: 12px; margin-block-end: 12px; display: flex; flex-direction: column; gap: 10px;
}
.broadcast-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.broadcast-videos video { width: 100%; max-height: 360px; border-radius: 10px; background: #000; object-fit: contain; }
.mixer-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 0.78rem; color: #CBD5E1; }
.mixer-row label { display: inline-flex; align-items: center; gap: 6px; }
.gift-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ===================== GAME TABLES (MATCHING ALL 5 SCREENSHOTS!) ===================== */

/* Shared Avatar Widget */
.pf-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,0.75); overflow: hidden; display: grid; place-items: center;
  background: #1E293B; position: relative;
}
.pf-avatar.active-turn { border-color: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35); }
.seat-plate {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6, 20, 14, 0.82); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 5px 10px; color: #FFF; font-size: 0.82rem;
}
.seat-plate.wood-plate { background: linear-gradient(180deg, #5D2C10, #3A1907); border-color: #A05A2C; }
.seat-plate.is-turn { border-color: #22C55E; box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
.seat-name { font-weight: 800; display: flex; align-items: center; gap: 5px; }
.seat-sub { font-size: 0.72rem; color: #CBD5E1; }

/* 1) TÜRK DAMASI TABLE (Screenshot #1) */
.dama-table {
  background: linear-gradient(135deg, #4E240D, #2D1205);
  border: 4px solid #7C3D18; border-radius: 18px; padding: 14px;
  display: grid; grid-template-columns: 155px minmax(0, 1fr) 155px; gap: 12px; align-items: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.55);
}
@media (max-width: 820px) { .dama-table { grid-template-columns: 1fr; } }
.dama-side {
  display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: space-between;
}
.dama-tray {
  flex: 1; min-height: 110px; border-radius: 10px;
  background: linear-gradient(180deg, #8A451E, #632D10);
  border: 2px solid #3D1907; box-shadow: inset 0 4px 12px rgba(0,0,0,0.55);
  padding: 8px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px;
}
.dama-clock {
  background: #0F172A; border: 1px solid #8A451E; border-radius: 8px;
  text-align: center; font-family: ui-monospace, monospace; font-weight: 800; padding: 4px; font-size: 0.92rem;
}
.dama-board-frame {
  background: #5B2A0F; padding: 16px; border-radius: 12px;
  border: 3px solid #965224; box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  position: relative; max-inline-size: 560px; margin-inline: auto; inline-size: 100%;
}
.dama-board {
  display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1 / 1;
  border: 2px solid #2A1004;
}
.dama-cell {
  position: relative; display: grid; place-items: center; padding: 0; border: 0;
}
.dama-cell.light {
  background: linear-gradient(135deg, #E5BC7C, #D4A15B);
}
.dama-cell.dark {
  background: linear-gradient(135deg, #984B1B, #7B3810);
}
.dama-cell.selected { box-shadow: inset 0 0 0 3px #FACC15; }
.dama-cell.legal::after {
  content: ""; width: 32%; height: 32%; border-radius: 50%;
  background: rgba(34, 197, 94, 0.85); box-shadow: 0 0 10px #22C55E;
}
.dama-piece {
  width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 900; pointer-events: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.45), inset 0 2px 3px rgba(255,255,255,0.35);
}
.dama-piece.white {
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #CBD5E1);
  border: 3px solid #94A3B8; color: #B45309;
}
.dama-piece.black {
  background: radial-gradient(circle at 35% 30%, #374151, #090D16);
  border: 3px solid #4B5563; color: #FBBF24;
}

/* 2) TAVLA TABLE (Screenshot #5) */
.tavla-table {
  background: linear-gradient(180deg, #4E240E, #2C1206);
  border: 4px solid #8A4B22; border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.tavla-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tavla-board {
  background: linear-gradient(180deg, #6F3515, #53240C);
  border: 8px solid #7C3D18; border-radius: 12px;
  display: grid; grid-template-columns: 1fr 26px 1fr 52px;
  min-height: 440px; position: relative; box-shadow: inset 0 0 26px rgba(0,0,0,0.6);
}
.tavla-half {
  display: grid; grid-template-rows: 1fr 1fr;
  background: linear-gradient(90deg, rgba(0,0,0,0.12), transparent 20%, transparent 80%, rgba(0,0,0,0.12));
}
.tavla-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.tavla-bar {
  background: linear-gradient(90deg, #3B1806, #693012, #3B1806);
  display: flex; flex-direction: column; align-items: center; justify-content: space-around;
  border-inline: 2px solid #260E03; position: relative;
}
.brass-hinge {
  width: 18px; height: 42px; border-radius: 3px;
  background: linear-gradient(90deg, #B4822C, #FDE08D, #9E6E1E);
  border: 1px solid #5C3D0E;
}
.tavla-point {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border: 0; background: transparent; min-height: 195px;
}
.tavla-row.top .tavla-point { justify-content: flex-start; }
.tavla-row.bottom .tavla-point { justify-content: flex-end; }
.tavla-point::before {
  content: ""; position: absolute; inset: 0 3px; pointer-events: none; z-index: 0;
}
.tavla-row.top .tavla-point::before { clip-path: polygon(0 0, 100% 0, 50% 88%); }
.tavla-row.bottom .tavla-point::before { clip-path: polygon(50% 12%, 100% 100%, 0 100%); }
.tavla-point.tri-light::before { background: linear-gradient(180deg, #ECCB8E, #C99552); }
.tavla-point.tri-dark::before { background: linear-gradient(180deg, #8F4218, #5C2509); }
.tavla-point.selected { box-shadow: inset 0 0 0 3px #FACC15; }
.tavla-point.legal-dest { box-shadow: inset 0 0 0 3px #22C55E; background: rgba(34,197,94,0.16); }
.tavla-num { position: relative; z-index: 2; font-size: 0.65rem; color: #FDE68A; opacity: 0.85; font-weight: 700; }
.tavla-stack { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: -6px; }
.tavla-checker {
  width: 34px; height: 34px; border-radius: 50%; margin-block: -3px;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  box-shadow: 0 3px 5px rgba(0,0,0,0.45), inset 0 2px 3px rgba(255,255,255,0.35);
}
.tavla-checker.white { background: radial-gradient(circle at 35% 30%, #FFF, #CBD5E1); border: 2px solid #94A3B8; color: #1E293B; }
.tavla-checker.black { background: radial-gradient(circle at 35% 30%, #374151, #090D16); border: 2px solid #4B5563; color: #F8FAFC; }
.tavla-off {
  background: #3E1A07; border-left: 2px solid #260E03;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 4px;
}
.dice-area {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  display: flex; align-items: center; gap: 10px;
}
.die-face {
  width: 46px; height: 46px; border-radius: 10px; background: #FFF; color: #111827;
  display: grid; place-items: center; font-size: 1.45rem; font-weight: 900;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55); border: 2px solid #E2E8F0;
}

/* 3) FELT TABLES: BATAK, KLASİK OKEY & 101 OKEY (Screenshots #2, #3, #4) */
.felt-table {
  background: radial-gradient(ellipse at center, var(--felt-center) 0%, var(--felt-edge) 100%);
  border: 6px solid #1E3A2A; border-radius: 18px; padding: 14px;
  box-shadow: inset 0 0 55px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 12px; position: relative; min-height: 580px;
}
.felt-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.felt-middle {
  flex: 1; display: grid; grid-template-columns: 118px minmax(0, 1fr) 118px; gap: 10px; align-items: center;
}
@media (max-width: 720px) { .felt-middle { grid-template-columns: 1fr; } }

/* Batak Playing Cards (Crisp Casino Style) */
.batak-bid-box {
  background: rgba(6, 15, 11, 0.92); border: 2px solid #22C55E; border-radius: 16px;
  padding: 18px; text-align: center; max-inline-size: 460px; margin-inline: auto;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}
.batak-bid-box h3 { margin: 0 0 6px; color: #4ADE80; font-size: 1.25rem; letter-spacing: 0.03em; }
.batak-bid-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.bid-btn {
  width: 44px; height: 42px; border-radius: 9px; font-weight: 900; font-size: 1rem;
  background: linear-gradient(180deg, #334155, #0F172A); border: 1px solid #64748B; color: #FFF;
}
.bid-btn:hover { background: linear-gradient(180deg, #22C55E, #15803D); border-color: #4ADE80; }
.batak-trick-zone {
  min-height: 170px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.playing-card {
  width: 68px; height: 98px; border-radius: 9px; background: #FFFFFF; color: #111827;
  border: 1.5px solid #CBD5E1; box-shadow: 0 5px 14px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px;
  font-weight: 900; position: relative; transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.playing-card.red { color: #DC2626; }
.playing-card.playable { border-color: #FACC15; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .playing-card.playable:hover { transform: translateY(-10px); box-shadow: 0 12px 22px rgba(0,0,0,0.55); }
}
.playing-card.disabled { opacity: 0.55; cursor: not-allowed; }
.card-corner { font-size: 0.92rem; line-height: 1; text-align: left; }
.card-center-suit { font-size: 1.9rem; line-height: 1; text-align: center; }
.batak-hand {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 8px 4px;
}
.card-back-fan {
  display: flex; gap: 2px; justify-content: center; opacity: 0.9;
}
.card-back {
  width: 18px; height: 28px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, #991B1B, #991B1B 3px, #B91C1C 3px, #B91C1C 6px);
  border: 1px solid #FECACA;
}

/* Okey & 101 Okey Tiles + Two-Tier Wooden Istaka (Screenshots #3 & #4) */
.okey-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.okey-piles { display: flex; align-items: center; gap: 16px; }
.okey-tile {
  width: 44px; height: 62px; border-radius: 7px;
  background: linear-gradient(180deg, #FFFFFF, #F1F5F9);
  border: 1.5px solid #CBD5E1; box-shadow: 0 4px 8px rgba(0,0,0,0.45), inset 0 -3px 0 #CBD5E1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 900; padding: 2px; user-select: none; position: relative;
}
.okey-tile.sm { width: 30px; height: 42px; font-size: 0.78rem; border-radius: 5px; }
.okey-tile .t-num { font-size: 1.3rem; line-height: 1; }
.okey-tile.sm .t-num { font-size: 0.92rem; }
.okey-tile .t-suit { font-size: 0.72rem; line-height: 1; }
.okey-tile.red { color: #DC2626; }
.okey-tile.blue { color: #2563EB; }
.okey-tile.yellow { color: #D97706; }
.okey-tile.black { color: #0F172A; }
.okey-tile.fake { color: #16A34A; }
.okey-tile.is-okey { box-shadow: 0 0 0 2px #FACC15, 0 4px 10px rgba(250, 204, 21, 0.5); }
.okey-tile.selected { transform: translateY(-8px); box-shadow: 0 0 0 3px #22C55E, 0 8px 16px rgba(0,0,0,0.55); }
.okey-deck {
  width: 48px; height: 66px; border-radius: 7px; background: linear-gradient(180deg, #FFF, #E2E8F0);
  border: 2px solid #94A3B8; display: grid; place-items: center; position: relative;
  color: #0F172A; font-weight: 900; box-shadow: 0 6px 0 #CBD5E1, 0 8px 14px rgba(0,0,0,0.45);
}
.okey-deck-badge {
  position: absolute; top: -8px; right: -8px; background: #0F172A; color: #FFF;
  border: 1.5px solid #94A3B8; border-radius: 999px; font-size: 0.72rem; padding: 2px 6px; font-weight: 800;
}

/* 101 Okey SERİ PERLER + ÇİFT PERLER Grid (Screenshot #3) */
.okey101-melds-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; width: 100%;
}
@media (max-width: 780px) { .okey101-melds-layout { grid-template-columns: 1fr; } }
.meld-grid-box {
  background: rgba(5, 34, 21, 0.65); border: 1.5px solid rgba(250, 204, 21, 0.35);
  border-radius: 10px; padding: 8px;
}
.meld-grid-title { font-size: 0.72rem; font-weight: 800; color: #A7F3D0; letter-spacing: 0.06em; margin-bottom: 6px; }
.seri-quadrants { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seri-quad {
  min-height: 74px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  padding: 5px; background: rgba(0,0,0,0.18); display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start;
  position: relative;
}
.seri-quad-label {
  position: absolute; bottom: 2px; right: 5px; font-size: 0.65rem; color: #FDE68A; opacity: 0.85; font-weight: 700;
}
.meld-group { display: inline-flex; gap: 1px; padding: 2px; background: rgba(255,255,255,0.06); border-radius: 4px; }

/* Wooden Two-Tier Istaka (Rack) */
.okey-controls-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.wood-rack {
  background: linear-gradient(180deg, #B56E32 0%, #8E4D1B 48%, #5D2C0D 50%, #A96329 52%, #7D3F14 100%);
  border: 4px solid #4A220B; border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.22);
  display: flex; flex-direction: column; gap: 10px;
}
.rack-row {
  display: flex; flex-wrap: wrap; gap: 4px; min-height: 64px; align-items: flex-end;
  border-bottom: 4px solid #3D1A06; padding-bottom: 4px;
}

/* Right Sidebar: Chat, Participants, Roles, DM, Song Requests */
.side-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border-subtle); }
.side-tab {
  padding: 10px 6px; background: transparent; border: 0; border-bottom: 2px solid transparent;
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
}
.side-tab.active { color: #FDE68A; border-bottom-color: var(--accent-gold); background: rgba(245, 158, 11, 0.08); }
.chat-feed {
  height: 360px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { font-size: 0.84rem; line-height: 1.4; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.chat-msg.system { background: rgba(245, 158, 11, 0.1); color: #FDE68A; font-size: 0.78rem; }
.chat-msg.dm { background: rgba(168, 85, 247, 0.16); border: 1px solid rgba(168, 85, 247, 0.35); }
.chat-author { font-weight: 800; margin-inline-end: 6px; }
.chat-form {
  display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border-subtle);
}
.chat-form input, .field-input {
  flex: 1; background: #0B1325; border: 1px solid var(--border-subtle); border-radius: 9px;
  padding: 8px 11px; color: var(--text-main); font-size: 0.88rem;
}
.participant-list { max-height: 380px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.participant-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04);
}
.participant-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* Form fields */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.84rem; font-weight: 700; color: #CBD5E1; }
.kvkk-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: #CBD5E1; }
.kvkk-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.pw-wrap { display: flex; gap: 6px; }

/* Scrollable SEO Editorial Guide (Google SEO Skill) */
.seo-guide-card {
  margin-top: 28px; background: var(--bg-panel); border: 1px solid var(--border-subtle);
  border-radius: 18px; padding: 20px 22px;
}
.seo-guide-scroll {
  max-height: 280px; overflow-y: auto; padding-inline-end: 10px;
  scrollbar-width: thin; scrollbar-color: #475569 transparent;
  color: #CBD5E1; font-size: 0.92rem; line-height: 1.7;
}
.seo-guide-scroll.expanded { max-height: none; }
.seo-guide-scroll h2 { color: #F8FAFC; font-size: 1.15rem; margin: 16px 0 8px; }
.seo-guide-scroll h3 { color: #FDE68A; font-size: 1rem; margin: 14px 0 6px; }

/* Footer & Legal */
.site-footer {
  margin-top: 36px; border-top: 1px solid var(--border-subtle); background: #070C18;
  padding: 28px 18px; color: var(--text-muted); font-size: 0.84rem;
}
.footer-grid {
  max-inline-size: 1440px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.footer-grid h4 { margin: 0 0 10px; color: #F8FAFC; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a:hover { color: #FDE68A; }
.legal-strip {
  max-inline-size: 1440px; margin: 18px auto 0; padding-top: 14px;
  border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Toast notifications & Gift popup */
.toast-stack {
  position: fixed; bottom: 18px; right: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; max-inline-size: 360px;
}
.toast-item {
  background: #1E293B; border: 1px solid var(--border-gold); color: #F8FAFC;
  padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

/* Cookie Opt-in Banner (KVKK) */
.cookie-bar {
  position: fixed; bottom: 14px; left: 14px; right: 14px; max-inline-size: 860px; margin-inline: auto;
  z-index: 55; background: rgba(15, 23, 42, 0.96); border: 1px solid var(--border-gold);
  border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(0,0,0,0.65);
}
.cookie-bar[hidden] { display: none; }


/* ===================== AAA STUDIO GAME TABLES OVERHAUL (v2) ===================== */

/* Photorealistic Textures on Lobby Showcase Cards */
.thumb-okey, .thumb-okey101, .thumb-batak {
  background: radial-gradient(ellipse at center, rgba(16, 108, 63, 0.48), rgba(4, 28, 16, 0.85)),
              url('/felt-bg.jpg') center / 260px repeat;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.65);
}
.thumb-tavla, .thumb-dama {
  background: linear-gradient(135deg, rgba(84, 38, 12, 0.35), rgba(34, 14, 4, 0.72)),
              url('/wood-walnut.jpg') center / cover;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.65);
}

/* Illustrated Vector Portrait + Circular Glowing Turn Ring */
.pf-portrait {
  border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: linear-gradient(135deg, #F8FAFC, #94A3B8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.pf-portrait.is-turn {
  background: conic-gradient(#22C55E 0deg, #86EFAC 220deg, #14532D 360deg);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35), 0 0 18px rgba(34, 197, 94, 0.65);
}
@media (prefers-reduced-motion: no-preference) {
  .pf-portrait.is-turn { animation: turnGlow 2s ease-in-out infinite; }
}
@keyframes turnGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.35), 0 0 14px rgba(34,197,94,0.55); } 50% { box-shadow: 0 0 0 5px rgba(74,222,128,0.5), 0 0 22px rgba(74,222,128,0.85); } }
.pf-portrait-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #1E293B; }

/* Pro Seat Plates */
.pro-seat {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 11px 5px 6px;
  border-radius: 999px; color: #FFF; font-size: 0.82rem;
  backdrop-filter: blur(6px);
}
.pro-seat.felt {
  background: linear-gradient(180deg, rgba(6, 32, 20, 0.9), rgba(3, 18, 11, 0.94));
  border: 1.5px solid rgba(74, 222, 128, 0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.pro-seat.wood {
  background: linear-gradient(180deg, #5C2B10, #341607);
  border: 1.5px solid #B06A33;
  box-shadow: 0 4px 12px rgba(0,0,0,0.55);
}
.pro-seat.is-turn { border-color: #4ADE80; }
.pro-seat-name { font-weight: 800; display: flex; align-items: center; gap: 5px; line-height: 1.2; }
.pro-seat-sub { font-size: 0.72rem; color: #D1FAE5; opacity: 0.88; }

/* Shared Status Pill & Top Casino HUD */
.table-status-pill {
  margin: 6px auto 0; padding: 5px 14px; border-radius: 999px; width: fit-content;
  background: rgba(2, 6, 23, 0.74); border: 1px solid rgba(250, 204, 21, 0.35);
  color: #FEF3C7; font-size: 0.8rem; font-weight: 700; text-align: center;
}
.pro-hud-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.pro-hud-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hud-chip {
  padding: 5px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 800;
  background: rgba(2, 18, 11, 0.82); border: 1px solid rgba(255,255,255,0.16); color: #E2E8F0;
}
.hud-chip.gold { border-color: #F59E0B; color: #FDE68A; }
.hud-icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,0.22);
  font-size: 1.05rem; font-weight: 900; display: grid; place-items: center; color: #FFF;
  box-shadow: 0 3px 8px rgba(0,0,0,0.45);
}
.hud-icon-btn.emerald { background: linear-gradient(180deg, #10B981, #047857); }

/* Glossy Wooden Buttons (Dama & Tavla) */
.wood-ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wood-ctrl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wood-btn {
  background: linear-gradient(180deg, #7E3F19, #49200A);
  border: 1.5px solid #B56C35; border-radius: 10px; padding: 7px 11px;
  color: #FEF3C7; font-weight: 800; font-size: 0.82rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.22);
}
.wood-btn:hover { background: linear-gradient(180deg, #984F22, #5E2B0E); }
.wood-btn.span-2 { grid-column: span 2; }

/* ===================== 1. PRO TÜRK DAMASI ===================== */
.pro-dama-stage {
  background: linear-gradient(180deg, rgba(45, 19, 7, 0.75), rgba(24, 9, 3, 0.88)), url('/wood-walnut.jpg') center / cover;
  border: 4px solid #8E4C20; border-radius: 18px; padding: 14px;
  display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 14px; align-items: stretch;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 0 40px rgba(0,0,0,0.55);
}
@media (max-width: 860px) { .pro-dama-stage { grid-template-columns: 1fr; } }
.pro-dama-col { display: flex; flex-direction: column; gap: 10px; }
.pro-led-clock {
  background: #060B14; border: 1.5px solid #8E4C20; border-radius: 8px; padding: 5px;
  text-align: center; font-family: ui-monospace, monospace; font-size: 1rem; font-weight: 900; color: #F8FAFC;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}
.pro-dama-tray {
  flex: 1; min-height: 120px; border-radius: 10px; padding: 8px;
  background: linear-gradient(180deg, rgba(130, 62, 24, 0.85), rgba(82, 36, 12, 0.92)), url('/wood-walnut.jpg') center / cover;
  border: 2px solid #2A1004; box-shadow: inset 0 6px 16px rgba(0,0,0,0.65);
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px;
}
.tray-chip { width: 26px; height: 26px; }

.pro-dama-frame {
  background: linear-gradient(135deg, #652E10, #3C1907);
  border: 3px solid #A45D2B; border-radius: 14px; padding: 10px;
  max-inline-size: 590px; inline-size: 100%; margin-inline: auto;
  box-shadow: 0 14px 34px rgba(0,0,0,0.65);
  display: flex; flex-direction: column; align-items: center;
}
.dama-coords-h {
  display: grid; grid-template-columns: repeat(8, 1fr); width: calc(100% - 36px);
  text-align: center; font-size: 0.72rem; font-weight: 800; color: #DEB37C; padding: 2px 0;
}
.dama-mid-row { display: grid; grid-template-columns: 18px 1fr 18px; width: 100%; align-items: center; }
.dama-coords-v {
  display: grid; grid-template-rows: repeat(8, 1fr); height: 100%;
  text-align: center; align-items: center; font-size: 0.72rem; font-weight: 800; color: #DEB37C;
}
.pro-dama-board {
  display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1 / 1; width: 100%;
  border: 2.5px solid #291005; box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.pro-dama-sq { position: relative; border: 0; padding: 0; display: grid; place-items: center; }
.pro-dama-sq.sq-light { background: url('/wood-maple.jpg') center / 180px repeat; }
.pro-dama-sq.sq-dark { background: url('/wood-walnut.jpg') center / 180px repeat; }
.pro-dama-sq.is-movable { box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.55); }
.pro-dama-sq.is-sel { box-shadow: inset 0 0 0 3.5px #FACC15; background-blend-mode: overlay; }
.pro-dama-sq.is-dest::after {
  content: ""; width: 34%; height: 34%; border-radius: 50%;
  background: radial-gradient(circle, #4ADE80, #16A34A);
  box-shadow: 0 0 12px #22C55E;
}
.dama-piece-svg { width: 84%; height: 84%; pointer-events: none; }

/* ===================== 2, 3, 4. PRO EMERALD FELT STAGE ===================== */
.pro-felt-stage {
  background: radial-gradient(ellipse at center, rgba(16, 118, 66, 0.42) 0%, rgba(4, 30, 17, 0.86) 100%),
              url('/felt-bg.jpg') center / 320px repeat;
  border: 5px solid #123D27; border-radius: 18px; padding: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.6), inset 0 0 70px rgba(0,0,0,0.58);
  display: flex; flex-direction: column; gap: 10px; min-height: 620px; position: relative;
}

/* Batak Specific */
.batak-top-fan { display: flex; justify-content: center; }
.pro-back-fan { display: flex; justify-content: center; }
.pro-back-fan .pro-card-back {
  width: 28px; height: 42px; margin-inline: -7px; border-radius: 4px;
  background: repeating-linear-gradient(45deg, #991B1B 0 3px, #B91C1C 3px 6px),
              repeating-linear-gradient(-45deg, rgba(255,255,255,0.12) 0 3px, transparent 3px 6px);
  border: 1.5px solid #F8FAFC; box-shadow: 0 2px 5px rgba(0,0,0,0.45);
}
.pro-back-fan.vert { flex-direction: column; }
.pro-back-fan.vert .pro-card-back { width: 42px; height: 24px; margin-inline: 0; margin-block: -7px; }
.pro-batak-mid {
  flex: 1; display: grid; grid-template-columns: 165px minmax(0, 1fr) 165px; gap: 10px; align-items: center;
}
@media (max-width: 780px) { .pro-batak-mid { grid-template-columns: 1fr; } .pro-back-fan.vert { display: none; } }
.batak-side-zone { display: flex; align-items: center; gap: 8px; }
.batak-side-zone.right { justify-content: flex-end; }
.batak-center-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }

.pro-bid-modal {
  background: linear-gradient(180deg, rgba(10, 22, 16, 0.96), rgba(4, 12, 8, 0.98));
  border: 2px solid #22C55E; border-radius: 16px; padding: 18px 22px; text-align: center;
  max-inline-size: 460px; box-shadow: 0 20px 50px rgba(0,0,0,0.75);
}
.pro-bid-modal h3 { margin: 0 0 6px; font-size: 1.35rem; color: #4ADE80; letter-spacing: 0.03em; }
.pro-bid-modal p { margin: 0; font-size: 0.84rem; color: #E2E8F0; }
.pro-bid-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.pro-bid-btn {
  width: 46px; height: 42px; border-radius: 9px; font-size: 1.05rem; font-weight: 900; color: #FFF;
  background: linear-gradient(180deg, #3F4756, #141820);
  border: 1.5px solid #64748B; box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.pro-bid-btn:hover { background: linear-gradient(180deg, #22C55E, #15803D); border-color: #86EFAC; }

.batak-trick-cross {
  display: grid; grid-template-areas: ". n ." "w . e" ". s .";
  grid-template-columns: 76px 76px 76px; grid-template-rows: 94px 48px 94px;
  place-items: center;
}
.trick-slot.slot-n { grid-area: n; }
.trick-slot.slot-w { grid-area: w; }
.trick-slot.slot-e { grid-area: e; }
.trick-slot.slot-s { grid-area: s; }
.pro-card-played { width: 70px; height: 100px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.55)); }
.batak-bot-bar { display: flex; justify-content: center; }

.pro-batak-hand {
  display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap;
  padding: 6px 12px 2px; min-height: 118px;
}
.pro-card-btn {
  width: 72px; height: 104px; padding: 0; border: 0; background: transparent;
  margin-inline: -9px; position: relative; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  transition: transform 0.14s ease;
}
.pro-card-btn.is-playable { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .pro-card-btn.is-playable:hover { transform: translateY(-16px) scale(1.04); z-index: 10; }
}
.pro-card-btn.is-dim { filter: brightness(0.62) drop-shadow(0 3px 6px rgba(0,0,0,0.45)); cursor: not-allowed; }

/* ===================== 3 & 4. PRO OKEY & 101 OKEY ===================== */
.pro-okey-mid {
  flex: 1; display: grid; grid-template-columns: 155px minmax(0, 1fr) 155px; gap: 10px; align-items: stretch;
}
@media (max-width: 820px) { .pro-okey-mid { grid-template-columns: 1fr; } }
.okey-side-col { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 10px; }
.okey-side-col.right { align-items: flex-end; }
.discard-box {
  width: 58px; height: 78px; border-radius: 10px; padding: 4px;
  border: 1.5px solid rgba(255,255,255,0.22); background: rgba(0, 0, 0, 0.22);
  display: grid; place-items: center;
}
.discard-box.glow-draw { border-color: #4ADE80; box-shadow: 0 0 16px rgba(74, 222, 128, 0.55); cursor: pointer; }
.discard-box.glow-discard { border-color: #FACC15; box-shadow: 0 0 16px rgba(250, 204, 21, 0.5); cursor: pointer; }

.okey-center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.okey-piles-pro { display: flex; align-items: center; gap: 16px; }

/* 101 Fine Millimeter-Paper Grid (Screenshot #3!) */
.pro-101-grid {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 92px 158px; gap: 8px; align-items: stretch;
}
@media (max-width: 760px) { .pro-101-grid { grid-template-columns: 1fr; } }
.felt-millimeter-box {
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    rgba(3, 28, 17, 0.55);
  background-size: 14px 14px;
  border: 1.5px solid rgba(250, 204, 21, 0.4); border-radius: 10px; padding: 7px;
}
.fm-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: #A7F3D0; margin-bottom: 5px; }
.fm-quads { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.fm-quad {
  min-height: 82px; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 4px;
  display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; position: relative;
}
.fm-quad.is-mine { border-color: rgba(250, 204, 21, 0.7); box-shadow: inset 0 0 12px rgba(250, 204, 21, 0.14); }
.fm-qlabel {
  position: absolute; bottom: 2px; right: 4px; font-size: 0.64rem; font-weight: 800;
  color: #FDE68A; background: rgba(0,0,0,0.55); padding: 1px 5px; border-radius: 4px;
}
.fm-cift-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: calc(100% - 20px); min-height: 170px; }
.fm-cift-col {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 2px;
  display: flex; flex-direction: column; gap: 3px; align-items: center; position: relative;
}
.fm-cift-col.is-mine { border-color: rgba(250, 204, 21, 0.65); }
.fm-vlabel {
  margin-top: auto; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.62rem; color: #FDE68A; font-weight: 700; padding-top: 4px;
}
.meld-strip { display: inline-flex; gap: 1px; background: rgba(0,0,0,0.3); padding: 2px; border-radius: 4px; }

.pro-101-midcol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.pro-deck-btn {
  width: 50px; height: 68px; border-radius: 8px; position: relative;
  background: linear-gradient(180deg, #FFFFFF, #E2E8F0);
  border: 2px solid #94A3B8; color: #0F172A; font-weight: 900; font-size: 0.78rem;
  box-shadow: 0 5px 0 #CBD5E1, 0 8px 16px rgba(0,0,0,0.5);
  display: grid; place-items: center;
}
.pro-deck-btn.glow-draw { border-color: #4ADE80; box-shadow: 0 5px 0 #86EFAC, 0 0 18px rgba(74,222,128,0.65); }
.deck-cnt-pill {
  position: absolute; top: -8px; right: -10px; background: #0F172A; color: #FFF;
  border: 1.5px solid #94A3B8; border-radius: 999px; font-size: 0.72rem; font-weight: 900; padding: 1px 6px;
}
.mini-felt-btn {
  width: 100%; padding: 5px 4px; border-radius: 7px; font-size: 0.68rem; font-weight: 800;
  background: rgba(16, 65, 42, 0.85); border: 1px solid rgba(167, 243, 208, 0.35); color: #D1FAE5;
}
.mini-felt-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.mini-felt-btn:not(:disabled):hover { background: #15803D; color: #FFF; }

/* Glossy 3D Okey Pill Buttons (Screenshots #3 & #4) */
.pro-okey-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pill-stack { display: flex; flex-direction: column; gap: 5px; }
.pill-stack.right { align-items: flex-end; }
.pill-inline { display: flex; align-items: center; gap: 6px; }
.pill-3d {
  padding: 6px 14px; border-radius: 9px; font-size: 0.82rem; font-weight: 900; color: #FFF;
  letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  box-shadow: 0 4px 10px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.pill-3d.orange { background: linear-gradient(180deg, #FB923C, #C2410C); border: 1.5px solid #FDBA74; }
.pill-3d.green { background: linear-gradient(180deg, #22C55E, #15803D); border: 1.5px solid #86EFAC; }
.score-blue-pill {
  padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 900; color: #FFF;
  background: linear-gradient(180deg, #3B82F6, #1D4ED8); border: 1.5px solid #93C5FD;
}
.score-blue-pill.ready { background: linear-gradient(180deg, #22C55E, #15803D); border-color: #86EFAC; }

/* Molded 3D Ivory Okey Tile */
.pro-tile {
  width: 44px; height: 62px; border-radius: 7px; border: 1px solid #CBD5E1; padding: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 78%, #E2E8F0 100%);
  box-shadow: 0 4px 0 #94A3B8, 0 6px 10px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 900; user-select: none;
}
.pro-tile.sm { width: 28px; height: 40px; border-radius: 5px; box-shadow: 0 2px 0 #94A3B8, 0 3px 6px rgba(0,0,0,0.4); }
.pro-tile .pt-num { font-size: 1.38rem; line-height: 1; letter-spacing: -0.04em; }
.pro-tile.sm .pt-num { font-size: 0.88rem; }
.pro-tile .pt-pip { font-size: 0.72rem; line-height: 1; }
.pro-tile.sm .pt-pip { font-size: 0.55rem; }
.pro-tile.red { color: #DC2626; }
.pro-tile.blue { color: #2563EB; }
.pro-tile.yellow { color: #D97706; }
.pro-tile.black { color: #0F172A; }
.pro-tile.fake { color: #16A34A; }
.pro-tile.is-okey { box-shadow: 0 0 0 2px #FACC15, 0 4px 0 #CA8A04, 0 6px 14px rgba(250, 204, 21, 0.55); }
.pro-tile.selected { transform: translateY(-9px); box-shadow: 0 0 0 3px #4ADE80, 0 6px 16px rgba(0,0,0,0.6); }

/* 26-Slot (2x13) Photorealistic Walnut Wood Istaka */
.pro-wood-rack {
  background: linear-gradient(180deg, rgba(168, 102, 46, 0.55), rgba(104, 52, 18, 0.75)),
              url('/wood-walnut.jpg') center / cover;
  border: 5px solid #3D1A08; border-inline-width: 12px; border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.65), inset 0 2px 4px rgba(255,255,255,0.22);
  display: flex; flex-direction: column; gap: 10px;
}
.pro-rack-tier {
  display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px;
  padding-bottom: 6px; border-bottom: 5px solid #4A210A;
  box-shadow: 0 2px 0 rgba(255,255,255,0.14);
}
.rack-slot {
  min-height: 64px; display: flex; align-items: flex-end; justify-content: center;
  border-radius: 6px; background: rgba(0,0,0,0.08);
}
.rack-slot .pro-tile { width: 100%; max-width: 48px; }

/* ===================== 5. PRO KLASİK TAVLA (Screenshot #5) ===================== */
.pro-tavla-stage {
  background: linear-gradient(180deg, rgba(58, 26, 10, 0.8), rgba(28, 11, 4, 0.92)), url('/wood-walnut.jpg') center / cover;
  border: 4px solid #965224; border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.65);
}
.pro-tavla-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pro-tavla-board {
  background: linear-gradient(180deg, rgba(96, 44, 16, 0.65), rgba(62, 26, 9, 0.85)), url('/wood-walnut.jpg') center / cover;
  border: 10px solid #6F3515; border-radius: 14px;
  display: grid; grid-template-columns: 1fr 28px 1fr 56px;
  min-height: 470px; position: relative;
  box-shadow: inset 0 0 32px rgba(0,0,0,0.65), 0 12px 30px rgba(0,0,0,0.6);
}
.pro-tv-half { display: grid; grid-template-rows: 1fr 1fr; }
.pro-tv-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.pro-tv-point {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border: 0; background: transparent; min-height: 215px;
}
.pro-tv-row.top .pro-tv-point { justify-content: flex-start; }
.pro-tv-row.bottom .pro-tv-point { justify-content: flex-end; }
.pro-tv-point::before { content: ""; position: absolute; inset: 0 3px; pointer-events: none; z-index: 0; }
.pro-tv-row.top .pro-tv-point::before { clip-path: polygon(0 0, 100% 0, 50% 88%); }
.pro-tv-row.bottom .pro-tv-point::before { clip-path: polygon(50% 12%, 100% 100%, 0 100%); }
.pro-tv-point.tri-maple::before { background: url('/wood-maple.jpg') center / cover; }
.pro-tv-point.tri-mahogany::before { background: linear-gradient(180deg, rgba(64,22,6,0.45), rgba(40,12,3,0.65)), url('/wood-walnut.jpg') center / cover; }
.pro-tv-point.is-movable { box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.5); }
.pro-tv-point.is-sel { box-shadow: inset 0 0 0 3px #FACC15; }
.pro-tv-point.is-dest { box-shadow: inset 0 0 0 3px #4ADE80; background: rgba(34,197,94,0.18); }
.pro-tv-num { position: relative; z-index: 2; font-size: 0.68rem; font-weight: 800; color: #FDE68A; text-shadow: 0 1px 2px #000; }
.pro-tv-stack { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.tv-checker-svg { width: 38px; height: 38px; margin-block: -4px; }

.pro-tv-spine {
  background: linear-gradient(90deg, #2A1004, #5D2B10, #2A1004);
  border-inline: 2px solid #1E0B03;
  display: flex; flex-direction: column; align-items: center; justify-content: space-around;
}
.pro-brass-hinge {
  width: 22px; height: 54px; border-radius: 4px;
  background: linear-gradient(90deg, #9A6B1C, #FDE68A, #D4A138, #7E5412);
  border: 1.5px solid #4A2D07;
  box-shadow: 0 3px 8px rgba(0,0,0,0.55);
}
.pro-tv-off {
  background: rgba(36, 14, 4, 0.9); border-left: 3px solid #230D03;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 10px 4px;
}
.off-pocket { font-size: 0.78rem; font-weight: 800; color: #FDE68A; }

.pro-dice-overlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 8; display: flex; align-items: center; gap: 12px;
}
.pro-zar-btn {
  padding: 14px 36px; border-radius: 12px; font-size: 1.3rem; font-weight: 900; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 60%, #D97706 100%);
  color: #3D1A06; border: 2px solid #FEF08A;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.65);
}
.pro-zar-btn:hover { background: linear-gradient(180deg, #FEF08A, #F59E0B); }
.die-svg { filter: drop-shadow(0 6px 12px rgba(0,0,0,0.55)); }
