/* BayesAI — terminal effects.
 * The rotating conic-gradient borders, the L-shaped corner brackets and the panel scan
 * were removed with the trading-terminal relayout: content blocks are delimited by 1px
 * hairlines instead. effects.js still registers .jev-fx-box / .jev-box-fx hooks (the motion
 * toggle and the ambience layer depend on that bookkeeping); both are visually inert here.
 */

/* The ambience canvas stays beneath content and never takes input. */
#neural-ambience{position:fixed;inset:0;width:100%;height:100%;max-width:none;z-index:0;pointer-events:none;user-select:none;-webkit-user-select:none;contain:strict;opacity:.2}

/* Registered boxes: no gradient border, no corner marks, no scan, no spotlight. */
.jev-fx-box:not(.jn-onboarding){position:relative}
.jev-fx-box{isolation:isolate;--jev-fx-delay:0s}
.jev-fx-box::before,.jev-fx-box::after{content:none;display:none}
.jev-box-fx{display:none!important}

/* The arena is the reference register: one flat region outline, no glow. */
.arena-shell.jev-fx-box{border-color:var(--line-strong);box-shadow:none}
.arena-panel.jev-fx-box{box-shadow:none}

/* The onboarding dialog is the only elevated surface left. */
.jn-onboarding.jev-fx-box{position:fixed;border-color:var(--line-strong);box-shadow:0 0 0 1px #0b0e11,0 18px 60px rgba(11,14,17,.86)}
.jn-onboarding__panel.jev-fx-box{border-color:var(--line);box-shadow:none}

/* Controls inside the arena and the dialog: flat fields, a clear focus ring. */
.jn-onboarding input:not([type="range"]),.jn-onboarding textarea,
.arena-shell input:not([type="range"]),.arena-shell textarea{
  border-color:var(--line-strong);box-shadow:none;
  transition:border-color .15s,background .15s;
}
.jn-onboarding input:not([type="range"]):focus,.jn-onboarding textarea:focus,
.arena-shell input:not([type="range"]):focus,.arena-shell textarea:focus{
  border-color:#fcd535;outline:2px solid #fcd535;outline-offset:2px;box-shadow:none;background:#181a20;
}
.jn-onboarding .jn-onboarding__button,.arena-shell button{
  border-color:var(--line-strong);box-shadow:none;
  transition:border-color .15s,background .15s,color .15s;
}
.jn-onboarding .jn-onboarding__button:hover:not(:disabled),.arena-shell button:hover:not(:disabled){
  border-color:#eaecef;background:#1e2026;box-shadow:none;
}
.jn-onboarding .jn-onboarding__button:focus-visible,.arena-shell button:focus-visible{
  outline:2px solid #eaecef;outline-offset:2px;box-shadow:none;
}
.jn-onboarding .jn-onboarding__button--primary{background:#f0b90b;color:#0b0e11;border-color:#f0b90b;box-shadow:none}
.jn-onboarding .jn-onboarding__button--primary:hover:not(:disabled){background:#fcd535;border-color:#fcd535}
.rig input[type="range"]:focus-visible{outline:2px solid #fcd535;outline-offset:4px}

/* Motion toggle: a square terminal control, not a pill. */
.motion-toggle{
  position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:70;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:84px;min-height:32px;padding:7px 11px;
  border:1px solid var(--line-strong);background:rgba(18,22,28,.96);
  color:#b7bdc6;font:600 9.5px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;
  text-transform:uppercase;cursor:pointer;transition:border-color .15s,color .15s,background .15s;
}
.motion-toggle:hover{border-color:#fcd535;color:#eaecef;background:#1e2026}
.motion-toggle:focus-visible{outline:2px solid #eaecef;outline-offset:2px}
.motion-toggle:disabled{cursor:default;color:#848e9c}
.motion-toggle__icon{display:inline-flex;align-items:flex-end;justify-content:center;gap:2px;height:12px;width:13px}
.motion-toggle__icon i{width:2px;height:5px;background:#fcd535;animation:jev-motion-bars 1.3s ease-in-out infinite alternate}
.motion-toggle__icon i:nth-child(2){height:11px;animation-delay:-.65s}
.motion-toggle__icon i:nth-child(3){height:8px;animation-delay:-.3s}
.motion-toggle[aria-pressed="false"] .motion-toggle__icon i{height:4px;animation-play-state:paused;background:#848e9c}
.effects-paused *,.effects-paused *::before,.effects-paused *::after,
.effects-hidden *,.effects-hidden *::before,.effects-hidden *::after{animation-play-state:paused!important}
@keyframes jev-motion-bars{from{transform:scaleY(.5)}to{transform:scaleY(1)}}

@media(max-width:700px){
  .motion-toggle{position:static;inset:auto;order:2;min-width:30px;width:30px;min-height:30px;height:30px;padding:6px;margin-left:8px;flex:0 0 30px;font-size:8px}
  .motion-toggle__label,.nav .brand-tag{display:none}
}
@media(prefers-reduced-motion:reduce){
  .motion-toggle__icon i{animation:none!important;height:7px!important}
  .motion-toggle__icon i:nth-child(2){height:11px!important}
}
