/* swd.css 2026-10-23h — lobby RTP gutter (stable; jitter fix in swd.js).
   Presentation only. Rollback: /root/backups/stakewheel-lobby-jitter-20261023/rollback.sh */
html.swd,html.swd body{
  background:#05070c!important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%,rgba(245,158,11,.10),transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%,rgba(14,165,233,.05),transparent 50%)!important;
  background-attachment:fixed!important;
}

/* Soft glow behind the wheel */
html.swd [data-swl=wheelcol]{
  position:relative!important;
  isolation:isolate;
}
html.swd [data-swl=wheelcol]::before{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:min(120%,520px);height:min(120%,520px);
  transform:translate(-50%,-52%);
  border-radius:50%;
  background:radial-gradient(circle,
    rgba(252,211,77,.28) 0%,
    rgba(245,158,11,.14) 32%,
    rgba(245,158,11,.04) 55%,
    transparent 72%);
  pointer-events:none;
  z-index:0;
  filter:blur(2px);
}
html.swd [data-swl=wheelcol]>*{position:relative;z-index:1}
html.swd [data-swl=wheel]{
  filter:drop-shadow(0 8px 28px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(245,158,11,.18));
}

/* Mute miss slices (data-prize=0); boost win slices */
html.swd [data-swl=wheel] g[data-prize="0"]>path:first-of-type{
  fill:#0a0e16!important;
  stroke:#1e293b!important;
  stroke-opacity:.45!important;
}
html.swd [data-swl=wheel] g[data-prize="0"] text{
  fill:#64748b!important;
  opacity:.72!important;
}
html.swd [data-swl=wheel] g:not([data-prize="0"])>path:first-of-type{
  filter:saturate(1.2) brightness(1.06);
}
html.swd [data-swl=wheel] g:not([data-prize="0"]) text{
  filter:drop-shadow(0 0 2px rgba(0,0,0,.8));
}
html.swd .win-slice{
  filter:drop-shadow(0 0 8px rgba(253,224,71,.85))!important;
}

/* Stronger pointer + hub */
html.swd .pointer-glow{
  filter:drop-shadow(0 0 10px rgba(245,158,11,.85)) drop-shadow(0 4px 6px rgba(0,0,0,.65));
  transform:scale(1.14);
  transform-origin:top center;
}
html.swd [data-testid=hub-cap]{
  filter:drop-shadow(0 0 14px rgba(245,158,11,.55)) drop-shadow(0 2px 6px rgba(0,0,0,.6));
}
html.swd .swr-hub{
  width:82px!important;height:82px!important;
  border:2.5px solid #f59e0b!important;
  background:radial-gradient(circle at 40% 35%,#1e293b 0%,#0b0f19 70%)!important;
  box-shadow:0 0 22px rgba(245,158,11,.45),inset 0 0 14px rgba(0,0,0,.55)!important;
}
html.swd .swr-hub b{font-size:22px!important;color:#fde68a!important}
html.swd .swr-hub small{color:#94a3b8!important}

/* Result card pop */
html.swd .swr-card{
  animation:swd-pop .42s cubic-bezier(.2,1.35,.4,1)!important;
  border-color:#475569;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
}
html.swd .swr-card.up{
  border-color:#22c55e!important;
  box-shadow:0 0 0 1px #16a34a55,0 12px 32px rgba(34,197,94,.2)!important;
}
@keyframes swd-pop{
  from{transform:scale(.9) translateY(14px);opacity:0}
  to{transform:none;opacity:1}
}
@media (prefers-reduced-motion:reduce){
  html.swd .swr-card{animation:none!important}
  html.swd .pointer-glow{transform:none}
}

/* Chip rail: equal chips, clear selected */
html.swd .swr-chips,
html.swd .sw1-row{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  gap:8px!important;
}
html.swd .swr-chip{
  flex:0 0 auto!important;
  min-width:58px!important;
  width:58px!important;
  height:48px!important;
  padding:0!important;
  border-radius:999px!important;
  border:2px solid #334155!important;
  background:linear-gradient(180deg,#1a2336,#0f172a)!important;
  color:#e2e8f0!important;
  font:900 15px/1 system-ui,sans-serif!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
html.swd .swr-chip.on{
  background:linear-gradient(180deg,#fde68a,#f59e0b)!important;
  color:#1a1000!important;
  border-color:#fcd34d!important;
  transform:translateY(-3px) scale(1.08)!important;
  box-shadow:0 6px 16px rgba(245,158,11,.4)!important;
}
html.swd .swr-oth,html.swd .swm-max{min-width:58px!important}
html.swd .swm-max{
  border:2px solid #475569!important;
  background:#111827!important;
  color:#cbd5e1!important;
  box-shadow:none!important;
}

/* One primary yellow CTA; Connect / tip / wallet secondary outline */
html.swd .swr-cta{
  background:linear-gradient(180deg,#fcd34d,#f59e0b)!important;
  color:#1a1000!important;
  border:0!important;
  box-shadow:0 4px 0 #b45309,0 0 24px rgba(245,158,11,.4)!important;
  letter-spacing:.04em!important;
}
html.swd .swr-cta:disabled{
  background:#1f2937!important;
  color:#94a3b8!important;
  box-shadow:none!important;
}
/* outline secondary: shared connect + tip circle + chat connect */
html.swd .scdo-connect-btn,
html.swd #scdo-pc .pc-connect,
html.swd .swl-card .swl-btn.scdo-connect-btn{
  background:transparent!important;
  color:#fcd34d!important;
  border:2px solid #f59e0b!important;
  box-shadow:none!important;
  font-weight:800!important;
}
html.swd .scdo-connect-btn:hover,
html.swd #scdo-pc .pc-connect:hover{
  background:rgba(245,158,11,.12)!important;
}
html.swd #ct-btn{
  background:transparent!important;
  color:#fcd34d!important;
  border:2px solid #f59e0b88!important;
  box-shadow:0 2px 10px rgba(0,0,0,.35)!important;
}

/* Type hierarchy: pool number hero; labels quieter */
html.swd #sav-pool{
  background:radial-gradient(ellipse at center,#3a2a08 0%,#05070c 72%)!important;
  border-bottom:1px solid #f59e0b55!important;
  padding:14px 8px 12px!important;
}
html.swd #sav-pool .sav-pl{
  font:700 11px/1.2 system-ui,sans-serif!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  color:#a8a29e!important;
}
html.swd #sav-pool .sav-pn{
  font:900 clamp(28px,8vw,46px)/1.1 system-ui,sans-serif!important;
  filter:drop-shadow(0 0 12px #f59e0baa)!important;
}
html.swd .swr-bal-l,
html.swd .swr-hist-l,
html.swd .swr-card-h,
html.swd #sav-live h3,
html.swd .sav-grid small{
  font-size:11px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  color:#78716c!important;
  font-weight:700!important;
}
html.swd .swr-bal-n{font-size:clamp(26px,5vw,34px)!important;color:#fff!important}

/* History strip: tighter casino pills */
html.swd .swr-pills{gap:5px!important;padding:4px 0 2px!important}
html.swd .swr-pill{
  padding:4px 10px!important;
  font:800 12px/1.25 system-ui,sans-serif!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
html.swd .swr-pill.up{
  color:#86efac!important;border-color:#166534!important;
  background:linear-gradient(180deg,#064e3b,#052e16)!important;
}
html.swd .swr-pill.dn{
  color:#94a3b8!important;border-color:#1e293b!important;
  background:#0b1220!important;opacity:.85;
}

/* Capt. Paws / tip: never cover the wheel */
html.swd #swp{
  position:static!important;
  margin:8px auto 4px!important;
  opacity:.92;
}
html.swd body.sav-spinning #swp,
html.swd body.swd-spin #swp,
html.swd [data-mood=spin] #swp{
  opacity:.35;pointer-events:none;
}
html.swd body.sav-spinning .swp-b,
html.swd body.swd-spin .swp-b{display:none!important}
html.swd [data-swl=catcol]{
  order:60!important;
  max-width:560px;
  margin:0 auto!important;
  opacity:.9;
}
html.swd [data-testid=tip-captain],
html.swd [data-testid=cat-open]{
  font-size:12px!important;
}

/* Narrow left live-data so wheel stays hero */
@media (min-width:1100px){
  html.swd #sav-grid{
    grid-template-columns:minmax(200px,236px) minmax(0,1fr)!important;
  }
  html.swd #sav-left #sav-live{
    font-size:11px!important;
    padding:8px!important;
    opacity:.92;
  }
  html.swd #sav-center #root main{max-width:920px!important}
}

/* Quiet secondary chrome */
html.swd #sgl-bar{
  background:#080b11!important;
  border-bottom-color:#f59e0b33!important;
  color:#fbbf24!important;
  font-weight:600!important;
}



/* 2026-10-23c: floating draggable STAKE hub + right chat strip (not CSS-locked) */
html.swd .swr-hub.swd-hub-float,
html.swd [data-testid=hub-cap].swd-hub-float{
  position:fixed!important;
  transform:none!important;
  pointer-events:auto!important;
  z-index:55!important;
  margin:0!important;
}
html.swd .swd-hub-handle{
  position:absolute;
  top:-6px;right:-6px;
  width:22px;height:22px;
  border-radius:50%;
  border:1px solid #f59e0b99;
  background:#0b1220ee;
  color:#fcd34d;
  font:700 12px/20px system-ui,sans-serif;
  padding:0;
  cursor:grab;
  z-index:56;
  pointer-events:auto;
  box-shadow:0 2px 8px rgba(0,0,0,.45);
}
html.swd .swd-hub-handle:active{cursor:grabbing}
/* Hub body stays mostly non-interactive so stake CTA elsewhere is clear;
   handle alone starts drag */
html.swd .swr-hub.swd-hub-float > *:not(.swd-hub-handle),
html.swd [data-testid=hub-cap].swd-hub-float > *:not(.swd-hub-handle){
  pointer-events:none;
}

/* Chat: always-on floating vertical strip; default right; user-draggable */
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;
  /* default tall-narrow strip; JS overrides from localStorage / resize / clamp */
  width:min(250px,86vw);
  height:min(78vh,640px);
  height:min(78dvh,640px);
  min-width:180px;
  min-height:150px;
  max-width:calc(100vw - 20px);
  max-width:calc(100dvw - 20px);
  max-height:calc(100vh - 20px);
  max-height:calc(100dvh - 20px);
  z-index:60!important;
  bottom:auto!important;
  box-sizing:border-box!important;
  /* soft safe-area hint; JS clamp is authoritative */
  margin:0;
}
html.swd #scdo-pc .pc-bubble{display:none!important}
html.swd #scdo-pc .pc-x{display:none!important}
/* Fill #scdo-pc; beat scdo-fit body:has(#scdo-lang-bar|#sstd-top|#scdo-lp-sel)
   and swautoverify #scdo-pc.sav-float .pc-panel (same/lower specificity otherwise). */
html.swd #scdo-pc .pc-panel,
html.swd #scdo-pc[data-open="1"] .pc-panel,
html.swd #scdo-pc.swd-chat-pinned .pc-panel,
html.swd #scdo-pc.sav-float .pc-panel,
html.swd body:has(#scdo-lang-bar) #scdo-pc .pc-panel,
html.swd body:has(#sstd-top) #scdo-pc .pc-panel,
html.swd body:has(#scdo-lp-sel) #scdo-pc .pc-panel{
  display:flex!important;
  position:relative!important;
  left:0!important;right:auto!important;top:0!important;bottom:auto!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  box-sizing:border-box!important;
  z-index:61!important;
}
html.swd #scdo-pc .pc-head{
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  gap:6px;
}
html.swd #scdo-pc .pc-head:active{cursor:grabbing}
html.swd .swd-drag-grip{
  color:#f59e0b;
  font-size:12px;
  letter-spacing:-2px;
  opacity:.85;
  margin-right:4px;
}
@media (max-width:767px){
  html.swd #scdo-pc,
  html.swd #scdo-pc.swd-chat-pinned,
  html.swd #scdo-pc.swd-chat-float{
    /* first-paint bottom strip before JS; leave room for wheel */
    width:calc(100vw - 20px);
    width:calc(100dvw - 20px);
    max-width:calc(100vw - 20px);
    height:min(40vh,360px);
    height:min(40dvh,360px);
    left:10px;
    right:auto;
    bottom:max(10px, env(safe-area-inset-bottom, 0px));
    top:auto;
  }
}

/* Wallet choice panel */
#swd-wallet-pick{
  position:fixed;inset:0;z-index:2147483645;
  display:flex;align-items:center;justify-content:center;
  font:600 14px/1.4 system-ui,sans-serif;
}
#swd-wallet-pick .swd-wp-bg{
  position:absolute;inset:0;background:rgba(0,0,0,.55);
}
#swd-wallet-pick .swd-wp-card{
  position:relative;
  width:min(400px,92vw);
  padding:16px 16px 14px;
  border-radius:16px;
  background:#0b1220;
  border:1px solid #f59e0b88;
  box-shadow:0 16px 40px rgba(0,0,0,.55);
  color:#e2e8f0;
}
#swd-wallet-pick .swd-wp-h{
  display:flex;align-items:center;justify-content:space-between;
  font:800 16px/1.2 system-ui,sans-serif;color:#fde68a;margin-bottom:8px;
}
#swd-wallet-pick .swd-wp-x{
  background:none;border:0;color:#94a3b8;font-size:16px;cursor:pointer;padding:2px 6px;
}
#swd-wallet-pick .swd-wp-sub{margin:0 0 12px;color:#94a3b8;font-weight:500;font-size:13px}
#swd-wallet-pick .swd-wp-btn{
  display:block;width:100%;margin:0 0 8px;padding:12px 14px;
  border-radius:12px;border:2px solid #f59e0b;background:linear-gradient(180deg,#fcd34d,#f59e0b);
  color:#1a1000;font:800 14px/1.2 system-ui,sans-serif;cursor:pointer;text-align:left;
}
#swd-wallet-pick .swd-wp-btn2{
  background:transparent;color:#fcd34d;
}
#swd-wallet-pick .swd-wp-btn2:hover{background:rgba(245,158,11,.12)}
#swd-wallet-pick .swd-wp-fine{margin:6px 0 0;color:#64748b;font-size:11px;font-weight:500}

/* Chat resize handles — bottom / east / SE corner */
html.swd #scdo-pc .swd-chat-resize{
  position:absolute;
  z-index:62;
  touch-action:none;
  background:transparent;
}
html.swd #scdo-pc .swd-chat-resize-s{
  left:8px;right:18px;bottom:0;height:10px;
  cursor:ns-resize;
}
html.swd #scdo-pc .swd-chat-resize-e{
  top:28px;right:0;bottom:14px;width:10px;
  cursor:ew-resize;
}
html.swd #scdo-pc .swd-chat-resize-se{
  right:0;bottom:0;width:18px;height:18px;
  cursor:nwse-resize;
  background:linear-gradient(135deg,transparent 50%,#f59e0b88 50%,#f59e0b 100%);
  border-radius:0 0 12px 0;
  opacity:.85;
}
html.swd #scdo-pc .swd-chat-resize-se:hover,
html.swd #scdo-pc .swd-chat-resize-s:hover,
html.swd #scdo-pc .swd-chat-resize-e:hover{opacity:1}
html.swd #scdo-pc .pc-panel{overflow:hidden;}
/* Handles live inside .pc-panel; keep them above chat content */
html.swd #scdo-pc .pc-panel > .swd-chat-resize{pointer-events:auto;}


/* 2026-10-23g: reserve right strip for always-open lobby so RTP/fairness stay visible */
html.swd {
  --swd-lobby-gutter: 0px;
}
@media (min-width: 768px) {
  html.swd.swd-lobby-gutter #sav-grid,
  html.swd.swd-lobby-gutter #sav-center,
  html.swd.swd-lobby-gutter #root {
    box-sizing: border-box !important;
  }
  html.swd.swd-lobby-gutter #sav-grid {
    padding-right: var(--swd-lobby-gutter) !important;
  }
  /* React aside / honesty RTP often sit at the right of main — pull them in too */
  html.swd.swd-lobby-gutter #sav-center #root main,
  html.swd.swd-lobby-gutter #swh-odds,
  html.swd.swd-lobby-gutter [data-testid="swh-odds"],
  html.swd.swd-lobby-gutter [data-swl="aside"],
  html.swd.swd-lobby-gutter #sav-sec {
    max-width: 100%;
  }
  html.swd.swd-lobby-gutter #swh-odds,
  html.swd.swd-lobby-gutter [data-testid="swh-odds"] {
    margin-right: 0 !important;
  }
}
