/* ===========================================================================
   JOINT SIMULATION  ·  style.css
   ---------------------------------------------------------------------------
   One full-window three.js canvas (.sk-stage, made by stage3d.js) under the
   sim kit GUI (widgets/sim-kit/sim-kit.css), and the upstream joystick
   (#touchControl, #outerCircle, #innerCircle) restyled with the --sk-*
   tokens. The joystick shows for the steering scene (body.jt-stick). The
   upstream buttons and select styles went with the upstream controls.
   =========================================================================== */
html, body { margin: 0; height: 100%; background: var(--sk-bg); overflow: hidden; }
.sk-stage { position: fixed; inset: 0; width: 100vw !important; height: 100vh !important; display: block; touch-action: none; cursor: grab; }
.sk-stage:active { cursor: grabbing; }

#touchControl { position: fixed; left: 20px; bottom: calc(96px + var(--sk-credit, 0px)); width: 132px; height: 132px; z-index: 6; pointer-events: none; display: none; }
body.jt-stick #touchControl { display: block; }
html.sk-saver #touchControl { display: none; }
#outerCircle {
  position: absolute; inset: 0; border-radius: 22px; pointer-events: auto; touch-action: none;
  background: var(--sk-glass, rgba(9,12,19,0.74)); border: 1px solid var(--sk-line, rgba(255,255,255,0.11));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#innerCircle {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--sk-accent, #7cc4ff); box-shadow: 0 0 18px var(--sk-accent, #7cc4ff); pointer-events: none;
}
@media (max-width: 768px) { #touchControl { bottom: calc(118px + var(--sk-credit, 0px)); width: 116px; height: 116px; } }

/* Site rule: an element with the hidden attribute stays hidden, also when
   a rule above gives it a display value. */
[hidden] { display: none !important; }
