/* sw-hubfix-20261106 hub2 — stake-only hub + t196u alignment / even-px / no overlay loops */
html.swd .swr-hub::after,
html.swd [data-testid=wheel-hub-stake]::after,
.swr-hub::after,
[data-testid=wheel-hub-stake]::after,
html[lang^="zh"] .swr-hub::after,
html.zh .swr-hub::after,
html[lang^="zh"] [data-testid=wheel-hub-stake]::after,
html.zh [data-testid=wheel-hub-stake]::after{
  content:none!important;display:none!important;visibility:hidden!important;
}
.swr-hub > small:first-of-type,
[data-testid=wheel-hub-stake] > small:first-of-type{display:none!important}
.swr-hub > small:last-of-type,
[data-testid=wheel-hub-stake] > small:last-of-type{
  display:block!important;font:800 9px/1.05 system-ui,sans-serif!important;color:#fde68a!important;
  text-transform:uppercase!important;margin:0!important;padding:0!important;
  text-align:center!important;line-height:1.05!important;
}
[data-testid=hub-emblem]{display:none!important;visibility:hidden!important;opacity:0!important}

/* Shared square origin: even pixels, centered in the column */
#root .aspect-square.relative,
html.swd .aspect-square.relative,
html.sw-spinfix .aspect-square.relative{
  position:relative!important;
  aspect-ratio:1 / 1!important;
  margin-left:auto!important;
  margin-right:auto!important;
  width:calc(2px * round(var(--swfly, 320px) / 2px))!important;
  height:calc(2px * round(var(--swfly, 320px) / 2px))!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Spin only via transform (React inline rotate). Promote a compositor layer. */
#root [data-testid=wheel-plate],
html.swd [data-testid=wheel-plate]{
  transform-origin:center center!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* Inner cap + stake badge share the same 50% + translate(-50%,-50%) origin */
#root [data-testid=hub-cap],
html.swd [data-testid=hub-cap],
#root .swr-hub,
html.swd .swr-hub,
#root [data-testid=wheel-hub-stake],
html.swd [data-testid=wheel-hub-stake]{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  padding:0!important;
  transform:translate(-50%,-50%)!important;
  -webkit-transform:translate(-50%,-50%)!important;
  transform-origin:center center!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:0!important;
  box-sizing:border-box!important;
  width:40px!important;
  height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
}

/* When supported, pin the stake badge to the spinning plate's own center
   (it lives in a wider sibling column than the plate). */
#root [data-testid=wheel-plate]{anchor-name:--sw-plate}
@supports (left: anchor(center)){
  #root .swr-hub,
  html.swd .swr-hub,
  #root [data-testid=wheel-hub-stake],
  html.swd [data-testid=wheel-hub-stake]{
    position-anchor:--sw-plate;
    left:anchor(center)!important;
    top:anchor(center)!important;
    transform:translate(-50%,-50%)!important;
  }
}

/* Pointer stays on the top rim, centered horizontally on the same square */
#root .aspect-square.relative:has(> svg.pointer-glow),
#root .aspect-square.relative :has(> svg.pointer-glow){
  position:absolute!important;
  left:50%!important;
  top:0!important;
  right:auto!important;
  bottom:auto!important;
  translate:-50% -8px!important;
  transform-origin:center top!important;
}

/* On-wheel "Auto demo" chip — keep the Demo badge above the wheel instead */
#root [data-testid=attract-label]{
  display:none!important;
}

/* Captain Whiskers status line: reserve height so copy changes don't shove the wheel */
#root .w-full.md\:w-60 p,
#root [class*="md:w-60"] p{
  min-height:24px;
  line-height:24px;
}


/* t197u freeze4 — ONE hub ring (重影 fix)
   hub-cap = silent plate plug (no gold rim/glow).
   .swr-hub = the only amber stake ring, same even 40px box, shared 50% origin. */
#root [data-testid=hub-cap],
html.swd [data-testid=hub-cap],
html.sw-spinfix [data-testid=hub-cap],
[data-testid=hub-cap],
[data-testid=hub-cap].w-20,
[data-testid=hub-cap].h-20{
  box-shadow:none!important;
  border:none!important;
  outline:none!important;
  filter:none!important;
  background:radial-gradient(circle at 40% 35%,#1e293b 0%,#0b1220 75%)!important;
  z-index:5!important;
  width:40px!important;height:40px!important;
  max-width:40px!important;max-height:40px!important;
  min-width:0!important;min-height:0!important;
  padding:0!important;
}
#root .swr-hub,
html.swd .swr-hub,
html.sw-spinfix .swr-hub,
#root [data-testid=wheel-hub-stake],
html.swd [data-testid=wheel-hub-stake],
.swr-hub,
[data-testid=wheel-hub-stake]{
  z-index:14!important;
  width:40px!important;height:40px!important;
  max-width:40px!important;max-height:40px!important;
  min-width:0!important;min-height:0!important;
  padding:0!important;
  border:2px solid #f59e0b!important;
  background:radial-gradient(circle at 40% 32%,#1e293b 0%,#080b11 72%)!important;
  box-shadow:0 0 10px rgba(245,158,11,.28),inset 0 0 8px rgba(0,0,0,.55)!important;
  line-height:1!important;
}
@media (max-width:640px){
  #root [data-testid=hub-cap],
  html.swd [data-testid=hub-cap],
  [data-testid=hub-cap],
  #root .swr-hub,
  html.swd .swr-hub,
  .swr-hub,
  #root [data-testid=wheel-hub-stake],
  [data-testid=wheel-hub-stake]{
    width:40px!important;height:40px!important;
    max-width:40px!important;max-height:40px!important;
  }
}

/* t198u freeze5 — layout restore / dedupe (版面排序乱) */
/* Undo sav-grid wrapper if an older tab created it */
#sav-grid,#sav-left,#sav-center,#sav-right{display:contents!important}
body.sw-react-ready #sav-live,
body.sw-react-ready #sav-live[data-sw-hide],
#sav-live[data-sw-hide]{
  display:none!important;visibility:hidden!important;height:0!important;max-height:0!important;
  overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;
}
/* Advanced verify section stays available but collapsed out of the lobby column */
body.sw-react-ready #sav-sec{
  max-width:42rem;margin:16px auto 0;clear:both;
}
/* One Demo chrome: React mode toggle + demo-banner only */
body.sw-react-ready #swm-tabs,
body.sw-react-ready #swm-banner-fix,
body.sw-react-ready #swm-play,
body.sw-react-ready #swm-line,
body.sw-react-ready #swm-more{
  display:none!important;visibility:hidden!important;height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;
}
/* Drop stray · RTP 95% overlay stamps (header already has RTP 95.00%) */
[data-sw-p0-rtp]{/* cleaned by p0 JS */}
