/* 映像をズームのように盤の上に浮かせる（ポーカー・CORPORATE・七並べ）。ドラッグで動かせる。盤は、その分を最大限使う。 */
.screen.room.playing .table.vfloat>.grid{position:fixed!important;z-index:60;right:16px;bottom:92px;display:flex!important;flex-direction:column;flex-wrap:nowrap;gap:8px;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px;background:#17151Fd9;border:3px solid #000;border-radius:20px;box-shadow:0 6px 0 #000,0 16px 32px #0009;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible!important}
.screen.room.playing .table.vfloat>.grid.dragging{cursor:grabbing;box-shadow:0 8px 0 #000,0 24px 40px #000b}
.screen.room.playing .table.vfloat>.grid>.tile{width:152px!important;height:106px!important;max-height:none!important;aspect-ratio:auto!important;flex:none;border-radius:14px}
.screen.room.playing .table.vfloat>.grid .fan{display:flex!important;transform:scale(.8);transform-origin:bottom center}
.screen.room.playing .table.vfloat>.grid .avatar{width:48px!important;min-width:48px!important;font-size:22px!important}
.screen.room.playing .table.vfloat{padding-top:12px}

/* 映像を隠す／出すボタン: 枠のいちばん下。枠ごと動かせる */
.vf-toggle{display:none}
.screen.room.playing .table.vfloat>.grid>.vf-toggle{display:block;flex:none;width:100%;min-height:30px;padding:0 10px;border:3px solid #000;border-radius:10px;background:#2A2640;color:#fff;font:inherit;font-weight:900;font-size:12px;box-shadow:0 3px 0 #000;cursor:pointer}
.screen.room.playing .table.vfloat.vhide>.grid>.tile{display:none!important}
.screen.room.playing .table.vfloat.vhide>.grid{padding:4px;gap:0}

/* ===== スマホ: 映像は、上に並べて見せる（顔の上に文字をかぶせない）。動かすと、ふつうの浮かせ表示になる ===== */
@media (max-width:699px){
  .screen.room.playing .table.vfloat>.grid{flex-direction:row;flex-wrap:wrap;justify-content:center;left:8px!important;right:8px;top:70px;bottom:auto;width:auto!important;gap:6px;padding:6px}
  .screen.room.playing .table.vfloat.vmoved>.grid{left:auto!important;width:auto!important;max-width:calc(100vw - 16px)}
  .screen.room.playing .table.vfloat>.grid>.tile{width:112px!important;height:106px!important;overflow:hidden}
  .screen.room.playing .table.vfloat>.grid>.tile video,.screen.room.playing .table.vfloat>.grid>.tile .botbox,.screen.room.playing .table.vfloat>.grid>.tile .conn{bottom:36px!important;height:calc(100% - 36px)!important}
  .screen.room.playing .table.vfloat>.grid>.tile .avatar{width:34px!important;min-width:34px!important;font-size:15px!important;top:calc((100% - 36px) / 2)!important}
  /* 名前・持ち点・ベット・枚数は、映像の下の帯に出す */
  .screen.room.playing .table.vfloat>.grid>.tile .nm{top:auto!important;bottom:20px;left:6px;max-width:calc(100% - 12px);padding:1px 8px;font-size:11px}
  .screen.room.playing .table.vfloat>.grid>.tile .pkinfo{position:absolute;left:6px;right:4px;bottom:2px;top:auto;display:flex!important;flex-wrap:nowrap;gap:4px;font-size:10px;overflow:hidden}
  .screen.room.playing .table.vfloat>.grid>.tile .pkinfo *{font-size:10px!important;padding:0 6px!important;line-height:16px;white-space:nowrap}
  .screen.room.playing .table.vfloat>.grid>.tile .fan{display:none!important}
  .screen.room.playing .table.vfloat>.grid>.tile .badge,.screen.room.playing .table.vfloat>.grid>.tile .cnt{top:4px!important;right:4px!important}
  .screen.room.playing .table.vfloat>.grid>.vf-toggle{width:100%;flex-basis:100%}
  .screen.room.playing .table.vfloat:not(.vmoved):has(.grid[data-game="corporate"]):has(.co2){padding-top:calc(var(--vfh,176px) + 28px)}
  /* まだ動かしていないあいだは、映像の分だけ、盤を下げる */
  .screen.room.playing .table.vfloat:not(.vmoved){padding-top:var(--vfh,176px)}
  .screen.room.playing .table.vfloat:not(.vmoved):has(>.grid[data-n="4"]),.screen.room.playing .table.vfloat:not(.vmoved):has(>.grid[data-n="5"]),.screen.room.playing .table.vfloat:not(.vmoved):has(>.grid[data-n="6"]){--vfh:288px}
}
@media (max-width:699px){
  .screen.room.playing .table.vfloat.vhide:not(.vmoved),.screen.room.playing .table.vfloat.vhide:not(.vmoved):has(.grid[data-game="corporate"]):has(.co2){padding-top:52px}
}
