/* The Matrix button: clear glass like the Desk/Yacht switch, at the foot of the Desk on the right; hidden over the Yacht, which has its own. */
#matrix-button {
  position: fixed; z-index: 20; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: 40px; height: 40px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px) saturate(1.3); backdrop-filter: blur(6px) saturate(1.3); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
#matrix-button[aria-pressed="true"] { color: #36ff8a; background: rgba(2, 20, 10, 0.3); border-color: rgba(54, 255, 138, 0.6); box-shadow: 0 0 14px rgba(54, 255, 138, 0.25); }
html.yacht3d body.in-room #matrix-button { display: none; }
body:has(dialog[open]) #matrix-button { display: none; }
