/* swmfly.css 2026-10-25c layout-fly v3: rim+plate same box; one size; phone lobby FAB.
   Rollback: /root/backups/stakewheel-layout-fly-20261025/rollback.sh */

html.swm [data-swl=wheelcol],
html.swl [data-swl=wheelcol],
html.swd [data-swl=wheelcol]{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding-left:0!important;
  padding-right:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html.swd [data-swl=wheelcol]::before{
  left:50%!important;
  top:50%!important;
  width:min(92vw,min(56svh,340px))!important;
  height:min(92vw,min(56svh,340px))!important;
  transform:translate(-50%,-50%)!important;
}
@media (max-width:1023px){
  html.swm [data-swl=sec] .flex-1.min-w-0,
  html.swm [data-swl=sec] .flex-1.min-w-0>div.relative{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}
html.swm [data-swl=wheel],
html.swl [data-swl=wheel],
html.swd [data-swl=wheel],
html.swm [data-swl=wheel].aspect-square,
html.swl [data-swl=wheel].aspect-square{
  --swfly: min(86vw, min(56svh, 340px));
  width:var(--swfly)!important;
  height:var(--swfly)!important;
  max-width:86vw!important;
  max-height:56svh!important;
  min-width:200px!important;
  min-height:200px!important;
  aspect-ratio:1/1!important;
  margin:0 auto!important;
  align-self:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  overflow:visible!important;
}
@media (max-width:639px){
  html.swm [data-swl=wheel],
  html.swl [data-swl=wheel],
  html.swd [data-swl=wheel]{
    --swfly: min(88vw, min(50svh, 320px));
    width:var(--swfly)!important;
    height:var(--swfly)!important;
    max-width:90vw!important;
    max-height:52svh!important;
  }
  html.swd [data-swl=wheelcol]::before{
    width:min(90vw,min(52svh,320px))!important;
    height:min(90vw,min(52svh,320px))!important;
  }
}
html.swm [data-swl=wheel] > .relative,
html.swl [data-swl=wheel] > .relative,
html.swd [data-swl=wheel] > .relative{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  transform:none!important;
}
html.swm [data-testid=wheel-plate],
html.swl [data-testid=wheel-plate],
html.swd [data-testid=wheel-plate]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  transform-origin:center center!important;
}
html.swm [data-testid=wheel-plate] > svg,
html.swl [data-testid=wheel-plate] > svg,
html.swd [data-testid=wheel-plate] > svg{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
}
@media (max-width:767px){
  #swp{
    left:4px!important;
    right:auto!important;
    bottom:6%!important;
    max-width:72px!important;
  }
  #swp img{width:48px!important;height:48px!important}
  .swp-b{
    left:52px!important;
    right:auto!important;
    bottom:44px!important;
    max-width:min(180px,55vw)!important;
  }
  .swp-tip-box{left:52px!important;right:auto!important}
  html.swd #scdo-pc,
  html.swd #scdo-pc.sav-float,
  html.swd #scdo-pc.swd-chat-pinned,
  html.swd #scdo-pc.swd-chat-float{
    position:fixed!important;
    left:10px!important;
    right:auto!important;
    top:auto!important;
    bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    max-width:48px!important;
    max-height:48px!important;
    z-index:55!important;
    overflow:visible!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  html.swd #scdo-pc .pc-bubble{
    display:flex!important;
    width:44px!important;
    height:44px!important;
    font-size:20px!important;
  }
  html.swd #scdo-pc .pc-panel,
  html.swd #scdo-pc.sav-float .pc-panel,
  html.swd #scdo-pc.swd-chat-pinned .pc-panel,
  html.swd #scdo-pc.swd-chat-float .pc-panel,
  html.swd body:has(#scdo-lp-sel) #scdo-pc .pc-panel{
    display:none!important;
  }
  html.swd #scdo-pc[data-open="1"],
  html.swd #scdo-pc.swd-phone-open{
    left:6px!important;
    right:6px!important;
    top:auto!important;
    bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    height:min(42svh,340px)!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:min(42svh,340px)!important;
    z-index:2147483100!important;
  }
  html.swd #scdo-pc[data-open="1"] .pc-bubble,
  html.swd #scdo-pc.swd-phone-open .pc-bubble{display:none!important}
  html.swd #scdo-pc[data-open="1"] .pc-panel,
  html.swd #scdo-pc.swd-phone-open .pc-panel,
  html.swd #scdo-pc[data-open="1"].sav-float .pc-panel{
    display:flex!important;
    position:relative!important;
    left:0!important;right:0!important;top:0!important;bottom:0!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
  }
  html.swd #scdo-pc .pc-x{display:flex!important}
  html.swd.swd-lobby-gutter #root,
  html.swd.swd-lobby-gutter #sav-grid{
    padding-right:0!important;
  }
}
