.lc3d-stage {
  position: relative;
  height: clamp(320px, 52vw, 540px);
  -webkit-user-select: none;
  user-select: none;
}
.lc3d-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.lc3d-view:active { cursor: grabbing; }
.lc3d-view:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: -3px; }
.lc3d .hwx-ctrls { justify-content: space-between; }
.lc3d-legend,
.lc3d-hint {
  position: absolute;
  margin: 0;
  pointer-events: none;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--hwx-dim);
}
.hw .lc3d-legend {
  top: 0.7rem;
  left: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  padding: 0;
  list-style: none;
}
.hw .lc3d-legend li { margin: 0; }
.lc3d-legend li::before {
  content: "";
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  vertical-align: -1px;
}
.lc3d-legend .lc3d-k-black::before { background: #333a3e; box-shadow: inset 0 0 0 1px #8fa6b0; }
.lc3d-legend .lc3d-k-box::before { background: rgba(199, 161, 107, 0.35); box-shadow: inset 0 0 0 1px #e3c592; }
.lc3d-legend .lc3d-k-proxy::before { background: #5c7380; }
.lc3d-hint { right: 1.1rem; bottom: 0.65rem; }
.lc3d-readout { font-size: 0.88rem; line-height: 1.55; }
@media (max-width: 560px) { .lc3d-hint { display: none; } }
.lc3d-foot { display: flex; align-items: flex-start; border-top: 1px solid var(--hwx-rule); }
.lc3d-foot .lc3d-readout { flex: 1 1 auto; min-width: 0; border-top: 0; }
.lc3d-oled {
  flex: 0 0 13.5rem;
  margin: 0.8rem 1.1rem 0.8rem 0;
  padding: 0.45rem 0.6rem 0.5rem;
  border: 1px solid #2b3d48;
  border-radius: 6px;
  background: #02070b;
  box-shadow: inset 0 0 0 3px #0b141a;
  font-family: var(--hwx-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #bfe8ff;
}
.lc3d-oled[hidden] { display: none; }
.lc3d-oled > div { white-space: pre; }
.lc3d-oled .lc3d-oled-big { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; line-height: 1.3; }
.lc3d-oled .lc3d-oled-big span { font-size: 0.72rem; }
.lc3d-oled .lc3d-oled-bar { height: 0.6rem; margin: 0.15rem 0 0.3rem; border: 1px solid #bfe8ff; padding: 1px; }
.lc3d-oled .lc3d-oled-bar i { display: block; height: 100%; background: #bfe8ff; }
@media (max-width: 560px) { .lc3d-foot { flex-direction: column; } .lc3d-oled { margin: 0 auto 0.9rem; } }

.hw .lc-tag {
  display: inline-block;
  margin: 0.15rem 0.45rem 0.15rem 0;
  padding: 0.02rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.1em;
  color: var(--nx-mint, #075a3e);
}
