/* 101 Okey — tasarım sistemi
   Zemin: kavrulmuş kahve (#140b00), mürekkep: sıcak krem (#fff1e0), tek vurgu: kehribar (#ffb442) yalnız eylemde.
   Kontroller hap biçimli ve "bastırılmış" (iç kenar çizgisi), yüzeyler 10px köşeli ince çizgili. Parlama ve bulanık gölge yok.
   Hareket: arayüz adımı 150ms cubic-bezier(.2,.8,.2,1), yerleşme 420ms cubic-bezier(.22,1,.36,1); sıçrama yok. */
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(fonts/rubik-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(fonts/rubik-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(fonts/rubik-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(fonts/rubik-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(fonts/rubik-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(fonts/rubik-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Playfair Display"; font-weight: 700 800; font-display: swap; src: url(fonts/playfair-display-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-weight: 700 800; font-display: swap; src: url(fonts/playfair-display-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --espresso: #140b00;
  --kakao: #0b0600;
  --yuzey: #1d130a;
  --yuzey2: #261a0f;
  --krem: #fff1e0;
  --odun: #85796c;
  --ceviz: #43392d;
  --sedir: #4f4538;
  --kehribar: #ffb442;
  --kehribar2: #e8962a;
  --kehribar-koyu: #2a1600;
  --cuha: #13643f;
  --kirmizi: #d4482e;
  --yesil: #2f9e62;
  --k0: #c62828;
  --k1: #c98400;
  --k2: #0b5fd8;
  --k3: #111111;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-yer: cubic-bezier(.22, 1, .36, 1);
  --tw: 44px;
  --yan: 160px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--espresso);
  color: var(--krem);
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
::selection { background: var(--kehribar); color: var(--kehribar-koyu); }

/* ---------- Kontroller: hap biçimli, bastırılmış ---------- */
button { font: inherit; cursor: pointer; color: var(--krem); background: var(--yuzey2); border: 0; border-radius: 999px; padding: 10px 16px;
  box-shadow: inset 0 0 0 1.5px var(--ceviz), inset 0 -2px 0 rgba(0, 0, 0, .35);
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease), color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) { transform: translateY(-1px); background-color: #2f2114; box-shadow: inset 0 0 0 1.5px var(--sedir), inset 0 -2px 0 rgba(0, 0, 0, .35); }
  button.ana:hover:not(:disabled) { background: #ffc263; }
}
button:active:not(:disabled) { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
button:focus-visible { outline: 2px solid var(--kehribar); outline-offset: 2px; }
button:disabled { opacity: .38; cursor: default; }
button.ana { background: var(--kehribar); color: var(--kehribar-koyu); font-weight: 600; box-shadow: inset 0 0 0 1.5px #ffd38c, inset 0 -3px 0 var(--kehribar2); }
button.ikincil { background: transparent; }
button.kucuk { padding: 6px 12px; font-size: 13px; }
button.genis { width: 100%; margin-top: 12px; padding: 13px; }

/* ---------- Giriş ve lobi ---------- */
#giris, #lobi { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 40px; min-height: 100%;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, #3a220e 0%, rgba(20, 11, 0, 0) 70%), var(--espresso); }
.kart { background: var(--yuzey); border-radius: 18px; padding: 22px; width: 100%; max-width: 460px; box-shadow: inset 0 0 0 1px var(--ceviz); }
h1 { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.5px; }
.alt { color: var(--odun); margin: 0 0 16px; font-size: 14px; line-height: 1.5; }

/* Giriş başlığı: dağıtılan üç taş */
.giris-ust { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0 22px; }
.logo-taslar { display: flex; gap: 10px; --tw: 64px; perspective: 600px; }
.logo-taslar .tas { animation: dagit 620ms var(--ease-yer) backwards; }
.logo-taslar .tas:nth-child(1) { animation-delay: 80ms; --r: -6deg; }
.logo-taslar .tas:nth-child(2) { animation-delay: 200ms; --r: 0deg; }
.logo-taslar .tas:nth-child(3) { animation-delay: 320ms; --r: 6deg; }
.logo-taslar .tas { transform: rotate(var(--r)); }
.giris-ust h1 { font-size: 26px; text-align: center; animation: yukari 520ms var(--ease-yer) 420ms backwards; }
.giris-ust .alt { text-align: center; margin: 0; max-width: 320px; animation: yukari 520ms var(--ease-yer) 520ms backwards; }
#giris .kart { animation: yukari 560ms var(--ease-yer) 600ms backwards; }
@keyframes dagit { from { transform: translateY(-120px) rotate(calc(var(--r) * -3)) scale(.9); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }
@keyframes yukari { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.alan { display: block; font-size: 13px; color: var(--odun); margin: 0 0 16px; }
.alan input, .kodla input { display: block; width: 100%; margin-top: 7px; padding: 13px 18px; font: inherit; font-size: 16px; border-radius: 999px; border: 0; background: var(--kakao); color: var(--krem);
  box-shadow: inset 0 0 0 1.5px var(--ceviz); transition: box-shadow 150ms var(--ease); }
.alan input:focus, .kodla input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--kehribar); }
.ayarlar { display: grid; gap: 14px; margin-bottom: 18px; }
.secim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.secim span { width: 100%; font-size: 11px; color: var(--odun); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.secim button { padding: 8px 14px; background: transparent; font-size: 14px; }
.secim button.secili { background: var(--krem); color: var(--espresso); font-weight: 600; box-shadow: inset 0 -2px 0 #d8c8b2; }
.aciklama { width: 100%; font-size: 12px; color: var(--odun); }
.kutu { font-size: 14px; display: flex; gap: 10px; align-items: center; line-height: 1.35; }
.kutu input { width: 18px; height: 18px; accent-color: var(--kehribar); flex: 0 0 auto; }
#masaAc, #basla { width: 100%; padding: 15px; font-size: 17px; margin-top: 6px; }
.kodla { display: flex; gap: 8px; margin-top: 10px; }
.kodla input { flex: 1; min-width: 0; margin: 0; letter-spacing: .25em; text-transform: uppercase; }
.kodla button { flex: 0 0 auto; }
.kurulum { margin: 12px 0 0; font-size: 12px; }

/* Lobi: masanın etrafında dört koltuk */
.koltuklar { display: grid; grid-template-columns: minmax(78px, 1fr) minmax(150px, 1.7fr) minmax(78px, 1fr); grid-template-rows: auto auto auto; grid-template-areas: ". n ." "w f e" ". s ."; gap: 10px 6px; margin: 22px 0 18px; align-items: center; justify-items: center; }
/* Masa: kuşbakışı ahşap çerçeve + çuha + koltuk önündeki ıstakalar */
.mini-masa { grid-area: f; position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; padding: 9%;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(0,0,0,.18)), repeating-linear-gradient(92deg, rgba(0,0,0,.08) 0 2px, rgba(255,255,255,.03) 2px 7px), linear-gradient(160deg, #8a5430, #5d3418 55%, #45250f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.35), 0 18px 36px rgba(0,0,0,.55), 0 2px 0 #2a1508; }
.mm-cuha { width: 100%; height: 100%; border-radius: 8px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.10), transparent 60%), repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px), #15784a;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 6px 16px rgba(0,0,0,.35); }
.mm-cuha span { font-weight: 800; font-size: clamp(20px, 7vw, 30px); color: rgba(255,241,224,.16); letter-spacing: .02em; border: 2px solid rgba(255,241,224,.1); border-radius: 50%; width: 58%; aspect-ratio: 1; display: grid; place-items: center; }
.mm-istaka { position: absolute; background: linear-gradient(#4a2a14, #2c170a); border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.4); opacity: .35; transition: opacity 240ms var(--ease); }
.mm-istaka::after { content: ""; position: absolute; inset: 2px 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #efe4cc 0 5px, transparent 5px 7px); opacity: 0; transition: opacity 240ms var(--ease); }
.mm-istaka.dolu { opacity: 1; } .mm-istaka.dolu::after { opacity: .9; }
.mm-istaka.ben { box-shadow: 0 0 0 2px var(--kehribar), 0 2px 4px rgba(0,0,0,.4); }
.mm-s, .mm-n { left: 24%; right: 24%; height: 9px; } .mm-s { bottom: 11%; } .mm-n { top: 11%; }
.mm-w, .mm-e { top: 24%; bottom: 24%; width: 9px; } .mm-w { left: 11%; } .mm-e { right: 11%; }
.mm-w::after, .mm-e::after { background: repeating-linear-gradient(180deg, #efe4cc 0 5px, transparent 5px 7px); inset: 4px 2px; }
/* Koltuk: rozet, ad, durum */
.koltuk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; width: 100%; max-width: 132px; animation: yukari 360ms var(--ease-yer) backwards; }
.koltuk[data-yer="n"] { grid-area: n; } .koltuk[data-yer="s"] { grid-area: s; } .koltuk[data-yer="e"] { grid-area: e; } .koltuk[data-yer="w"] { grid-area: w; }
.koltuk[data-yer="e"] { animation-delay: 60ms; } .koltuk[data-yer="n"] { animation-delay: 120ms; } .koltuk[data-yer="w"] { animation-delay: 180ms; }
.koltuk .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--espresso);
  background: radial-gradient(circle at 35% 30%, #fff6e8, #e9d6b4); box-shadow: 0 0 0 3px var(--kakao), 0 0 0 4.5px var(--ceviz), 0 8px 16px rgba(0,0,0,.45); transition: transform 150ms var(--ease), box-shadow 200ms var(--ease); }
.koltuk .avatar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.koltuk.ben .avatar { background: radial-gradient(circle at 35% 30%, #ffd58a, var(--kehribar)); box-shadow: 0 0 0 3px var(--kakao), 0 0 0 5px var(--kehribar), 0 0 22px rgba(255,180,66,.35), 0 8px 16px rgba(0,0,0,.45); }
.koltuk.bot .avatar { background: radial-gradient(circle at 35% 30%, #4a3a2c, #2a2018); color: var(--odun); }
.koltuk.bos .avatar { background: transparent; color: var(--odun); box-shadow: inset 0 0 0 2px rgba(255,241,224,.22); outline: 2px dashed rgba(255,241,224,.18); outline-offset: 3px; }
.koltuk .avatar.kopuk { filter: grayscale(1) brightness(.7); }
.koltuk.takim-a .avatar::after, .koltuk.takim-b .avatar::after { content: "A"; position: absolute; transform: translate(20px, 18px); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2f6fbf; color: #fff; box-shadow: 0 0 0 2px var(--kakao); }
.koltuk.takim-b .avatar::after { content: "B"; background: #b3261e; }
.koltuk .avatar { position: relative; }
.koltuk .ad { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.koltuk.bos .ad { color: var(--odun); font-weight: 500; }
.koltuk .not { font-size: 11px; color: var(--odun); }
.koltuk.ben .not { color: var(--kehribar); }
.koltuk .eylem { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; }
.koltuk .eylem:empty { display: none; }
.koltuk .eylem button { font-size: 12px; padding: 6px 12px; }

/* ---------- Oyun ---------- */
#oyun { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--espresso); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.ust { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 12px; color: var(--odun); flex: 0 0 auto; }
.ust .logo { font-weight: 800; color: var(--kehribar); font-size: 20px; letter-spacing: -.5px; }
.ust .el-bilgi { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ust .ikon { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 12px; background: transparent; }
.ust .ikon svg { color: var(--krem); opacity: .85; }
.ust .ikon.kapali svg { opacity: .35; }
.ust .ikon span { display: none; }
@media (min-width: 900px) { .ust .ikon span { display: inline; } }
.masa-kap { position: relative; flex: 1 1 auto; min-height: 0; touch-action: none; }
.masa-kap canvas { display: block; position: absolute; inset: 0; animation: perde-ac 900ms var(--ease-yer) backwards; }
@keyframes perde-ac { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.etiket-kap { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.etiket3d { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; line-height: 1.15; }
.etiket3d b, .etiket3d span { display: block; }
.yigin-etiket.aktif span, .deste-etiket.aktif span { color: var(--kehribar); font-weight: 600; font-size: 11px; text-shadow: 0 1px 3px #000; animation: nefes 1.8s ease-in-out infinite; }
.deste-etiket { font-size: 10px; color: #e9dcc4; text-shadow: 0 1px 3px #000; }
.deste-etiket b { font-size: 15px; color: var(--krem); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes nefes { 50% { opacity: .55; } }
.taslak-etiket { font-size: 11px; color: var(--krem); background: rgba(40, 18, 2, .9); border-radius: 999px; padding: 4px 11px; box-shadow: inset 0 0 0 1.5px #ff9b4a; }
.isim3d { font-size: 11px; font-weight: 600; color: var(--krem); background: rgba(11, 6, 0, .86); border-radius: 999px; padding: 3px 10px; box-shadow: inset 0 0 0 1px var(--ceviz); transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.isim3d em { font-style: normal; color: var(--kehribar); font-weight: 600; margin-left: 3px; font-variant-numeric: tabular-nums; }
.isim3d em.kopuk { color: #ff8a80; }
.isim3d i { font-style: normal; font-size: 9px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: var(--krem); color: var(--espresso); }
.isim3d.sirada { background: var(--kehribar); color: var(--kehribar-koyu); box-shadow: none; }
.isim3d.sirada::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 1.5px solid var(--kehribar); animation: halka 1.6s var(--ease) infinite; }
.isim3d.sirada em { color: var(--kehribar-koyu); }
.isim3d.isim-sol { transform: translate(-50%, -50%) rotate(-90deg); }
.isim3d.isim-sag { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes halka { from { transform: scale(1); opacity: .9; } to { transform: scale(1.25, 1.6); opacity: 0; } }

/* Sıra sende bandı: tur başında bir kez */
.sira-bandi { position: absolute; left: 50%; top: 42%; z-index: 4; transform: translate(-50%, -50%); pointer-events: none; padding: 10px 22px; border-radius: 999px; background: var(--kehribar); color: var(--kehribar-koyu); font-weight: 600; font-size: 15px; letter-spacing: .02em; opacity: 0; }
.sira-bandi.goster { animation: bant 1500ms var(--ease-yer) both; }
@keyframes bant { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.94); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -62%); } }

.alt-panel { position: relative; z-index: 3; flex: 0 0 auto; padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(rgba(20, 11, 0, 0), var(--espresso) 22%); }
.bilgi { display: grid; grid-template-columns: 1fr; grid-template-areas: "olay" "durum"; align-items: center; gap: 4px 6px; }
.olay-serit { grid-area: olay; min-width: 0; }
.olay-serit:empty { display: none; }
.sayilar { display: flex; gap: 6px; flex: 0 0 auto; align-self: center; justify-content: center; flex-wrap: wrap; }
.bilgi .sayilar { grid-column: 1 / -1; justify-self: center; }
.sayi-kutu { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--kakao); box-shadow: inset 0 0 0 1px var(--ceviz); white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.sayi-kutu.yeter { background: var(--kehribar); color: var(--kehribar-koyu); box-shadow: none; }
.sayi-kutu.degisti { animation: sayi 420ms var(--ease-yer); }
@keyframes sayi { 0% { transform: translateY(-4px); } 100% { transform: none; } }
.durum-yazi { grid-area: durum; text-align: center; font-size: 13px; color: var(--odun); min-height: 17px; }
.durum-yazi.ben { color: var(--kehribar); font-weight: 600; }

/* Istaka: iki raflı ceviz */
.istaka { position: relative; align-self: center; border-radius: 12px 12px 16px 16px; padding: 6px 6px calc(var(--tw) * .42);
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, .07) 0 3px, rgba(255, 255, 255, .02) 3px 8px), linear-gradient(180deg, #7b4a27, #6a3d1f 40%, #4e2c16);
  box-shadow: 0 9px 0 #2a1709, 0 16px 22px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .3); touch-action: none; user-select: none; -webkit-user-select: none; }
.istaka-yuva { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(15, var(--tw)); grid-auto-rows: calc(var(--tw) * 1.42); row-gap: calc(var(--tw) * .5); }
.istaka::before, .istaka::after { content: ""; position: absolute; left: 3px; right: 3px; height: calc(var(--tw) * .2); border-radius: 3px; background: linear-gradient(180deg, #d39a62, #8a5630 45%, #4d2a12); box-shadow: 0 3px 5px rgba(0, 0, 0, .5); }
.istaka::before { top: calc(6px + var(--tw) * 1.42 - var(--tw) * .07); }
.istaka::after { top: calc(6px + var(--tw) * 2.84 + var(--tw) * .5 - var(--tw) * .07); }
.yuva { width: var(--tw); height: calc(var(--tw) * 1.42); display: flex; align-items: flex-end; justify-content: center; border-radius: 6px; transition: background-color 120ms var(--ease); }
.yuva.ustunde { background: rgba(255, 180, 66, .3); box-shadow: inset 0 0 0 2px var(--kehribar); }
.bloklar { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bloklar .blok { pointer-events: auto; cursor: grab; touch-action: none; }
.bloklar .blok::before { content: ""; position: absolute; inset: -8px -2px; }
.blok { position: absolute; height: calc(var(--tw) * .26); border-radius: 999px; background: var(--yesil); color: #fff; font-size: calc(var(--tw) * .22); font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; }
.blok.cift { background: #2f6fbf; }
.blok.yeni-blok { animation: blok 360ms var(--ease-yer) backwards; transform-origin: left center; }
@keyframes blok { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.dugmeler { display: flex; flex-direction: column; gap: 6px; }
.butonlar { display: flex; gap: 6px; }
.butonlar button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; padding: 11px 6px; white-space: nowrap; }
.butonlar button svg { opacity: .9; }
.butonlar .tehlike { background: var(--kirmizi); box-shadow: inset 0 0 0 1.5px #f07a62, inset 0 -3px 0 #8f2a17; }
.butonlar #bitirBtn:not(.ana) { background: var(--yuzey2); }
.butonlar.ek { animation: yukari 260ms var(--ease-yer); }
.butonlar.ek button { padding: 9px 6px; font-size: 12px; }

/* Yatay düzen */
#oyun.yatay { display: grid; grid-template-columns: var(--yan) 1fr var(--yan); grid-template-rows: auto 1fr auto; grid-template-rows: auto 1fr auto auto; grid-template-areas: "ust masa dug" "bilgi masa dug" "bilgi say dug" "bilgi istaka dug"; column-gap: 6px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
#oyun.yatay .alt-panel { display: contents; }
#oyun.yatay .ust { grid-area: ust; flex-wrap: wrap; align-content: flex-start; gap: 2px; padding: 8px 0 0 8px; }
#oyun.yatay .ust .logo { font-size: 22px; width: 100%; }
#oyun.yatay .ust .el-bilgi { width: 100%; flex: 0 0 100%; white-space: normal; font-size: 11px; line-height: 1.35; margin-bottom: 4px; }
#oyun.yatay .masa-kap { grid-area: masa; }
#oyun.yatay .bilgi { grid-area: bilgi; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0 0 8px 8px; }
#oyun.yatay .sayilar { grid-area: say; align-self: end; justify-self: center; margin-bottom: 2px; }
#oyun.yatay .sayi-kutu { text-align: center; font-size: 11px; }
#oyun.yatay .durum-yazi { font-size: 12px; text-align: left; }
#oyun.yatay .istaka { grid-area: istaka; align-self: end; justify-self: center; margin-bottom: 6px; }
#oyun.yatay .dugmeler { grid-area: dug; justify-content: flex-end; padding: 8px 8px 8px 0; }
#oyun.yatay .butonlar { flex-direction: column; }
#oyun.yatay .butonlar button { flex: 0 0 auto; padding: 11px 6px; font-size: 13px; }
#oyun.yatay .butonlar.ek button { padding: 9px 6px; font-size: 12px; }

/* ---------- Taş ---------- */
.tas { width: calc(var(--tw) - 3px); height: calc(var(--tw) * 1.42 - 3px); border-radius: calc(var(--tw) * .14); display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--tw) * .08); font-weight: 800; font-size: calc(var(--tw) * .64); line-height: 1; position: relative; color: var(--k3);
  background: linear-gradient(180deg, #fffefa 0%, #f6eedb 70%, #e9dcbd 100%);
  box-shadow: inset 0 0 0 1px #d8c9a4, inset 0 1px 0 #fff, 0 calc(var(--tw) * .08) 0 #b8a67c, 0 calc(var(--tw) * .1) calc(var(--tw) * .12) rgba(0, 0, 0, .45);
  font-variant-numeric: tabular-nums; letter-spacing: -1px; flex: 0 0 auto; }
.tas::after { content: ""; position: absolute; bottom: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: .92; }
.tas.c0 { color: var(--k0); } .tas.c1 { color: var(--k1); } .tas.c2 { color: var(--k2); } .tas.c3 { color: var(--k3); }
.tas.okey { background: linear-gradient(180deg, #fff8d6, #f6df8e 75%, #e6c463); box-shadow: inset 0 0 0 1px #cda538, inset 0 1px 0 #fff, 0 calc(var(--tw) * .08) 0 #b8933a, 0 calc(var(--tw) * .1) calc(var(--tw) * .12) rgba(0, 0, 0, .45); }
.tas.okey::before { content: "OKEY"; position: absolute; top: 1px; left: 0; right: 0; text-align: center; font-size: calc(var(--tw) * .15); letter-spacing: 0; color: #7a5b00; font-weight: 600; }
.tas.sahte { color: #1d5c43; }
.tas.sahte::after { display: none; }
.tas.sahte .s101 { font-size: calc(var(--tw) * .3); border: 2px solid currentColor; border-radius: 4px; padding: 2px; margin-top: 8%; letter-spacing: 0; }
.tas.sahte .sdeger { font-size: calc(var(--tw) * .28); margin-top: auto; margin-bottom: 12%; letter-spacing: 0; }
.tas.arka { background: linear-gradient(#efe6cf, #d9cba8); }
.tas.arka::after { display: none; }
.istaka .tas { cursor: grab; transition: transform 180ms var(--ease-yer), box-shadow 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .istaka .tas:hover:not(.secili) { transform: translateY(-3px); } }
.tas.secili { transform: translateY(-24%); box-shadow: inset 0 0 0 2px var(--kehribar), 0 calc(var(--tw) * .08) 0 #b8a67c, 0 14px 16px rgba(0, 0, 0, .5); }
.tas.surukle { position: fixed; z-index: 100; pointer-events: none; transform: scale(1.16) rotate(-2deg); box-shadow: inset 0 0 0 2px var(--kehribar), 0 18px 26px rgba(0, 0, 0, .6); transition: none; }
.tas.yeni { animation: isaret 1.6s var(--ease) both; }
@keyframes isaret { 0%, 40% { box-shadow: inset 0 0 0 2px var(--kehribar), 0 calc(var(--tw) * .08) 0 #b8a67c, 0 6px 10px rgba(0, 0, 0, .45); } 100% { } }
/* El başında dağıtım: taşlar sırayla rafına düşer */
.tas.dagit { animation: rafa 460ms var(--ease-yer) backwards; animation-delay: calc(var(--i) * 26ms); }
/* Çekilen taş yukarıdan iner */
.tas.gelen { animation: rafa 420ms var(--ease-yer) backwards; }
@keyframes rafa { from { transform: translateY(-70%) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.mini { --tw: 26px; }
.tas.mini { letter-spacing: 0; }

/* ---------- Perde ve bildirim ---------- */
.perde { position: fixed; inset: 0; background: rgba(8, 4, 0, .72); display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 40; animation: sol 200ms var(--ease) both; }
.perde .kart { max-height: 92vh; overflow-y: auto; animation: yukari 320ms var(--ease-yer) both; }
.perde .kart.genis-kart { max-width: 820px; }
@keyframes sol { from { opacity: 0; } to { opacity: 1; } }
.perde table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.perde th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--odun); font-weight: 600; }
.perde th, .perde td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--ceviz); vertical-align: top; }
.perde td.sayi, .perde th.sayi { text-align: right; font-variant-numeric: tabular-nums; }
.perde tbody tr { animation: yukari 380ms var(--ease-yer) backwards; }
.perde tbody tr:nth-child(2) { animation-delay: 70ms; } .perde tbody tr:nth-child(3) { animation-delay: 140ms; } .perde tbody tr:nth-child(4) { animation-delay: 210ms; }
.perde tbody tr.birinci td { color: var(--kehribar); }
.perde .kalan, .perde .liste { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.perde .butonsira { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.perde .butonsira button { flex: 1; }
.perde .kayit-satir { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--ceviz); }
.bildirim { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); background: var(--yuzey2); color: var(--krem); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: inset 0 0 0 1px var(--sedir), 0 10px 24px rgba(0, 0, 0, .5); animation: bildirim 260ms var(--ease-yer) both; }
.bildirim.hata { background: var(--kirmizi); box-shadow: inset 0 0 0 1px #f07a62, 0 10px 24px rgba(0, 0, 0, .5); animation: bildirim 260ms var(--ease-yer) both, sars 360ms var(--ease) 260ms; }
@keyframes bildirim { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sars { 25% { transform: translate(calc(-50% - 5px), 0); } 50% { transform: translate(calc(-50% + 4px), 0); } 75% { transform: translate(calc(-50% - 2px), 0); } }

/* ---------- Resimli kurallar ---------- */
.kurallar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; margin-top: 10px; }
.kural { background: var(--kakao); border-radius: 12px; padding: 14px; box-shadow: inset 0 0 0 1px var(--ceviz); }
.kural h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--kehribar); }
.kural p { margin: 6px 0 0; font-size: 13px; color: #e4d6c2; line-height: 1.5; }
.kural .ornek { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0; --tw: 32px; }
.kural .ornek .ok { font-size: 18px; color: var(--odun); margin: 0 3px; }
.kural .ornek .etk { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--yuzey2); box-shadow: inset 0 0 0 1px var(--ceviz); color: var(--krem); }
.kural .ornek .etk.iyi { background: var(--yesil); box-shadow: none; }
.kural .ornek .etk.kotu { background: var(--kirmizi); box-shadow: none; }
.kural .ornek .grup { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(255, 241, 224, .05); }
.kural table { width: 100%; font-size: 13px; border-collapse: collapse; }
.kural td { padding: 5px 2px; border-bottom: 1px solid var(--ceviz); }
.kural td:last-child { text-align: right; font-weight: 600; color: var(--krem); }

/* Hamle süresi */
.sure-cubuk { height: 5px; border-radius: 999px; background: var(--kakao); box-shadow: inset 0 0 0 1px var(--ceviz); overflow: hidden; align-self: stretch; margin: 0 6px; }
.sure-cubuk i { display: block; height: 100%; background: var(--kehribar); transform-origin: left center; }
.sure-cubuk.az i { background: var(--kirmizi); }
#oyun.yatay .sure-cubuk { grid-area: masa; align-self: end; margin: 0 24px 4px; position: relative; z-index: 3; }
.isim3d { position: absolute; }
.isim3d .sure-izi { position: absolute; left: 10px; right: 10px; bottom: -5px; height: 3px; border-radius: 99px; background: rgba(0, 0, 0, .45); overflow: hidden; text-decoration: none; }
.isim3d .sure-izi i { display: block; height: 100%; background: var(--kehribar); transform-origin: left center; animation: sure-akis linear both; }
.isim3d.sirada .sure-izi i { background: var(--kehribar-koyu); }
@keyframes sure-akis { from { transform: scaleX(var(--bas)); } to { transform: scaleX(0); } }

/* İpucu */
.ipucu { align-self: center; font-size: 12px; color: var(--krem); background: rgba(47, 158, 98, .18); box-shadow: inset 0 0 0 1px var(--yesil); padding: 5px 12px; border-radius: 999px; text-align: center; animation: yukari 260ms var(--ease-yer); }
#oyun.yatay .ipucu { grid-area: bilgi; align-self: start; margin: 60px 0 0 8px; }

/* Kısa mesajlar */
.soz-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.soz-liste button { padding: 12px 8px; }
.soz-balon { position: absolute; z-index: 5; pointer-events: none; background: var(--krem); color: var(--espresso); border-radius: 16px; padding: 7px 13px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); animation: balon 2800ms var(--ease-yer) both; max-width: 60%; }
.soz-balon b { display: block; font-size: 10px; font-weight: 600; color: var(--odun); text-transform: uppercase; letter-spacing: .08em; }
.soz-alt { left: 50%; bottom: 8%; transform: translateX(-50%); }
.soz-ust { left: 50%; top: 8%; transform: translateX(-50%); }
.soz-sol { left: 8%; top: 42%; }
.soz-sag { right: 8%; top: 42%; }
@keyframes balon { 0% { opacity: 0; margin-top: 8px; } 10% { opacity: 1; margin-top: 0; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* Masa teması seçici */
.tema-liste { display: grid; gap: 8px; }
.tema-sec { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border-radius: 14px; padding: 14px 16px; }
.tema-sec b { font-size: 15px; font-weight: 600; }
.tema-sec span { font-size: 12px; color: var(--odun); }
.tema-sec.secili { box-shadow: inset 0 0 0 2px var(--kehribar); }
.tema-kahvehane { background: linear-gradient(120deg, #3a2412, #1d130a); }
.tema-kulup { background: linear-gradient(120deg, #1a2238, #0b0f1f); }
.tema-bahce { background: linear-gradient(120deg, #2f4a24, #1d2a14); }

/* Arayüz tema renkleri: masa temasıyla uyumlu */
:root[data-tema="kulup"] { --espresso: #0b0f1f; --kakao: #070a15; --yuzey: #12182c; --yuzey2: #1a2138; --ceviz: #2c3550; --sedir: #3d4868; --krem: #f3e9d2; --odun: #9c98aa; --kehribar: #d8b46a; --kehribar2: #a8833d; --kehribar-koyu: #151005; }
:root[data-tema="bahce"] { --espresso: #141a10; --kakao: #0c1009; --yuzey: #1c2416; --yuzey2: #26301d; --ceviz: #3b4a2f; --sedir: #4d5e3e; --krem: #fbf3e2; --odun: #a6ab92; --kehribar: #ffb442; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Gerçek mekân tüm ekranda: masa ortadaki bölgeye sığdırılır, paneller üstte */
.masa-alan { display: none; }
#oyun.yatay .masa-alan { display: block; grid-area: masa; pointer-events: none; }
#oyun.yatay .masa-kap { grid-area: auto; grid-column: 1 / -1; grid-row: 1 / -1; z-index: 0; }
#oyun.yatay > :not(.masa-kap):not(.perde) { position: relative; z-index: 2; }
#oyun.yatay .alt-panel > * { position: relative; z-index: 2; }
#oyun.yatay .ust, #oyun.yatay .bilgi, #oyun.yatay .dugmeler { background: none; }
#oyun.yatay .ust .el-bilgi, #oyun.yatay .durum-yazi { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.6); }
#oyun.yatay .ust button, #oyun.yatay .dugmeler button, #oyun.yatay .sayi-kutu { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Radyo paneli */
.ortam-satir { display: grid; grid-template-columns: auto 1fr minmax(90px, 140px); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,241,224,.08); }
.ortam-satir b { display: block; font-size: 14px; }
.ortam-satir small { color: var(--odun); font-size: 12px; }
.ortam-satir input[type=range] { width: 100%; accent-color: var(--kehribar); }
.anahtar { position: relative; width: 42px; height: 24px; display: inline-block; }
.anahtar input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.anahtar span { position: absolute; inset: 0; border-radius: 999px; background: var(--ceviz); transition: background 150ms; pointer-events: none; }
.anahtar span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--krem); transition: transform 150ms var(--ease); }
.anahtar input:checked + span { background: var(--kehribar); }
.anahtar input:checked + span::after { transform: translateX(18px); }
.radyo-ikon { width: 42px; height: 24px; display: grid; place-items: center; }
.radyo-ikon::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kehribar); box-shadow: 0 0 0 4px rgba(255,180,66,.2); }
.radyo-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; max-height: 46vh; overflow: auto; }
.radyo-liste button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border-radius: 12px; padding: 10px 12px; }
.radyo-liste button b { font-size: 14px; font-weight: 600; }
.radyo-liste button span { font-size: 11px; color: var(--odun); }
.radyo-liste button.secili { box-shadow: inset 0 0 0 2px var(--kehribar); }
.radyo-liste button.secili b::after { content: " ●"; color: var(--kehribar); animation: nabiz 1.2s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .3; } }
#sesBtn.acik svg { color: var(--kehribar); }
.ses-baslik { font-size: 15px; margin: 18px 0 0; }

/* Açılış ve işleme efekti: oyuncunun bölgesinde beliren yazı */
.efekt-yazi { position: absolute; transform: translate(-50%, -50%); pointer-events: none; text-align: center; color: #fff6e6; text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 24px rgba(0,0,0,.6); animation: efekt-cik 2.1s var(--ease) forwards; white-space: nowrap; z-index: 5; }
.efekt-yazi small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .9; }
.efekt-yazi b { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--kehribar); font-variant-numeric: tabular-nums; }
.efekt-yazi.isle b { font-size: 20px; color: #fff6e6; background: rgba(20,11,0,.72); padding: 4px 12px; border-radius: 999px; text-shadow: none; box-shadow: inset 0 0 0 1px var(--kehribar); }
@keyframes efekt-cik {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  24% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(.96); }
}
@media (prefers-reduced-motion: reduce) { .efekt-yazi { animation-duration: .01ms; animation-iteration-count: 1; opacity: 0; } }

/* Per taşıma: basılı tutulan blok ve sürüklenen grup */
#istakaYuva .tas.tutuldu { box-shadow: inset 0 0 0 2px var(--kehribar), 0 0 0 2px rgba(255,180,66,.35); transform: translateY(-4px); }
.grup-hayalet { position: fixed; z-index: 100; pointer-events: none; display: flex; gap: 2px; transform: scale(1.08) rotate(-1.5deg); transform-origin: left bottom; filter: drop-shadow(0 16px 20px rgba(0,0,0,.6)); }
.grup-hayalet .tas { box-shadow: inset 0 0 0 2px var(--kehribar); }

/* Çekilen taş: hamle bitene ya da taşınana kadar belirgin */
#istakaYuva .tas.cekilen { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--kehribar), 0 0 0 3px rgba(255,180,66,.35), 0 10px 18px rgba(0,0,0,.45); animation: cekilen-nefes 1.6s ease-in-out infinite; }
#istakaYuva .tas .cekilen-etiket { content: "YENİ"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font: 700 9px/1 Rubik, system-ui, sans-serif; letter-spacing: .08em; color: var(--kehribar-koyu); background: var(--kehribar); padding: 3px 5px; border-radius: 999px; z-index: 2; }
@keyframes cekilen-nefes { 50% { box-shadow: inset 0 0 0 2px var(--kehribar), 0 0 0 6px rgba(255,180,66,.12), 0 10px 18px rgba(0,0,0,.45); } }
@media (prefers-reduced-motion: reduce) { #istakaYuva .tas.cekilen { animation: none; } }
#istakaYuva .tas .cekilen-etiket { font-style: normal; pointer-events: none; }
.koltuk .not:empty { display: none; }

/* Çetele: kareli kâğıt üstüne kurşun kalemle tutulmuş gibi */
.cetele { margin-top: 12px; border-radius: 10px; padding: 6px 10px 10px; color: #2b1d10; overflow-x: auto;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(43,90,140,.16) 31px 32px), linear-gradient(90deg, transparent 0 46px, rgba(200,60,50,.35) 46px 47px, transparent 47px), #f6efdf;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 28px rgba(0,0,0,.45); }
.cetele table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cetele th { font-size: 12px; font-weight: 700; color: #2b1d10; text-align: right; padding: 8px 6px 6px; border-bottom: 2px solid #2b1d10; vertical-align: bottom; }
.cetele th:first-child { text-align: left; width: 40px; }
.cetele th small { display: block; font-weight: 500; font-size: 10px; color: #6b5640; }
.cetele td { padding: 6px; height: 32px; text-align: right; vertical-align: middle; border: 0; color: #2b1d10; }
.cetele td.c-no { text-align: left; color: #8a7358; font-size: 12px; }
.cetele .c-puan { font-weight: 600; font-size: 15px; }
.cetele .c-ceza { display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 700; color: #fff; background: #b3261e; border-radius: 999px; padding: 2px 6px; vertical-align: 2px; }
.cetele .c-bitti { display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 700; color: #fff; background: #1e7b4b; border-radius: 999px; padding: 2px 6px; vertical-align: 2px; }
.cetele .c-bos { font-size: 11px; color: #8a7358; font-style: italic; }
.cetele tr.c-simdi td { background: rgba(255,180,66,.14); }
.cetele tr.c-toplam td { border-top: 2px solid #2b1d10; font-weight: 800; font-size: 17px; padding-top: 8px; }
.cetele tr.c-toplam td.onde { color: #1e7b4b; }
.cetele tr.c-toplam td.onde::after { content: " ●"; font-size: 10px; vertical-align: 3px; }
.grup-ad { font-weight: 600; }

/* ---------- Giriş: fotoğraflı sahne, açık masalar, yeni masa ---------- */
#giris { padding: 0 0 40px; background: var(--espresso); }
.giris-sahne { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: max(36px, env(safe-area-inset-top)) 16px 30px; text-align: center; isolation: isolate; }
.giris-sahne::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(20,11,0,.12), rgba(20,11,0,.7) 80%), linear-gradient(rgba(20,11,0,0) 60%, var(--espresso)); }
.giris-sahne h1 { font-size: 34px; margin: 4px 0 0; text-shadow: 0 2px 12px rgba(0,0,0,.6); animation: yukari 520ms var(--ease-yer) 420ms backwards; }
.giris-sahne .alt { margin: 0; max-width: 340px; color: #e9d9c0; text-shadow: 0 1px 6px rgba(0,0,0,.7); animation: yukari 520ms var(--ease-yer) 500ms backwards; }
.giris-sahne .ad-alan { width: 100%; max-width: 420px; margin: 14px 0 0; text-align: left; color: #e9d9c0; animation: yukari 520ms var(--ease-yer) 560ms backwards; }
.giris-sahne .ad-alan span { padding-left: 18px; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.giris-sahne .ad-alan input { background: rgba(10,6,2,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(255,180,66,.45); font-size: 17px; padding: 15px 20px; }
.giris-sahne .ad-alan input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--kehribar), 0 0 0 4px rgba(255,180,66,.18); }
.giris-izgara { display: grid; gap: 14px; width: 100%; max-width: 940px; padding: 0 16px; margin-top: 4px; }
@media (min-width: 820px) { .giris-izgara { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.giris-izgara .kart { max-width: none; }
#giris .giris-izgara .kart { animation: yukari 560ms var(--ease-yer) 620ms backwards; }
#giris .giris-izgara .kart + .kart { animation-delay: 700ms; }
.kart-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kart-bas h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.canli { font-size: 12px; color: var(--odun); display: inline-flex; align-items: center; gap: 6px; }
.canli::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--odun); }
.canli.var { color: #7fd6a0; } .canli.var::before { background: #3ecf7a; box-shadow: 0 0 0 0 rgba(62,207,122,.6); animation: canli 1.8s ease-out infinite; }
@keyframes canli { 70% { box-shadow: 0 0 0 7px rgba(62,207,122,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,122,0); } }
.masa-listesi { display: grid; gap: 8px; min-height: 92px; }
.masa-satir { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--kakao); box-shadow: inset 0 0 0 1px var(--ceviz); transition: box-shadow 150ms var(--ease), transform 150ms var(--ease); animation: yukari 320ms var(--ease-yer) backwards; }
.masa-satir:hover { box-shadow: inset 0 0 0 1px var(--sedir); transform: translateY(-1px); }
.ms-kod { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #f6efdf; background: radial-gradient(ellipse at 50% 40%, #1f8656, #0e5134); box-shadow: inset 0 0 0 3px #5d3418, inset 0 0 0 4px #2a1508; }
.ms-orta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-orta b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-orta span { font-size: 12px; color: var(--odun); }
.ms-durum.lobi { color: #7fd6a0 !important; } .ms-durum.oyun { color: var(--kehribar) !important; }
.ms-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ms-koltuk { display: inline-flex; gap: 4px; }
.ms-koltuk i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sedir); }
.ms-koltuk i.k-insan { background: var(--kehribar); box-shadow: none; }
.ms-koltuk i.k-bot { background: var(--sedir); box-shadow: none; }
.ms-sag button { padding: 7px 16px; font-size: 13px; }
.liste-bos { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 18px 10px; border-radius: 14px; border: 1.5px dashed var(--ceviz); color: var(--odun); font-size: 13px; }
.liste-bos b { color: var(--krem); font-weight: 600; font-size: 14px; }
.masalar-kart .kodla { margin-top: 12px; }
.ayar-ozet { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--kakao); font-size: 13px; color: var(--krem); line-height: 1.5; }
.ayar-detay { margin: 0 0 12px; }
.ayar-detay summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--kehribar); font-weight: 600; padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px; }
.ayar-detay summary::-webkit-details-marker { display: none; }
.ayar-detay summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 150ms var(--ease); }
.ayar-detay[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ayar-detay .ayarlar { margin-top: 10px; animation: yukari 260ms var(--ease-yer); }
.yeni-masa #masaAc { width: 100%; padding: 15px; font-size: 16px; margin-top: 6px; }
.giris-alt { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 940px; padding: 18px 16px 0; }
.giris-alt .kurulum { text-align: center; margin: 0; font-size: 12px; max-width: 460px; }
#lobi .kart { max-width: 520px; backdrop-filter: blur(6px); background: rgba(31,20,10,.92); }
.cetele th { text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.2; } .cetele table { table-layout: fixed; } .cetele th:first-child, .cetele td:first-child { width: 52px; }

/* Masa kuralları penceresi ve cezalı sürüm */
.masa-kurallari .ayarlar { margin-top: 6px; }
.ceza-grup { margin: 14px 0 6px; padding: 12px 14px 4px; border-radius: 14px; background: rgba(179,38,30,.1); box-shadow: inset 0 0 0 1px rgba(255,120,100,.25); }
.ceza-grup .grup-baslik { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff9a85; margin-bottom: 6px; }
.ceza-grup .kutu span { display: flex; flex-direction: column; gap: 2px; }
.ceza-grup .kutu small { color: var(--odun); font-size: 12px; line-height: 1.45; }
.efekt-yazi.ceza b { color: #ff7a59; }
.yeni-masa-acik { margin: 0 0 12px; }

/* Gösterge hakkı olan taş */
#istakaYuva .tas.gosterge-hakki { box-shadow: inset 0 0 0 2px #3ecf7a, 0 0 0 3px rgba(62,207,122,.3), 0 8px 14px rgba(0,0,0,.4); }

.dokum { font-size: 12px; color: var(--odun); line-height: 1.45; margin-top: 2px; }

/* Gösterilmiş gösterge taşı: ıstakada durur, bir çift sayılır */
#istakaYuva .tas.gosterge-ilan { box-shadow: inset 0 0 0 2px #3ecf7a, 0 6px 12px rgba(0,0,0,.35); }
#istakaYuva .tas .gosterge-etiket { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font: 700 8px/1 Rubik, system-ui, sans-serif; letter-spacing: .06em; color: #062a16; background: #3ecf7a; padding: 3px 5px; border-radius: 999px; z-index: 2; font-style: normal; pointer-events: none; white-space: nowrap; }

.lobi-alt { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.lobi-alt button:not([hidden]) { flex: 1 1 0; padding: 10px 12px; font-size: 13px; }

/* İzleyici: el ve düğmeler gizli, altta bilgisayarın yerine oturma bandı */
#oyun.izleyici .istaka, #oyun.izleyici .dugmeler, #oyun.izleyici .sayilar, #oyun.izleyici .ipucu { visibility: hidden; }
.izle-bant { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: min(640px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(20,11,0,.92); box-shadow: inset 0 0 0 1px var(--ceviz), 0 16px 32px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.izle-bant .ib-sol { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.izle-bant .ib-sol b { font-size: 15px; color: var(--kehribar); }
.izle-bant .ib-sol span { font-size: 12px; color: var(--odun); }
.izle-bant .ib-ad { flex: 0 1 150px; padding: 10px 14px; border-radius: 999px; border: 0; background: var(--kakao); color: var(--krem); font: inherit; font-size: 15px; }
.izle-bant .ib-dugmeler { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.izle-bant .ib-dugmeler button { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; }

/* 3B ıstaka masadayken HTML ıstaka yalnız taşları taşır; tahta ve raflar 3B sahneden gelir */
#oyun.ist3b .istaka { background: none; box-shadow: none; }
#oyun.ist3b .istaka::before, #oyun.ist3b .istaka::after { display: none; }

/* Sol üst menü (yatay düzen): koyu panelde okunaklı liste — fotoğraf arka planın üstünde de okunur */
#oyun.yatay .ust { flex-direction: column; flex-wrap: nowrap; align-items: stretch; align-self: start; gap: 2px; margin: 10px 0 0 10px; padding: 10px 8px 8px;
  width: max-content; min-width: 150px; max-width: 210px; background: rgba(22, 13, 7, .78); border: 1px solid rgba(255, 228, 186, .14); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#oyun.yatay .ust .logo { width: auto; padding: 0 6px; font-size: 22px; line-height: 1; }
#oyun.yatay .ust .el-bilgi { width: auto; flex: 0 0 auto; padding: 4px 6px 8px; margin: 0 0 4px; color: var(--krem); font-size: 12px; line-height: 1.45; text-shadow: none;
  border-bottom: 1px solid rgba(255, 228, 186, .12); white-space: normal; }
#oyun.yatay .ust .ikon { justify-content: flex-start; width: 100%; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--krem);
  background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
#oyun.yatay .ust .ikon[hidden] { display: none; }
#oyun.yatay .ust .ikon span { display: inline; }
#oyun.yatay .ust .ikon svg { width: 18px; height: 18px; flex: 0 0 18px; }
#oyun.yatay .ust .ikon:hover { background: rgba(255, 228, 186, .10); }

/* Çetele: genel tasarımla aynı dil (koyu zemin, krem yazı, kehribar vurgu) */
.cetele { background: rgba(255, 228, 186, .04) !important; background-image: none !important; border: 1px solid rgba(255, 228, 186, .12); color: var(--krem); padding: 4px 12px 10px; box-shadow: none; }
.cetele::before, .cetele::after { display: none !important; }
.cetele th { color: var(--odun); font-size: 11px; font-weight: 600; letter-spacing: .02em; border-bottom: 1px solid rgba(255, 228, 186, .18); padding: 10px 6px 8px; }
.cetele th small { color: rgba(255, 228, 186, .45); }
.cetele td { color: var(--krem); border-bottom: 1px solid rgba(255, 228, 186, .06); background: none !important; }
.cetele td.c-no { color: rgba(255, 228, 186, .45); }
.cetele .c-puan { font-weight: 600; }
.cetele .c-ceza { background: rgba(179, 38, 30, .22); color: #f2a59c; font-weight: 600; }
.cetele .c-bitti { background: rgba(30, 123, 75, .25); color: #8fd4ad; font-weight: 600; }
.cetele .c-bos { color: rgba(255, 228, 186, .35); }
.cetele tr.c-simdi td { background: rgba(242, 193, 78, .07) !important; }
.cetele tr.c-toplam td { color: var(--krem); border-top: 1px solid rgba(255, 228, 186, .3); border-bottom: 0; }
.cetele tr.c-toplam td.onde { color: var(--kehribar); }

/* Ana fotoğraf kipi oyuncu adları */
.ana-isim { position: absolute; transform: translate(-50%, -50%); padding: 5px 12px 6px; border-radius: 999px; background: rgba(24, 13, 6, .82);
  border: 1px solid rgba(255, 228, 186, .22); color: var(--krem); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); overflow: visible; }
.ana-isim.sirada { border-color: rgba(255, 196, 99, .9); color: #ffc463; box-shadow: 0 0 14px rgba(255, 180, 66, .45); }
.ana-isim i { position: absolute; left: 0; bottom: -1px; height: 3px; border-radius: 3px; background: #ffc463; display: none; }
.ana-isim i.az { background: #ff7a59; }

/* Kısa yatay ekran (yatay telefon): menü yalnız simgeler, bilgi satırı gizli */
@media (max-height: 520px) {
  #oyun.yatay .ust { min-width: 0; width: auto; padding: 6px; margin: 6px 0 0 6px; gap: 0; }
  #oyun.yatay .ust .el-bilgi { display: none; }
  #oyun.yatay .ust .logo { font-size: 16px; padding: 2px 4px 6px; }
  #oyun.yatay .ust .ikon { padding: 6px; justify-content: center; }
  #oyun.yatay .ust .ikon span { display: none; }
}
/* Küçük ekranda oyuncu adı etiketleri küçük */
@media (max-width: 600px), (max-height: 520px) {
  .ana-isim { font-size: 11px; padding: 3px 9px 4px; }
}

/* Dar dikey ekran (telefon): ıstakadaki taşlarda rakam taşı doldursun, nokta küçülsün */
@media (max-width: 600px) {
  #oyun:not(.yatay) .tas { font-size: calc(var(--tw) * .82); letter-spacing: -1.5px; padding-top: calc(var(--tw) * .05); }
  #oyun:not(.yatay) .tas::after { width: 22%; bottom: 11%; }
  #oyun:not(.yatay) .istaka { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 600px) {
  #oyun:not(.yatay) .tas.iki { font-size: calc(var(--tw) * .7); letter-spacing: -2.2px; padding-top: calc(var(--tw) * .1); }
}

/* Sayılar ıstakanın hemen üstünde, okunaklı */
.sayilar .sayi-kutu { font-size: 13px; padding: 5px 12px; background: rgba(24, 13, 6, .88); color: #fbe9cf; box-shadow: inset 0 0 0 1px rgba(255, 214, 160, .35); }
.sayilar .sayi-kutu.yeter { background: var(--kehribar); color: var(--kehribar-koyu); box-shadow: none; }
#oyun.yatay .sayilar .sayi-kutu { font-size: 13px; }
.sayi-kutu.ceza-kutu { background: #b3261e !important; color: #fff !important; box-shadow: 0 0 0 2px rgba(255, 140, 120, .5) !important; font-weight: 800; }

/* Ceza rozetleri: isim etiketinde kırmızı, değişince vurgulu */
.ana-isim em { position: absolute; left: 50%; top: 100%; margin: 5px 0 0 -50px; width: 100px; box-sizing: border-box; white-space: nowrap; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; background: #b3261e; border-radius: 999px; padding: 2px 10px; text-align: center; box-shadow: 0 0 0 2px rgba(255, 150, 130, .45), 0 2px 8px rgba(0, 0, 0, .5); }
.ana-isim em.vur { animation: cezaVur 900ms var(--ease-yer); }
@keyframes cezaVur { 0% { transform: scale(1.8); background: #ff3b2f; } 60% { transform: scale(.95); } 100% { transform: scale(1); } }
.efekt-yazi.ceza b { color: #ff5a4a; font-size: 1.4em; text-shadow: 0 0 14px rgba(255, 60, 40, .7), 0 2px 4px #000; }

/* Istaka: fotoğrafın koyu zemininde belirgin, açık ceviz ve parlak kenar */
.istaka { background: repeating-linear-gradient(92deg, rgba(0, 0, 0, .06) 0 3px, rgba(255, 255, 255, .03) 3px 8px), linear-gradient(180deg, #a86c3c, #8e5530 40%, #6a3b1c);
  box-shadow: 0 0 0 1.5px rgba(255, 210, 150, .55), 0 9px 0 #3a200c, 0 16px 26px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .3); }
.istaka::before, .istaka::after { background: linear-gradient(180deg, #ecb47a, #a8693a 45%, #5e3517); }

/* Hareketsiz düğmesi kapalıyken soluk */
#temaBtn.kapali svg { opacity: .45; }

/* Sürüklerken işleme işareti */
.isle-isaret { position: absolute; transform: translate(-50%, -130%); padding: 6px 14px; border-radius: 999px; background: var(--kehribar); color: var(--kehribar-koyu); font-weight: 800; font-size: 14px; white-space: nowrap; pointer-events: none; z-index: 5;
  box-shadow: 0 0 0 3px rgba(255, 196, 99, .35), 0 4px 14px rgba(0, 0, 0, .5); animation: isleNabiz 900ms ease-in-out infinite alternate; }
.isle-isaret::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--kehribar); }
@keyframes isleNabiz { from { transform: translate(-50%, -130%) scale(1); } to { transform: translate(-50%, -138%) scale(1.06); } }
.tas.isleyecek { box-shadow: 0 0 0 3px var(--kehribar), 0 0 18px rgba(255, 196, 99, .8) !important; }

/* ================= Giriş, lobi, oturma: kahvehane fotoğrafıyla ================= */
#giris, #lobi { position: relative; isolation: isolate; background: var(--espresso); }
#giris::before, #lobi::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url(arka/kahvehane_ana.jpg) center 28% / cover no-repeat; }
#giris::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,8,3,.30) 0%, rgba(14,8,3,.62) 32%, rgba(14,8,3,.94) 62%, #0e0803 100%); }
#lobi::before { filter: blur(7px) brightness(.55) saturate(.9); transform: scale(1.06); }
#lobi::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(14,8,3,.25), rgba(14,8,3,.85)); }
.giris-sahne::before, .giris-sahne::after { display: none; }
#giris { padding: 0 0 40px; }
.giris-sahne { padding: max(56px, env(safe-area-inset-top)) 20px 26px; gap: 10px; }
.giris-sahne h1 { font-size: clamp(40px, 9vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: .95; text-shadow: 0 4px 24px rgba(0,0,0,.65); }
.giris-sahne .alt { font-size: 16px; max-width: 380px; color: #f0e1c8; }
.giris-sahne .ad-alan { max-width: 440px; }
.giris-izgara .kart, #lobi .kart { background: rgba(22,13,6,.80); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255,214,160,.14), 0 24px 48px rgba(0,0,0,.45); border-radius: 22px; }
.masa-satir { background: rgba(255,241,224,.05); box-shadow: inset 0 0 0 1px rgba(255,214,160,.12); }
.ayar-ozet { background: rgba(255,241,224,.06); }
.kodla input { background: rgba(10,6,2,.6); }
@media (min-width: 960px) {
  #giris { display: grid; grid-template-columns: minmax(0, 1fr) 450px; grid-template-areas: "sahne izgara" "alt izgara"; column-gap: 56px; align-content: center; align-items: center;
    max-width: 1280px; margin: 0 auto; padding: 48px 56px; min-height: 100vh; }
  #giris::after { background: linear-gradient(90deg, rgba(14,8,3,.94) 0%, rgba(14,8,3,.72) 38%, rgba(14,8,3,.38) 62%, rgba(14,8,3,.80) 100%); }
  .giris-sahne { grid-area: sahne; align-items: flex-start; text-align: left; padding: 0; align-self: end; }
  .giris-sahne .alt { font-size: 18px; max-width: 440px; }
  .giris-sahne .ad-alan { margin-top: 22px; }
  .giris-izgara { grid-area: izgara; grid-template-columns: 1fr !important; padding: 0; max-width: none; margin: 0; }
  .giris-izgara .yeni-masa { order: -1; }
  .giris-alt { grid-area: alt; align-items: flex-start; padding: 22px 0 0; align-self: start; }
  .giris-alt .kurulum { text-align: left; }
}

/* Lobi: masa kodu taş gibi, koltuklar oyundaki fotoğrafın üstünde */
#lobi { padding: max(28px, env(safe-area-inset-top)) 16px 40px; justify-content: center; min-height: 100vh; }
#lobi .kart { max-width: 720px; padding: 22px 22px 18px; }
.lobi-bas { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; }
.lobi-etiket { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--odun); }
.lobi-kod { display: flex; gap: 6px; margin: 0; }
.lobi-kod i { font-style: normal; width: 44px; height: 58px; display: grid; place-items: center; border-radius: 8px; font-size: 28px; font-weight: 800; color: #1a1008;
  background: linear-gradient(#fbf4e6, #e6d7bb); box-shadow: inset 0 -4px 0 #cdb894, 0 6px 14px rgba(0,0,0,.45); }
#lobiAyar { text-align: center; margin: 4px auto 12px; max-width: 560px; }
#paylas { display: block; margin: 0 auto; }
.koltuklar { position: relative; display: block; width: 100%; aspect-ratio: 1408 / 1056; margin: 16px 0 14px; border-radius: 16px; overflow: hidden;
  background: url(arka/kahvehane_ana.jpg) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,214,160,.18), 0 14px 30px rgba(0,0,0,.45); }
.koltuklar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,8,3,.05) 40%, rgba(14,8,3,.55)); pointer-events: none; }
.koltuklar .mini-masa { display: none; }
.koltuklar .koltuk { position: absolute; z-index: 1; transform: translate(-50%, -50%); width: 168px; max-width: 46%; flex-direction: row; text-align: left; gap: 8px;
  padding: 7px 10px 7px 7px; border-radius: 14px; background: rgba(18,10,4,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,214,160,.2), 0 8px 18px rgba(0,0,0,.45); flex-wrap: wrap; justify-content: flex-start; }
.koltuklar .koltuk[data-yer="n"] { left: 50%; top: 37%; }
.koltuklar .koltuk[data-yer="w"] { left: 17%; top: 60%; }
.koltuklar .koltuk[data-yer="e"] { left: 83%; top: 60%; }
.koltuklar .koltuk[data-yer="s"] { left: 50%; top: 86%; }
.koltuklar .koltuk .avatar { width: 38px; height: 38px; font-size: 17px; flex: 0 0 auto; }
.koltuklar .koltuk > div:not(.avatar):not(.eylem) { min-width: 0; flex: 1 1 auto; }
.koltuklar .koltuk .ad { font-size: 14px; }
.koltuklar .koltuk .eylem { flex: 1 1 100%; justify-content: stretch; }
.koltuklar .koltuk .eylem button { flex: 1 1 auto; padding: 7px 10px; }
.koltuklar .koltuk.ben { box-shadow: inset 0 0 0 1.5px var(--kehribar), 0 0 22px rgba(255,180,66,.3), 0 8px 18px rgba(0,0,0,.45); }
.koltuklar .koltuk.bos { background: rgba(18,10,4,.62); }
#lobiAdAlan { margin: 0 0 10px; }
#basla { display: block; width: 100%; padding: 15px; font-size: 17px; }
@media (max-width: 560px) {
  #lobi { padding-left: 10px; padding-right: 10px; }
  #lobi .kart { padding: 18px 12px 14px; }
  .lobi-kod i { width: 38px; height: 50px; font-size: 24px; }
  .koltuklar { aspect-ratio: 3 / 4; background-image: url(arka/kahvehane_dik.jpg); background-position: 50% 55%; background-size: cover; }
  .koltuklar .koltuk { width: 132px; max-width: 47%; padding: 5px 8px 5px 5px; gap: 6px; }
  .koltuklar .koltuk .avatar { width: 30px; height: 30px; font-size: 14px; }
  .koltuklar .koltuk .ad { font-size: 12px; }
  .koltuklar .koltuk .not { font-size: 10px; }
  .koltuklar .koltuk .eylem button { font-size: 11px; padding: 6px 8px; }
  .koltuklar .koltuk[data-yer="w"] { left: 25%; top: 58%; }
  .koltuklar .koltuk[data-yer="e"] { left: 75%; top: 58%; }
  .koltuklar .koltuk[data-yer="n"] { top: 34%; }
  .koltuklar .koltuk[data-yer="s"] { top: 88%; }
}

/* Açılış düğmeleri: ıstakanın hemen üstünde */
.acilis-dugme { display: inline-flex; gap: 6px; }
.acilis-dugme button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; font-size: 14px; font-weight: 700; animation: yukari 260ms var(--ease-yer); }
.acilis-dugme #bitirBtn:not(.ana) { background: rgba(24,13,6,.9); box-shadow: inset 0 0 0 1.5px var(--kehribar); color: var(--kehribar); }
.acilis-dugme .tehlike { background: var(--kirmizi); color: #fff; box-shadow: inset 0 0 0 1.5px #f07a62, inset 0 -2px 0 #8f2a17; }

/* Bağlantı koptu şeridi */
.kopuk-uyari { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; padding: 10px 18px 10px 38px; border-radius: 999px; background: #7a1f16; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px #f07a62, 0 10px 24px rgba(0,0,0,.55); }
.kopuk-uyari::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: don 800ms linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kopuk-uyari::before { animation: none; } }

/* Marka: 101 Okey Kahve */
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-ext-700-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.giris-logo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,241,224,.12); animation: yukari 520ms var(--ease-yer) 200ms backwards; }
.giris-sahne h1 { font-size: clamp(36px, 8.4vw, 68px); }
.giris-sahne h1 span { color: var(--kehribar); }
.giris-sahne .slogan { margin: -2px 0 2px; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(20px, 4.4vw, 28px); color: var(--kehribar); text-shadow: 0 2px 10px rgba(0,0,0,.6); animation: yukari 520ms var(--ease-yer) 460ms backwards; }

/* Telefon uygulamasında radyo yok */
.uyg .radyo-liste, .uyg .ses-baslik, .uyg #radyoKapat, .uyg .ortam-satir:has(#radyoSeviye), .uyg #kurulumIpucu, .uyg #tamEkranBtn { display: none !important; }

/* Oyuncu seçenekleri (sessize al, şikâyet) ve yasal satır */
.oyuncu-menu { display: grid; gap: 8px; margin-top: 6px; }
.oyuncu-menu button { width: 100%; min-height: 46px; }
.oyuncu-liste { display: grid; gap: 6px; }
.oyuncu-liste button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 14px; text-align: left; }
.oyuncu-liste button span { font-size: 12px; opacity: .7; font-weight: 500; }
.giris-alt .yasal { text-align: center; margin: 0; font-size: 12px; max-width: 460px; }
.giris-alt .yasal a { color: inherit; text-decoration: underline; }

/* İnternetsiz oyun düğmesi; internetsiz oyunda paylaşım ve mesaj düğmeleri gizli */
.yerel-dugme { width: 100%; margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 48px; }
.yerel-dugme span { font-size: 12px; font-weight: 500; opacity: .7; }
.yerel #sozBtn, .yerel #paylas { display: none !important; }
@media (min-width: 960px) { .giris-alt .yasal { text-align: left; } }

/* ==========================================================================
   v3 düzen (24.11): giriş ve lobi kâğıt pano + fotoğraf; kural penceresi iki sütun;
   oyun ekranı küçük pencerelerde (FHD ve altı, yatay telefon) masayı örtmez.
   ========================================================================== */

/* ---------- Kâğıt renkleri: giriş, lobi ve bu ekranlarda açılan pencereler ---------- */
#giris, #lobi, body[data-ekran="giris"] .perde, body[data-ekran="lobi"] .perde {
  --espresso: #f4ecdb; --kakao: #fffaf0; --yuzey: #f4ecdb; --yuzey2: #e7dcc4; --krem: #23160c; --odun: #6d5d4b;
  --ceviz: #d5c6a8; --sedir: #b7a583; --kehribar: #0f5c3a; --kehribar2: #0a4229; --kehribar-koyu: #fff8ea;
  --murekkep: #23160c; --kagit: #f4ecdb; --tas-kirmizi: #c0281d;
  color: var(--krem);
}
#giris button, #lobi button, body[data-ekran="giris"] .perde button, body[data-ekran="lobi"] .perde button { border-radius: 6px; }
#giris button.ana, #lobi button.ana, body[data-ekran="giris"] .perde button.ana, body[data-ekran="lobi"] .perde button.ana { box-shadow: inset 0 -3px 0 var(--kehribar2); }
#giris button.ikincil, #lobi button.ikincil, body[data-ekran="giris"] .perde button.ikincil, body[data-ekran="lobi"] .perde button.ikincil { box-shadow: inset 0 0 0 1.5px var(--sedir); }
@media (hover: hover) and (pointer: fine) {
  #giris button.ana:hover:not(:disabled), #lobi button.ana:hover:not(:disabled), body[data-ekran="giris"] .perde button.ana:hover:not(:disabled), body[data-ekran="lobi"] .perde button.ana:hover:not(:disabled) { background: #137349; }
  #giris button.ikincil:hover:not(:disabled), #lobi button.ikincil:hover:not(:disabled) { background: rgba(35, 22, 12, .06); }
}
body[data-ekran="giris"] .perde .kart, body[data-ekran="lobi"] .perde .kart { background: var(--kagit); border-radius: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-ekran="giris"] .perde, body[data-ekran="lobi"] .perde { background: rgba(12, 7, 2, .66); }
body[data-ekran="giris"] .perde h1, body[data-ekran="lobi"] .perde h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; letter-spacing: -.3px; }
body[data-ekran="giris"] .secim button.secili, body[data-ekran="lobi"] .secim button.secili { background: var(--murekkep); color: var(--kagit); box-shadow: none; }
body[data-ekran="giris"] .secim button, body[data-ekran="lobi"] .secim button { box-shadow: inset 0 0 0 1px var(--sedir); }
body[data-ekran="giris"] .ceza-grup, body[data-ekran="lobi"] .ceza-grup { background: rgba(192, 40, 29, .07); box-shadow: inset 3px 0 0 var(--tas-kirmizi); border-radius: 0 6px 6px 0; }
body[data-ekran="giris"] .ceza-grup .grup-baslik, body[data-ekran="lobi"] .ceza-grup .grup-baslik { color: var(--tas-kirmizi); }

/* ---------- Giriş: solda kâğıt pano, sağda kahvehane fotoğrafı ---------- */
#giris { --kagit-g: clamp(330px, 31vw, 480px); display: block; padding: 0; margin: 0; max-width: none; min-height: 100%; background: #120a04; animation: none; grid-template-areas: none; column-gap: 0; align-content: stretch; align-items: stretch; }
#giris::before, #giris::after { display: none; }
.kapi-foto { background: #120a04 url(arka/kahvehane_ana.jpg) center 22% / cover no-repeat; }
.kagit { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); background-color: var(--kagit);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.marka { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 3px double var(--sedir); }
.marka-simge { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; box-shadow: 0 4px 10px rgba(35, 22, 12, .28); }
.marka h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: clamp(28px, 2.5vw + 12px, 40px); line-height: 1; letter-spacing: -.5px; color: var(--murekkep); white-space: nowrap; }
.marka h1 span { color: var(--tas-kirmizi); }
.marka .slogan { margin: 5px 0 0; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; font-size: 17px; color: var(--kehribar); }
#giris .alan { margin: 0; }
#giris .alan span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--odun); }
#giris .alan input, #giris .kodla input, #lobi .alan input { border-radius: 6px; background: var(--kakao); color: var(--murekkep); box-shadow: inset 0 0 0 1.5px var(--sedir); padding: 13px 14px; font-size: 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
#giris .alan input:focus, #giris .kodla input:focus, #lobi .alan input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--kehribar), 0 0 0 3px rgba(15, 92, 58, .16); }
#giris input::placeholder, #lobi input::placeholder { color: #9a8b74; }
.eylemler { display: grid; gap: 8px; }
.eylemler button { width: 100%; margin: 0; min-height: 58px; padding: 9px 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; }
.eylemler button b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.eylemler button span { font-size: 12.5px; font-weight: 400; line-height: 1.3; opacity: .82; }
#giris .eylemler #masaAc { padding: 9px 16px; font-size: inherit; margin: 0; }
.masalar { display: flex; flex-direction: column; min-height: 0; }
#giris .kart-bas { margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--ceviz); }
#giris .kart-bas h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--murekkep); }
#giris .canli.var { color: #0f6b40; } #giris .canli.var::before { background: #17995c; }
#giris .masa-listesi { min-height: 0; gap: 0; }
#giris .masa-satir { border-radius: 0; background: none; box-shadow: none; padding: 9px 0; border-bottom: 1px solid var(--ceviz); gap: 10px; }
#giris .masa-satir:hover { transform: none; box-shadow: none; background: rgba(35, 22, 12, .04); }
#giris .ms-kod { width: 50px; height: 44px; border-radius: 5px; font-size: 12px; box-shadow: inset 0 0 0 2px #6b3d1c; }
#giris .ms-durum.lobi { color: #0f6b40 !important; } #giris .ms-durum.oyun { color: #9a5a00 !important; }
#giris .ms-koltuk i.k-insan { background: var(--tas-kirmizi); }
#giris .liste-bos { align-items: flex-start; text-align: left; padding: 10px 0 12px; border: 0; border-radius: 0; gap: 2px; }
#giris .liste-bos b { color: var(--murekkep); }
#giris .masalar .kodla { margin-top: 10px; }
#giris .kodla input { letter-spacing: .2em; }
#giris .kodla input::placeholder { letter-spacing: 0; text-transform: none; }
#giris .kodla button { background: var(--murekkep); color: var(--kagit); font-weight: 600; padding: 10px 16px; }
.kagit-alt { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ceviz); display: grid; gap: 8px; justify-items: start; }
.kagit-alt p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--odun); }
.kagit-alt p:empty { display: none; }
.kagit-alt a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
button.baglanti { background: none; padding: 4px 0; border-radius: 0 !important; color: var(--kehribar); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.kagit > * { animation: yukari 420ms var(--ease-yer) backwards; }
.kagit > :nth-child(2) { animation-delay: 50ms; } .kagit > :nth-child(3) { animation-delay: 100ms; } .kagit > :nth-child(4) { animation-delay: 150ms; } .kagit > :nth-child(5) { animation-delay: 200ms; }

/* Dar ekran (dik telefon): fotoğraf üstte, kâğıt altında */
.kapi-foto { height: min(75vw, 34vh); height: min(75vw, 34svh); }
.kagit { margin-top: -14px; border-radius: 12px 12px 0 0; min-height: calc(66vh + 14px); min-height: calc(66svh + 14px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); }
@media (max-height: 700px) and (max-width: 639px) { .kagit { gap: 14px; padding-top: 20px; } .marka { padding-bottom: 12px; } .marka-simge { width: 44px; height: 44px; } }

/* Geniş ekran ve yatay telefon: yan yana */
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  #giris { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-columns: var(--kagit-g) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 0; }
  .kagit { grid-column: 1; grid-row: 1; margin: 0; border-radius: 0; min-height: 0; height: 100%; overflow-y: auto; padding: clamp(18px, 3.4vh, 34px) clamp(18px, 2vw, 30px) 20px; gap: clamp(12px, 2.2vh, 22px); box-shadow: 10px 0 40px rgba(0, 0, 0, .5); z-index: 1; scrollbar-width: thin; scrollbar-color: var(--sedir) transparent; }
  .kapi-foto { grid-column: 2; grid-row: 1; height: 100%; animation: sol 700ms var(--ease) both; }
  .masalar { flex: 0 1 auto; }
  #giris .masa-listesi { overflow-y: auto; max-height: 34vh; scrollbar-width: thin; scrollbar-color: var(--sedir) transparent; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #giris { --kagit-g: clamp(300px, 44vw, 400px); }
  .marka-simge { width: 40px; height: 40px; border-radius: 9px; } .marka { padding-bottom: 10px; gap: 10px; } .marka h1 { font-size: 26px; } .marka .slogan { font-size: 14px; margin-top: 2px; }
  .eylemler button { min-height: 50px; }
}

/* ---------- Lobi: aynı kâğıt; geniş ekranda koltuklar sağdaki fotoğrafın üstünde ---------- */
#lobi { background: #120a04; }
#lobi::before, #lobi::after { display: none; }
#lobi .kart { background: var(--kagit); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); border: 0; }
#lobi .lobi-kod i { border-radius: 6px; box-shadow: inset 0 -4px 0 #cdb894, inset 0 0 0 1px #cdb894, 0 4px 8px rgba(35, 22, 12, .25); color: var(--tas-kirmizi); background: linear-gradient(#fffdf6, #f1e6cc); }
#lobi .koltuklar { border-radius: 8px; }
/* Fotoğraf üstündeki koltuk kartları koyu kalır */
#lobi .koltuklar { --espresso: #140b00; --kakao: #0b0600; --yuzey: #1d130a; --yuzey2: #261a0f; --krem: #fff1e0; --odun: #a89a8a; --ceviz: #43392d; --sedir: #4f4538; --kehribar: #ffb442; --kehribar2: #e8962a; --kehribar-koyu: #2a1600; color: var(--krem); }
#lobi .koltuklar button.ikincil { box-shadow: inset 0 0 0 1.5px rgba(255, 241, 224, .3); }
#lobi .koltuklar .koltuk { border-radius: 8px; }
#lobi .lobi-alt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#lobi .lobi-alt button { flex: 1 1 auto; }
@media (min-width: 900px) {
  #lobi { --kagit-g: clamp(330px, 31vw, 480px); display: block; padding: 0; height: 100%; min-height: 0; overflow: hidden; }
  #lobi .kart { position: fixed; left: 0; top: 0; bottom: 0; width: var(--kagit-g); max-width: none; border-radius: 0; margin: 0; overflow-y: auto; animation: none; display: flex; flex-direction: column; padding: clamp(20px, 4vh, 40px) clamp(18px, 2vw, 30px) 20px; box-shadow: 10px 0 40px rgba(0, 0, 0, .5); z-index: 1; }
  #lobi .lobi-bas { align-items: flex-start; }
  #lobi #lobiAyar { text-align: left; margin: 8px 0 14px; }
  #lobi #paylas { margin: 0 0 16px; width: 100%; }
  #lobi #basla { margin-top: 4px; }
  #lobi .koltuklar { position: fixed; margin: 0; border-radius: 0; box-shadow: none; top: 50%; left: calc(var(--kagit-g) + (100vw - var(--kagit-g)) / 2); transform: translate(-50%, -50%);
    width: min(100vw - var(--kagit-g), 100vh * 1408 / 1056); aspect-ratio: 1408 / 1056; }
  #lobi .koltuklar .koltuk { width: 200px; }
}

/* ---------- Masa kuralları penceresi: geniş ekranda iki sütun, düğmeler hep görünür ---------- */
.perde .kart.masa-kurallari { display: flex; flex-direction: column; overflow: hidden; max-width: 520px; padding: 20px 22px 16px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.masa-kurallari > h1 { margin: 0 0 4px; font-size: 24px; }
.masa-kurallari > .alt { margin: 0 0 12px; font-size: 13px; }
.masa-kurallari .ayarlar { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding-right: 4px; display: block; scrollbar-width: thin; }
.masa-kurallari .ayarlar > * { margin: 0 0 12px; break-inside: avoid; }
.masa-kurallari .secim { display: flex; flex-wrap: wrap; padding-left: 100px; position: relative; min-height: 34px; }
.masa-kurallari .secim > span { position: absolute; left: 0; top: 0; width: 96px; padding-top: 10px; }
.masa-kurallari .secim button { padding: 7px 11px; font-size: 14px; min-height: 34px; }
.masa-kurallari .secim .aciklama { margin: 0; }
.masa-kurallari .kutu { font-size: 14px; }
.masa-kurallari .ceza-grup { padding: 10px 12px 2px; margin: 4px 0 12px; }
.masa-kurallari .ceza-grup .kutu { margin-bottom: 8px; align-items: flex-start; }
.masa-kurallari .ceza-grup .kutu input { margin-top: 2px; }
.masa-kurallari .butonsira { flex: 0 0 auto; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ceviz); }
.masa-kurallari .butonsira button { min-height: 46px; }
.masa-kurallari .butonsira .ana { flex: 2; font-size: 16px; }
@media (min-width: 860px) {
  .perde .kart.masa-kurallari { max-width: 900px; }
  .masa-kurallari .ayarlar { columns: 2; column-gap: 36px; column-rule: 1px solid var(--ceviz); overflow-y: auto; }
  .masa-kurallari .ayarlar > .secim[data-ayar="sure"] { break-after: column; }
}
@media (max-width: 480px) {
  .perde .kart.masa-kurallari { padding: 16px 14px 12px; }
  .masa-kurallari .secim { padding-left: 0; }
  .masa-kurallari .secim > span { position: static; width: 100%; padding-top: 0; }
}

/* ---------- Oyun ekranı, yatay: ıstaka masayı örtmez ---------- */
/* Süre çubuğu çuhanın üstünden değil, ıstakanın hemen üstünden geçer */
#oyun.yatay .sure-cubuk { grid-area: istaka; align-self: start; justify-self: center; width: calc(var(--tw) * 15 + 12px); margin: -9px 0 0; height: 4px; }
/* Kısa pencere (FHD tarayıcı penceresi ve altı): sayılar sol alta iner, menü yatay şerit olur */
#oyun.yatay.kisa { grid-template-areas: "ust masa dug" "bilgi masa dug" "bilgi istaka dug" "bilgi istaka dug"; }
#oyun.yatay.kisa .sayilar { grid-area: bilgi; align-self: end; justify-self: start; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0 0 0 8px; padding-bottom: var(--durum-y, 44px); }
#oyun.yatay.kisa .bilgi { z-index: 3; }
#oyun.yatay.kisa .sayilar .sayi-kutu { font-size: 12px; padding: 4px 10px; }
#oyun.yatay.kisa .acilis-dugme { flex-direction: column; align-items: stretch; }
#oyun.yatay.kisa .ust { flex-direction: row; flex-wrap: wrap; align-items: center; width: max-content; max-width: calc(var(--yan) + 150px); min-width: 0; gap: 2px; padding: 5px 6px; margin: 8px 0 0 8px; }
#oyun.yatay.kisa .ust .logo { font-size: 17px; padding: 0 6px 0 4px; }
#oyun.yatay.kisa .ust .el-bilgi { order: 9; flex: 1 1 100%; width: auto; max-width: 250px; border: 0; margin: 0; padding: 3px 4px 2px; font-size: 11px; line-height: 1.35; }
#oyun.yatay.kisa .ust .ikon { width: auto; padding: 7px; gap: 0; }
#oyun.yatay.kisa .ust .ikon span { display: none; }
#oyun.yatay.kisa .dugmeler { padding: 6px 8px 6px 0; }
#oyun.yatay.kisa .butonlar button { padding: 9px 6px; }
@media (max-height: 520px) {
  #oyun.yatay.kisa .ust { max-width: none; flex-wrap: nowrap; }
  #oyun.yatay.kisa .ust .el-bilgi { display: none; }
  #oyun.yatay.kisa .butonlar button { padding: 7px 6px; font-size: 12px; }
  #oyun.yatay.kisa .dugmeler, #oyun.yatay.kisa .butonlar { gap: 4px; }
  #oyun.yatay.kisa .durum-yazi { font-size: 11px; }
}

/* Kâğıt temada resimli kurallar ve kısa pencerede giriş panosu */
body[data-ekran="giris"] .kural p, body[data-ekran="lobi"] .kural p { color: #4a3a2a; }
body[data-ekran="giris"] .kural, body[data-ekran="lobi"] .kural { border-radius: 8px; }
body[data-ekran="giris"] .kural .ornek .etk.iyi, body[data-ekran="giris"] .kural .ornek .etk.kotu, body[data-ekran="lobi"] .kural .ornek .etk.iyi, body[data-ekran="lobi"] .kural .ornek .etk.kotu { color: #fff; }
body[data-ekran="giris"] .kural .ornek .grup, body[data-ekran="lobi"] .kural .ornek .grup { background: rgba(35, 22, 12, .07); }
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .masalar { flex: 0 0 auto; }
  #giris .masa-listesi { max-height: max(66px, 30vh); }
}
@media (max-height: 760px) and (min-width: 640px) { .kagit-alt .kurulum { display: none; } .kagit-alt { padding-top: 10px; gap: 6px; } }

/* --- v3.1: sayaçlar ıstakanın ön yüzünde, sol menü gizlenir --- */
.istaka { padding-bottom: calc(var(--tw) * .42 + 12px); }
.istaka-serit { position: absolute; z-index: 3; left: 6px; right: 6px; bottom: 3px; display: flex; justify-content: center; gap: 5px; white-space: nowrap; overflow: hidden; pointer-events: none; }
.istaka-serit .sayi-kutu { font-size: 11px; line-height: 1; font-weight: 600; padding: 4px 9px; border-radius: 4px; background: rgba(24, 13, 6, .82); color: #fbe9cf; box-shadow: inset 0 0 0 1px rgba(255, 214, 160, .28); backdrop-filter: none; }
.istaka-serit .sayi-kutu.yeter { background: var(--kehribar); color: var(--kehribar-koyu); box-shadow: none; }
.istaka-serit .ceza-kutu { background: rgba(24, 13, 6, .82) !important; color: #fbe9cf !important; box-shadow: inset 0 0 0 1px rgba(255, 214, 160, .28) !important; font-weight: 600; }
.istaka-serit .ceza-kutu.var { background: #b3261e !important; color: #fff !important; box-shadow: none !important; font-weight: 800; }
.istaka-serit .toplam-kutu { background: #fbe9cf; color: #2a1608; box-shadow: none; font-weight: 800; }
@media (max-width: 520px) { .istaka { padding-bottom: calc(var(--tw) * .42 + 15px); } .istaka-serit { gap: 3px; left: 2px; right: 2px; bottom: 2px; } .istaka-serit .sayi-kutu { font-size: 10px; padding: 4px 5px; } }
/* Açılış düğmeleri ıstakanın hemen üstünde, ortada */
#oyun.yatay.kisa .sayilar { grid-area: istaka; align-self: start; justify-self: center; flex-direction: row; align-items: center; margin: 0; padding: 0; transform: translateY(calc(-100% - 8px)); z-index: 4; }
#oyun.yatay.kisa .acilis-dugme { flex-direction: row; }
/* Sol menü gizle/aç */
.sol-gizle { display: none !important; }
#oyun.yatay .sol-gizle { display: inline-flex !important; width: auto !important; flex: 0 0 auto; padding: 5px !important; justify-content: center !important; }
#oyun.yatay .sol-gizle svg { transition: transform 200ms var(--ease-yer); }
#oyun.yatay:not(.kisa) .ust .logo { display: flex; align-items: center; }
#oyun.yatay:not(.kisa) .sol-gizle { position: absolute; top: 8px; right: 8px; }
#oyun.yatay.sol-kapali .ust { flex-direction: row; flex-wrap: nowrap; align-items: center; width: max-content; min-width: 0; max-width: none; gap: 2px; padding: 5px 6px; justify-self: start; }
#oyun.yatay.sol-kapali .ust .logo { font-size: 17px; padding: 0 4px; }
#oyun.yatay.sol-kapali .sol-gizle { position: static; }
#oyun.yatay.sol-kapali .sol-gizle svg { transform: rotate(180deg); }
#oyun.yatay.sol-kapali .ust .ikon:not(.sol-gizle), #oyun.yatay.sol-kapali .ust .el-bilgi, #oyun.yatay.sol-kapali .ipucu, #oyun.yatay.sol-kapali .olay-serit { display: none !important; }
