/* Space Bender demo (what-is-a-matrix.html)
   Scoped to avoid leaking styles into other pages/demos. */

[data-byteomi-preset="space-bender"] .mat-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.28rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 180ms ease,
    outline-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  user-select: text;
}

[data-byteomi-preset="space-bender"] .mat-cell.is-hot {
  background: rgba(46, 231, 242, 0.12);
  outline-color: rgba(46, 231, 242, 0.35);
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.18),
    0 0 18px rgba(46, 231, 242, 0.12);
  color: rgba(235, 255, 255, 0.96);
}

[data-byteomi-preset="space-bender"] .mat-cell.is-hot-rs {
  background: rgba(181, 108, 255, 0.12);
  outline-color: rgba(181, 108, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(181, 108, 255, 0.18),
    0 0 18px rgba(181, 108, 255, 0.12);
}

[data-byteomi-preset="space-bender"] .mat-grid.is-dim .mat-cell {
  opacity: 0.48;
}

[data-byteomi-preset="space-bender"] .mat-grid.is-dim .mat-cell.is-hot,
[data-byteomi-preset="space-bender"] .mat-grid.is-dim .mat-cell.is-hot-rs {
  opacity: 1;
}

[data-byteomi-preset="space-bender"] .mat-active {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(240, 248, 255, 0.92);
}

[data-byteomi-preset="space-bender"] .mat-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

[data-byteomi-preset="space-bender"] .mat-dot.is-t {
  background: rgba(46, 231, 242, 0.75);
  box-shadow:
    0 0 0 1px rgba(46, 231, 242, 0.25),
    0 0 16px rgba(46, 231, 242, 0.25);
}

[data-byteomi-preset="space-bender"] .mat-dot.is-rs {
  background: rgba(181, 108, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(181, 108, 255, 0.25),
    0 0 16px rgba(181, 108, 255, 0.25);
}

[data-byteomi-preset="space-bender"] .mat-pill {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  outline: 1px solid rgba(255, 255, 255, 0.07);
}

[data-byteomi-preset="space-bender"] .mat-pill__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font: inherit;
  color: rgba(240, 248, 255, 0.92);
  background: transparent;
}

[data-byteomi-preset="space-bender"] .mat-pill__btn[aria-pressed="true"] {
  background: rgba(46, 231, 242, 0.16);
  box-shadow: 0 0 0 1px rgba(46, 231, 242, 0.22) inset;
}

[data-byteomi-preset="space-bender"] .mat-pipe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

[data-byteomi-preset="space-bender"] .mat-pipe__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.8;
  transition:
    opacity 180ms ease,
    background 180ms ease,
    outline-color 180ms ease,
    box-shadow 180ms ease;
}

[data-byteomi-preset="space-bender"] .mat-pipe__step.is-active {
  opacity: 1;
  background: rgba(94, 200, 255, 0.12);
  outline-color: rgba(94, 200, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(94, 200, 255, 0.18),
    0 0 16px rgba(94, 200, 255, 0.12);
}

[data-byteomi-preset="space-bender"] .mat-pipe__arrow {
  opacity: 0.35;
}

