/* Online Satranç - masa yerleşimi (oyun.css üzerine). Tahta boyu kapsayıcı sorgusuyla (cq) hesaplanır. */
.onOyun>.sOn{flex:1;min-height:0;width:100%;container-type:size;container-name:son;position:relative}
.sIc{--b:min(94vw,calc(100vh - 300px),620px);--b:min(calc(100cqw - 14px),calc(100cqh - 168px),640px);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 7px}
.sIc>*{flex:0 0 auto}
.sOn .sTahta{touch-action:none;-webkit-touch-callout:none}
.sOn .sOyuncu{min-height:38px;padding:4px 6px 4px 10px;gap:7px}
.sOn .sOyuncu .ad{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:0 1 auto}
.sOn .sOyuncu .alinan{flex:1 1 auto;min-width:0;text-align:right}
.sOn .sSaat{font:800 20px/1 ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;background:#0008;color:#cfcfcf;border-radius:8px;padding:6px 9px;min-width:74px;text-align:center;flex:0 0 auto;letter-spacing:.5px}
.sOn .sOyuncu.sirada .sSaat{background:#f0d9b5;color:#1b1b1b}
.sOn .sOyuncu.sirada .sSaat.az{background:#e53935;color:#fff;animation:sAz 1s steps(2) infinite}
.sOn .sSaat.yok{font-size:16px;min-width:46px}
@keyframes sAz{50%{background:#b71c1c}}
.sOn .sOyuncu .kopuk{font-size:13px;color:#ffb4a8}
.sOnPanel{width:var(--b);display:flex;flex-direction:column;gap:5px;min-height:0}
.sOn .sAlt{width:100%;flex-wrap:nowrap}
.sOn .sDurum{min-width:0;font-size:15px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sOn .sAlt .btn{flex:0 0 auto;padding:7px 10px;white-space:nowrap}
.sOn .sAlt .btn[disabled]{opacity:.45}
.sTeklif{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#2e7d3233;border:2px solid #66bb6a;border-radius:12px;padding:6px 8px;font-weight:800;color:#e8ffe9;animation:sTek .5s ease}
.sTeklif span{flex:1 1 150px}
@keyframes sTek{from{transform:scale(.95);opacity:0}}
.sOn .sHamleler{width:100%;font:700 13px/1.6 Nunito,sans-serif;white-space:nowrap;overflow-x:auto;overflow-y:hidden;min-height:22px}
.sHamleler .hn{display:inline-block;margin-right:8px}
.sHamleler .hn b{color:#888;margin:0 3px 0 0}
.sHamleler i{font-style:normal;padding:0 3px;border-radius:4px}
.sHamleler i.son{background:#f6eb72;color:#1b1b1b}
.sKare.surukle .sTas{opacity:.3}
.sKare.ustunde{box-shadow:inset 0 0 0 4px #ffffffaa}
.sHayalet{position:fixed;z-index:60;pointer-events:none;transform:translate(-50%,-55%) scale(1.15);line-height:1;font-family:'DejaVu Sans','Segoe UI Symbol','Apple Symbols','Noto Sans Symbols2',sans-serif}
/* bekleme ekranı: süre seçimi */
.sSureSec{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:6px 0 10px}
.sSureSec button{font:800 15px Nunito,sans-serif;min-width:64px;padding:9px 10px;border-radius:12px;border:2px solid var(--cizgi);background:#0d1328;color:#fff;cursor:pointer}
.sSureSec button.aktif{background:#b58863;border-color:#f0d9b5;color:#1b1b1b}
.sSureSec button[disabled]{cursor:default;opacity:.55}
.sSureSec button.aktif[disabled]{opacity:1}
.sBekleNot{font-size:13px;color:var(--soluk);margin:2px 0 8px}
.sTahtaGor{position:absolute;right:10px;top:10px;z-index:35}
.onBekle.sSaydam{opacity:0;pointer-events:none}
/* yatay ekran / masaüstü: tahta solda, oyuncular ve hamle listesi sağda */
@container son (min-aspect-ratio: 6/5) {
  .sIc{--b:min(calc(100cqh - 14px),calc(100cqw - 250px),700px);display:grid;grid-template-columns:var(--b) minmax(220px,340px);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"tahta rakip" "tahta panel" "tahta ben";column-gap:12px;row-gap:6px;align-content:center;justify-content:center}
  .sIc>.sTahta{grid-area:tahta}
  .sIc>#pRakip{grid-area:rakip;width:100%}
  .sIc>#pBen{grid-area:ben;width:100%}
  .sIc>.sOnPanel{grid-area:panel;width:100%;height:100%}
  .sOn .sAlt{flex-wrap:wrap}
  .sOn .sDurum{flex:1 1 100%;-webkit-line-clamp:3}
  .sOn .sHamleler{flex:1;white-space:normal;overflow-y:auto;overflow-x:hidden;background:#0004;border-radius:10px;padding:6px 8px}
  .sHamleler .hn{display:block;margin:0}
}
@container son (min-aspect-ratio: 6/5) and (max-height: 430px) {
  .sIc{--b:min(calc(100cqh - 8px),calc(100cqw - 230px));padding:4px;row-gap:4px}
  .sOn .sOyuncu{min-height:32px;padding:2px 4px 2px 8px}
  .sOn .sSaat{font-size:17px;padding:4px 7px;min-width:62px}
  .sOn .sAlt .btn .sYazi{display:none}
  .sOn .sDurum{font-size:13px}
  .sOn .sHamleler{font-size:12px;line-height:1.45}
}
@container son (max-aspect-ratio: 6/5) and (max-width: 440px) {
  .sOn .sAlt .btn .sYazi{display:none}
  .sOn .sSaat{font-size:18px;min-width:66px;padding:5px 7px}
}
