/* ============================================================
   Rize Yaşam — Oyunlar (4.38): oyun köşesi, tavla, boyama kitabı
   Tasarım sistemi "Teras": koyu yeşil öne çıkan kart, beyaz kartlar, filiz vurgu.
   ============================================================ */
.oy { --oy-koyu: #163c28; --oy-filiz: #a6c94a; --oy-kart: var(--ry-yuzey, #fff); --oy-cizgi: var(--ry-cizgi, #d9e1db);
  --oy-murekkep: var(--ry-murekkep, #13221a); --oy-soluk: var(--ry-soluk, #5a6860);
  max-width: 760px; margin: 0 auto; padding: 8px 0 32px; display: flex; flex-direction: column; gap: 14px; color: var(--oy-murekkep); }
.oy-dar { max-width: 640px; }
.oy [hidden] { display: none !important; }
.oy-bas h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.oy-bas p { margin: 0; color: var(--oy-soluk); font-size: 15px; }
.oy-ust-etiket { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ry-cay-700, #1f5132); }
html.ry-uygulama .oy-bas h1 { display: none; }

/* Öne çıkan koyu kart */
.oy-one { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--oy-koyu); color: #fff; text-decoration: none; }
.oy-one:hover { color: #fff; }
.oy-one-gorsel { flex: none; }
.oy-one-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oy-one-metin b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.oy-one-metin small { font-size: 13.5px; color: rgba(255,255,255,.78) !important; line-height: 1.4; }
.oy-one-duz { background: var(--oy-koyu); }
.oy-ok { font-size: 28px; color: var(--oy-filiz); flex: none; }
.oy-cip { align-self: flex-start; display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: rgba(166,201,74,.18); color: var(--oy-filiz); }
.oy-cip-acik { background: var(--ry-deniz-100, #e1edf2); color: var(--ry-deniz, #1d5a73); margin-top: 6px; }

/* Kartlar */
.oy-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oy-kart { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); color: var(--oy-murekkep); text-decoration: none; min-height: 150px; }
.oy-kart:hover { color: var(--oy-murekkep); border-color: var(--ry-cay-300, #8fc2a0); }
.oy-kart b { font-size: 16px; font-weight: 800; margin-top: 6px; }
.oy-kart small { font-size: 12.5px; color: var(--oy-soluk); line-height: 1.4; }
.oy-kart-soluk { opacity: .78; }
.oy-kart-ikon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.oy-ton-amber { background: var(--ry-amber-100, #f8eedb); }
.oy-ton-deniz { background: var(--ry-deniz-100, #e1edf2); }
.oy-not { padding: 14px; border-radius: 14px; background: var(--ry-cay-50, #f1f7f2); border: 1px solid var(--ry-cay-100, #e3efe6); font-size: 13.5px; }
.oy-not p { margin: 4px 0 0; color: var(--oy-soluk); line-height: 1.5; }

/* Düğmeler */
.oy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.oy-btn:disabled { opacity: .45; cursor: default; }
.oy-btn-filiz { background: var(--oy-filiz); color: #0e2a1c; }
.oy-btn-ana { background: var(--ry-cay-700, #1f5132); color: #fff; }
.oy-btn-cizgi { background: var(--oy-kart); border-color: var(--oy-cizgi); color: var(--oy-murekkep); }
.oy-btn-kucuk { min-height: 40px; font-size: 14px; padding: 0 14px; }
.oy-btn-metin { background: none; border: 0; color: var(--oy-soluk); font-weight: 700; font-size: 14px; padding: 8px; cursor: pointer; }
.oy-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oy-secim .oy-btn { flex-direction: column; min-height: 96px; gap: 2px; border-radius: 16px; }
.oy-secim .oy-btn span { font-size: 26px; }
.oy-secim .oy-btn small { font-weight: 600; font-size: 12px; opacity: .75; }
.oy-istatistik { text-align: center; font-size: 13px; color: var(--oy-soluk); margin: 0; }
.oy-kurallar { border-radius: 14px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); padding: 12px 14px; font-size: 14px; }
.oy-kurallar summary { font-weight: 800; cursor: pointer; }
.oy-kurallar ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.55; color: var(--ry-metin, #2b3a31); }

/* Rakip arama */
.oy-arama { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 36px 16px; border-radius: 16px; background: var(--oy-koyu); color: #fff; }
.oy-arama b { font-size: 20px; }
.oy-arama small { color: var(--oy-filiz); font-weight: 800; }
.oy-arama p { margin: 0 0 6px; color: rgba(255,255,255,.75); font-size: 14px; }
.oy-donen { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--oy-filiz); animation: oy-don 0.9s linear infinite; }
@keyframes oy-don { to { transform: rotate(360deg); } }

/* Tahta ve oyuncular */
.oy-tahta-kap { border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(14,42,28,.6); }
.oy-tahta { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.oy-tahta .oy-tas.oynar circle:first-child { stroke: #a6c94a; stroke-width: 3; }
.oy-tahta .oy-tas.secili circle:first-child { stroke: #ffffff; stroke-width: 3.5; filter: drop-shadow(0 0 4px #a6c94a); }
.oy-tahta .oy-hedef { animation: oy-nabiz 1s ease-in-out infinite alternate; }
@keyframes oy-nabiz { from { opacity: .55; } to { opacity: .95; } }
.oy-oyuncu { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); }
.oy-oyuncu.sirada { border-color: var(--oy-filiz); box-shadow: 0 0 0 2px rgba(166,201,74,.35); }
.oy-av { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fbf7ee; border: 2px solid #bdb29a; font-weight: 800; font-size: 18px; flex: none; }
.oy-av-koyu { background: #9e2f1b; border-color: #6e1f11; color: #fff; }
.oy-oyuncu-m { display: flex; flex-direction: column; min-width: 0; }
.oy-oyuncu-m b { font-size: 15px; font-weight: 800; }
.oy-oyuncu-m small { font-size: 12.5px; color: var(--oy-soluk); }
.oy-balon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); max-width: 60%; padding: 7px 12px; border-radius: 14px; background: var(--oy-koyu); color: #fff; font-size: 13.5px; font-weight: 700; animation: oy-belir .25s ease-out; }
@keyframes oy-belir { from { opacity: 0; transform: translateY(-30%); } }
.oy-durum { margin: 0; min-height: 22px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--oy-murekkep); }
.oy-eylemler { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.oy-eylemler .oy-btn { flex: 1 1 140px; max-width: 260px; }
.oy-alt-eylem { display: flex; justify-content: space-between; }
.oy-ifadeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oy-ifadeler button { min-height: 44px; border-radius: 12px; border: 1px solid var(--oy-cizgi); background: var(--oy-kart); font-weight: 700; font-size: 14px; color: var(--oy-murekkep); }

/* Sonuç */
.oy-perde { position: fixed; inset: 0; z-index: 1050; background: rgba(8,20,14,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.oy-sonuc { width: 100%; max-width: 360px; border-radius: 20px; background: var(--oy-kart); padding: 24px 20px 20px; text-align: center; }
.oy-sonuc-ikon { font-size: 44px; }
.oy-sonuc h2 { font-size: 24px; font-weight: 800; margin: 6px 0; }
.oy-sonuc p { color: var(--oy-soluk); margin: 0 0 16px; }
.oy-sonuc-eylem { display: grid; gap: 10px; }

/* Boyama kitabı */
.oy-boyama { gap: 12px; }
.by-sayfalar { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.by-sayfalar::-webkit-scrollbar { display: none; }
.by-sayfalar button { flex: none; width: 78px; border-radius: 12px; border: 2px solid var(--oy-cizgi); background: #fff; padding: 4px; cursor: pointer; }
.by-sayfalar button.aktif { border-color: var(--ry-cay-700, #1f5132); box-shadow: 0 0 0 2px rgba(166,201,74,.5); }
.by-sayfalar button svg { width: 100%; height: auto; display: block; pointer-events: none; }
.by-sayfalar button span { display: block; font-size: 10.5px; font-weight: 700; color: var(--oy-soluk); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by-tuval { position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--oy-cizgi); overflow: hidden; touch-action: none; }
.by-tuval svg { display: block; width: 100%; height: auto; }
.by-tuval .b { cursor: pointer; transition: fill .12s; }
.by-palet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.by-palet button { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--oy-cizgi); cursor: pointer; }
.by-palet button.aktif { box-shadow: 0 0 0 3px var(--oy-murekkep); transform: scale(1.08); }
.by-araclar { display: flex; gap: 8px; flex-wrap: wrap; }
.by-araclar .oy-btn { flex: 1 1 0; min-height: 44px; padding: 0 10px; font-size: 14px; }
.by-araclar .oy-btn.aktif { background: var(--oy-koyu); color: #fff; border-color: var(--oy-koyu); }
@media (min-width: 720px) {
  .oy-tavla { max-width: 560px; }
  .oy-boyama { max-width: 620px; }
}
/* Boyama sayfası çizim stilleri (küçük resimler ve tuval) */
.oy-boyama svg .b { fill: #ffffff; stroke: #23302a; stroke-width: 3; stroke-linejoin: round; }
.oy-boyama svg .c { fill: none; stroke: #23302a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.oy-boyama svg .g { fill: #23302a; pointer-events: none; }
.oy-boyama svg .g2 { fill: #ffffff; pointer-events: none; }
.oy-boyama svg .y { font: 800 18px system-ui, sans-serif; fill: #23302a; pointer-events: none; letter-spacing: .08em; }
.oy-boyama svg .kalem { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
html.ry-uygulama .by-indir { display: none; }

/* ============================================================
   4.39 — Ortak oyun parçaları (ayarlar, sıralama, bildirim) ve okey masası
   ============================================================ */
.oy-secim-3 { grid-template-columns: 1fr 1fr 1fr; }
.oy-secim-3 .oy-btn { min-height: 104px; padding: 0 8px; font-size: 14px; text-align: center; }
@media (max-width: 400px) { .oy-secim-3 .oy-btn { font-size: 13px; } .oy-secim-3 .oy-btn small { font-size: 11px; } }
.oy-ayar-kart { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); }
.oy-ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oy-ayar-satir > span { font-size: 14px; font-weight: 800; }
.oy-parca { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--ry-cay-50, #f1f7f2); border: 1px solid var(--oy-cizgi); }
.oy-parca button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; font-size: 13.5px; color: var(--oy-soluk); cursor: pointer; }
.oy-parca button.secili { background: var(--oy-koyu); color: #fff; box-shadow: 0 2px 6px -2px rgba(14,42,28,.5); }
.oy-satir-eylem { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.oy-kart-blok { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); }
.oy-kart-blok b { font-size: 17px; font-weight: 800; }
.oy-kart-blok small { color: var(--oy-soluk); font-size: 13.5px; }
.oy-kod-form { display: flex; gap: 8px; }
.oy-kod-form input { flex: 1; min-width: 0; min-height: 48px; border-radius: 12px; border: 1px solid var(--oy-cizgi); padding: 0 14px; font-size: 22px; font-weight: 800; letter-spacing: .3em; text-align: center; }
.oy-oda-kod { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.08); }
.oy-oda-kod small { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.oy-oda-kod strong { font-size: 34px; font-weight: 900; letter-spacing: .25em; color: var(--oy-filiz); margin-right: -.25em; }
.oy-ust-serit { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oy-ust-bilgi { font-size: 13px; font-weight: 800; color: var(--oy-soluk); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oy-ust-dugmeler { display: flex; gap: 6px; flex: none; }
.oy-yuvarlak { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--oy-cizgi); background: var(--oy-kart); font-size: 17px; font-weight: 800; color: var(--oy-murekkep); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.oy-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 1100; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 14px; background: #13221a; color: #fff; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 12px 30px -12px rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.oy-toast.acik { opacity: 1; transform: translate(-50%, 0); }
.oy-ucan { position: fixed; z-index: 1080; pointer-events: none; transform: translate(-50%,-50%); --tw: 32px; }
.oy-anahtar { display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-weight: 700; font-size: 15px; text-align: left; border-bottom: 1px solid var(--oy-cizgi); }
.oy-anahtar input { width: 22px; height: 22px; accent-color: var(--ry-cay-700, #1f5132); }
.oy-sonuc-genis { max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; }
.oy-siralama { list-style: none; margin: 8px 0 12px; padding: 0; text-align: left; }
.oy-siralama li { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 8px; padding: 9px 6px; border-bottom: 1px solid var(--oy-cizgi); font-size: 14.5px; }
.oy-siralama li.ben { background: rgba(166,201,74,.18); border-radius: 10px; }
.oy-siralama li.bos { display: block; color: var(--oy-soluk); text-align: center; border: 0; }
.oy-siralama .sira { font-weight: 900; color: var(--ry-cay-700, #1f5132); text-align: center; }
.oy-siralama li:nth-child(1) .sira { color: #b8860b; } .oy-siralama li:nth-child(2) .sira { color: #8a96a3; } .oy-siralama li:nth-child(3) .sira { color: #a0522d; }
.oy-siralama .ad { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oy-siralama .puan { font-weight: 900; }
.oy-siralama small { color: var(--oy-soluk); font-size: 12px; min-width: 40px; text-align: right; }

/* ── Tavla (4.39) ─────────────────────────────────────────── */
.oy-tavla { gap: 10px; }
.tv-one-zar { flex: none; }
.tv-skor { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.tv-skor b { font-size: 22px; font-weight: 900; color: var(--oy-murekkep); }
.tv-skor i { font-style: normal; color: var(--oy-soluk); font-weight: 800; }
.tv-skor small { font-size: 12.5px; font-weight: 800; color: var(--oy-soluk); margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-pip { margin-left: auto; min-width: 44px; padding: 4px 8px; border-radius: 999px; background: var(--ry-cay-50, #f1f7f2); border: 1px solid var(--oy-cizgi); font-size: 12.5px; font-weight: 900; text-align: center; color: var(--oy-murekkep); }
.tv-pip::before { content: "Kalan "; font-weight: 700; color: var(--oy-soluk); }
.tv-av-siyah { background: #1d1d1d; border-color: #000; color: #fff; }
.tv-kap { background: #3f2511; }
.tv-tahta { touch-action: none; }
.tv-tahta .tv-pul { transition: filter .15s; }
.tv-tahta .tv-pul.oynar .tv-pul-ana { stroke: #a6c94a; stroke-width: 2.6; }
.tv-tahta .tv-pul.secili .tv-pul-ana { stroke: #ffffff; stroke-width: 3; }
.tv-tahta .tv-pul.secili { filter: drop-shadow(0 0 4px #a6c94a); }
.tv-tahta .tv-pul.son .tv-pul-ana { stroke: #ffd166; stroke-width: 2.2; }
.tv-tahta .tv-pul.ucan { filter: drop-shadow(0 6px 5px rgba(0,0,0,.45)); pointer-events: none; }
.oy-oyuncu.sureli::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--oy-filiz) calc(var(--p, 1) * 100%), rgba(0,0,0,.06) 0); }
.tv-el-sonu { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 1060; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 24px; border-radius: 18px; background: #13221a; color: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); animation: tv-pat .35s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.tv-el-sonu b { font-size: 21px; font-weight: 900; }
.tv-el-sonu span { font-size: 14px; font-weight: 800; color: var(--oy-filiz); }
.tv-el-sonu.kotu span { color: #ffb4a2; }
@keyframes tv-pat { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } }
.tv-sonuc-skor { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 16px; }
.tv-sonuc-skor:empty { display: none; }
.tv-sonuc-skor b { font-size: 34px; font-weight: 900; }
.tv-sonuc-skor i { font-style: normal; font-size: 24px; color: var(--oy-soluk); }
.tv-sonuc-skor span { font-size: 13px; font-weight: 800; color: var(--oy-soluk); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-mini { width: 28px; height: 38px; border-radius: 5px; background: linear-gradient(#fffdf6, #eee3cb); box-shadow: 0 2px 0 #b9a77f; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; font-style: normal; font-weight: 900; font-size: 17px; }
.ok-mini.r0, .ok-t.r0 { color: #c48a00; } .ok-mini.r1, .ok-t.r1 { color: #1565c0; } .ok-mini.r2, .ok-t.r2 { color: #1d1d1d; } .ok-mini.r3, .ok-t.r3 { color: #c62828; }
.ok-hub-taslar { display: flex; gap: 4px; padding: 0 6px; transform: rotate(-5deg); }
.ok-hub-taslar .ok-mini { width: 32px; height: 44px; font-size: 19px; }

/* ============================================================
   Okey ve 101 (4.40): vitrin, masa, ıstaka, 101 perleri, yan panel (puan tablosu, sohbet)
   Masaüstünde (≥ 960 px) oyun alanı ekran yüksekliğine sığar: solda masa, sağda 300 px panel.
   ============================================================ */
.oy-okey { --tw: 30px; max-width: 680px; gap: 12px; }
.oy-okey.oyunda { max-width: 1320px; }
.ok-vitrin { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 85% 20%, #2f7d50 0%, #17452c 55%, #0e2a1c 100%); box-shadow: 0 18px 36px -24px rgba(0,0,0,.7); }
.ok-vitrin::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.ok-vitrin-metin { position: relative; z-index: 1; min-width: 0; }
.ok-vitrin-baslik { margin: 6px 0 4px; font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: #fff !important; }
.ok-vitrin-baslik i { font-style: normal; color: var(--oy-filiz); }
.ok-vitrin-metin p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.45; max-width: 360px; }
.ok-vitrin-taslar { position: relative; z-index: 1; display: flex; flex: none; }
.ok-vitrin-taslar .ok-t { --tw: 38px; margin-left: -6px; }
.ok-vitrin-taslar .v1 { transform: rotate(-12deg) translateY(6px); } .ok-vitrin-taslar .v2 { transform: rotate(-2deg); z-index: 1; } .ok-vitrin-taslar .v3 { transform: rotate(10deg) translateY(4px); }
.ok-tur-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ok-tur-sec button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--oy-cizgi); background: var(--oy-kart); cursor: pointer; text-align: left; color: var(--oy-murekkep); }
.ok-tur-sec b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.ok-tur-sec small { font-size: 12.5px; color: var(--oy-soluk); line-height: 1.3; }
.ok-tur-sec button.secili { border-color: var(--ry-cay-600, #2e7d32); background: linear-gradient(180deg, rgba(166,201,74,.16), rgba(166,201,74,.04)); box-shadow: 0 8px 18px -14px rgba(14,42,28,.6); }
.ok-mini.r0, .ok-t.r0 { color: #c48a00; } .ok-mini.r1, .ok-t.r1 { color: #1565c0; } .ok-mini.r2, .ok-t.r2 { color: #1d1d1d; } .ok-mini.r3, .ok-t.r3 { color: #c62828; }

/* Yan panel: puan tablosu ve sohbet */
.oy-yan-kart { padding: 12px; border-radius: 18px; background: var(--oy-kart); border: 1px solid var(--oy-cizgi); }
.oy-yan-bas { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.oy-yan-bas b { font-size: 15px; font-weight: 900; }
.oy-yan-bas small { color: var(--oy-soluk); font-size: 12px; font-weight: 700; }
.oy-sohbet-kapat { margin-left: auto; width: 34px; height: 34px; font-size: 14px; }
.oy-sohbet-liste { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow: auto; overscroll-behavior: contain; }
.oy-sohbet-liste li { align-self: flex-start; max-width: 88%; padding: 6px 11px 7px; border-radius: 14px 14px 14px 4px; background: var(--ry-cay-50, #eef5ef); font-size: 14px; line-height: 1.3; }
.oy-sohbet-liste li b { display: block; font-size: 11px; font-weight: 800; color: var(--oy-soluk); }
.oy-sohbet-liste li.ben { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #e3f2c9; }
.oy-sohbet-liste:empty::before { content: "Masada henüz konuşan yok. Aşağıdan bir ifade seç."; color: var(--oy-soluk); font-size: 13px; padding: 8px 4px; }
.oy-sohbet-ifadeler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 132px; overflow: auto; }
.oy-sohbet-ifadeler button { min-height: 34px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--oy-cizgi); background: #fff; font-size: 13px; font-weight: 700; color: var(--oy-murekkep); cursor: pointer; }
.oy-sohbet-ifadeler button:active { transform: scale(.96); background: rgba(166,201,74,.2); }
.ok-sohbet-dug { position: relative; }
.ok-sohbet-dug em { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d32f2f; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ok-sohbet-dug em[hidden] { display: none; }
@keyframes ok-sayfa { from { transform: translateY(30px); opacity: 0; } }

/* Oyun seçim, oda ve bekleme ekranlarında kartlar arası boşluk */
.oy > .oy-ekran:not(.tv-sahne):not(.ok-sahne) { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   4.40 — Tavla sahnesi: ahşap tahta, yan panel (hamleler + sohbet), masaüstü sığdırma
   ============================================================ */
.tv-vitrin { background: radial-gradient(120% 140% at 88% 18%, #8a5a2b 0%, #4f2f15 48%, #22130a 100%); }
.tv-vitrin-gorsel { position: relative; z-index: 1; flex: none; width: 132px; height: 104px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
@media (max-width: 400px) { .tv-vitrin-gorsel { width: 96px; height: 76px; } }
.oy-tavla.oyunda { max-width: 1320px; }
.tv-sahne-ana { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tv-kap { position: relative; border-radius: 16px; background: #3f2511; box-shadow: 0 22px 38px -22px rgba(30,14,4,.85), 0 0 0 1px rgba(0,0,0,.28); }
.tv-zemin { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tv-tahta { position: relative; z-index: 1; }
.oy-tavla .oy-oyuncu { padding: 8px 12px; border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.oy-tavla .oy-oyuncu .oy-av { position: relative; }
.oy-tavla .oy-oyuncu.sirada { background: linear-gradient(90deg, rgba(166,201,74,.16), var(--oy-kart) 70%); }
.oy-tavla .oy-oyuncu-m b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oy-tavla .oy-balon { left: 46px; right: auto; transform: none; max-width: min(78%, 280px); width: max-content; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 6; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.oy-tavla .oy-oyuncu-ust .oy-balon { top: calc(100% + 4px); border-top-left-radius: 4px; }
.oy-tavla .oy-oyuncu-alt .oy-balon { top: auto; bottom: calc(100% + 4px); border-bottom-left-radius: 4px; }
.oy-tavla .oy-durum { font-size: 14px; }
.tv-yan { display: none; }
.tv-gecmis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; max-height: 30vh; overflow: auto; overscroll-behavior: contain; font-size: 13px; font-variant-numeric: tabular-nums; }
.tv-gecmis li { display: grid; grid-template-columns: minmax(0, 76px) 36px minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 5px 6px; border-radius: 8px; }
.tv-gecmis li:nth-child(odd) { background: rgba(19,34,26,.035); }
.tv-gecmis li b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-gecmis li.ben b { color: var(--ry-cay-700, #1f5132); }
.tv-gecmis .zar { font-weight: 900; color: #7a4c29; }
.tv-gecmis li > span:last-child { color: var(--oy-soluk); font-weight: 600; word-spacing: 2px; }
.tv-gecmis li.tv-gecmis-el { display: block; background: none; padding: 8px 6px 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--oy-soluk); }
.tv-gecmis:empty::before { content: "Henüz hamle yok. İlk zar atılınca hamleler burada görünür."; display: block; color: var(--oy-soluk); font-size: 13px; padding: 6px 4px; }
/* Mobilde sohbet alttan açılır */
.oy-tavla.sohbet-acik .tv-yan { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1075; max-height: 72vh; overflow: auto; padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--oy-kart); border-radius: 22px 22px 0 0; box-shadow: 0 -16px 36px rgba(0,0,0,.28); animation: ok-sayfa .22s ease-out; }
.oy-tavla.sohbet-acik .tv-gecmis-kart { display: none; }
.oy-tavla.sohbet-acik .oy-sohbet { border: 0; padding: 4px; }

/* Masaüstü: tahta ekran yüksekliğine sığar, yanında hamleler ve sohbet */
@media (min-width: 960px) {
  .oy-tavla.oyunda { --tahta-w: calc((var(--sahne-h) - 156px) * 1.1875); }
  .oy-tavla.oyunda .tv-sahne:not([hidden]) { display: grid; grid-template-columns: min(var(--tahta-w), calc(100% - 318px)) 300px; justify-content: center; gap: 18px; height: var(--sahne-h); align-items: start; }
  .oy-tavla.oyunda .tv-sahne-ana { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rakip serit" "tahta tahta" "ben eylem" "durum durum"; gap: 8px 12px; align-items: center; }
  .oy-tavla.oyunda .tv-sahne-ana > .oy-ust-serit { grid-area: serit; }
  .oy-tavla.oyunda .oy-oyuncu-ust { grid-area: rakip; }
  .oy-tavla.oyunda .tv-kap { grid-area: tahta; }
  .oy-tavla.oyunda .oy-oyuncu-alt { grid-area: ben; }
  .oy-tavla.oyunda .oy-durum { grid-area: durum; min-height: 20px; }
  .oy-tavla.oyunda .oy-eylemler { grid-area: eylem; flex-wrap: nowrap; }
  .oy-tavla.oyunda .oy-eylemler .oy-btn { flex: 0 1 auto; min-width: 118px; min-height: 46px; }
  .oy-tavla.oyunda .oy-oyuncu { min-height: 52px; padding: 6px 12px; }
  .oy-tavla.oyunda .tv-skor b { font-size: 20px; }
  .oy-tavla.oyunda .tv-yan { display: flex; flex-direction: column; gap: 12px; height: var(--sahne-h); min-height: 0; }
  .oy-tavla.oyunda .tv-gecmis-kart, .oy-tavla.oyunda .oy-sohbet { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .oy-tavla.oyunda .tv-gecmis, .oy-tavla.oyunda .oy-sohbet-liste { flex: 1 1 auto; max-height: none; min-height: 0; }
  .oy-tavla.oyunda .ok-sohbet-dug, .oy-tavla.oyunda .oy-sohbet-kapat { display: none !important; }
}
.oy-tavla:fullscreen { max-width: none; padding: 12px 18px; background: var(--ry-zemin, #eef3ee); overflow: auto; }

/* ============================================================
   4.41 — Yardımlı oyun, oyun içi onay, telefonda yatay oyun sahnesi
   ============================================================ */
.oy-ayar-satir > span small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--oy-soluk); }
.oy-btn-tehlike { background: #b3261e; color: #fff; }
/* Oyun içi onay penceresi (tarayıcının onay kutusu yerine; yatay sahnede sahneyle birlikte döner) */
.oy-onay { z-index: 1095; animation: oy-belir .15s ease-out; }
.oy-onay .oy-sonuc { max-width: 380px; padding: 20px 18px 16px; }
.oy-onay-metin { color: var(--oy-murekkep) !important; font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 0 0 16px !important; }
.oy-onay-eylem { grid-template-columns: 1fr 1fr; }
/* Öneri ve işlek taş */
.oneri { animation: oy-oneri 1s ease-in-out 3; position: relative; z-index: 5; }
@keyframes oy-oneri { 50% { box-shadow: 0 0 0 4px #ffd166, 0 0 26px rgba(255,209,102,.9); } }
.ok-ipucu, .tv-ipucu { border-color: #e6c25a !important; }
.ok-hayalet, .oy-ucan { z-index: 2100; }

/* ── Yatay sahne: ortak ─────────────────────────────────── */
html.oy-yatay, html.oy-yatay body { overflow: hidden !important; overscroll-behavior: none; }
html.oy-yatay .oy.oyunda.yatay { position: fixed; z-index: 1500; left: 0; top: 0; width: var(--yw); height: var(--yh); max-width: none; margin: 0; padding: 0; display: block; overflow: hidden;
  --oy-kart: #fff; --oy-murekkep: #13221a; --oy-soluk: #5a6860; --oy-cizgi: #d9e1db; color: var(--oy-murekkep); }
html.oy-dondur .oy.oyunda.yatay { transform-origin: 0 0; transform: translateX(var(--yh)) rotate(90deg); }
html.oy-dondur-ters .oy.oyunda.yatay { transform-origin: 0 0; transform: translateY(var(--yw)) rotate(-90deg); }
html.oy-yatay .oy.yatay > .oy-ekran[data-ekran="oyun"]:not([hidden]) { display: block; height: 100%; }
html.oy-yatay .oy.yatay .oy-ust-serit .oy-ust-dugmeler { gap: 6px; }
html.oy-yatay .oy.yatay .oy-yuvarlak { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
html.oy-yatay .oy.yatay .ok-sohbet-dug em { top: -4px; right: -4px; }
html.oy-yatay .oy.yatay [data-eylem="tam-ekran"] { display: none !important; }
html.oy-yatay .oy.yatay .oy-perde { padding: 10px; }
html.oy-yatay .oy.yatay .oy-sonuc-genis { max-width: min(560px, 92%); max-height: calc(var(--yh) - 20px); }
html.oy-yatay .oy.yatay .oy-sonuc { padding: 16px 18px 14px; }
html.oy-yatay .oy.yatay .oy-sonuc-ikon { font-size: 30px; }
html.oy-yatay .oy.yatay .oy-sonuc h2 { font-size: 20px; margin: 2px 0 4px; }
html.oy-yatay .oy.yatay .oy-sonuc-eylem { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
html.oy-yatay .oy.yatay .oy-sonuc p { margin-bottom: 10px; }
html.oy-yatay .oy.yatay .oy-toast { top: 40%; bottom: auto; max-width: min(70%, 460px); transform: translate(-50%, 10px); }
html.oy-yatay .oy.yatay .oy-toast.acik { transform: translate(-50%, 0); }
/* Sohbet: sağdan açılan çekmece */
html.oy-yatay .oy.yatay.sohbet-acik .ok-yan, html.oy-yatay .oy.yatay.sohbet-acik .tv-yan { display: flex; flex-direction: column; position: absolute; left: auto; right: 0; top: 0; bottom: 0; width: min(340px, 46%); max-height: none; z-index: 40;
  padding: 10px; border-radius: 20px 0 0 20px; background: var(--oy-kart); box-shadow: -16px 0 36px rgba(0,0,0,.35); animation: oy-cekmece .2s ease-out; }
@keyframes oy-cekmece { from { transform: translateX(30px); opacity: 0; } }
html.oy-yatay .oy.yatay.sohbet-acik .oy-sohbet { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html.oy-yatay .oy.yatay.sohbet-acik .oy-sohbet-liste { flex: 1 1 auto; max-height: none; min-height: 0; }
html.oy-yatay .oy.yatay.sohbet-acik .oy-sohbet-ifadeler { max-height: 42%; }

/* ── Yatay tavla ─────────────────────────────────────────── */
html.oy-yatay .oy-tavla.yatay { background: radial-gradient(130% 120% at 50% 0%, #4a2f18 0%, #2a190d 60%, #170d06 100%); }
html.oy-yatay .oy-tavla.yatay .tv-sahne:not([hidden]) { display: block; height: 100%; }
html.oy-yatay .oy-tavla.yatay .tv-sahne-ana { box-sizing: border-box; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "rakip tahta serit" "skor tahta durum" "ben tahta eylem"; gap: 8px 12px; padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); align-items: center; }
html.oy-dondur .oy-tavla.yatay .tv-sahne-ana, html.oy-dondur-ters .oy-tavla.yatay .tv-sahne-ana { padding-left: 8px; padding-right: 8px; }
html.oy-yatay .oy-tavla.yatay .tv-sahne-ana > .oy-ust-serit { display: contents; }
html.oy-yatay .oy-tavla.yatay .tv-skor { grid-area: skor; flex-direction: column; align-items: center; justify-self: center; text-align: center; color: #fff; gap: 2px; }
html.oy-yatay .oy-tavla.yatay .tv-skor b { color: #fff; font-size: 26px; } html.oy-yatay .oy-tavla.yatay .tv-skor i { color: rgba(255,255,255,.6); }
html.oy-yatay .oy-tavla.yatay .tv-skor small { color: rgba(255,255,255,.72); margin: 0; white-space: normal; }
html.oy-yatay .oy-tavla.yatay .tv-skor:has(b) { flex-direction: row; flex-wrap: wrap; justify-content: center; }
html.oy-yatay .oy-tavla.yatay .tv-skor:has(b) small { flex-basis: 100%; }
html.oy-yatay .oy-tavla.yatay .oy-ust-dugmeler { grid-area: serit; justify-self: end; align-self: start; }
html.oy-yatay .oy-tavla.yatay .tv-kap { grid-area: tahta; aspect-ratio: 380 / 320; height: auto; width: min(calc((var(--yh) - 12px) * 1.1875), calc(var(--yw) - 330px)); align-self: center; justify-self: center; }
html.oy-yatay .oy-tavla.yatay .oy-oyuncu-ust { grid-area: rakip; align-self: start; }
html.oy-yatay .oy-tavla.yatay .oy-oyuncu-alt { grid-area: ben; align-self: end; }
html.oy-yatay .oy-tavla.yatay .oy-oyuncu { flex-wrap: wrap; gap: 4px 8px; padding: 7px 9px; min-height: 0; border-radius: 14px; }
html.oy-yatay .oy-tavla.yatay .oy-oyuncu .oy-av { width: 34px; height: 34px; font-size: 15px; }
html.oy-yatay .oy-tavla.yatay .oy-oyuncu-m { flex: 1 1 60px; } html.oy-yatay .oy-tavla.yatay .oy-oyuncu-m b { font-size: 14px; } html.oy-yatay .oy-tavla.yatay .oy-oyuncu-m small { font-size: 11px; }
html.oy-yatay .oy-tavla.yatay .tv-pip { margin-left: 0; flex-basis: 100%; font-size: 11.5px; padding: 3px 8px; }
html.oy-yatay .oy-tavla.yatay .oy-balon { left: 8px; max-width: 150%; font-size: 12.5px; }
html.oy-yatay .oy-tavla.yatay .oy-durum { grid-area: durum; color: #fff; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 3px rgba(0,0,0,.6); min-height: 0; }
html.oy-yatay .oy-tavla.yatay .oy-eylemler { grid-area: eylem; flex-direction: column; flex-wrap: nowrap; align-self: end; gap: 6px; }
html.oy-yatay .oy-tavla.yatay .oy-eylemler .oy-btn { flex: none; width: 100%; max-width: none; min-height: 42px; font-size: 14px; }
html.oy-yatay .oy-tavla.yatay .oy-eylemler .oy-btn-cizgi { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); color: #fff; }
html.oy-yatay .oy-tavla.yatay .tv-el-sonu { top: 50%; }
html.oy-yatay .oy-tavla.yatay.sohbet-acik .tv-gecmis-kart { display: none; }

/* 4.50 — Oyun köşesi masaüstü: dar sütun yerine iki büyük oyun kartı yan yana */
@media (min-width: 992px) {
  .oy.oy-dar { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 18px; }
  .oy.oy-dar > .oy-bas { grid-column: 1 / -1; padding-bottom: 6px; }
  .oy.oy-dar .oy-bas h1 { font-size: 40px; letter-spacing: -.03em; }
  .oy.oy-dar .oy-bas p { font-size: 16.5px; max-width: 60ch; }
  .oy.oy-dar > .oy-one { position: relative; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 300px; padding: 30px; border-radius: 24px; overflow: hidden;
    background: radial-gradient(520px 260px at 100% 0%, rgba(166,201,74,.22), transparent 60%), linear-gradient(160deg, #1f5132, var(--oy-koyu) 55%, #0e2a1c); box-shadow: 0 24px 48px -28px rgba(14,42,28,.6); transition: transform .18s ease, box-shadow .18s ease; }
  .oy.oy-dar > .oy-one:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -28px rgba(14,42,28,.7); }
  .oy.oy-dar > .oy-one-okey { background: radial-gradient(520px 260px at 100% 0%, rgba(198,40,40,.22), transparent 60%), linear-gradient(160deg, #1d5a73, #123b4b 55%, #0b2632); }
  .oy.oy-dar > .oy-one .oy-one-gorsel { min-height: 120px; display: flex; align-items: center; }
  .oy.oy-dar > .oy-one .oy-one-gorsel svg { width: 180px; height: 120px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
  .oy.oy-dar > .oy-one .ok-hub-taslar .ok-mini { width: 46px; height: 64px; font-size: 27px; border-radius: 7px; }
  .oy.oy-dar > .oy-one .oy-one-metin b { font-size: 30px; }
  .oy.oy-dar > .oy-one .oy-one-metin small { font-size: 15px; max-width: 46ch; }
  .oy.oy-dar > .oy-one .oy-ok { position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 26px; line-height: 1; }
  .oy.oy-dar > .oy-izgara { gap: 20px; }
  .oy.oy-dar .oy-kart { min-height: 170px; padding: 20px; border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .oy.oy-dar .oy-kart:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(14,42,28,.45); }
  .oy.oy-dar > .oy-not { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border-radius: 20px; font-size: 14.5px; }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) { .oy.oy-dar > .oy-one, .oy.oy-dar .oy-kart { transition: none; } .oy.oy-dar > .oy-one:hover, .oy.oy-dar .oy-kart:hover { transform: none; } }
