/* MasaLobi V1.19 tasarım adayı: geniş oyun yüzeyi, dar dış oyuncu blokları.
   Oyun kartlarının, masadaki rumuz kapsüllerinin ve avatarların ölçüleri değiştirilmez.
   Kapalı deste dağıtan oyuncunun solunda, her oyuncunun topladığı kartlar kendi sağındadır. */
@media (min-width:1240px){
  body.is-playing .salon-layout{
    grid-template-columns:190px minmax(0,1fr) 210px 150px;
  }
}
@media (min-width:901px) and (max-width:1239px){
  body.is-playing .salon-layout{
    grid-template-columns:190px minmax(0,1fr) 205px;
  }
}
@media (min-width:901px) and (max-width:1060px){
  body.is-playing .salon-layout{
    grid-template-columns:145px minmax(0,1fr) 165px;
  }
}
@media (min-width:901px){
  body.is-playing #pisti-play{
    --ml-table-height:clamp(390px,calc(100dvh - 285px),510px);
  }
}
@media (min-width:901px) and (max-width:1060px){
  body.is-playing #pisti-play{
    --ml-table-height:clamp(355px,calc(100dvh - 300px),465px);
  }
}

/* Oyuncuların topladığı kartlar, her birinin kendi rumuzunun sağında.
   Görsel yığın sayacı sunucudan gelen capturedCount değerini gösterir. */
body.is-playing .salon-captured-stack{
  position:absolute;
  z-index:3;
  left:calc(50% + 110px);
  width:43px;
  height:57px;
  border:2px solid #f2d5ae;
  border-radius:6px;
  background:repeating-linear-gradient(45deg,#7c2330 0 6px,#e1a9b1 6px 7px,#7c2330 7px 13px);
  box-shadow:3px 3px 0 #ead0a5,6px 6px 0 #6d2431,0 7px 15px #0009;
  pointer-events:none;
}
body.is-playing .salon-captured-stack::before{
  content:"";position:absolute;inset:4px;border:1px solid #ffe0b7;border-radius:3px;
}
body.is-playing .salon-captured-stack small{
  position:absolute;top:-17px;left:50%;transform:translateX(-50%);
  white-space:nowrap;font-size:9px;color:#f6ddb0;text-shadow:0 1px 3px #000;
}
body.is-playing .salon-captured-stack strong{
  position:absolute;bottom:-10px;right:-10px;min-width:23px;min-height:23px;
  display:grid;place-items:center;border:1px solid #e7b96b;border-radius:50%;
  background:#092438;color:#ffe0a1;font:700 12px Georgia,serif;
}
body.is-playing .salon-captured-stack-opponent{top:4%}
body.is-playing .salon-captured-stack-me{
  bottom:calc(3% + clamp(60px,11vh,80px) + 14px);
}
@media (min-width:901px) and (max-width:1060px){
  body.is-playing .salon-captured-stack{left:calc(50% + 103px)}
}
@media (max-width:900px){
  body.is-playing .salon-captured-stack{left:calc(50% + 90px);width:30px;height:42px}
  body.is-playing .salon-captured-stack small{font-size:8px}
  body.is-playing .salon-captured-stack-me{
    bottom:calc(3% + clamp(51px,9vh,71px) + 14px);
  }
}
@media (max-width:390px){
  body.is-playing .salon-captured-stack{left:auto;right:4%}
  body.is-playing .salon-captured-stack-me{bottom:calc(3% + 52px + 12px)}
}

/* Kapalı deste, dağıtan oyuncunun solunda; oynanan açık kart merkezde kalır.
   Dağıtan=her maçın ilk oynamayan oyuncusu, sunucu oyuncu dizisinin ikinci elemanı.
   Rövanşta sunucunun zaten döndürdüğü başlangıç oyuncusundan belirlenir. */
body.is-playing .salon-table-felt .center-play{display:contents}
body.is-playing .salon-table-felt .center-play .table-card-wrap{
  position:absolute;
  left:50%;
  top:51%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  z-index:2;
}
body.is-playing .salon-table-felt .center-play .game-deck{
  position:absolute;
  left:calc(50% - 168px);
  top:51%;
  transform:translateY(-50%);
  z-index:3;
}
body.is-playing .salon-table-felt[data-dealer="opponent"] .center-play .game-deck{
  top:4%;
  transform:none;
}
body.is-playing .salon-table-felt[data-dealer="me"] .center-play .game-deck{
  top:auto;
  bottom:calc(3% + clamp(60px,11vh,80px) + 14px);
  transform:none;
}
@media (max-width:900px){
  body.is-playing .salon-table-felt .center-play .table-card-wrap{top:46%}
  body.is-playing .salon-table-felt .center-play .game-deck{left:calc(50% - 130px)}
  body.is-playing .salon-table-felt[data-dealer="me"] .center-play .game-deck{
    bottom:calc(3% + clamp(51px,9vh,71px) + 14px);
  }
}
@media (max-width:390px){
  body.is-playing .salon-table-felt .center-play .game-deck{left:4%}
  body.is-playing .salon-table-felt .center-play .table-card-wrap{top:45%}
  body.is-playing .salon-table-felt[data-dealer="me"] .center-play .game-deck{
    bottom:calc(3% + 52px + 12px);
  }
}
