/* Shared virtual walk stick — quiet glass (Familia), neon floor (Club), pond (Waitduck) */
.cs-walk-stick{
  --cs-stick-size: 118px;
  --cs-stick-knob: 44%;
  --cs-stick-ink: #efe6d4;
  --cs-stick-gold: #c4a97a;
  --cs-stick-moss: #1c2420;
  --cs-stick-glow: #c4a97a55;
  --cs-stick-face: #3a453ccc;
  --cs-stick-core: #121814f2;
  position:fixed;z-index:2147483000;
  left:max(14px, calc(env(safe-area-inset-left, 0px) + 10px));
  bottom:calc(var(--cs-bottom-clear, 92px) + 12px);
  width:var(--cs-stick-size);height:var(--cs-stick-size);
  touch-action:none;-webkit-user-select:none;user-select:none;
  pointer-events:auto!important;
  opacity:.92;
  transition:opacity .28s ease, filter .28s ease;
  -webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 16px 28px #00000055);
  /* No transform on the stick itself — scale fights finger coords and causes jumps. */
}
.cs-walk-stick[hidden]{display:none!important}
.cs-walk-stick.is-active{
  opacity:1;
  filter:drop-shadow(0 18px 32px #00000066);
}

.cs-walk-stick-base{
  position:relative;width:100%;height:100%;border-radius:50%;
  border:1px solid color-mix(in srgb, var(--cs-stick-gold) 48%, transparent);
  background:
    radial-gradient(circle at 50% 30%, #ffffff24 0%, transparent 42%),
    radial-gradient(circle at 50% 55%, var(--cs-stick-face) 0%, var(--cs-stick-core) 74%);
  box-shadow:
    0 0 0 1px #ffffff0d,
    inset 0 1px #ffffff2e,
    inset 0 -12px 22px #00000040;
  backdrop-filter:blur(14px) saturate(1.1);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  overflow:hidden;
}
.cs-walk-stick-base::before{
  content:"";position:absolute;inset:9%;border-radius:50%;
  border:1px solid #ffffff12;
  box-shadow:inset 0 0 0 1px #00000028;
  pointer-events:none;
}
.cs-walk-stick-aura{
  position:absolute;inset:-8%;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle, var(--cs-stick-glow) 0%, transparent 68%);
  opacity:0;transform:scale(.92);
  transition:opacity .28s ease, transform .35s ease;
}
.cs-walk-stick.is-active .cs-walk-stick-aura{
  opacity:.9;transform:scale(1);
}
.cs-walk-stick-ring{
  position:absolute;inset:20%;border-radius:50%;
  border:1px dashed color-mix(in srgb, var(--cs-stick-gold) 34%, transparent);
  pointer-events:none;opacity:.75;
  animation:cs-stick-ring 7.5s linear infinite;
}
.cs-walk-stick-cross{
  position:absolute;inset:0;pointer-events:none;opacity:.42;
  background:
    linear-gradient(var(--cs-stick-ink), var(--cs-stick-ink)) center / 1.5px 34% no-repeat,
    linear-gradient(var(--cs-stick-ink), var(--cs-stick-ink)) center / 34% 1.5px no-repeat;
}
.cs-walk-stick-ticks{
  position:absolute;inset:0;pointer-events:none;
}
.cs-walk-stick-ticks span{
  position:absolute;left:50%;top:50%;width:3px;height:9px;
  margin:-4.5px -1.5px;border-radius:2px;
  background:color-mix(in srgb, var(--cs-stick-gold) 62%, transparent);
  transform-origin:50% 0;
  box-shadow:0 0 6px color-mix(in srgb, var(--cs-stick-gold) 35%, transparent);
}
.cs-walk-stick-ticks span:nth-child(1){transform:translate(-50%,-44px)}
.cs-walk-stick-ticks span:nth-child(2){transform:translate(-50%,-44px) rotate(90deg)}
.cs-walk-stick-ticks span:nth-child(3){transform:translate(-50%,-44px) rotate(180deg)}
.cs-walk-stick-ticks span:nth-child(4){transform:translate(-50%,-44px) rotate(270deg)}

.cs-walk-stick-knob{
  position:absolute;left:50%;top:50%;
  width:var(--cs-stick-knob);height:var(--cs-stick-knob);
  border-radius:50%;
  transform:translate3d(-50%,-50%,0);
  will-change:transform;
  border:1px solid color-mix(in srgb, var(--cs-stick-gold) 58%, transparent);
  background:
    radial-gradient(circle at 33% 26%, #fff6e6ee 0%, #d2bf96cc 36%, #2f3a33f5 78%);
  box-shadow:
    0 8px 18px #00000075,
    0 0 0 3px #ffffff08,
    inset 0 1px #ffffff66,
    inset 0 -7px 12px #00000040;
  pointer-events:none;
  /* Never transition transform — lag + layout churn reads as jitter. */
  transition:box-shadow .22s ease, border-color .22s ease;
}
.cs-walk-stick-knob-core{
  position:absolute;inset:28%;border-radius:50%;
  background:radial-gradient(circle at 40% 35%, #ffffff55 0%, transparent 70%);
  pointer-events:none;
}
.cs-walk-stick.is-active .cs-walk-stick-knob{
  border-color:color-mix(in srgb, var(--cs-stick-gold) 80%, #fff);
  box-shadow:
    0 10px 22px #00000088,
    0 0 0 5px color-mix(in srgb, var(--cs-stick-gold) 22%, transparent),
    inset 0 1px #ffffff77,
    inset 0 -7px 12px #00000040;
}

/* Club neon floor */
body.cs-stick-club .cs-walk-stick,
.app.hall-club ~ .cs-walk-stick,
html.ou-hall-club .cs-walk-stick{
  --cs-stick-gold:#7ee7ff;
  --cs-stick-ink:#eaf7ff;
  --cs-stick-moss:#120a1c;
  --cs-stick-glow:#ff4da640;
  --cs-stick-face:#2a1638cc;
  --cs-stick-core:#0a0610f5;
  opacity:.94;
}
body.cs-stick-club .cs-walk-stick-base,
html.ou-hall-club .cs-walk-stick-base{
  border-color:#7ee7ff55;
  background:
    radial-gradient(circle at 50% 28%, #ff4da622 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, #2a1638cc 0%, #0a0610f5 74%);
  box-shadow:
    0 0 0 1px #7ee7ff18,
    inset 0 1px #ffffff22,
    inset 0 -12px 22px #00000055,
    0 0 24px #7ee7ff18;
}
body.cs-stick-club .cs-walk-stick-knob,
html.ou-hall-club .cs-walk-stick-knob{
  background:
    radial-gradient(circle at 33% 26%, #f3e9ffee 0%, #b07adccc 36%, #1a0f28f5 78%);
  border-color:#d4a0ff66;
}

/* Waitduck pond */
html.ou-hall-waitduck .cs-walk-stick,
.app.hall-waitduck ~ .cs-walk-stick{
  --cs-stick-gold:#8fd6b5;
  --cs-stick-ink:#e5f6ee;
  --cs-stick-moss:#0f221f;
  --cs-stick-glow:#5bb89244;
  --cs-stick-face:#1c3a35cc;
  --cs-stick-core:#0a1816f5;
}
html.ou-hall-waitduck .cs-walk-stick-base,
.app.hall-waitduck ~ .cs-walk-stick .cs-walk-stick-base{
  border-color:#8fd6b555;
  background:
    radial-gradient(circle at 50% 28%, #9fe0c220 0%, transparent 42%),
    radial-gradient(circle at 50% 55%, #1c3a35cc 0%, #0a1816f5 74%);
}
html.ou-hall-waitduck .cs-walk-stick-knob,
.app.hall-waitduck ~ .cs-walk-stick .cs-walk-stick-knob{
  background:
    radial-gradient(circle at 33% 26%, #e8fff5ee 0%, #7eb89acc 36%, #12302bf5 78%);
}

body.cs-dialog-visible .cs-walk-stick,
body.sansa-landing-active .cs-walk-stick,
.sansa-game.is-beading ~ .cs-walk-stick,
body:has(.sansa-game.is-beading) .cs-walk-stick,
body.cs-ou-overlay-open .cs-walk-stick{
  display:none!important;pointer-events:none!important
}

@keyframes cs-stick-ring{
  to{transform:rotate(360deg)}
}

@media (min-width:821px) and (pointer:fine){
  html:not(.is-mobile-h5) body:not(.is-mobile-h5) .cs-walk-stick{display:none!important}
}
@media (max-width:390px){
  .cs-walk-stick{--cs-stick-size:104px}
}
@media (max-width:340px){
  .cs-walk-stick{--cs-stick-size:92px}
}
@media (prefers-reduced-motion:reduce){
  .cs-walk-stick,.cs-walk-stick-knob,.cs-walk-stick-aura{transition:none}
  .cs-walk-stick-ring{animation:none}
}
