/* Ekip oyunu ve telsiz. Masa dünyası: telsiz kenara iliştirilmiş not kâğıdı, davet bir tutanak. */

/* ---------- Kip seçimi (dosya sayfası) ---------- */
.kip-sec { display: grid; gap: 10px; }
.kip-sec .kip { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: #15171A; background: var(--sheet); box-shadow: 0 14px 26px -16px rgba(0,0,0,.9); transform: rotate(-.4deg); border-left: 6px solid var(--f-sari); }
.kip-sec .kip.ekip { transform: rotate(.5deg); border-left-color: var(--f-mavi); }
.kip-sec .kip > i { font-size: 1.7rem; }
.kip-sec .kip b { display: block; font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; }
.kip-sec .kip .small { font-family: var(--typed); color: #4A4E55; }
.kip-sec .kip:hover, .kip-sec .kip:focus-visible { transform: rotate(0) translateY(-2px); outline: 2px solid var(--marker); outline-offset: 2px; }

.geri-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }

/* ---------- Ekip kur / davet ---------- */
.ekip-kur, .ekip-davet { display: grid; gap: 22px; max-width: 980px; }
@media (min-width: 900px) { .ekip-kur { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.ekip-davet { max-width: 560px; margin: 10px auto 0; }
.ekip-davet .form-sheet { transform: rotate(-.6deg); }
.ekip-kurallar { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ekip-kurallar li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-family: var(--typed); color: var(--ink-2); font-size: .92rem; }
.ekip-kurallar i { font-size: 1.35rem; color: var(--marker); }
.ekip-dolu { display: flex; align-items: center; gap: 6px; font-family: var(--typed); color: #15171A; }
.ekip-dolu span { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #8A8576; display: grid; place-items: center; color: #8A8576; }
.ekip-dolu span.dolu { border-style: solid; border-color: #15171A; background: #15171A; color: var(--sheet); }
.ekip-dolu b { margin-left: 6px; }

/* ---------- Ekip odası ---------- */
.ekip-oda { display: grid; gap: 22px; margin-top: 14px; }
@media (min-width: 900px) { .ekip-oda { grid-template-columns: 1fr 1fr; align-items: start; } }
.davet-kart { transform: rotate(-.5deg); }
.davet-kod { font-family: var(--typed); font-size: clamp(2.1rem, 11vw, 3.2rem); letter-spacing: .28em; color: #15171A; text-align: center; padding: 8px 0 4px; border: 2px dashed #B9B2A2; background: rgba(255,255,255,.35); overflow-wrap: anywhere; }
.davet-link { display: flex; gap: 8px; min-width: 0; }
.davet-link input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; font-family: var(--typed); font-size: .82rem; border: 1px solid #B9B2A2; background: #FBF8F1; color: #15171A; border-radius: 6px; }
.btn-wa { background: #1F7A4D; color: #fff; border-color: #1F7A4D; }
.btn-wa:hover { background: #18663f; }
.ekip-uyeler h3 { margin-bottom: 10px; }
.ekip-uyeler ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ekip-uyeler li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ekip-uyeler li .kim { display: grid; min-width: 0; }
.ekip-uyeler li .kim b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ekip-uyeler li.bos-yer { border-style: dashed; background: transparent; grid-template-columns: auto 1fr; }
.ekip-av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.ekip-av svg { display: block; border-radius: 50%; }
.ekip-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5A5E66; border: 2px solid var(--paper); }
.ekip-av.on::after { background: var(--good, #3FD48C); }
.ekip-uyeler li.bos-yer .ekip-av { width: 40px; height: 40px; border: 2px dashed var(--line); color: var(--ink-3); }
.ekip-uyeler li.bos-yer .ekip-av::after { display: none; }

/* ---------- Vaka kapağında ekip şeridi ---------- */
.sicil-satir { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; min-width: 0; }
.sicil-satir .sicil { flex: 1 1 220px; }
.ekip-serit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #15171A; background: rgba(241,236,224,.6); padding: 4px 10px 4px 8px; border-radius: 999px; font-family: var(--typed); font-size: .85rem; max-width: 100%; min-width: 0; }
.ekip-serit .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.ekip-serit .avlar { display: inline-flex; }
.ekip-serit .ekip-av { margin-left: -6px; box-shadow: 0 0 0 2px var(--f-sari); }
.ekip-serit .ekip-av::after { width: 8px; height: 8px; border-width: 1.5px; border-color: var(--f-sari); }
.ekip-av.konusuyor { box-shadow: 0 0 0 3px var(--good, #3FD48C) !important; }

/* ---------- Ekip raporu ---------- */
.opt .opt-m { flex: 1; }
.oy-avlar { display: inline-flex; margin-left: auto; padding-left: 6px; }
.oy-avlar span { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); display: inline-flex; }
.oy-avlar svg { border-radius: 50%; display: block; }
.opt[aria-checked="true"] .oy-avlar span { box-shadow: 0 0 0 2px var(--sheet); }
.hukum-ozet { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--marker); background: rgba(255,255,255,.04); }
.modal .hukum-ozet { background: rgba(0,0,0,.05); }

/* ---------- Ekip sonucu ve sıralama ---------- */
.ekip-puanlar .r, .ekip-lb .r { grid-template-columns: 40px 1fr auto; }
.ekip-lb .r { grid-template-columns: 30px 40px 1fr auto; }
.ekip-ikon { width: 40px; height: 40px; border-radius: 50%; background: #15171A; color: var(--sheet); display: grid; place-items: center; position: relative; }
.ekip-ikon small { position: absolute; right: -4px; bottom: -4px; background: var(--marker); color: #15171A; border-radius: 999px; font-size: .7rem; padding: 0 5px; font-family: var(--typed); }
.ekip-lb-bas { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1E2126; padding-bottom: 6px; margin-bottom: 6px; font-family: var(--typed); color: #1E2126; gap: 10px; }
.ekip-lb-bas b { font-family: var(--font); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.2rem; }
@media (max-width: 460px) { .lb-seg { flex-wrap: wrap; border-radius: 18px; } .lb-seg button { padding: 0 11px; } }

/* ---------- Kimliğim: Ekiplerim ---------- */
.ekiplerim { display: grid; gap: 12px; }
@media (min-width: 720px) { .ekiplerim { grid-template-columns: 1fr 1fr; } }
.ekip-kart { display: grid; gap: 6px; padding: 14px 16px; text-decoration: none; color: #1E2126; background: var(--sheet); box-shadow: 0 14px 26px -16px rgba(0,0,0,.9); border-top: 6px solid var(--f-mavi); min-width: 0; }
.ekip-kart.kapandi { border-top-color: var(--f-yesil); }
.ekip-kart .ust { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #4A4E55; }
.ekip-kart .ust .stamp-r { font-size: .8rem; padding: 1px 8px; border-width: 2px; }
.ekip-kart b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.25rem; overflow-wrap: anywhere; }
.ekip-kart .small { font-family: var(--typed); color: #4A4E55; }

/* ---------- Telsiz paneli ---------- */
.telsiz {
  --tl-kagit: #EFE6C8;
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: min(82vh, 640px); max-height: calc(100dvh - 40px);
  display: grid; grid-template-rows: auto 1fr auto; background: var(--tl-kagit); color: #1E2126;
  border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.6);
  transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(92,141,189,.18) 27px 28px);
}
.telsiz.acik { transform: translateY(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .telsiz { transition: none; } }
.tl-fab {
  position: fixed; z-index: 35; right: 14px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--marker); color: #15171A; font-family: var(--typed); font-size: 1rem; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(0,0,0,.9);
}
.tl-fab i { font-size: 1.3rem; }
.tl-sayac { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--stamp); color: #fff; font-size: .75rem; display: grid; place-items: center; padding: 0 5px; font-family: var(--font); }
.tl-sayac[hidden] { display: none; }
@media (min-width: 960px) { .tl-fab { bottom: 20px; } }
body.telsiz-cekmece { overflow: hidden; }
body.telsiz-cekmece .tl-fab { display: none; }

.tl-bas { padding: 12px 14px 10px; border-bottom: 2px solid #1E2126; display: grid; gap: 10px; background: rgba(241,236,224,.85); border-radius: 14px 14px 0 0; }
.tl-baslik { display: flex; align-items: center; gap: 8px; font-family: var(--typed); }
.tl-baslik b { font-family: var(--font); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.25rem; word-spacing: .2em; }
.tl-bag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: #5A5E66; margin-left: auto; white-space: nowrap; }
.tl-bag i { font-size: .6rem; color: #A3291F; }
.tl-bag.bagli i { color: #1F6B48; }
.tl-bag.baglaniyor i, .tl-bag.koptu i { color: #B07A10; }
.tl-kapat { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #1E2126; font-size: 1.2rem; }
.tl-kapat:hover { background: rgba(0,0,0,.08); }
.tl-uyeler { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.tl-uye { display: grid; justify-items: center; gap: 2px; width: 56px; flex: none; font-size: .7rem; font-family: var(--typed); opacity: .55; }
.tl-uye.on { opacity: 1; }
.tl-uye .av { position: relative; border-radius: 50%; display: inline-flex; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.tl-uye .av svg { border-radius: 50%; display: block; }
.tl-uye.seste .av { box-shadow: 0 0 0 2px #5C8DBD; }
.tl-uye.konusuyor .av { box-shadow: 0 0 0 3px #1F9D5B, 0 0 12px 2px rgba(31,157,91,.6); }
.tl-uye .mik { position: absolute; right: -4px; bottom: -3px; font-size: .8rem; background: #1E2126; color: #fff; border-radius: 50%; padding: 2px; }
.tl-uye .ad { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ses { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tl-ses .btn-ghost { color: #1E2126; border-color: #1E2126; }
.tl-ses .tiny { color: #4A4E55; }

.tl-akis { overflow-y: auto; padding: 10px 12px; display: grid; align-content: start; gap: 8px; overscroll-behavior: contain; min-height: 0; }
.tl-sis { font-family: var(--typed); font-size: .8rem; color: #5A4A2A; text-align: center; padding: 2px 8px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tl-sis span { background: rgba(194,59,46,.08); padding: 2px 8px; border-radius: 4px; }
.tl-sis time, .tl-msg time { color: #847E72; font-size: .72rem; }
.tl-msg { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; min-width: 0; }
.tl-msg .av svg { border-radius: 50%; display: block; }
.tl-msg .gv { background: #FBF8F1; border-radius: 4px 10px 10px 10px; padding: 6px 10px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.15); min-width: 0; }
.tl-msg.ben .gv { background: #F7D458; }
.tl-msg .ust { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; }
.tl-msg .ust b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tl-msg p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .95rem; line-height: 1.4; }
.tl-bildir { margin-left: auto; border: 0; background: transparent; color: #847E72; cursor: pointer; padding: 2px 4px; border-radius: 4px; font-size: .85rem; }
.tl-bildir:hover, .tl-bildir:focus-visible { color: #A3291F; background: rgba(0,0,0,.06); }
.tl-delil { display: inline-flex; align-items: center; border: 1.5px solid #1E2126; background: var(--sheet); color: #1E2126; font-family: var(--typed); font-size: .8rem; padding: 0 6px; border-radius: 3px; cursor: pointer; line-height: 1.5; vertical-align: baseline; }
.tl-delil::before { content: "#"; opacity: .5; margin-right: 1px; }
.tl-delil:hover, .tl-delil:focus-visible { background: #1E2126; color: var(--sheet); }

.tl-yaz { border-top: 2px solid #1E2126; padding: 8px 12px 10px; display: grid; gap: 6px; background: rgba(241,236,224,.9); }
.tl-yaz-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tl-yaz select { max-width: 70%; height: 30px; border: 1px solid #B9B2A2; background: #FBF8F1; color: #1E2126; border-radius: 6px; font-family: var(--typed); font-size: .8rem; padding: 0 6px; }
.tl-say { color: #847E72; font-family: var(--typed); margin-left: auto; }
.tl-yaz-alt { display: flex; gap: 8px; align-items: flex-end; }
.tl-yaz textarea { flex: 1; min-width: 0; resize: none; min-height: 40px; max-height: 120px; border: 1px solid #B9B2A2; background: #FBF8F1; color: #1E2126; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 16px; line-height: 1.35; }
.tl-yaz textarea:focus { outline: 2px solid var(--f-mavi); outline-offset: 0; }
.tl-yaz .btn { height: 40px; width: 44px; padding: 0; flex: none; }
.tl-not { color: #847E72; font-family: var(--typed); margin: 0; }

/* Geniş masaüstü: sağda sabit panel, içerik sola kayar (dar masaüstünde üst menü sığsın diye 1440px'ten sonra) */
@media (min-width: 1440px) {
  body.telsiz-var .shell { padding-right: 344px; }
  .telsiz { left: auto; top: 0; right: 0; bottom: 0; width: 344px; height: auto; max-height: none; border-radius: 0; transform: none; visibility: visible; box-shadow: -12px 0 30px rgba(0,0,0,.5); }
  .tl-bas { border-radius: 0; }
  .tl-fab, .tl-kapat { display: none; }
  body.telsiz-cekmece { overflow: auto; }
}

/* Gönderilmeyi bekleyen ve gönderilemeyen mesajlar */
.tl-msg.bekliyor .gv { opacity: .7; }
.tl-msg.basarisiz .gv { box-shadow: 0 0 0 2px #A3291F; }
.tl-bekliyor { display: block; margin-top: 2px; font-family: var(--typed); font-size: .72rem; color: #5A5E66; }
.tl-yeniden { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #A3291F; background: transparent; color: #A3291F; border-radius: 6px; padding: 4px 8px; font-family: var(--typed); font-size: .78rem; cursor: pointer; min-height: 32px; }
.tl-yeniden:hover, .tl-yeniden:focus-visible { background: #A3291F; color: #fff; }
/* Uzun kelimeler ve bağlantılar taşmasın (bağlantılar düz metin kalır) */
.tl-msg p { word-break: break-word; }

/* Tablet ve dar masaüstü (700-1439px): telsiz sayfayı daraltmaz, sağ altta yüzen panel olarak açılır */
@media (min-width: 700px) and (max-width: 1439px) {
  .telsiz { left: auto; right: 16px; bottom: 16px; width: 390px; height: min(78vh, 640px); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.65); transform: translateY(calc(100% + 24px)); }
  .telsiz.acik { transform: translateY(0); }
  .tl-bas { border-radius: 14px 14px 0 0; }
}
/* Telsiz sağda açıkken üst menü kalan genişliğe göre sıkışır (panel 344px yer kaplar) */
@media (min-width: 1440px) and (max-width: 2044px) { body.telsiz-var .badgechip .who { display: none; } body.telsiz-var .badgechip { padding: 3px; } }
@media (min-width: 1440px) and (max-width: 1744px) { body.telsiz-var .ftab { font-size: .84rem; padding-left: 9px !important; padding-right: 11px !important; } body.telsiz-var .ptag small { display: none; } body.telsiz-var .brandmark .wm span { display: none; } }
@media (min-width: 1440px) and (max-width: 1524px) { body.telsiz-var .brandmark .wm { display: none; } body.telsiz-var .ptag { display: none; } body.telsiz-var .ftab { font-size: .8rem; padding-left: 7px !important; padding-right: 9px !important; } }
