/* Movement view — WASD locomotion playground, themed to the ROP shell. */
.mv-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}

.mv-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mv-side h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 8px;
}
.mv-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.mv-field select,
.mv-field input[type="text"],
.mv-field input:not([type]) {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}
.mv-field.range { flex-direction: row; align-items: center; gap: 8px; }
.mv-field.range input[type="range"] { flex: 1; }
.mv-field.range input[type="range"]:disabled { opacity: 1; cursor: default; }
.mv-field.range output { width: 42px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.mv-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 6px 0; cursor: pointer; }

.mv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
}
.mv-row {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
.mv-row:hover { border-color: var(--accent-2); }
.mv-row.is-selected { border-color: var(--accent); background: #23271e; }

.mv-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.mv-badge.ok { border-color: var(--accent-2); color: var(--accent-2); }
.mv-badge.warn { border-color: var(--danger); color: var(--danger); }
.mv-anim-info { color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.5; }

.mv-stage-panel { display: flex; flex-direction: column; gap: 8px; }
.mv-stage {
  position: relative;
  height: 62vh;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, #23271e 0%, #161a12 55%, #11130f 100%);
}
.mv-stage .spine-host { position: absolute; inset: 0; }
.mv-stage .spine-host canvas { width: 100% !important; height: 100% !important; display: block; }

.mv-hud {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; color: var(--muted);
  background: rgba(0,0,0,0.42); padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); pointer-events: none;
}
.mv-hud kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; font-family: inherit; color: var(--ink); margin: 0 1px;
}
.mv-readout {
  position: absolute; right: 14px; top: 12px;
  font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.42); padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); pointer-events: none;
}
.mv-status { color: var(--muted); font-size: 12px; }

@media (max-width: 880px) {
  .mv-layout { grid-template-columns: 1fr; }
}
