* { box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #1b120c; overflow: hidden; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: #fff; touch-action: none; }
#sahne { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; }
button { font-family: inherit; cursor: pointer; }
.gizli { display: none !important; }

/* ------------------------------------------------ oda + masa */
#oda { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #4a3324 0%, #24170f 70%, #160e09 100%); }
#kenar { position: absolute; inset: 0; clip-path: polygon(204px 22px, 1396px 22px, 1620px 910px, -20px 910px);
  background: repeating-linear-gradient(90deg, #6b3f22 0 7px, #74472a 7px 11px, #633a1f 11px 19px); filter: saturate(1.1);
  box-shadow: inset 0 0 40px #0008; }
#cuha { position: absolute; inset: 0; clip-path: polygon(250px 62px, 1350px 62px, 1560px 900px, 40px 900px);
  background: radial-gradient(ellipse at 50% 40%, #179bb0 0%, #0e7d93 55%, #0a6478 100%); }
#cuha::after { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle at 10px 10px, #fff 1.4px, transparent 1.6px); background-size: 26px 26px; }
#filigran { position: absolute; left: 0; right: 0; top: 190px; text-align: center; font: 900 150px/0.92 Georgia, serif; color: #0000; -webkit-text-stroke: 3px #ffffff12; letter-spacing: 6px; }
#filigran small { display: block; font-size: 30px; letter-spacing: 8px; margin-top: 22px; -webkit-text-stroke: 1px #ffffff18; }

/* ------------------------------------------------ taş */
.tas { position: relative; width: 70px; height: 98px; border-radius: 9px; background: linear-gradient(#fffefa, #ece7da);
  box-shadow: 0 4px 0 #bdb29b, 0 6px 10px #0006; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 800 46px/1 "Segoe UI", system-ui, sans-serif; transition: transform .12s, box-shadow .12s; }
.tas .k { font-size: 23px; line-height: 1; margin-top: 4px; }
.tas.kirmizi { color: #dc2430; } .tas.sari { color: #e89400; } .tas.mavi { color: #1a70d6; } .tas.siyah { color: #1a1a1e; }
.tas.sahte { color: #0f7a4b; font-size: 40px; }
.tas.sahte small { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.tas.joker { box-shadow: 0 0 0 3px #ffc94d inset, 0 4px 0 #bdb29b, 0 6px 10px #0006; }
.tas.joker::after { content: "OKEY"; position: absolute; bottom: 4px; font-size: 10px; font-weight: 900; color: #7a5300; background: #ffc94d; border-radius: 4px; padding: 0 4px; }
.tas.arka { background: linear-gradient(#2f8a63, #1d6247); box-shadow: 0 4px 0 #143f2e, 0 6px 10px #0006; }
.tas.arka::before { content: "S"; font: 700 26px Georgia, serif; color: #f0d79a; border: 2px solid #e2c47e; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.tas.kucuk { width: 34px; height: 48px; font-size: 23px; border-radius: 5px; box-shadow: 0 2px 0 #bdb29b, 0 3px 5px #0005; }
.tas.kucuk .k { font-size: 12px; margin-top: 1px; }
.tas.kucuk.joker::after { font-size: 6px; bottom: 2px; padding: 0 2px; }
.tas.kucuk.sahte small { font-size: 6px; }
.tas.orta { width: 54px; height: 76px; font-size: 36px; border-radius: 7px; }
.tas.orta .k { font-size: 18px; }

/* ------------------------------------------------ ıstaka */
#istaka { position: absolute; left: 286px; top: 590px; width: 1198px; height: 312px; border-radius: 14px;
  background: linear-gradient(#7a4723, #4f2c14); box-shadow: 0 -6px 20px #0006; padding: 12px 14px; }
#raf { position: relative; width: 100%; height: 100%; border-radius: 9px;
  background: linear-gradient(#a8693a 0 49%, #6e3f1d 49% 51%, #a8693a 51% 100%); box-shadow: inset 0 2px 10px #0007; }
.yuva { position: absolute; width: 76px; height: 136px; }
.yuva .tas { position: absolute; left: 3px; top: 8px; cursor: grab; }
.yuva .tas.yeni { box-shadow: 0 0 0 3px #2ee5a0, 0 4px 0 #bdb29b, 0 6px 10px #0006; }
.yuva .tas.yandan { box-shadow: 0 0 0 3px #ffa14a, 0 4px 0 #bdb29b, 0 6px 10px #0006; }
.yuva .tas.secili { transform: translateY(-14px); box-shadow: 0 0 0 3px #fff, 0 4px 0 #bdb29b, 0 14px 18px #0007; }
.yuva .tas.perli::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: -14px; height: 6px; border-radius: 3px; background: #3cd25a; }
.yuva.hedef::after { content: ""; position: absolute; inset: 6px 2px; border: 3px dashed #fff8; border-radius: 10px; }
.tas.alev { animation: alev 0.55s infinite alternate; }
@keyframes alev {
  0% { box-shadow: 0 0 0 3px #ff7a18, 0 -6px 16px 4px #ff5a0099, 0 -14px 26px 6px #ffb02e66, 0 4px 0 #bdb29b; }
  100% { box-shadow: 0 0 0 3px #ffb02e, 0 -10px 22px 6px #ff3d00aa, 0 -22px 30px 10px #ffd04a55, 0 4px 0 #bdb29b; } }
.yuva .tas.alev::after { content: ""; position: absolute; left: -4px; right: -4px; top: -26px; height: 30px; pointer-events: none;
  background: radial-gradient(ellipse at 20% 100%, #ffd34a 0 18%, transparent 40%), radial-gradient(ellipse at 55% 100%, #ff8a1e 0 22%, transparent 48%), radial-gradient(ellipse at 85% 100%, #ffcf3a 0 16%, transparent 40%);
  filter: blur(1px); animation: dil .35s infinite alternate; transform-origin: bottom; }
@keyframes dil { from { transform: scaleY(.75) skewX(-4deg); opacity: .8; } to { transform: scaleY(1.15) skewX(5deg); opacity: 1; } }
.surukleniyor { position: absolute; z-index: 50; pointer-events: none; transform: rotate(-4deg) scale(1.08); box-shadow: 0 18px 28px #000a !important; }

#sayaclar { position: absolute; left: 310px; top: 506px; display: flex; flex-direction: column; gap: 6px; }
#sayaclar div { display: flex; align-items: center; gap: 8px; }
#sayaclar b { display: inline-block; min-width: 92px; text-align: center; background: #0f2b40; border: 2px solid #6fa8c8; border-radius: 6px; font-size: 20px; padding: 2px 8px; }
#sayaclar span { font-size: 13px; color: #cfe7ee; font-weight: 700; }
#sayaclar.yetti b { border-color: #ffb02e; box-shadow: 0 0 12px #ff7a18; }

#dugmeler { position: absolute; left: 1496px; top: 596px; display: flex; flex-direction: column; gap: 10px; }
.buyuk { width: 96px; height: 142px; border-radius: 12px; border: 0; background: linear-gradient(#ffd98a, #e8a63c); color: #6b3a00;
  font: 800 19px/1.1 "Segoe UI", sans-serif; box-shadow: 0 5px 0 #a8661a, 0 8px 14px #0007; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.buyuk i { font: 900 26px Georgia, serif; color: #c0202b; font-style: normal; background: #fff8ec; border-radius: 6px; padding: 4px 6px; letter-spacing: 2px; }
.buyuk:active { transform: translateY(3px); box-shadow: 0 2px 0 #a8661a; }

#eylemler { position: absolute; left: 1060px; top: 514px; display: flex; gap: 10px; }
#eylemler button { height: 52px; padding: 0 22px; border-radius: 26px; border: 0; font: 800 20px "Segoe UI", sans-serif; color: #fff; box-shadow: 0 4px 0 #0006; }
.ates { background: linear-gradient(#ff9a2e, #e2420c); animation: atesbuton .6s infinite alternate; }
@keyframes atesbuton { from { box-shadow: 0 0 12px 2px #ff7a18, 0 4px 0 #8a2a06; } to { box-shadow: 0 0 26px 8px #ffb02e, 0 4px 0 #8a2a06; } }
.btn-kirmizi { background: linear-gradient(#ff6b7a, #c42438); }

/* ------------------------------------------------ deste, gösterge, yanlar */
#deste { position: absolute; left: 1358px; top: 470px; width: 80px; height: 112px; cursor: pointer; }
#deste .tas { position: absolute; width: 60px; height: 84px; }
#deste .tas:nth-child(1) { left: 6px; top: 6px; } #deste .tas:nth-child(2) { left: 3px; top: 3px; } #deste .tas:nth-child(3) { left: 0; top: 0; }
#deste b { position: absolute; left: 0; top: 34px; width: 60px; text-align: center; font-size: 18px; color: #f0d79a; z-index: 2; margin-top: 30px; }
#deste span { position: absolute; left: -10px; top: 94px; width: 84px; text-align: center; font-size: 12px; font-weight: 800; color: #e8fbff; text-shadow: 0 1px 2px #000; }
#deste.aktif .tas:nth-child(3) { box-shadow: 0 0 0 3px #2ee5a0, 0 0 22px #2ee5a0, 0 4px 0 #143f2e; }
#ust-sag { position: absolute; right: 20px; top: 12px; display: flex; gap: 14px; align-items: flex-start; }
#bilgi { text-align: right; font-weight: 700; font-size: 17px; line-height: 1.5; }
#bilgi .pot { color: #ffc94d; }
.ufak-tas-kutu { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: #e8dccb; gap: 6px; }
#ust-sol { position: absolute; left: 20px; top: 16px; width: 420px; font-size: 15px; line-height: 1.55; color: #e6d9c9; }
#ust-sol div:last-child { color: #fff; font-weight: 800; font-size: 17px; }
#esik { position: absolute; left: 820px; top: 140px; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 800; color: #ffc94d; }
#esik b { background: #0f2b40; border: 2px solid #6fa8c8; border-radius: 6px; padding: 2px 10px; color: #fff; font-size: 15px; }

.yan { position: absolute; width: 74px; height: 120px; }
.yan .yer { position: absolute; left: 0; top: 0; width: 64px; height: 90px; border: 2px dashed #9fe3ee66; border-radius: 9px; }
.yan .tas { position: absolute; width: 62px; height: 88px; font-size: 40px; }
.yan .tas .k { font-size: 20px; }
.yan .alt { position: absolute; top: 98px; left: -20px; width: 104px; text-align: center; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.yan.alinabilir .tas:last-of-type { cursor: pointer; animation: parla .7s infinite alternate; }
@keyframes parla { from { box-shadow: 0 0 0 3px #ffa14a, 0 0 10px #ffa14a, 0 4px 0 #bdb29b; } to { box-shadow: 0 0 0 4px #ffd08a, 0 0 26px #ffa14a, 0 4px 0 #bdb29b; } }
.yan.at-hedef .yer { border-color: #2ee5a0; background: #2ee5a022; }
.yan.at-hedef.ustunde .yer { background: #2ee5a055; }

/* ------------------------------------------------ oyuncular */
.oyuncu { position: absolute; width: 0; height: 0; }
.avatar { position: absolute; border-radius: 50%; overflow: hidden; background: #2b4b5a; border: 4px solid #3bc4d0; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #10202a; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.halka { position: absolute; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--renk, #2ee5a0) calc(var(--p, 1) * 360deg), #0000 0); -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 10px), #000 calc(100% - 9px)); mask: radial-gradient(farthest-side, #0000 calc(100% - 10px), #000 calc(100% - 9px)); }
.sure { position: absolute; display: flex; align-items: center; justify-content: center; font: 900 50px "Segoe UI", sans-serif; color: var(--renk, #2ee5a0);
  text-shadow: 0 0 6px #000, 0 2px 0 #000; background: #06121890; border-radius: 50%; }
.sirada .avatar { box-shadow: 0 0 26px 8px #ffc94d99; }
.isimlik { position: absolute; width: 220px; background: #182c42e8; border: 2px solid #7896b4a0; border-radius: 10px; padding: 6px 8px; text-align: center; }
.isimlik .ad { font-weight: 800; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isimlik .para { font-weight: 800; font-size: 18px; color: #ffd65a; }
.isimlik .para::before { content: "S"; display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #ffc428; color: #965a00; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; border: 2px solid #be780a; vertical-align: 2px; }
.isimlik .alt { font-size: 15px; font-weight: 700; color: #dfe6ef; }
.isimlik .alt.acti { color: #2ee5a0; }
.isimlik .puan { position: absolute; right: -8px; top: -14px; background: #ff5c6e; border-radius: 9px; padding: 1px 8px; font-size: 14px; font-weight: 800; }
.isimlik .puan.eksi { background: #1eaa6e; }
.isimlik .ceza { color: #ff8a96; font-size: 13px; font-weight: 800; }
.mini { position: absolute; display: flex; gap: 2px; }
.mini i { width: 20px; height: 28px; background: #fcfaf4; border: 1px solid #968c78; border-radius: 4px; font: 800 17px/28px "Segoe UI"; color: #de222c; text-align: center; font-style: normal; }
.mini.cift i { color: #1a70d6; }
.kopuk { opacity: .45; filter: grayscale(.8); }

/* ------------------------------------------------ perler */
#perler { position: absolute; left: 470px; top: 176px; width: 660px; height: 300px; display: flex; gap: 16px; }
#perler-sol, #perler-sag { flex: 1; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 7px 10px; }
.per { align-self: flex-start; display: flex; gap: 2px; padding: 3px 4px 3px 7px; border-radius: 7px; background: #064b5a; border: 2px solid var(--sahip); position: relative; }
.per::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--sahip); border-radius: 2px; }
.per.isle-hedef { outline: 3px dashed #2ee5a0; outline-offset: 2px; cursor: copy; }
.per.isle-hedef.ustunde { background: #2ee5a044; }
.per.alevli { animation: peralev .5s infinite alternate; }
@keyframes peralev { from { box-shadow: 0 0 10px 2px #ff7a18, 0 -6px 16px #ffb02e; } to { box-shadow: 0 0 20px 6px #ff3d00, 0 -12px 24px #ffd04a; } }

/* ------------------------------------------------ bant, duyuru, bildirim */
#bant { position: absolute; left: 50%; top: 520px; transform: translateX(-50%); padding: 10px 32px; border-radius: 30px; font-size: 23px; font-weight: 800;
  background: #10242ccc; border: 2px solid #78c8d2; white-space: nowrap; transition: all .2s; }
#bant.sende { background: #ffc94d; color: #2a1a05; border-color: #fff3c4; box-shadow: 0 0 22px #ffc94d88; }
#bant.ates { background: linear-gradient(#ffae3a, #ff6a1a); color: #2a1005; border-color: #ffe0a0; }
#bant:empty { display: none; }
#duyuru { position: absolute; left: 0; right: 0; top: 300px; text-align: center; pointer-events: none; opacity: 0; transform: scale(.6); transition: all .35s cubic-bezier(.2, 1.6, .5, 1); }
#duyuru.goster { opacity: 1; transform: scale(1); }
#duyuru .baslik { font: italic 900 74px Georgia, serif; color: #ffd65a; text-shadow: 0 0 18px #ff7a18, 0 4px 0 #8a3b00, 0 0 40px #ff3d00; }
#duyuru .sayi { margin-top: 8px; display: inline-flex; gap: 6px; }
#duyuru .sayi i { width: 58px; height: 80px; background: linear-gradient(#fffefa, #ece7da); border-radius: 9px; font: 900 56px/80px Georgia, serif; color: #dc2430; font-style: normal; box-shadow: 0 0 22px #ff7a18, 0 5px 0 #bdb29b; animation: alev .5s infinite alternate; }
#bildirim { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); background: #c42438; padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 18px; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 900px; text-align: center; }
#bildirim.goster { opacity: 1; }
#bildirim.bilgi { background: #1d5a74; }

/* ------------------------------------------------ menü */
#menu { position: absolute; left: 20px; top: 92px; display: flex; flex-direction: column; gap: 8px; }
#menu button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #ffffff22; color: #fff; font-size: 22px; font-weight: 900; }

/* ------------------------------------------------ lobi + pencere */
#lobi, #pencere { position: absolute; inset: 0; background: #0b0705c4; display: flex; align-items: center; justify-content: center; z-index: 30; }
.kart { background: linear-gradient(#25384a, #172433); border: 2px solid #ffc94d77; border-radius: 22px; padding: 26px 34px; min-width: 760px; box-shadow: 0 20px 60px #000c; }
.kart h1 { margin: 0 0 4px; font: 900 36px Georgia, serif; color: #ffc94d; text-align: center; }
.kart .alt-baslik { text-align: center; color: #c9d6e2; margin-bottom: 20px; font-size: 16px; }
.koltuklar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.koltuk { height: 230px; border-radius: 16px; background: #0f1b27; border: 2px dashed #6a8aa8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.koltuk.dolu { border-style: solid; border-color: #3bc4d0; }
.koltuk .avatar { position: relative; width: 84px; height: 84px; font-size: 34px; }
.koltuk .ad { font-weight: 800; font-size: 17px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.koltuk .para { color: #ffd65a; font-weight: 700; font-size: 15px; }
.dug { border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 800; font-size: 18px; color: #2a1a05; background: linear-gradient(#ffd98a, #e8a63c); box-shadow: 0 4px 0 #a8661a; }
.dug:disabled { filter: grayscale(1); opacity: .5; cursor: default; }
.dug.mavi { background: linear-gradient(#6fd3ff, #2a8fd0); color: #04263a; box-shadow: 0 4px 0 #1b5f8a; }
.dug.gri { background: #ffffff22; color: #fff; box-shadow: none; }
.dug.yesil { background: linear-gradient(#5ff0b4, #1eaa6e); color: #03301e; box-shadow: 0 4px 0 #11704a; }
.ayarlar { display: flex; gap: 18px; justify-content: center; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.ayarlar label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: #c9d6e2; }
.ayarlar select { font: 700 17px "Segoe UI", sans-serif; padding: 8px 10px; border-radius: 10px; background: #0f1b27; color: #fff; border: 2px solid #6a8aa8; min-width: 170px; }
.ayarlar select:disabled { opacity: .7; }
.alt-dugmeler { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
table.skor { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 19px; }
table.skor td, table.skor th { padding: 10px 12px; text-align: center; }
table.skor th { color: #9fb4c8; font-size: 14px; }
table.skor tr:nth-child(even) td { background: #ffffff0a; }
table.skor tr.birinci td { background: #ffc94d22; color: #ffd65a; font-weight: 800; }
.arti { color: #ff8a96; font-weight: 800; } .eksi { color: #2ee5a0; font-weight: 800; }
.kurallar { max-width: 900px; font-size: 16px; line-height: 1.6; color: #e1e8ef; }
.kurallar b { color: #ffc94d; }

#yukleniyor { position: absolute; inset: 0; z-index: 60; background: #160e09; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 22px; font-weight: 700; color: #e6d9c9; }
#yukleniyor .kahve { font-size: 90px; animation: buhar 1.2s infinite alternate; }
@keyframes buhar { from { transform: translateY(0); } to { transform: translateY(-10px); } }
