/* The native input remains a hidden state bridge for existing scene controllers. */
html body label.nq-motion-legacy{display:none!important}
html body button.nq-motion-switch{
  --motion-ink:#924820;--motion-glow:#e98237;--motion-fill:#fff3e8;--motion-edge:#e6b98e;
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
  width:auto;min-width:108px;min-height:38px;margin:0;padding:8px 11px;box-sizing:border-box;
  border:1px solid var(--motion-edge);border-radius:11px;background:var(--motion-fill);color:var(--motion-ink);
  box-shadow:inset 0 1px #ffffff55,0 3px 12px #35264109;
  font-family:inherit;font-size:12px;line-height:1.2;font-weight:600;white-space:nowrap;cursor:pointer;
  text-decoration:none;transform:none;transition:background .25s,border-color .25s,box-shadow .25s,transform .2s;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
html body button.nq-motion-switch[data-element="ice"]{--motion-ink:#23627e;--motion-glow:#61bada;--motion-fill:#eaf7ff;--motion-edge:#aad9ee}
html[data-theme="dark"] body button.nq-motion-switch,html body.yu7-selected button.nq-motion-switch,
html body.login-cyberspace button.nq-motion-switch{
  --motion-ink:#ffd6a6;--motion-glow:#ff9746;--motion-fill:#382219;--motion-edge:#a7663e;
  box-shadow:inset 0 1px #ffffff12,0 0 16px #ff94300b;
}
html[data-theme="dark"] body button.nq-motion-switch[data-element="ice"],html body.yu7-selected button.nq-motion-switch[data-element="ice"],
html body.login-cyberspace button.nq-motion-switch[data-element="ice"]{--motion-ink:#c8efff;--motion-glow:#88e1ff;--motion-fill:#162e40;--motion-edge:#427b93}
html body button.nq-motion-switch>svg{display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px var(--motion-glow))}
html body button.nq-motion-switch[data-element="fire"]>svg{fill:var(--motion-glow);fill-opacity:.2}
.nq-motion-indicator{display:block;width:4px;height:4px;flex:none;border-radius:50%;background:var(--motion-glow);box-shadow:0 0 7px var(--motion-glow)}
html body button.nq-motion-switch:hover{border-color:var(--motion-glow);box-shadow:inset 0 1px #ffffff33,0 0 19px color-mix(in srgb,var(--motion-glow) 26%,transparent)}
html body button.nq-motion-switch:active{transform:scale(.96)}
html body button.nq-motion-switch:focus-visible{outline:2px solid var(--motion-ink);outline-offset:3px}
/* The host screen supplies the background; only icon and edge carry ice/fire. */
html[data-theme] body button.nq-motion-switch{background:transparent!important;box-shadow:inset 0 1px #ffffff1a,0 2px 8px #00000006}
html[data-theme] body button.nq-motion-switch:hover{background:#ffffff0a!important;box-shadow:inset 0 1px #ffffff26,0 0 14px color-mix(in srgb,var(--motion-glow) 18%,transparent)}
html body.yu7-selected button.nq-motion-switch{--motion-ink:#f3f8ff}
@media(max-width:1140px){html body.yu7-selected .header button.nq-motion-switch{min-width:36px;width:36px;padding:7px;gap:0}body.yu7-selected .header .nq-motion-label,body.yu7-selected .header .nq-motion-indicator{display:none}}
@media(max-width:600px){html body button.nq-motion-switch{width:36px;min-width:36px;min-height:36px;padding:7px;gap:0}html body button.nq-motion-switch .nq-motion-label,html body button.nq-motion-switch .nq-motion-indicator{display:none}}

/* This one-shot feedback intentionally completes even when scene motion is frozen. */
html body>#nq-motion-wave{
  --wave-color:#ff893c;--wave-light:#ffe1a9;--wave-deep:#dc3d18;
  position:fixed!important;inset:0!important;z-index:2147483000!important;margin:0!important;
  overflow:hidden;pointer-events:none!important;contain:strict;isolation:isolate;
}
#nq-motion-wave[data-element="ice"]{--wave-color:#76d6ff;--wave-light:#e5fbff;--wave-deep:#417ce9}
#nq-motion-wave .nq-wave-tint{position:absolute;inset:0;background:var(--wave-color);opacity:0}
#nq-motion-wave .nq-wave-front{position:absolute;left:var(--wave-x);top:var(--wave-y);width:var(--wave-size);height:var(--wave-size);border-radius:50%;opacity:0;
  background:radial-gradient(circle,transparent 45%,color-mix(in srgb,var(--wave-deep) 12%,transparent) 61%,color-mix(in srgb,var(--wave-color) 44%,transparent) 66%,color-mix(in srgb,var(--wave-light) 76%,transparent) 69%,var(--wave-color) 70%,transparent 71%);
  will-change:transform,opacity;
}
#nq-motion-wave .nq-wave-core{position:absolute;left:var(--wave-x);top:var(--wave-y);width:160px;height:160px;border-radius:50%;opacity:0;background:radial-gradient(circle,var(--wave-light),color-mix(in srgb,var(--wave-color) 50%,transparent) 30%,transparent 70%)}
#nq-motion-wave .nq-wave-spark{position:absolute;left:var(--wave-x);top:var(--wave-y);width:4px;height:16px;border-radius:80% 20% 70% 30%;background:var(--wave-light);box-shadow:0 0 9px 2px var(--wave-color);opacity:0}
#nq-motion-wave[data-element="ice"] .nq-wave-spark{width:7px;height:7px;border-radius:0;background:transparent;border:1px solid var(--wave-light);box-shadow:0 0 8px var(--wave-color)}
#nq-motion-wave.is-reduced{background:var(--wave-color)}
#nq-motion-wave.is-reduced>*,#nq-motion-wave.is-reduced .nq-wave-spark{display:none}
@media(prefers-reduced-motion:reduce){html body button.nq-motion-switch{transition:none}}
