/* Kamp ateşi lobisi. Renkler ve düğmeler: /ortak/tema.css */
:root { --panel-en: 300px; }
body.lobide { overflow: hidden; min-width: 1100px; }

/* ---- Oyun tabelaları ---- */
.tabelalar {
  position: fixed; left: 0; right: calc(var(--panel-en) + 24px); top: 112px; z-index: 4;
  display: flex; justify-content: center; align-items: flex-start; gap: 34px; pointer-events: none;
}
.tabelalar .tabela { position: relative; width: 208px; pointer-events: auto; }
.tabelalar .yuz {
  width: 100%; display: grid; justify-items: center; gap: 2px; padding: 12px 10px; text-align: center;
  background:
    linear-gradient(#0000 0 48%, #40241a 48% calc(48% + 3px), #0000 calc(48% + 3px)),
    repeating-linear-gradient(90deg, #0000 0 37px, #7a482a 37px 43px, #0000 43px 91px),
    var(--ahsap);
  box-shadow: 0 -4px 0 var(--ahsap-koyu), 0 4px 0 var(--ahsap-koyu), -4px 0 0 var(--ahsap-koyu), 4px 0 0 var(--ahsap-koyu), inset 0 4px 0 var(--ahsap-acik);
}
.tabelalar .resim { width: 176px; height: 72px; image-rendering: pixelated; }
.tabelalar .ad { font: 400 31px/1.1 var(--piksel); text-shadow: 0 2px 0 var(--ahsap-koyu); }
.tabelalar .durum { font-size: 14px; color: #ffe3b4; }
.tabelalar .yakinda .yuz { filter: saturate(.55) brightness(.72); }

#masa-kur { font-size: 23px; padding: 8px 18px 10px; margin-top: 6px; }
.tabelalar ul { list-style: none; padding: 0; width: 100%; max-height: 150px; overflow-y: auto; display: grid; gap: 5px; margin-top: 8px; }
.tabelalar ul li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 5px 5px 9px; background: #40241acc; text-align: left; font-size: 14px; line-height: 1.25; }
.tabelalar ul span { overflow-wrap: anywhere; }
.tabelalar ul .dugme { font-size: 18px; padding: 6px 9px 7px; box-shadow: none; }

/* Kısa ekranlarda tabelalar küçülür, arkada ayakta duranların adını örtmez */
@media (max-height: 720px) {
  .tabelalar { top: 104px; }
  .tabelalar .yuz { padding: 8px 10px; }
  .tabelalar .resim { height: 44px; object-fit: cover; }
}

/* ---- Avatarlar ---- */
#avatarlar { position: relative; z-index: 2; }
#avatarlar button { position: fixed; display: flex; align-items: flex-end; justify-content: center; left: 0; top: 0; }
#avatarlar span {
  position: absolute; top: 100%; font: 400 19px/1 var(--piksel); padding: 2px 5px 3px; white-space: nowrap;
  background: #17183bb8; color: var(--kemik);
}
#avatarlar button:hover span { background: var(--kemik); color: var(--gece); }
#avatarlar .ayakta span { top: auto; bottom: 100%; }
#avatarlar .ben span { color: var(--kor); }

.balon {
  position: fixed; left: 0; top: 0; z-index: 5; max-width: 210px; padding: 7px 11px 8px; background: var(--kemik); color: #2a1a2e;
  font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; pointer-events: none;
  box-shadow: 0 -3px 0 #2a1a2e, 0 3px 0 #2a1a2e, -3px 0 0 #2a1a2e, 3px 0 0 #2a1a2e;
}
.balon::after {
  content: ""; position: absolute; left: var(--uc); bottom: -12px; width: 9px; height: 12px; margin-left: -4px;
  background: linear-gradient(var(--kemik) 0 6px, #2a1a2e 6px); clip-path: polygon(0 0, 100% 0, 100% 50%, 66% 50%, 66% 100%, 33% 100%, 33% 50%, 0 50%);
}
.balon.gidiyor { opacity: 0; transition: opacity .35s steps(4); }

.kart-pencere { position: fixed; z-index: 8; width: 224px; padding: 14px; display: grid; gap: 10px; }
.kart-pencere strong { font: 400 28px/1 var(--piksel); padding-right: 28px; overflow-wrap: anywhere; }
.kapat { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; font-size: 22px; line-height: 1; color: var(--soluk); }

/* ---- Sohbet çubuğu ---- */
.sohbet {
  position: fixed; z-index: 6; left: 0; right: calc(var(--panel-en) + 24px); bottom: 16px; margin: auto; width: 720px; max-width: calc(100vw - var(--panel-en) - 80px);
  display: flex; gap: 8px; align-items: stretch; padding: 8px; background: var(--gece);
  box-shadow: 0 -4px 0 var(--ahsap-koyu), 0 4px 0 var(--ahsap-koyu), -4px 0 0 var(--ahsap-koyu), 4px 0 0 var(--ahsap-koyu);
}
.sohbet input { flex: 1; min-width: 0; border: 0; background: var(--cadir); padding: 0 12px; }
.sohbet input::placeholder { color: var(--soluk); }
.ifadeler { display: flex; gap: 2px; }
.ifadeler button { width: 42px; height: 42px; display: grid; place-items: center; }
.ifadeler button:hover { background: var(--cadir-acik); }
.ifadeler canvas { width: 32px; height: 32px; image-rendering: pixelated; }

/* ---- Profil paneli ---- */
.panel { position: fixed; z-index: 7; right: 20px; top: 20px; width: var(--panel-en); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.panel .sekmeler { display: flex; background: var(--ahsap-koyu); }
.panel .sekmeler button { flex: 1; padding: 11px 4px 12px; font: 400 20px/1 var(--piksel); color: #d9b98f; }
.panel .sekmeler [aria-selected=true] { background: var(--gece); color: var(--kemik); }
.panel .sekmeler i { display: inline-block; width: 8px; height: 8px; background: var(--kor); margin-left: 6px; }
.icerik { padding: 16px; display: grid; gap: 12px; overflow-y: auto; align-content: start; }
.icerik a.dugme { text-align: center; text-decoration: none; }
.kimlik { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
#onizleme { width: 96px; height: 112px; image-rendering: pixelated; background: linear-gradient(#3c3f7d 0 62%, #3c6b52 62%); }
.kimlik h2 { font: 400 33px/1 var(--piksel); overflow-wrap: anywhere; }
.kimlik p { margin-top: 3px; }
.kucuk { font-size: 13px; line-height: 1.3; color: var(--soluk); }
.xp { height: 10px; background: var(--cadir-acik); margin: 5px 0; }
.xp b { display: block; height: 100%; background: var(--yosun); }
.cip { font: 400 23px/1 var(--piksel); color: var(--soluk); margin-top: 4px; }
.cip span { font-size: 52px; color: var(--kor); }
.icerik h3 { font: 400 23px/1 var(--piksel); margin-top: 4px; }
#lobi dl { display: grid; gap: 6px; }
#lobi dl div { display: flex; justify-content: space-between; font-size: 15px; }
#lobi dt { color: var(--soluk); }
#lobi dd, #liste b { font: 400 21px/1 var(--piksel); }
.secim { display: flex; white-space: nowrap; background: var(--cadir); }
.secim button { flex: 1 1 auto; padding: 8px 4px; font-size: 14px; color: var(--soluk); }
.secim [aria-pressed=true] { background: var(--cadir-acik); color: var(--kemik); }
#liste { list-style: none; padding: 0; counter-reset: s; display: grid; }
#liste li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr auto; padding: 7px 6px; font-size: 15px; }
#liste li::before { content: counter(s); color: var(--soluk); }
#liste li.ben { background: var(--cadir); color: var(--kor); }
#s-gecmis { min-height: 290px; }
#gecmis { list-style: none; padding: 0; display: grid; gap: 9px; }
#gecmis li { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
#gecmis b { font: 400 19px/1 var(--piksel); color: var(--yosun); margin-right: 6px; }
#gecmis .ben b { color: var(--kor); }
#gecmis time { float: right; margin-left: 8px; font-size: 13px; color: var(--soluk); }
.panel footer { display: flex; justify-content: space-between; padding: 10px 14px 12px; border-top: 3px solid var(--cadir); font-size: 13px; white-space: nowrap; }
.panel footer :is(a, button) { color: var(--soluk); text-decoration: underline; text-underline-offset: 3px; }
.panel footer :is(a, button):hover { color: var(--kemik); }

/* ---- Bildirimler ---- */
#bildirimler { position: fixed; z-index: 9; right: calc(var(--panel-en) + 48px); top: 20px; display: grid; gap: 14px; justify-items: end; }
.bildirim {
  padding: 12px 14px; background: var(--kemik); color: #2a1a2e; font-size: 15px; line-height: 1.35; display: flex; align-items: center; gap: 16px; max-width: 460px;
  box-shadow: 0 -4px 0 #2a1a2e, 0 4px 0 #2a1a2e, -4px 0 0 #2a1a2e, 4px 0 0 #2a1a2e;
}
.bildirim .dugme { font-size: 20px; padding: 9px 12px 10px; white-space: nowrap; }
