/* =========================================================
   V127 - ÜYE PANELİ DEFİ PİRAMİDİ = ANA SAYFA GÖRÜNÜMÜ
   Ana sayfadaki #defiPyramid alanına dokunmaz.
   ========================================================= */

#defiLeagueCard .member-defi-legend-v127{
  width:100%;
  max-width:none;
  margin:14px 0 8px;
  justify-content:flex-start;
}

#defiLeagueCard #memberDefiPyramid.member-home-pyramid-v127{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin-top:12px;
  padding:24px 14px 28px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-gutter:stable;
}

#memberDefiPyramid.member-home-pyramid-v127 .pyramid-row{
  display:flex!important;
  width:max-content!important;
  min-width:100%!important;
  justify-content:center!important;
  gap:9px!important;
  flex:0 0 auto!important;
}

#memberDefiPyramid.member-home-pyramid-v127 .pyramid-player{
  position:relative;
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
  min-height:70px!important;
  flex:0 0 112px!important;
  border:1px solid var(--line);
  border-radius:14px!important;
  background:#f8faf8;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:13px 8px!important;
  color:var(--text);
  font:inherit;
  text-align:center;
  appearance:none;
  cursor:pointer!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

#memberDefiPyramid.member-home-pyramid-v127 .pyramid-player:hover{
  transform:translateY(-2px);
}

#memberDefiPyramid.member-home-pyramid-v127 .pyramid-player strong{
  font-size:12px!important;
  line-height:1.2!important;
  width:100%;
  max-width:95px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

#memberDefiPyramid.member-home-pyramid-v127 .pyramid-player small{
  font-size:10px!important;
  color:var(--muted)!important;
  margin-top:4px!important;
}

/* Sıra numarası + küçük fotoğraf üst merkezde birlikte durur. */
#memberDefiPyramid .member-pyramid-top-v127{
  position:absolute;
  top:-11px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  z-index:8;
  white-space:nowrap;
}

#memberDefiPyramid .member-pyramid-top-v127 .pyramid-rank{
  position:static!important;
  transform:none!important;
  top:auto!important;
  left:auto!important;
  min-width:26px;
  height:22px;
  border-radius:999px;
  background:var(--green);
  color:#fff;
  font-size:10px;
  font-weight:800;
  display:grid;
  place-items:center;
  padding:0 6px;
}

#memberDefiPyramid .member-pyramid-photo-v127{
  width:27px;
  height:27px;
  flex:0 0 27px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,.20);
  background:#eef3ef;
  cursor:zoom-in;
}

/* Ana sayfadaki V106 durum renklerinin yalnız üye paneli karşılığı. */
#memberDefiPyramid .pyramid-player.home-status-offer-v106{
  border:3px solid #ff9800!important;
  background:linear-gradient(180deg,#fff0b3,#fff8dc)!important;
  box-shadow:0 6px 16px rgba(255,152,0,.20)!important;
  outline:none!important;
}
#memberDefiPyramid .pyramid-player.home-status-accepted-v106{
  border:3px solid #0077ff!important;
  background:linear-gradient(180deg,#d9ebff,#eef6ff)!important;
  box-shadow:0 6px 16px rgba(0,119,255,.18)!important;
  outline:none!important;
}
#memberDefiPyramid .pyramid-player.home-status-result-v106{
  border:3px solid #e6003d!important;
  background:linear-gradient(180deg,#ffd9e3,#fff0f4)!important;
  box-shadow:0 6px 16px rgba(230,0,61,.18)!important;
  outline:none!important;
}
#memberDefiPyramid .pyramid-player.home-status-other-v106{
  border:2px solid #aab2bf!important;
  background:linear-gradient(180deg,#f1f3f6,#ffffff)!important;
  box-shadow:0 4px 12px rgba(60,70,90,.08)!important;
  outline:none!important;
}

#memberDefiPyramid .pyramid-player.home-status-offer-v106 .pyramid-rank{background:#ff9800!important;color:#1b1b1b!important}
#memberDefiPyramid .pyramid-player.home-status-accepted-v106 .pyramid-rank{background:#0077ff!important;color:#fff!important}
#memberDefiPyramid .pyramid-player.home-status-result-v106 .pyramid-rank{background:#e6003d!important;color:#fff!important}
#memberDefiPyramid .pyramid-player.home-status-other-v106 .pyramid-rank{background:#697386!important;color:#fff!important}

#memberDefiPyramid .pyramid-player.home-can-challenge{
  cursor:pointer!important;
}
#memberDefiPyramid .pyramid-player.home-can-challenge:hover{
  box-shadow:0 0 0 2px rgba(15,95,60,.10),0 8px 18px rgba(15,95,60,.12)!important;
}

/* İlk serbest teklif hakkı aktifse hedefi ana tasarımı bozmadan hafifçe işaretle. */
#memberDefiPyramid .pyramid-player.first-free-target-v123{
  outline:3px solid rgba(213,139,0,.18)!important;
  outline-offset:2px!important;
}

#memberDefiPyramid .home-defi-process{
  width:100%;
}

.member-pyramid-player-modal-v127 .avatar.has-photo-v116{
  cursor:zoom-in;
  overflow:hidden;
  padding:0;
}
.member-pyramid-player-modal-v127 .avatar.has-photo-v116 img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

[data-theme="dark"] #memberDefiPyramid .pyramid-player.home-status-offer-v106{
  background:linear-gradient(180deg,#4a3210,#2d2417)!important;
  border-color:#ff9800!important;
}
[data-theme="dark"] #memberDefiPyramid .pyramid-player.home-status-accepted-v106{
  background:linear-gradient(180deg,#102d50,#142235)!important;
  border-color:#2f91ff!important;
}
[data-theme="dark"] #memberDefiPyramid .pyramid-player.home-status-result-v106{
  background:linear-gradient(180deg,#4b1424,#2e1820)!important;
  border-color:#ff3d6e!important;
}
[data-theme="dark"] #memberDefiPyramid .pyramid-player.home-status-other-v106{
  background:linear-gradient(180deg,#252a32,#1d2128)!important;
  border-color:#818a99!important;
}

@media(max-width:760px){
  #defiLeagueCard #memberDefiPyramid.member-home-pyramid-v127{
    padding:24px 14px 28px!important;
    scroll-behavior:smooth;
  }
  #memberDefiPyramid.member-home-pyramid-v127 .pyramid-row{
    gap:9px!important;
  }
  #memberDefiPyramid.member-home-pyramid-v127 .pyramid-player{
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    flex-basis:112px!important;
    min-height:70px!important;
    padding:13px 8px!important;
    border-radius:14px!important;
  }
  #memberDefiPyramid.member-home-pyramid-v127 .pyramid-player strong{
    font-size:12px!important;
    max-width:95px!important;
  }
  #memberDefiPyramid.member-home-pyramid-v127 .pyramid-player small{
    font-size:10px!important;
  }
  #memberDefiPyramid .member-pyramid-photo-v127{
    width:27px;
    height:27px;
    flex-basis:27px;
  }
}
