/* --klavye: iPhone'da açık klavyenin yüksekliği (chat.js yazar). */
:root {
  --klavye: 0px;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #2b2f36;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

#sahne {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
  cursor: pointer;
}

#hud {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  max-width: 420px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 22, 26, 0.82);
  color: #f2f2f2;
  pointer-events: none; /* haritaya dokunuş geçsin; yalnızca buton tıklanır */
}

#hud[hidden] {
  display: none;
}

.hud-metin {
  flex: 1;
  min-width: 0;
}

#btn-lobi,
#btn-fikir {
  pointer-events: auto;
  flex: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

#amfi-adi {
  font-weight: 600;
  font-size: 16px;
}

#durum {
  margin-top: 4px;
  font-size: 14px;
  color: #c9d1d9;
}

#uyari {
  position: fixed;
  /* sohbet kutusunun üstünde */
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--klavye, 0px) + 62px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(160, 40, 40, 0.92);
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

#lobi {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background: rgba(20, 22, 26, 0.45);
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

#lobi[hidden] {
  display: none;
}

.lobi-kutu {
  width: min(360px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 18px;
  border-radius: 12px;
  background: rgba(20, 22, 26, 0.96);
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lobi-kutu h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.lobi-kutu label,
.lobi-kutu .etiket {
  font-weight: 600;
  margin-top: 4px;
}

/* 16px altı yazı iPhone'da sayfayı kendiliğinden büyütüyor. */
#takma-ad {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #f4f4f2;
  color: #1d1f23;
  -webkit-user-select: text;
  user-select: text;
}

#renkler {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.renk {
  aspect-ratio: 1;
  min-height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
}

.renk[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px #1d1f23 inset;
}

.aciklama {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #c9d1d9;
}

#btn-gir {
  margin-top: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e8772e;
  background: #e8772e;
  color: #fff;
  cursor: pointer;
}

#btn-gir:disabled {
  opacity: 0.6;
  cursor: wait;
}

#lobi-mesaj {
  min-height: 1.2em;
  font-size: 14px;
  color: #c9d1d9;
}

#lobi-mesaj.hata {
  color: #fca5a5;
}

/* ---------- Sohbet ---------- */

#sohbet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--klavye));
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f2f2f2;
}

#sohbet[hidden],
#sohbet-panel[hidden],
#balonlar[hidden],
#okunmamis[hidden] {
  display: none;
}

#sohbet-panel {
  border-radius: 10px;
  background: rgba(20, 22, 26, 0.88);
}

#sohbet-liste {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  /* telefonda görünen alanın en fazla %38'i; klavye açıkken de sığar */
  max-height: min(260px, calc(var(--gorunen, 100dvh) * 0.38));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.35;
  -webkit-user-select: text;
  user-select: text;
}

#sohbet-liste:empty::before {
  content: "Henüz mesaj yok.";
  color: #8b949e;
}

#sohbet-liste li {
  padding: 3px 0;
  overflow-wrap: anywhere;
}

#sohbet-liste .saat {
  color: #8b949e;
  font-size: 12px;
  margin-right: 6px;
}

/* Ad ve mesaj birbirinin yazı yönünü etkilemesin. */
#sohbet-liste .kim,
.balon b {
  unicode-bidi: isolate;
}

#sohbet-liste .kim {
  font-weight: 700;
  margin-right: 6px;
}

#sohbet-form {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(20, 22, 26, 0.88);
}

#sohbet-form button {
  flex: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
  position: relative;
}

#btn-sohbet[aria-expanded="true"] {
  background: #555b66;
}

#sohbet-form #btn-gonder {
  background: #e8772e;
  border-color: #e8772e;
}

#okunmamis {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* 16px altı yazı iPhone'da sayfayı kendiliğinden büyütüyor. */
#sohbet-yazi {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #f4f4f2;
  color: #1d1f23;
  -webkit-user-select: text;
  user-select: text;
}

#balonlar {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.balon {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(220px, calc(100vw - 24px));
  padding: 5px 10px;
  border-radius: 10px;
  background: #fff;
  color: #1d1f23;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  border-left: 5px solid #888; /* rengi konuşanın rengi (chat.js) */
  overflow-wrap: anywhere;
  white-space: normal;
  width: max-content;
}

/* Başa en yakın balonun altındaki üçgen konuşanı gösterir (--kx: chat.js). */
.balon.kuyruk::after {
  content: "";
  position: absolute;
  left: var(--kx, 50%);
  bottom: -7px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}

/* Geniş ekranda sohbet sağ altta durur; ortada kürsü ve tahtayı örtmesin. */
@media (min-width: 900px) {
  #sohbet {
    left: auto;
    width: 400px;
  }
}

/* Karakter kartı: dokunulan karakterin adı ve el sallama. Sohbet kutusunun üstünde. */
#kart {
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--klavye) + 64px);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: rgba(20, 22, 26, 0.94);
  color: #f2f2f2;
  font-size: 15px;
  z-index: 2;
}

#kart[hidden] {
  display: none;
}

#kart-renk {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

#kart-ad {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#kart button {
  flex: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

#kart #kart-kapat {
  padding: 7px 10px;
  background: transparent;
  border-color: transparent;
}

/* Görünüm düzenleyici (profil ekranı) */
.gorunum-ust {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

#onizleme {
  flex: none;
  width: 80px;
  height: 109px;
  border-radius: 10px;
  background: #2a2e35;
}

#gorunum {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gorunum-baslik {
  font-size: 12px;
  color: #aab2bd;
  margin-bottom: 2px;
}

.gorunum-renkler {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.renk.kucuk {
  width: 26px;
  min-height: 26px;
  border-width: 2px;
}

.cipler {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cip {
  font: inherit;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 14px;
  border: 1px solid #555b66;
  background: #2f343c;
  color: #f2f2f2;
  cursor: pointer;
}

.cip[aria-pressed="true"] {
  background: #e8772e;
  border-color: #e8772e;
  color: #1d1f23;
  font-weight: 700;
}

/* Uğultu çubuğu: amfideki hareketlilik (HUD'da, amfide görünür) */
#gurultu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}

#gurultu[hidden] {
  display: none;
}

#gurultu-cubuk {
  flex: 1;
  max-width: 160px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#gurultu-dolu {
  height: 100%;
  width: 0;
  background: #84cc16;
  transition: width 0.4s, background 0.4s;
}

/* Rozetler (profil ekranı) */
#rozetler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rozet {
  font: inherit;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #2f343c;
  cursor: pointer;
  padding: 0;
}

.rozet.kilitli {
  filter: grayscale(1);
  opacity: 0.35;
}

.rozet[aria-pressed="true"] {
  border-color: #e8772e;
}

#rozet-not {
  min-height: 1.2em;
  font-size: 13px;
  color: #c9d1d9;
}

.cip.kilitli {
  opacity: 0.45;
}

/* Şikâyet sebebi seçimi (kart içinde ikinci satır) */
#kart-sebepler {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

#kart-sebepler[hidden] {
  display: none;
}

/* Engellediklerin listesi (profil ekranı) */
#engelliler {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.engelli {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.engelli button {
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

/* Engelle / Şikâyet Et şimdilik kapalı: çarpılı ve pasif */
#kart button.kapali {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Lobi panoları */
#pano {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 10, 16, 0.55);
}

#pano[hidden] {
  display: none;
}

.pano-kutu {
  position: relative;
  width: min(420px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #1a1d25;
  color: #f2f2f2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.pano-kutu h2 {
  margin: 0 28px 12px 0;
  font-size: 18px;
}

#pano-kapat {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #2d323d;
  color: #f2f2f2;
  font-size: 20px;
  cursor: pointer;
}

.pano-satir {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #2d323d;
}

.pano-satir:last-of-type {
  border-bottom: 0;
}

.pano-satir.sakin .pano-ad::after {
  content: ' · en sakin';
  color: #84cc16;
  font-size: 12px;
}

.pano-cubuk {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: #2d323d;
  overflow: hidden;
}

.pano-cubuk > span {
  display: block;
  height: 100%;
}

.pano-not {
  margin-top: 12px;
  font-size: 12px;
  color: #9aa1ae;
  line-height: 1.4;
}

.pano-soru {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.pano-cevap {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #232733;
  line-height: 1.45;
}

.pano-btn {
  font: inherit;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

/* Masa ortağı paneli (sohbet kutusunun üstünde) */
#masa {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 15;
  width: min(420px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20, 23, 30, 0.94);
  color: #f2f2f2;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

#masa[hidden] {
  display: none;
}

#masa-baslik {
  font-size: 14px;
  margin-bottom: 8px;
}

#masa-dugmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

#masa-dugmeler button {
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

#masa-dugmeler button.secili {
  background: #e8772e;
  border-color: #e8772e;
}

#masa-sonuc {
  white-space: pre-line;
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
}

/* Tavla: tam ekran */
#tavla,
#hokey {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #1b1410;
  color: #f2f2f2;
}

#tavla,
#hokey {
  /* telefonda klavye açılınca oyun sohbeti klavyenin üstünde kalsın */
  padding-bottom: var(--klavye, 0px);
  box-sizing: border-box;
}

#tavla[hidden],
#hokey[hidden] {
  display: none;
}

.tavla-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
}

.tavla-kapat {
  font: inherit;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

#tavla canvas,
#hokey canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  touch-action: manipulation;
}

#hokey canvas {
  touch-action: none; /* sürüklerken sayfa kaymasın */
  user-select: none;
}

.tavla-kapat[hidden] {
  display: none;
}

.tavla-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
}

.tavla-zarlar {
  display: flex;
  gap: 4px;
  font-size: 44px;
  line-height: 1;
}

.tavla-zarlar .zar {
  color: #f4ead0;
}

.tavla-zarlar .zar.kullanildi {
  opacity: 0.3;
}

.tavla-zarlar .zar.atiliyor {
  animation: zarSalla 0.5s ease-out;
}

@keyframes zarSalla {
  0% { transform: rotate(0) scale(0.6); }
  40% { transform: rotate(160deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.tavla-durum {
  font-size: 14px;
  min-width: 180px;
  text-align: center;
}

.tavla-sonuc {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  background: #3a3f48;
}

.tavla-sonuc[data-won='true'] {
  background: #2f7a4a;
}

.tavla-dugmeler {
  display: flex;
  gap: 8px;
}

.tavla-dugmeler button {
  font: inherit;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

.tavla-dugmeler .tavla-zar-at {
  background: #e8772e;
  border-color: #e8772e;
  font-weight: 700;
}

.tavla-dugmeler button[hidden] {
  display: none;
}

/* Hava hokeyi skor tablosu */
#hokey .tavla-ust {
  gap: 8px;
}

.hk-skor {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #232a33, #171c22);
  border: 1px solid #3a4452;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hk-taraf {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'ad puan' 'nokta puan';
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}

.hk-rakip {
  grid-template-columns: auto 1fr;
  grid-template-areas: 'puan ad' 'puan nokta';
  text-align: right;
}

.hk-ad {
  grid-area: ad;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hk-puan {
  grid-area: puan;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
  text-align: center;
}

.hk-nokta {
  grid-area: nokta;
  display: flex;
  gap: 4px;
}

.hk-rakip .hk-nokta {
  justify-content: flex-end;
}

.hk-nokta i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.45;
}

.hk-nokta i.dolu {
  background: currentColor;
  opacity: 1;
}

.hk-ben {
  color: #ff9a4d;
}

.hk-rakip {
  color: #6bb8e8;
}

.hk-ben .hk-ad,
.hk-rakip .hk-ad {
  color: #e8ecf2;
}

.hk-puan.gol {
  animation: hkPuan 0.5s ease-out;
}

@keyframes hkPuan {
  0% { transform: scale(1.8); }
  100% { transform: scale(1); }
}

.hk-orta {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 72px;
}

.hk-sure {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.hk-tur {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #98a3b3;
}

.hk-isi {
  display: block;
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: #2b333d;
  overflow: hidden;
}

.hk-isi i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6bd06b, #ffd24a, #ff5a3c);
  transition: width 0.3s linear;
}

/* Tavla skor tablosu (hava hokeyiyle aynı iskelet) */
#tavla .tavla-ust {
  gap: 8px;
}

.tv-skor .hk-ad {
  color: #e8ecf2;
}

.tv-skor .hk-puan::after {
  content: '/15';
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 1px;
}

.tv-taraf {
  grid-template-columns: 1fr auto;
  grid-template-areas: 'ad puan' 'alt puan' 'ilerleme puan';
  row-gap: 3px;
  padding: 3px 7px;
  border-radius: 10px;
}

.tv-taraf.tv-rakip {
  grid-template-columns: auto 1fr;
  grid-template-areas: 'puan ad' 'puan alt' 'puan ilerleme';
}

.tv-ben {
  color: #ff9a4d;
}

.tv-rakip {
  color: #6bb8e8;
}

.tv-taraf.sira {
  box-shadow: inset 0 0 0 2px currentColor;
  background: rgba(255, 255, 255, 0.06);
}

.tv-alt {
  grid-area: alt;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #98a3b3;
  white-space: nowrap;
}

.tv-rakip .tv-alt {
  justify-content: flex-end;
}

.tv-renk {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tas, #f4ead0);
  border: 1.5px solid #8d8478;
}

.tv-kirik {
  color: #ff7a5c;
  font-weight: 700;
}

.tv-kirik[hidden] {
  display: none;
}

.tv-ilerleme {
  grid-area: ilerleme;
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #2b333d;
  overflow: hidden;
}

.tv-ilerleme i {
  display: block;
  height: 100%;
  width: 0;
  background: currentColor;
  transition: width 0.4s ease-out;
}

.tv-skor .hk-orta {
  min-width: 64px;
}

.tv-tur {
  max-width: 96px;
  text-align: center;
  line-height: 1.2;
}

/* HUD'daki Fikir Kutusu düğmesi */
#btn-fikir {
  padding: 8px 10px;
}

.fikir-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fikir-yazi {
  font: inherit;
  font-size: 16px; /* iPhone yakınlaştırmasın */
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #232733;
  color: #f2f2f2;
}

.fikir-form .pano-not {
  margin: 0;
  align-self: flex-end;
}

.fikir-form .pano-btn {
  align-self: flex-start;
}

/* Oyun içi sohbet (tavla ve hokey): yalnız iki oyuncu görür */
.oyun-sohbet {
  padding: 4px 12px 0;
}

.oyun-sohbet[hidden] {
  display: none;
}

.os-liste {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.os-liste:empty {
  display: none;
}

.os-liste li {
  padding: 1px 0;
}

.os-liste b {
  color: #f4b183;
}

.os-liste li.os-ben b {
  color: #9ec5fe;
}

.os-form {
  display: flex;
  gap: 8px;
}

.os-yazi {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* iPhone yakınlaştırmasın */
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #2a2420;
  color: #f2f2f2;
}

.os-form button {
  font: inherit;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #555b66;
  background: #3a3f48;
  color: #f2f2f2;
  cursor: pointer;
}

.os-ac {
  position: relative;
}

.os-ac[aria-pressed='false'] {
  opacity: 0.6;
}

.os-yeni {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}

.os-yeni[hidden] {
  display: none;
}
