/* swm2.css 2026-10-20 modetabs2: fit wheel+chips+SPIN on short screens (side-by-side on desktop), 52px tabs.
   Rollback: /root/backups/wheel-modetabs2-20261020/rollback.sh */
html.swm #swm-tabs button{min-height:52px!important}
html.swm [data-swl=sec]>[data-swl=other].flex>div:first-child{display:none!important}
@media (max-height:950px){
  html.swm [data-swl=sec]>[data-swl=terms],html.swm [data-swl=sec]>[data-swr=micro]{display:none!important}
}
@media (min-width:1024px) and (max-height:950px){
  html.swm main>[data-swl=sec]{max-width:980px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 360px;column-gap:24px;row-gap:6px!important;align-items:center}
  html.swm main>aside{max-width:980px!important}
  html.swm main[data-swl=main]{max-width:1020px!important}
  html.swm [data-swl=sec]>*{grid-column:1/-1;margin:0!important}
  html.swm #swm-tabs{grid-row:1}html.swm #swm-line{grid-row:2}html.swm #swm-more{grid-row:3}
  html.swm [data-swl=sec]>[data-swl=other].flex{grid-column:1;grid-row:4/span 2;justify-content:center}
  html.swm [data-swl=sec]>[data-swl=actions]{grid-column:2;grid-row:4;align-self:end}
  html.swm [data-swl=sec]>[data-swr=fair]{grid-column:2;grid-row:5;align-self:start;justify-self:center}
  html.swm [data-swl=sec]>[data-swr=hist]{grid-row:6}
  html.swm [data-swl=sec] .flex-1.min-w-0>div.relative{width:min(calc(100vh - 200px),460px)!important;max-width:none!important;margin:0 auto}
  html.swm [data-swl=sec] .swr-chips{flex-wrap:wrap;justify-content:center;width:100%}
}
@media (max-width:1023px) and (max-height:950px){
  html.swm [data-swl=sec] .flex-1.min-w-0>div.relative{width:min(calc(100vh - 430px),380px,88vw)!important;margin:0 auto}
}
/* side cards always after the game on short/mobile screens */
@media (max-width:1023px),(max-height:950px){
  html.swm [data-swl=sec]>#swl-cards,html.swm [data-swl=sec]>[data-testid=swl-cards],html.swm [data-swl=sec]>#swo-chip{order:60!important}
}
@media (max-width:639px){
  html.swm [data-swl=sec] .flex-1.min-w-0>div.relative{width:min(calc(100vh - 470px),340px,86vw)!important}
}
